/* Improve font rendering for SEO (better readability) */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
/* =========================
   GLOBAL RESET
   ========================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Segoe UI", Arial, sans-serif;
    line-height: 1.6;
    color: #333333;
    background-color: #ffffff;
    padding-top: 80px; /* Increased offset for taller header */
    padding-bottom: 50px; /* Offset for fixed footer */
}

/* =========================
   HEADER / NAV
   ========================= */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #003973;
    color: #ffffff;
    padding: 15px 20px;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.header-container {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    display: flex;
    flex-direction: column;
}

.logo {
    display: flex; /* Change to flex row for horizontal alignment */
    align-items: center; /* Vertically center the image and text */
    color: #ffffff;
    text-decoration: none;
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 5px;
}

.tagline {
    font-size: 14px; /* Smaller than logo */
    margin: 0;
    opacity: 0.95;
}

.nav-container {
    display: flex;
    gap: 30px;
}

.nav-link {
    color: #ffffff;
    text-decoration: none;
    font-size: 16px;
    padding: 8px 15px;
    border-radius: 4px;
    transition: background-color 0.3s ease, color 0.3s ease;
    cursor: pointer;
}

.nav-link:hover {
    background-color: #005c97;
    color: #ffffff;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #ffffff;
    font-size: 24px;
    cursor: pointer;
}

/* Responsive Navigation */
@media (max-width: 768px) {
    .nav-container {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 80px; /* Adjusted for taller header */
        left: 0;
        width: 100%;
        background-color: #003973;
    }

    .nav-container.active {
        display: flex;
    }

    .nav-link {
        padding: 15px;
        text-align: center;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .menu-toggle {
        display: block;
    }
}

/* =========================
   HERO / VIDEO SECTION
   ========================= */
.hero {
    text-align: center;
    padding: 50px 20px; /* Reduced top/bottom padding for tighter fit */
    background: linear-gradient(135deg, #003973, #005c97);
    color: #ffffff;
}

.hero h1 {
    font-size: 34px;
    margin-bottom: 5px; /* Reduced margin for closer placement */
}

.hero .subtitle {
    max-width: 800px;
    margin: 0 auto 30px;
    font-size: 17px;
    opacity: 0.95;
}

/* =========================
   VIDEO PLAYER
   ========================= */
.video-wrapper {
    max-width: 562px;
    width: 100%;
    margin: 0 auto 20px; /* Centered, reduced bottom margin for tighter fit */
    background-color: #000000;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.35);
}

.video-wrapper video {
    width: 100%;
    height: auto;
    display: block;
}

/* =========================
   PRIMARY BUTTON
   ========================= */
.btn-primary {
    display: inline-block;
    padding: 14px 30px;
    background-color: #00c853;
    color: #ffffff;
    text-decoration: none;
    font-size: 16px;
    border-radius: 6px;
    transition: background-color 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background-color: #00a844;
}

/* =========================
   CONTACT MODAL
   ========================= */
.modal {
    display: none;
    position: fixed;
    z-index: 1001; /* Above header */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent backdrop */
    justify-content: center;
    align-items: center;
    padding: 20px; /* Better on mobile */
}

.modal-content {
    background-color: #ffffff;
    margin: auto;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.35);
    width: 90%;
    max-width: 500px;
    position: relative;
    color: #333333;
    max-height: 80vh; /* Prevent overflow on small screens */
    overflow-y: auto; /* Scroll if too tall */
}

.close {
    position: absolute;
    top: 10px;
    right: 15px;
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close:hover,
.close:focus {
    color: #000;
    text-decoration: none;
}

.contact-form {
    display: flex;
    flex-direction: column;
}

.contact-form label {
    margin-bottom: 8px;
    font-weight: bold;
    color: #005c97;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    margin-bottom: 20px;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
}

.contact-form button {
    align-self: center;
    width: auto;
}

@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        padding: 20px;
    }
}

/* =========================
   MODULE DROPDOWNS (NOW IN HMIS SECTION)
   ========================= */
.module-dropdown {
    margin-bottom: 15px;
}

.module-dropdown summary {
    cursor: pointer;
    font-weight: bold;
    color: #00c853;
    padding: 12px;
    font-size: 18px;
    border-radius: 6px;
    transition: background-color 0.3s ease;
}

.module-dropdown summary:hover {
    background-color: rgba(0, 92, 151, 0.1); /* Light hover effect */
}

.module-dropdown ul {
    padding: 15px;
    background-color: #f5f7fa;
    border-radius: 6px;
    margin-top: 5px;
    list-style-type: disc;
    margin-left: 20px;
    font-size: 16px;
}

