:root {
    /* Colors */
    --primary-blue: #0056b3;
    --primary-dark: #004494;
    --secondary-blue: #e6f0fa;
    --accent-color: #007bff;
    /* Brighter blue for actions */
    --text-dark: #333333;
    --text-light: #666666;
    --white: #ffffff;
    --background-light: #f8f9fa;
    --border-color: #e1e4e8;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;

    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);

    /* Transitions */
    --transition-fast: 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: --text-dark;
    /* Will need var() wrapper */
    line-height: 1.6;
    background-color: var(--white);
    color: var(--text-dark);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

ul {
    list-style: none;
}

/* Utilities */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--primary-blue);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
}

.btn-secondary {
    background-color: var(--white);
    color: var(--primary-blue);
    border-color: var(--primary-blue);
}

.btn-secondary:hover {
    background-color: var(--secondary-blue);
}

.btn-outline {
    border-color: var(--primary-blue);
    color: var(--primary-blue);
}

.btn-outline:hover {
    background-color: var(--primary-blue);
    color: var(--white);
}

/* Section Spacing */
section {
    padding: var(--spacing-lg) 0;
}

/* Header & Nav */
.header {
    background-color: var(--white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: var(--spacing-sm) 0;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 75px;
    object-fit: contain;
    /* Ensure aspect ratio */
    flex-shrink: 0;
    /* Prevent shrinking on mobile */
    max-width: 100%;
    /* Prevent overflow */
}

.nav-links {
    display: flex;
    gap: var(--spacing-md);
    align-items: center;
}

.nav-links a {
    font-weight: 500;
    color: var(--text-dark);
}

.nav-links a:hover {
    color: var(--primary-blue);
}

.btn-primary-nav {
    background-color: var(--primary-blue);
    color: var(--white) !important;
    padding: 8px 16px;
    border-radius: 4px;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1100;
}

.hamburger {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--primary-dark);
    position: relative;
    transition: all 0.3s ease-in-out;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 25px;
    height: 3px;
    background-color: var(--primary-dark);
    left: 0;
    transition: all 0.3s ease-in-out;
}

.hamburger::before {
    top: -8px;
}

.hamburger::after {
    top: 8px;
}

/* Hamburger Animation when Active */
.menu-toggle.active .hamburger {
    background-color: transparent;
}

.menu-toggle.active .hamburger::before {
    transform: rotate(45deg);
    top: 0;
}

.menu-toggle.active .hamburger::after {
    transform: rotate(-45deg);
    top: 0;
}

/* Responsive Nav */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .nav-links {
        display: block;
        position: fixed;
        /* Fixed to cover screen or scroll with it */
        top: 0;
        /* Start below header if you want, but fixed full screen often better or slide-in */
        right: -100%;
        /* Slide in from right */
        width: 70%;
        height: 100vh;
        background-color: var(--white);
        flex-direction: column;
        padding: 80px 20px 20px;
        /* Top padding to clear close button */
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease-in-out;
        z-index: 1000;
        overflow-y: auto;
    }

    .nav-links.active {
        display: flex;
        /* Or block depending on layout needs */
        right: 0;
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .nav-links li {
        width: 100%;
        border-bottom: 1px solid var(--border-color);
        padding-bottom: 10px;
    }

    .nav-links a {
        display: block;
        font-size: 1.1rem;
        width: 100%;
    }
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    padding: 0;
    overflow: hidden;
}

.hero-background-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-slide-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.hero-slide-img.active {
    opacity: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(23, 37, 84, 0.92) 0%, rgba(59, 130, 246, 0.85) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 900px;
    margin: 0 auto;
}

