@import url('./MOE.App.css');
/* Common components (header, footer, mobile nav) are in MOE.App.css */

/* =====================================================
   MOE.HomePage.css
   Page-specific styles only — consumes tokens from MOE.DS.css
   via the MOE.App.css import chain.
   ===================================================== */

/* =====================================================
   Page-scoped design tokens
   Supplements --dga-* globals for values not in the DS.
   ===================================================== */
:root {
    /* Hero */
    --moe-hero-overlay: #092A1ECC;
    --moe-hero-title-size: 60px;
    --moe-hero-desc-size: 20px;
    --moe-hero-desc-lh: 30px;

    /* Sections */
    --moe-section-title-size: 30px;
    --moe-section-pad: 40px;

    /* Statistics */
    --moe-stat-number-size: 48px;

    /* Categories */
    --moe-cat-overlay-to: rgba(20, 87, 58, 0.75);
    --moe-cat-overlay-dark: #000;

    /* Cards */
    --moe-card-img-radius: 8px;
    --moe-arrow-btn-radius: 4px;

    /* Spacing */
    --moe-space-sm: 10px;
    --moe-tag-pad: 6px 16px;
}


/* ---- Hero / Banner Carousel ---- */
.hero-section {
    position: relative;
    height: clamp(380px, 40vw, 560px);
    overflow: hidden;
    color: var(--dga-white);
}

/* Each slide stacks absolutely; active slide fades in */
.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.7s ease;
    pointer-events: none;
    display: flex;
    align-items: flex-end;
}

.hero-slide--active {
    opacity: 1;
    pointer-events: auto;
}

/* Full-bleed background image with overlay (set via inline :style) */
.hero-slide-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
}

/* Text block positioned at the bottom of the slide */
.hero-content {
    position: relative;
    z-index: 1;
    padding-bottom: 4rem;
}

.hero-content h1 {
    font-size: var(--moe-hero-title-size);
    font-weight: var(--dga-font-weight-bold);
    margin-bottom: var(--dga-space-3);
    line-height: var(--dga-line-height-snug);
    color: var(--dga-text-oncolor-primary);
}

.hero-content p {
    font-size: var(--moe-hero-desc-size);
    max-width: 600px;
    line-height: var(--moe-hero-desc-lh);
    color: var(--dga-text-oncolor-primary);
}

/* ---- Hero CTA Button ---- */
.hero-cta-btn {
    display: inline-flex;
    align-items: center;
    margin-top: var(--dga-space-5);
    padding: 0.625rem 1.75rem;
    border-radius: var(--dga-radius-md);
    border: 1.5px solid var(--dga-white);
    background-color: transparent;
    color: #161616 !important;
    font-size: var(--dga-font-size-md);
    font-weight: var(--dga-font-weight-medium);
    font-family: var(--dga-font-family);
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.25s ease, color 0.25s ease;
    line-height: 1.5;
}

.hero-cta-btn:hover,
.hero-cta-btn:focus-visible {
    background-color: var(--dga-white);
    color: var(--dga-green-dark);
    outline: none;
}

/* ---- Hero Dots ---- */
.hero-dots {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 3;
}

.hero-dot {
    width: 10px;
    height: 10px;
    border-radius: var(--dga-radius-pill);
    border: none;
    padding: 0;
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.45);
    transition: background-color 0.3s ease, width 0.3s ease;
    flex-shrink: 0;
}

.hero-dot--active {
    /* width: 24px; */
    background-color: var(--dga-green);
}

/* ---- Hero Arrows ---- */
.hero-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background-color: rgba(255, 255, 255, 0.18);
    color: var(--dga-white);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.25s ease;
    font-size: 1.25rem;
    backdrop-filter: blur(4px);
}

.hero-arrow:hover {
    background-color: rgba(255, 255, 255, 0.32);
}

/* RTL: prev = right side, next = left side */
.hero-arrow--prev {
    right: 1.5rem;
}

.hero-arrow--next {
    left: 1.5rem;
}

/* LTR: swap sides and flip icons */
[dir="ltr"] .hero-arrow--prev {
    right: auto;
    left: 1.5rem;
}

[dir="ltr"] .hero-arrow--next {
    left: auto;
    right: 1.5rem;
}

[dir="ltr"] .hero-arrow i {
    transform: scaleX(-1);
}


/* ---- Section Shared ---- */
.section-title {
    font-size: var(--moe-section-title-size);
    font-weight: var(--dga-font-weight-bold);
    color: var(--dga-text-default);
}

