﻿/* IMM BRANDED STYLESHEET
   Colors: Blue (#005696), Gold (#FFD700)
*/

:root {
    --imm-blue: #005696;
    --imm-gold: #FFD700;
    --imm-gold-hover: #e6c200;
    --dark-text: #333;
    --light-bg: #f4f7f9;
    --white: #ffffff;
}

html {
    scroll-behavior: smooth;
}

form, #aspnetForm, .main-body-content {
    overflow: visible !important;
    height: auto !important;
}

form {
    margin-top: 80px;
}

.main-body-content {
    padding-top: 0 !important;
    background-color: #f8f9fa;
    padding-bottom: 40px;
} 

form#aspnetForm {
    height: auto !important;
    min-height: 100% !important;
    overflow: visible !important;
    display: block !important;
}

.container {
    width: 100%; /* Allows it to shrink */
    max-width: 1200px; /* Limits size on desktop */
    margin: 0 auto;
    padding: 20px; /* Reduced from 40px for better mobile spacing */
    box-sizing: border-box; /* Ensures padding doesn't add to width */
}
/* This stops the page from expanding horizontally */
html, body {
    width: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden; /* CRITICAL: This hides the AOS 'ghost' elements */
    position: relative;
}

/* Also ensure the main form/container doesn't grow */
form#aspnetForm, .container {
    max-width: 100%;
    overflow-x: hidden;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Open Sans', 'Helvetica Neue', Arial, sans-serif;
}

body {
    background-color: var(--light-bg);
    line-height: 1.6;
    color: var(--dark-text);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6, .section-title, .logo, .nav-links a {
    font-family: 'Montserrat', sans-serif;
    letter-spacing: -0.02em; /* Slightly tighter for a premium feel */
}

/* --- STICKY HEADER & NAVIGATION --- */

.main-header {
    position: fixed;
    top: 0;
    background: var(--white);
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    z-index: 9999; /* Increased to ensure it stays above everything */
    width: 100%;
}

.main-body-content {
    overflow: visible !important;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2%;
    height: 80px;
    max-width: 1300px;
    margin: auto;
}

.nav-links a.active {
    color: var(--imm-gold) !important;
    font-weight: 800;
    background-color: transparent !important;
}

/* LOGO SECTION */
.logo {
    display: flex;
    align-items: center;
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -1px;
    cursor: pointer;
}

.logo-imm {
    color: var(--imm-blue);
    border-bottom: 4px solid var(--imm-gold);
    margin-right: 5px;
}

.logo-sstc {
    color: var(--dark-text);
}

/* DESKTOP LINKS */
.nav-links {
    display: flex;
    list-style: none;
    height: 100%;
    align-items: center;
    flex-wrap: nowrap;
}

    .nav-links > li {
        position: relative;
        display: flex;
        align-items: center;
        height: 100%;
    }

    .nav-links a {
        text-decoration: none;
        color: var(--imm-blue);
        font-weight: 600;
        padding: 10px 15px;
        font-size: 0.85rem;
        transition: all 0.3s ease;
        white-space: nowrap;
    }

        .nav-links a:hover {
            color: var(--imm-gold);
        }

/* --- DROPDOWN LOGIC --- */

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    min-width: 260px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    border-top: 4px solid var(--imm-gold);
    list-style: none;
    padding: 0;
    overflow: visible;
    z-index: 1000;
}

    /* The Bridge */
    .dropdown-content::before {
        content: "";
        position: absolute;
        top: -15px;
        left: 0;
        width: 100%;
        height: 15px;
        background: transparent;
    }

    .dropdown-content li {
        width: 100%;
        border-bottom: 1px solid #eeeeee;
    }

        .dropdown-content li:last-child {
            border-bottom: none;
        }

        .dropdown-content li a {
            padding: 12px 20px; /* Slightly reduced vertical padding */
            display: flex; /* Use flexbox to align text and arrow */
            justify-content: space-between;
            align-items: center;
            font-size: 0.9rem; /* Slightly smaller font to fit long text */
            color: #555;
            font-weight: 400;
            text-decoration: none;
        }

            .dropdown-content li a:hover {
                background-color: #f9f9f9;
                color: var(--imm-blue);
            }

/* Hover Triggers */
.dropdown:hover > .dropdown-content {
    display: block;
    animation: fadeIn 0.3s ease;
}

/* --- SIDEWAYS SUB-MENU --- */

.dropdown-content li.dropdown {
    position: relative;
}

