/* Movafaghiat Gallery - external stylesheet */
.mo-gallery-wrapper {
    width: 100%;
    padding: 30px 10px;
    box-sizing: border-box;
    direction: rtl;
    font-family: inherit;
}

.mo-gallery-wrapper *,
.mo-gallery-wrapper *::before,
.mo-gallery-wrapper *::after {
    box-sizing: border-box;
}

.mo-gallery-main-title {
    margin: 0 0 24px;
    text-align: center;
    color: #0f2942;
    font-size: clamp(22px, 4vw, 32px);
    line-height: 1.5;
    font-weight: 800;
}

.mo-gallery-filters {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 24px 28px;
    box-shadow: 0 4px 20px rgba(15, 23, 42, .04);
    margin: 0 auto 35px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.mo-filter-group {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.mo-filter-label {
    font-size: .95rem;
    font-weight: 700;
    color: #0f172a;
    min-width: 100px;
}

.mo-filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.mo-filter-btn {
    appearance: none;
    -webkit-appearance: none;
    background: #f1f5f9;
    color: #334155;
    border: 1px solid #cbd5e1;
    padding: 7px 18px;
    font: inherit;
    font-size: .88rem;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
    transition: all .2s ease;
    outline: none;
}

.mo-filter-btn:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.mo-filter-btn.active {
    background: #1e293b;
    color: #fff;
    border-color: #1e293b;
    box-shadow: 0 2px 8px rgba(30, 41, 59, .25);
}

.mo-year-gallery {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 22px;
}

.mo-gallery-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(15, 23, 42, .05);
    display: flex;
    flex-direction: column;
    transition: transform .3s ease, box-shadow .3s ease;
    min-width: 0;
}

.mo-gallery-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 28px rgba(15, 23, 42, .12);
}

.mo-image-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 843 / 1500;
    padding: 0;
    margin: 0;
    border: 0;
    background: #0f172a;
    overflow: hidden;
    cursor: default;
    display: block;
    text-align: inherit;
    color: inherit;
}

.mo-student-card .mo-image-frame {
    aspect-ratio: 843 / 1500;
}

.mo-image-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
    display: block;
}

.mo-gallery-card:hover .mo-image-frame img {
    transform: scale(1.05);
}

.mo-badge-year {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #1e293b;
    color: #fff;
    font-size: .75rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 6px;
    z-index: 2;
}

.mo-badge-grade {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: #d97706;
    color: #fff;
    font-size: .75rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 6px;
    z-index: 2;
}

.mo-card-content {
    padding: 14px 14px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.mo-card-title {
    font-size: .92rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 10px;
    line-height: 1.5;
}

.mo-card-description {
    font-size: .78rem;
    line-height: 1.6;
    color: #64748b;
    margin: 0 0 16px;
    flex-grow: 1;
}

.mo-stats-badge {
    align-self: flex-start;
    background: #d97706;
    color: #fff;
    font-weight: 800;
    font-size: .85rem;
    padding: 6px 14px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.mo-lightbox-modal {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, .85);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.mo-lightbox-modal.active {
    display: flex;
}

.mo-lightbox-content {
    position: relative;
    max-width: 1100px;
    width: 100%;
    max-height: 90vh;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, .3);
}

.mo-lightbox-img {
    width: 100%;
    max-height: 90vh;
    object-fit: contain;
    display: block;
    background: #000;
}

.mo-lightbox-close {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(255, 255, 255, .92);
    color: #0f172a;
    border: 0;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    font-size: 24px;
    line-height: 1;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.mo-lightbox-close:hover {
    background: #fff;
}

@media (max-width: 1250px) {
    .mo-year-gallery {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 20px;
    }
}

@media (max-width: 950px) {
    .mo-year-gallery {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 16px;
    }
}

@media (max-width: 680px) {
    .mo-year-gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }
}

@media (max-width: 380px) {
    .mo-year-gallery {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .mo-card-content {
        padding: 14px;
    }
}

/* =========================================================
   Intro / Hero sections
   ========================================================= */
.mo-hero-section,
.mo-content-wrapper {
    font-family: 'Vazirmatn', Tahoma, sans-serif;
}

.mo-hero-section {
    --mo-navy: #0f2942;
    --mo-navy-2: #1e4d6b;
    --mo-gold: #d4af37;
    --mo-gold-2: #c9a030;
    background: linear-gradient(135deg, var(--mo-navy) 0%, var(--mo-navy-2) 100%);
    padding: 56px 16px 70px;
    text-align: center;
    color: #fff;
    position: relative;
    overflow: hidden;
    direction: rtl;
}

.mo-hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 80% 20%, rgba(212,175,55,.15), transparent 60%);
    pointer-events: none;
}

.mo-hero-section > * {
    position: relative;
    z-index: 1;
}