.section-desc {
    font-size: 16px;
    line-height: var(--dga-line-height-relaxed);
    color: var(--dga-text-default);
}

.section-spaces {
    padding: var(--moe-section-pad);
}

.section-content {
    display: flex;
    flex-direction: column;
    gap: var(--dga-space-8);
}


/* ---- Statistics Section ---- */
.statistics-raw {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--dga-space-8);
}

.statistics-section {
    background-color: var(--dga-bg-white);
}

.statistics-item {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: var(--moe-space-sm);
    width: 224px;
    height: 204px;
    border-radius: 16px;
    background: var(--dga-bg-card);
}

.statistics-icon {
    width: 56px;
    height: 56px;
    background-color: var(--dga-green-150);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--dga-radius-full);
}

.statistics-icon i {
    font-size: 30px;
    color: var(--dga-green-700);
}

.statistics-number {
    color: var(--dga-green-text);
    font-size: var(--moe-stat-number-size);
}

.statistics-label {
    color: var(--dga-text-body);
    font-size: 16px;
}


/* ---- Categories Section ---- */
.categories-section {
    background-color: var(--dga-bg-body);
    border-bottom: 12px solid;
    border-image-source: linear-gradient(270deg, #32919A 0%, #379B8C 51.92%, #40AD73 100%);
    border-image-slice: 1;
}

.categories-grid {
    display: flex;
    height: 280px;
}

.category-card {
    position: relative;
    flex: 1;
    min-width: 0;
    cursor: pointer;
    border-radius: var(--dga-radius-xl);
    border: 1px solid var(--dga-border-color);
    overflow: hidden;
}

.category-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: opacity 0.45s ease-in-out;
}

.category-card.active .category-bg {
    opacity: 0;
}

.category-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 0%, var(--moe-cat-overlay-to) 100%);
    z-index: 1;
}

.category-overlay::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, var(--moe-cat-overlay-dark) 0%, #14573A 100%);
    opacity: 0;
    transition: opacity 0.45s ease-in-out;
}

.category-card.active .category-overlay::after {
    opacity: 1;
}

.category-hover-pattern {
    position: absolute;
    inset: 0;
    background-image: url('../assets/images/categories/moe-card-hover.png');
    background-repeat: no-repeat;
    background-position: top right;
    background-size: auto;
    z-index: 2;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.45s ease-in-out;
}

[dir="rtl"] .category-hover-pattern {
    background-position: top left;
}

.category-card.active .category-hover-pattern {
    opacity: 1;
}

.category-content {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.25rem;
}

.category-label {
    font-size: 24px;
    font-weight: 500;
    color: var(--dga-link-oncolor);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: font-size 0.45s ease-in-out, margin-bottom 0.45s ease-in-out;
}

.category-card.active .category-label {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    white-space: normal;
}

.category-desc {
    font-size: 0.88rem;
    color: var(--dga-link-oncolor);
    line-height: 1.65;
    margin: 0;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transform: translateY(6px);
    transition: opacity 0.35s ease-in-out 0.1s, transform 0.35s ease-in-out 0.1s, max-height 0.35s ease-in-out 0.1s;
}

.category-card.active .category-desc {
    opacity: 1;
    max-height: 10em;
    transform: translateY(0);
}

/* Stacked layout (< md): keep only the outer corners of the stack */
@media (max-width: 767px) {
    .categories-grid .cat-first {
        border-end-start-radius: 0;
        border-end-end-radius: 0;
    }

    .categories-grid .cat-inner {
        border-radius: 0;
    }

    .categories-grid .cat-last {
        border-start-start-radius: 0;
        border-start-end-radius: 0;
    }
}

/* Flatten corners at md+ — logical props handle RTL & LTR automatically */
@media (min-width: 768px) {

    .categories-grid .cat-first {
        border-start-end-radius: 0;
        border-end-end-radius: 0;
    }

    .categories-grid .cat-inner {
        border-radius: 0;
    }

    .categories-grid .cat-last {
        border-start-start-radius: 0;
        border-end-start-radius: 0;
    }
}


/* ---- Services Section ---- */

/* Scroll wrapper — lets the ul keep overflow:visible for the ::after indicator
   while the wrapper clips and scrolls horizontally on small screens */
.svc-tabs-wrap {
    max-width: 100%;
    overflow-x: auto;
    overflow-y: visible;
    scrollbar-width: none;
    padding-bottom: 3px;
    /* room for the 3px ::after indicator */
}