.dropdown-content .dropdown .dropdown-content {
    top: -1px;
    left: 100%;
    margin-top: 0px;
    border-top: none;
    border-left: 4px solid var(--imm-gold);
    box-shadow: 8px 8px 20px rgba(0,0,0,0.1);
    z-index: 3000;
}

.dropdown-content li.dropdown:hover > .dropdown-content {
    display: block;
}

.dropdown-content .dropdown > a .fa-caret-down {
    float: right;
    transform: rotate(-90deg);
    margin-top: 5px;
    font-size: 0.8rem;
    color: #999;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- CERTIFICATION SECTION STYLING --- */
.main-content {
    background-color: var(--light-bg);
    padding: 60px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.main-content .section-title {
    color: var(--imm-blue);
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

    /* Gold underline below the title */
    .main-content .section-title::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 60px;
        height: 4px;
        background: var(--imm-gold);
    }

.section-subtitle {
    font-family: 'Open Sans', sans-serif;
    color: #555;
    font-size: 1.1rem;
    font-weight: 400;
    margin-top: 5px;
}

/* --- ICON SLIDER (FIXED FOR 6 ICONS) --- */
.icon-slider {
    overflow: hidden;
    width: 100%;
    background: transparent;
    padding: 20px 0;
}

.icon-track {
    display: flex;
    /* Track is 200% width because it holds 12 icons (2 sets of 6) */
    width: 200%;
    animation: steppedScroll 20s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite;
}

.icon-card {
    /* (100% of the 200% track) / 14 items = 7.1429% per item */
    width: 7.1429%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}

    .icon-card img {
        width: 150px; /* Enlarged icons */
        height: auto;
        filter: drop-shadow(0 5px 15px rgba(0,0,0,0.05));
        transition: transform 0.3s ease;
    }

/* STEPPED ANIMATION LOGIC */
@keyframes steppedScroll {
    0%, 15% {
        transform: translateX(0);
    }

    16.6%, 31% {
        transform: translateX(-8.3333%);
    }
    /* Move 1 icon */
    33.3%, 48% {
        transform: translateX(-16.6666%);
    }
    /* Move 2 icons */
    50%, 65% {
        transform: translateX(-25%);
    }
    /* Move 3 icons */
    66.6%, 81% {
        transform: translateX(-33.3333%);
    }
    /* Move 4 icons */
    83.3%, 98% {
        transform: translateX(-41.6666%);
    }
    /* Move 5 icons */
    100% {
        transform: translateX(-50%);
    }
    /* Reset to start of 2nd set */
}

/* Pause when the user hovers over the icons */
.icon-slider:hover .icon-track {
    animation-play-state: paused;
}

/* --- MOBILE MENU --- */

.menu-toggle {
    display: none;
}

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
}

    .hamburger span {
        display: block;
        height: 3px;
        width: 100%;
        background-color: var(--imm-blue);
        border-radius: 3px;
    }

/* --- HERO & SLIDESHOW --- */

.hero {
    background: linear-gradient(rgba(0, 86, 150, 0.9), rgba(0, 45, 80, 0.9)), url('https://images.unsplash.com/photo-1581092160562-40aa08e78837?auto=format&fit=crop&w=1350&q=80');
    background-size: cover;
    background-position: center;
    color: var(--white);
    padding: 120px 5%;
    text-align: center;
}

.slideshow-container {
    max-width: 100%;
    position: relative;
    height: 70vh;
}

.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    padding: 16px;
    color: white;
    font-size: 24px;
    background-color: rgba(0,0,0,0.5);
    z-index: 100;
}

.next {
    right: 0;
}

.prev {
    left: 0;
}

.mySlides {
    display: none;
    height: 100%;
}

    .mySlides img {
        object-fit: cover;
        height: 100%;
        width: 100%;
    }

/* Fix for desktop image cropping in slideshow */
@media (min-width: 769px) {
    .slideshow-container {
        height: auto !important; /* Allow the container to scale with the image */
        max-height: 600px; /* Optional: Sets a maximum height so it doesn't get too huge */
        overflow: hidden;
    }

    .mySlides img {
        width: 100% !important;
        height: auto !important; /* Forces the image to maintain its original proportions */
        object-fit: contain !important; /* Ensures the whole image is shown without cropping */
        display: block;
    }
}

/* --- EDGE FLIP LOGIC --- */

