/* =======================
   Global Styles
======================= */
body {
    font-family: 'Segoe UI', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #fff;
    color: #101940;
}

/* =======================
   Navigation Bar
======================= */
nav {
    background-color: #101940;
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    line-height: 0;
}
.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1000px;
    margin: auto;
    height: 72px;
    padding-left: 0;
    position: relative;
}
.logo-title {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 100%;
}
.logo-icon,
.title-image {
    height: 100%;
    width: auto;
    display: block;
    margin: 0;
}
.title-image {
    height: 250%;
    margin-left: 0;
}
.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 20px;
    margin: 0;
    padding: 0;
    height: 100%;
}
.nav-links li {
    display: flex;
    align-items: center;
    height: 100%;
}
.nav-links li a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #fff;
    font-weight: 500;
    font-size: 16px;
    padding: 0 8px;
    margin: 0;
    line-height: 1;
    height: 100%;
    transition: background 0.2s, color 0.2s;
}
.nav-links li a:hover,
.nav-links li a:focus {
    background: #fff;
    color: #101940;
    outline: none;
}


/* Hamburger icon */
.hamburger {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 28px;
    cursor: pointer;
}

/* Mobile menu popup */
.mobile-menu {
    display: none;
    flex-direction: column;
    list-style: none;
    margin: 0;
    padding: 10px 20px;
    position: absolute;
    right: 0;
    top: 100%;
    background-color: #101940;
    z-index: 1001;
}

.mobile-menu li a {
    color: #fff;
    text-decoration: none;
    padding: 8px 0;
}




/* =======================
   Hero Section
======================= */
header {
    background: url('Images/background-image.png') no-repeat center center;
    background-size: cover;
    height: 100vh;
    position: relative;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: flex-end;
}
header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.3);
    z-index: 1;
}

.hero-content {
    position: relative;
    color: white;
    text-align: right;
    max-width: 500px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
    margin-bottom: 150px;
    margin-right: 120px;
}

.hero-logo {
    height: 260px;
    width: auto;
    display: block;
    margin-top: 40px;
    margin-bottom: -80px;
}

/* Hero image hidden by default (visible on mobile) */
.hero-image {
    display: none;
    width: 100%;
    height: auto;
}

.hero-content p {
    font-size: 20px;
    margin: 0;
}

.hero-content button {
    padding: 12px 25px;
    font-size: 16px;
    background-color: #ffd600;
    color: #101940;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s, color 0.3s;
}

.hero-content button:hover {
    background-color: #101940;
    color: #ffd600;
}

/* =======================
   About Section (ALL CENTERED, BIGGER LOGO)
======================= */
#about {
    background-color: #fff;
    padding: 60px 20px;
    scroll-margin-top: 80px;
    text-align: center;
}

.about-card.about-stacked {
    background-color: #101940;
    border: 3px solid #ffd600;
    border-radius: 18px;
    max-width: 980px;
    width: 100%;
    margin: 0 auto;
    padding: 40px 30px 32px 30px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 28px;
    text-align: center;
}

/* 1. About Us Title Centered */
.about-center-title {
    width: 100%;
    text-align: center;
    margin: 0 0 10px 0;
    color: #fff;
}

/* 2. About Description Centered */
.about-center-desc {
    width: 100%;
    max-width: 680px;
    margin: 0 auto;
    text-align: center;
}
.about-center-desc p {
    margin: 0 0 10px 0;
    text-align: center;
}