.svc-tabs-wrap::-webkit-scrollbar {
    display: none;
}

.services-section {
    background-color: var(--dga-bg-white);
}

/* Clip the peek overflow at carousel edges */
.services-section .dga-carousel {
    overflow: hidden;
}

/* Equal-height cards: stretch all slides to the tallest */
.services-section .dga-carousel .slick-track {
    align-items: stretch;
}

.services-section .dga-carousel .slick-slide {
    display: flex !important;
    flex-direction: column;
}

/* Remove card hover lift effect */
.services-section .dga-card:hover {
    box-shadow: none;
    transform: none;
}

.svc-slide {
    padding-block: 0;
    padding-inline: 16px;
    height: 100%;
}

.svc-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.svc-card-body {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    gap: 16px;
    background-color: var(--dga-bg-white);
}

/* Icon badge: reads at inline-start (right in RTL) */
.svc-icon-wrap {
    display: flex;
    justify-content: flex-start;
    /* flex-start = right in RTL */
}

.svc-icon-badge {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: var(--dga-green-150);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.svc-icon-badge i {
    font-size: 1.3rem;
    color: var(--dga-green-700);
}

.svc-card-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--dga-text-display);
}

.svc-card-desc {
    font-size: 16px;
    color: var(--dga-text-dark);
    line-height: 24px;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Outlined tag variant for service cards */
.svc-card .dga-tag-green {
    background-color: transparent;
    border: 1px solid var(--dga-green);
    color: var(--dga-green);
}

.svc-card-footer {
    display: flex;
    gap: var(--dga-space-2);
    padding: 0 16px 16px;
    flex-wrap: wrap;
    background-color: var(--dga-bg-white);
}

/* Stretch both footer buttons to equal halves */
.svc-btn {
    flex: 1;
    min-width: 0;
    /* allow shrinking below content size */
    text-align: center;
    justify-content: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Dots: uniform circles — no pill expansion on active */
.svc-carousel-dots {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--dga-space-2);
    margin-top: 1.25rem;
}

.svc-carousel-dots .dga-carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--dga-bg-neutral-200);
    border: none;
    padding: 0;
    cursor: pointer;
    transition: background-color 0.25s ease;
}

.svc-carousel-dots .dga-carousel-dot.active,
.svc-carousel-dots .dga-carousel-dot[aria-current="true"] {
    width: 12px;
    /* keep circle — override DS 24px pill */
    background-color: var(--dga-green);
}


/* ---- Learn Section ---- */
.learn-section {
    background-color: var(--dga-bg-body);
    overflow: hidden;
    background-image: url('../assets/images/learn-bg.png');
    background-repeat: no-repeat;
    background-position: top right;
    background-size: auto;
}

[dir="rtl"] .learn-section {
    background-position: top left;
}

.learn-section-header {
    margin-bottom: var(--dga-space-6);
}

.learn-carousel {
    overflow: hidden;
}

.learn-carousel .slick-list {
    position: relative;
    /* containing block for absolutely-positioned slides */
    height: 390px;
    /* fixed height since slides are position:absolute */
    overflow: hidden;
    /* clips peek-cards at container edges */
    padding-inline: 0;
    border-radius: 0;
}

/* Force LTR track layout so translateX centering works consistently in both LTR/RTL */
.learn-carousel .slick-track {
    direction: ltr;
}

/* Restore document text direction inside each slide */
[dir="rtl"] .learn-carousel .learn-slide {
    direction: rtl;
}

.learn-slide {
    padding: 0 10px;
    transform-origin: 50% 100%;
    /* fan rotation pivots from bottom-centre */
    cursor: grab;
}

.learn-slide:active {
    cursor: grabbing;
}

.learn-card {
    display: flex;
    height: 340px;
    border-radius: var(--dga-radius-2xl);
    overflow: hidden;
    box-shadow: var(--dga-shadow-lg);
    background: var(--dga-white);
    border: 1px solid var(--dga-border-color);
    transition: box-shadow 0.45s ease, border-color 0.45s ease, background 0.45s ease;
    background-color: var(--dga-bg-white);
}

.learn-slide--active .learn-card,
.learn-card:hover {
    background: linear-gradient(250.42deg, rgba(64, 174, 114, 0.08) 52.02%, rgba(54, 150, 147, 0.08) 75.53%);
    border-color: var(--dga-border-primary);
    box-shadow: var(--dga-shadow-green);
}