.nav-links li.edge .dropdown-content {
    left: auto;
    right: 0;
}

    .nav-links li.edge .dropdown-content .dropdown .dropdown-content {
        left: auto;
        right: 100%;
        border-left: none;
        border-right: 4px solid var(--imm-gold);
    }

    .nav-links li.edge .dropdown-content .dropdown > a .fa-caret-down {
        transform: rotate(90deg); /* Points the arrow to the left */
    }

/* --- RESPONSIVE MEDIA QUERY --- */

@media (max-width: 992px) {
    /* 1. Show hamburger and ensure it stays on top */
    .hamburger {
        display: flex;
        position: relative;
        z-index: 3001;
    }

    /* 2. Reset the nav-links container to stack vertically */
    .nav-links {
        position: fixed;
        top: 80px;
        left: 0; /* Set to 0 so it's horizontally centered/filled */
        width: 100%;
        max-height: 0; /* Changed from height: calc(...) and left: -100% */
        background: var(--white);
        display: block;
        overflow: hidden; /* Changed from overflow-y: auto to hide content while closed */
        transition: max-height 0.5s ease-in-out; /* Smooth vertical expansion */
        z-index: 3000;
        padding: 0;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        white-space: normal !important; /* Overrides the 'nowrap' behavior */
        line-height: 1.4; /* Adds space between the wrapped lines */
        word-wrap: break-word;
    }

        /* 3. Force list items to take full width and stack */
        .nav-links > li {
            display: block !important; /* Forces vertical stacking */
            width: 100%;
            height: auto !important; /* Removes desktop 100% height */
            border-bottom: 1px solid #eee;
        }

    /* 4. Dropdown Logic - Reset positioning to stack inside the flow */
    .dropdown-content,
    .dropdown-content .dropdown .dropdown-content {
        position: static !important; /* Key fix: puts sub-menu UNDER parent */
        display: none;
        width: 100% !important;
        box-shadow: none !important;
        border: none !important;
        padding-left: 25px !important; /* Indent sub-menus */
        background: #fcfcfc !important;
        transform: none !important; /* Remove desktop animations */
    }

        .dropdown-content li a {
            padding: 15px 25px !important;
            white-space: normal !important;
            line-height: 1.3 !important;
        }

    /* Show sub-menus on interaction */
    .nav-links li:hover > .dropdown-content, .nav-links li:focus-within > .dropdown-content {
        display: block;
    }

    /* 5. Mobile Link Styling */
    .nav-links a {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 18px 20px;
        color: var(--imm-blue);
        width: 100%;
        text-align: left;
        font-weight: 600;
        font-size: 0.9rem;
        text-transform: uppercase;
    }

    /* 6. Arrow Resets */
    .dropdown > a .fa-caret-down {
        float: none;
        transform: rotate(0deg) !important;
        margin-left: auto;
    }

    /* 7. Show menu when checkbox is checked */
    .menu-toggle:checked ~ .nav-links {
        max-height: 100vh;
    }

    /* Hamburger Animation */
    .menu-toggle:checked ~ .hamburger span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }

    .menu-toggle:checked ~ .hamburger span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle:checked ~ .hamburger span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }
}

/* --- MOBILE RESPONSIVENESS FOR ICON SLIDER --- */
@media (max-width: 768px) {
    .section-header {
        margin-bottom: 30px;
    }

    .main-content .section-title {
        font-size: 1.6rem; /* Smaller title for mobile */
    }

    .icon-track {
        /* We have 12 items. To show 2 at a time, 
           the track must be 600% of the container width (12 / 2 = 6) */
        width: 600%;
        animation: steppedScrollMobile 15s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite;
    }

    .icon-card {
        /* 100% of track / 12 items = 8.33% per item */
        width: 8.3333%;
    }

        .icon-card img {
            width: 110px; /* Slightly smaller icons for mobile screens */
        }

    /* Animation for Mobile: Moves 16.66% per step (which is 2 icons) 
       to cycle through the 6 pairs */
    @keyframes steppedScrollMobile {
        0%, 20% {
            transform: translateX(0);
        }

        25%, 45% {
            transform: translateX(-16.6666%);
        }
        /* Show next 2 */
        50%, 70% {
            transform: translateX(-33.3333%);
        }
        /* Show next 2 */
        75%, 95% {
            transform: translateX(-50%);
        }
        /* Loop reset point */
        100% {
            transform: translateX(-50%);
        }
    }
}


.main-footer {
    background: #001f3f; /* Solid deep navy to match the brand */
    color: #ffffff;
    padding-top: 20px; /* Reduced slightly from 50px */
}

.footer-grid {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 40px;
    padding-bottom: 40px; /* Synchronized spacing value */
}

