/* home.css - part of style.css split */

/* ================================
   Hero Carousel (หน้าแรก)
   ================================ */
.hero-carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
    touch-action: manipulation;
}

.hero-carousel__container {
    position: relative;
    width: 100%;
}

.hero-carousel__slides {
    position: relative;
    width: 100%;
    height: 70vh;
    min-height: 500px;
    max-height: 800px;
}

.hero-carousel__slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease, visibility 0.8s ease;
    display: flex;
    align-items: center;
}

.hero-carousel__slide.active {
    opacity: 1;
    visibility: visible;
}

.hero-carousel__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(30, 58, 95, 0.25) 0%, rgba(45, 90, 135, 0.15) 100%);
}

.hero-carousel__slide .container {
    position: relative;
    z-index: 2;
    padding-left: calc(var(--spacing-6) + env(safe-area-inset-left));
    padding-right: calc(var(--spacing-6) + env(safe-area-inset-right));
}

.hero-carousel__slide .hero__content {
    max-width: 700px;
}

.hero-carousel__slide .hero__subtitle {
    display: inline-block;
    padding: 0.5rem 1.2rem;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 50px;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

.hero-carousel__slide .hero__title {
    display: inline-block;
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 0.8rem 1.5rem;
    border-radius: 12px;
    color: var(--primary);
}

.hero-carousel__slide .hero__description {
    display: inline-block;
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 0.8rem 1.2rem;
    border-radius: 10px;
    color: var(--color-gray-700);
}

.hero-carousel__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    z-index: 10;
}

.hero-carousel__nav:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: translateY(-50%) scale(1.1);
}

.hero-carousel__nav--prev {
    left: 20px;
}

.hero-carousel__nav--next {
    right: 20px;
}

.hero-carousel__dots {
    position: absolute;
    bottom: calc(30px + env(safe-area-inset-bottom));
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.hero-carousel__dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.6);
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}

.hero-carousel__dot:hover {
    background: rgba(255, 255, 255, 0.5);
}

.hero-carousel__dot.active {
    background: white;
    border-color: white;
    transform: scale(1.2);
}

.hero-carousel__nav:focus-visible,
.hero-carousel__dot:focus-visible,
.carousel-nav:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

@media (max-width: 768px) {
    .hero-carousel__slides {
        height: 60vh;
        min-height: 400px;
    }

    .hero-carousel__nav {
        width: 40px;
        height: 40px;
    }

    .hero-carousel__nav--prev {
        left: 10px;
    }

    .hero-carousel__nav--next {
        right: 10px;
    }

    .hero-carousel__dots {
        bottom: calc(20px + env(safe-area-inset-bottom));
    }

    .hero-carousel__dot {
        width: 10px;
        height: 10px;
    }
}

/* ================================
   Programs Carousel, Degree Badges, Executive (หน้าแรก)
   ================================ */
