﻿/*=========================================================
    Articles.css
    Version : 2.0
    Shared Between:
    - Articles.aspx
    - AllArticles.aspx
=========================================================*/


/*=========================================================
    Google Font
=========================================================*/

/*@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@300;400;500;700;800;900&display=swap');*/


/*=========================================================
    CSS Variables
=========================================================*/

/*:root {
    --h1:#fff;
    --primary: #0A2540;
    --primary-dark: #173A5E;
    --gold: #C9A961;
    --bg: #F5F7FA;
    --white: #fff;
    --text: #1F2937;
    --text-light: #6B7280;
    --border: #E5E7EB;
    --radius: 18px;
    --radius-lg: 24px;
    --shadow: 0 12px 35px rgba(10,37,64,.10);
    --shadow-hover: 0 18px 40px rgba(10,37,64,.15);
    --transition: .35s;
}*/


/*=========================================================
    Reset
=========================================================*/

/**,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    direction: rtl;
    font-family: 'Vazirmatn',sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.9;
    overflow-x: hidden;
}

img {
    display: block;
    width: 100%;
}

a {
    text-decoration: none;
    color: inherit;
}

button,
input,
select {
    font-family: inherit;
}

::selection {
    background: var(--gold);
    color: #fff;
}*/

/*=========================================================
    Layout
=========================================================*/

/*.container {
    width: min(1280px,94%);
    margin-inline: auto;
}*/


/*=========================================================
    Common Sections
=========================================================*/

/*section {
    position: relative;
}

    section + section {
        margin-top: 60px;
    }*/


/*=========================================================
    Spacing Utilities
=========================================================*/

/*.mt-20 {
    margin-top: 20px;
}

.mt-30 {
    margin-top: 30px;
}

.mt-40 {
    margin-top: 40px;
}

.mt-50 {
    margin-top: 50px;
}

.mt-60 {
    margin-top: 60px;
}

.mb-20 {
    margin-bottom: 20px;
}

.mb-30 {
    margin-bottom: 30px;
}

.mb-40 {
    margin-bottom: 40px;
}

.mb-50 {
    margin-bottom: 50px;
}

.mb-60 {
    margin-bottom: 60px;
}*/


/*=========================================================
    Hero
=========================================================*/

/*.articles-header {
    position: relative;
    overflow: hidden;
    text-align: center;
    padding: 90px 20px 80px;
    background: linear-gradient(135deg,#071a2d,#173A5E);
    color: #fff;
}*/


    /*=========================================================
    Hero Background
=========================================================*/

    /*.articles-header::before {
        content: "";
        position: absolute;
        width: 420px;
        height: 420px;
        border-radius: 50%;
        background: rgba(255,255,255,.08);
        right: -120px;
        top: -140px;
    }

    .articles-header::after {
        content: "";
        position: absolute;
        width: 300px;
        height: 300px;
        border-radius: 50%;
        background: rgba(255,255,255,.05);
        left: -80px;
        bottom: -120px;
    }*/


    /*=========================================================
    Hero Content
=========================================================*/

    /*.articles-header > * {
        position: relative;
        z-index: 2;
    }

    .articles-header h1 {
        font-size: 42px;
        font-weight: 900;
        margin-bottom: 18px;
        letter-spacing: -.5px;
    }

    .articles-header p {
        max-width: 720px;
        margin-inline: auto;
        font-size: 18px;
        line-height: 2;
        color: #ececec;
    }*/


/*=========================================================
    Category First Space
=========================================================*/

/*.category-box:first-child {
    margin-top: 60px;
}*/

/*=========================================================
    Category Section
=========================================================*/

/*.category-box {
    position: relative;
    background: var(--white);
    border: 1px solid rgba(10,37,64,.08);
    border-radius: var(--radius-lg);
    padding: 32px;
    margin: 35px 0;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform var(--transition), box-shadow var(--transition);
    animation: fadeCategory .7s ease;
}

    .category-box::before {
        content: "";
        position: absolute;
        inset: 0 0 auto 0;
        height: 5px;
        background: linear-gradient(90deg, var(--primary), var(--primary-dark), var(--gold));
    }

    .category-box:hover {
        transform: translateY(-6px);
        box-shadow: var(--shadow-hover);
    }*/


/*=========================================================
    Category Header
=========================================================*/

/*.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding-bottom: 20px;
    margin-bottom: 28px;
    border-bottom: 1px solid var(--border);
}*/


/*=========================================================
    Category Title
=========================================================*/

/*.category-title {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 28px;
    font-weight: 800;
    color: var(--text);
}

    .category-title::before {
        content: "";
        width: 7px;
        height: 34px;
        border-radius: 20px;
        background: linear-gradient( to bottom, var(--primary), #4e8dff);
    }*/


/*=========================================================
    View All Button
=========================================================*/