.footer-column {
    flex: 1; /* Each column takes equal width */
    min-width: 300px; /* Ensures responsiveness on smaller screens */
    display: flex;
    flex-direction: column;
}

.footer-title {
    border-bottom: 2px solid #a0915f; /* Gold accent line */
    padding-bottom: 15px;
    margin-bottom: 25px;
    font-size: 1.4rem;
    font-weight: bold;
}

.map-container #embed-map-display,
.map-container iframe {
    height: 100% !important;
    min-height: 300px; /* Prevents it from disappearing on mobile */
    border-radius: 4px; /* Optional: adds a slight rounded edge like the screenshot */
}

.contact-details p {
    font-size: 0.95rem;
    line-height: 1.4; /* Reduced from 1.8 to 1.4 */
    margin-bottom: 15px; /* Reduced spacing after address */
}

.contact-links {
    list-style: none;
    padding: 0;
}

    .contact-links li {
        margin-bottom: 5px; /* Reduced spacing between email/phone/web */
        line-height: 1.2;
    }

    .contact-links a {
        color: #ffffff;
        text-decoration: none;
        transition: color 0.3s;
    }

        .contact-links a:hover {
            color: #FFD700;
        }

    .contact-links i {
        margin-right: 10px;
        width: 20px;
    }

.social-icons {
    margin-top: auto; /* Pushes social icons to the bottom of the text column */
    padding-top: 15px;
}

    .social-icons img {
        width: 24px;
        height: 24px;
        margin-right: 15px;
        transition: opacity 0.3s;
    }

        .social-icons img:hover {
            opacity: 0.7;
        }