.learn-slide--active .learn-card .learn-card-icon,
.learn-card:hover .learn-card-icon {
    background-color: var(--dga-white);
    border: none;
}

/* In RTL, flex row flows right-to-left:
   .learn-card-body (first in DOM) → appears on the RIGHT (start)
   .learn-card-img  (second in DOM) → appears on the LEFT  (end)  */
.learn-card-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: var(--dga-space-2);
    padding: 12px;
    position: relative;
    z-index: 1;

}

.learn-card-img {
    flex: 0 0 48%;
    overflow: hidden;
    position: relative;
    z-index: 0;
}

.learn-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: transform 0.4s ease, object-position 0.4s ease;
}

.learn-slide--active .learn-card .learn-card-img img,
.learn-card:hover .learn-card-img img {
    transform: scale(1.3, 1.4);
}

.learn-card-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    border-radius: 50%;
    border: 1.5px solid var(--dga-green-200);
    background-color: var(--dga-green-50, #e6f4ed);
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: flex-start;
}

[data-theme="dark"] .learn-card-icon {
    background-color: var(--dga-white);
    border-color: transparent;
}

.learn-card-icon i {
    font-size: 1.1rem;
    color: var(--dga-green);
}

.learn-card-body .learn-body-content {
    display: flex;
    flex-direction: column;
    gap: var(--dga-space-2);
}

.learn-card-title {
    font-size: 18px;
    font-weight: var(--dga-font-weight-bold);
    color: var(--dga-text-display);
    margin: 0;
}

.learn-card-desc {
    font-size: clamp(13px, 1.4vw, 17px);
    color: var(--dga-text-body);
    line-height: 1.8;
    flex: 1;
    margin: 0;
    width: 100%;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
}

@media (min-width: 768px) {
    .learn-card-desc {
        width: 85%;
    }
}

.learn-card-btn {
    align-self: flex-start;
    gap: var(--dga-space-2);
}

.learn-carousel-arrows {
    display: flex;
    justify-content: center;
    gap: var(--dga-space-3);
    margin-top: var(--dga-space-6);
}

.learn-arrow-btn {
    width: 52px;
    height: 52px;
    border-radius: var(--dga-radius-full);
    background-color: var(--dga-primary);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--dga-white);
    font-size: 1.2rem;
    transition: var(--dga-transition);
    flex-shrink: 0;
}

.learn-arrow-btn:hover:not(:disabled) {
    background-color: var(--dga-green-dark);
}

.learn-arrow-btn:disabled {
    background-color: var(--dga-gray-200);
    color: var(--dga-gray-400);
    cursor: not-allowed;
}

.learn-arrow-btn i {
    color: var(--dga-icon-oncolor);
}

/* ---- LTR overrides ---- */

/* Flip arrow icons: in RTL the buttons render right=prev / left=next correctly.
   In LTR the DOM order is preserved but the icons point the wrong way — flip them. */
[dir="ltr"] .learn-carousel-arrows .learn-arrow-btn i {
    transform: scaleX(-1);
}

/* Mirror the card layout: in LTR image goes on the LEFT, body on the RIGHT */
[dir="ltr"] .learn-card {
    flex-direction: row-reverse;
}

/* Flip the CTA button arrow icon (hgi-arrow-left-02 → should point right in LTR) */
[dir="ltr"] .learn-card-btn i {
    transform: scaleX(-1);
}


/* ---- Desktop: allow image hover overflow ABOVE while peek clips the sides ---- */
@media (min-width: 992px) {
    .learn-carousel {
        overflow: visible;
    }

    /* clip-path: -200px top allows hover image to rise above the card;
       0px sides keep the peek cards clipped at the viewport boundary */
    .learn-carousel-viewport {
        overflow: visible;
        clip-path: inset(-220px 0px 0px 0px);
    }

    .learn-carousel .slick-list {
        overflow: visible;
        /* let clip-path handle side clipping on desktop */
    }

    .learn-card {
        overflow: visible;
        clip-path: inset(-220px 0px 0px 0px round var(--dga-radius-2xl));
    }

    .learn-card-img {
        overflow: visible;
    }
}

/* ---- Responsive ---- */
@media (max-width: 991px) {
    .hero-content h1 {
        font-size: 1.6rem;
    }

    .hero-arrow {
        display: none;
    }

    /* hide arrows on tablet – dots are enough */

    /* Tablet: fixed height for the list to contain rotated adjacent cards */
    .learn-carousel .slick-list {
        height: 420px;
    }

    .learn-card {
        height: 340px;
    }
}