.support-staff-section,
.internal-docs-section {
    background: var(--color-white);
    padding: 0;
    border-radius: 12px;
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.support-staff-section:hover,
.internal-docs-section:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.support-staff-list,
.internal-docs-list {
    list-style: none;
    padding: 1.5rem;
    margin: 0;
}

.support-staff-list__item,
.internal-docs-list__item {
    margin-bottom: 0.75rem;
}

.support-staff-list__item:last-child,
.internal-docs-list__item:last-child {
    margin-bottom: 0;
}

.support-staff-list__link,
.internal-docs-list__link {
    display: flex;
    align-items: flex-start;
    gap: 0.875rem;
    padding: 1rem;
    border-radius: 8px;
    text-decoration: none;
    color: var(--color-gray-800);
    background: var(--color-gray-100);
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.support-staff-list__link:hover,
.internal-docs-list__link:hover {
    background: var(--color-gray-50);
    border-color: var(--primary);
    color: var(--primary);
    transform: translateX(4px);
}

.support-staff-list__bullet,
.internal-docs-list__bullet {
    display: inline-block;
    width: 6px;
    height: 6px;
    background: var(--color-gray-600);
    border-radius: 50%;
    margin-top: 0.5rem;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.support-staff-list__link:hover .support-staff-list__bullet,
.internal-docs-list__link:hover .internal-docs-list__bullet {
    background: var(--primary);
    transform: scale(1.3);
}

.support-staff-list__link span:last-child,
.internal-docs-list__link span:last-child {
    flex: 1;
    line-height: 1.6;
}

/* Executive Highlight */
.executive-highlight {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: center;
}

.dean-card {
    display: flex;
    align-items: center;
    gap: 2rem;
    background: var(--color-white);
    border-radius: 24px;
    padding: 2rem;
    box-shadow: var(--shadow-xl);
    max-width: 700px;
    width: 100%;
}

.dean-card__image img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--primary);
    box-shadow: var(--shadow-lg);
}

.dean-card__content {
    flex: 1;
}

.dean-card__badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: var(--color-white);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.dean-card__name {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 0.25rem;
}

.dean-card__title {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0 0 1rem;
}

.dean-card__message {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
    font-style: italic;
    margin: 0;
    padding-left: 1rem;
    border-left: 3px solid var(--primary);
}

.vice-deans {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.vice-dean-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--color-white);
    padding: 1rem 1.5rem;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.vice-dean-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.vice-dean-card img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.vice-dean-card__info {
    display: flex;
    flex-direction: column;
}

.vice-dean-card__position {
    font-size: 0.75rem;
    color: var(--secondary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.vice-dean-card__name {
    font-size: 0.9rem;
    color: var(--text-primary);
    font-weight: 500;
}

/* Degree Badges */
.degree-badges {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.degree-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: var(--color-white);
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    box-shadow: 0 4px 15px rgba(30, 58, 95, 0.3);
    transition: all 0.3s ease;
}

.degree-badge:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(30, 58, 95, 0.4);
}

.degree-badge--master {
    background: linear-gradient(135deg, var(--secondary), var(--secondary-light));
    box-shadow: 0 4px 15px rgba(45, 125, 70, 0.3);
}

.degree-badge--doctorate {
    background: linear-gradient(135deg, #9333ea, #a855f7);
    box-shadow: 0 4px 15px rgba(147, 51, 234, 0.3);
}

/* Programs Carousel */
.programs-carousel-wrapper {
    position: relative;
    margin: 2rem 0;
    padding: 0 3rem;
}

.programs-carousel {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 1rem 0;
    touch-action: manipulation;
    -webkit-overflow-scrolling: touch;
}

.programs-carousel::-webkit-scrollbar {
    display: none;
}

.program-carousel-card {
    flex: 0 0 320px;
    background: var(--color-white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    cursor: pointer;
}

.program-carousel-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.program-carousel-card__image-wrapper {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
}

.program-carousel-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.program-carousel-card:hover .program-carousel-card__image {
    transform: scale(1.1);
}

.program-carousel-card__overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.6));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.program-carousel-card:hover .program-carousel-card__overlay {
    opacity: 1;
}

.program-icon-square--carousel {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    box-shadow: var(--shadow);
}

.program-carousel-card__content {
    padding: 1.5rem;
}

.program-carousel-card__degree {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--color-primary-light);
    color: var(--primary);
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.program-carousel-card--master .program-carousel-card__degree {
    background: var(--color-secondary-light);
    color: var(--secondary);
}

.program-carousel-card--doctorate .program-carousel-card__degree {
    background: #f3e5f5;
    color: #7b1fa2;
}

.program-carousel-card__name {
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0 0 0.5rem;
    color: var(--color-gray-800);
    line-height: 1.4;
}

.program-carousel-card__description {
    font-size: 0.875rem;
    color: var(--color-gray-600);
    line-height: 1.6;
    margin: 0;
}

.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--color-white);
    border: 2px solid var(--color-gray-300);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: var(--shadow);
}

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

