
/* =========================================================
   RESET + BASE
========================================================= */

:root {
    --jam-purple: #21166d;
    --jam-purple-dark: #17104f;
    --jam-yellow: #ffc400;
    --jam-bg: #f2f2f2;
    --jam-card: #fff;
    --jam-text: #222;
    --jam-muted: #777;
    --jam-border: #e8e8e8;
    --jam-shadow: 0 10px 30px rgba(24, 17, 75, .08);
    --ease: cubic-bezier(.22, .61, .36, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Vazirmatn", sans-serif;
    background: var(--jam-bg);
    color: var(--jam-text);
    overflow-x: hidden;
    transition: background-color .35s ease, color .35s ease;
}

section {
    margin: 1rem 0 !important;
    width: 100% !important;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -1;
    background:
        radial-gradient(circle at 10% 10%, rgba(255,196,0,.045), transparent 28%),
        radial-gradient(circle at 90% 25%, rgba(33,22,109,.045), transparent 30%);
}

button:focus-visible,
a:focus-visible,
input:focus-visible {
    outline: 3px solid rgba(255,196,0,.75);
    outline-offset: 3px;
}


/* =========================================================
   HEADER
========================================================= */

.top-header {
    height: 145px;
    background: var(--jam-purple);
    color: #fff;
    position: relative;
    z-index: 100;
    transition: box-shadow .35s ease, transform .35s ease, background .35s ease;
}

.top-bar {
    height: 38px;
    background: #1b125d;
    display: flex;
    align-items: center;
}

.top-bar-inner {
    width: min(1400px, calc(100% - 50px));
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
}

.top-links {
    display: flex;
    gap: 25px;
}

.top-links a {
    color: white;
    text-decoration: none;
}

.date-info {
    display: flex;
    gap: 25px;
}


/* MAIN HEADER */

.main-header {
    height: 107px;
    display: flex;
    align-items: center;
    transition: height .35s var(--ease);
}

.main-header-inner {
    width: min(1400px, calc(100% - 50px));
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}


/* LOGO */

.logo {
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: 800;
}

.logo-jam {
    color: #fff;
    font-size: 35px;
}

.logo-news {
    color: #ffd400;
    font-size: 39px;
}

.logo-sub {
    font-size: 12px;
    color: white;
    display: block;
    text-align: center;
}


/* NAV */

.main-nav {
    display: flex;
    align-items: center;
    gap: 28px;
}

.main-nav a {
    position: relative;
    color: white;
    text-decoration: none;
    font-size: 17px;
    font-weight: 700;
    padding: 8px 0;
    transition: color .25s ease, transform .25s ease;
}

.main-nav a::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: var(--jam-yellow);
    transition: width .3s var(--ease);
}

.main-nav a:hover {
    color: var(--jam-yellow);
    transform: translateY(-2px);
}

.main-nav a:hover::after {
    width: 100%;
}


/* HEADER ICONS */

.header-icons {
    display: flex;
    direction: ltr;
    gap: 7px;
}

.icon-btn {
    width: 50px;
    height: 50px;
    border: 0;
    border-radius: 6px;
    background: #191064;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 24px;
    cursor: pointer;
    transition: transform .25s var(--ease),
                background .25s ease,
                box-shadow .25s ease;
}

.icon-btn:hover {
    background: #2d2182;
    transform: translateY(-3px) scale(1.04);
    box-shadow: 0 7px 16px rgba(0,0,0,.16);
}

.icon-btn:active {
    transform: scale(.94);
}

.mobile-menu-btn {
    display: none;
}


/* =========================================================
   SCROLL HEADER
========================================================= */

body.scrolled .top-header {
    position: sticky;
    top: 0;
    box-shadow: 0 8px 28px rgba(16,10,62,.18);
}

body.scrolled .main-header {
    height: 82px;
}

body.scrolled .logo-news {
    font-size: 32px;
}

body.scrolled .logo-jam {
    font-size: 29px;
}


/* =========================================================
   SCROLL PROGRESS
========================================================= */

.scroll-progress {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    height: 3px;
    z-index: 9999;
    background: transparent;
    pointer-events: none;
}

.scroll-progress span {
    display: block;
    width: 0;
    height: 100%;
    background: linear-gradient(
        90deg,
        var(--jam-yellow),
        #fff,
        var(--jam-yellow)
    );
    box-shadow: 0 0 12px rgba(255,196,0,.55);
}


/* =========================================================
   NEWS TICKER
========================================================= */

.ticker {
    width: 100%;
    height: 48px;
    display: flex;
    align-items: center;
    padding: 0 3%;
    background: #fff;
    overflow: hidden;
    direction: rtl;
    position: relative;
    z-index: 30;
    box-shadow: 0 2px 12px rgba(0,0,0,.035);
}

.ticker-title {
    flex: 0 0 110px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--jam-purple);
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    position: relative;
    z-index: 5;
    box-shadow: 5px 0 15px rgba(0,0,0,.08);
}

.ticker-window {
    flex: 1;
    height: 100%;
    overflow: hidden;
    position: relative;
    direction: rtl;
}

.ticker-inner {
    height: 100%;
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    width: max-content;
    animation: tickerMove 45s linear infinite;
    will-change: transform;
}

.ticker-item {
    display: inline-flex;
    align-items: center;
    color: #333;
    font-size: 12px;
    font-weight: 600;
    margin: 0 15px;
    transition: color .25s ease;
}

.ticker-item:hover {
    color: #000;
}

.ticker-date {
    color: #999;
    font-size: 10px;
    padding-left: 18px;
    padding-right: 5px;
    border-left: 1px solid #ddd;
}

.ticker-window:hover .ticker-inner {
    animation-play-state: paused;
}

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

    100% {
        transform: translateX(100%);
    }
}


/* =========================================================
   MAIN NEWS / HERO
========================================================= */

.news-section {
    width: min(1350px, calc(100% - 50px));
    margin: 30px auto;
}

.news-grid {
    display: grid;
    grid-template-columns: 1fr 2.2fr 1fr;
    gap: 15px;
    direction: ltr;
}

.news-column {
    display: flex;
    flex-direction: column;
    gap: 12px;
}


/* NEWS CARD */

.news-card {
    position: relative;
    overflow: hidden;
    background: #111;
    height: 225px;
    cursor: pointer;
    transition: transform .4s var(--ease),
                box-shadow .4s var(--ease);
}

.news-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .7s var(--ease), filter .5s ease;
}

.news-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 18px 34px rgba(16,12,70,.16);
}

.news-card:hover img {
    transform: scale(1.08);
    filter: saturate(1.06);
}

.news-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0,0,0,.9),
        rgba(0,0,0,.05) 65%
    );
}

.news-card::before,
.featured::before,
.bottom-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: -120%;
    width: 55%;
    height: 100%;
    z-index: 4;
    pointer-events: none;
    transform: skewX(-18deg);
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255,255,255,.18),
        transparent
    );
    transition: left .7s ease;
}

.news-card:hover::before,
.featured:hover::before,
.bottom-card:hover::before {
    left: 145%;
}

.news-content {
    position: absolute;
    z-index: 2;
    right: 18px;
    left: 18px;
    bottom: 18px;
    color: white;
    direction: rtl;
}

.news-date {
    font-size: 11px;
    margin-bottom: 8px;
    opacity: .9;
}

.news-title {
    font-size: 16px;
    font-weight: 800;
    line-height: 1.8;
}


/* FEATURED */

.featured {
    position: relative;
    height: 460px;
    overflow: hidden;
    background: #111;
    isolation: isolate;
}

.featured img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transform: scale(1.01);
    transition: transform .7s var(--ease), filter .5s ease;
}

.featured:hover img {
    transform: scale(1.03);
}

.featured::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0,0,0,.95),
        rgba(0,0,0,.2) 65%,
        rgba(0,0,0,0) 100%
    );
}

.featured-content {
    position: absolute;
    z-index: 2;
    right: 30px;
    left: 30px;
    bottom: 25px;
    color: white;
    direction: rtl;
}

.featured-date {
    font-size: 12px;
    margin-bottom: 12px;
    opacity: .9;
}

.featured-title {
    font-size: 23px;
    font-weight: 800;
    line-height: 1.8;
    margin-bottom: 8px;
}

.featured-description {
    font-size: 14px;
    line-height: 2;
    color: #eee;
}


/* FEATURED SLIDER */

.featured.slide-changing img {
    animation: featuredImageIn .65s var(--ease);
}

.featured.slide-changing .featured-content {
    animation: featuredTextIn .55s var(--ease);
}

@keyframes featuredImageIn {
    from {
        opacity: .25;
        transform: scale(1.07);
    }

    to {
        opacity: 1;
        transform: scale(1.01);
    }
}

