@import url('https://fonts.googleapis.com/css2?family=Lexend:wght@300;400;500;600;700&display=swap');

:root {
    /* Colors */
    --color-bg: #FCF6F4;
    --color-text: #454545;
    --color-primary: #D35400;
    --color-primary-hover: #A04000;
    --color-nav-active: #333333;
    --color-border: #ACABB5;
    --color-white: #FFFFFF;

    /* Typography */
    --font-primary: 'Lexend', sans-serif;
}

/* Global Reset */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-primary);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* Typography Utilities */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s ease;
}

ul {
    list-style: none;
}

/* Utility Classes */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.secondary-button {
    display: inline-block;
    background-color: var(--color-white);
    border: 1px solid var(--color-border);
    color: var(--color-text);
    padding: 10px 20px;
    border-radius: 4px;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.secondary-button:hover {
    background-color: #f0f0f0;
    border-color: var(--color-text);
}

.primary-button {
    display: inline-block;
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: 12px 24px;
    border-radius: 4px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.primary-button:hover {
    background-color: var(--color-primary-hover);
}

/* =========================================
   Navigation Bar
   ========================================= */
/* =========================================
   Navigation Bar
   ========================================= */
header {
    background-color: var(--color-bg);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 10px 0;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 70px;
    padding: 10px 0;
}

.nav-brand {
    font-weight: 700;
    font-size: 1.4rem;
    color: var(--color-text);
    text-transform: none;
    letter-spacing: normal;
    max-width: 40%;
    line-height: 1.2;
}

/* Added Flex for desktop layout */
.nav-menu-container {
    display: flex;
    align-items: center;
    gap: 15px;
    /* Reduced from 30px to fit extra link */
}

.nav-links {
    display: flex;
    gap: 15px;
    /* Reduced from 20px */
    align-items: center;
}

.nav-link {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--color-text);
}

/* Intermediate breakpoint to prevent collision before mobile menu triggers */
@media (max-width: 1150px) {
    .nav-brand {
        font-size: 1.1rem;
    }

    .nav-link {
        font-size: 0.85rem;
    }

    .nav-menu-container,
    .nav-links {
        gap: 10px;
    }
}

.nav-link:hover,
.nav-link.active {
    color: var(--color-primary);
}

.nav-buttons {
    display: flex;
    gap: 10px;
    align-items: center;
}

.nav-buttons .primary-button,
.nav-buttons .secondary-button {
    white-space: nowrap;
    /* Prevent text wrapping */
    padding: 10px 15px;
    /* Slightly reduce padding if needed */
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: var(--color-text);
    border-radius: 3px;
}

/* =========================================
   Mobile Navigation
   ========================================= */
/* =========================================
   Mobile Navigation
   ========================================= */
@media (max-width: 1250px) {
    .nav-toggle {
        display: flex;
    }

    .nav-menu-container {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--color-bg);
        border-top: 1px solid var(--color-border);
        padding: 20px;
        flex-direction: column;
        display: none;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.05);
        /* Revert gap on container for mobile vertical stack */
        gap: 0;
    }

    .nav-menu-container.active {
        display: flex;
    }

    .nav-links {
        flex-direction: column;
        width: 100%;
        width: 100%;
        gap: 15px;
        margin-bottom: 20px;
    }

    .nav-buttons {
        flex-direction: column;
        width: 100%;
        gap: 0;
    }

    .nav-buttons .secondary-button,
    .nav-buttons .primary-button {
        width: 100%;
        display: block;
        margin-bottom: 10px;
        padding: 10px 20px;
        /* revert padding */
        font-size: 1rem;
        /* revert font size */
    }
}

/* =========================================
   Footer
   ========================================= */