.carousel-nav--prev {
    left: 0;
}

.carousel-nav--next {
    right: 0;
}

.program-card {
    background: var(--color-white);
    padding: 1rem;
    border-radius: 10px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    border-left: 3px solid var(--primary);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

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

.program-icon-square {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 12px;
    margin-bottom: 0.75rem;
    color: var(--color-white);
    box-shadow: 0 4px 12px rgba(30, 58, 95, 0.2);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.program-card__degree {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--color-white);
    background: var(--primary);
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    margin-bottom: 0.5rem;
}

.program-card__name {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.3;
}

.program-card--master {
    border-left-color: var(--secondary);
}

.program-card--master .program-card__degree {
    background: var(--secondary);
}

.program-card--doctorate {
    border-left-color: #9333ea;
}

.program-card--doctorate .program-card__degree {
    background: #9333ea;
}

@media (max-width: 768px) {
    .programs-carousel-wrapper {
        padding: 0 2.5rem;
    }

    .program-carousel-card {
        flex: 0 0 280px;
    }

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

    .dean-card {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
    }

    .dean-card__message {
        border-left: none;
        border-top: 3px solid var(--primary);
        padding-left: 0;
        padding-top: 1rem;
    }

    .vice-deans {
        flex-direction: column;
        align-items: stretch;
    }

    .degree-badge {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }
}

/* ================================
   Personnel / Executives Cards (ใช้ theme --color-dean, --color-vice, --color-chair)
   ================================ */
.exec-card--dean .exec-card__photo-wrap {
    background: linear-gradient(135deg, #fda4af, var(--color-dean));
}

.exec-card--dean .exec-card__position {
    color: var(--color-dean);
}

.exec-card--vice .exec-card__photo-wrap {
    background: linear-gradient(135deg, #93c5fd, var(--color-vice));
}

.exec-card--vice .exec-card__position {
    color: var(--color-vice);
}

.exec-card--asst .exec-card__photo-wrap {
    background: linear-gradient(135deg, #fcd34d, var(--color-asst));
}

.exec-card--asst .exec-card__position {
    color: var(--color-asst);
}

.exec-card--head .exec-card__photo-wrap {
    background: linear-gradient(135deg, #5eead4, var(--color-head));
}

.exec-card--head .exec-card__position {
    color: var(--color-head);
}

.exec-card--chair .exec-card__photo-wrap {
    background: linear-gradient(135deg, #c4b5fd, var(--color-chair));
}

.exec-card--chair .exec-card__position {
    color: var(--color-chair);
}

/* QA Compact Grid */
.qa-compact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.qa-compact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    background: var(--color-white);
    border-radius: 10px;
    border: 1px solid var(--color-gray-200);
    text-decoration: none;
    transition: all 0.2s ease;
}

.qa-compact-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

.qa-compact-item__icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-gray-100);
    border-radius: 8px;
    color: var(--primary);
}

.qa-compact-item__icon--dark {
    background: var(--color-gray-800);
    color: var(--color-white);
}

.qa-compact-item__icon--accent {
    background: #fef3c7;
    color: #d97706;
}

.qa-compact-item__text h4 {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary);
    margin: 0;
    line-height: 1.3;
}

.qa-compact-item__text p {
    font-size: 0.75rem;
    color: var(--color-gray-600);
    margin: 0.15rem 0 0 0;
}

/* animate-on-scroll (Humaan-style reveal) */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered delay for personnel/exec cards in rows and grids */
.exec-row .exec-card.animate-fade-in-up:nth-child(1),
.exec-row .team-card.animate-fade-in-up:nth-child(1),
.exec-grid .exec-card.animate-fade-in-up:nth-child(1),
.personnel-list-row .exec-card.animate-fade-in-up:nth-child(1) { animation-delay: 0.05s; }
.exec-row .exec-card.animate-fade-in-up:nth-child(2),
.exec-row .team-card.animate-fade-in-up:nth-child(2),
.exec-grid .exec-card.animate-fade-in-up:nth-child(2),
.personnel-list-row .exec-card.animate-fade-in-up:nth-child(2) { animation-delay: 0.1s; }
.exec-row .exec-card.animate-fade-in-up:nth-child(3),
.exec-row .team-card.animate-fade-in-up:nth-child(3),
.exec-grid .exec-card.animate-fade-in-up:nth-child(3),
.personnel-list-row .exec-card.animate-fade-in-up:nth-child(3) { animation-delay: 0.15s; }
.exec-row .exec-card.animate-fade-in-up:nth-child(4),
.exec-row .team-card.animate-fade-in-up:nth-child(4),
.exec-grid .exec-card.animate-fade-in-up:nth-child(4),
.personnel-list-row .exec-card.animate-fade-in-up:nth-child(4) { animation-delay: 0.2s; }
.exec-row .exec-card.animate-fade-in-up:nth-child(5),
.exec-row .team-card.animate-fade-in-up:nth-child(5),
.exec-grid .exec-card.animate-fade-in-up:nth-child(5),
.personnel-list-row .exec-card.animate-fade-in-up:nth-child(5) { animation-delay: 0.25s; }
.exec-row .exec-card.animate-fade-in-up:nth-child(6),
.exec-row .team-card.animate-fade-in-up:nth-child(6),
.exec-grid .exec-card.animate-fade-in-up:nth-child(6),
.personnel-list-row .exec-card.animate-fade-in-up:nth-child(6) { animation-delay: 0.3s; }
.exec-row .exec-card.animate-fade-in-up:nth-child(7),
.exec-row .team-card.animate-fade-in-up:nth-child(7),
.exec-grid .exec-card.animate-fade-in-up:nth-child(7),
.personnel-list-row .exec-card.animate-fade-in-up:nth-child(7) { animation-delay: 0.35s; }
.exec-row .exec-card.animate-fade-in-up:nth-child(8),
.exec-row .team-card.animate-fade-in-up:nth-child(8),
.exec-grid .exec-card.animate-fade-in-up:nth-child(8),
.personnel-list-row .exec-card.animate-fade-in-up:nth-child(8) { animation-delay: 0.4s; }
.exec-row .exec-card.animate-fade-in-up:nth-child(9),
.exec-row .team-card.animate-fade-in-up:nth-child(9),
.exec-grid .exec-card.animate-fade-in-up:nth-child(9),
.personnel-list-row .exec-card.animate-fade-in-up:nth-child(9) { animation-delay: 0.45s; }
.exec-row .exec-card.animate-fade-in-up:nth-child(10),
.exec-row .team-card.animate-fade-in-up:nth-child(10),
.exec-grid .exec-card.animate-fade-in-up:nth-child(10),
.personnel-list-row .exec-card.animate-fade-in-up:nth-child(10) { animation-delay: 0.5s; }

.team-grid .team-card.animate-fade-in-up:nth-child(1) { animation-delay: 0.05s; }
.team-grid .team-card.animate-fade-in-up:nth-child(2) { animation-delay: 0.1s; }
.team-grid .team-card.animate-fade-in-up:nth-child(3) { animation-delay: 0.15s; }
.team-grid .team-card.animate-fade-in-up:nth-child(4) { animation-delay: 0.2s; }
.team-grid .team-card.animate-fade-in-up:nth-child(5) { animation-delay: 0.25s; }
.team-grid .team-card.animate-fade-in-up:nth-child(6) { animation-delay: 0.3s; }
.team-grid .team-card.animate-fade-in-up:nth-child(7) { animation-delay: 0.35s; }
.team-grid .team-card.animate-fade-in-up:nth-child(8) { animation-delay: 0.4s; }
.team-grid .team-card.animate-fade-in-up:nth-child(9) { animation-delay: 0.45s; }
.team-grid .team-card.animate-fade-in-up:nth-child(10) { animation-delay: 0.5s; }
.team-grid .team-card.animate-fade-in-up:nth-child(n+11) { animation-delay: 0.55s; }

/* ================================
   Event Coming Up (หน้าแรก)
   ================================ */
.events-coming-up {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--spacing-6);
}

.event-card {
    display: flex;
    align-items: stretch;
    background: var(--color-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--color-gray-100);
}

.event-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.event-card__date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 80px;
    padding: var(--spacing-4);
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: var(--color-white);
}