.badge {
    display: inline-block;
    background-color: var(--accent-color);
    color: var(--white);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.hero-section h1 {
    font-size: 3.5rem;
    color: var(--white);
    margin-bottom: var(--spacing-xs);
    line-height: 1.2;
    font-weight: 800;
    /* Bolder */
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.8rem;
    color: #ffd700;
    /* Gold/yellow highlight */
    font-weight: 700;
    /* Bolder */
    margin-bottom: var(--spacing-md);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.hero-subtext {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 1);
    /* Full opacity */
    margin-bottom: var(--spacing-lg);
    font-weight: 500;
}

/* Course Hightlight Switcher */
.course-highlight-container {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: var(--spacing-md);
    border-radius: 12px;
    margin-bottom: var(--spacing-lg);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.highlight-label {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.8;
    margin-bottom: var(--spacing-sm);
}

.course-switcher {
    position: relative;
    height: 80px;
    /* Specific height to prevent layout jumps */
    overflow: hidden;
}

.course-slide {
    display: none;
    animation: fadeIn 0.5s ease;
}

.course-slide.active {
    display: block;
}

.course-slide h3 {
    font-size: 1.8rem;
    color: var(--white);
    /* Changed from accent color to white for better contrast */
    margin-bottom: 5px;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.course-slide p {
    font-size: 1.2rem;
    color: var(--white);
    font-weight: 500;
}

/* CTA Support Text */
.cta-support-text {
    font-size: 1rem;
    margin-bottom: 5px;
    opacity: 0.9;
}

.cta-action-text {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: var(--spacing-md);
    color: var(--white);
}

/* SEO Hidden */
.seo-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.hero-btns {
    display: flex;
    gap: var(--spacing-sm);
    justify-content: center;
    flex-wrap: wrap;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .hero-section {
        height: auto;
        /* Allow content to grow vertically */
        min-height: 100vh;
        /* At least full screen */
        padding-top: 135px;
        /* Balanced spacing to clear header */
        padding-bottom: 80px;
        display: flex;
        align-items: center;
        justify-content: flex-start;
        /* Start from top instead of center to prevent cutting off */
        flex-direction: column;
    }

    .hero-section h1 {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .course-switcher {
        height: 220px;
        /* More height for mobile text wrap */
    }
}

/* Typography Headings */
h1,
h2,
h3 {
    font-weight: 700;
}

h2 {
    font-size: 2.5rem;
    color: var(--primary-blue);
    margin-bottom: var(--spacing-xs);
    text-align: center;
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

/* Stats Section */
.stats-section {
    background-color: var(--primary-blue);
    color: var(--white);
    text-align: center;
    padding: var(--spacing-lg) 0;
}

.stats-section h2 {
    color: var(--white);
    margin-bottom: var(--spacing-lg);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-md);
}

.stat-card {
    padding: var(--spacing-md);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
}

.stat-card h3 {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-xs);
    font-weight: 800;
}

/* About Section */
.about-section {
    text-align: center;
    background-color: var(--white);
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
    color: var(--text-dark);
}

.about-content p {
    margin-bottom: var(--spacing-sm);
}

/* Courses Section */
.courses-section {
    background-color: var(--background-light);
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.course-card {
    background-color: var(--white);
    padding: var(--spacing-md);
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

.course-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.icon-box {
    font-size: 3rem;
    margin-bottom: var(--spacing-sm);
    color: var(--primary-blue);
}

.course-card h3 {
    font-size: 1.25rem;
    color: var(--primary-dark);
    margin-bottom: var(--spacing-xs);
}

.view-all-container {
    text-align: center;
}

/* Why Pace Section */
.why-pace-section {
    text-align: center;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.feature-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    padding: var(--spacing-md);
    border-radius: 8px;
}

.feature-card h3 {
    color: var(--primary-blue);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.cta-container {
    margin-top: var(--spacing-md);
}

/* Secondary Info Section (Awards, Mission, Success) */
.secondary-info-section {
    background-color: var(--background-light);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-md);
}

.info-card {
    background: var(--white);
    padding: var(--spacing-md);
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
}

.highlight-bg {
    background-color: var(--primary-blue);
    color: var(--white);
}

.info-card.highlight-bg h3 {
    color: var(--white);
}

.info-card h3 {
    margin-bottom: var(--spacing-sm);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.3rem;
    color: var(--primary-dark);
}

.info-card ul {
    list-style-type: disc;
    padding-left: 20px;
}

.info-card li {
    margin-bottom: 5px;
}

.link-btn {
    display: inline-block;
    margin-top: var(--spacing-sm);
    color: var(--primary-blue);
    font-weight: 600;
}

/* Branches Section */
.branches-section {
    background-color: var(--white);
    text-align: center;
}

.branches-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
    justify-content: center;
    /* Center the grid items if they don't fill row */
}

.branch-card {
    background-color: var(--secondary-blue);
    padding: var(--spacing-md);
    border-radius: 8px;
    color: var(--primary-dark);
    text-align: left;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    box-shadow: var(--shadow-sm);
    /* Added subtle depth */
    transition: transform 0.3s ease;
}

.branch-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.branch-card h4 {
    color: var(--primary-blue);
    margin-bottom: var(--spacing-xs);
    font-size: 1.1rem;
    font-weight: 700;
}

.branch-card p {
    font-size: 0.95rem;
    color: var(--text-dark);
    line-height: 1.5;
    margin-bottom: var(--spacing-sm);
}

.map-link {
    display: inline-block;
    color: var(--accent-color);
    font-size: 0.9rem;
    font-weight: 600;
    margin-top: auto;
    /* Pushes link to bottom if card is flex */
}

.map-link:hover {
    text-decoration: underline;
}

/* Contact Section */
.contact-section {
    background-color: var(--primary-dark);
    color: var(--white);
    padding-bottom: var(--spacing-xl);
    /* Extra padding for balance */
}

.contact-section h2 {
    color: var(--white);
}

.contact-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    align-items: flex-start;
    gap: var(--spacing-lg);
    text-align: center;
}

.contact-info {
    text-align: left;
    max-width: 500px;
}

.contact-item {
    margin-bottom: var(--spacing-md);
}

.contact-item h4 {
    font-size: 1.1rem;
    color: var(--secondary-blue);
    margin-bottom: 5px;
}

.contact-actions {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

/* Footer */
.footer {
    background-color: #002a5c;
    /* Darker than primary */
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
    padding: var(--spacing-lg) 0;
}

.footer-cta {
    margin-bottom: var(--spacing-lg);
    padding-bottom: var(--spacing-lg);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-cta h3 {
    color: var(--white);
    margin-bottom: 0.5rem;
}

.footer-cta p {
    margin-bottom: var(--spacing-md);
    color: var(--secondary-blue);
}

.copyright {
    font-size: 0.9rem;
}