/*!
Theme Name: RevolutionED
Author: iCode
Author URI: http://iCode
Description: Description
Version: 1.0.0
*/

/* --- 1. Global Styles & Variables --- */
:root {
    --main-blue: #015c99;
    --accent-gold: #f8b735;
    --dark-navy: #0A2540;
    --light-gray: #f6f9fc;
    --white: #ffffff;
    --text-color-body: #525f7f;
    --border-radius: 12px;
    --transition-speed: 0.6s;
    --fast-transition: 0.3s;
    --slow-transition: 0.8s;
}

*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-color-body);
    line-height: 1.7;
    margin: 0;
    background-color: var(--white);
}

body.modal-is-open {
    overflow: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    color: var(--dark-navy);
    font-weight: 700;
    margin: 0;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); line-height: 1.1; margin-bottom: 1rem; text-shadow: 0 2px 10px rgba(0,0,0,0.1); }
h2 { font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: 1rem; }
h3 { font-size: 1.5rem; color: var(--main-blue); margin-bottom: 0.75rem; }
p { font-size: 1.1rem; margin-bottom: 1rem; }
a { color: var(--main-blue); text-decoration: none; transition: color var(--transition-speed); }
a:hover { color: var(--accent-gold); }
img { max-width: 100%; height: auto; }

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem auto;
}