/* 3. Special and Logo Row: Center all text, evenly split */
.about-special-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0;
    width: 100%;
    max-width: 940px;
    margin: 0 auto 18px auto;
}
.special-section {
    flex: 1 1 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    max-width: 410px;
    min-width: 260px;
    margin: 0 auto;
    text-align: center;
}
.special-list {
    list-style: none;
    padding: 0;
    margin: 15px 0 0 0;
    max-width: 350px;
    text-align: center;
    align-self: center;
}
.special-list li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 10px;
    text-align: left;
    display: inline-block;
}
.special-list li::before {
    content: '\2714';
    position: absolute;
    left: 0;
    color: #ffd600;
    font-weight: bold;
}
.about-subheading {
    color: #fff;
    margin-bottom: 8px;
    margin-top: 0;
    text-align: center;
}
.about-logo-col {
    flex: 1 1 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 220px;
}
.vision-logo {
    width: 270px;
    max-width: 340px;
    min-width: 160px;
    height: auto;
    margin: 0;
    display: block;
}

/* 4. Mission & Vision row: Center text */
.about-mv-row {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 40px;
    width: 100%;
    max-width: 940px;
    margin: 0 auto;
    text-align: center;
}
.mv-box {
    background: #e8f0ff; /* light purple/blue */
    color: #101940;
    border-radius: 14px;
    box-shadow: 0 2px 8px rgba(16,25,64,0.06);
    padding: 22px 18px 16px 18px;
    border: none;
    text-align: center;
    flex: 1 1 320px;
    min-width: 220px;
    max-width: 430px;
    margin: 0 12px;
}

.mv-box h3 {
    margin-top: 0;
    color: #101940;     /* <-- Your blue! */
    margin-bottom: 10px;
    font-size: 1.15em;
    font-weight: bold;
    text-align: center;
}

.mv-box p {
    margin-bottom: 0;
    font-size: 1em;
    font-weight: normal;
    text-align: center;
}


/* 5. Tagline Row */
.about-tagline-row {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 18px;
}
.tagline-badge {
    background-color: #ffd600;
    color: #101940;
    display: inline-block;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: bold;
    text-align: center;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}
.tagline-button {
    border: none;
    cursor: pointer;
    display: block;
    margin: 0 auto 0 auto;
}

/* =======================
   Gallery Section
======================= */
#gallery {
    padding: 40px 20px 0 20px;
    background-color: #fff;
    text-align: center;
}
#gallery h2 {
    color: #101940;
}
.gallery-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-top: 20px;
}
.gallery-container img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    object-fit: cover;
}

/* =======================
   Services Section
======================= */
#services {
    padding: 20px 20px 40px 20px;
    background-color: white;
    text-align: center;
    scroll-margin-top: 80px;
}
#services h2 {
    color: #101940;
}
#service-table {
    background: #101940;
    color: #fff;
    border: 3px solid #ffd600;
    border-radius: 18px;
    border-collapse: separate;
    border-spacing: 0;
    box-shadow: 0 4px 24px rgba(16,25,64,0.28);
    overflow: hidden;
    max-width: 980px;
    width: 100%;
    table-layout: fixed;
    margin: 0 auto;
    font-family: 'Montserrat', Arial, sans-serif;
}
#service-table th, #service-table td {
    padding: 10px 12px;
    text-align: left;
    font-size: 1.08rem;
}
#service-table th {
    background: #101940;
    color: #fff;
    font-size: 1.18rem;
    letter-spacing: 0.5px;
    border-bottom: 3px solid #ffd600;
}
#service-table tr:not(:last-child) td {
    border-bottom: 1.5px solid #ffd60055;
}
#service-table td {
    background: #101940;
    color: #fff;
    vertical-align: middle;
}
#service-table .check {
    font-size: 1.5em;
    font-weight: bold;
    color: #fff;
    text-align: center;
}
#service-table .light {
    color: #fff;
    font-weight: 600;
    font-size: 1.08em;
    text-align: center;
}
#service-table tr:hover td {
    background: #182256;
    transition: background 0.2s;
}