@keyframes featuredTextIn {
    from {
        opacity: 0;
        transform: translateY(16px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}


/* SLIDER ARROWS */

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    width: 28px;
    height: 28px;
    border: 0;
    background: rgba(40,40,40,.7);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    transition: background .25s ease,
                transform .25s ease,
                width .25s ease;
}

.arrow-right {
    right: 0;
}

.arrow-left {
    left: 0;
}

.slider-arrow:hover {
    width: 38px;
    background: rgba(33,22,109,.9);
}

.arrow-right:hover {
    transform: translateY(-50%) translateX(-2px);
}

.arrow-left:hover {
    transform: translateY(-50%) translateX(2px);
}


/* DOTS */

.slider-dots {
    position: absolute;
    z-index: 6;
    left: 30px;
    bottom: 22px;
    display: flex;
    gap: 6px;
    direction: ltr;
}

.slider-dot {
    width: 7px;
    height: 7px;
    border: 0;
    border-radius: 50%;
    padding: 0;
    background: rgba(255,255,255,.5);
    cursor: pointer;
    transition: width .3s ease,
                background .3s ease,
                transform .3s ease;
}

.slider-dot.active {
    width: 24px;
    border-radius: 8px;
    background: var(--jam-yellow);
}

.slider-dot:hover {
    transform: scale(1.25);
}


/* =========================================================
   FLOATING BUTTON
========================================================= */

.floating-btn {
    position: fixed;
    right: 0;
    top: 295px;
    width: 42px;
    height: 165px;
    background: #fff4d8;
    border-radius: 10px 0 0 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,.08);
    writing-mode: vertical-rl;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #f0a900;
    font-size: 13px;
    font-weight: 700;
    z-index: 20;
    transition: width .3s ease,
                background .3s ease,
                box-shadow .3s ease,
                transform .3s ease;
}

.floating-btn:hover {
    width: 50px;
    background: #fff9e9;
    box-shadow: 0 8px 25px rgba(240,169,0,.18);
}


/* =========================================================
   CONTENT AREA
========================================================= */

.content-area {
    width: min(1350px, calc(100% - 50px));
    margin: 50px auto;
    display: grid;
    grid-template-columns: minmax(0, 2.3fr) 445px;
    gap: 35px;
    direction: rtl;
}

.main-content,
.sidebar {
    direction: rtl;
}

.sidebar {
    position: sticky;
    top: 105px;
    align-self: start;
}


/* =========================================================
   SECTION TITLE
========================================================= */

.section-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    position: relative;
}

.section-title .section-more {
    margin-right: auto;
    background: var(--jam-yellow);
    color: #1a1248;
    text-decoration: none;
    font-size: 13px;
    font-weight: 800;
    padding: 8px 14px;
    border-radius: 4px;
    transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
    white-space: nowrap;
}

.section-title .section-more:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(255, 196, 0, .35);
    background: #ffd24a;
}

.section-title span {
    width: 5px;
    height: 30px;
    background: var(--jam-yellow);
    display: block;
    transition: height .35s ease, box-shadow .35s ease;
}

.section-title:hover span {
    height: 38px;
    box-shadow: 0 0 15px rgba(255,196,0,.35);
}

.section-title h2 {
    color: var(--jam-purple);
    font-size: 23px;
    font-weight: 800;
    position: relative;
}

.section-title h2::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: -7px;
    width: 0;
    height: 2px;
    background: var(--jam-yellow);
    transition: width .4s var(--ease);
}

.section-title:hover h2::after {
    width: 100%;
}

.second-title {
    margin-top: 50px;
}


/* =========================================================
   LATEST NEWS
========================================================= */

.latest-news-grid {
    display: grid;
    grid-template-columns: repeat(2,1fr);
    gap: 18px;
}

.latest-card {
    background: white;
    display: flex;
    height: 190px;
    min-height: 190px;
    max-height: 190px;
    border: 1px solid transparent;
    box-shadow: 0 2px 10px rgba(0,0,0,.07);
    overflow: hidden;
    transition: .3s;
    animation: newsFade .35s ease;
}

.latest-card:hover {
    transform: translateY(-4px);
    border-color: rgba(33,22,109,.08);
    box-shadow: 0 8px 20px rgba(0,0,0,.12);
}

.latest-card img {
    width: 42%;
    max-width: 180px;
    height: 190px;
    object-fit: cover;
    flex-shrink: 0;
    align-self: stretch;
    transition: transform .65s var(--ease), filter .4s ease;
}

.latest-card:hover img {
    transform: scale(1.06);
    filter: saturate(1.08);
}

.latest-content {
    padding: 17px;
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.category {
    color: var(--jam-yellow);
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 8px;
}

.latest-content h3 {
    color: var(--jam-purple);
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 7px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.latest-content p {
    color: #777;
    font-size: 12px;
    line-height: 1.8;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.latest-meta {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    color: #aaa;
    font-size: 10px;
}

.latest-card.hidden {
    display: none;
}

.category-more-wrap {
    margin-top: 14px;
}

.category-more-btn {
    display: none;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin-top: 0;
    padding: 12px 16px;
    border-radius: 8px;
    background: #fafafa;
    border: 1px solid #eee;
    text-decoration: none;
    color: var(--jam-purple);
    font-size: 13px;
    font-weight: 800;
    transition: .25s ease;
}

.category-more-btn.active {
    display: flex;
}

.category-more-btn b {
    font-size: 18px;
    color: var(--jam-yellow);
    transition: transform .25s ease;
}

.category-more-btn:hover {
    background: var(--jam-yellow);
    color: #fff;
    border-color: var(--jam-yellow);
}

.category-more-btn:hover b {
    color: #fff;
    transform: translateX(-4px);
}

.sidebar-empty {
    margin: 0;
    padding: 8px 0;
    color: #888;
    font-size: 13px;
}

@keyframes newsFade {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* =========================================================
   NEWS TABS
========================================================= */

.news-tabs {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 12px;
    border-bottom: 1px solid #eee;
    overflow-x: auto;
    scrollbar-width: none;
}

.news-tabs::-webkit-scrollbar {
    display: none;
}

.news-tab {
    border: none;
    background: #f5f5f5;
    color: #555;
    padding: 10px 22px;
    border-radius: 8px;
    font-family: inherit;
    font-size: 14px;
    cursor: pointer;
    white-space: nowrap;
    transition: all .3s ease;
}

.news-tab:hover {
    background: var(--jam-card);
    color: var(--jam-purple-dark);
}

.news-tab.active {
    background: var(--jam-yellow);
    color: white;
    font-weight: bold;
    box-shadow: 0 4px 12px rgba(191,30,46,.2);
}


/* =========================================================
   NEWS LIST
========================================================= */

.news-list {
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,.06);
}

.news-list-item {
    display: flex;
    gap: 14px;
    padding: 10px 14px;
    border-bottom: 1px solid #eee;
    align-items: center;
    transition: background .3s ease,
                transform .35s var(--ease),
                box-shadow .35s ease;
}

.news-list-item:last-child {
    border-bottom: none;
}

.news-list-item:hover {
    background: #fffdf3;
    transform: translateX(-5px);
    box-shadow: inset -4px 0 0 var(--jam-yellow);
}

.news-list-item img {
    width: 148px;
    height: 88px;
    object-fit: cover;
    flex-shrink: 0;
    border-radius: 2px;
    transition: transform .5s var(--ease);
}

.news-list-item:hover img {
    transform: scale(1.045);
}

.news-list-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.news-list-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.news-category {
    color: var(--jam-yellow);
    font-size: 12px;
    font-weight: 700;
}

.news-list-date {
    color: #999;
    font-size: 11px;
    margin-top: 0;
    flex-shrink: 0;
    white-space: nowrap;
}

.news-list-content h3 {
    color: var(--jam-purple);
    font-size: 15px;
    line-height: 1.55;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-list-content p {
    color: #777;
    font-size: 12px;
    line-height: 1.55;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}


/* =========================================================
   SIDEBAR
========================================================= */

.profile-card {
    background: white;
    box-shadow: 0 3px 12px rgba(0,0,0,.1);
    margin-bottom: 35px;
    position: relative;
    transition: transform .35s var(--ease), box-shadow .35s ease;
}

.profile-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 30px rgba(18,13,70,.1);
}

.profile-header {
    height: 68px;
    background: var(--jam-purple);
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 108px 0 25px;
    position: relative;
    overflow: hidden;
}

.profile-header::after {
    content: "";
    position: absolute;
    width: 130px;
    height: 130px;
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 50%;
    left: -45px;
    top: -50px;
}

.profile-header strong {
    font-size: 16px;
}

.profile-dots {
    display: flex;
    gap: 5px;
    direction: ltr;
}

.profile-dots i {
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: white;
}

.profile-dots i:first-child {
    background: var(--jam-yellow);
}

.profile-body {
    padding: 12px 108px 12px 20px;
    position: relative;
}

.profile-body p {
    color: #777;
    font-size: 12px;
    line-height: 1.8;
    padding-left: 12px;
}

.profile-body a {
    color: var(--jam-yellow);
    text-decoration: none;
    font-weight: 900;
}

.profile-image {
    position: absolute;
    right: 18px;
    top: -50px;
    width: 82px;
    height: 82px;
    border-radius: 50%;
    border: 5px solid var(--jam-yellow);
    overflow: hidden;
    background: white;
    transition: transform .4s var(--ease), box-shadow .4s ease;
}

.profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-card:hover .profile-image {
    transform: translateY(-5px) rotate(-3deg);
    box-shadow: 0 8px 20px rgba(255,196,0,.25);
}


/* SIDEBAR SECTION */

.sidebar-section {
    margin-bottom: 45px;
}

.sidebar-section > h2 {
    color: var(--jam-purple);
    font-size: 21px;
    margin-bottom: 18px;
    font-weight: 800;
}


/* POPULAR */

.popular-news {
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,.08);
    transition: transform .35s var(--ease), box-shadow .35s ease;
}

.popular-news:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 30px rgba(18,13,70,.1);
}

.popular-item {
    min-height: 68px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #eee;
    transition: background .25s ease, padding-right .25s ease;
}

.popular-item:last-child {
    border-bottom: none;
}

.popular-item:hover {
    background: #faf9ff;
    padding-right: 5px;
}

.popular-number {
    width: 55px;
    min-height: 68px;
    background: var(--jam-yellow);
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: filter .25s ease, transform .25s ease;
}

.popular-item:nth-child(even) .popular-number {
    background: var(--jam-purple);
}

.popular-item:hover .popular-number {
    filter: saturate(1.2);
    transform: scaleX(1.04);
}

.popular-number strong {
    font-size: 22px;
}

.popular-number small {
    font-size: 9px;
}

.popular-item p {
    padding: 10px 15px;
    color: var(--jam-purple);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.8;
}


/* CATEGORY */

.category-list {
    background: white;
    list-style: none;
    box-shadow: 0 2px 10px rgba(0,0,0,.06);
    transition: transform .35s var(--ease), box-shadow .35s ease;
}

.category-list:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 30px rgba(18,13,70,.1);
}