.accent-line { 
    width: 80px; 
    height: 5px; 
    background: linear-gradient(90deg, var(--accent-gold) 0%, #f9c457 100%); 
    border-radius: 5px; 
    margin: 0 auto 1.5rem auto;
}

/* --- 2. Layout & Utility Classes --- */
.container {
    max-width: 1240px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 1.5rem;
}

section { 
    padding: 8rem 0;
    overflow-x: hidden;
}

.skip-link {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	width: 1px;
	word-wrap: normal !important;
}

/* --- 3. Header & Navigation --- */
.site-header {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(0,0,0,0.08);
    box-shadow: 0 2px 20px rgba(0,0,0,0.05);
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.site-branding .custom-logo {
    max-height: 60px;
    width: auto;
}

.main-navigation ul {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-navigation a {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--dark-navy);
    position: relative;
    padding: 0.5rem 0;
    transition: color var(--transition-speed) ease;
}

.main-navigation ul li {
    border-bottom: 3px solid transparent;
    transition: border-color var(--transition-speed) ease-in-out;
}

/* On hover, this changes the border color to your accent gold */
.main-navigation ul li:hover {
    border-bottom-color: var(--accent-gold);
}

.menu-toggle {
    display: none;
}

/* Show menu toggle on tablet and mobile */
@media (max-width: 1024px) {
    .menu-toggle {
        display: block;
    }
}

/* --- 4. Buttons --- */
.cta-buttons { display: flex; gap: 1rem; margin-top: 2rem; flex-wrap: wrap; justify-content: center; }
.btn { 
    display: inline-block; 
    padding: 1rem 2.5rem; 
    border-radius: 50px; 
    font-weight: 600; 
    text-align: center; 
    transition: all var(--transition-speed) cubic-bezier(0.4, 0, 0.2, 1); 
    cursor: pointer; 
    border: 2px solid transparent; 
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width var(--slow-transition) ease, height var(--slow-transition) ease;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary { 
    background-color: var(--accent-gold); 
    color: black !important; 
    border-color: var(--accent-gold); 
    box-shadow: 0 4px 15px rgba(248, 183, 53, 0.2);
}
.btn-primary:hover { 
    background-color: #f9c457; 
    transform: translateY(-4px) scale(1.02); 
    box-shadow: 0 15px 35px rgba(248, 183, 53, 0.4);
}
.btn-secondary { 
    background-color: rgba(255, 255, 255, 0.1); 
    backdrop-filter: blur(5px); 
    -webkit-backdrop-filter: blur(5px); 
    color: var(--white) !important; 
    border-color: rgba(255, 255, 255, 0.5); 
}
.final-cta-section .btn-secondary { color: var(--white) !important; border-color: var(--white); }
.btn-secondary:hover { 
    background-color: var(--white); 
    color: var(--main-blue) !important; 
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 12px 25px rgba(255, 255, 255, 0.3);
}

/* --- Stylish Login Button --- */
.site-header .btn-secondary {
    color: var(--main-blue) !important;
    background: linear-gradient(135deg, rgba(255,255,255,0.9) 0%, rgba(246,249,252,0.8) 100%);
    border: 2px solid var(--main-blue);
    font-size: 0.95rem;
    padding: 0.75rem 1.5rem;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(1, 92, 153, 0.1);
}

.site-header .btn-secondary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(248, 183, 53, 0.2), transparent);
    transition: left 0.6s;
}

.site-header .btn-secondary:hover::before {
    left: 100%;
}

.site-header .btn-secondary:hover {
    background: linear-gradient(135deg, var(--accent-gold) 0%, #f9c457 100%);
    color: var(--dark-navy) !important;
    border-color: var(--accent-gold);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(248, 183, 53, 0.3);
}

/* --- 5. Section Specific Styling --- */
/* .hero-section { background-size: cover; background-position: center center; color: var(--white); padding: 8rem 0; text-align: center; position: relative; }
.hero-section::before { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: linear-gradient(180deg, rgba(1, 44, 71, 0.7) 0%, rgba(10, 37, 64, 0.8) 100%); }
.hero-section .container { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; }
.hero-section h1 { color: var(--white); }
.hero-section .subhead { max-width: 700px; font-size: 1.25rem; opacity: 0.9; } */

/* --- HERO SECTION --- */
.hero-section {
    padding: 8rem 0;
    text-align: left;
    position: relative;
    color: var(--white);
    background: linear-gradient(110deg, var(--dark-navy) 40%, var(--main-blue) 100%);
}
.hero-section .container {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 0.8fr 1.2fr; 
    align-items: center;
    gap: 3rem;
    max-width: 1400px; 
}
.hero-section h1 { 
    color: var(--white);
    font-size: clamp(2.5rem, 4vw, 3.8rem);
    /* FIX: Set a minimum height to prevent layout shifts as text wraps */
    min-height: 2.5em; 
}
.hero-section .subhead { 
    max-width: 550px; 
    font-size: 1.25rem; 
    opacity: 0.9; 
    margin: 1rem 0 2rem 0; 
}
.hero-section .cta-buttons { 
    justify-content: flex-start; 
}
.hero-visual {
    /* background-color: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2); */
}
.hero-visual img {
    /* border-radius: 8px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    transition: all var(--slow-transition) cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer; */
}

.hero-visual img:hover {
    /* transform: scale(1.05);
    box-shadow: 0 25px 50px rgba(0,0,0,0.4); */
}
.hero-shape {
    position: absolute;
    top: -20%;
    right: -15%;
    width: 500px;
    height: 500px;
    background: linear-gradient(45deg, var(--accent-gold), var(--main-blue));
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.2;
    z-index: 1;
}

/* FIX: New rule for centering the third button */
.cta-button-centered {
    flex-basis: 100%;
    display: flex;
    justify-content: center;
    margin-top: 1rem;
}

/* --- NEW: Typing Text Animation --- */
.typing-text::after {
    content: '|';
    display: inline-block;
    animation: blink 0.7s infinite;
}
@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* --- 9. Partners Logo Scroller Section --- */
.partners-section {
    background-color: var(--light-gray, #f6f9fc);
    padding: 4rem 0;
}

/* UPDATED: Heading is now bold and dark navy */
.partners-section h3 {
    text-align: center;
    color: var(--dark-navy);
    font-weight: 700;
    margin-bottom: 3rem;
}

.logo-scroller {
    max-width: 1300px;
    margin: auto;
    overflow: hidden;
    position: relative;
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.logo-scroller-track {
    display: flex;
    gap: 5rem;
    width: max-content;
    /* UPDATED: Animation is now slower (60s vs 40s) */
    animation: scroll 90s linear infinite;
}

.logo-scroller-track:hover {
    animation-play-state: paused; /* Pause the scroll on hover */
}

.logo-scroller img {
    height: 80px;
    width: auto;
    /* UPDATED: Removed grayscale filter to show color logos */
    opacity: 0.9; /* Slightly faded by default */
    transition: all 0.8s ease;
}

.logo-scroller img:hover {
    opacity: 1;
    transform: scale(1.1);
}

/* The scrolling animation */
@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        /* This moves the track to the left by the width of the first set of logos */
        transform: translateX(calc(-50% - 1.5rem));
    }
}

.mission-section {
    background-color: var(--light-gray);
    padding: 6rem 0;
}
.mission-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr; /* Two columns, text side slightly larger */
    gap: 4rem;
    align-items: center;
}
.mission-image img {
    border-radius: var(--border-radius);
    box-shadow: 0 20px 50px -10px rgba(1, 92, 153, 0.25);
}
.mission-text .accent-line {
    margin: 0 0 1.5rem 0; /* Align accent line left */
}
.mission-text h2 {
    margin-bottom: 1.5rem;
}
.mission-content {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--text-color-body);
}
.mission-text .btn {
    margin-top: 2rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .mission-grid {
        grid-template-columns: 1fr; /* Stack columns on mobile */
        text-align: center;
    }
    .mission-text .accent-line {
        margin-left: auto;
        margin-right: auto; /* Center the line on mobile */
    }
    .mission-image {
        margin-bottom: 3rem;
        order: -1; /* Puts image on top on mobile */
    }
}

.who-we-serve-section { 
    background: linear-gradient(110deg, var(--dark-navy) 40%, var(--main-blue) 100%);
    position: relative;
    overflow: hidden;
    z-index: 1;
    padding: 6rem 0;
}
.who-we-serve-section .container { 
    position: relative; 
    z-index: 2; 
}
.who-we-serve-section h2 { 
    color: var(--white); 
    text-align: center;
    margin-bottom: 1rem;
}

.who-we-serve-section .section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem auto;
}

.who-we-serve-section .section-header .accent-line {
    background: linear-gradient(90deg, var(--accent-gold) 0%, #f9c457 100%);
}

.who-we-serve-section .section-header p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0;
}

.serve-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.serve-card {
    background-color: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: var(--border-radius);
    padding: 2.5rem 2.5rem;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: all var(--slow-transition) cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    min-height: auto;
}

.serve-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-gold) 0%, #f9c457 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-speed) ease;
}

.serve-card:hover::before {
    transform: scaleX(1);
}

.serve-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    border-color: var(--accent-gold);
    background-color: rgba(255, 255, 255, 0.1);
}

