/* ===== Global / Shared Foundations ===== */
:root{
    color-scheme: only light;
}

html {
    font-size: 100%;
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

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

body {
    font-family: 'Open Sans', sans-serif;
    background-color: #F2EFE6;
    color: var(--dark-text);
    line-height: 1.6;
    font-size: clamp(1rem, calc(0.95rem + 0.23vw), 1.125rem);
}

h1, h2, h3, h4, .logo, .nav-links a, .btn, .card-title, .section-title {
    font-family: 'Poppins', sans-serif;
}

h1 {
    font-size: clamp(2rem, calc(1.4rem + 2.2vw), 3.2rem);
    line-height: 1.15;
}

h2 {
    font-size: clamp(1.6rem, calc(1.2rem + 1.4vw), 2.4rem);
    line-height: 1.2;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}
.container-programs {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
    padding-bottom: 80px;
}

/* Theme color palette */
:root {
    --cream: rgb(242, 239, 230);
    --red: #C80C1F;
    --yellow: #F8E52E;
    --stone: #918179;
    --light-text: #5a5a5a;
    --dark-text: #3E3B33;
    --soft-red: #FEC7C1;
    --pink: #FEC7C1;
}

/* ===== Shared Components ===== */
/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 48px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    text-align: center;
}

.btn-primary {
    background-color: var(--red);
    color: #FFFFFF;
    box-shadow: 0 4px 10px rgba(200, 12, 31, 0.3);
}

.btn-primary:hover {
    background-color: #a00a1a;
    transform: translateY(-2px);
}

.btn-outline-light {
    background: transparent;
    border: 2px solid #FFFFFF;
    color: #FFFFFF;
}

.btn-outline-light:hover {
    background: #FFFFFF;
    color: var(--red);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--red);
    color: var(--red);
}

.btn-outline:hover {
    background: var(--red);
    color: #FFFFFF;
}

.btn-whatsapp {
    background-color: #25D366;
    color: #FFFFFF;
}
.btn-whatsapp:hover {
    background-color: #1da15a;
}

/* Navbar */
.navbar {
    background: var(--cream);
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 4px 0;
    border-bottom: 3px solid var(--red);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.hamburger {
    display: none;
    background: none;
    border: none;
    font-size: 1.7rem;
    color: var(--dark-text);
    cursor: pointer;
    padding: 8px;
    line-height: 1;
    z-index: 1001;
}

.hamburger:hover {
    color: var(--red);
}

.drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.42);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.drawer-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.drawer-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: min(90vw, 380px);
    height: 100vh;
    background: #FFFFFF;
    z-index: 999;
    box-shadow: -6px 0 20px rgba(0, 0, 0, 0.12);
    transition: right 0.28s ease;
    display: flex;
    flex-direction: column;
    padding: 24px;
}

.drawer-menu.active {
    right: 0;
}

.drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 16px;
    border-bottom: 1px solid #EFEAE7;
}

.drawer-brand {
    color: var(--red);
    font-weight: 700;
    font-size: 1.1rem;
}

.drawer-close {
    background: none;
    border: none;
    font-size: 1.4rem;
    color: var(--dark-text);
    cursor: pointer;
}

.drawer-links {
    display: grid;
    gap: 10px;
    list-style: none;
    margin-top: 20px;
}

.drawer-links a {
    display: inline-block;
    width: 100%;
    padding: 11px 14px;
    border-radius: 40px;
    color: var(--dark-text);
    font-weight: 600;
}

.drawer-links a.active,
.drawer-links a:hover {
    color: var(--red);
    background: #FFF0F0;
}

.drawer-links a.drawer-btn-link {
    background: var(--red);
    color: #FFFFFF;
    text-align: center;
    margin-top: 6px;
}

.drawer-links a.drawer-btn-link:hover {
    color: #FFFFFF;
    background: #A20C1C;
}

.nav-links {
    display: flex;
    gap: 28px;
    list-style: none;
    align-items: center;
    flex-wrap: wrap;
}

.nav-links a {
    text-decoration: none;
    font-weight: 600;
    color: var(--dark-text);
    transition: 0.2s;
}

.nav-links a:hover {
    color: var(--red);
}

.nav-links a.active {
    color: var(--red);
}

.nav-links a.active::after {
    content: '';   
    display: block;
    width: 100%;
    height: 3px;
    background: var(--yellow);
}

.nav-btn {
    background: var(--red);
    color: #FFFFFF !important;
    padding: 8px 20px;
    border-radius: 40px;
}

/* Shared section scaffolding */
section {
    padding: 80px 0;
}

.section-title {
    font-size: clamp(1.6rem, calc(1.2rem + 1.4vw), 2.2rem);
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--red);
    position: relative;
    display: inline-block;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 70px;
    height: 4px;
    background: var(--yellow);
    border-radius: 4px;
}

.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-eyebrow {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 0.8rem !important;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.section-header-v1 {
    margin-bottom: 56px;
    position: relative;
}

.section-header-v1 h2 {
    font-size: clamp(2rem, calc(1.4rem + 2vw), 2.8rem);
    font-weight: 700;
    margin-bottom: 16px;
}

.section-header-v1.centered {
    text-align: center;
}

/* Footer */
footer {
    background: #1C1B17;
    color: #F5F3F2;
    padding: 48px 0 24px;
    margin-top: 20px;
    border-top: 4px solid var(--yellow);
}

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

.footer-col h4 {
    color: var(--yellow);
    margin-bottom: 20px;
    font-weight: 700;
}

.footer-col a {
    color: #D4CAC5;
    text-decoration: none;
    display: block;
    margin-bottom: 10px;
    transition: 0.2s ease;
}

.footer-col a:hover {
    color: var(--red);
    padding-left: 6px;
}

.social-icons {
    display: flex;
    gap: 16px;
    margin-top: 12px;
}

.social-icons i {
    color: #D4CAC5;
    font-size: 1.6rem;
    margin-right: 16px;
    transition: 0.2s;
}

.social-icons i:hover {
    color: var(--red);
    transform: translateY(-6px) scale(1.1);
}

.copyright{
    text-align:center; 
    border-top:1px solid #444; 
    padding-top:30px; 
    margin-top:30px;
}

/* ===== Page-Specific: Home ===== */
/* Hero Slider */
.hero-slider {
    position: relative;
    height: 90vh;
    min-height: 550px;
    overflow: hidden;
}

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

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

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0,0,0,0.65), rgba(0,0,0,0.5));
    z-index: 3;
}