.category-list li {
    border-bottom: 1px solid #eee;
}

.category-list li:last-child {
    border-bottom: none;
}

.category-list a {
    position: relative;
    padding: 13px 18px;
    display: flex;
    justify-content: space-between;
    color: var(--jam-purple);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: padding-right .3s ease,
                background .3s ease,
                color .3s ease;
}

.category-list a::before {
    content: "";
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 0;
    background: var(--jam-yellow);
    transition: width .25s ease;
}

.category-list a:hover {
    background: #fafafa;
    padding-right: 24px;
}

.category-list a:hover::before {
    width: 4px;
}

.category-list span {
    color: #aaa;
}


/* LATEST SIDEBAR */

.latest-sidebar {
    background: #fff;
    border: 1px solid #eee;
    padding: 16px;
    box-shadow: 0 4px 18px rgba(0,0,0,.04);
}

.sidebar-heading {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 13px;
    margin-bottom: 5px;
    border-bottom: 2px solid #f3f3f3;
    position: relative;
}

.sidebar-heading::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: -2px;
    width: 65px;
    height: 2px;
    background: var(--jam-yellow);
}

.heading-icon {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff1f2;
    color: var(--jam-yellow);
    border-radius: 8px;
    font-size: 15px;
}

.sidebar-heading h2 {
    margin: 0;
    font-size: 16px;
    font-weight: 800;
    color: #222;
}

.sidebar-news-item {
    display: flex;
    gap: 10px;
    padding: 13px 0;
    text-decoration: none;
    border-bottom: 1px solid #f1f1f1;
    transition: .25s ease;
}

.sidebar-news-item:last-child {
    border-bottom: none;
}

.sidebar-news-item:hover {
    transform: translateX(-3px);
}

.sidebar-news-image {
    width: 82px;
    height: 72px;
    min-width: 82px;
    overflow: hidden;
    border-radius: 8px;
    background: #eee;
}

.sidebar-news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
}

.sidebar-news-item:hover .sidebar-news-image img {
    transform: scale(1.08);
}

.sidebar-news-content {
    min-width: 0;
    flex: 1;
}

.sidebar-news-content span {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    color: var(--jam-yellow);
    background: var(--jam-border);
    padding: 3px 7px;
    border-radius: 4px;
}

.sidebar-news-content h3 {
    margin: 5px 0;
    font-size: 12px;
    line-height: 1.7;
    font-weight: 700;
    color: #333;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color .25s ease;
}

.sidebar-news-item:hover h3 {
    color: var(--jam-purple);
}

.sidebar-news-content small {
    font-size: 9px;
    color: #999;
}

.sidebar-more {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 12px;
    padding: 10px 12px;
    border-radius: 7px;
    background: #fafafa;
    text-decoration: none;
    color: var(--jam-yellow);
    font-size: 11px;
    font-weight: 700;
    transition: .25s ease;
}

.sidebar-more b {
    font-size: 16px;
    transition: .25s ease;
}

.sidebar-more:hover {
    background: var(--jam-yellow);
    color: #fff;
}

.sidebar-more:hover b {
    transform: translateX(-4px);
}


/* =========================================================
   BOTTOM NEWS
========================================================= */

.bottom-news {
    width: min(1350px, calc(100% - 50px));
    margin: 60px auto;
    direction: rtl;
}

.bottom-news-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid var(--jam-purple);
    padding-bottom: 12px;
    margin-bottom: 20px;
}

.bottom-news-header h2 {
    color: var(--jam-purple);
    font-size: 22px;
}

.bottom-arrows {
    display: flex;
    gap: 5px;
}

.bottom-arrows button {
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 4px;
    background: var(--jam-purple);
    color: white;
    font-size: 20px;
    cursor: pointer;
    transition: transform .25s ease,
                background .25s ease,
                box-shadow .25s ease;
}

.bottom-arrows button:hover {
    background: #2d2182;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(33,22,109,.2);
}

.bottom-news-grid {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 15px;
    overflow: hidden;
}

.bottom-news-grid.carousel-mode {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    padding-bottom: 8px;
}

.bottom-news-grid.carousel-mode::-webkit-scrollbar {
    display: none;
}

.bottom-news-grid.carousel-mode .bottom-card {
    min-width: calc(25% - 12px);
    flex: 0 0 calc(25% - 12px);
    scroll-snap-align: start;
}

.bottom-card {
    background: white;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,.07);
    position: relative;
    transition: transform .4s var(--ease),
                box-shadow .4s var(--ease);
}

.bottom-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 18px 34px rgba(16,12,70,.16);
}

.bottom-card img {
    width: 100%;
    height: 155px;
    object-fit: cover;
    display: block;
    transition: transform .7s var(--ease), filter .5s ease;
}

.bottom-card:hover img {
    transform: scale(1.08);
    filter: saturate(1.06);
}

.bottom-card div {
    padding: 12px;
}

.bottom-card span {
    color: var(--jam-yellow);
    font-size: 11px;
}

.bottom-card h3 {
    color: var(--jam-purple);
    font-size: 14px;
    line-height: 1.8;
    margin-top: 5px;
}


/* =========================================================
   GALLERY
========================================================= */

.media-gallery {
    width: 100%;
    margin-top: 45px;
    padding: 28px;
    background: #fff;
    border: 1px solid #eee;
    box-shadow: 0 8px 30px rgba(0,0,0,.04);
    color: var(--jam-purple);
}

.media-gallery-header {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 28px;
}

.gallery-label {
    display: block;
    color: var(--jam-yellow);
    font-size: 11px;
    font-weight: 800;
    margin-bottom: 3px;
}

.media-gallery-header h2 {
    margin: 0;
    font-size: 23px;
    font-weight: 900;
    color: #222;
}

.gallery-line {
    flex: 1;
    height: 3px;
    border-radius: 20px;
    background: linear-gradient(
        to left,
        var(--jam-yellow),
        rgba(191,30,46,.08)
    );
}

.gallery-tabs {
    display: flex;
    align-items: center;
    margin-top: 32px;
    gap: 8px;
    border-bottom: 1px solid #eee;
}

.gallery-tab {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 11px 25px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #777;
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all .3s ease;
}

.gallery-tab span {
    font-size: 15px;
}

.gallery-tab:hover {
    color: var(--jam-yellow);
    background: rgba(191,30,46,.05);
}

.gallery-tab.active {
    color: #fff;
    background: var(--jam-yellow);
    box-shadow: 0 5px 15px rgba(191,30,46,.2);
}

.gallery-tab-content {
    display: none;
    animation: galleryFade .35s ease;
}

.gallery-tab-content.active {
    display: block;
}

@keyframes galleryFade {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.gallery-section {
    margin-bottom: 35px;
}

.gallery-section:last-child {
    margin-bottom: 0;
}

.gallery-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}

.gallery-title {
    display: flex;
    align-items: center;
    gap: 11px;
}

.gallery-icon {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 11px;
    background: rgba(191,30,46,.09);
    color: var(--jam-yellow);
    font-size: 18px;
}

.gallery-title > div > span {
    display: block;
    color: var(--jam-yellow);
    font-size: 10px;
    font-weight: 700;
    margin-bottom: 2px;
}

.gallery-title h3 {
    margin: 0;
    color: #222;
    font-size: 18px;
    font-weight: 900;
}

.gallery-controls {
    display: flex;
    gap: 7px;
}

.gallery-arrow {
    width: 38px;
    height: 38px;
    border: 1px solid #eee;
    border-radius: 9px;
    background: #fff;
    color: #333;
    cursor: pointer;
    font-size: 25px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .25s ease;
}