.serve-card-icon {
    width: 80px;
    height: 80px;
    background: transparent;
    border: 2px solid var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem auto;
    font-size: 2rem;
    color: var(--white);
    font-weight: 700;
    transition: all var(--transition-speed) cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.serve-card-icon::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--accent-gold), var(--white), var(--accent-gold));
    opacity: 0;
    transition: opacity var(--transition-speed) ease;
    z-index: -1;
}

.serve-card-icon:hover {
    border-color: var(--accent-gold);
    color: var(--accent-gold);
    transform: scale(1.1) rotate(5deg);
}

.serve-card:hover .serve-card-icon::after {
    opacity: 1;
}

.serve-card h3 {
    color: var(--accent-gold);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.serve-card p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.serve-card .btn {
    background-color: transparent;
    color: var(--white);
    border: 2px solid var(--white);
    padding: 0.75rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all var(--transition-speed);
}

.serve-card .btn:hover {
    background-color: var(--accent-gold);
    color: var(--dark-navy);
    border-color: var(--accent-gold);
    transform: translateY(-2px);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .who-we-serve-section {
        padding: 4rem 0;
    }
    
    .serve-cards-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        max-width: 600px;
    }
    
    .serve-card {
        padding: 2rem 1.5rem;
    }
    
    .serve-card-icon {
        width: 70px;
        height: 70px;
        font-size: 1.8rem;
        border: 2px solid var(--white);
    }
    
    .serve-card h3 {
        font-size: 1.3rem;
    }
    
    .serve-card p {
        font-size: 1rem;
    }
}

@media (max-width: 992px) and (min-width: 769px) {
    .serve-cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
        max-width: 1000px;
    }
    
    .serve-card {
        padding: 2rem 1.8rem;
    }
}

@media (max-width: 480px) {
    .serve-card {
        padding: 1.5rem 1rem;
    }
    
    .serve-card-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
        border: 2px solid var(--white);
    }
    
    .serve-cards-grid {
        gap: 1.5rem;
        max-width: 100%;
    }
}

/* --- ENHANCED SOLUTIONS SECTION (Dark Card Layout) --- */
.solutions-section {
    background-color: var(--light-gray);
    position: relative;
    overflow: hidden;
}
.solutions-section .container {
    position: relative;
    z-index: 2;
}

.solutions-alternating-layout {
    display: grid;
    gap: 3rem;
}

/* UPDATED: Added horizontal padding */
.solution-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    border-top: 4px solid var(--accent-gold);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    padding: 0 2.5rem;
    gap: 3rem; /* UPDATED: This adds space between the columns */
}
.solution-row:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 60px -15px rgba(1, 92, 153, 0.2);
}

.solution-row:nth-child(even) .solution-image {
    order: 2;
}

.solution-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: var(--border-radius);
    transition: all var(--transition-speed) cubic-bezier(0.4, 0, 0.2, 1);
}

.solution-image {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius);
}

.solution-row:hover .solution-image img {
    /* transform: scale(1.05); */
}

