/* ========================================
   Hero Section (Mobile First) - SOLUCIÓN DEFINITIVA
   ======================================== */

/* Reset completo para la sección hero */
.hero-section {
    padding: 2rem 0;
    background: transparent;
    overflow-x: hidden;
    width: 100%;
    margin: 0;
    /* Forzar reset de cualquier posicionamiento heredado */
    position: relative;
    left: 0 !important;
    right: 0 !important;
    transform: none !important;
}

.hero-section .container {
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
    padding: 0;
    box-sizing: border-box;
    /* Reset completo del container */
    position: relative;
    left: 0 !important;
    right: 0 !important;
    transform: none !important;
    text-align: center;
}

/* CONTENIDO MÓVIL - Centrado perfecto */
.hero-content {
    width: 100%;
    margin: 0;
    padding: 0 1rem;
    text-align: center;
    box-sizing: border-box;
    /* Asegurar centrado absoluto */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.hero-content h1 {
    font-size: 1.5rem;
    font-weight: var(--font-weight-bold);
    color: var(--color-primary-dark-blue);
    line-height: 1.3;
    margin: 0 0 1.5rem 0;
    padding: 0 1rem;
    text-align: center;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    /* Reset cualquier herencia problemática */
    position: relative;
    left: 0 !important;
    right: 0 !important;
    transform: none !important;
}

.hero-content h1 .highlight {
    color: var(--color-primary-green);
}

.hero-subtitle {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--color-secondary-light-blue);
    margin: 0 0 2rem 0;
    padding: 0 1rem;
    font-weight: var(--font-weight-regular);
    text-align: center;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    /* Reset cualquier herencia problemática */
    position: relative;
    left: 0 !important;
    right: 0 !important;
    transform: none !important;
}

/* GRID MÓVIL - Centrado perfecto */
.hero-section .grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 2rem 0;
    padding: 0 1rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    /* Centrado con flexbox */
    align-items: center;
    justify-content: center;
}

.hero-section .card {
    background: var(--color-primary-white);
    border-radius: 1.5rem;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(51, 51, 51, 0.15);
    border: 2px solid var(--color-primary-green);
    margin: 0;
    position: relative;
    width: 100%;
    max-width: 350px; /* Limitar ancho máximo */
    box-sizing: border-box;
    /* Centrado individual */
    align-self: center;
}