.gallery-arrow:hover {
    background: var(--jam-yellow);
    border-color: var(--jam-yellow);
    color: #fff;
    transform: translateY(-2px);
}

.gallery-arrow:disabled {
    opacity: .35;
    cursor: default;
    transform: none;
}

.gallery-slider {
    width: 100%;
    overflow: hidden;
}

.gallery-track {
    display: flex;
    gap: 16px;
    transition: transform .45s cubic-bezier(.4,0,.2,1);
    direction: rtl;
}

.gallery-card {
    flex: 0 0 calc((100% - 48px) / 4);
    min-width: 0;
    display: block;
    text-decoration: none;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 13px;
    overflow: hidden;
    transition: transform .3s ease,
                box-shadow .3s ease,
                border-color .3s ease;
}

.gallery-card:hover {
    transform: translateY(-5px);
    border-color: rgba(191,30,46,.2);
    box-shadow: 0 12px 30px rgba(0,0,0,.09);
}

.gallery-image {
    position: relative;
    width: 100%;
    height: 190px;
    overflow: hidden;
    background: #222;
}

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

.gallery-card:hover .gallery-image img {
    transform: scale(1.07);
}

.gallery-featured {
    flex-basis: calc((100% - 32px) / 2);
    border: 0;
    background: #111;
}

.gallery-featured .gallery-image {
    height: 290px;
}

.gallery-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0,0,0,.92),
        rgba(0,0,0,.05) 70%
    );
}

.featured-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 3;
    padding: 6px 11px;
    background: var(--jam-yellow);
    color: #fff;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 800;
    box-shadow: 0 5px 15px rgba(0,0,0,.2);
}

.gallery-card-content {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 3;
    padding: 20px;
}

.gallery-category {
    display: inline-block;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    margin-bottom: 5px;
}

.gallery-card-content h3 {
    margin: 4px 0 10px;
    color: #fff;
    font-size: 16px;
    line-height: 1.8;
    font-weight: 800;
}

.gallery-info {
    padding: 13px 15px 15px;
}

.gallery-info > span {
    display: block;
    color: var(--jam-yellow);
    font-size: 10px;
    font-weight: 700;
    margin-bottom: 5px;
}

.gallery-info h3 {
    margin: 0 0 10px;
    color: #222;
    font-size: 13px;
    line-height: 1.8;
    font-weight: 800;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.gallery-meta {
    display: flex;
    align-items: center;
    gap: 14px;
    color: rgba(255,255,255,.7);
    font-size: 9px;
}

.gallery-meta.dark {
    color: #999;
}

.gallery-type {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 3;
    padding: 5px 9px;
    background: var(--jam-yellow);
    color: #fff;
    border-radius: 5px;
    font-size: 9px;
    font-weight: 700;
}

.video-type {
    background: var(--jam-yellow);
}

.video-icon {
    font-size: 15px;
    color: var(--jam-yellow);
}

.video-play,
.video-play-small {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 4;
    transform: translate(-50%,-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--jam-yellow);
    color: #fff;
    border-radius: 50%;
    transition: all .3s ease;
}

.video-play {
    width: 48px;
    height: 48px;
    padding-right: 2px;
    font-size: 15px;
    box-shadow: 0 7px 22px rgba(0,0,0,.3);
}

.video-play-small {
    width: 64px;
    height: 64px;
    padding-right: 3px;
    font-size: 19px;
    box-shadow: 0 10px 30px rgba(0,0,0,.3);
}

.gallery-card:hover .video-play,
.gallery-featured:hover .video-play-small {
    transform: translate(-50%,-50%) scale(1.12);
}


/* =========================================================
   SUPPORT CHAT
========================================================= */

.support-chat {
    position: fixed;
    top: 0;
    right: 0;
    width: 390px;
    max-width: calc(100% - 20px);
    height: 100vh;
    background: #fff;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    box-shadow: -12px 0 40px rgba(0,0,0,.18);
    transform: translateX(105%);
    visibility: hidden;
    transition:
        transform .45s cubic-bezier(.22,.61,.36,1),
        visibility .45s ease;
}

.support-chat.open {
    transform: translateX(0);
    visibility: visible;
}

.support-chat-header {
    height: 78px;
    background: var(--jam-purple);
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    flex-shrink: 0;
}

.support-user {
    display: flex;
    align-items: center;
    gap: 12px;
}

.support-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--jam-yellow);
    color: var(--jam-purple);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 900;
}

.support-user strong {
    display: block;
    font-size: 16px;
}

.support-user span {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 3px;
    font-size: 11px;
    color: #ddd;
}

.support-user span i {
    width: 7px;
    height: 7px;
    background: #48e27a;
    border-radius: 50%;
    display: inline-block;
}

.support-close {
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    background: rgba(255,255,255,.12);
    color: white;
    font-size: 25px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: .25s ease;
}

.support-close:hover {
    background: rgba(255,255,255,.22);
    transform: rotate(90deg);
}

.support-chat-body {
    flex: 1;
    overflow-y: auto;
    padding: 22px 18px;
    background: #f5f5f7;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.support-chat-body::-webkit-scrollbar {
    width: 5px;
}

.support-chat-body::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 10px;
}

.support-welcome {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.support-bot-icon {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--jam-purple);
    color: var(--jam-yellow);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    flex-shrink: 0;
}

.support-message {
    max-width: 82%;
    background: white;
    color: #444;
    padding: 11px 14px;
    border-radius: 5px 15px 15px 15px;
    font-size: 13px;
    line-height: 1.9;
    box-shadow: 0 2px 8px rgba(0,0,0,.05);
    animation: supportMessageIn .35s ease;
}

.user-message {
    align-self: flex-start;
    background: var(--jam-purple);
    color: white;
    border-radius: 15px 5px 15px 15px;
}

@keyframes supportMessageIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

.support-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 3px;
}

.support-options button {
    width: 100%;
    padding: 11px 14px;
    background: white;
    border: 1px solid #e2e2e2;
    border-radius: 7px;
    color: var(--jam-purple);
    font-family: inherit;
    font-size: 12px;
    font-weight: 700;
    text-align: right;
    cursor: pointer;
    transition: .25s ease;
}

.support-options button:hover {
    background: #fffdf3;
    border-color: var(--jam-yellow);
    padding-right: 19px;
}

.support-chat-footer {
    min-height: 70px;
    padding: 12px;
    background: white;
    border-top: 1px solid #eee;
    display: flex;
    align-items: center;
    gap: 8px;
}

.support-chat-footer input {
    flex: 1;
    height: 45px;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 0 13px;
    outline: none;
    font-family: inherit;
    font-size: 12px;
    direction: rtl;
    transition: .25s ease;
}

.support-chat-footer input:focus {
    border-color: var(--jam-purple);
    box-shadow: 0 0 0 3px rgba(33,22,109,.07);
}

.support-chat-footer button {
    width: 45px;
    height: 45px;
    border: 0;
    border-radius: 8px;
    background: var(--jam-purple);
    color: white;
    font-size: 19px;
    cursor: pointer;
    transition: .25s ease;
}

.support-chat-footer button:hover {
    background: #2d2182;
    transform: translateY(-2px);
}

.support-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10,7,40,.35);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: .35s ease;
}

.support-overlay.open {
    opacity: 1;
    visibility: visible;
}


/* =========================================================
   SEARCH OVERLAY
========================================================= */