.module-dropdown li {
    margin-bottom: 8px;
}

/* =========================
   CONTENT SECTIONS
   ========================= */
.section {
    padding: 60px 20px;
    background-color: #ffffff;
}

.section.alt {
    background-color: #f5f7fa;
}

.section-container {
    max-width: 1000px;
    margin: auto;
}

.section h2 {
    color: #005c97;
    margin-bottom: 15px;
}

.section h3 {
    margin-top: 30px;
    margin-bottom: 8px;
    color: #005c97;
}

.section p {
    font-size: 16px;
    margin-bottom: 12px;
}

/* =========================
   ABOUT SECTION GALLERY CAROUSEL
   ========================= */
.gallery-carousel {
    position: relative;
    max-width: 800px;  /* Widened from 300px for larger view area */
    height: 400px;     /* Fixed height to keep it consistent; adjust if needed based on your images */
    margin: 0 auto;
    overflow: hidden;
    border-radius: 6px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.carousel-slides {
    display: flex;
    transition: transform 0.5s ease-in-out;
    height: 100%;  /* Ensure slides fill the carousel height */
}

.carousel-img {
    width: 100%;
    height: 100%;  /* Fill the fixed height */
    flex-shrink: 0;
    object-fit: cover;  /* Maintain aspect ratio without distortion */
}

.carousel-prev,
.carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: #ffffff;
    border: none;
    padding: 10px;
    cursor: pointer;
    font-size: 18px;
    z-index: 10;
    transition: background-color 0.3s ease;
}

.carousel-prev {
    left: 10px;
}

.carousel-next {
    right: 10px;
}

.carousel-prev:hover,
.carousel-next:hover {
    background-color: rgba(0, 0, 0, 0.8);
}
/* =========================
   IMPACT SECTION
   ========================= */
.impact-container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 20px;
}

.impact-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 200px;
}

.impact-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background-color: #00c853;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    font-weight: bold;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.impact-circle:hover {
    transform: scale(1.1);
}

.impact-circle i {
    font-size: 30px;
    margin-bottom: 5px;
}

.impact-number {
    font-size: 28px;
}

.impact-text {
    margin-top: 10px;
    font-size: 16px;
    color: #333333;
}

/* =========================
   CONTACT DETAILS
   ========================= */
.contact-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-icon {
    font-size: 24px;
}

/* =========================
   SOCIAL LINKS
   ========================= */
.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}

.social-icon {
    color: #005c97;
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.social-icon i {
    font-size: 20px;
}

.social-icon:hover {
    color: #00c853;
}

/* =========================
   WHATSAPP CHAT ICON and EXPANDABLE BOX
   ========================= */
.whatsapp-chat {
    position: fixed;
    bottom: 80px; /* Above footer */
    right: 20px;
    background-color: #25D366;
    color: #ffffff;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    text-decoration: none;
    transition: background-color 0.3s ease;
    z-index: 999;
    cursor: pointer;
}

.whatsapp-icon {
    font-size: 30px;
}

.whatsapp-chat:hover {
    background-color: #128C7E;
}

.whatsapp-modal {
    display: none;
    position: fixed;
    bottom: 150px; /* Position above the icon */
    right: 20px;
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    width: 300px;
    padding: 20px;
    z-index: 999;
}

.whatsapp-modal-content {
    display: flex;
    flex-direction: column;
}

.whatsapp-close {
    position: absolute;
    top: 10px;
    right: 10px;
    cursor: pointer;
    font-size: 20px;
    color: #aaa;
}

.whatsapp-close:hover {
    color: #000;
}

#whatsapp-message {
    margin-bottom: 15px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    resize: none;
}

@media (max-width: 768px) {
    .whatsapp-chat {
        bottom: 100px; /* Adjust for mobile footer */
        right: 15px;
        width: 50px;
        height: 50px;
    }

    .whatsapp-icon {
        font-size: 24px;
    }

    .whatsapp-modal {
        bottom: 170px;
        right: 15px;
        width: 90%;
        max-width: 300px;
    }
}

/* =========================
   LISTS
   ========================= */
.feature-list {
    list-style: none;
    padding-left: 0;
    margin-top: 15px;
}

.feature-list li {
    padding-left: 22px;
    margin-bottom: 8px;
    position: relative;
}

.feature-list li::before {
    content: "✔";
    position: absolute;
    left: 0;
    color: #00c853;
    font-weight: bold;
}

/* =========================
   FOOTER
   ========================= */
.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #1f2933;
    color: #ffffff;
    text-align: center;
    padding: 20px;
    font-size: 14px;
    z-index: 1000;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
}