/* === mobile.css === */

.burger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  cursor: pointer;
  z-index: 1100;
}
.burger .line {
  height: 3px;
  width: 100%;
  background: #F0F8FF;
  border-radius: 3px;
  transition: all 0.3s ease;
}
.burger.open .line:nth-child(1) { transform: rotate(45deg) translateY(8px); }
.burger.open .line:nth-child(2) { opacity: 0; }
.burger.open .line:nth-child(3) { transform: rotate(-45deg) translateY(-8px); }


@media (max-width: 768px) {

  .burger { display: flex; }

  .navbar {
    justify-content: space-between;
  }

  .nav-links {
    position: absolute;
    top: 80px;
    left: 0;
    width: 100%;
    background: rgba(10, 61, 98, 0.98);
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
    padding: 1.5rem 0;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.35s ease, opacity 0.35s ease;
  }

  .nav-links.show {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .logo {
    height: 120px;
  }

  html, body { overflow-x: hidden; }
}


@media (max-width: 768px) {
  .nav-links li a {
    transition: color 0.3s, transform 0.2s;
  }
  .nav-links li a:hover {
    color: #ffd93b;
    transform: scale(1.05);
  }
}


@media (max-width: 768px) {
  html, body {
    overflow-x: hidden !important;
    width: 100%;
  }


  .container, section, .cards, .card {
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
  }


  .card {
    padding: 1rem;
    width: 90%;
  }


  .navbar, .nav-links {
    max-width: 100vw;
    overflow-x: hidden;
  }
}


@media (max-width: 768px) {

  .navbar {
    height: auto;
    flex-wrap: wrap;
    overflow: visible;
  }


  .nav-links {
    position: absolute;
    top: 80px;
    left: 0;
    width: 100%;
    background: rgba(10, 61, 98, 0.98);
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
    padding: 1.5rem 0;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.35s ease, opacity 0.35s ease;
    z-index: 2000; 
  }

  .nav-links.show {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
}


@media (max-width: 768px) {
  .logo-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: auto;
    height: auto;
    z-index: 1500;
  }

  .logo {
    height: 140px;
    width: auto;
  }


  .navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background-color: #0a3d62;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 0 1rem;
  }

  .burger {
    position: relative;
    z-index: 2000;
  }


  .nav-links {
    top: 80px;
  }
}