.search-overlay {
    position: fixed;
    inset: 0;
    z-index: 500;
    display: grid;
    place-items: center;
    background: rgba(12,8,45,.68);
    backdrop-filter: blur(7px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s ease, visibility .3s ease;
}

.search-overlay.open {
    opacity: 1;
    visibility: visible;
}

.search-box {
    position: relative;
    width: min(720px, calc(100% - 30px));
    background: #fff;
    border-radius: 12px;
    padding: 34px;
    box-shadow: 0 25px 70px rgba(0,0,0,.25);
    transform: translateY(25px) scale(.97);
    transition: transform .4s var(--ease);
}

.search-overlay.open .search-box {
    transform: none;
}

.search-close,
.mobile-menu-close {
    position: absolute;
    top: 12px;
    left: 14px;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    background: #f2f2f2;
    color: #333;
    font-size: 24px;
    cursor: pointer;
}

.search-label {
    display: block;
    color: var(--jam-purple);
    font-weight: 800;
    font-size: 22px;
    margin-bottom: 18px;
}

.search-input-wrap {
    display: flex;
    gap: 8px;
}

.search-input-wrap input {
    flex: 1;
    min-width: 0;
    height: 50px;
    border: 1px solid #ddd;
    border-radius: 7px;
    padding: 0 16px;
    font-family: inherit;
    font-size: 14px;
    outline: none;
}

.search-input-wrap input:focus {
    border-color: var(--jam-purple);
    box-shadow: 0 0 0 3px rgba(33,22,109,.08);
}

.search-input-wrap button {
    border: 0;
    border-radius: 7px;
    background: var(--jam-purple);
    color: #fff;
    padding: 0 24px;
    font-family: inherit;
    font-weight: 700;
    cursor: pointer;
}

.search-hint {
    color: #999;
    font-size: 11px;
    margin-top: 10px;
}


/* =========================================================
   MOBILE MENU
========================================================= */

.mobile-menu-overlay {
    position: fixed;
    inset: 0;
    z-index: 600;
    background: rgba(10,7,40,.62);
    backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s ease, visibility .3s ease;
}

.mobile-menu-overlay.open {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-panel {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(330px,88%);
    background: #fff;
    padding: 70px 25px 30px;
    transform: translateX(100%);
    transition: transform .4s var(--ease);
    box-shadow: -15px 0 40px rgba(0,0,0,.2);
}

.mobile-menu-overlay.open .mobile-menu-panel {
    transform: none;
}

.mobile-menu-logo {
    color: var(--jam-purple);
    font-size: 28px;
    font-weight: 900;
    padding-bottom: 25px;
    border-bottom: 1px solid #eee;
}

.mobile-menu-logo b {
    color: var(--jam-yellow);
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    margin-top: 18px;
}

.mobile-nav a {
    color: var(--jam-purple);
    text-decoration: none;
    font-weight: 700;
    padding: 15px 8px;
    border-bottom: 1px solid #eee;
    transition: padding-right .25s ease, background .25s ease;
}

.mobile-nav a:hover {
    padding-right: 18px;
    background: #fffdf3;
}


/* =========================================================
   FOOTER
========================================================= */

.site-footer {
    width: 100%;
    background: #121a25;
    color: #aeb6c2;
    direction: rtl;
    padding: 0 0 26px;
    font-family: inherit;
}

.footer-tags {
    width: min(1550px, calc(100% - 80px));
    margin: auto;
    padding: 28px 0 20px;
    border-bottom: 1px solid #202a37;
}

.footer-tags h3 {
    color: #fff;
    font-size: 18px;
    margin: 0 0 26px;
    font-weight: 700;
}

.tags-list {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 7px 12px;
}

.tags-list a {
    text-decoration: none;
    color: #d3d7dc;
    background: #182330;
    border-radius: 5px;
    padding: 8px 13px;
    font-size: 13px;
    transition: .25s;
}

.tags-list a:hover {
    background: #202d3c;
    color: #fff;
}

.footer-main {
    width: min(1550px, calc(100% - 80px));
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 38px 0 30px;
}

.footer-brand {
    min-width: 320px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.logo-yellow {
    color: var(--jam-yellow);
    font-size: 32px;
    font-weight: 900;
    font-style: italic;
}

.footer-logo .logo-jam {
    color: #c9cbd0;
    font-size: 32px;
    font-weight: 800;
    border-right: 2px solid #555;
    padding-right: 8px;
}

.footer-subtitle {
    font-size: 10px;
    color: #777f89;
    margin-top: -2px;
    padding: 0;
}

.footer-subtitle span {
    background: var(--jam-yellow);
    color: #222;
    padding: 2px 9px;
    margin-right: 6px;
    font-size: 8px;
}

.social-icons {
    display: flex;
    flex-wrap: wrap;
    direction: ltr;
    justify-content: center;
    margin: 18px auto 0;
}

.social-icons__link,
.social-icons a {
    width: 48px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #182330;
    color: #d6dce3;
    text-decoration: none;
    border-left: 1px solid #26313e;
    font-size: 18px;
    transition: .25s;
}

.social-icons__link svg {
    width: 20px;
    height: 20px;
    display: block;
}

.social-icons__img {
    width: 22px;
    height: 22px;
    object-fit: contain;
    display: block;
}

.social-icons__link--custom {
    background: #101820;
}

.social-icons__link--custom:hover {
    background: #fff;
}

.social-icons__link:hover,
.social-icons a:hover {
    background: var(--jam-yellow);
    color: #121a25;
}

/* =========================================================
   FOLLOW POPUP (entry)
========================================================= */

.follow-popup {
    position: fixed;
    inset: 0;
    z-index: 10050;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .35s ease, visibility .35s ease;
}

.follow-popup.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.follow-popup__backdrop {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 50% 20%, rgba(33, 22, 109, .45), transparent 55%),
        rgba(8, 10, 18, .72);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.follow-popup__dialog {
    position: relative;
    width: min(460px, 100%);
    max-height: min(92vh, 720px);
    overflow: auto;
    padding: 28px 24px 22px;
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, .1);
    background:
        linear-gradient(165deg, rgba(255,255,255,.07), transparent 42%),
        linear-gradient(180deg, #1a2140 0%, #12182c 55%, #0e1322 100%);
    box-shadow:
        0 30px 80px rgba(0, 0, 0, .45),
        0 0 0 1px rgba(255, 196, 0, .08) inset;
    color: #eef1f6;
    text-align: center;
    transform: translateY(18px) scale(.96);
    transition: transform .4s cubic-bezier(.22, 1, .36, 1);
}

.follow-popup.is-open .follow-popup__dialog {
    transform: none;
}

.follow-popup__glow {
    position: absolute;
    top: -40px;
    left: 50%;
    width: 180px;
    height: 180px;
    transform: translateX(-50%);
    background: radial-gradient(circle, rgba(255, 196, 0, .28), transparent 70%);
    pointer-events: none;
}

.follow-popup__brand {
    position: relative;
    display: inline-flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 14px;
}

.follow-popup__brand-fa {
    color: var(--jam-yellow);
    font-size: 26px;
    font-weight: 900;
    letter-spacing: -.02em;
}

.follow-popup__brand-en {
    color: rgba(255,255,255,.78);
    font-size: 18px;
    font-weight: 800;
    border-right: 2px solid rgba(255,255,255,.2);
    padding-right: 8px;
}

.follow-popup__title {
    position: relative;
    margin: 0 0 10px;
    font-size: 20px;
    font-weight: 900;
    line-height: 1.55;
    color: #fff;
}

.follow-popup__text {
    position: relative;
    margin: 0 auto 20px;
    max-width: 36ch;
    font-size: 13.5px;
    line-height: 1.9;
    color: rgba(230, 235, 245, .78);
    font-weight: 600;
}

.follow-popup__grid {
    position: relative;
    display: grid;
    gap: 10px;
    margin-bottom: 16px;
}

.follow-popup__item {
    display: grid;
    grid-template-columns: 48px 1fr auto;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 14px;
    text-decoration: none;
    color: #fff;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.08);
    transition: transform .22s ease, background .22s ease, border-color .22s ease, box-shadow .22s ease;
}

.follow-popup__item:hover {
    transform: translateY(-2px);
    background: rgba(255,255,255,.08);
    border-color: rgba(255, 196, 0, .35);
    box-shadow: 0 10px 24px rgba(0,0,0,.22);
}

.follow-popup__icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    color: #fff;
    background: #334155;
}

.follow-popup__icon svg {
    width: 24px;
    height: 24px;
    display: block;
}

.follow-popup__icon img {
    width: 28px;
    height: 28px;
    object-fit: contain;
    display: block;
}

.follow-popup__icon--custom {
    background: #0f172a;
    padding: 8px;
}

.follow-popup__item--telegram .follow-popup__icon { background: #229ED9; }
.follow-popup__item--rubika .follow-popup__icon { background: #7B2D8E; }
.follow-popup__item--eitaa .follow-popup__icon { background: #E85D04; }
.follow-popup__item--bale .follow-popup__icon { background: #00ADEF; }
.follow-popup__item--soroush .follow-popup__icon { background: #0EA5A4; }
.follow-popup__item--instagram .follow-popup__icon { background: linear-gradient(45deg,#f09433,#e6683c,#dc2743,#cc2366,#bc1888); }
.follow-popup__item--youtube .follow-popup__icon { background: #FF0000; }
.follow-popup__item--whatsapp .follow-popup__icon { background: #25D366; }
.follow-popup__item--x .follow-popup__icon { background: #111; }
.follow-popup__item--facebook .follow-popup__icon { background: #1877F2; }
.follow-popup__item--aparat .follow-popup__icon { background: #ED145B; }

.follow-popup__label {
    text-align: right;
    font-size: 14px;
    font-weight: 800;
}

.follow-popup__arrow {
    color: rgba(255,255,255,.35);
    font-size: 20px;
    line-height: 1;
    transition: transform .22s ease, color .22s ease;
}

.follow-popup__item:hover .follow-popup__arrow {
    color: var(--jam-yellow);
    transform: translateX(-3px);
}

.follow-popup__dismiss {
    position: relative;
    width: 100%;
    min-height: 48px;
    border: 0;
    border-radius: 14px;
    cursor: pointer;
    font: inherit;
    font-size: 14px;
    font-weight: 900;
    color: #17104f;
    background: linear-gradient(135deg, #ffd54a, var(--jam-yellow) 55%, #f0b400);
    box-shadow: 0 10px 28px rgba(255, 196, 0, .28);
    transition: transform .22s ease, box-shadow .22s ease, filter .22s ease;
}

.follow-popup__dismiss:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 32px rgba(255, 196, 0, .38);
    filter: brightness(1.03);
}

.follow-popup__dismiss:active {
    transform: translateY(0);
}

body.follow-popup-open {
    overflow: hidden;
}

@media (max-width: 520px) {
    .follow-popup {
        padding: 12px;
        align-items: flex-end;
    }

    .follow-popup__dialog {
        width: 100%;
        border-radius: 20px 20px 14px 14px;
        padding: 22px 16px 16px;
    }

    .follow-popup__brand-fa { font-size: 22px; }
    .follow-popup__title { font-size: 18px; }
}

.footer-links {
    display: flex;
    gap: 100px;
    margin-left: 100px;
}

.footer-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-column a {
    color: #d1d5da;
    text-decoration: none;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: .2s;
}

.footer-column a span {
    color: #ddd;
    font-size: 12px;
}

.footer-column a:hover {
    color: var(--jam-yellow);
}

.footer-bottom {
    width: min(1550px, calc(100% - 80px));
    margin: auto;
    min-height: 52px;
    background: #19232f;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 14px;
    font-size: 13px;
}

.copyright {
    color: #969faa;
}

.designer {
    color: #9ba3ad;
}


/* =========================================================
   BACK TO TOP
========================================================= */

.back-to-top {
    position: fixed;
    left: 22px;
    right: auto;
    bottom: 28px;
    z-index: 999;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 46px;
    padding: 0 16px 0 12px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 999px;
    background: linear-gradient(145deg, #2a1f7a 0%, var(--jam-purple-dark) 55%, #120c3a 100%);
    color: #fff;
    font-family: inherit;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: -.2px;
    cursor: pointer;
    box-shadow:
        0 10px 28px rgba(23, 16, 79, .35),
        0 1px 0 rgba(255, 255, 255, .08) inset;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(12px) scale(.96);
    transition:
        opacity .28s ease,
        visibility .28s ease,
        transform .28s ease,
        box-shadow .28s ease,
        background .28s ease,
        border-color .28s ease;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
}

.back-to-top__icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--jam-yellow);
    color: #17104f;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(255, 196, 0, .35);
}

.back-to-top__icon svg {
    display: block;
}

.back-to-top__text {
    line-height: 1;
    white-space: nowrap;
    padding-left: 2px;
}

.back-to-top:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 196, 0, .45);
    box-shadow:
        0 14px 34px rgba(23, 16, 79, .42),
        0 0 0 3px rgba(255, 196, 0, .12);
}

.back-to-top:hover .back-to-top__icon {
    transform: translateY(-1px);
}

.back-to-top:active {
    transform: translateY(-1px) scale(.98);
}

.back-to-top:focus-visible {
    outline: 2px solid var(--jam-yellow);
    outline-offset: 3px;
}

/* =========================================================
   NEWS DETAIL PAGE
========================================================= */

.news-detail-page {
    width: min(1350px, calc(100% - 50px));
    margin: 35px auto 70px;
}


/* =========================================================
   BREADCRUMB
========================================================= */

.detail-breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 25px;

    font-size: 13px;
    color: #888;
}

.detail-breadcrumb a {
    color: #777;
    text-decoration: none;
    transition: .3s;
}

.detail-breadcrumb a:hover {
    color: #21166d;
}

.detail-breadcrumb span {
    color: #aaa;
}


/* =========================================================
   MAIN LAYOUT
========================================================= */

.detail-layout {
    display: grid;

    gap: 30px;

    align-items: start;
}


/* =========================================================
   ARTICLE
========================================================= */

.news-article {
    background: #fff;
    border-radius: 4px;

    padding: 30px;

    box-shadow:
        0 8px 30px rgba(24, 17, 75, .06);
}


/* =========================================================
   CATEGORY
========================================================= */

.article-category {
    display: inline-flex;

    align-items: center;

    padding: 6px 15px;

    margin-bottom: 15px;

    background: #21166d;
    color: #fff;

    border-radius: 3px;

    font-size: 12px;
    font-weight: 600;
}


/* =========================================================
   TITLE
========================================================= */

.article-title {
    margin: 0 0 20px;

    color: #222;

    font-size: 32px;
    line-height: 1.8;

    font-weight: 800;
}


/* =========================================================
   META
========================================================= */

.article-meta {
    display: flex;

    align-items: center;

    gap: 25px;

    padding-bottom: 20px;

    border-bottom: 1px solid #eee;

    color: #888;

    font-size: 13px;
}

.article-meta div {
    display: flex;
    align-items: center;
    gap: 6px;
}


/* =========================================================
   MAIN IMAGE
========================================================= */

.article-main-image {
    width: 100%;

    margin-top: 25px;

    overflow: hidden;

    border-radius: 5px;
}

.article-main-image img {
    width: 100%;
    height: auto;

    display: block;

    object-fit: cover;

    transition: transform .5s ease;
}

.article-main-image:hover img {
    transform: scale(1.02);
}


/* =========================================================
   CAPTION
========================================================= */

.article-caption {
    margin-top: 8px;

    padding: 8px 12px;

    background: #f7f7f7;

    color: #888;

    font-size: 12px;

    border-right: 3px solid #ffc400;
}


/* =========================================================
   ARTICLE CONTENT
========================================================= */

.article-content {
    margin-top: 30px;

    color: #444;

    font-size: 16px;

    line-height: 2.4;
}

.article-content p {
    margin: 0 0 22px;
}

.article-content h2 {
    margin: 35px 0 15px;

    color: #21166d;

    font-size: 22px;

    font-weight: 800;
}

.article-content blockquote {
    margin: 30px 0;

    padding: 20px 25px;

    background: #f7f6fc;

    border-right: 4px solid #ffc400;

    color: #21166d;

    font-size: 17px;

    font-weight: 600;

    line-height: 2;
}


/* =========================================================
   SHARE
========================================================= */

.article-share-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px 18px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.article-share {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
    border: 0;
}

.article-share > span {
    margin-left: 4px;
    font-size: 13px;
    font-weight: 700;
}

.article-share button {
    border: 0;
    padding: 8px 14px;
    background: #f1f1f1;
    color: #555;
    border-radius: 3px;
    font-family: inherit;
    cursor: pointer;
    transition: .3s;
}

.article-share button:hover {
    background: #21166d;
    color: #fff;
}

.article-shortlink {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 6px 10px;
    border: 1px dashed #ddd;
    border-radius: 6px;
    background: #fafafa;
    font-size: 13px;
}

.article-shortlink > span {
    font-weight: 700;
    color: #555;
}

.article-shortlink a {
    color: #c8102e;
    direction: ltr;
    unicode-bidi: plaintext;
    word-break: break-all;
}

.article-shortlink button {
    border: 0;
    padding: 6px 12px;
    background: #111827;
    color: #fff;
    border-radius: 4px;
    font-family: inherit;
    font-size: 12px;
    cursor: pointer;
}

.article-shortlink button:hover,
.article-shortlink button.is-copied {
    background: #0f766e;
}

@media (max-width: 640px) {
    .article-share-row {
        flex-direction: column;
        align-items: stretch;
    }
}


/* =========================================================
   TAGS
========================================================= */

.article-tags {
    display: flex;

    align-items: center;

    flex-wrap: wrap;

    gap: 8px;

    margin-top: 20px;

    font-size: 13px;
}

.article-tags > span {
    font-weight: 700;
}

.article-tags a {
    display: inline-block;

    padding: 6px 12px;

    background: #f5f5f5;

    color: #666;

    border-radius: 3px;

    text-decoration: none;

    transition: .3s;
}

.article-tags a:hover {
    background: #ffc400;
    color: #21166d;
}


/* =========================================================
   AUTHOR
========================================================= */

.article-author {
    display: flex;

    align-items: center;

    gap: 15px;

    margin-top: 30px;

    padding: 18px;

    background: #f8f8f8;

    border-radius: 4px;
}

.author-avatar {
    width: 55px;
    height: 55px;

    flex-shrink: 0;

    overflow: hidden;

    border-radius: 50%;
}

.author-avatar img {
    width: 100%;
    height: 100%;

    object-fit: cover;
}

.article-author div:last-child {
    display: flex;

    flex-direction: column;

    gap: 4px;
}

.article-author span {
    color: #999;

    font-size: 11px;
}

.article-author strong {
    color: #333;

    font-size: 14px;
}


/* =========================================================
   PREV / NEXT
========================================================= */

.article-navigation {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 15px;

    margin: 25px 0;
}

.article-nav {
    display: flex;

    flex-direction: column;

    gap: 7px;

    padding: 18px;

    background: #f7f7f7;

    color: #333;

    text-decoration: none;

    border-radius: 4px;

    transition: .3s;
}

.article-nav:hover {
    background: #21166d;
    color: #fff;
}

.article-nav span {
    font-size: 11px;
    color: #999;
}

.article-nav:hover span {
    color: #ddd;
}

.article-nav strong {
    font-size: 13px;
    line-height: 1.8;
}


/* =========================================================
   RELATED
========================================================= */

.related-news {
    margin-top: 45px;
}

.detail-section-title {
    display: flex;

    align-items: center;

    gap: 10px;

    margin-bottom: 20px;
}

.detail-section-title span {
    width: 4px;
    height: 25px;

    background: #ffc400;

    border-radius: 3px;
}

.detail-section-title h2 {
    margin: 0;

    color: #21166d;

    font-size: 21px;

    font-weight: 800;
}

.related-grid {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 15px;
}

.related-card {
    display: block;

    overflow: hidden;

    background: #fff;

    border: 1px solid #eee;

    color: #222;

    text-decoration: none;

    border-radius: 4px;

    transition: .3s;
}

.related-card:hover {
    transform: translateY(-4px);

    box-shadow:
        0 10px 25px rgba(24,17,75,.10);
}

.related-card img {
    width: 100%;
    height: 150px;

    display: block;

    object-fit: cover;
}

.related-card > div {
    padding: 12px;
}

.related-card span {
    color: #21166d;

    font-size: 11px;

    font-weight: 700;
}

.related-card h3 {
    margin: 7px 0 0;

    font-size: 13px;

    line-height: 1.8;
}


/* =========================================================
   DETAIL SIDEBAR
========================================================= */

.detail-sidebar {
    display: flex;

    flex-direction: column;

    gap: 25px;

    position: sticky;

    top: 105px;
}


/* =========================================================
   SIDEBAR SECTION
========================================================= */

.detail-sidebar-section {
    background: #fff;

    padding: 22px;

    border-radius: 4px;

    box-shadow:
        0 8px 25px rgba(24,17,75,.06);
}


/* =========================================================
   SIDEBAR TITLE
========================================================= */

.detail-sidebar-title {
    display: flex;

    align-items: center;

    gap: 10px;

    margin-bottom: 18px;

    padding-bottom: 13px;

    border-bottom: 1px solid #eee;
}

.detail-sidebar-title span {
    width: 4px;
    height: 24px;

    background: #ffc400;

    border-radius: 3px;
}

.detail-sidebar-title h2 {
    margin: 0;

    color: #21166d;

    font-size: 18px;

    font-weight: 800;
}


/* =========================================================
   POPULAR NEWS
========================================================= */

.detail-popular {
    display: flex;

    flex-direction: column;
}

.detail-popular-item {
    display: grid;

    grid-template-columns: 55px 1fr;

    gap: 12px;

    padding: 15px 0;

    color: #444;

    text-decoration: none;

    border-bottom: 1px solid #eee;

    font-size: 13px;

    line-height: 1.9;

    transition: .3s;
}

.detail-popular-item:last-child {
    border-bottom: 0;
}

.detail-popular-item:hover {
    color: #21166d;

    transform: translateX(-4px);
}

.detail-popular-number {
    width: 50px;
    height: 50px;

    display: flex;

    flex-direction: column;

    justify-content: center;

    align-items: center;

    background: #21166d;

    color: #fff;

    border-radius: 4px;
}

.detail-popular-number strong {
    font-size: 17px;

    line-height: 1;
}

.detail-popular-number small {
    margin-top: 3px;

    font-size: 9px;
}


/* =========================================================
   LATEST NEWS
========================================================= */

.detail-latest {
    display: flex;

    flex-direction: column;
}

.detail-latest-item {
    display: grid;

    grid-template-columns: 90px 1fr;

    gap: 12px;

    padding: 13px 0;

    color: #333;

    text-decoration: none;

    border-bottom: 1px solid #eee;
}

.detail-latest-item:last-child {
    border-bottom: 0;
}

.detail-latest-image {
    width: 90px;
    height: 70px;

    overflow: hidden;

    border-radius: 3px;
}

.detail-latest-image img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: .4s;
}

.detail-latest-item:hover img {
    transform: scale(1.08);
}

.detail-latest-content {
    min-width: 0;
}

.detail-latest-content span {
    color: #21166d;

    font-size: 10px;

    font-weight: 700;
}

.detail-latest-content h3 {
    margin: 3px 0;

    display: -webkit-box;

    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;

    overflow: hidden;

    font-size: 12px;

    line-height: 1.7;
}

.detail-latest-content small {
    color: #999;

    font-size: 9px;
}


/* =========================================================
   CATEGORIES
========================================================= */

.detail-categories {
    display: flex;

    flex-direction: column;
}

.detail-categories a {
    display: flex;

    align-items: center;

    justify-content: space-between;

    padding: 12px 5px;

    color: #555;

    text-decoration: none;

    border-bottom: 1px solid #eee;

    font-size: 13px;

    transition: .3s;
}

.detail-categories a:last-child {
    border-bottom: 0;
}

.detail-categories a:hover {
    color: #21166d;

    padding-right: 10px;
}

.detail-categories span {
    width: 25px;
    height: 25px;

    display: flex;

    align-items: center;
    justify-content: center;

    background: #f2f2f2;

    color: #777;

    border-radius: 50%;

    font-size: 10px;
}


/* =========================================================
                         TABLET
========================================================= */

@media (max-width: 1100px) {

    .detail-layout {
        grid-template-columns: minmax(0, 1fr) 320px;
    }

    .news-detail-page {
        width: calc(100% - 35px);
    }

    .article-title {
        font-size: 28px;
    }

}


/* =========================================================
                         TABLET SMALL
========================================================= */

@media (max-width: 900px) {

    .detail-layout {
        grid-template-columns: 1fr;
    }

    .detail-sidebar {
        position: static;

        display: grid;

        grid-template-columns: 1fr 1fr;
    }

    .detail-sidebar-section:last-child {
        grid-column: span 2;
    }

    .article-title {
        font-size: 26px;
    }

}


/* =========================================================
                           MOBILE
========================================================= */

@media (max-width: 700px) {

    .news-detail-page {
        width: calc(100% - 24px);

        margin-top: 20px;
    }

    .detail-breadcrumb {
        font-size: 11px;

        margin-bottom: 15px;
    }

    .detail-layout {
        display: flex;

        flex-direction: column;
    }

    .news-article {
        width: 100%;

        padding: 18px;
    }

    .article-title {
        font-size: 22px;

        line-height: 1.8;
    }

    .article-meta {
        flex-wrap: wrap;

        gap: 10px 18px;

        font-size: 11px;
    }

    .article-content {
        font-size: 14px;

        line-height: 2.3;
    }

    .article-content h2 {
        font-size: 19px;
    }

    .article-content blockquote {
        font-size: 14px;

        padding: 15px;
    }

    .article-navigation {
        grid-template-columns: 1fr;
    }

    .related-grid {
        grid-template-columns: 1fr;
    }

    .related-card {
        display: grid;

        grid-template-columns: 110px 1fr;
    }

    .related-card img {
        height: 100%;

        min-height: 100px;
    }

    .detail-sidebar {
        width: 100%;

        display: flex;
    }

}


/* =========================================================
                      SMALL MOBILE
========================================================= */

@media (max-width: 500px) {

    .news-detail-page {
        width: calc(100% - 18px);
    }

    .news-article {
        padding: 14px;
    }

    .article-category {
        font-size: 10px;

        padding: 5px 10px;
    }

    .article-title {
        font-size: 19px;
    }

    .article-main-image {
        margin-top: 18px;
    }

    .article-content {
        font-size: 13px;
    }

    .article-share {
        align-items: flex-start;

        flex-direction: column;
    }

    .article-share button {
        width: 100%;
    }

    .article-tags {
        align-items: flex-start;

        flex-direction: column;
    }

    .article-tags a {
        width: 100%;
    }

    .detail-sidebar-section {
        padding: 16px;
    }

    .detail-sidebar-title h2 {
        font-size: 16px;
    }

    .detail-popular-item {
        grid-template-columns: 48px 1fr;

        font-size: 12px;
    }

    .detail-popular-number {
        width: 45px;
        height: 45px;
    }

    .detail-latest-item {
        grid-template-columns: 80px 1fr;
    }

    .detail-latest-image {
        width: 80px;
        height: 65px;
    }

}


/* =========================================================
   REVEAL ANIMATION
========================================================= */

.reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity .8s var(--ease),
                transform .8s var(--ease);
}

.reveal.is-visible {
    opacity: 1;
    transform: none;
}

.news-column .news-card.reveal:nth-child(2),
.latest-news-grid .latest-card.reveal:nth-child(2),
.bottom-news-grid .bottom-card.reveal:nth-child(2) {
    transition-delay: .08s;
}

.news-column .news-card.reveal:nth-child(3),
.latest-news-grid .latest-card.reveal:nth-child(3),
.bottom-news-grid .bottom-card.reveal:nth-child(3) {
    transition-delay: .16s;
}

.latest-news-grid .latest-card.reveal:nth-child(4),
.bottom-news-grid .bottom-card.reveal:nth-child(4) {
    transition-delay: .24s;
}


/* =========================================================
   TABLET
   1100px
========================================================= */

@media (max-width: 1100px) {

    /* HEADER */

    .main-nav {
        display: none;
    }

    /* HERO */

    .news-grid {
        grid-template-columns: 1fr 1.8fr;
    }

    .news-column:last-child {
        display: none;
    }

    .featured {
        height: 450px;
    }


    /* CONTENT */

    .content-area {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: static;
        display: grid;
        grid-template-columns: repeat(2,1fr);
        gap: 25px;
    }

    .profile-card,
    .sidebar-section {
        margin-bottom: 0;
    }


    /* BOTTOM NEWS */

    .bottom-news-grid {
        grid-template-columns: repeat(2,1fr);
    }

    .bottom-news-grid.carousel-mode .bottom-card {
        min-width: calc(50% - 8px);
        flex-basis: calc(50% - 8px);
    }


    /* GALLERY */

    .gallery-card {
        flex-basis: calc((100% - 32px) / 3);
    }

    .gallery-featured {
        flex-basis: calc((100% - 16px) / 2);
    }


    /* FOOTER */

    .footer-tags,
    .footer-main,
    .footer-bottom {
        width: calc(100% - 30px);
    }

    .footer-main {
        flex-direction: column;
        align-items: stretch;
        gap: 35px;
    }

    .footer-links {
        margin-left: 0;
        justify-content: space-between;
        gap: 30px;
    }

    .footer-bottom {
        height: auto;
        padding: 15px;
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}


/* =========================================================
   MOBILE
   700px
========================================================= */

@media (max-width: 700px) {

    /* HEADER */

    .top-bar {
        display: none;
    }

    .top-header {
        height: 80px;
    }

    .main-header {
        height: 80px;
    }

    .main-header-inner {
        width: calc(100% - 25px);
    }

    .main-nav {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .logo-news {
        font-size: 26px;
    }

    .logo-jam {
        font-size: 23px;
    }

    .header-icons {
        gap: 4px;
    }

    .icon-btn {
        width: 38px;
        height: 38px;
        font-size: 18px;
    }

    .login-btn {
        display: none;
    }


    /* SCROLLED HEADER */

    body.scrolled .main-header {
        height: 70px;
    }

    body.scrolled .logo-news {
        font-size: 25px;
    }

    body.scrolled .logo-jam {
        font-size: 22px;
    }


    /* TICKER */

    .ticker {
        height: 40px;
        padding: 0;
    }

    .ticker-title {
        flex: 0 0 90px;
        font-size: 11px;
    }

    .ticker-inner {
        width: max-content;
    }

    .ticker-item {
        font-size: 11px;
        margin: 0 12px;
    }


    /* HERO */

    .news-section {
        width: calc(100% - 20px);
        margin: 15px auto;
    }

    .news-grid {
        display: flex;
        flex-direction: column;
    }

    .featured {
        height: 350px;
        order: 1;
    }

    .news-column:first-child {
        order: 2;
    }

    .news-column:last-child {
        display: flex;
        order: 3;
    }

    .news-card {
        height: 220px;
    }

    .featured-title {
        font-size: 19px;
    }

    .featured-description {
        font-size: 12px;
    }

    .floating-btn {
        display: none;
    }


    /* CONTENT */

    .content-area {
        width: calc(100% - 20px);
        margin: 30px auto;
        display: flex;
        flex-direction: column;
    }

    .latest-news-grid {
        grid-template-columns: 1fr;
    }

    .latest-card {
        height: 150px;
        min-height: 150px;
        max-height: 150px;
    }

    .latest-card img {
        width: 38%;
        max-width: 140px;
        height: 150px;
    }


    /* SIDEBAR */

    .sidebar {
        display: flex;
        flex-direction: column;
        gap: 25px;
    }

    .news-list-item {
        flex-direction: row;
        align-items: center;
    }

    .news-list-item img {
        width: 110px;
        height: 72px;
    }

    .news-list-content h3 {
        font-size: 14px;
        -webkit-line-clamp: 2;
    }


    /* NEWS TABS */

    .news-tabs {
        margin-bottom: 18px;
        gap: 6px;
    }

    .news-tab {
        padding: 8px 16px;
        font-size: 13px;
    }


    /* GALLERY */

    .media-gallery {
        padding: 18px;
        border-radius: 14px;
    }

    .gallery-card {
        flex-basis: calc((100% - 16px) / 2);
    }

    .gallery-featured {
        flex-basis: 85%;
    }

    .gallery-image {
        height: 170px;
    }

    .gallery-featured .gallery-image {
        height: 260px;
    }


    /* SEARCH */

    .search-box {
        padding: 28px 18px;
    }

    .search-input-wrap {
        flex-direction: column;
    }

    .search-input-wrap button {
        height: 46px;
    }


    /* BOTTOM NEWS */

    .bottom-news {
        width: calc(100% - 20px);
    }

    .bottom-news-grid {
        grid-template-columns: 1fr 1fr;
    }

    .bottom-card img {
        height: 120px;
    }

    .bottom-news-grid.carousel-mode .bottom-card {
        min-width: 82%;
        flex-basis: 82%;
    }


    /* FOOTER */

    .footer-tags {
        padding-top: 22px;
    }

    .tags-list {
        justify-content: flex-start;
    }

    .tags-list a {
        font-size: 12px;
        padding: 7px 10px;
    }

    .footer-links {
        gap: 25px;
    }

    .footer-column a {
        font-size: 13px;
    }

    .logo-yellow,
    .footer-logo .logo-jam {
        font-size: 27px;
    }


    /* BACK TO TOP */

    .back-to-top {
        left: 14px;
        right: auto;
        bottom: 16px;
        min-height: 44px;
        width: 44px;
        padding: 0;
        justify-content: center;
        gap: 0;
        border-radius: 50%;
    }

    .back-to-top__text {
        display: none;
    }

    .back-to-top__icon {
        width: 44px;
        height: 44px;
        background: transparent;
        color: var(--jam-yellow);
        box-shadow: none;
    }

    .slider-dots {
        left: 18px;
        bottom: 18px;
    }
}


/* =========================================================
   SMALL MOBILE
   500px
========================================================= */

@media (max-width: 500px) {

    .gallery-tabs {
        gap: 5px;
    }

    .gallery-tab {
        flex: 1;
        justify-content: center;
        padding: 10px 8px;
        font-size: 11px;
    }

    .media-gallery {
        padding: 14px;
    }

    .media-gallery-header {
        margin-bottom: 20px;
    }

    .media-gallery-header h2 {
        font-size: 19px;
    }

    .gallery-title h3 {
        font-size: 15px;
    }

    .gallery-icon {
        width: 38px;
        height: 38px;
    }

    .gallery-arrow {
        width: 34px;
        height: 34px;
        font-size: 21px;
    }

    .gallery-card {
        flex-basis: 78%;
    }

    .gallery-featured {
        flex-basis: 88%;
    }

    .gallery-image {
        height: 175px;
    }

    .gallery-featured .gallery-image {
        height: 250px;
    }

    .gallery-card-content {
        padding: 16px;
    }

    .gallery-card-content h3 {
        font-size: 14px;
    }

    .gallery-info h3 {
        font-size: 12px;
    }

    .bottom-news-grid {
        grid-template-columns: 1fr;
    }

    .latest-card {
        display: flex;
        height: auto;
        min-height: 0;
        max-height: none;
        flex-direction: column;
    }

    .latest-card img {
        width: 100%;
        max-width: none;
        height: 180px;
    }

    .support-chat {
        width: 100%;
        max-width: 100%;
    }

    .footer-links {
        gap: 20px;
    }
}


/* =========================================================
   DARK MODE
========================================================= */

body.dark-mode {
    --jam-bg: #101016;
    --jam-card: #191922;
    --jam-text: #eee;
    --jam-muted: #aaa;
    --jam-border: #2c2c38;
    background: #101016;
    color: #eee;
}

body.dark-mode .ticker,
body.dark-mode .latest-card,
body.dark-mode .news-list,
body.dark-mode .profile-card,
body.dark-mode .popular-news,
body.dark-mode .category-list,
body.dark-mode .bottom-card,
body.dark-mode .latest-sidebar,
body.dark-mode .media-gallery {
    background: #191922;
    border-color: #2c2c38;
}

body.dark-mode .latest-content h3,
body.dark-mode .news-list-content h3,
body.dark-mode .popular-item p,
body.dark-mode .category-list a,
body.dark-mode .bottom-card h3,
body.dark-mode .sidebar-section > h2,
body.dark-mode .section-title h2,
body.dark-mode .bottom-news-header h2,
body.dark-mode .sidebar-heading h2,
body.dark-mode .media-gallery-header h2,
body.dark-mode .gallery-title h3 {
    color: #f4f4f6;
}

body.dark-mode .latest-content p,
body.dark-mode .news-list-content p,
body.dark-mode .latest-meta,
body.dark-mode .news-list-date,
body.dark-mode .category-list span {
    color: #aaa;
}

body.dark-mode .ticker-item {
    color: #e7e4ff;
}

body.dark-mode .ticker-date {
    background: #292932;
    color: #bbb;
}

body.dark-mode .news-list-item:hover,
body.dark-mode .popular-item:hover,
body.dark-mode .category-list a:hover {
    background: #22222d;
}

body.dark-mode .search-box,
body.dark-mode .mobile-menu-panel {
    background: #191922;
    color: #eee;
}

body.dark-mode .search-input-wrap input {
    background: #111118;
    color: #eee;
    border-color: #353542;
}

body.dark-mode .mobile-nav a,
body.dark-mode .mobile-menu-logo {
    color: #f4f4f6;
    border-color: #30303b;
}


/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: .001ms !important;
    }
}
