﻿:root {
    --nv-950: #0A1930;
    --nv-900: #0F2748;
    --nv-800: #153D6E;
    --nv-700: #1D4C87;
    --nv-600: #2A5FA3;
    --or-500: #F5821F;
    --or-600: #D66E10;
    --teal-500: #12909A;
    --red-500: #E0483F;
    --paper: #F3F6FA;
    --ink: #101B29;
    --ink-soft: #57687B;
    --line: #E2E8F0;
    --white: #FFFFFF;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0
}

body {
    font-family: 'Vazirmatn',sans-serif;
    background: var(--paper);
    color: var(--ink);
    line-height: 1.9;
    -webkit-font-smoothing: antialiased
}

.mono {
    font-family: 'JetBrains Mono','Vazirmatn',monospace;
    direction: ltr;
    unicode-bidi: isolate
}

.wrap {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 28px
}

a {
    color: inherit;
    text-decoration: none
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none
}

img {
    max-width: 100%;
    display: block
}

/* ============ HEADER ============ */
.site-header {
    background: linear-gradient(90deg,var(--nv-900),var(--nv-800) 60%,var(--nv-700));
    position: relative;
    z-index: 20
}

    .site-header .wrap {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 14px 28px;
        gap: 24px
    }

.brand {
    display: flex;
    align-items: center;
    gap: 12px
}

.brand-mark {
    width: 42px;
    height: 42px;
    flex: none
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.35
}

    .brand-text b {
        color: #fff;
        font-size: 16.5px;
        font-weight: 800
    }

    .brand-text span {
        color: #AEC2DC;
        font-size: 11.5px;
        font-weight: 500
    }

.main-nav {
    display: flex;
    align-items: center;
    gap: 22px;
    flex: 1;
    justify-content: center
}

    .main-nav a {
        color: #CBD9EC;
        font-size: 14px;
        font-weight: 500;
        padding: 6px 2px;
        border-bottom: 2px solid transparent;
        transition: .15s
    }

        .main-nav a.active {
            color: #fff;
            border-color: var(--or-500)
        }

        .main-nav a:hover {
            color: #fff
        }

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px
}

.icon-btn {
    width: 38px;
    height: 38px;
    border-radius: 9px;
    background: rgba(255,255,255,.08);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px
}

    .icon-btn:hover {
        background: rgba(255,255,255,.16)
    }

.btn-register {
    background: linear-gradient(135deg,var(--or-500),var(--or-600));
    color: #fff;
    padding: 10px 20px;
    border-radius: 9px;
    font-weight: 700;
    font-size: 14px;
    white-space: nowrap
}

    .btn-register:hover {
        filter: brightness(1.06)
    }

@media(max-width:980px) {
    .main-nav {
        display: none
    }
}

/* ============ HERO ============ */
.hero {
    position: relative;
    overflow: hidden;
    background: radial-gradient(900px 500px at 78% -10%, rgba(245,130,31,.20), transparent 60%), radial-gradient(1000px 600px at 8% 110%, rgba(28,76,135,.55), transparent 60%), linear-gradient(160deg,var(--nv-950) 0%,var(--nv-900) 45%,var(--nv-800) 100%);
    padding: 64px 0 0;
}

.hero-texture {
    position: absolute;
    inset: 0;
    opacity: .5;
    pointer-events: none
}

.hero-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 40px;
    align-items: center;
    padding-bottom: 56px
}

@media(max-width:900px) {
    .hero-inner {
        grid-template-columns: 1fr;
        padding-bottom: 36px
    }

    .hero-panel {
        order: -1
    }
}

/* headline / carousel column */
.hero-main {
    color: #fff;
    min-height: 250px
}

.hs-track {
    position: relative
}

.hs-slide {
    display: none;
    animation: hsFade .5s ease
}

    .hs-slide.is-active {
        display: block
    }

@keyframes hsFade {
    from {
        opacity: 0;
        transform: translateY(6px)
    }

    to {
        opacity: 1;
        transform: translateY(0)
    }
}

.hs-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(245,130,31,.16);
    color: var(--or-500);
    border: 1px solid rgba(245,130,31,.35);
    font-size: 12.5px;
    font-weight: 700;
    padding: 5px 14px;
    border-radius: 999px;
    margin-bottom: 18px
}