@media (max-width: 767px) {
    .hero-content h1 {
        font-size: 1.4rem;
    }

    .hero-content {
        padding-bottom: 3rem;
    }

    .categories-grid {
        flex-direction: column;
        height: auto;
    }

    .category-card {
        flex: none;
        /* height: 110px; */
        height: 240px;
    }

    .category-card.active {
        flex: none;
        height: 240px;
    }

    .category-label {
        white-space: normal;
    }

    .category-card.active .category-label {
        font-size: 1.15rem;
    }

    .learn-carousel .slick-list {
        height: 300px;
    }

    .learn-card {
        flex-direction: column;
        height: 280px;
        padding-bottom: var(--dga-space-4);
    }

}

@media (max-width: 575px) {

    /* Mobile carousel: full-width cards, no side padding */
    .svc-slide {
        padding: 0;
    }

    /* Learn carousel: full-width cards, no gap between slides */
    .learn-slide {
        padding: 0;
    }

    .learn-carousel .slick-list {
        height: 330px;
    }

    .learn-card {
        height: 310px;
    }
}

/* ================================================================
   EVENTS SECTION
================================================================ */
.events-section {
    background-color: var(--dga-bg-body);
    /* --dga-bg-body = background-body token */
}

.events-section-header {
    margin-bottom: var(--dga-space-6);
}

.events-header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: var(--dga-space-4);
}


/* ---- Carousel container ---- */
.events-carousel {
    overflow: hidden;
}

.events-slick-list {
    overflow: visible;
}

.events-slick-track {
    display: flex;
}

/* ---- Slides ---- */
.event-slide {
    padding: 0 var(--dga-space-2);
    flex-shrink: 0;
}

/* ---- Card ---- */
.event-card {
    background-color: var(--dga-bg-card);
    border: 2px solid var(--dga-border-color);
    border-radius: var(--dga-radius-2xl);
    padding: var(--dga-space-4);
    display: flex;
    gap: var(--dga-space-2);
    transition: var(--dga-transition);
    height: 100%;
}

.event-card-title {
    /* font-size: 16px; */
    font-size: clamp(17px, 1.4vw, 20px);
    font-weight: var(--dga-font-weight-bold);
    color: var(--dga-text-display);
    line-height: 1.6;
    margin-bottom: 0;
}

/* ---- Meta: date + month grouped ---- */
.event-meta {
    display: flex;
    flex-direction: column;
    gap: var(--dga-space-1);
    align-items: center;
    justify-content: center;
}

/* ---- Date row ---- */
.event-date-row {
    display: flex;
    align-items: center;
    gap: var(--dga-space-2);
}

.event-day {
    font-size: 16px;
    font-weight: var(--dga-font-weight-bold);
    color: var(--dga-text-dark);
    line-height: 1;
}

.event-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--dga-green);
    flex-shrink: 0;
}

.event-category {
    font-size: 13px;
    color: var(--dga-green);
    font-weight: 500;
}

.event-month {
    font-size: 13px;
    color: var(--dga-gray-500);
    margin: 0;
}

/* ---- Card footer ---- */
.event-card-content {
    display: flex;
    align-items: start;
    gap: var(--dga-space-2);
    flex-direction: column;
    padding-inline-start: .5rem;
    border-inline-start: 1px solid var(--dga-border-color);
}

.event-card-footer {
    display: flex;
    gap: var(--dga-space-2);
}

.event-icon-btn {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    border-radius: var(--dga-radius-sm);
    background-color: var(--dga-gray-100);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dga-text-body);
    cursor: pointer;
    font-size: 1rem;
    transition: var(--dga-transition);
}

.event-icon-btn:hover {
    border-color: var(--dga-green);
    color: var(--dga-green);
}

.event-icon-btn i {
    font-size: 1.5rem;
}

.event-details-btn {
    gap: var(--dga-space-2);
    font-size: 13px;
    padding-block: 6px;
}

/* ---- Calendar popup ---- */
.event-cal-wrap {
    position: relative;
}

.event-cal-popup {
    position: absolute;
    bottom: calc(100% + 6px);
    inset-inline-end: 0;
    background: var(--dga-bg-card);
    border: 1px solid var(--dga-border-color);
    border-radius: var(--dga-radius-md);
    box-shadow: var(--dga-shadow-md);
    min-width: 200px;
    z-index: 10;
    overflow: hidden;
}