.mo-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(212,175,55,.15);
    border: 1px solid var(--mo-gold);
    color: var(--mo-gold);
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 16px;
}

.mo-hero-section h1 {
    color: #fff;
    font-size: clamp(24px, 5vw, 36px);
    font-weight: 800;
    margin: 0 0 14px;
    line-height: 1.4;
}

.mo-hero-subtitle {
    color: var(--mo-gold);
    font-size: clamp(16px, 3vw, 20px);
    font-weight: 700;
    margin-bottom: 20px;
}

.mo-hero-section p {
    color: #c9d6e0;
    font-size: 15px;
    line-height: 1.8;
    max-width: 680px;
    margin: 0 auto 24px;
}

.mo-hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--mo-gold), var(--mo-gold-2));
    color: var(--mo-navy);
    padding: 12px 28px;
    border-radius: 28px;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none !important;
    box-shadow: 0 6px 20px rgba(212,175,55,.3);
    transition: transform .3s ease, box-shadow .3s ease;
}

.mo-hero-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(212,175,55,.4);
    color: var(--mo-navy);
}

.mo-content-wrapper {
    --mo-navy: #0f2942;
    --mo-gold: #d4af37;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 16px;
    direction: rtl;
}

.mo-intro-text {
    background: #fff;
    border-radius: 16px;
    padding: 32px 28px;
    margin: 40px auto;
    box-shadow: 0 4px 20px rgba(15,41,66,.08);
    line-height: 1.9;
    font-size: 15px;
    color: #2c3e50;
}

.mo-intro-text h2 {
    color: var(--mo-navy);
    font-size: clamp(20px,4vw,26px);
    font-weight: 800;
    margin: 0 0 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.mo-intro-text h2 i {
    color: var(--mo-gold);
}

.mo-intro-text p {
    margin: 0 0 16px;
}

.mo-intro-text p:last-child {
    margin-bottom: 0;
}

.mo-intro-text strong {
    color: var(--mo-navy);
    font-weight: 700;
}

@media (max-width: 600px) {
    .mo-hero-section {
        padding: 48px 16px 60px;
    }

    .mo-hero-cta {
        font-size: 14px;
        padding: 11px 24px;
    }

    .mo-intro-text {
        padding: 24px 20px;
        margin: 30px auto;
    }
}

/* =========================================================
   Past Results Carousel | 1404 تا 1396
   ========================================================= */
.mova-past-results {
    width: min(1180px, calc(100% - 32px));
    margin: 8px auto 46px;
    padding: 30px 0 8px;
    direction: rtl;
    font-family: inherit;
    position: relative;
}

.mova-past-results * ,
.mova-past-results *::before,
.mova-past-results *::after {
    box-sizing: border-box;
}

.mova-past-results-head {
    text-align: center;
    margin-bottom: 22px;
}

.mova-past-results-kicker {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px 13px;
    border: 1px solid rgba(212,175,55,.55);
    border-radius: 999px;
    background: rgba(212,175,55,.08);
    color: #a47b16;
    font-size: 12px;
    font-weight: 800;
    margin-bottom: 9px;
}

.mova-past-results-title {
    margin: 0 0 7px;
    color: #0f2942;
    font-size: clamp(20px, 3vw, 28px);
    font-weight: 900;
    line-height: 1.5;
}

.mova-past-results-description {
    max-width: 720px;
    margin: 0 auto;
    color: #64748b;
    font-size: 13px;
    line-height: 1.9;
}

.mova-past-results-viewport {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 5px 48px;
}

.mova-past-results-track {
    display: flex;
    gap: 18px;
    transition: transform .45s ease;
    will-change: transform;
}

.mova-past-results-item {
    flex: 0 0 calc((100% - 36px) / 3);
    min-width: 0;
    cursor: pointer;
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    background: #f5f6f8;
    border: 1px solid #dfe3e8;
    box-shadow: 0 3px 12px rgba(11,35,66,.08);
    transition: transform .25s ease, box-shadow .25s ease;
}

.mova-past-results-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 22px rgba(11,35,66,.16);
}

.mova-past-results-image-wrap {
    width: 100%;
    height: 300px;
    background: #f4f5f7;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.mova-past-results-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    transition: transform .3s ease;
}

.mova-past-results-item:hover .mova-past-results-image-wrap img {
    transform: scale(1.02);
}

.mova-past-results-caption {
    background: #0b2342;
    color: #fff;
    text-align: center;
    padding: 10px 8px;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.7;
}

.mova-past-results-caption-year {
    display: block;
    font-size: 13px;
    font-weight: 500;
    opacity: .9;
    margin-top: 1px;
}

.mova-past-results-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 3;
    background: #0b2342;
    color: #fff;
    padding: 5px 11px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 800;
    box-shadow: 0 3px 10px rgba(0,0,0,.18);
}