/*.view-all-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 150px;
    height: 46px;
    padding: 0 22px;
    border-radius: 50px;
    background: #f4f7fb;
    border: 1px solid rgba(10,37,64,.08);
    color: var(--primary);
    font-weight: 700;
    transition: all var(--transition);
}

    .view-all-btn::after {
        content: "←";
        transition: transform .3s;
    }

    .view-all-btn:hover {
        background: var(--primary);
        color: #fff;
        transform: translateY(-2px);
    }

        .view-all-btn:hover::after {
            transform: translateX(-5px);
        }

    .view-all-btn:focus {
        outline: none;
        box-shadow: 0 0 0 4px rgba(10,37,64,.15);
    }*/


/*=========================================================
    Category Animation
=========================================================*/

/*@keyframes fadeCategory {

    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}*/

/*==================================================
    All Articles Grid
==================================================*/

/*.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill,minmax(320px,1fr));
    gap: 30px;
    margin-top: 35px;
    align-items: stretch;
}

    .articles-grid .article-card {
        width: 100%;
        max-width: none;
        min-width: 0;
        flex: none;
        height: 100%;
    }

.article-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 22px;
    overflow: hidden;
    border: 1px solid rgba(10,37,64,.08);
    box-shadow: var(--shadow);
    transition: .35s;
    height: 100%;
}

    .article-card:hover {
        transform: translateY(-8px);
        box-shadow: var(--shadow-hover);
    }

.article-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 22px;
    overflow: hidden;
    border: 1px solid rgba(10,37,64,.08);
    box-shadow: var(--shadow);
    transition: .35s;
    height: 100%;
}

    .article-card:hover {
        transform: translateY(-8px);
        box-shadow: var(--shadow-hover);
    }

    .article-card img {
        width: 100%;
        aspect-ratio: 16/9;
        object-fit: cover;
        transition: .4s;
        background: #eef3f8;
    }

    .article-card:hover img {
        transform: scale(1.05);
    }

    .article-card h3 {
        font-size: 21px;
        font-weight: 800;
        line-height: 1.8;
        color: var(--primary);
        padding: 22px 22px 10px;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .article-card p {
        padding: 0 22px;
        color: #6b7280;
        font-size: 15px;
        line-height: 2;
        flex: 1;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        overflow: hidden;
        margin-bottom: 18px;
    }

.article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 0 22px;
    margin-bottom: 18px;
    color: #6b7280;
    font-size: 13px;
}

.read-more {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 50px;
    margin: 0 22px 22px;
    border-radius: 14px;
    background: linear-gradient(135deg,#0A2540,#173A5E);
    color: #fff;
    font-weight: 700;
    transition: .35s;
}

    .read-more:hover {
        transform: translateY(-3px);
    }

@media(max-width:992px) {

    .articles-grid {
        grid-template-columns: repeat(2,1fr);
    }
}

@media(max-width:768px) {

    .articles-grid {
        grid-template-columns: 1fr;
        gap: 22px;
    }
}*/


/*==================================================
    Articles.aspx
    Horizontal Slider
==================================================*/

/*.category-box .articles-scroll {
    display: flex;
    gap: 3px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 8px 2px 18px;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
}

    .category-box .articles-scroll::-webkit-scrollbar {
        height: 8px;
    }

    .category-box .articles-scroll::-webkit-scrollbar-thumb {
        background: #c8d4e7;
        border-radius: 20px;
    }

    .category-box .articles-scroll::-webkit-scrollbar-track {
        background: #eef3f8;
    }

.category-box .article-card {
    flex: 0 0 320px;
    scroll-snap-align: start;
}*/

/*==================================================
    AllArticles.aspx
==================================================*/

/*.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill,minmax(320px,1fr));
    gap: 30px;
}

    .articles-grid .article-card {
        width: 100%;
        max-width: none;
    }

@media(max-width:992px) {

    .category-box .article-card {
        flex: 0 0 300px;
    }

    .articles-grid {
        grid-template-columns: repeat(2,1fr);
    }
}

@media(max-width:768px) {

    .category-box .article-card {
        flex: 0 0 84%;
    }

    .articles-grid {
        grid-template-columns: 1fr;
    }
}

@media(max-width:480px) {

    .category-box .article-card {
        flex: 0 0 90%;
    }
}*/

/*==================================================
    Premium Card Effects
==================================================*/