.event-cal-option {
    display: flex;
    align-items: center;
    gap: var(--dga-space-2);
    width: 100%;
    padding: var(--dga-space-2) var(--dga-space-3);
    background: none;
    border: none;
    cursor: pointer;
    font-size: var(--dga-font-size-sm);
    color: var(--dga-text);
    text-align: start;
    transition: background var(--dga-transition);
}

.event-cal-option:hover {
    background: var(--dga-gray-50);
    color: var(--dga-green);
}

.event-cal-option i {
    font-size: 1.1rem;
    flex-shrink: 0;
}

/* ---- Dots: reuse .svc-carousel-dots + .dga-carousel-dot from services ---- */

/* ---- Responsive ---- */
@media (max-width: 991px) {
    .event-slide {
        padding: 0 6px;
    }
}

@media (max-width: 575px) {
    .event-slide {
        padding: 0 4px;
    }

    .events-header-row {
        flex-direction: column;
        gap: var(--dga-space-2);
    }
}

/* ================================================================
   QUICK ACCESS SECTION
================================================================ */
.qa-section {
    background-color: var(--dga-bg-white);
}

.qa-section .qa-content {
    background: linear-gradient(250.42deg, rgba(64, 174, 114, 0.1) 52.02%, rgba(54, 150, 147, 0.1) 75.53%);
    padding: 24px;
    height: 100%;
    width: 100%;
    border-radius: var(--dga-radius-md);
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.qa-section h2 {
    color: var(--dga-green-text);
}

.qa-section .svc-tabs-wrap,
.qa-tags-wrap {
    justify-content: center;
    display: flex;
}

/* Clip carousel peek overflow */
.qa-carousel {
    overflow: hidden;
}

/* Equal-height cards: stretch all slides to the tallest in the track */
.qa-carousel .slick-track {
    align-items: stretch;
}

/* Gradient fade — scoped to slick-list so height matches the cards exactly */
.qa-carousel--has-peek .slick-list {
    position: relative;
}

.qa-carousel--has-peek .slick-list::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    /* RTL: peek is on the physical left */
    left: 0;
    width: 90px;
    background: linear-gradient(90deg, var(--dga-bg-body) 0%, transparent 100%);
    pointer-events: none;
    z-index: 2;
}

/* LTR: peek is on the physical right */
[dir="ltr"] .qa-carousel--has-peek .slick-list::after {
    left: auto;
    right: 0;
    background: linear-gradient(270deg, var(--dga-bg-body) 0%, transparent 100%);
}

/* ---- Slides ---- */
.qa-slide {
    padding: 0 var(--dga-space-2);
    height: 100%;
    /* fill the stretched track height */
}

/* ---- Card ---- */
.qa-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    /* match the tallest card in the track */
    background-color: var(--dga-bg-body);
    border-radius: var(--dga-radius-xl);
    border: 1px solid var(--dga-border-color);
    transition: var(--dga-transition);
    overflow: hidden;
}

/* Header: icon badge + title */

.qa-icon-badge {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: var(--dga-green-150);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.qa-icon-badge i {
    font-size: 1.4rem;
    color: var(--dga-green-700);
}

.qa-icon-badge--logo {
    width: 72px;
    height: 48px;
    border-radius: var(--dga-radius-sm);
    background-color: var(--dga-gray-50);
    border: 1px solid var(--dga-border);
    padding: 4px;
}

.qa-uni-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.qa-card-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--dga-text-display);
    line-height: 1.4;
}

/* Divider */
.qa-card-divider {
    height: 1px;
    background-color: var(--dga-border-color);
    margin: 0 16px;
}

/* Body: contact rows */
.qa-card-body {
    display: flex;
    flex-direction: column;
    gap: var(--moe-space-sm);
    padding: 14px 16px;
    flex: 1;
}

.qa-card-row {
    display: flex;
    align-items: center;
    gap: var(--moe-space-sm);
}

.qa-card-row i {
    font-size: 1.1rem;
    flex-shrink: 0;
    width: 20px;
    text-align: center;
    font-weight: 500;
}

.qa-card-row-value {
    font-size: 13px;
    color: var(--dga-green);
    text-decoration: underline;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.2s;
}


/* Footer: CTA link */
.qa-card-footer {
    padding: 0 16px 16px;
    width: max-content;
}