.mova-past-results-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid #d5dbe2;
    background: #fff;
    color: #0b2342;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    font-size: 23px;
    line-height: 1;
    box-shadow: 0 3px 12px rgba(0,0,0,.12);
    transition: all .2s ease;
    padding: 0;
}

.mova-past-results-btn:hover {
    background: #0b2342;
    color: #fff;
    border-color: #0b2342;
}

.mova-past-results-btn:disabled {
    opacity: .35;
    cursor: default;
    pointer-events: none;
}

.mova-past-results-prev {
    right: 5px;
}

.mova-past-results-next {
    left: 5px;
}

.mova-past-results-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 16px;
    direction: ltr;
}

.mova-past-results-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #cbd1d8;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: all .25s ease;
}

.mova-past-results-dot.active {
    width: 22px;
    border-radius: 5px;
    background: #0b2342;
}

.mova-past-results-lightbox {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    background: rgba(5,13,25,.94);
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 30px;
    direction: rtl;
}

.mova-past-results-lightbox.active {
    display: flex;
}

.mova-past-results-lightbox-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mova-past-results-lightbox-image {
    max-width: calc(100vw - 150px);
    max-height: calc(100vh - 100px);
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    border-radius: 5px;
    box-shadow: 0 10px 50px rgba(0,0,0,.35);
}

.mova-past-results-lightbox-caption {
    position: absolute;
    bottom: 5px;
    right: 50%;
    transform: translateX(50%);
    max-width: calc(100vw - 80px);
    background: rgba(11,35,66,.9);
    color: #fff;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mova-past-results-lightbox-close {
    position: fixed;
    top: 18px;
    right: 22px;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: rgba(255,255,255,.12);
    color: #fff;
    font-size: 30px;
    font-weight: 300;
    line-height: 1;
    cursor: pointer;
    z-index: 1000001;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 0 3px 0;
}

.mova-past-results-lightbox-close:hover {
    background: rgba(255,255,255,.25);
}

.mova-past-results-lightbox-btn {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,.14);
    color: #fff;
    cursor: pointer;
    z-index: 1000001;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    line-height: 1;
    padding: 0;
}

.mova-past-results-lightbox-btn:hover {
    background: rgba(255,255,255,.28);
}

.mova-past-results-lightbox-prev {
    right: 25px;
}

.mova-past-results-lightbox-next {
    left: 25px;
}

.mova-past-results-counter {
    position: fixed;
    top: 22px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    background: rgba(0,0,0,.35);
    padding: 5px 13px;
    border-radius: 15px;
    font-size: 12px;
    z-index: 1000001;
    direction: ltr;
}

body.mova-past-results-lightbox-open {
    overflow: hidden !important;
}

@media (max-width: 1024px) {
    .mova-past-results-item {
        flex-basis: calc((100% - 18px) / 2);
    }

    .mova-past-results-image-wrap {
        height: 310px;
    }
}

@media (max-width: 767px) {
    .mova-past-results {
        width: calc(100% - 20px);
        margin-bottom: 34px;
        padding-top: 22px;
    }

    .mova-past-results-head {
        margin-bottom: 16px;
    }

    .mova-past-results-description {
        font-size: 12px;
    }

    .mova-past-results-viewport {
        padding: 4px 38px;
    }

    .mova-past-results-track {
        gap: 12px;
    }

    .mova-past-results-item {
        flex-basis: 100%;
        border-radius: 8px;
    }

    .mova-past-results-image-wrap {
        height: 340px;
    }

    .mova-past-results-caption {
        padding: 9px 6px;
        font-size: 13px;
    }

    .mova-past-results-caption-year {
        font-size: 12px;
    }

    .mova-past-results-badge {
        top: 9px;
        right: 9px;
        font-size: 11px;
        padding: 4px 9px;
    }

    .mova-past-results-btn {
        width: 32px;
        height: 32px;
        font-size: 19px;
    }

    .mova-past-results-prev {
        right: 2px;
    }

    .mova-past-results-next {
        left: 2px;
    }

    .mova-past-results-lightbox {
        padding: 15px;
    }

    .mova-past-results-lightbox-image {
        max-width: calc(100vw - 30px);
        max-height: calc(100vh - 100px);
        border-radius: 3px;
    }

    .mova-past-results-lightbox-close {
        top: 12px;
        right: 12px;
        width: 38px;
        height: 38px;
        font-size: 25px;
    }

    .mova-past-results-lightbox-btn {
        width: 38px;
        height: 38px;
        font-size: 22px;
    }

    .mova-past-results-lightbox-prev {
        right: 8px;
    }

    .mova-past-results-lightbox-next {
        left: 8px;
    }

    .mova-past-results-lightbox-caption {
        bottom: 12px;
        max-width: calc(100vw - 70px);
        font-size: 12px;
        padding: 6px 13px;
    }

    .mova-past-results-counter {
        top: 15px;
        font-size: 11px;
    }
}