/*.article-card {
    position: relative;
    isolation: isolate;
}

    .article-card::after {
        content: "";
        position: absolute;
        inset: 0;
        border-radius: 22px;
        padding: 1px;
        background: linear-gradient(135deg, rgba(13,110,253,.18), transparent 35%, rgba(201,169,97,.18));
        -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
        -webkit-mask-composite: xor;
        mask-composite: exclude;
        opacity: 0;
        transition: .35s;
        pointer-events: none;
    }

    .article-card:hover::after {
        opacity: 1;
    }

.read-more {
    position: relative;
    overflow: hidden;
}

    .read-more::before {
        content: "";
        position: absolute;
        top: 0;
        right: -120%;
        width: 100%;
        height: 100%;
        background: linear-gradient( 90deg, transparent, rgba(255,255,255,.35), transparent);
        transition: .7s;
    }

    .read-more:hover::before {
        right: 120%;
    }

.article-card {
    opacity: 0;
    animation: cardAppear .6s ease forwards;
}

    .article-card:nth-child(2) {
        animation-delay: .08s;
    }

    .article-card:nth-child(3) {
        animation-delay: .16s;
    }

    .article-card:nth-child(4) {
        animation-delay: .24s;
    }

    .article-card:nth-child(5) {
        animation-delay: .32s;
    }

    .article-card:nth-child(6) {
        animation-delay: .40s;
    }

@keyframes cardAppear {

    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

.article-card img {
    filter: saturate(.95) contrast(1.02);
}

.article-card:hover img {
    filter: saturate(1.05);
}

.category-box {
    margin: 45px auto;
}

.category-header {
    margin-bottom: 34px;
}

.article-card h3 {
    min-height: 78px;
}

.article-card p {
    min-height: 86px;
}*/

/*==================================================
    Breadcrumb
==================================================*/

/*.breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin: 40px 0 30px;
    padding: 16px 22px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: 0 6px 20px rgba(10,37,64,.05);
    font-size: 15px;
}

    .breadcrumb a {
        color: var(--primary);
        font-weight: 700;
        transition: .3s;
    }

        .breadcrumb a:hover {
            color: var(--success);
        }

    .breadcrumb span {
        color: var(--text-light);
    }*/

/*==================================================
    Toolbar
==================================================*/

/*.articles-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}*/

/*==================================================
    Search Box
==================================================*/

/*.search-box {
    flex: 1;
    min-width: 280px;
}

    .search-box input {
        width: 100%;
        height: 55px;
        border-radius: 16px;
        border: 1px solid var(--border);
        background: #fff;
        padding: 0 20px;
        font-size: 15px;
        font-family: inherit;
        transition: .3s;
    }

        .search-box input:focus {
            outline: none;
            border-color: #0d6efd;
            box-shadow: 0 0 0 4px rgba(13,110,253,.12);
        }*/

/*==================================================
    Sort
==================================================*/

/*.sort-box {
    min-width: 220px;
}

    .sort-box select {
        width: 100%;
        height: 55px;
        border-radius: 16px;
        border: 1px solid var(--border);
        background: #fff;
        padding: 0 18px;
        font-family: inherit;
        font-size: 15px;
        cursor: pointer;
        transition: .3s;
    }

        .sort-box select:focus {
            outline: none;
            border-color: #0d6efd;
            box-shadow: 0 0 0 4px rgba(13,110,253,.12);
        }*/

/*==================================================
    Articles Count
==================================================*/

/*.articles-count {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 30px;
    padding: 12px 20px;
    border-radius: 40px;
    background: #eef5ff;
    color: var(--primary);
    font-weight: 700;
    font-size: 15px;
}

    .articles-count span {
        color: var(--success);
        font-size: 18px;
        font-weight: 900;
    }*/

/*==================================================
    Category Heading
==================================================*/

/*h1 {
    font-size: 38px;
    font-weight: 900;
    color: var(--h1);
    margin-bottom: 35px;
    line-height: 1.5;
    position: relative;
    display: inline-block;
}


@media (max-width:992px) {

    .articles-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .search-box,
    .sort-box {
        width: 100%;
    }

    h1 {
        font-size: 30px;
    }
}

@media (max-width:768px) {

    .breadcrumb {
        padding: 14px 16px;
        font-size: 14px;
        gap: 6px;
    }

    .search-box input,
    .sort-box select {
        height: 50px;
    }

    .articles-count {
        width: 100%;
        justify-content: center;
        text-align: center;
    }

    h1 {
        font-size: 26px;
        margin-bottom: 25px;
    }


}*/

/*=========================================
    Category Header Mobile Fix
=========================================*/

/*.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.category-title {
    margin: 0;
    font-size: 34px;
    font-weight: 800;
    line-height: 1.5;
    color: #0A2540;
}

.article-count {
    font-size: .8em;
    color: #777;
    font-weight: 600;
}

.view-all-btn {
    flex-shrink: 0;
}

@media (max-width:768px) {

    .category-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 18px;
    }

    .category-title {
        width: 100%;
        font-size: 19px;
        line-height: 1.8;
    }

    .article-count {
        display: block;
        margin-top: 6px;
        font-size: 16px;
    }

    .view-all-btn {
        width: 180px;
        justify-content: center;
    }

    .category-filter {
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        gap: 10px;
        margin-bottom: 25px;
    }

    .filter-btn {
        min-width: 95px;
        padding: 10px 18px;
    }
}*/