/* UPDATED: Adjusted padding to work with the parent's new padding */
.solution-text {
    padding: 3rem 1rem; /* Reduced horizontal padding */
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.solution-text h3 {
    margin-top: 0;
    color: var(--main-blue);
}
.solution-text p {
    color: var(--text-color-body);
}
.solution-text .btn {
    margin-top: 1.5rem;
}

.solutions-section .coming-soon {
    text-align: center;
    margin-top: 4rem;
    font-style: italic;
    color: #777;
}

/* Responsive stacking */
@media (max-width: 768px) {
    .solution-row {
        grid-template-columns: 1fr;
        padding: 1.5rem; /* Simplified padding for mobile */
    }
    .solution-image {
        order: -1 !important;
        height: 250px;
        object-fit: contain;
    }
    .solution-text {
        padding: 2rem 0 0 0; /* Adjusted padding for mobile */
        text-align: center;
    }
}



.promise-layout-grid { 
    display: grid; 
    grid-template-columns: 1fr 2fr; 
    gap: 4rem; 
    align-items: start; 
}

.promise-heading-area h2 { 
    margin-bottom: 2rem; 
}

.promise-image {
    margin-top: 1.5rem;
}

.promise-image img {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(1, 92, 153, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.promise-image img:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(1, 92, 153, 0.2);
}

.promise-grid { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 2rem; 
}

.promise-item {
    background: linear-gradient(135deg, var(--white) 0%, #fafbfc 100%);
    padding: 3rem;
    border-radius: 20px;
    border: 2px solid rgba(1, 92, 153, 0.08);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.promise-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(1, 92, 153, 0.05), transparent);
    transition: left 0.6s ease;
}

.promise-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-gold, #f8b735) 0%, #f9c457 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.6s ease;
}

.promise-item:hover::before {
    left: 100%;
}

.promise-item:hover::after {
    transform: scaleX(1);
}

.promise-item:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 25px 60px rgba(1, 92, 153, 0.12);
    border-color: var(--accent-gold, #f8b735);
    background: linear-gradient(135deg, var(--white) 0%, rgba(1, 92, 153, 0.02) 100%);
}

.promise-header {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.promise-icon {
    flex-shrink: 0;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(1, 92, 153, 0.1) 0%, rgba(248, 183, 53, 0.1) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.6s ease;
    border: 2px solid rgba(1, 92, 153, 0.2);
}

.promise-item:hover .promise-icon {
    transform: scale(1.1) rotate(5deg);
    background: linear-gradient(135deg, var(--accent-gold, #f8b735) 0%, #f9c457 100%);
    border-color: var(--accent-gold, #f8b735);
    box-shadow: 0 10px 25px rgba(248, 183, 53, 0.3);
}

.promise-icon svg {
    width: 32px;
    height: 32px;
    color: var(--main-blue, #015c99);
    transition: color 0.6s ease;
}

.promise-item:hover .promise-icon svg {
    color: var(--white);
}

.promise-item h3 {
    margin: 0;
    font-size: 1.5rem;
    color: var(--dark-navy, #1a365d);
    font-weight: 700;
}

.promise-description {
    /* padding-left: calc(70px + 2rem); Align with title */
}

.promise-description p {
    margin: 0;
    line-height: 1.7;
    font-size: 1.1rem;
    color: var(--text-color-body, #64748b);
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .promise-layout-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    
    .promise-heading-area {
        text-align: center;
    }
    
    .promise-image {
        display: flex;
        justify-content: center;
    }
    
    .promise-image img {
        max-width: 350px;
    }
}

@media (max-width: 768px) {
    .promise-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .promise-image img {
        max-width: 300px;
    }
    
    .promise-layout-grid {
        gap: 2rem;
    }
}


.final-cta-section { background: linear-gradient(135deg, var(--main-blue) 0%, var(--dark-navy) 100%); color: var(--white); text-align: center; position: relative; overflow: hidden; }
.final-cta-section::before { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; z-index: 1; }
.final-cta-section .container { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; }
.final-cta-section h2 { color: var(--white); }
.final-cta-section p { max-width: 600px; opacity: 0.9; }

/* --- 6. Footer --- */
.site-footer { background-color: var(--dark-navy); color: var(--white); padding: 3rem 0; text-align: center; }
.site-footer .site-info { opacity: 0.7; font-size: 0.9rem; }
.site-footer a { color: var(--white); text-decoration: underline; }
.site-footer a:hover { color: var(--accent-gold); }

/* --- 7. Contact Modal --- */
.contact-modal, .demo-modal { display: none; }
.contact-modal.is-visible, .demo-modal.is-visible { display: block; }

.modal-overlay { 
    position: fixed; top: 0; left: 0; width: 100%; height: 100%; 
    background-color: rgba(10, 37, 64, 0.8); 
    backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); 
    z-index: 9998; 
    display: flex; 
    padding: 1.5rem; 
    overflow-y: auto; 
    opacity: 0; 
    animation: fadeIn 0.3s ease-out forwards; 
}
.modal-content { 
    background-color: var(--white); 
    border-radius: var(--border-radius); 
    padding: 2.5rem 3rem; 
    max-width: 600px; 
    width: 100%; 
    position: relative; 
    box-shadow: 0 20px 40px rgba(0,0,0,0.2); 
    text-align: center; 
    opacity: 0; 
    transform: translateY(20px) scale(0.95); 
    animation: slideUp 0.4s 0.1s ease-out forwards; 
    margin: auto;
}
@keyframes fadeIn { to { opacity: 1; } }
@keyframes slideUp { to { opacity: 1; transform: translateY(0) scale(1); } }

.modal-close { position: absolute; top: 1rem; right: 1.5rem; background: transparent; border: none; font-size: 2.5rem; line-height: 1; color: #aaa; cursor: pointer; transition: color var(--transition-speed); }
.modal-close:hover { color: var(--dark-navy); }
.modal-header h2 { font-size: 2rem; margin: 0 0 0.5rem 0; }
.modal-header p { margin-bottom: 2rem; }
.modal-form-container .gform_wrapper { text-align: left; }
.modal-form-container .gform_wrapper .gfield_label { font-weight: 600; color: var(--dark-navy); }
.modal-form-container .gform_wrapper .gform_button { background-color: var(--accent-gold); color: white; border: 2px solid var(--accent-gold); padding: 0.8rem 2rem; border-radius: 50px; font-weight: 600; cursor: pointer; transition: all var(--transition-speed); }
.modal-form-container .gform_wrapper .gform_button:hover { background-color: #f9c457; color: white; transform: translateY(-2px); }

/* --- 8. Responsive Design --- */
@media (max-width: 1024px) {
    /* Tablet - Show menu button instead of full menu */
    .main-navigation { 
        display: none; 
    }
    
    .menu-toggle { 
        display: block; 
        background: transparent; 
        border: 2px solid var(--dark-navy); 
        color: var(--dark-navy); 
        padding: 0.5rem 0.75rem; 
        border-radius: 8px; 
        font-weight: 600; 
        cursor: pointer;
        z-index: 1002;
        font-size: 0.9rem;
        transition: all var(--transition-speed);
        min-width: 80px;
    }

    .menu-toggle:hover {
        background-color: var(--dark-navy);
        color: var(--white);
    }
    
    .main-navigation.toggled {
        display: block;
        position: absolute; 
        top: calc(100% + 1rem); 
        left: 1rem;
        right: 1rem;
        background: var(--white); 
        box-shadow: 0 15px 35px rgba(0,0,0,0.15); 
        border-radius: var(--border-radius); 
        padding: 1.5rem; 
        width: calc(100% - 2rem); 
        z-index: 1001;
        text-align: left;
        border: 1px solid rgba(0,0,0,0.1);
    }
    
    .main-navigation.toggled ul { 
        display: block; 
        flex-direction: column; 
        gap: 0;
    }
    
    .main-navigation.toggled ul li { 
        margin: 0; 
        width: 100%; 
        border-bottom: 1px solid var(--light-gray);
        padding: 0;
    }
    
    .main-navigation.toggled ul li:last-child {
        border-bottom: none;
    }
    
    .main-navigation.toggled ul a { 
        display: block; 
        padding: 1rem; 
        width: 100%; 
        font-size: 1rem;
        transition: all var(--transition-speed);
    }
    
    .main-navigation.toggled ul a:hover { 
        background-color: var(--light-gray); 
        border-radius: 8px; 
        color: var(--main-blue);
    }

    /* Hero Section - Disable typing animation */
    .typing-text::after {
        display: none;
    }
}

@media (max-width: 992px) {
    .promise-layout-grid { grid-template-columns: 1fr; text-align: center; }
    .promise-heading-area .accent-line { margin-left: auto; margin-right: auto; }
    .promise-heading-area h2 { text-align: center; }
    
    /* Hero section adjustments */
    .hero-section .container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }
    .hero-section .cta-buttons {
        justify-content: center;
    }
    
    /* Partners section */
    .logo-scroller img {
        height: 60px;
    }
    
    /* Mission section */
    .mission-grid {
        gap: 3rem;
    }
    
    /* Disable typing animation for tablet/mobile */
    .typing-text::after {
        display: none;
    }
}

@media (max-width: 768px) {
    h1 { font-size: clamp(2rem, 6vw, 2.8rem); }
    h2 { font-size: clamp(1.5rem, 5vw, 2rem); }
    h3 { font-size: 1.3rem; }
    section { padding: 3rem 0; }
    
    .container {
        padding: 0 1rem;
    }
    
    /* Header Mobile Fix */
    .site-header {
        padding: 0.75rem 0;
    }
    
    .site-header .container {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        flex-wrap: nowrap !important;
        position: relative;
    }
    
    .site-branding {
        flex: 1 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: flex-start !important;
    }
    
    .site-branding .custom-logo,
    .site-branding img,
    .custom-logo {
        max-height: 50px !important;
        height: 50px !important;
        width: auto !important;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .header-cta {
        display: none !important; /* Hide on mobile to prevent layout issues */
    }
    
    .main-navigation { 
        display: none;
        position: absolute;
        width: 100%;
        top: 100%;
        left: 0;
        z-index: 1001;
    }

    .menu-toggle { 
        display: block; 
        background: transparent; 
        border: 2px solid var(--dark-navy); 
        color: var(--dark-navy); 
        padding: 0.5rem 0.75rem; 
        border-radius: 8px; 
        font-weight: 600; 
        cursor: pointer;
        z-index: 1002;
        font-size: 0.9rem;
        transition: all var(--transition-speed);
        min-width: 80px;
    }

    .menu-toggle:hover {
        background-color: var(--dark-navy);
        color: var(--white);
    }
    
    .main-navigation.toggled {
        display: block;
        position: absolute; 
        top: calc(100% + 1rem); 
        left: 1rem;
        right: 1rem;
        background: var(--white); 
        box-shadow: 0 15px 35px rgba(0,0,0,0.15); 
        border-radius: var(--border-radius); 
        padding: 1.5rem; 
        width: calc(100% - 2rem); 
        z-index: 1001;
        text-align: left;
        border: 1px solid rgba(0,0,0,0.1);
    }
    .main-navigation.toggled ul { 
        display: block; 
        flex-direction: column; 
        gap: 0;
    }
    .main-navigation.toggled ul li { 
        margin: 0; 
        width: 100%; 
        border-bottom: 1px solid var(--light-gray);
        padding: 0;
    }
    .main-navigation.toggled ul li:last-child {
        border-bottom: none;
    }
    .main-navigation.toggled ul a { 
        display: block; 
        padding: 1rem; 
        width: 100%; 
        font-size: 1rem;
        transition: all var(--transition-speed);
    }
    .main-navigation.toggled ul a:hover { 
        background-color: var(--light-gray); 
        border-radius: 8px; 
        color: var(--main-blue);
    }

    /* Hero Section Mobile - Show static text properly */
    .hero-section {
        padding: 4rem 0;
    }
    .hero-section .container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    .hero-section h1 {
        min-height: auto;
    }
    .hero-section .subhead {
        font-size: 1.1rem;
        max-width: 100%;
    }
    .hero-section .cta-buttons {
        justify-content: center;
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
    }
    .hero-visual {
        padding: 1rem;
    }
    
    /* Disable typing animation for mobile and show static text */
    .typing-text::after {
        display: none;
    }
    
    /* Show static combined text on mobile */
    #typing-text {
        display: none;
    }
    
    .typing-text::before {
        content: "Partnering with educators, Innovating with purpose, Inspiring future-ready students.";
        display: block;
        color: var(--white);
        font-size: inherit;
        line-height: inherit;
    }

    /* Partners Section Mobile */
    .partners-section {
        padding: 3rem 0;
    }
    .logo-scroller img {
        height: 50px;
    }
    .logo-scroller-track {
        gap: 3rem;
    }

    /* Mission Section Mobile */
    .mission-section {
        padding: 4rem 0;
    }

    /* Who We Serve Section Mobile */
    .who-we-serve-section {
        padding: 4rem 0;
    }
    .serve-row {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 1.5rem;
        max-height: none;
        gap: 1.5rem;
    }
    .serve-row:nth-child(even) .serve-image {
        order: 0;
    }
    .serve-image {
        margin-bottom: 1rem;
        height: 200px;
    }
    .serve-text .btn {
        margin-left: auto;
        margin-right: auto;
        width: auto;
        display: inline-block;
    }

    /* Solutions Section Mobile */
    .solutions-section {
        padding: 4rem 0;
    }
    .solution-row {
        grid-template-columns: 1fr;
        padding: 1.5rem;
        gap: 1.5rem;
    }
    .solution-image {
        order: -1 !important;
        height: 250px;
        width: 100%;
        margin-bottom: 1rem;
    }
    .solution-image img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        object-position: center;
    }
    .solution-text {
        padding: 1.5rem 0 0 0;
        text-align: center;
    }
    .solution-text .btn {
        margin-left: auto;
        margin-right: auto;
        width: auto;
        display: inline-block;
    }

    /* Promise Section Mobile */
    .promise-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .promise-item {
        padding: 1.5rem;
        text-align: center;
    }

    /* Final CTA Section Mobile */
    .final-cta-section {
        padding: 4rem 0;
    }
    .final-cta-section .cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
    }

    /* Footer Mobile */
    .site-footer {
        padding: 2rem 0;
    }

    /* Modal Mobile */
    .modal-overlay {
        padding: 1rem;
    }
    .modal-content {
        padding: 2rem 1.5rem;
        margin: auto 0;
    }
}

@media (max-width: 480px) {
    h1 { font-size: clamp(1.8rem, 8vw, 2.2rem); }
    h2 { font-size: clamp(1.4rem, 6vw, 1.8rem); }
    h3 { font-size: 1.2rem; }
    p { font-size: 1rem; }
    
    .container {
        padding: 0 0.75rem;
    }
    
    .site-header .container {
        padding: 0 0.75rem;
    }
    
    section {
        padding: 2.5rem 0;
    }
    
    /* Buttons Mobile */
    .btn { 
        width: 100%; 
        box-sizing: border-box; 
        padding: 0.9rem 1.5rem;
        font-size: 0.95rem;
    }
    
    .cta-buttons {
        width: 100%;
    }
    
    /* Hero Section Extra Small */
    .hero-section {
        padding: 3rem 0;
    }
    .hero-section .subhead {
        font-size: 1rem;
    }
    
    /* Partners Section Extra Small */
    .partners-section {
        padding: 2rem 0;
    }
    .logo-scroller img {
        height: 40px;
    }
    .logo-scroller-track {
        gap: 2rem;
    }
    
    /* Mission/Solutions/Serve sections */
    .mission-section,
    .solutions-section,
    .who-we-serve-section {
        padding: 3rem 0;
    }
    
    .serve-row,
    .solution-row {
        padding: 1rem;
    }
    
    .serve-image,
    .solution-image {
        height: 180px;
    }
    
    .promise-item {
        padding: 1.25rem;
    }
    
    .final-cta-section {
        padding: 3rem 0;
    }
    
    /* Modal Extra Small */
    .modal-content {
        padding: 1.5rem 1rem;
    }
    
    .modal-header h2 {
        font-size: 1.5rem;
    }
}

/* --- 6. Custom Header & Mega Menu Styles --- */
/* Header Layout & Sizing */
.site-header .container {
    position: static;
}

/* Header Layout & Sizing */
.site-header > .container {
    max-width: 1600px;
    padding: 0 clamp(1.5rem, 4vw, 3rem);
}
.site-header .site-branding,
.site-header .header-cta {
    flex-grow: 0;
    flex-shrink: 0;
}
.site-header .main-navigation {
    flex-grow: 1;
}

/* Creates a "bridge" to prevent menu from disappearing on hover */
.main-navigation > ul > li {
    padding-bottom: 1.5rem;
    margin-bottom: -1.5rem;
}

/* Button Layout & Visibility */
.header-cta {
    display: flex;
    align-items: center;
    gap: 1rem;
    white-space: nowrap;
}

/* --- Mega Menu Panel Styling --- */
.mega-menu-panel {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--white);
    /* UPDATED: Shadow is now primarily at the bottom */
    box-shadow: 0 15px 35px -5px rgba(1, 92, 153, 0.1);
    z-index: 999;
    /* UPDATED: Removed border-top and added a styled border-bottom */
    border-bottom: 3px solid var(--accent-gold);
    opacity: 0;
    visibility: hidden;
    transform: translateY(0);
    transition: opacity 0.3s ease, visibility 0s 0.3s;
}

.mega-menu-item:hover > .mega-menu-panel {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s ease, visibility 0s 0s;
}

.mega-menu-container {
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 3rem;
    width: 80%;
    margin: 0 auto;
    padding: 2.5rem 1.5rem;
}

.mega-menu-column {
    width: 100%;
    margin: 0 auto;
    text-align: center; /* Center align text within mega menu sections */
}

.mega-menu-heading {
    font-size: 1rem;
    font-weight: 700;
    color: var(--main-blue);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 1.5rem 0;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--accent-gold);
}

.mega-menu-column ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* UPDATED: List items are now styled cards with shadow */
.mega-menu-column li {
    width: 100%; /* Ensure all items have equal width */
    margin-bottom: 1rem;
    border-radius: var(--border-radius, 8px);
    background-color: var(--white);
    border: 1px solid #eef;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05); /* Default shadow */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* UPDATED: On hover, the card lifts and gets a colored shadow */
.mega-menu-column li:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(248, 183, 53, 0.4); /* Colored shadow on hover */
}

/* Link now fills the entire card area */
.mega-menu-column ul a {
    display: block;
    padding: 1rem;
    text-decoration: none;
    border-radius: var(--border-radius, 8px);
    font-size: 1rem; /* Updated font size to 1rem */
}

.menu-item-title {
    display: block;
    font-weight: 600;
    color: var(--dark-navy, #0A2540);
    margin-bottom: 0.25rem;
    font-size: 1.1rem;
}

.menu-item-description {
    display: block;
    font-weight: 400;
    font-size: 1rem;
    line-height: 1.5;
    color: var(--text-color-body, #525f7f);
}

/* --- PRIVACY & SECURITY SECTION --- */
.privacy-security-section {
    background-color: var(--white);
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}

.privacy-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.privacy-content h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--main-blue);
    margin-bottom: 2rem;
    line-height: 1.2;
}

.privacy-content .highlight-text {
    background: linear-gradient(135deg, var(--main-blue) 0%, var(--dark-navy) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

.privacy-content p {
    font-size: 1.2rem;
    color: var(--text-color-body);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.privacy-content .safeguards-text {
    font-weight: 600;
    color: var(--dark-navy);
}

.privacy-badges {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.privacy-rating-card {
    background: linear-gradient(135deg, rgba(1, 92, 153, 0.08) 0%, rgba(10, 37, 64, 0.05) 100%);
    border: 3px solid var(--main-blue);
    border-radius: 24px;
    padding: 3rem 2rem;
    margin-bottom: 3rem;
    position: relative;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    box-shadow: 0 20px 40px rgba(1, 92, 153, 0.15);
    transition: all var(--transition-speed) ease;
}

.privacy-rating-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 60px rgba(1, 92, 153, 0.25);
}

.privacy-rating-card::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    background: linear-gradient(135deg, var(--main-blue) 0%, var(--dark-navy) 100%);
    border-radius: 24px;
    z-index: -1;
}

.privacy-rating-number {
    font-size: 5rem;
    font-weight: 900;
    color: var(--white);
    line-height: 1;
    margin-bottom: 0.5rem;
    text-shadow: 0 4px 8px rgba(1, 92, 153, 0.3);
}

.privacy-rating-text {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.privacy-certified-text {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-top: 2px solid rgba(255, 255, 255, 0.3);
    padding-top: 1rem;
}

.compliance-badges {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
}

.compliance-badge {
    background: linear-gradient(135deg, var(--white) 0%, #f8f9fc 100%);
    border: 3px solid var(--main-blue);
    border-radius: 16px;
    padding: 1.2rem 1rem;
    font-size: 0.9rem;
    font-weight: 800;
    color: var(--main-blue);
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all var(--transition-speed);
    position: relative;
    overflow: hidden;
    text-align: center;
    box-shadow: 0 8px 20px rgba(1, 92, 153, 0.1);
}

.compliance-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(1, 92, 153, 0.1), transparent);
    transition: left 0.5s;
}

.compliance-badge:hover {
    background: linear-gradient(135deg, var(--main-blue) 0%, var(--dark-navy) 100%);
    color: var(--white);
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 15px 30px rgba(1, 92, 153, 0.3);
}

.compliance-badge:hover::before {
    left: 100%;
}

.sso-section {
    background-color: var(--light-gray);
    padding: 4rem 0;
    text-align: center;
}

.sso-content h3 {
    font-size: 2rem;
    color: var(--dark-navy);
    margin-bottom: 1rem;
}

.sso-content p {
    font-size: 1.1rem;
    color: var(--text-color-body);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.sso-providers {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
}

.sso-provider {
    background: var(--white);
    border: 2px solid transparent;
    border-radius: 12px;
    padding: 1.5rem 2rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    transition: all var(--transition-speed);
    /* cursor: pointer; */
    display: flex;
    align-items: center;
    gap: 1rem;
    font-weight: 600;
    color: var(--dark-navy);
}

.sso-provider:hover {
    border-color: var(--accent-gold);
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(248, 183, 53, 0.2);
}

.sso-icon {
    width: 32px;
    height: 32px;
    border-radius: 6px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .privacy-container {
        grid-template-columns: 1fr;
        gap: 3rem;
        padding: 0 1rem;
    }
    
    .privacy-content {
        text-align: center;
        order: 2;
    }
    
    .privacy-badges {
        order: 1;
    }
    
    .privacy-rating-card {
        padding: 2.5rem 1.5rem;
        margin-bottom: 2rem;
    }
    
    .privacy-rating-number {
        font-size: 4rem;
    }
    
    .privacy-rating-text {
        font-size: 1.2rem;
        letter-spacing: 1px;
    }
    
    .privacy-certified-text {
        font-size: 0.9rem;
    }
    
    .sso-providers {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .sso-provider {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    
    .compliance-badges {
        grid-template-columns: 1fr;
        gap: 0.75rem;
        max-width: 250px;
    }
    
    .compliance-badge {
        padding: 1rem;
        font-size: 0.85rem;
        letter-spacing: 0.5px;
    }
}

@media (max-width: 480px) {
    .privacy-rating-card {
        padding: 2rem 1rem;
    }
    
    .privacy-rating-number {
        font-size: 3.5rem;
    }
    
    .privacy-rating-text {
        font-size: 1rem;
        line-height: 1.3;
    }
    
    .privacy-certified-text {
        font-size: 0.8rem;
    }
    
    .compliance-badge {
        padding: 0.8rem;
        font-size: 0.8rem;
    }
}

/* --- Highlighted Card Effect for Mega Menu Navigation --- */
.serve-card.highlighted-card {
    animation: highlightPulse 1s ease-in-out;
    transform: translateY(-15px) scale(1.05);
    box-shadow: 0 30px 60px rgba(248, 183, 53, 0.4);
    border-color: var(--accent-gold);
    background-color: rgba(255, 255, 255, 0.15);
}

.serve-card.highlighted-card::before {
    transform: scaleX(1);
    height: 6px;
    background: linear-gradient(90deg, var(--accent-gold) 0%, #f9c457 50%, var(--accent-gold) 100%);
    animation: borderShimmer 2s ease-in-out infinite;
}

.serve-card.highlighted-card .serve-card-icon {
    border-color: var(--accent-gold);
    color: var(--accent-gold);
    transform: scale(1.2);
    animation: iconGlow 2s ease-in-out infinite alternate;
}

@keyframes highlightPulse {
    0% { 
        transform: translateY(-12px) scale(1.02); 
        box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    }
    50% { 
        transform: translateY(-20px) scale(1.08); 
        box-shadow: 0 35px 70px rgba(248, 183, 53, 0.5);
    }
    100% { 
        transform: translateY(-15px) scale(1.05); 
        box-shadow: 0 30px 60px rgba(248, 183, 53, 0.4);
    }
}

@keyframes borderShimmer {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

@keyframes iconGlow {
    0% { 
        box-shadow: 0 0 20px rgba(248, 183, 53, 0.3);
    }
    100% { 
        box-shadow: 0 0 30px rgba(248, 183, 53, 0.6);
    }
}

/* --- Enhanced Mega Menu Panel Transitions --- */
.mega-menu-panel {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--white);
    box-shadow: 0 15px 35px -5px rgba(1, 92, 153, 0.1);
    z-index: 999;
    border-bottom: 3px solid var(--accent-gold);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all var(--transition-speed) cubic-bezier(0.4, 0, 0.2, 1);
}

.mega-menu-item:hover > .mega-menu-panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
@media (max-width: 1024px) {
    .main-navigation > ul > li {
        padding-bottom: 0;
        margin-bottom: 0;
    }
    .main-navigation.toggled .mega-menu-panel {
        display: none;
        position: static;
        box-shadow: none;
        border: none;
        padding: 0.5rem 0 0.5rem 0.5rem;
        background-color: var(--light-gray);
        opacity: 1;
        visibility: visible;
        border-radius: 8px;
        margin-top: 0.5rem;
    }
    .main-navigation.toggled .mega-menu-item.open > .mega-menu-panel {
        display: block;
    }
    /* This makes columns stack vertically on mobile/tablet */
    .mega-menu-panel .mega-menu-container {
        display: block;
        padding: 0.25rem;
    }
    .main-navigation.toggled .mega-menu-panel a {
        padding: 0.5rem 0.5rem;
        font-size: 0.95rem;
        font-weight: 400;
    }
    .main-navigation.toggled .mega-menu-column {
        margin-bottom: 1.5rem;
        text-align: left; /* Override center alignment for mobile/tablet */
    }
    .main-navigation.toggled .mega-menu-column:last-child {
        margin-bottom: 0;
    }
    .main-navigation.toggled .mega-menu-heading {
        font-size: 0.95rem;
        margin-bottom: 1rem;
        text-align: left; /* Override center alignment for mobile/tablet */
    }
    .main-navigation.toggled .mega-menu-column li {
        margin-bottom: 0.5rem;
        box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    }
    .main-navigation.toggled .menu-item-title {
        font-size: 1rem;
    }
    .main-navigation.toggled .menu-item-description {
        font-size: 0.9rem;
    }
}

/* Compliance Images - Responsive Display */
.compliance-images {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-top: 2rem;
}

.compliance-images .compliance-img {
    max-width: 150px;
    height: auto;
    object-fit: contain;
}

/* Show/hide based on screen size */
.desktop-tablet-only {
    display: flex;
}

.desktop-tablet-only .compliance-img {
    width: 150px !important;
}

.mobile-only {
    display: none;
}

.mobile-only .compliance-img {
    width: 100px !important;
}

/* Mobile styles */
@media (max-width: 767px) {
    .desktop-tablet-only {
        display: none;
    }
    
    .mobile-only {
        display: flex;
    }
    
    .compliance-images .compliance-img {
        max-width: 200px;
    }
}
/* --- Image Modal Styles --- */
.hero-image-clickable {
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.image-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.image-modal.is-visible {
    display: flex !important;
    opacity: 1;
    align-items: center;
    justify-content: center;
}

.image-modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90vh;
    margin: auto;
    animation: zoomIn 0.3s ease;
}

.image-modal-content img {
    width: 100%;
    height: auto;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
}

.image-modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: transparent;
    border: none;
    color: var(--white);
    font-size: 2.5rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
    z-index: 10001;
}

.image-modal-close:hover {
    transform: scale(1.1);
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

@media (max-width: 768px) {
    .image-modal-close {
        top: 10px;
        right: 10px;
        background: rgba(0, 0, 0, 0.5);
        border-radius: 50%;
    }
    
    .image-modal-content {
        max-width: 95%;
    }
}