/* =======================
   Contact Section
======================= */
#contact {
    padding: 40px 20px;
    background-color: #fff;
    color: #101940;
    text-align: center;
    scroll-margin-top: 80px;
}
#contact h2 {
    color: #101940;
}
form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 400px;
    margin: auto;
}
input, textarea, select {
    padding: 10px;
    border-radius: 4px;
    border: 1px solid #ffd600;
    font-size: 16px;
}
select {
    margin-bottom: 10px;
}
input[type="date"] {
    padding: 10px;
    border-radius: 4px;
    border: 1px solid #ffd600;
    font-size: 16px;
}
button[type="submit"] {
    background-color: #ffd600;
    color: #101940;
    border: none;
    padding: 12px;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s, color 0.3s;
}
button[type="submit"]:hover {
    background-color: #fff;
    color: #101940;
}

/* =======================
   Footer
======================= */
footer {
    text-align: center;
    padding: 20px;
    background-color: #101940;
    color: #ffd600;
}

/* =======================
   Modal Styles
======================= */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.6);
}
.modal-content {
    background-color: #fff;
    margin: 10% auto;
    padding: 20px 30px;
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
    position: relative;
    text-align: left;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}
.modal-content h3 {
    text-align: center;
    margin-bottom: 20px;
}
.close {
    color: #aaa;
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 24px;
    cursor: pointer;
}
.close:hover {
    color: #000;
}
.modal-list {
    text-align: center;
    padding-left: 0;
    margin: 0 auto;
}
.modal-list.no-bullets {
    list-style: none;
}

/* =======================
   Responsive (Mobile)
======================= */
@media (max-width: 768px) {
    .about-special-row, .about-mv-row {
        flex-direction: column;
        gap: 24px;
        align-items: center;
    }
    .about-logo-col,
    .special-section,
    .mv-box {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }
    .about-logo-col {
        justify-content: center;
    }
    .vision-logo {
        width: 180px;
        max-width: 230px;
    }
    .nav-links {
        display: none;
    }
    .hamburger {
        display: block;
    }

    /* Ensure hero background and images scale nicely on mobile */
    header {
        background-size: contain;
        background-position: top center;
        background-repeat: no-repeat;
    }
    .hero-logo,
    .gallery-container img {
        width: 100%;
        height: auto;
        object-fit: contain;
        object-position: top center;
        display: block;
    }
}
@media (max-width: 768px) {
    body {
        margin: 0 auto;
        max-width: 100%;
        padding: 0 16px;
    }
    /* Extend the navigation bar to ignore body padding */
    nav {
        margin-left: -16px;
        margin-right: -16px;
    }
    .nav-container {
        max-width: none;
        margin: 0;
        width: 100%;
    }
    img,
    .about-card,
    section {
        display: block;
        margin: 0 auto;
    }
}
@media (max-width: 600px) {
    #service-table th,
    #service-table td {
        padding: 10px 8px;
        font-size: 0.9rem;
        word-wrap: break-word;
    }
    #service-table .check {
        font-size: 1.2em;
    }
    .hero-image {
        max-height: 100vh;
    }
    .hero-content {
        margin: 0;
        padding: 24px 16px;
        gap: 12px;
    }
    .hero-logo {
        height: 120px;
    }
    .gallery-container {
        grid-template-columns: 1fr;
    }
    .about-card.about-stacked {
        padding: 25px 4vw 25px 4vw;
    }
    .about-center-desc {
        max-width: 97vw;
    }
    .about-special-row,
    .about-mv-row {
        gap: 15px;
    }
    .mv-box h3 {
        font-size: 1.06em;
    }
    .vision-logo {
        width: 130px;
        max-width: 170px;
    }
    /* Larger navigation bar and links on small screens */
    .nav-container {
        height: 90px;
    }
    .nav-links {
        gap: 25px;
        flex-wrap: wrap;
        justify-content: center;
    }
    .nav-links li a {
        font-size: 18px;
        padding: 0 12px;
    }

}