.qa-card-footer a i {
    color: var(--dga-white);
    font-size: 1.2rem;
    font-weight: 400;
}

/* ---- Tag filter chips ---- */
.qa-tags-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: var(--dga-space-2);
}

.qa-tag-filter {
    display: inline-flex;
    align-items: center;
    padding: var(--moe-tag-pad);
    border-radius: var(--dga-radius-md);
    border: none;
    background: var(--dga-white);
    font-size: 14px;
    font-weight: 500;
    font-family: var(--dga-font-family);
    color: var(--dga-green-text);
    cursor: pointer;
    transition: var(--dga-transition);
    line-height: 1.5;
}

.qa-tag-filter:hover {
    background: linear-gradient(250.42deg, rgba(64, 174, 114, 0.1) 52.02%, rgba(54, 150, 147, 0.1) 75.53%);
}

.qa-tag-filter.active {
    background-color: var(--dga-primary);
    color: var(--dga-white);
}

/* ---- Responsive ---- */
@media (max-width: 991px) {
    .qa-slide {
        padding: 0 6px;
    }
}

@media (max-width: 768px) {

    /* Hide peek gradient — one full card per row, no peeking */
    .qa-carousel--has-peek .slick-list::after {
        display: none;
    }

    /* Full-width card, no side padding */
    .qa-slide {
        padding: 0;
    }

    /* Allow tabs to scroll from start so no tab is hidden */
    .qa-section .svc-tabs-wrap {
        justify-content: flex-start;
        overflow-x: auto;
    }

    .qa-section .svc-tabs-wrap .dga-tabs {
        width: max-content;
        /* min-width: 100%; */
    }
}

@media (max-width: 575px) {
    .qa-section .qa-content {
        padding: 16px;
        gap: var(--dga-space-8);
    }
}

/* ================================================================
   MEDIA CENTRE SECTION
================================================================ */
.mc-section {
    background-color: var(--dga-bg-white);
}

.mc-content {
    display: flex;
    flex-direction: column;
    gap: var(--dga-space-8);
}

/* ---- Section header ---- */
.mc-section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: var(--dga-space-4);
}

/* ---- Carousel container ---- */
.mc-carousel {
    overflow: hidden;
}

/* ---- Slides: flex column so mc-card height:100% works ---- */
.mc-carousel .slick-slide {
    display: flex !important;
    flex-direction: column;
}

.mc-slide {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding-block: 0;
    padding-inline: var(--moe-space-sm);
}

/* ---- Card: fills slide height (equal-height via flexbox on track) ---- */
.mc-card {
    display: flex;
    flex-direction: column;
    background-color: var(--dga-bg-body);
    border: 1px solid var(--dga-border-color);
    border-radius: var(--dga-radius-2xl);
    overflow: hidden;
    transition: var(--dga-transition);
    height: 100%;
    padding: var(--dga-space-4);
    gap: var(--dga-space-4);
}

/* ---- Card image: fixed height so it stays consistent across all card sizes ---- */
.mc-card-img {
    position: relative;
    height: 200px;
    flex-shrink: 0;
    overflow: hidden;
    background-color: var(--dga-gray-100);
    border-radius: var(--moe-card-img-radius);
}

.mc-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.4s ease;
}

/* ---- Category tag badge (overlaid on image bottom) ---- */


/* ---- Card body ---- */
.mc-card-body {
    display: flex;
    flex-direction: column;
    gap: var(--dga-space-2);
    flex: 1;
}


.mc-card-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--dga-text-display);
    line-height: 1.55;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.mc-card-desc {
    font-size: 13px;
    color: var(--dga-text-body);
    line-height: 1.65;
    margin: 0;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.mc-read-btn {
    font-size: 16px;
}

/* ---- Video Modal ---- */
.mc-video-overlay {
    position: fixed;
    inset: 0;
    z-index: 1080;
    background: rgba(0, 0, 0, 0.82);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--dga-space-4);
}

.mc-video-overlay--enter {
    transition: opacity 0.25s ease;
}
.mc-video-overlay--hidden {
    opacity: 0;
}
.mc-video-overlay--visible {
    opacity: 1;
}

.mc-video-dialog {
    position: relative;
    width: 100%;
    max-width: 900px;
    background: #000;
    border-radius: var(--dga-radius-lg);
    overflow: hidden;
    box-shadow: var(--dga-shadow-lg);
}