.card-icon {
    width: 60px;
    height: 60px;
    background: var(--color-primary-dark-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.5rem;
    color: var(--color-primary-white);
}

.card-title {
    font-size: 1rem;
    font-weight: var(--font-weight-bold);
    color: var(--color-primary-dark-blue);
    margin-bottom: 0.75rem;
    line-height: 1.3;
    text-align: center;
}

.card-description {
    font-size: 0.8rem;
    line-height: 1.5;
    color: var(--color-secondary-light-blue);
    margin: 0;
    text-align: center;
}

/* BOTONES MÓVIL - Centrado perfecto */
.hero-buttons {
    display: flex;
    flex-direction: row;
    gap: 1rem;
    margin: 2rem 0;
    padding: 0 1rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    /* Centrado con flexbox */
    justify-content: center;
    align-items: center;
}

.hero-buttons .btn {
    flex: 1;
    max-width: 150px;
    padding: 0.75rem 1rem;
    border-radius: 2rem;
    font-size: 0.9rem;
    font-weight: var(--font-weight-semibold);
    text-decoration: none;
    text-align: center;
    display: block;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-sizing: border-box;
}

.btn-primary {
    background: var(--color-primary-green);
    color: var(--color-primary-white);
    font-size: 1.7rem; /* Texto más grande */
    font-weight: 900; /* Más bold */
    padding: 0.9rem 1.2rem; /* Padding más grande */
    max-width: 160px; /* Ancho ligeramente mayor */ 
    /* Efecto flotante inicial */
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(105, 198, 36, 0.3);    
    /* Animación flotante continua */
    animation: float-gentle 3s ease-in-out infinite;
}
/* Animación flotante suave */
@keyframes float-gentle {
    0%, 100% {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(105, 198, 36, 0.3);
    }
    60% {
        transform: translateY(-6px);
        box-shadow: 0 10px 30px rgba(105, 198, 36, 0.4);
    }
}

.btn-primary:hover {
    background: #5ab01f;
    transform: translateY(-8px); /* Efecto hover más pronunciado */
    box-shadow: 0 15px 40px rgba(105, 198, 36, 0.5);
    animation: none; /* Pausa la animación en hover */
}

.btn-outline {
    background: var(--color-primary-white);
    color: var(--color-primary-dark-blue);
    border: 2px solid var(--color-primary-dark-blue);
}

.btn-outline:hover {
    background: var(--color-primary-dark-blue);
    color: var(--color-primary-white);
}

/* Hide desktop-specific elements on mobile */
.hero-main-content,
.hero-content-left,
.hero-cards-column,
.hero-subtitle-left,
.hero-buttons-left {
    display: none;
}

/* CAROUSEL - Sin overflow */
.carousel {
    margin: 1.5rem 0;
    position: relative;
    width: 100%;
    margin-left: calc(-50vw + 50%);
    overflow: hidden;
    height: 180px;
}

.carousel-track {
    display: flex;
    animation: scroll 20s linear infinite;
    height: 100%;
    will-change: transform;
    padding-left: 1rem;
}

.carousel-item {
    flex: 0 0 220px;
    margin-right: 15px;
    height: 150px;
    border-radius: 1.2rem;
    padding: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.carousel-item:nth-child(odd) {
    background: var(--color-primary-white);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.1);
}

.carousel-item:nth-child(even) {
    background: var(--color-primary-green);
    box-shadow: 0 6px 24px rgba(105, 198, 36, 0.3);
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0.8rem;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.carousel::before,
.carousel::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 30px;
    z-index: 10;
    pointer-events: none;
}

.carousel::before {
    left: 0;
    background: linear-gradient(to right, #f5f5f5, transparent);
}

.carousel::after {
    right: 0;
    background: linear-gradient(to left, #f5f5f5, transparent);
}

/* RESET GLOBAL para prevenir herencias problemáticas */
body {
    overflow-x: hidden;
}

/* Reset específico para elementos dentro del hero */
.hero-section * {
    box-sizing: border-box;
}

/* Forzar centrado en caso de estilos heredados problemáticos */
.hero-section .container > * {
    margin-left: auto !important;
    margin-right: auto !important;
}

/* ========================================
   Hero Section (Tablet & Desktop)
   ======================================== */

@media (min-width: 768px) {
    .hero-section .container {
        max-width: 900px;
        padding: 0 2rem;
    }

    .hero-main-content {
        display: grid;
        grid-template-columns: 1fr 400px;
        gap: 4rem;
        align-items: start;
        margin: 2rem 0;
    }

    .hero-content-left {
        display: block;
        text-align: left;
    }

    .hero-cards-column {
        display: flex;
        flex-direction: column;
        gap: 5rem;
        width: 100%;
        position: relative;
    }

    .hero-card {
        background: var(--color-primary-white);
        border-radius: 1.5rem;
        padding: 1rem;
        margin-top: 1rem;
        box-shadow: 0 8px 25px rgba(51, 51, 51, 0.12);
        border: 2px solid var(--color-primary-green);
        display: flex;
        align-items: center;
        gap: 1rem;
        position: relative;
        transition: all 0.3s ease;
        transform: translateY(-5px);
    }

    @keyframes float {
        0%, 100% {
            transform: translateY(-5px);
        }
        50% {
            transform: translateY(-12px);
        }
    }

    .hero-card:hover {
        transform: translateY(-18px);
        box-shadow: 0 20px 50px rgba(51, 51, 51, 0.25);
        border-color: var(--color-primary-green);
        animation: none;
    }

    .hero-card-1 {
        height: auto;
        width: auto;
        align-self: flex-end;
    }

    .hero-card-2 {
        height: auto;
        width: 85%;
        align-self: center;
    }

    .hero-card-3 {
        height: auto;
        width: auto;
        align-self: flex-end;
    }

    .hero-card-icon {
        width: 60px;
        height: 60px;
        background: var(--color-primary-dark-blue);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.5rem;
        color: var(--color-primary-white);
        flex-shrink: 0;
    }
    
    .hero-card-content {
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .hero-card-title {
        font-size: 0.9rem;
        font-weight: var(--font-weight-bold);
        color: var(--color-primary-dark-blue);
        margin-bottom: 0.75rem;
        line-height: 1;
    }

    .hero-card-description {
        font-size: 0.7rem;
        line-height: 1.1;
        color: var(--color-secondary-light-blue);
        margin: 0;
    }

    .hero-card-2 .hero-card-description {
        font-size: 0.85rem;
    }
  
    .hero-subtitle-left {
        display: block;
    }
.hero-buttons-left {
    display: flex;
    justify-content: center;   /* Centra horizontalmente */
    align-items: center;       /* Centra verticalmente */
    height: 100%;              /* Asegúrate que tenga altura */
}


    .hero-content-left h1 {
        font-size: 2.5rem;
        font-weight: var(--font-weight-bold);
        color: var(--color-primary-dark-blue);
        line-height: 1.2;
        margin-bottom: 1.5rem;
        text-align: left;
    }

    .hero-content-left h1 .highlight {
        color: var(--color-primary-green);
    }

    .hero-subtitle-left {
        font-size: 1rem;
        line-height: 1.6;
        color: var(--color-secondary-light-blue);
        margin: 1.5rem 0 2rem 0;
        text-align: left;
        font-weight: var(--font-weight-regular);
    }

    .hero-buttons-left .btn {
        padding: 0.75rem 1.5rem;
        border-radius: 2rem;
        font-weight: var(--font-weight-semibold);
        text-decoration: none;
        text-align: center;
        transition: all 0.3s ease;
        border: none;
        cursor: pointer;
        min-width: 140px;
    }

    .hero-section .grid,
    .hero-content,
    .hero-subtitle,
    .hero-buttons {
        display: none;
    }
}

@media (min-width: 1024px) {
    .hero-section .container {
        max-width: 1400px;
        padding: 0 3rem;
    }

    .hero-main-content {
        grid-template-columns: 1fr 450px;
        gap: 5rem;
        margin: 3rem 0;
    }

    .hero-content-left h1 {
        font-size: 3rem;
        margin-bottom: 2rem;
    }

    .hero-subtitle-left {
        font-size: 1.1rem;
        margin: 2rem 0 2.5rem 0;
    }

    .hero-buttons-left {
    display: flex;
    justify-content: flex-start;   /* Centra horizontalmente */
    align-items: center;       /* Centra verticalmente */
    height: 100%;              /* Asegúrate que tenga altura */
}

    .hero-buttons-left .btn {
        padding: 1rem 2rem;
        min-width: 160px;
    }    
    .hero-cards-column {
        gap: 1.5rem;
        position: relative;
    }
   
    .hero-card-1 {
        align-self: flex-end;
    }

    .hero-card-2 {
        width: 100%;
        align-self: center;
    }

    .hero-card-3 {
        align-self: flex-end;
    }

    .hero-card-icon {
        width: 60px;
        height: 60px;
        background: var(--color-primary-dark-blue);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.5rem;
        color: var(--color-primary-white);
        flex-shrink: 0;
    }

    .hero-card-content {
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .hero-card-title {
        font-size: 1.1rem;
        font-weight: var(--font-weight-bold);
        color: var(--color-primary-dark-blue);
        margin-bottom: 0.75rem;
        line-height: 1.3;
    }

    .hero-card-description {
        font-size: 0.9rem;
        line-height: 1.4;
        color: var(--color-secondary-light-blue);
        margin: 0;
    }

    .hero-card-2 .hero-card-description {
        font-size: 0.85rem;
    }

    .carousel {
        margin-top: 3rem;
        height: 220px;
    }

    .carousel-item {
        flex: 0 0 300px;
        height: 180px;
        margin-right: 20px;
    }
}

@media (min-width: 1440px) {
    .hero-section .container {
        max-width: 1600px;
        padding: 0 4rem;
    }

    .hero-main-content {
        grid-template-columns: 1fr 500px;
        gap: 6rem;
    }

    .hero-content-left h1 {
        font-size: 3.5rem;
    }

    .hero-subtitle-left {
        font-size: 1.2rem;
    }

    .hero-card {
        padding: 2.5rem;
        transform: translateY(-6px);
    }

    .hero-card:hover {
        transform: translateY(-20px);
        box-shadow: 0 25px 60px rgba(51, 51, 51, 0.3);
    }

    .hero-cards-column {
        gap: 2rem;
    }

    .hero-card-1 {
        width: 65%;
    }

    .hero-card-2 {
        width: 85%;
    }

    .hero-card-3 {
        width: 70%;
    }
}

@media (min-width: 1024px) {
    .carousel {
        height: 250px;
        margin-top: 4rem;
    }

    .carousel-item {
        flex: 0 0 350px;
        height: 210px;
        margin-right: 25px;
    }
}

/* ========================================
   Programs Section (Mobile First)
   ======================================== */

.programs-section {
    padding: 0px 20px 60px 20px ;
    background-color: var(--color-primary-white);
    position: relative;
    overflow: hidden;
}

.programs-section .container {
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
    padding: 0;
    position: relative;
    box-sizing: border-box;
    /* Reset completo del container */
    left: 0 !important;
    right: 0 !important;
    transform: none !important;
}

 
.section-header {
    text-align: center;
    margin-bottom: 32px;
    align-items: center;
    justify-content: center;
}

.section-header h1 {
    font-size: 1.5rem;
    font-weight: var(--font-weight-bold);
    color: var(--color-primary-dark-blue);
    line-height: 1.3;
    margin-bottom: 1.5rem;
    padding: 0 0.5rem;
     position: relative;
    left: 0 !important;
    right: 0 !important;
    transform: none !important;
}

.section-subtitle {
    font-family: var(--font-family-sans);
    font-weight: var(--font-weight-regular);
    font-size: 1rem;
    color: var(--color-secondary-gray);
    margin: 0 auto;
    line-height: 1.5;
    padding: 0 16px;
}

.programs-grid {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(51, 51, 51, 0.12);
    margin: 0 4px;
    height: 180px;
}

.program-card {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

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

.program-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.program-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.program-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(43, 42, 91, 0.1) 0%, rgba(43, 42, 91, 0.6) 100%);
    z-index: 2;
}

.program-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 3;
    padding: 16px;
    width: 100%;
    color: var(--color-primary-white);
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
    height: auto;
}

.program-text {
    flex: 1;
    margin-right: 16px;
}

.program-content h3 {
    font-family: var(--font-family-sans);
    font-weight: var(--font-weight-bold);
    font-size: 1.1rem;
    line-height: 1.2;
    margin-bottom: 4px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
    color: var(--color-primary-green);
}

.program-content p {
    font-family: var(--font-family-sans);
    font-weight: var(--font-weight-regular);
    font-size: 0.8rem;
    line-height: 1.3;
    margin: 0;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
    opacity: 0.95;
}

.program-link {
    display: inline-block;
    flex-shrink: 0;
    background-color: var(--color-secondary-light-blue);
    color: var(--color-primary-white);
    padding: 6px 12px;
    margin-right: 20px;
    font-family: var(--font-family-sans);
    font-weight: var(--font-weight-semibold);
    font-size: 0.5rem;
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 3px 12px rgba(70, 90, 136, 0.3);
    white-space: nowrap;
}

.program-link:hover {
    background-color: var(--color-primary-green);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(105, 198, 36, 0.4);
}

.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.9);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.carousel-nav:hover {
    background-color: var(--color-primary-green);
    color: var(--color-primary-white);
    transform: translateY(-50%) scale(1.05);
}

.carousel-nav.prev {
    left: 8px;
}

.carousel-nav.next {
    right: 8px;
}

.carousel-nav svg {
    width: 12px;
    height: 12px;
    fill: currentColor;
}

.carousel-indicators {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 4px;
    z-index: 10;
}

.carousel-indicator {
    width: 16px;
    height: 4px;
    border-radius: 2px;
    background-color: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.carousel-indicator.active {
    background-color: var(--color-primary-green);
    width: 20px;
}

.carousel-indicator:hover {
    background-color: rgba(255, 255, 255, 0.7);
}

@media (min-width: 768px) {
    .programs-section .container {
        max-width: 768px;
        padding: 0 24px;
        margin-bottom: 60px;
    }

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

    .section-header h1 {
        font-size: 2rem;
    }

    .section-subtitle {
        font-size: 1.125rem;
        max-width: 500px;
        padding: 0;
    }

    .programs-grid {
        border-radius: 20px;
        box-shadow: 0 12px 32px rgba(51, 51, 51, 0.15);
        margin: 0 auto;
        height: 280px;
        max-width: 800px;
    }

    .program-content {
        padding: 20px;
    }

    .program-content h3 {
        font-size: 1.4rem;
    }

    .program-content p {
        font-size: 0.9rem;
    }

    .program-link {
        padding: 8px 16px;
        margin-right: 50px;
        font-size: 0.8rem;
        border-radius: 16px;
    }

    .carousel-nav {
        width: 40px;
        height: 40px;
        display: flex;
    }

    .carousel-nav.prev {
        left: 16px;
    }

    .carousel-nav.next {
        right: 16px;
    }

    .carousel-nav svg {
        width: 16px;
        height: 16px;
    }

    .carousel-indicators {
        bottom: 16px;
        gap: 6px;
    }

    .carousel-indicator {
        width: 20px;
        height: 5px;
    }
}

@media (min-width: 1024px) {
    .programs-section .container {
        max-width: 1200px;
        padding: 0 32px;
        margin-bottom: 80px;
    }

    .section-header {
        margin-bottom: 64px;
    }

    .section-header h1 {
        font-size: 2rem;
    }

    .section-subtitle {
        font-size: 1.25rem;
        max-width: 600px;
        margin-bottom: 50px;
    }

    .programs-grid {
        box-shadow: 0 20px 40px rgba(51, 51, 51, 0.18);
        height: 400px;
        max-width: 1000px;
    }

    .program-content {
        padding: 12px;
    }

    .program-content h3 {
        font-size: 1.75rem;
    }

    .program-content p {
        font-size: 1rem;
        margin-bottom: 20px;
    }

    .program-link {
        padding: 10px 20px;
        font-size: 0.9rem;
        border-radius: 20px;
        margin-bottom: 20px;
        margin-left: 72px;
    }

    .carousel-nav {
        width: 48px;
        height: 48px;
        display: flex;
    }

    .carousel-nav.prev {
        left: 24px;
    }

    .carousel-nav.next {
        right: 24px;
    }

    .carousel-nav svg {
        width: 20px;
        height: 20px;
    }

    .carousel-indicators {
        bottom: 20px;
        gap: 8px;
    }

    .carousel-indicator {
        width: 24px;
        height: 6px;
    }
}

@media (min-width: 1440px) {
    .programs-section .container {
        max-width: 1400px;
    }

    .section-header h1 {
        font-size: 3rem;
    }

    .programs-grid {
        height: 380px;
        max-width: 1100px;
    }

    .program-content {
        padding: 40px;
    }

    .program-content h3 {
        font-size: 2rem;
    }

    .program-content p {
        font-size: 1.125rem;
    }

    .program-link {
        padding: 12px 24px;
        font-size: 1rem;
    }
}

/* ========================================
   Testimonial Section (Mobile First)
   ======================================== */

.testimonial-section {
    background-color: var(--color-primary-dark-blue);
    padding: 3rem 1rem;
    position: relative;
    overflow: hidden;
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.testimonial-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.testimonial-section .container {
    max-width: 100%;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    width: 100%;
}

.testimonial-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: white;
    max-width: 90%;
    margin: 0 auto;
    gap: 2rem;
}

.main-image {
    width: 100%;
    max-width: 300px;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.main-image.animate {
    opacity: 1;
    transform: translateY(0);
}

.main-image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    object-fit: cover;
}

.testimonial-text {
    text-align: center;
    max-width: 100%;
}

.quote-container {
    position: relative;
    margin-bottom: 2.5rem;
}

.quote-mark {
    font-size: 4rem;
    color: rgba(255, 255, 255, 0.3);
    font-family: serif;
    line-height: 1;
    margin-bottom: 1rem;
    
    /* Estado inicial (antes de .animate) */
    opacity: 0;
    transform: translateY(10px);
    
    /* Transición suave solo en lo necesario */
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.quote-mark.animate {
    opacity: 1;
    transform: translateY(0);
}


blockquote {
    font-size: 1.125rem;
    line-height: 1.6;
    font-style: italic;
    margin: 0;
    padding: 0;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 300;
    letter-spacing: 0.5px;
}

.quote-phrase {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease-out;
    display: inline-block;
}

.quote-phrase.animate {
    opacity: 1;
    transform: translateY(0);
}

.testimonial-author {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.testimonial-author.animate {
    opacity: 1;
    transform: translateY(0);
}

.author-image {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.author-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-info h4 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 0.25rem 0;
    color: white;
    letter-spacing: 0.5px;
}

.author-info p {
    font-size: 1rem;
    font-weight: 500;
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: 0.3px;
}

@media (min-width: 768px) {
    .testimonial-section {
        padding: 4rem 2rem;
    }

    .testimonial-section .container {
        max-width: 768px;
    }

    .testimonial-content {
        flex-direction: row;
        gap: 4rem;
        align-items: center;
        max-width: 100%;
    }

    .main-image {
        flex: 1;
        max-width: 400px;
    }

    .testimonial-text {
        flex: 1;
        text-align: left;
    }

    .quote-mark {
        font-size: 5rem;
        margin-bottom: 1.5rem;
    }

    blockquote {
        font-size: 1.375rem;
        line-height: 1.7;
    }

    .testimonial-author {
        flex-direction: row;
        justify-content: flex-start;
        gap: 1.5rem;
    }

    .author-image {
        width: 90px;
        height: 90px;
    }

    .author-info {
        text-align: left;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .author-info h4 {
        font-size: 1.375rem;
    }

    .author-info p {
        font-size: 1.125rem;
    }
}

@media (min-width: 1024px) {
    .testimonial-section {
        padding: 5rem 2rem;
    }

    .testimonial-section .container {
        max-width: 1200px;
    }

    .testimonial-content {
        gap: 6rem;
    }

    .main-image {
        max-width: 500px;
    }

    .quote-mark {
        font-size: 6rem;
        margin-bottom: 2rem;
    }

    blockquote {
        font-size: 1.5rem;
        line-height: 1.8;
    }

    .testimonial-author {
        gap: 2rem;
    }

    .author-image {
        width: 100px;
        height: 100px;
    }

    .author-info h4 {
        font-size: 1.5rem;
    }

    .author-info p {
        font-size: 1.25rem;
    }
}

@media (min-width: 1280px) {
    .testimonial-section {
        padding: 6rem 2rem;
    }

    .testimonial-content {
        gap: 8rem;
    }

    blockquote {
        font-size: 1.625rem;
        line-height: 1.9;
    }
}

/* ========================================
   Featured Video Section (Mobile First)
   ======================================== */

.featured-video-section {
    background-color: #f8f9fa;
    padding: 3rem 1rem;
    position: relative;
}

.featured-video-section .container {
    max-width: 100%;
    margin: 0 auto;
}

.section-header {
    text-align: left;
    margin-bottom: 2rem;
}


.section-subtitle {
    font-size: 1rem;
    color: #718096;
    margin: 0;
    line-height: 1.5;
}

.video-container {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.video-container:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.video-wrapper {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%;
    overflow: hidden;
    background: #000;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.video-info {
    padding: 1.5rem;
}

.video-info h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #2d3748;
    margin: 0 0 0.75rem 0;
    line-height: 1.4;
}

.video-info p {
    font-size: 0.95rem;
    color: #718096;
    margin: 0;
    line-height: 1.6;
}

.video-date {
    display: inline-block;
    font-size: 0.875rem;
    color: #68d391;
    font-weight: 500;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}



@media (min-width: 768px) {
    .featured-video-section {
        padding: 4rem 2rem;
    }

    .featured-video-section .container {
        max-width: 768px;
        height: 80%;
    }

    .section-header {
        text-align: center;
        margin-bottom: 3rem;
    }

    .section-header h1 {
        font-size: 2rem;
        font-weight: var(--font-weight-bold);
        color: var(--color-primary-dark-blue);
        line-height: 1.3;
        margin-bottom: 1.5rem;
        padding: 0 0.5rem;
    }

    .section-subtitle {
        font-size: 1.125rem;
        max-width: 600px;
        margin: 0 auto;
    }

    .video-container {
        max-width: 700px;
        margin: 0 auto;
    }

    .video-info {
        padding: 2rem;
    }

    .video-info h3 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }

    .video-info p {
        font-size: 1rem;
    }
}

@media (min-width: 1024px) {
    .featured-video-section {
        padding: 5rem 2rem;
    }

    .featured-video-section .container {
        max-width: 1200px;
    }

    .section-header {
        margin-bottom: 4rem;
    }

    .section-header h1 {
        font-size: 2.5rem;
    }

    .section-subtitle {
        font-size: 1.25rem;
    }

    .video-container {
        max-width: 900px;
        display: flex;
        flex-direction: row;
        align-items: stretch;
        height: auto;
    }

    .video-wrapper {
        flex: 2;
        padding-bottom: 0;
        height: 400px;
        min-height: 400px;
    }

    .video-info {
        flex: 1;
        padding: 2.5rem;
        display: flex;
        flex-direction: column;
        justify-content: center;
        background: #f7fafc;
    }

    .video-info h3 {
        font-size: 1.75rem;
        margin-bottom: 1.25rem;
    }

    .video-info p {
        font-size: 1.125rem;
        line-height: 1.7;
    }
}

@media (min-width: 1280px) {
    .featured-video-section {
        padding: 6rem 2rem;
    }

    .section-header h1 {
        font-size: 3rem;
    }

    .video-container {
        max-width: 1100px;
    }

    .video-wrapper {
        height: 450px;
        min-height: 450px;
    }

    .video-info {
        padding: 3rem;
    }

    .video-info h3 {
        font-size: 2rem;
        margin-bottom: 1.5rem;
    }

    .video-info p {
        font-size: 1.25rem;
    }
}
