/* Education Page - Horizontal Gallery Theme Unifying with About Page */

:root {
    /* Variables from About.css/Style.css */
    --bg-color-light: #F3F3F3;
    /* Expected background color for About page light mode */
    --text-color-dark: #000000;
    --font-primary: 'Space Grotesk', sans-serif;
    --font-heading: 'Syne', sans-serif;
}

/* Education Page - Gallery Styles Only */
/* Layout handled by about.css */

/* Override About Page constraint to widen the gallery */
.col-center {
    max-width: 1350px !important;
    /* Reverted to 1350px to show 4th item as requested */
    padding-right: 40px;
    /* Maintain breathing room */
}


/* Horizontal Gallery Wrapper */
.edu-gallery-scroll-container {
    width: 100%;
    margin-top: 40px;
    padding-bottom: 40px;
    overflow-x: auto;
    overflow-y: hidden;
    flex-shrink: 0;
    white-space: nowrap;
    /* Ensure items stay in a row */
    /* Hide scrollbar */
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.edu-gallery-scroll-container::-webkit-scrollbar {
    display: none;
}

.edu-gallery-track {
    display: inline-flex;
    /* Use inline-flex for horizontal scrolling inside block container */
    gap: 40px;
    padding-right: 40px;
}

/* Gallery Item */
.edu-item {
    flex: 0 0 auto;
    width: 350px;
    /* Slightly larger width */
    display: flex;
    flex-direction: column;
    gap: 15px;
    cursor: pointer;
    transition: opacity 0.3s;
    white-space: normal;
    /* Allow text to wrap inside the item */
}

.edu-item:hover {
    opacity: 0.7;
}

.edu-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #000;
    /* Distinct line match minimalist style */
    padding-top: 10px;
}

.edu-item-num {
    font-family: var(--font-primary);
    font-size: 14px;
    font-weight: 600;
    color: var(--text-color-dark);
}

.edu-image-box {
    width: 100%;
    aspect-ratio: 1 / 1;
    /* Square aspect ratio */
    background-color: #e0e0e0;
    overflow: hidden;
}

.edu-image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.edu-item:hover .edu-image-box img {
    transform: scale(1.05);
}

.edu-item-info {
    font-family: var(--font-primary);
}

.edu-item-title {
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    margin: 0 0 5px 0;
    color: var(--text-color-dark);
}

.edu-item-cat {
    font-size: 14px;
    color: #666;
    text-transform: uppercase;
}

/* Responsive */
@media (max-width: 1024px) {
    .education-grid-container {
        grid-template-columns: 140px 1fr 140px;
        gap: 20px;
        padding: 30px;
    }
}

@media (max-width: 768px) {
    .education-grid-container {
        display: block;
        /* Stack on mobile */
        height: auto;
        overflow-y: auto;
    }

    .col-left,
    .col-right {
        height: auto;
        margin-bottom: 40px;
    }

    .edu-logo {
        position: static;
    }

    .edu-nav {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 20px;
        margin-bottom: 40px;
    }

    .col-center-edu {
        height: auto;
    }

    .edu-gallery-scroll-container {
        overflow-x: auto;
        padding-bottom: 20px;
    }
}