* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
body {
    background: linear-gradient(to top right, rgb(12, 12, 17),rgb(6, 6, 8));
    font-family: "Rubik", sans-serif;
    color: azure;
    overflow-x: hidden;
}

/* NAVBAR */
.NavbarHeader {
    width: 100%;
    height: 80px;
    background-color: rgb(6, 6, 8);
    position: sticky;
    top: 0;
    z-index: 100;
}

.Navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.NavbarHead {
    font-size: 25px;
    text-decoration: none;
    color: azure;
    margin-top: 10px;
}

.NavbarLink {
    list-style: none;
    display: flex;
    gap: 45px;
    margin-top: 10px;
}

.NavbarLinks {
    text-decoration: none;
    font-size: 20px;
    font-weight: 200;
    color: azure;
    transition: color 0.7s ease;
}

.NavbarLinks:hover {
    color: rgb(15, 167, 167);
}

/* HAMBURGER BUTON */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger div {
    width: 25px;
    height: 3px;
    background-color: azure;
    transition: all 0.3s ease;
}


/* FOOTER */
footer {
    background-color: rgb(6, 6, 8);
    padding: 20px 10px;
    color: azure;
}

.footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px;
    padding: 40px 40px;
}
.ContactInfo p {
    margin-bottom: 15px;
    font-weight: 200;
    color: rgb(186, 187, 187);
}
.ContactInfo a{
    text-decoration: none;
    font-family: Rubik;
    color: azure;
    display: block;
    margin-bottom: 15px;
    width: fit-content;
    font-weight: 200;
    color: rgb(186, 187, 187);
    transition: color 0.7s ease;
}
.footermaptext {
    height: 120px;
    margin-bottom: 15px;
}

.ContactInfo, .MapInfo {
    flex: 1 1 300px;
}

.ContactInfoText, .footermaptexthead {
    color: azure;
    margin-bottom: 15px;
}
.footermaptextlast {
    font-weight: 200;
    color: rgb(186, 187, 187);
}

.MapInfo iframe {
    width: 100%;
    max-width: 550px;
    height: 240px;
    border: 0;
}

.copyright {
    text-align: center;
    padding: 10px 0;
    margin-top: 20px;
    font-size: 14px;
}
.stick {
    height: 1px;
    margin-bottom: 20px;
    background-color: rgb(15, 167, 167);
}
.ContactInfo a:hover {
    color: rgb(15, 167, 167);
}

/* PRELOADER */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgb(6, 6, 8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  opacity: 1;
  transition: opacity 0.8s ease;
}

#preloader div {
  width: 50px;
  height: 50px;
  border: 5px solid #fff;
  border-top: 5px solid rgb(132, 255, 255);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
.container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}
.card {
    background-color: rgb(238, 226, 226);
    width: 420px;
    height: 490px;
    margin: 50px 50px;
    border-radius: 10px;
    transition: all 0.6s ease;
}
.card-content-1 h2{
    font-family: Rubik;
    margin-left: 10px;
    color: rgb(39, 39, 39);
    transition: all 0.6s ease;

}
.card-content-1 p{
    font-family: Rubik;
    margin-left: 10px;
    color: rgb(39, 39, 39);
    transition: all 0.6s ease;
}
.card-image{
    background-color: rgb(35, 29, 44);
    height: 280px;
    margin-bottom: 15px;
    background-size: cover;
    border-radius: 8px 8px 0 0;
    transition: all 0.6s ease;
}
.card-content {
    transition: all 0.6s ease;
}
.com-1{
    background-image: url('polio-somalia.jpg');
}
.com-2{
    background-image: url('BQEtEhvrMfr2FhAK.jpg');
}
.com-3{
    background-image: url('RF1283749.webp');
}
.com-4{
    background-image: url('46829212721_746ce7fdb3_o.webp');
}
.com-5{
    background-image: url('Israeli-armoured-column-Yom-Kippur-War-1973.webp');
}
.card:hover {
    .card-content-1 h2 {
        color: azure;
    }
    .card-content-1 p {
        color: azure;
    }
    .card-content-2 p {
        color: azure;
    }

    .card-image {
        height: 50px;
    }
    box-shadow: 0 0 10px 2px rgb(15, 167, 167);
    background-color: rgb(14, 13, 15);
    transform: scale(1.03);
}
.card:active {
        .card-content-1 h2 {
        color: azure;
    }
    .card-content-1 p {
        color: azure;
    }
    .card-content-2 p {
        color: azure;
    }

    .card-image {
        height: 50px;
    }
    box-shadow: 0 0 10px 2px rgb(15, 167, 167);
    background-color: rgb(14, 13, 15);
    transform: scale(1.03);
}
.card-button-container {
    text-align: center; /* Butonu ortalamak için */
    margin: 10px 50px;  /* Kart ile aynı margin’i verdik */
}

.card-button {
    background: linear-gradient(to right, #00c6ff, #0072ff); /* Degrade mavi tonları */
    color: white;
    border: 1px solid transparent;
    padding: 10px 25px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.card-button:hover {
    background-color: rgb(14, 13, 15);
    border: 1px solid azure;
}
.card-content-2 {
  max-height: 0;        /* başta kapalı */
  overflow: hidden;
  transition: max-height 0.6s ease;
  margin-left: 10px;
}

.card:hover .card-content-2 {
  max-height: 200px;    /* hover olunca açılır */
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
/* MOBILE RESPONSIVE FOOTER */
@media screen and (max-width: 800px) {
    .footer {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .MapInfo {
        margin-left: 0;
    }
    .MapInfo iframe {
        height: 200px;
    }
    .stick {
        margin: 0 auto;
        margin-bottom: 20px;
    }
    .ContactInfo {
        display: flex;
        flex-direction: column;
        align-items: center; 
        text-align: center;  
        gap: 10px;   
    }

    .ContactInfo .footerlink,
    .ContactInfo p {
        display: block;
        margin: 5px 0; 
        width: auto;
    }
    .card h2 {
      font-size: 17px;
    }
    .card p {
      font-size: 14px;
    }
}

/* MOBILE RESPONSIVE */
@media screen and (max-width: 800px) {
    .NavbarLink {
        position: absolute;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background-color: rgb(12, 12, 17);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 30px;
        transition: left 0.3s ease-in-out;
    }
    .NavbarHead {
        font-size: 20px;
        margin-top: 10px;
    }
    .NavbarLink.active {
        left: 0;
    }
    .hamburger {
        display: flex;
    }
    .NavbarLink li {
        display: block;
    }
}