/* Education Page Styles */

/* ============================================
   Hero Section Top
   ============================================ */
.education-hero-top {
    padding: var(--spacing-sm);
    padding-top: var(--hero-padding-top);
    padding-bottom: var(--hero-padding-bottom);
    height: var(--hero-height);
    overflow: hidden;
    background: var(--gradient-hero);
}

/* Override section-layout breakpoint for education hero */
.education-hero-top .section-layout--img-left {
    grid-template-columns: auto 1fr;
}

.hero-top-text {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    font-weight: 400;
    line-height: 1.7;
    color: var(--text-secondary);
    max-width: 450px;
    margin: 0;
}

.hero-top-text a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid transparent;
    transition: all 0.2s ease;
}

.hero-top-text a:hover {
    border-bottom-color: var(--primary-color);
}

/* Legacy hero styles */
.education-hero {
    padding: var(--spacing-lg) var(--spacing-sm);
    padding-top: calc(var(--spacing-lg) + 60px);
    background: var(--gradient-hero);
}

.education-hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.education-hero-photo {
    display: flex;
    justify-content: center;
}

.education-hero-image {
    width: 100%;
    max-width: 450px;
    height: auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.education-hero-title {
    font-size: clamp(2rem, 5vw, 2.75rem);
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: var(--spacing-sm);
    line-height: 1.2;
}

.education-hero-subtitle {
    font-size: clamp(1.125rem, 2.5vw, 1.375rem);
    font-weight: 500;
    color: var(--primary-color);
    margin-bottom: var(--spacing-md);
    line-height: 1.5;
}

.education-woma-link {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: 0.875rem 1.75rem;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: var(--radius-sm);
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
}

.education-woma-link:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.woma-link-arrow {
    font-size: 1.25rem;
    transition: transform 0.2s ease;
}

.education-woma-link:hover .woma-link-arrow {
    transform: translateX(4px);
}

/* ============================================
   Full-Width Diplomas Carousel
   ============================================ */
.diplomas-section-fullwidth {
    padding: var(--spacing-sm) 0;
    background-color: var(--bg-color);
    overflow: hidden;
}

.diplomas-carousel-wrapper {
    position: relative;
    width: 100%;
}

.diplomas-track-container {
    overflow: hidden;
    height: 120px;
    width: 100%;
}

.diplomas-track {
    display: flex;
    gap: 16px;
    height: 100%;
    will-change: transform;
}

.diploma-item {
    flex-shrink: 0;
    height: 100%;
    cursor: pointer;
    border-radius: var(--radius-sm);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.diploma-item:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-lg);
}

.diploma-item img {
    height: 100%;
    width: auto;
    object-fit: contain;
    border-radius: var(--radius-sm);
}

/* Carousel Navigation */
.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 24px;
    color: var(--primary-color);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

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

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

/* ============================================
   Hero Section Bottom
   ============================================ */
.education-hero-bottom {
    padding: var(--spacing-lg) var(--spacing-sm);
    background-color: var(--bg-color);
}

.hero-bottom-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: var(--spacing-lg);
    align-items: center;
    max-width: 900px;
    margin: 0 auto;
}

.hero-bottom-image-wrapper {
    display: flex;
    justify-content: center;
}

.hero-bottom-image {
    width: 100%;
    max-width: 300px;
    height: auto;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
}

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

.hero-bottom-text {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--text-color);
    margin: 0;
}

.hero-bottom-text a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid transparent;
    transition: all 0.2s ease;
}

.hero-bottom-text a:hover {
    border-bottom-color: var(--primary-color);
}

/* ============================================
   Next Page Link Section
   ============================================ */
.education-next {
    padding: var(--spacing-xl) var(--spacing-sm) var(--spacing-lg);
    background-color: var(--bg-color);
    text-align: center;
}

/* ============================================
   Responsive for Carousel and Hero
   ============================================ */
@media (max-width: 1024px) {
    .hero-bottom-layout {
        grid-template-columns: 250px 1fr;
        gap: var(--spacing-md);
    }

    .hero-bottom-image {
        max-width: 250px;
    }
}