.mc-video-close {
    position: absolute;
    top: var(--dga-space-3);
    inset-inline-end: var(--dga-space-3);
    z-index: 10;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border: none;
    border-radius: var(--dga-radius-pill);
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    cursor: pointer;
    font-size: 1.1rem;
    transition: background 0.2s;
}
.mc-video-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.mc-video-player {
    display: block;
    width: 100%;
    max-height: 80vh;
    outline: none;
}

/* ---- Skeleton loading cards ---- */
@keyframes mc-shimmer {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}
.mc-shimmer {
    background: linear-gradient(
        90deg,
        var(--dga-gray-100) 25%,
        var(--dga-gray-200) 50%,
        var(--dga-gray-100) 75%
    );
    background-size: 200% 100%;
    animation: mc-shimmer 1.4s infinite;
}
.mc-skeleton-card {
    display: flex;
    flex-direction: column;
    gap: var(--dga-space-4);
    background-color: var(--dga-bg-body);
    border: 1px solid var(--dga-border-color);
    border-radius: var(--dga-radius-2xl);
    overflow: hidden;
    height: 100%;
    padding: var(--dga-space-4);
}
.mc-skeleton-img {
    height: 200px;
    border-radius: var(--moe-card-img-radius);
    flex-shrink: 0;
}
.mc-skeleton-body {
    display: flex;
    flex-direction: column;
    gap: var(--dga-space-3);
    flex: 1;
}
.mc-skeleton-line {
    height: 14px;
    border-radius: var(--dga-radius-sm);
}
.mc-skeleton-btn {
    height: 36px;
    border-radius: var(--dga-radius-md);
    width: 120px;
    margin-top: auto;
}

/* ---- Responsive ---- */
@media (max-width: 991px) {
    .mc-slide {
        padding: 0 8px;
    }
}

@media (max-width: 575px) {
    .mc-slide {
        padding: 0 4px;
    }

    .mc-section-header {
        flex-direction: column;
        gap: var(--dga-space-2);
    }

    .mc-card-img {
        height: 180px;
    }
}

/* ================================================================
   Ministry of Education Systems Section
================================================================ */
.moe-systems-section {
    background-color: var(--dga-bg-body);
}

.moe-systems-header {
    margin-bottom: var(--dga-space-6);
}

/* Flex row: [arrow] [carousel] [arrow] */
.moe-systems-carousel-wrap {
    display: flex;
    align-items: center;
    gap: var(--dga-space-3);
}

[dir="rtl"] .moe-systems-carousel-wrap {
    flex-direction: row-reverse;
}

.moe-sys-arrow-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--moe-arrow-btn-radius);
    border: none;
    background: var(--dga-gray-dark);
    color: var(--dga-text-body);
    cursor: pointer;
    transition: var(--dga-transition);
    font-size: 1.1rem;
}

.moe-sys-arrow-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.moe-sys-arrow-btn:not(:disabled):hover {
    background: var(--dga-gray-350);
}


.moe-systems-carousel {
    flex: 1;
    min-width: 0;
}

.moe-systems-carousel .slick-list {
    overflow: hidden;
}

.moe-systems-carousel .slick-track {
    display: flex;
    align-items: stretch;
    /* equal height for all slides */
}

.moe-sys-slide {
    display: flex;
    /* let card fill full slide height */
    padding: 0 var(--dga-space-2);
}

.moe-sys-card {
    display: flex;
    flex-direction: column;
    background-color: var(--dga-bg-card);
    border-radius: var(--dga-radius-2xl);
    border: 1px solid var(--dga-border);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    width: 100%;
    height: 100%;
    /* stretch to tallest card in row */
    justify-content: center;
    align-items: center;
    transition: var(--dga-transition);
}

.moe-sys-card-img {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--dga-space-4);
    width: 100%;
    height: 120px;
    /* fixed height = same for every card */
}

.moe-sys-card-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.moe-sys-card-body {
    padding: var(--dga-space-4);
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: var(--dga-space-1);
}

.moe-sys-card-name {
    font-size: var(--dga-font-size-md);
    font-weight: 700;
    color: var(--dga-text-display);
    margin: 0;
}

.moe-sys-card-desc {
    font-size: var(--dga-font-size-sm);
    color: var(--dga-gray-600);
    margin: 0;
    line-height: 1.6;
}

.moe-sys-card-footer {
    padding: 0 var(--dga-space-4) var(--dga-space-4);
}

@media (max-width: 991px) {
    .moe-systems-carousel-wrap {
        gap: var(--dga-space-2);
    }
}
