/* Homepage Learning Center + Testimonials — matches indexv1.php */

:root {
    --v1-navy: #0c1e3d;
    --v1-primary: #1e4fd9;
    --v1-primary-soft: #e8efff;
    --v1-light: #f4f7fb;
    --v1-surface: #ffffff;
    --v1-muted: #64748b;
    --v1-border: #dde5f0;
    --v1-radius: 16px;
    --v1-shadow: 0 8px 32px rgba(12, 30, 61, 0.08);
}

.v1-section {
    padding: 4.5rem 0;
}

.v1-section-muted { background: var(--v1-light); }
.v1-section-white { background: var(--v1-surface); }

.v1-eyebrow {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--v1-primary);
    margin-bottom: 0.5rem;
}

.v1-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
    color: var(--v1-navy);
    letter-spacing: -0.02em;
    margin: 0 0 0.5rem;
}

.v1-subtitle {
    color: var(--v1-muted);
    font-size: 1rem;
    margin: 0 0 2rem;
    max-width: 560px;
}

.v1-center { text-align: center; }
.v1-center .v1-subtitle { margin-left: auto; margin-right: auto; }

.v1-section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
}

.v1-link {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--v1-primary);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.v1-link:hover { color: var(--v1-navy); }

.v1-view-all-desktop {
    display: none;
    white-space: nowrap;
}

/* Carousels */
.v1-carousel { position: relative; }

.v1-carousel__track {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    padding: 0.25rem 0 0.5rem;
    margin: 0 -0.25rem;
    scrollbar-width: none;
}

.v1-carousel__track::-webkit-scrollbar { display: none; }

.v1-carousel__slide {
    flex: 0 0 86%;
    scroll-snap-align: center;
    scroll-snap-stop: always;
    min-width: 0;
}

.v1-carousel__slide .v1-article-card,
.v1-carousel__slide .v1-testimonial {
    height: 100%;
}

.v1-carousel__dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.45rem;
    margin-top: 1.1rem;
}

.v1-carousel__dot {
    width: 8px;
    height: 8px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: #cbd5e1;
    cursor: pointer;
    transition: transform 0.2s, background 0.2s, width 0.2s;
}

.v1-carousel__dot.is-active {
    width: 22px;
    border-radius: 999px;
    background: var(--v1-primary);
}

.v1-btn-view-all {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    width: fit-content;
    margin: 1.5rem auto 0;
    padding: 0.72rem 1.35rem;
    border-radius: 50px;
    border: 1.5px solid var(--v1-border);
    background: var(--v1-surface);
    color: var(--v1-navy);
    font-size: 0.88rem;
    font-weight: 700;
    text-decoration: none;
    transition: border-color 0.2s, box-shadow 0.2s, color 0.2s;
}

.v1-btn-view-all:hover {
    color: var(--v1-primary);
    border-color: #b8c9e0;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
}

/* Article cards */
.v1-article-card {
    background: var(--v1-surface);
    border: 1px solid var(--v1-border);
    border-radius: var(--v1-radius);
    overflow: hidden;
    height: 100%;
    transition: box-shadow 0.2s;
}

.v1-article-card:hover { box-shadow: var(--v1-shadow); }

.v1-article-thumb {
    height: 140px;
    background: linear-gradient(135deg, #dbeafe 0%, #e0e7ff 50%, #ede9fe 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--v1-primary);
    opacity: 0.7;
}

.v1-article-body { padding: 1.15rem; }

.v1-article-tag {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--v1-primary);
    background: var(--v1-primary-soft);
    padding: 0.2rem 0.55rem;
    border-radius: 4px;
    margin-bottom: 0.5rem;
}

.v1-article-card h3 {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--v1-navy);
    margin: 0 0 0.4rem;
    line-height: 1.4;
}

.v1-article-date {
    font-size: 0.75rem;
    color: var(--v1-muted);
    margin-bottom: 0.75rem;
}

/* Testimonials */
.v1-testimonial {
    background: var(--v1-surface);
    border: 1px solid var(--v1-border);
    border-radius: var(--v1-radius);
    padding: 1.25rem;
    height: 100%;
}

.v1-testimonial-head {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.v1-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--v1-primary-soft);
    color: var(--v1-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    flex-shrink: 0;
}

.v1-testimonial-head strong {
    display: block;
    font-size: 0.88rem;
    color: var(--v1-navy);
}

.v1-testimonial-head small {
    font-size: 0.75rem;
    color: var(--v1-muted);
}

.v1-stars {
    color: #f59e0b;
    font-size: 0.75rem;
    margin-bottom: 0.65rem;
}

.v1-testimonial p {
    font-size: 0.85rem;
    color: var(--v1-muted);
    font-style: italic;
    margin: 0;
    line-height: 1.55;
}

@media (min-width: 768px) and (max-width: 991.98px) {
    .v1-carousel__slide { flex-basis: 58%; }
}

@media (min-width: 992px) {
    .v1-carousel__track {
        display: grid;
        gap: 1rem;
        overflow: visible;
        margin: 0;
        padding: 0;
        scroll-snap-type: none;
    }

    .v1-carousel--articles .v1-carousel__track {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 1.5rem;
    }

    .v1-carousel--testimonials .v1-carousel__track {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 1.5rem;
    }

    .v1-carousel__slide {
        flex: none;
        scroll-snap-align: none;
    }

    .v1-carousel__dots { display: none; }
    .v1-btn-view-all { display: none; }
    .v1-view-all-desktop { display: inline-flex; }
}

@media (max-width: 991.98px) {
    .v1-section { padding: 2.75rem 0; }
    .v1-section-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .v1-view-all-desktop { display: none; }
    .v1-carousel--articles .v1-carousel__slide { flex-basis: 88%; }
}