/* Switch to single column and center image */
@media (max-width: 850px) {
    .education-hero-top {
        height: auto;
        overflow: visible;
        padding-top: var(--spacing-lg);
        padding-bottom: var(--spacing-md);
    }

    .education-hero-top .section-layout--img-left {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .education-hero-top .hero-photo-wrapper {
        display: flex;
        justify-content: center;
    }

    .education-hero-top .section-content {
        align-items: center;
    }
}

@media (max-width: 767px) {
    .hero-top-text {
        font-size: 1rem;
    }

    .diplomas-track-container {
        height: 100px;
    }

    .carousel-nav {
        width: 32px;
        height: 32px;
        font-size: 18px;
    }

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

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

    .hero-bottom-layout {
        grid-template-columns: 1fr;
        text-align: center;
        gap: var(--spacing-md);
    }

    .hero-bottom-image {
        max-width: 220px;
        margin: 0 auto;
    }

    .hero-bottom-text {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .diplomas-track-container {
        height: 80px;
    }

    .carousel-nav {
        display: none;
    }

    .hero-bottom-image {
        max-width: 180px;
    }
}

/* ============================================
   Timeline Section (existing styles)
   ============================================ */

.timeline-section {
    padding: var(--spacing-xl) var(--spacing-sm) var(--spacing-lg);
    background: var(--gradient-hero);
}

.timeline-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-lg);
    max-width: 1400px;
    margin: 0 auto;
}

/* Column styles */
.timeline-column {
    display: flex;
    flex-direction: column;
}

.column-header {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-sm);
    border-bottom: 2px solid var(--border-color);
}

.column-icon {
    font-size: 2rem;
    line-height: 1;
}

.column-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
    margin: 0;
}

/* Timeline items */
.timeline-items {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    position: relative;
}

.timeline-items::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--border-color) 0%, var(--border-light) 100%);
}

.timeline-item {
    position: relative;
    padding-left: var(--spacing-md);
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 1px;
    transform: translateX(-50%);
    top: 8px;
    width: 12px;
    height: 12px;
    background-color: var(--border-light);
    border-radius: 50%;
    border: 2px solid var(--bg-color);
}

/* Osteopathy highlight */
.timeline-item.osteopathy-highlight::before {
    background-color: var(--primary-color);
    box-shadow: 0 0 0 4px var(--primary-color-20);
}

.timeline-item.osteopathy-highlight .timeline-card {
    border-left: 3px solid var(--primary-color);
}

/* Year label */
.timeline-year {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

/* Card styles */
.timeline-card {
    background: var(--bg-color);
    border-radius: var(--radius-sm);
    padding: var(--spacing-sm);
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.timeline-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.card-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-color);
    margin: 0 0 0.25rem 0;
    line-height: 1.4;
}

.card-subtitle {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin: 0;
}

.card-status {
    font-size: 0.75rem;
    color: var(--primary-color);
    font-style: italic;
    margin: 0.5rem 0 0 0;
}

/* Osteopathy badge */
.osteo-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-color-light));
    color: white;
    font-size: 0.65rem;
    font-weight: 600;
    padding: 0.2rem 0.5rem;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

/* Diploma thumbnail */
.card-diploma {
    margin-top: 0.75rem;
    cursor: pointer;
    border-radius: 4px;
    overflow: hidden;
    transition: transform 0.2s ease;
}

.card-diploma:hover {
    transform: scale(1.02);
}

.card-diploma img {
    width: 100%;
    max-width: 120px;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Responsive */
@media (max-width: 1024px) {
    .timeline-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }

    .timeline-column {
        border-bottom: 1px solid var(--border-color);
        padding-bottom: var(--spacing-lg);
    }

    .timeline-column:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }
}

@media (max-width: 767px) {
    .timeline-section {
        padding: var(--spacing-md) var(--spacing-xs);
    }

    .column-header {
        justify-content: center;
    }

    .column-title {
        font-size: 1.25rem;
    }

    .timeline-item {
        padding-left: var(--spacing-sm);
    }

    .card-diploma img {
        max-width: 100px;
    }
}