.hs-slide h1 {
    font-size: clamp(26px,4vw,40px);
    font-weight: 800;
    line-height: 1.55;
    max-width: 16ch
}

    .hs-slide h1 .accent {
        color: var(--or-500)
    }

.hs-meta {
    margin-top: 14px;
    font-size: 15px;
    color: #C3D2E5;
    display: flex;
    gap: 16px;
    flex-wrap: wrap
}

.hs-actions {
    margin-top: 26px;
    display: flex;
    gap: 14px;
    flex-wrap: wrap
}

.btn-primary {
    background: linear-gradient(135deg,var(--or-500),var(--or-600));
    color: #fff;
    padding: 13px 28px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 15px;
    display: inline-flex;
    align-items: center;
    gap: 8px
}

    .btn-primary:hover {
        filter: brightness(1.06);
        box-shadow: 0 10px 24px rgba(245,130,31,.3)
    }

.btn-ghost {
    border: 1.5px solid rgba(255,255,255,.3);
    color: #fff;
    padding: 13px 26px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 15px
}

    .btn-ghost:hover {
        border-color: #fff;
        background: rgba(255,255,255,.06)
    }

.hs-dots {
    display: flex;
    gap: 8px;
    margin-top: 30px
}

    .hs-dots button {
        width: 26px;
        height: 4px;
        border-radius: 3px;
        background: rgba(255,255,255,.25);
        padding: 0;
        transition: .2s
    }

        .hs-dots button.is-active {
            background: var(--or-500);
            width: 38px
        }

.hero-stats {
    display: flex;
    gap: 0;
    margin-top: 38px;
    padding-top: 22px;
    border-top: 1px solid rgba(255,255,255,.14);
    flex-wrap: wrap
}

.hstat {
    padding-inline-end: 26px;
    margin-inline-end: 26px;
    border-inline-end: 1px solid rgba(255,255,255,.14)
}

    .hstat:last-child {
        border-inline-end: none
    }

    .hstat b {
        display: block;
        font-size: 26px;
        font-weight: 800;
        color: #fff
    }

    .hstat span {
        font-size: 12.5px;
        color: #9FB3CB
    }

/* glass account panel */
.hero-panel {
    background: linear-gradient(160deg,rgba(20,40,70,.72),rgba(10,25,48,.85));
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 18px;
    padding: 22px;
    backdrop-filter: blur(14px);
    box-shadow: 0 24px 48px rgba(5,15,30,.35);
    color: #fff
}

.hp-hello {
    font-size: 13px;
    color: #AFC0D6;
    margin-bottom: 4px
}

.hp-user {
    font-size: 16px;
    font-weight: 700
}

.hp-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(245,130,31,.14);
    border: 1px solid rgba(245,130,31,.3);
    color: var(--or-500);
    font-size: 12.5px;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 999px;
    margin-top: 12px
}

    .hp-badge i {
        width: 6px;
        height: 6px;
        border-radius: 50%;
        background: var(--or-500);
        display: inline-block
    }

.hp-hint {
    font-size: 13px;
    color: #C3D2E5;
    margin-top: 14px;
    line-height: 1.8
}

.hp-btnrow {
    display: flex;
    gap: 10px;
    margin-top: 16px
}

    .hp-btnrow a {
        flex: 1;
        text-align: center;
        padding: 11px 0;
        border-radius: 9px;
        font-weight: 700;
        font-size: 13.5px
    }

.hp-btn-solid {
    background: #fff;
    color: var(--nv-800)
}

    .hp-btn-solid:hover {
        background: #EAF1FB
    }

.hp-btn-outline {
    border: 1.5px solid rgba(255,255,255,.35);
    color: #fff
}

    .hp-btn-outline:hover {
        border-color: #fff
    }

.hp-divider {
    height: 1px;
    background: rgba(255,255,255,.12);
    margin: 18px 0
}

.hp-postlink {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13.5px;
    color: #fff;
    font-weight: 600
}

    .hp-postlink span.arrow {
        color: var(--or-500);
        font-size: 16px
    }