.event-card__day {
    display: block;
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1;
}

.event-card__month {
    display: block;
    font-size: var(--text-sm);
    font-weight: 600;
    text-transform: uppercase;
    margin-top: 0.25rem;
}

.event-card__body {
    flex: 1;
    padding: var(--spacing-4);
    display: flex;
    flex-direction: column;
}

.event-card__title {
    font-size: 1.05rem;
    font-weight: 600;
    margin: 0 0 0.5rem;
    line-height: 1.4;
    color: var(--primary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.event-card:hover .event-card__title {
    color: var(--primary-dark);
}

.event-card__excerpt {
    font-size: var(--text-sm);
    color: var(--color-gray-600);
    line-height: 1.5;
    margin: 0 0 0.5rem;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.event-card__link {
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--primary);
}

.event-card:hover .event-card__link {
    text-decoration: underline;
}

@media (max-width: 640px) {
    .events-coming-up {
        grid-template-columns: 1fr;
    }

    .event-card__date {
        min-width: 70px;
        padding: var(--spacing-3);
    }

    .event-card__day {
        font-size: 1.5rem;
    }
}

/* ================================
   News Section Compact (ข่าวประชาสัมพันธ์แบบกะทัดรัด เนื้อหาครบ)
   ================================ */
.news-section--compact {
    padding: var(--spacing-5) 0;
}
.news-section--compact .news-section__header {
    margin-bottom: var(--spacing-3);
}
.news-section--compact .news-section__title {
    font-size: var(--text-xl);
}
.news-section--compact .featured-news {
    gap: var(--spacing-3);
}
.news-section--compact .featured-news .card {
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.news-section--compact .featured-news .card__image {
    height: 140px;
    object-fit: cover;
}
.news-section--compact .featured-news .card__content {
    padding: var(--spacing-2) var(--spacing-3);
}
.news-section--compact .featured-news .card__category {
    font-size: 0.65rem;
    margin-bottom: 0.25rem;
}
.news-section--compact .featured-news .card__title {
    font-size: var(--text-sm);
    line-height: 1.35;
    margin-bottom: var(--spacing-1);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.news-section--compact .featured-news .card__title a {
    text-decoration: none;
}
.news-section--compact .featured-news .card__excerpt {
    font-size: 0.75rem;
    line-height: 1.4;
    margin-bottom: var(--spacing-1);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: var(--color-gray-600);
}
.news-section--compact .featured-news .card__meta {
    font-size: 0.7rem;
    padding-top: 0.25rem;
}
@media (max-width: 1024px) {
    .news-section--compact .featured-news .card__image {
        height: 120px;
    }
}
@media (max-width: 640px) {
    .news-section--compact .featured-news .card__image {
        height: 110px;
    }
    .news-section--compact .featured-news .card__content {
        padding: var(--spacing-2);
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-carousel__slide {
        transition: none;
    }
    .hero-carousel__nav,
    .hero-carousel__dot,
    .carousel-nav,
    .program-carousel-card,
    .dean-card,
    .vice-dean-card,
    .degree-badge,
    .event-card {
        transition: none;
    }
    .hero-carousel__nav:hover,
    .carousel-nav:hover,
    .program-carousel-card:hover,
    .vice-dean-card:hover,
    .degree-badge:hover,
    .event-card:hover {
        transform: none;
    }
    .animate-on-scroll {
        opacity: 1;
        transform: none;
        transition: none;
    }
}