@media (min-width: 769px) {
    /* Ensure mobile menu stays hidden on larger screens */
    .mobile-menu {
        display: none !important;
    }
}
@media (max-width: 768px) {
  header {
    position: relative;
    background: none;
    padding: 0;
    display: block;
    height: auto;
    margin: 0;
  }
  header::before {
    display: none;
  }
  .hero-image {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
    max-height: 100vh;
    margin: 0;
  }
  .hero-content {
    position: static;
    background-color: #0c1d4a;
    padding: 24px 16px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin: 0;
  }
  .hero-content img.hero-logo {
    width: 120px;
    margin-bottom: 12px;
  }
  .hero-content p {
    color: white;
    font-size: 16px;
    margin-bottom: 12px;
  }
  .hero-content button {
    background-color: #FFD700;
    color: #000;
    padding: 10px 24px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
  }
}

@media (max-width: 768px) {
  .about-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 95%;
    margin: 0 auto !important;
    padding: 1.5rem 1rem;
    box-sizing: border-box;
    text-align: center;
  }
  .about-section * {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }
  .about-section img,
  .about-section .tagline-badge,
  .about-section .badge {
    display: block;
    margin: 1rem auto;
  }
}

@media (max-width: 768px) {
  .mission-box,
  .vision-box {
    padding-top: 1rem;
    padding-bottom: 0;
    margin-top: 0;
    margin-bottom: 0;
  }

  .mission-box > :first-child,
  .vision-box > :first-child {
    margin-top: 0;
  }

  .mission-box > :last-child,
  .vision-box > :last-child {
    margin-bottom: 0;
    padding-bottom: 0;
  }

  .mission-box > *:empty,
  .vision-box > *:empty {
    display: none;
    height: 0;
  }

  .mission-box > br,
  .vision-box > br {
    display: none;
  }

  .mission-box p:empty,
  .vision-box p:empty {
    display: none;
  }
}

/* Override layout for mobile to ensure about section is centered */
@media (max-width: 768px) {
  .about-section {
    all: unset;
    width: 100%;
    max-width: 95%;
    margin: 0 auto !important;
    padding: 1.5rem 1rem;
    display: block;
    text-align: center !important;
    box-sizing: border-box;
  }
  .about-section * {
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
    display: block;
  }
}

@media (max-width: 768px) {
  .about-card.about-stacked,
  .mission-box,
  .vision-box {
    width: 100%;
    max-width: 95%;
    margin: 0 auto;
    box-sizing: border-box;
    padding: 1rem;
    text-align: center;
  }
  .about-card.about-stacked * {
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 768px) {
  .mission-box {
    margin-bottom: 1rem;
  }
}

@media (max-width: 768px) {
  .mobile-menu {
    display: none;
    position: absolute;
    top: 72px; /* ensure menu appears below the navbar */
    left: 50%;
    transform: translateX(-50%);
    width: 90vw;
    max-width: 90vw;
    background-color: #101940;
    border-radius: 10px;
    padding: 20px 0;
    flex-direction: column;
    align-items: center;
    z-index: 999;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    list-style: none;
  }
  .mobile-menu.show {
    display: flex;
  }
  .mobile-menu li {
    margin: 14px 0;
  }
  .mobile-menu li a {
    color: white;
    font-size: 20px;
    text-decoration: none;
    font-weight: 600;
  }
  .hamburger {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
  }
}

@media (max-width: 768px) {
  header img.hero-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    max-height: 100vh;
  }
}
@media (max-width: 768px) {
  /* Remove hero logo on mobile */
  .hero-content img.hero-logo {
    display: none !important;
  }

  /* Slim, auto-height hero-content on mobile */
  .hero-content {
    position: static !important;
    background-color: #0c1d4a !important;
    padding: 16px !important;
    margin: 0 !important;
    text-align: center !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    height: auto !important;
  }

  .hero-content p {
    font-size: 16px !important;
    color: white !important;
    margin: 0 !important;
  }

  .hero-content button {
    background-color: #FFD700 !important;
    color: #101940 !important;
    padding: 10px 24px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    border: none !important;
    border-radius: 6px !important;
    cursor: pointer !important;
  }
}