/* ============ BREADCRUMB ============ */
.breadcrumb {
    background: #E7EEF7;
    border-bottom: 1px solid var(--line)
}

    .breadcrumb .wrap {
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 12px 28px;
        font-size: 13px;
        color: var(--ink-soft)
    }

    .breadcrumb a:hover {
        color: var(--nv-800)
    }

    .breadcrumb .sep {
        color: #AAB8C9
    }

    .breadcrumb .current {
        color: var(--nv-800);
        font-weight: 700
    }

/* ============ FILTER + GRID ============ */
.page-body {
    padding: 38px 0 64px
}

.filterbar {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 20px 22px;
    margin-bottom: 34px;
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
    box-shadow: 0 10px 26px rgba(15,39,72,.06)
}

    .filterbar input, .filterbar select {
        border: 1.5px solid var(--line);
        border-radius: 10px;
        padding: 12px 14px;
        font-family: inherit;
        font-size: 14px;
        color: var(--ink);
        background: var(--paper)
    }

    .filterbar input {
        flex: 2;
        min-width: 220px
    }

    .filterbar select {
        flex: 1;
        min-width: 150px
    }

    .filterbar button {
        background: var(--nv-800);
        color: #fff;
        padding: 12px 26px;
        border-radius: 10px;
        font-weight: 700;
        font-size: 14px
    }

        .filterbar button:hover {
            background: var(--nv-700)
        }

.filter-count {
    width: 100%;
    font-size: 13px;
    color: var(--ink-soft)
}

    .filter-count b {
        color: var(--nv-800)
    }

.grid-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 10px
}

    .grid-head h3 {
        font-size: 19px;
        font-weight: 800
    }

.sort {
    font-size: 13.5px;
    color: var(--ink-soft);
    display: flex;
    align-items: center;
    gap: 8px
}

    .sort select {
        border: 1px solid var(--line);
        border-radius: 8px;
        padding: 8px 12px;
        font-family: inherit;
        background: var(--white)
    }

.ad-grid {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 22px
}

@media(max-width:1040px) {
    .ad-grid {
        grid-template-columns: repeat(3,1fr)
    }
}

@media(max-width:760px) {
    .ad-grid {
        grid-template-columns: repeat(2,1fr)
    }
}

@media(max-width:480px) {
    .ad-grid {
        grid-template-columns: 1fr
    }
}

.ad-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow .2s,transform .2s
}

    .ad-card:hover {
        box-shadow: 0 20px 36px rgba(15,39,72,.12);
        transform: translateY(-3px)
    }

.ad-media {
    height: 150px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 42px
}

    .ad-media .badge {
        position: absolute;
        top: 10px;
        right: 10px;
        background: var(--or-500);
        color: #fff;
        font-size: 11px;
        font-weight: 700;
        padding: 3px 11px;
        border-radius: 999px
    }

.ad-body {
    padding: 17px
}

.ad-cat {
    font-size: 12px;
    color: var(--teal-500);
    font-weight: 700
}

.ad-body h4 {
    font-size: 15px;
    font-weight: 700;
    margin-top: 6px;
    min-height: 44px
}

.ad-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
    font-size: 12.5px;
    color: var(--ink-soft)
}

.ad-cta {
    display: block;
    text-align: center;
    margin: 0 17px 17px;
    padding: 10px;
    border-radius: 9px;
    border: 1.5px solid var(--nv-800);
    color: var(--nv-800);
    font-weight: 700;
    font-size: 13.5px
}

    .ad-cta:hover {
        background: var(--nv-800);
        color: #fff
    }

.pager {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding-top: 36px
}

    .pager a {
        width: 38px;
        height: 38px;
        border-radius: 9px;
        border: 1px solid var(--line);
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 13.5px;
        color: var(--ink-soft);
        background: var(--white)
    }

        .pager a.is-active {
            background: var(--nv-800);
            border-color: var(--nv-800);
            color: #fff
        }

footer {
    background: var(--nv-950);
    color: #8FA3BC;
    padding: 32px 0;
    font-size: 13.5px
}

    footer .wrap {
        display: flex;
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 12px
    }