footer {
    background-color: var(--color-bg);
    padding: 60px 0 20px;
    margin-top: 60px;
    border-top: 1px solid var(--color-border);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-column h3 {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: var(--color-text);
}

.footer-column p {
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a:hover {
    color: var(--color-primary);
    text-decoration: underline;
}


/* =========================================
   Hero Section
   ========================================= */
.hero-section {
    background-image: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), url('../images/hero.png');
    background-size: cover;
    background-position: center;
    height: 600px;
    display: flex;
    align-items: center;
    color: var(--color-white);
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.25rem;
    font-weight: 400;
    margin-bottom: 20px;
    font-style: italic;
}

/* =========================================
   Sections & Grids
   ========================================= */
.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.section-description {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
    font-size: 1.1rem;
    color: #666;
}

.bg-white {
    background-color: var(--color-bg);
}

.bg-light {
    background-color: var(--color-bg);
}

/* Values Grid */
.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    text-align: center;
}

.value-card {
    padding: 20px;
}

.value-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--color-primary);
}

/* Programs Grid */
.programs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.program-card {
    background-color: #FAE5D3;
    border: 1px solid var(--color-border);
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.program-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.program-card h3 {
    color: var(--color-text);
}

/* About Grid */
.about-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2px;
    /* Small gap for border effect */
    background-color: var(--color-border);
    border: 1px solid var(--color-border);
}

.about-item {
    background-color: var(--color-white);
    padding: 60px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.about-item h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.about-link {
    color: var(--color-primary);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.about-link:hover {
    gap: 10px;
    /* Slide arrow effect */
}

/* Responsive Adjusments */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }
}

/* Pagination Styles */
.pagination-btn {
    background-color: var(--color-primary);
    color: var(--color-white);
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-family: var(--font-primary);
    font-weight: 500;
    transition: background-color 0.2s ease;
}

.pagination-btn:hover:not(.disabled) {
    background-color: var(--color-primary-hover);
}

.pagination-btn.disabled {
    background-color: #ccc;
    cursor: not-allowed;
    opacity: 0.7;
}

/* =========================================
   Promo Video / Slideshow Section
   ========================================= */
.instructor-bio-grid {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

@media (max-width: 768px) {
    .instructor-bio-grid {
        flex-direction: column;
        align-items: center;
    }

    .instructor-bio-grid img {
        /* Revert to desktop size (300px via inline style) but ensure it fits screen if smaller */
        width: auto;
        max-width: 100%;
        height: auto;
    }
}

.promo-section {
    position: relative;
    width: 100%;
    height: 60vh;
    min-height: 500px;
    overflow: hidden;
    background-color: #000;
}

.promo-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.promo-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    z-index: 1;
}

.promo-slide.active {
    opacity: 1;
    z-index: 2;
}

.promo-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    /* Ken Burns Effect */
    transform: scale(1);
    transition: transform 6s ease-out;
}

.promo-slide.active img {
    transform: scale(1.1);
}

/* Gradient Overlay for Text Readability */
.promo-slide::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.6) 100%);
    z-index: 2;
}

.promo-text {
    position: absolute;
    bottom: 20%;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    text-align: center;
    width: 90%;
    max-width: 800px;
    z-index: 3;
    opacity: 0;
    transition: all 0.8s ease-out 0.3s;
    /* Delay text slightly */
}

.promo-slide.active .promo-text {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.promo-text h2 {
    font-family: var(--font-primary);
    font-size: 3rem;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
    margin: 0;
    letter-spacing: 1px;
}

/* Indicators */
.promo-indicators {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    z-index: 10;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.indicator.active,
.indicator:hover {
    background-color: #D35400;
    /* Primary Color */
    transform: scale(1.2);
}

@media (max-width: 768px) {
    .promo-text h2 {
        font-size: 2rem;
    }

    .promo-section {
        height: 50vh;
        min-height: 400px;
    }
}

/* =========================================
   Events Page Styles
   ========================================= */
.filter-bar {
    background-color: var(--color-white);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 40px;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
    border: 1px solid var(--color-border);
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
    min-width: 200px;
}

.filter-group label {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--color-text);
}

.filter-group select {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: var(--font-primary);
    font-size: 1rem;
    color: var(--color-text);
    background-color: #fff;
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.event-card {
    background-color: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
}

.event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
}