/* ===================================================
   Mokaab Theme — mk-front-page.css
   استایل‌های اختصاصی صفحه اصلی (front-page.php)
   وابستگی: theme.css (توکن‌ها و متغیرها از آنجا می‌آیند)
   =================================================== */

/* ============================================================
   GLOBAL PAGE SETUP
   ============================================================ */

body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

/* ── Scroll Progress Bar ─────────────────────────── */

.scroll-progress-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: rgba(255, 255, 255, 0.05);
    z-index: 9999999;
    direction: ltr;
}

.scroll-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--mk-secondary, #ff0050), var(--mk-primary, #00f2ff));
    width: 0%;
    box-shadow: 0 0 15px var(--mk-primary, #00f2ff);
    transition: width 0.1s ease-out;
}

/* ── Animated Background ─────────────────────────── */

.animated-bg {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100vh;
    z-index: -1;
    background: linear-gradient(-45deg, #050505, #1a1a2e, #00f2ff, #ff0050, #050505);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    opacity: 0.35;
    pointer-events: none;
}

body.mk-light-mode .animated-bg {
    background: linear-gradient(-45deg, #f5f3ef, #f0f9ff, #fdf4ff, #f5f3ef);
    opacity: 1;
}

@keyframes gradientBG {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* ============================================================
   SECTION SHARED UTILITIES
   ============================================================ */

.mk-section-title {
    font-size: clamp(1.5rem, 4vw, 2.2rem);
    font-weight: 900;
    display: inline-block;
    position: relative;
    margin-bottom: var(--mk-space-8, 2rem);
    color: var(--mk-text);
    padding-inline-end: var(--mk-space-5, 1.25rem);
    border-inline-end: 5px solid var(--mk-primary);
    line-height: 1.4;
}

/* ============================================================
   HERO SECTION
   ============================================================ */

.mk-section-hero {
    min-height: calc(100vh - var(--mk-header-height, 72px));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    padding: var(--mk-space-6, 1.5rem);
    margin: 8px 10px 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 40px;
    background: rgba(255, 255, 255, 0.02);
    box-shadow: inset 0 0 100px rgba(0, 0, 0, 0.5);
}

body.mk-light-mode .mk-section-hero {
    border-color: rgba(0, 0, 0, 0.05);
    background: rgba(255, 255, 255, 0.6);
    box-shadow: inset 0 0 60px rgba(0, 0, 0, 0.03);
}

/* ── Hero Inner Wrapper ──────────────────────────── */

.mk-hero__inner {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--mk-space-6, 1.5rem);
    text-align: center;
}

/* ── Stories Ring Container (داخل hero) ──────────── */

.mk-stories-list {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding: 14px 20px;
    scrollbar-width: none;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    width: auto;
    max-width: min(96%, 900px);
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 9999px;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
}

.mk-stories-list::-webkit-scrollbar {
    display: none;
}

body.mk-light-mode .mk-stories-list {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(0, 0, 0, 0.05);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.03);
}

@media (min-width: 768px) {
    .mk-stories-list { justify-content: center; }
}

/* ── Ring (حلقه استوری — نسخه قدیمی از HTML اصلی) ─ */

.mk-ring {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    padding: 3px;
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    cursor: pointer;
    position: relative;
    flex-shrink: 0;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    animation: popIn 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.mk-ring.seen {
    background: var(--mk-text-subtle, #555) !important;
    padding: 2px;
    filter: grayscale(0.8);
    opacity: 0.7;
}

.mk-ring:hover {
    transform: scale(1.1) translateY(-5px);
    z-index: 10;
    box-shadow: 0 10px 25px rgba(220, 39, 67, 0.4);
}

.mk-ring img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 3px solid #1a1a1a;
    object-fit: cover;
    display: block;
    background: #1a1a1a;
}

body.mk-light-mode .mk-ring img {
    border-color: #f5f3ef;
}

.mk-ring::after {
    content: "مشاهده";
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    color: #000;
    font-size: 11px;
    padding: 3px 10px;
    border-radius: 12px;
    opacity: 0;
    transition: 0.3s;
    pointer-events: none;
    font-weight: 800;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    white-space: nowrap;
}

.mk-ring:hover::after {
    opacity: 1;
    bottom: -18px;
}

@keyframes popIn {
    0%   { opacity: 0; transform: scale(0.5) translateY(20px); }
    100% { opacity: 1; transform: scale(1) translateY(0); }
}

/* ── Hero Content ────────────────────────────────── */

.mk-hero__content {
    position: relative;
    z-index: 10;
    padding: var(--mk-space-4, 1rem) var(--mk-space-4, 1rem) var(--mk-space-6, 1.5rem);
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

/* ── Hero Meta (badge + phone در یک ردیف) ──────── */

.mk-hero__meta {
    display: inline-flex;
    align-items: center;
    gap: 0;
    margin-bottom: 24px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 9999px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    overflow: hidden;
    padding: 0;
}

body.mk-light-mode .mk-hero__meta {
    background: rgba(255, 255, 255, 0.75);
    border-color: rgba(0, 0, 0, 0.08);
    box-shadow: 0 2px 12px rgba(0,0,0,.06);
}

.mk-badge--hero {
    font-size: .82rem;
    font-weight: 700;
    color: var(--mk-text-muted);
    padding: 8px 18px;
    letter-spacing: .02em;
    background: transparent;
    border: none;
    border-radius: 0;
}

.mk-hero__meta-sep {
    width: 1px;
    height: 20px;
    background: rgba(255,255,255,.15);
    flex-shrink: 0;
}

body.mk-light-mode .mk-hero__meta-sep {
    background: rgba(0,0,0,.1);
}

.mk-hero__phone {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--mk-text);
    text-decoration: none;
    font-weight: 800;
    padding: 8px 18px;
    letter-spacing: .5px;
    transition: color 0.2s ease;
    font-size: .9rem;
    direction: ltr;
}

.mk-hero__phone:hover { color: var(--mk-primary); }

body.mk-light-mode .mk-hero__phone { color: var(--mk-text); }

.mk-hero__title {
    font-size: clamp(3.5rem, 12vw, 8rem);
    font-weight: 900;
    line-height: 0.95;
    margin-bottom: 20px;
    color: #fff;
    text-shadow: 0 0 30px rgba(232, 168, 56, 0.3);
    letter-spacing: -2px;
}

body.mk-light-mode .mk-hero__title {
    background: linear-gradient(135deg, #0e7490 0%, #0f172a 50%, #be123c 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.15));
}

.mk-hero__subtitle {
    font-size: 1.1rem;
    color: var(--mk-text-muted);
    margin-bottom: 32px;
    font-weight: 500;
    max-width: 680px;
    margin-inline: auto;
    line-height: 1.7;
}

.mk-hero__actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ── Buttons override (نسخه صفحه اصلی) ───────────── */

.btn-main,
.btn-outline {
    padding: 16px 45px;
    font-weight: 800;
    border-radius: var(--mk-radius-full, 9999px);
    font-size: 1.1rem;
    display: inline-block;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
    font-family: var(--mk-font-body, 'Vazirmatn', sans-serif);
}

.btn-main {
    background: linear-gradient(135deg, var(--mk-primary, #c9a84c), #e8c76b) !important;
    color: #000 !important;
    box-shadow: 0 4px 24px rgba(201, 168, 76, 0.35);
    border: none !important;
}

.btn-main:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 36px rgba(201, 168, 76, 0.55);
    filter: brightness(1.08);
}

.btn-outline {
    background: rgba(255, 255, 255, 0.06) !important;
    border: 1.5px solid rgba(255, 255, 255, 0.2) !important;
    color: #fff !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.btn-outline:hover {
    border-color: rgba(255,255,255,.6) !important;
    background: rgba(255, 255, 255, 0.12) !important;
    transform: translateY(-3px);
}

body.mk-light-mode .btn-outline {
    background: rgba(0,0,0,.04) !important;
    color: var(--mk-text) !important;
    border-color: rgba(0,0,0,.12) !important;
}

body.mk-light-mode .btn-outline:hover {
    background: var(--mk-text) !important;
    border-color: var(--mk-text) !important;
    color: #fff !important;
}

.mk-btn--gold {
    border-color: var(--mk-primary) !important;
    color: var(--mk-primary) !important;
}

/* دکمه popup form در hero — همراستا با btn-main */
.mk-hero__actions .mk-form-popup-trigger,
.mk-hero__actions .mk-btn-primary {
    padding: 16px 45px !important;
    font-weight: 800 !important;
    border-radius: 9999px !important;
    font-size: 1.05rem !important;
    background: linear-gradient(135deg, var(--mk-primary, #c9a84c), #e8c76b) !important;
    color: #000 !important;
    border: none !important;
    box-shadow: 0 4px 24px rgba(201,168,76,.35) !important;
    transition: all .3s ease !important;
    cursor: pointer;
}

.mk-hero__actions .mk-form-popup-trigger:hover,
.mk-hero__actions .mk-btn-primary:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 8px 36px rgba(201,168,76,.55) !important;
    filter: brightness(1.08) !important;
}

@media (max-width: 768px) {
    .mk-section-hero  { padding: 10px; margin: 10px 5px; border-radius: 25px; }
    .mk-hero__title   { font-size: 3.2rem; }
    .mk-stories-list  { gap: 16px; }
}

@media (max-width: 480px) {
    .mk-section-hero   { padding: 15px 8px; margin: 6px 4px; border-radius: 18px; min-height: 80vh; }
    .mk-hero__title    { font-size: 2.8rem; letter-spacing: -1px; margin-bottom: 20px; }
    .mk-hero__subtitle { font-size: 1rem; margin-bottom: 30px; }
    .mk-hero__actions  { gap: 12px; }
    .mk-stories-list   { gap: 14px; padding: 14px 10px; border-radius: 20px; }
    .mk-ring           { width: 62px; height: 62px; }
}


/* ============================================================
   SPOTLIGHT SECTION
   ============================================================ */

.mk-section-spotlight {
    padding: 80px 0;
}

.spotlight-card {
    display: flex;
    align-items: center;
    background: var(--mk-glass-bg);
    border: 1px solid var(--mk-glass-border);
    border-radius: 40px;
    overflow: hidden;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: var(--mk-glass-shadow);
    flex-wrap: wrap;
    transition: transform 0.4s ease, border-color 0.4s ease;
}

.spotlight-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.2);
}

body.mk-light-mode .spotlight-card {
    background: rgba(255, 255, 255, 0.92);
    border-color: rgba(0, 0, 0, 0.06);
    box-shadow: 0 20px 60px -10px rgba(8, 145, 178, 0.1);
}

.spotlight-img-wrap {
    flex: 0 0 450px;
    max-width: 450px;
    aspect-ratio: 1 / 1;
    position: relative;
    overflow: hidden;
}

.spotlight-img-wrap img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block;
}

.spotlight-content {
    flex: 1;
    padding: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: var(--mk-space-4, 1rem);
    min-width: 0;
}

.mk-badge--gold {
    background: rgba(232, 168, 56, 0.15);
    color: var(--mk-primary);
    border-color: rgba(232, 168, 56, 0.3);
    align-self: flex-start;
    font-size: 0.9rem;
    padding: 6px 16px;
    border-radius: var(--mk-radius-full, 9999px);
    font-weight: 900;
    display: inline-flex;
}

.mk-spotlight__rank {
    color: var(--mk-primary);
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0;
}

.mk-spotlight__quote {
    color: var(--mk-text-muted);
    line-height: 2;
    font-size: 1.15rem;
    margin: 0;
}

@media (max-width: 1024px) {
    .spotlight-card { flex-direction: column; }
    .spotlight-img-wrap { flex: none; max-width: 100%; width: 100%; }
}

/* ============================================================
   REVIEWS SECTION
   ============================================================ */

.mk-section-reviews {
    padding: 100px 0;
}

.reviews-container {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding: 20px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.reviews-container::-webkit-scrollbar { display: none; }

.review-card {
    min-width: 320px;
    max-width: 420px;
    width: calc(33.33% - 20px);
    background: linear-gradient(145deg, rgba(30, 30, 40, 0.8), rgba(20, 20, 30, 0.9));
    border: 1px solid var(--mk-glass-border);
    border-radius: 25px;
    padding: 35px;
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    flex-shrink: 0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.review-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

body.mk-light-mode .review-card {
    background: linear-gradient(145deg, #ffffff, #f8fafc);
    border-color: rgba(0, 0, 0, 0.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
}

.stars {
    color: var(--mk-primary);
    margin-bottom: 15px;
    letter-spacing: 3px;
    text-shadow: 0 0 10px rgba(232, 168, 56, 0.4);
    font-size: 1.1rem;
}

.review-text {
    font-size: 1.05rem;
    color: #e0e0e0;
    margin-bottom: 20px;
    line-height: 1.8;
    flex: 1;
}

body.mk-light-mode .review-text {
    color: var(--mk-text-muted);
}

.reviewer {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: auto;
}

.mk-reviewer__avatar {
    width: 45px;
    height: 45px;
    background: var(--mk-bg-card, #1e1e2e);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: bold;
    font-size: 1.2rem;
    flex-shrink: 0;
    border: 2px solid var(--mk-border);
}

.reviewer-info h4 {
    margin: 0;
    font-size: 1rem;
    color: var(--mk-text);
    font-weight: 700;
}

.reviewer-info span {
    font-size: 0.82rem;
    color: var(--mk-primary);
}

@media (max-width: 768px) {
    .review-card { min-width: 85%; }
}

/* ============================================================
   VIDEOS SECTION
   ============================================================ */

.mk-section-videos {
    padding: 60px 0;
}

.video-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 40px;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 20px;
    border: 1px solid var(--mk-glass-border);
    background: #000;
}

.video-wrapper iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.mk-video__caption {
    text-align: center;
    color: var(--mk-text-muted);
    margin-top: 20px;
    font-size: 1.1rem;
}

@media (max-width: 1024px) {
    .video-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   HONORS SECTION — Scroll Strip
   ساختار جدید: .mk-honors-track-wrap > #mk-honors-track
   استایل‌های کامل در mk-teachers-honors.css (پلاگین) است.
   اینجا فقط override های ظاهری قالب اضافه می‌شود.
   ============================================================ */

.mk-section-honors {
    padding: 80px 0;
}

/* وقتی CPT داده دارد: scroll دستی توسط mk-honors.js */
/* وقتی CPT خالی است: این کلاس auto-scroll CSS را فعال می‌کند */
.mk-honors-track--auto {
    animation: mkMarqueeScroll 60s linear infinite;
    will-change: transform;
    flex-wrap: nowrap;
    width: max-content;
}

.mk-honors-track--auto:hover {
    animation-play-state: paused;
}

/* وقتی JS ناوبری را فعال می‌کند، انیمیشن خودکار متوقف می‌شود */
.mk-honors-track-wrap:has(#mk-honors-prev:not([disabled])) .mk-honors-track--auto,
.mk-honors-track-wrap:has(#mk-honors-next:not([disabled])) .mk-honors-track--auto {
    animation: none;
}

@keyframes mkMarqueeScroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.mk-honors-track-wrap {
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-snap-type: x mandatory;
    padding: 20px 0 28px;
    cursor: grab;
    mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
}
.mk-honors-track-wrap::-webkit-scrollbar { display: none; }
.mk-honors-track-wrap:active { cursor: grabbing; }

/* rank-item: fallback استاتیک در صورت خالی بودن CPT */
.rank-item {
    width: 280px;
    flex-shrink: 0;
    cursor: pointer;
    transition: transform 0.3s ease;
    margin: 0 15px;
    position: relative;
    scroll-snap-align: start;
}

.rank-item img {
    width: 100%;
    aspect-ratio: 4 / 3;
    height: auto;
    object-fit: cover;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: block;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: filter 0.3s ease, box-shadow 0.3s ease;
    filter: brightness(0.9);
}

.rank-item:hover { transform: scale(1.05); }

.rank-item:hover img {
    filter: brightness(1.1);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.15);
}

body.mk-light-mode .rank-item img {
    border-color: rgba(0, 0, 0, 0.1);
}

.rank-label {
    position: absolute;
    top: 10px;
    inset-inline-end: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 700;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    pointer-events: none;
    z-index: 2;
}

@media (max-width: 1024px) {
    .rank-item { width: 180px; }
}



/* ============================================================
   DEPARTMENTS / BENTO GRID
   ============================================================ */

.mk-section-departments {
    padding: 100px 0;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-top: 40px;
}

/* ── انیمیشن ورود کارت‌ها با تأخیر (مشابه popIn حلقه‌های استوری) ─── */
.bento-tile {
    animation: mkFadeIn 0.5s ease both;
}
.bento-tile:nth-child(1) { animation-delay: 0.05s; }
.bento-tile:nth-child(2) { animation-delay: 0.10s; }
.bento-tile:nth-child(3) { animation-delay: 0.15s; }
.bento-tile:nth-child(4) { animation-delay: 0.20s; }
.bento-tile:nth-child(5) { animation-delay: 0.25s; }

.bento-tile {
    background: var(--mk-glass-bg);
    border: 1px solid var(--mk-glass-border);
    border-radius: 30px;
    padding: 35px;
    min-height: 260px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    position: relative;
    overflow: hidden;
    text-decoration: none !important;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.bento-tile:hover {
    border-color: var(--mk-primary);
    transform: translateY(-10px);
    background: rgba(232, 168, 56, 0.05);
    box-shadow: 0 10px 40px rgba(232, 168, 56, 0.15);
}

.bento-tile.large {
    grid-column: span 2;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(0, 0, 0, 0));
}

body.mk-light-mode .bento-tile {
    background: rgba(255, 255, 255, 0.7);
    border-color: rgba(0, 0, 0, 0.06);
}

body.mk-light-mode .bento-tile:hover {
    background: #fff;
    box-shadow: 0 15px 40px -10px rgba(8, 145, 178, 0.15);
}

.bento-icon {
    font-size: 3.5rem;
    margin-bottom: auto;
    color: var(--mk-text-muted);
    transition: 0.4s;
    line-height: 1;
    padding-bottom: var(--mk-space-4, 1rem);
}

.bento-tile:hover .bento-icon {
    transform: scale(1.1) rotate(-5deg);
    filter: drop-shadow(0 0 20px var(--mk-primary));
}

body.mk-light-mode .bento-icon {
    filter: none;
    color: var(--mk-text-muted);
}

.mk-dept__title {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--mk-text);
    margin-bottom: var(--mk-space-2, 0.5rem);
}

.bento-tile.large .mk-dept__title {
    font-size: 1.7rem;
}

.mk-dept__desc {
    color: var(--mk-text-muted);
    font-size: 1.05rem;
    margin: 0;
    line-height: 1.6;
}

@media (max-width: 1024px) {
    .bento-grid { grid-template-columns: 1fr; }
    .bento-tile { min-height: 200px; }
    .bento-tile.large { grid-column: span 1; }
}

/* ============================================================
   TEACHERS SECTION — Fallback استاتیک (prof-grid)
   وقتی CPT خالی است این کلاس‌ها نمایش داده می‌شوند.
   وقتی JS/API داده لود کند، #mk-teachers-grid را با mk-teacher-card جایگزین می‌کند
   که استایل آن در mk-teachers-honors.css (پلاگین) است.
   #mk-teachers-filter، #mk-teacher-featured، #mk-teachers-grid و .mk-filter-btn
   در mk-teachers-honors.css تعریف شده‌اند — اینجا duplicate نمی‌شوند.
   ============================================================ */

.mk-section-teachers {
    padding: 100px 0;
}

.prof-grid-squares {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.prof-square {
    background: var(--mk-glass-bg);
    border: 1px solid var(--mk-glass-border);
    border-radius: 35px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 25px;
    transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
    min-height: 380px;
    justify-content: space-between;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

body.mk-light-mode .prof-square {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(0, 0, 0, 0.06);
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.03);
}

.prof-square:hover {
    transform: translateY(-10px);
    border-color: var(--mk-primary);
    box-shadow: 0 15px 40px rgba(232, 168, 56, 0.2);
}

.prof-ring {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    padding: 5px;
    background: linear-gradient(45deg, var(--mk-primary), var(--mk-accent, #a855f7));
    margin-bottom: 25px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    flex-shrink: 0;
}

.prof-ring:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(232, 168, 56, 0.5);
}

.prof-ring img {
    width: 100% !important;
    height: 100% !important;
    border-radius: 50%;
    border: 4px solid var(--mk-bg, #0d0d0f);
    object-fit: cover !important;
    display: block !important;
    background-color: #333;
}

.prof-name {
    color: var(--mk-text);
    font-weight: 800;
    font-size: 1.4rem;
    margin-bottom: 5px;
    text-align: center;
    line-height: 1.3;
}

.prof-role {
    color: var(--mk-text-muted);
    font-size: 1rem;
    margin-bottom: 20px;
    text-align: center;
}

.prof-link-btn {
    font-size: 1rem;
    padding: 10px 30px;
    border: 1px solid var(--mk-primary);
    border-radius: var(--mk-radius-full, 9999px);
    color: var(--mk-primary);
    text-decoration: none;
    transition: background 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
    margin-top: auto;
    white-space: nowrap;
    font-family: var(--mk-font-body, 'Vazirmatn', sans-serif);
    font-weight: 600;
}

.prof-link-btn:hover {
    background: var(--mk-primary);
    color: #000;
    box-shadow: 0 0 15px var(--mk-primary);
}

body.mk-light-mode .prof-link-btn:hover {
    background: var(--mk-primary);
    color: #fff;
}

@media (max-width: 1024px) {
    .prof-grid-squares { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .prof-grid-squares { grid-template-columns: 1fr; }
    .mk-section-teachers { padding: 60px 0; }
}



/* ============================================================
   FAQ SECTION
   ============================================================ */

.mk-section-faq {
    padding: 100px 0;
    background: var(--mk-glass-bg);
}

body.mk-light-mode .mk-section-faq {
    background: rgba(255, 255, 255, 0.4);
}

.faq-container {
    margin-top: 50px;
}

.faq-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}

body.mk-light-mode .faq-item {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(0, 0, 0, 0.05);
}

.faq-item.active {
    border-color: var(--mk-primary);
    background: rgba(232, 168, 56, 0.03);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

body.mk-light-mode .faq-item.active {
    background: #fff;
    box-shadow: 0 5px 25px -5px rgba(232, 168, 56, 0.15);
}

.faq-q {
    padding: 25px 30px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
    color: var(--mk-text);
    font-size: 1.1rem;
    user-select: none;
    transition: color 0.2s ease;
    gap: var(--mk-space-4, 1rem);
}

.faq-q:hover {
    color: var(--mk-primary);
}

.faq-a {
    padding: 0 30px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    color: var(--mk-text-muted);
    line-height: 1.9;
    font-size: 0.95rem;
}


/* FAQ Arrow — rotation on active */
.faq-arrow {
    transition: transform 0.3s ease;
    flex-shrink: 0;
    display: inline-block;
    font-style: normal;
}
.faq-item.active .faq-arrow {
    transform: rotate( 180deg );
}
.faq-item.active .faq-a {
    padding-bottom: 30px;
    padding-top: 10px;
    max-height: 600px;
}

/* ============================================================
   STORY LIGHTBOX
   استایل lightbox استوری توسط mk-stories.css (پلاگین) مدیریت می‌شود.
   این بلوک فقط z-index و overflow body را هنگام باز بودن lightbox تنظیم می‌کند.
   ============================================================ */

body:has( #mk-story-lightbox.mk-lb--open ) {
    overflow: hidden;
}

/* ============================================================
   MOBILE ACTION BAR
   ============================================================ */

.mobile-action-bar {
    position: fixed;
    bottom: clamp(12px, 2.5vw, 20px);
    inset-inline-start: 5%;
    width: 90%;
    background: rgba(15, 15, 20, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: none;
    padding: clamp(5px, 1.2vw, 8px);
    gap: clamp(4px, 1vw, 8px);
    z-index: 9900;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
    align-items: center;
    border-radius: 50px;
}

body.mk-light-mode .mobile-action-bar {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(0, 0, 0, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.m-btn {
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    transition: transform 0.2s ease, opacity 0.2s ease;
    font-family: var(--mk-font-body, 'Vazirmatn', sans-serif);
    /* اندازه پایه responsive — clamp(min, preferred, max) */
    min-width: 0;
}

.m-btn:active { transform: scale(0.95); }

/* دکمه‌های آیکون — دایره — responsive */
.m-wa,
.m-call,
.m-login,
.m-logout {
    width:  clamp(36px, 9vw, 45px);
    height: clamp(36px, 9vw, 45px);
    font-size: clamp(16px, 4vw, 22px);
    border-radius: 50%;
    flex-shrink: 0;
}

.m-wa    { background: #25D366; }
.m-call  { background: #007BFF; animation: pulseBlue 2s infinite; }
.m-login { background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.2); }
.m-logout {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

body.mk-light-mode .m-login {
    background: rgba(0,0,0,0.07);
    border-color: rgba(0,0,0,0.15);
    color: var(--mk-text);
}

body.mk-light-mode .m-logout {
    color: #dc2626;
}

/* دکمه CTA — کشیده، flex */
.m-cta {
    flex: 1;
    height: clamp(36px, 9vw, 45px);
    background: linear-gradient(90deg, #2563eb, #06b6d4);
    color: #fff;
    font-size: clamp(0.72rem, 2.2vw, 0.9rem);
    padding-inline: clamp(8px, 2vw, 16px);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    box-shadow: 0 0 20px rgba(37, 99, 235, 0.4);
    min-width: 0;
}

.m-theme-toggle {
    width:  clamp(36px, 9vw, 45px);
    height: clamp(36px, 9vw, 45px);
    background: #000;
    border: 2px solid #fff;
    border-radius: 50%;
    color: var(--mk-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(232, 168, 56, 0.3);
    flex-shrink: 0;
    transition: all 0.3s ease;
}

body.mk-light-mode .m-theme-toggle {
    background: #fff;
    border-color: #e2e8f0;
    color: #000;
    box-shadow: none;
}

/* دکمه float دسکتاپ */
.desktop-float-btns {
    position: fixed;
    bottom: 90px;
    inset-inline-start: 30px;
    z-index: 9990;
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: flex-start;
}



@keyframes pulseBlue {
    0%   { box-shadow: 0 0 0 0 rgba(0, 123, 255, 0.5); }
    70%  { box-shadow: 0 0 0 10px rgba(0, 123, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 123, 255, 0); }
}

@media (max-width: 1024px) {
    .desktop-float-btns { display: none; }
    .mobile-action-bar  { display: flex; }
    #mk-front-page { padding-bottom: clamp(70px, 14vw, 90px); }
}

/* صفحه‌های خیلی کوچک — کمتر از 360px */
@media (max-width: 360px) {
    .mobile-action-bar {
        inset-inline-start: 3%;
        width: 94%;
        gap: 3px;
        padding: 4px;
    }
    .m-cta { font-size: 0.68rem; }
}

/* ============================================================
   HONORS — scroll wrap + nav (base layout)
   تکمیل mk-teachers-honors.css پلاگین
   ============================================================ */

.mk-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 10px;
}

.mk-section-header__text { flex: 1; min-width: 0; }



.marquee-track {
    display: flex;
    flex-direction: row;
    padding: 0 40px;
}

.mk-honors-nav { display: flex; gap: 10px; flex-shrink: 0; }

.mk-honors-nav__btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var( --mk-glass-border, rgba(255,255,255,0.08) );
    background: var( --mk-glass-bg, rgba(255,255,255,0.04) );
    color: var( --mk-text );
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s, background 0.2s;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.mk-honors-nav__btn:hover:not(:disabled) {
    border-color: var(--mk-primary);
    color: var(--mk-primary);
    background: rgba(232, 168, 56, 0.08);
}
.mk-honors-nav__btn:disabled { opacity: 0.3; cursor: not-allowed; }
.mk-honors-nav__btn svg { width: 18px; height: 18px; pointer-events: none; }

body.mk-light-mode .mk-honors-nav__btn {
    border-color: rgba(0,0,0,0.1);
    background: rgba(255,255,255,0.8);
    color: #333;
}

/* ============================================================
   TEACHERS — grid + filter + featured (base fallback)
   ============================================================ */

.mk-teachers-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
}
@media (max-width: 1024px) { .mk-teachers-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 768px)  { .mk-teachers-grid { grid-template-columns: 1fr; } }

.mk-teachers-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 30px;
}

.mk-filter-btn {
    padding: 8px 22px;
    border-radius: 9999px;
    border: 1px solid var( --mk-glass-border, rgba(255,255,255,0.08) );
    background: var( --mk-glass-bg, rgba(255,255,255,0.04) );
    color: var(--mk-text);
    cursor: pointer;
    font-family: var( --mk-font-body, 'Vazirmatn', sans-serif );
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.2s ease;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.mk-filter-btn:hover,
.mk-filter-btn--active {
    border-color: var(--mk-primary);
    color: var(--mk-primary);
    background: rgba(232, 168, 56, 0.08);
}
body.mk-light-mode .mk-filter-btn {
    border-color: rgba(0,0,0,0.1);
    background: rgba(255,255,255,0.8);
    color: #333;
}

#mk-teacher-featured {
    margin-top: 40px;
    padding: 32px 36px;
    background: var( --mk-glass-bg, rgba(255,255,255,0.04) );
    border: 1px solid var(--mk-primary);
    border-radius: 24px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    animation: mkFadeIn 0.3s ease;
}
.mk-teacher-featured__inner {
    display: flex;
    gap: 28px;
    align-items: flex-start;
    flex-wrap: wrap;
}
.mk-teacher-featured__body { flex: 1; min-width: 180px; }

body.mk-light-mode #mk-teacher-featured {
    background: rgba(255,255,255,0.9);
    box-shadow: 0 10px 40px rgba(232,168,56,0.1);
}

/* ============================================================
   STORIES — items (رندر mk-stories.js) + Lightbox + Skeleton
   ============================================================ */

/* Story item */
.mk-story-item {
    list-style: none;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.mk-story__ring {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    padding: 3px;
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    flex-shrink: 0;
}
.mk-story-item.mk-story--seen .mk-story__ring {
    background: var(--mk-text-subtle, #555);
    filter: grayscale(0.8);
    opacity: 0.7;
}
.mk-story__ring:hover {
    transform: scale(1.1) translateY(-4px);
    box-shadow: 0 10px 25px rgba(220, 39, 67, 0.4);
}

.mk-story__avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
    background: #1a1a1a;
    border: 3px solid #1a1a1a;
}
.mk-story__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
body.mk-light-mode .mk-story__avatar { border-color: #f5f3ef; }

.mk-story__label {
    font-size: 0.7rem;
    color: var(--mk-text-muted);
    text-align: center;
    max-width: 78px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: block;
}

/* Lightbox */
#mk-story-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.96);
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
#mk-story-lightbox.mk-lb--open { display: flex; }

.mk-lb__inner {
    position: relative;
    max-width: 600px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}
#mk-lb-image {
    width: 100%;
    max-height: 70vh;
    object-fit: contain;
    border-radius: 18px;
    display: block;
}
#mk-lb-close {
    position: absolute;
    top: -50px;
    inset-inline-end: 0;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    line-height: 1;
}
#mk-lb-close:hover { background: rgba(255,255,255,0.25); }

.mk-lb__footer {
    display: flex;
    align-items: center;
    gap: 16px;
    width: 100%;
    justify-content: space-between;
}
.mk-lb__nav {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    flex-shrink: 0;
    line-height: 1;
}
.mk-lb__nav:hover   { background: rgba(255,255,255,0.28); }
.mk-lb__nav:disabled { opacity: 0.25; cursor: not-allowed; }

#mk-lb-title {
    flex: 1;
    text-align: center;
    font-size: 1rem;
    color: rgba(255,255,255,0.8);
    font-family: var(--mk-font-body, 'Vazirmatn', sans-serif);
    line-height: 1.5;
}

/* Skeleton pulse */
.mk-skeleton-pulse {
    background: linear-gradient(
        90deg,
        rgba(255,255,255,0.04) 0%,
        rgba(255,255,255,0.12) 50%,
        rgba(255,255,255,0.04) 100%
    );
    background-size: 200% 100%;
    animation: mkSkeletonPulse 1.5s ease infinite;
    border-radius: 8px;
}
body.mk-light-mode .mk-skeleton-pulse {
    background: linear-gradient(
        90deg,
        rgba(0,0,0,0.04) 0%,
        rgba(0,0,0,0.10) 50%,
        rgba(0,0,0,0.04) 100%
    );
    background-size: 200% 100%;
}
@keyframes mkSkeletonPulse {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}
.mk-skeleton-label {
    width: 60px;
    height: 10px;
    border-radius: 4px;
    display: block;
}
.mk-sk-line { border-radius: 6px; }

/* Shared fade-in */
@keyframes mkFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Teacher card badges */
.mk-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 9999px;
    font-size: 0.78rem;
    font-weight: 700;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    color: var(--mk-text-muted);
}
.mk-badge--featured {
    background: rgba(232,168,56,0.15);
    border-color: rgba(232,168,56,0.3);
    color: var(--mk-primary);
}
.mk-badge--sm  { font-size: 0.75rem; padding: 3px 10px; }
.mk-badge--xs  { font-size: 0.68rem; padding: 2px 8px; }
body.mk-light-mode .mk-badge { background: rgba(0,0,0,0.05); border-color: rgba(0,0,0,0.1); color: var(--mk-text-muted); }

/* ============================================================
   STORY LIGHTBOX (mk-story-lightbox)
   ============================================================ */
#mk-story-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.92);
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(6px);
}

.mk-lb__inner {
    position: relative;
    width: min(480px, 96vw);
    max-height: 92vh;
    background: #111;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 32px 80px rgba(0,0,0,0.7);
}

/* نوار پیشرفت */
#mk-lb-bars {
    display: flex;
    gap: 4px;
    padding: 10px 12px 0;
}

.mk-lb__bar {
    flex: 1;
    height: 3px;
    background: rgba(255,255,255,0.25);
    border-radius: 9999px;
    overflow: hidden;
}

.mk-lb__bar-fill {
    height: 100%;
    width: 0%;
    background: #fff;
    border-radius: 9999px;
    transition: width 5000ms linear;
}

/* هدر کاربر */
.mk-lb__user-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
}

.mk-lb__user-img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--mk-primary, #00e5f5);
}

.mk-lb__user-name {
    font-size: 0.9rem;
    font-weight: 700;
    color: #fff;
    flex: 1;
}

#mk-lb-close {
    background: rgba(255,255,255,0.1);
    border: none;
    color: #fff;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: background 0.2s;
}
#mk-lb-close:hover { background: rgba(255,255,255,0.25); }

/* ناحیه رسانه */
#mk-lb-media {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    position: relative;
    background: #000;
}

#mk-lb-loader {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
    z-index: 2;
}

#mk-lb-loader::after {
    content: '';
    width: 36px;
    height: 36px;
    border: 3px solid rgba(255,255,255,0.2);
    border-top-color: var(--mk-primary, #00e5f5);
    border-radius: 50%;
    animation: mk-spin 0.8s linear infinite;
}

@keyframes mk-spin { to { transform: rotate(360deg); } }

/* فوتر (ناوبری + لینک) */
.mk-lb__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background: rgba(0,0,0,0.4);
    gap: 10px;
}

.mk-lb__nav {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    color: #fff;
    padding: 6px 14px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.2s;
}
.mk-lb__nav:hover { background: rgba(255,255,255,0.2); }

.mk-lb__swipe-btn {
    background: var(--mk-primary, #00e5f5);
    color: #000;
    font-weight: 700;
    padding: 6px 16px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.85rem;
    transition: opacity 0.2s;
    white-space: nowrap;
}
.mk-lb__swipe-btn:hover { opacity: 0.85; }

/* لیبل زیر استوری‌رینگ */
.mk-ring__label {
    display: block;
    text-align: center;
    font-size: 0.7rem;
    color: var(--mk-text-muted);
    margin-top: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 64px;
}

/* ============================================================
   GALLERY MODAL (mk-gallery-modal)
   ============================================================ */
#mk-gallery-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9998;
    background: rgba(0,0,0,0.95);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 16px;
}

.mk-gallery-img {
    max-width: 90vw;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 24px 60px rgba(0,0,0,0.8);
}

.mk-gallery-close {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}
.mk-gallery-close:hover { background: rgba(255,255,255,0.25); }

.mk-gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    color: #fff;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}
.mk-gallery-nav:hover { background: rgba(255,255,255,0.2); }
.mk-gallery-prev { right: 20px; }
.mk-gallery-next { left: 20px; }

/* ============================================================
   FOOTER — gradient bar top & customizer keys
   ============================================================ */
.mk-footer__gradient-bar {
    height: 4px;
    background: linear-gradient(to right, #ff0055, #ffd700, #00e5f5);
    width: 100%;
}