.slide-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #FFFFFF;
    z-index: 4;
    width: 85%;
    max-width: 800px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.slide-content h2 {
    font-size: 3rem;
    margin-bottom: 20px;
    font-weight: 800;
}

.slide-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.95;
}

.slider-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: #FFFFFF;
    border: none;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10;
    transition: 0.2s;
    backdrop-filter: blur(4px);
}

.slider-control:hover {
    background: var(--red);
}

.prev-slide {
    left: 20px;
}

.next-slide {
    right: 20px;
}

.dots-container {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    background: rgba(255,255,255,0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: 0.2s;
}

.dot.active {
    background: var(--yellow);
    transform: scale(1.2);
}

/* ===== Who Are We Section ===== */
.who-v1 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.who-v1__visual {
    background: var(--soft-red);
    border-radius: 24px;
    padding: 48px 36px;
    text-align: center;
    position: relative;
    min-height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.who-v1__visual .big-icon {
    font-size: 6rem;
    color: var(--red);
    opacity: 0.7;
}

.who-v1__visual .decorative-dot {
    position: absolute;
    width: 60px;
    height: 60px;
    background: var(--yellow);
    border-radius: 50%;
    top: -20px;
    right: -20px;
    z-index: 1;
}

.who-v1__content p {
    font-size: 1.1rem;
    color: #4a4a4a;
    margin-bottom: 16px;
    line-height: 1.8;
}

.who-v1__content strong {
    color: var(--red);
}

/* Why Choose Us grid */
.why-v1 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    counter-reset: why-counter;
}

.why-card-v1 {
    background: #FFFFFF;
    border-radius: 16px;
    padding: 36px 24px 28px;
    position: relative;
    transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
    border: 1px solid transparent;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
    counter-increment: why-counter;
}

.why-card-v1:hover {
    border-color: var(--red);
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(200, 12, 31, 0.1);
}

.why-card-v1::before {
    content: '0' counter(why-counter);
    position: absolute;
    top: 16px;
    right: 20px;
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    font-size: 3rem;
    color: var(--soft-red);
    line-height: 1;
    pointer-events: none;
}

.why-card-v1 .why-icon-v1 {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: var(--yellow);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--red);
    margin-bottom: 16px;
}

.why-card-v1 h3 {
    font-size: 1.2rem;
    color: var(--dark-text);
    margin-bottom: 8px;
    position: relative;
    z-index: 1;
}

.why-card-v1 p {
    color: var(--stone);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ===== Hone Events Grid ===== */
.events-v3 {
    display: grid;
    gap: 20px;
}

.home-event-card {
    display: grid;
    grid-template-columns: 140px 1fr auto;
    gap: 20px;
    align-items: center;
    background: var(--white);
    border-radius: 10px;
    padding: 24px 28px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
    transition: border-left-color 0.25s, box-shadow 0.25s;
    border-left: 5px solid transparent;
}

.home-event-card:hover {
    border-left-color: var(--red);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.08);
}

.home-event-card .event-date-block {
    text-align: center;
    font-family: 'Poppins', sans-serif;
}

.home-event-card .event-date-block .date-day {
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--red);
    line-height: 1;
}

.home-event-card .event-date-block .date-month {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--stone);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.home-event-card .event-info-v3 h3 {
    font-size: 1.2rem;
    color: var(--dark-text);
    margin-bottom: 4px;
}

.home-event-card .event-info-v3 p {
    color: var(--stone);
    font-size: 0.9rem;
    margin: 0;
}

/* Shared page header */
.page-header {
    background: linear-gradient(135deg, var(--red), #a00a1a);
    color: #FFFFFF;
    text-align: center;
    padding: 60px 0;
    margin-bottom: 40px;
}
.page-header h1 {
    font-size: clamp(2rem, calc(1.35rem + 2.3vw), 3.2rem);
    margin-bottom: 12px;
}
.page-header p {
    font-size: clamp(1rem, calc(0.92rem + 0.45vw), 1.2rem);
    max-width: 700px;
    margin: 0 auto;
    opacity: 0.9;
}

/* ==========================================================================
   RESPONSIVE CSS (CSS Mobile Breakpoints) 
   ========================================================================== */
@media (max-width: 810px) {
    .hamburger {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .nav-links {
        display: none;
    }

    .who-v1 {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .why-v1 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .slide-content h2 { font-size: 2rem; }
    .section-title { font-size: 1.8rem; }
    .nav-container { gap: 8px; }
    .hero-slider { height: 70vh; }

    .home-event-card {
        grid-template-columns: 100px 1fr;
        gap: 16px;
    }

    .home-event-card .event-date-block .date-day {
        font-size: 1.8rem;
    }
}

@media (max-width: 640px) {
    .why-v1 {
        grid-template-columns: 1fr;
    }

    .home-event-card {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .home-event-card .event-date-block {
        display: flex;
        gap: 8px;
        justify-content: center;
        align-items: baseline;
    }

    .footer-grid {
        justify-items: center;
    }

    .footer-col {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }
}