.footer-copy {
    background: #001f3f;
    padding: 0px 0; /* Synchronized spacing value (Top and Bottom) */
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

    .footer-copy p {
        margin: 0;
        font-size: 0.85rem;
        line-height: 1; /* Ensures no extra "invisible" height is added by the font */
        opacity: 0.7;
    }

/* Responsive fix for mobile */
@media (max-width: 768px) {
    .footer-grid {
        flex-direction: column; /* Stacks the map on top of the text */
        gap: 30px; /* Space between the map and the text column */
        padding-bottom: 20px; /* Keep synchronized with your copyright bar */
    }

    .footer-column {
        width: 100%; /* Ensure both map and text take full width */
        min-width: 100%;
        text-align: center; /* Centers text for a cleaner mobile look */
    }

    .footer-title {
        display: inline-block; /* Allows the gold border to center with text */
        width: auto;
        margin-bottom: 15px;
    }

    .contact-links li i {
        margin-right: 5px; /* Tighten icon space for small screens */
    }

    .social-icons {
        justify-content: center; /* Centers the FB/LinkedIn/IG icons */
        display: flex;
    }

    .map-container iframe {
        height: 250px !important; /* Slightly shorter map for mobile viewing */
    }
}


/* --- PAGE HEADER / BREADCRUMB --- */
.page-title-bar {
    background-color: var(--light-bg);
    padding: 40px 0;
    border-bottom: 1px solid #ddd;
    margin-bottom: 40px;
}

.page-title {
    color: var(--imm-blue);
    font-size: 2.2rem;
    font-weight: 700;
}

.breadcrumb {
    font-size: 0.9rem;
    color: #666;
    margin-top: 10px;
}

    .breadcrumb a {
        color: var(--imm-blue);
        text-decoration: none;
    }

    .breadcrumb span {
        margin: 0 8px;
    }

/* --- SIDEBAR & MAIN FLEX LAYOUT --- */
.profile-flex-container {
    display: flex;
    align-items: flex-start; /* CRITICAL: Allows sidebar to be shorter than content */
    gap: 40px;
    position: relative;
    overflow: visible !important; /* Ensure no parent clips the sticky child */
}

.sidebar-nav {
    flex: 1;
    min-width: 250px;
    background: var(--white);
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border-top: 4px solid var(--imm-gold);
}

.sidebar-title {
    color: var(--imm-blue);
    font-size: 1.2rem;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.sidebar-nav ul {
    list-style: none;
    padding: 0;
}

.sidebar-nav li {
    border-bottom: 1px solid #eee;
}

    .sidebar-nav li a {
        display: block;
        padding: 12px 0;
        color: #555;
        text-decoration: none;
        transition: 0.3s;
    }

        .sidebar-nav li.active a, .sidebar-nav li a:hover {
            color: var(--imm-blue);
            font-weight: 700;
            padding-left: 5px;
        }

/* --- MAIN CONTENT AREA --- */
.main-text-area {
    flex: 3;
    text-align: justify;
}

.content-section {
    margin-bottom: 40px;
    scroll-margin-top: 120px;
}

.content-heading {
    color: var(--imm-blue);
    border-bottom: 2px solid var(--imm-gold);
    display: inline-block;
    padding-bottom: 5px;
    margin-bottom: 20px;
}

.vision-quote {
    font-style: italic;
    font-size: 1.3rem;
    color: #555;
    border-left: 5px solid var(--imm-gold);
    padding-left: 20px;
    margin: 20px 0;
}

.styled-list {
    list-style: none;
    padding: 0;
}

    .styled-list li {
        position: relative;
        padding-left: 25px;
        margin-bottom: 12px;
    }

        .styled-list li::before {
            content: "\f058"; /* FontAwesome check-circle */
            font-family: "Font Awesome 6 Free";
            font-weight: 900;
            position: absolute;
            left: 0;
            color: var(--imm-gold);
        }

/* --- MOBILE RESPONSIVENESS --- */
@media (max-width: 992px) {
    .profile-flex-container {
        flex-direction: column;
    }

    .sidebar-nav {
        width: 100%;
        margin-bottom: 30px;
    }
}

/* --- BRANDED SIDEBAR BOX --- */
.sidebar-branded-box {
    flex: 0 0 300px;
    position: -webkit-sticky;
    position: sticky;
    top: 100px;
    z-index: 100;
    height: fit-content !important; /* Forces it to not stretch */
    align-self: flex-start;
    /* This overrides AOS if it tries to hide the sidebar after a resize */
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
}


.brand-box-header {
    background-color: var(--imm-blue);
    padding: 40px 20px;
    text-align: center;
    border-bottom: 5px solid var(--imm-gold);
    position: relative;
}

/* Create a white circle for the logo */
.brand-box-logo-container {
    background: white;
    width: 100px;
    height: 100px;
    margin: 0 auto 15px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    border: 3px solid var(--imm-gold);
}

.brand-box-logo {
    max-width: 100%;
    height: auto;
}

.brand-box-title {
    color: var(--white);
    font-size: 1.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0;
}

.brand-box-content {
    padding: 20px 0;
}

.brand-box-tagline {
    text-align: center;
    font-size: 0.85rem;
    color: #777;
    font-weight: 600;
    margin-bottom: 20px;
    padding: 0 15px;
}

.brand-box-nav ul {
    list-style: none;
    padding: 0;
}

.brand-box-nav li {
    transition: all 0.3s ease;
}

    .brand-box-nav li a {
        display: flex;
        align-items: center;
        padding: 15px 25px;
        color: var(--imm-blue);
        text-decoration: none;
        font-weight: 600;
        border-left: 4px solid transparent;
    }

    .brand-box-nav li i {
        font-size: 0.7rem;
        margin-right: 15px;
        transition: transform 0.3s ease;
    }

    .brand-box-nav li.active a,
    .brand-box-nav li a:hover {
        background-color: #f8f9fa;
        color: var(--imm-blue);
        border-left: 4px solid var(--imm-gold);
    }

        .brand-box-nav li a:hover i {
            transform: translateX(5px);
        }

/* Ensure responsiveness */
@media (max-width: 992px) {
    .profile-flex-container {
        flex-direction: column;
    }

    .sidebar-branded-box {
        width: 100%;
        position: relative;
        top: 0;
        margin-bottom: 40px;
    }
}

/* --- VISION SECTION REDESIGN --- */
.vision-container {
    display: flex;
    align-items: center;
    gap: 30px;
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.vision-image img {
    max-width: 200px;
    height: auto;
    border-radius: 5px;
}

.vision-quote {
    flex: 1;
    margin: 0 !important; /* Overriding default margins */
    font-size: 1.2rem;
}

/* --- MISSION GRID REDESIGN --- */
.mission-grid {
    display: grid;
    grid-template-columns: 1fr; /* Stacked on mobile */
    gap: 20px;
    margin-top: 20px;
}

.mission-item {
    display: flex;
    align-items: center;
    gap: 20px;
    background: #fff;
    padding: 15px 20px;
    border-left: 5px solid var(--imm-gold);
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

    .mission-item img {
        width: 60px; /* Adjust size of mission icons */
        height: 60px;
        object-fit: contain;
    }

    .mission-item p {
        margin: 0;
        font-weight: 600;
        color: var(--dark-text); /* Charcoal instead of Blue */
    }

.benefits-item {
    display: flex;
    align-items: center;
    gap: 20px;
    background: #fff;
    padding: 15px 20px;
    border-left: 5px solid var(--imm-gold);
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

    .benefits-item img {
        width: 60px; /* Adjust size of mission icons */
        height: 60px;
        object-fit: contain;
    }

    .benefits-item p {
        margin: 0;
        font-weight: 100;
        color: var(--dark-text); /* Charcoal instead of Blue */
    }

        .benefits-item p b {
            font-weight: 900;
            color: var(--imm-blue);
        }

/* Responsive Tablet/Desktop */
@media (min-width: 768px) {
    .mission-grid {
        grid-template-columns: 1fr; /* Keep 1 column for long text, or 1fr 1fr for two columns */
    }

    .vision-container {
        flex-direction: row;
    }
}

@media (max-width: 767px) {
    .vision-container {
        flex-direction: column;
        text-align: center;
    }
}

.pdf-viewer-container {
    width: 100%;
    height: 800px;
    border: 1px solid #ddd;
    border-radius: 8px;
    /*overflow: hidden;*/
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

@media (max-width: 768px) {
    .pdf-viewer-container {
        /*height: 500px;*/
    }
}

/* Floating WhatsApp Button Container */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: transform 0.3s ease;
}

    .whatsapp-float:hover {
        transform: scale(1.05);
    }

/* The WhatsApp Icon Circle */
.ctc-analytics {
    background-color: #25D366;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0px 4px 15px rgba(0,0,0,0.4); /* Slightly deeper shadow for contrast */
    order: 2;
}

/* "Chat with us" Text - NEW STYLE for visibility */
.whatsapp-float::before {
    content: "Contact us via Whatsapp";
    order: 1;
    background-color: #ffffff; /* White background to stand out from navy footer */
    color: var(--imm-blue); /* Navy text for legibility */
    padding: 8px 18px;
    border-radius: 25px;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 600;
    margin-right: 12px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0px 4px 10px rgba(0,0,0,0.2);
    border: 2px solid var(--imm-gold); /* Gold border to tie in brand colors */
}

/* Hover Behavior */
.whatsapp-float:hover::before {
    opacity: 1;
    visibility: visible;
}

/* Hide the text bubble on mobile phones only */
@media (max-width: 480px) {
    .whatsapp-float::before {
        display: none !important;
    }
}

/* Ensure it remains functional/visible for tablet and desktop */
@media (min-width: 481px) {
    .whatsapp-float:hover::before {
        opacity: 1;
        visibility: visible;
        margin-right: 15px;
    }
}

.page-header-top {
    text-align: center;
    margin-bottom: 25px;
    padding-top: 20px;
}

    .page-header-top h1 {
        color: var(--imm-blue);
        font-size: 2.2rem;
        font-weight: 800;
        position: relative;
        display: inline-block;
        padding-bottom: 10px;
        max-width: 900px;
        line-height: 1.2;
    }

        .page-header-top h1::after {
            content: "";
            position: absolute;
            bottom: 0;
            left: 30%;
            width: 40%;
            height: 3px;
            background: var(--imm-gold);
        }

.event-details-list {
    list-style: none;
    padding: 0;
    margin: 15px 0;
    background: #fdfdfd;
    padding: 15px;
    border-left: 4px solid var(--imm-gold);
    border-top: 1px solid #eee;
    border-right: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

    .event-details-list li {
        margin-bottom: 12px; /* Increased slightly for better readability */
        font-size: 0.9rem;
        color: #000;
        display: flex; /* Use flex to align label and content */
        flex-direction: row;
        align-items: flex-start;
    }

        .event-details-list li strong {
            color: var(--imm-blue);
            flex: 0 0 110px; /* Gives the label a fixed basis without breaking the line */
            margin-right: 10px;
            display: inline-block;
        }

/* Responsive fix for very narrow screens */
@media (max-width: 480px) {
    .event-details-list li {
        flex-direction: column; /* Stack label on top of content for tiny screens */
    }

        .event-details-list li strong {
            flex: none;
            width: 100%;
            margin-bottom: 2px;
        }

    .page-header-top h1 {
        font-size: 1.6rem; /* Shrink title slightly so it doesn't overwhelm mobile */
    }
}


.event-flex-container {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    margin-bottom: 25px;
    border-top: 5px solid var(--imm-blue);
}

.news-image-side {
    flex: 0 0 450px;
}

    .news-image-side img {
        width: 100%;
        height: auto;
        border-radius: 4px;
        box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    }

.news-content-side {
    flex: 1;
}

.article-text {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #333;
    text-align: justify;
}

    .article-text p {
        margin-bottom: 12px;
    }

.pdf-section {
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

.pdf-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f1f1f1;
}

    .pdf-header h3 {
        color: var(--imm-blue);
        font-weight: 700;
        margin: 0;
        font-size: 1.2rem;
        display: flex;
        align-items: center;
    }

        .pdf-header h3::before {
            content: "\f1c1";
            font-family: "Font Awesome 5 Free";
            font-weight: 900;
            margin-right: 10px;
            color: #d9534f;
        }

.pdf-viewer-frame {
    width: 100%;
    height: 750px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.btn-fullscreen {
    display: inline-block;
    background: var(--imm-blue);
    color: #fff;
    padding: 7px 15px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    transition: 0.3s;
}

    .btn-fullscreen i {
        margin-right: 5px;
    }

    .btn-fullscreen:hover {
        background: var(--imm-gold);
        color: #333;
    }

@media (max-width: 992px) {
    .event-flex-container {
        flex-direction: column;
    }

    .news-image-side {
        flex: none;
        width: 100%;
    }

    .pdf-viewer-frame {
        height: 500px;
    }
}

.content-section {
    background: #fff;
    padding: 40px;
    border-radius: 8px;
    margin-bottom: 30px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    border-top: 6px solid #005696;
}

.event-image-side {
    flex: 0 0 400px;
}

    .event-image-side img {
        width: 100%;
        border-radius: 4px;
        margin-bottom: 10px;
        border: 1px solid #ddd;
        padding: 5px;
        background: #fff;
    }

.image-caption {
    font-size: 0.85rem;
    font-style: italic;
    margin-bottom: 30px;
    color: #666;
    line-height: 1.4;
    text-align: justify;
}

.event-content-side {
    flex: 1;
    text-align: justify;
    position: relative;
}

    .event-content-side p {
        margin-bottom: 18px;
        line-height: 1.8;
        color: #333;
    }

/* Full-width Author Card */
.member-row-full {
    display: flex;
    align-items: stretch; /* Ensures both sides are equal height */
    margin: 0;
    margin-bottom: 30px;
    background: #ffffff;
    border-radius: 8px;
    border: 1px solid #e1e4e8;
    box-shadow: 0 3px 12px rgba(0,0,0,0.04);
    width: 100%; /* Spans full width of column */
    overflow: hidden;
}

/* Left Side: Author Info */
.author-side {
    flex: 1.2;
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px 30px;
    background: #fff;
}

    .author-side img {
        width: 70px;
        height: 70px;
        object-fit: cover;
        border-radius: 50%; /* Circle looks cleaner in full-width rows */
        border: 2px solid #f0f0f0;
    }

.author-text {
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Right Side: Event Details with Angle */
.event-side {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 20px 35px;
    background: #f8f9fa; /* Subtle Gray */
    border-left: 1px solid #eee;
    position: relative;
}

    /* The subtle "slant" effect (Optional - remove this block if you want a straight line) */
    .event-side::before {
        content: "";
        position: absolute;
        top: 0;
        left: -15px;
        width: 30px;
        height: 100%;
        background: #f8f9fa;
        transform: skewX(-5deg);
        border-left: 1px solid #eee;
    }

    .event-side i {
        width: 25px;
        color: #005696; /* Back to IMM Blue */
        font-size: 1.1rem;
        margin-bottom: 5px;
    }

.event-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 4px 0;
    font-size: 0.9rem;
    color: #444;
    position: relative; /* Keeps text above the slant effect */
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
    .event-flex-container {
        gap: 25px;
    }

    .event-image-side {
        flex: 0 0 320px;
    }
}

@media (max-width: 992px) {
    .event-flex-container {
        flex-direction: column;
    }

    .event-image-side {
        width: 100%;
        max-width: 100%;
        flex: none;
    }

    .content-section {
        padding: 25px;
    }
}

@media (max-width: 768px) {
    .member-row-full {
        flex-direction: column;
    }

    .event-side {
        border-left: none;
        border-top: 1px solid #eee;
        padding: 20px 30px;
    }

    .page-header-top h1 {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .author-side {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }

        .author-side img {
            margin-bottom: 10px;
        }

    .content-section {
        padding: 15px;
    }
}

.ResponsiveGridView {
    border-collapse: collapse;
    border: 1px solid #002147; /* Dark blue border to match IMM branding */
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
}

    .ResponsiveGridView th {
        padding: 12px;
        text-align: left;
        border-bottom: 2px solid #D4AF37; /* Gold accent line */
    }

    .ResponsiveGridView td {
        padding: 10px;
        border-bottom: 1px solid #ddd;
    }
/* Mobile optimization */
@media screen and (max-width: 768px) {
    .ResponsiveGridView {
        display: block;
        overflow-x: auto;
    }
}

/* Membership Page Container */
.membership-card {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin: 20px 0;
    overflow: hidden;
    border-top: 5px solid var(--imm-gold); /* Gold Accent */
}

.membership-header {
    padding: 20px;
    background: #f8f9fa;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #eee;
}

    .membership-header h2 {
        margin: 0;
        color: var(--imm-blue);
        font-size: 1.5rem;
    }

/* Search UI */
.search-box {
    display: flex;
    gap: 0;
}

.search-input {
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px 0 0 4px;
    outline: none;
    width: 250px;
}

.search-btn {
    background: #002147;
    color: white !important;
    padding: 10px 20px;
    border-radius: 0 4px 4px 0;
    text-decoration: none;
    transition: 0.3s;
}

    .search-btn:hover {
        background: var(--imm-gold);
    }

    .search-btn i {
        margin-right: 5px;
    }

/* Modern GridView Styling */
.table-container {
    padding: 10px;
    overflow-x: auto;
}

.custom-grid {
    border-collapse: collapse;
    margin-top: 10px;
}

.grid-header {
    background-color: #002147;
    color: #ffffff;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

    .grid-header th {
        padding: 15px 10px;
        text-align: left;
        white-space: nowrap;
    }

.grid-row td, .grid-row-alt td {
    padding: 12px 10px;
    border-bottom: 1px solid #efefef;
    color: #444;
}

.grid-row-alt {
    background-color: #fafafa;
}

.custom-grid tr:hover {
    background-color: #fff9e6; /* Very light gold hover */
    transition: 0.2s;
}

.custom-grid .grid-header:hover {
    background-color: #002147;
    transition: 0.2s;
}

/* Container for the search and table */
.membership-header {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 15px;
}

@media screen and (max-width: 768px) {
    /* Stack the search bar on mobile */
    .membership-header {
        flex-direction: column;
        align-items: stretch;
    }

    .search-input {
        width: 100%;
    }

    /* Force the table to not behave like a table */
    .responsive-table,
    .responsive-table thead,
    .responsive-table tbody,
    .responsive-table th,
    .responsive-table td,
    .responsive-table tr {
        display: block;
    }

        /* Hide table headers (but keep for screen readers) */
        .responsive-table thead tr {
            position: absolute;
            top: -9999px;
            left: -9999px;
        }

        .responsive-table tr {
            border: 1px solid #ddd;
            margin-bottom: 15px;
            border-radius: 8px;
            background: #fff;
        }

        .responsive-table td {
            border: none;
            border-bottom: 1px solid #eee;
            position: relative;
            padding-left: 50% !important;
            text-align: right !important;
            min-height: 40px;
        }

            /* Label the data using the data-header attribute we added in VB */
            .responsive-table td:before {
                position: absolute;
                left: 10px;
                width: 45%;
                padding-right: 10px;
                white-space: nowrap;
                content: attr(data-header);
                font-weight: bold;
                color: #002147; /* IMM Blue */
                text-align: left;
            }

            .responsive-table td:last-child {
                border-bottom: none;
            }

    .grid-header th { 
        white-space: normal!important;
    }
}

@media (max-width: 768px) {
    /* 1. This handles the 'Closed' state */
    .nav-links {
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        max-height: 0;        /* Keep this at 0 so it stays hidden when closed */
        overflow-y: auto;     /* Keep scroll enabled for when it's open */
        background: var(--white);
        display: block;
        transition: max-height 0.5s ease-in-out;
        z-index: 3000;
        -webkit-overflow-scrolling: touch;
    }

    /* 2. This handles the 'Open' state (When checkbox is checked) */
    .menu-toggle:checked ~ .nav-links {
        max-height: calc(100vh - 80px); /* Limit height to screen so it scrolls */
    }

    /* 3. Dropdown Logic - ensure these stay relative for mobile scrolling */
    .dropdown-content {
        position: static !important; /* Forces menu to expand downwards */
        display: none;
        width: 100% !important;
        background: #fcfcfc !important;
    }

    /* Show submenu when parent is hovered or clicked (based on your JS) */
    .nav-links li:hover > .dropdown-content {
        display: block;
    }
}

