/* =========================================================
   ROOT VARIABLES
========================================================= */

:root {

    --primary: #155eef;
    --primary-dark: #1049bd;

    --navy: #0b1b36;

    --text: #172033;

    --muted: #687386;

    --light-text: #919aaa;

    --border: #e3e8f0;

    --background: #f6f8fc;

    --white: #ffffff;

    --green: #16a34a;

    --green-bg: #eaf8ef;

    --amber: #f59e0b;
    --amber-bg: #fff7ed;
    --amber-border: #fed7aa;

    --red: #dc2626;
    --red-bg: #fef2f2;
    --red-border: #fecaca;

}


* {

    margin: 0;

    padding: 0;

    box-sizing: border-box;

}


html {

    scroll-behavior: smooth;

}


body {

    margin: 0;

    font-family:
        "Vazirmatn",
        Tahoma,
        Arial,
        sans-serif;

    font-weight: 400;

    background:
        var(--background);

    color:
        var(--text);

    line-height:
        1.8;

}


a {

    text-decoration: none;

    color: inherit;

}


button,
input {

    font-family: inherit;

}


.container {

    width:
        min(1180px, calc(100% - 40px));

    margin:
        0 auto;

}


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

.hero {

    position:
        relative;

    overflow:
        hidden;

    padding:
        65px 0 48px;

    background:

        radial-gradient(
            circle at 85% 10%,
            rgba(37,99,235,.14),
            transparent 30%
        ),

        linear-gradient(
            135deg,
            #ffffff 0%,
            #eef4ff 100%
        );

    border-bottom:
        1px solid #e5ebf3;

}


.hero-decoration {

    position:
        absolute;

    border-radius:
        50%;

    pointer-events:
        none;

}


.hero-decoration-one {

    width:
        400px;

    height:
        400px;

    left:
        -230px;

    bottom:
        -280px;

    background:
        rgba(99,102,241,.06);

}


.hero-decoration-two {

    width:
        250px;

    height:
        250px;

    right:
        -140px;

    top:
        100px;

    border:
        1px solid rgba(37,99,235,.08);

}


.hero-content {

    position:
        relative;

    z-index:
        2;

    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    gap:
        28px;

    text-align:
        center;

}


.hero-logo {

    width:
        92px;

    height:
        92px;

    flex:
        0 0 92px;

    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    padding:
        9px;

    background:
        #ffffff;

    border:
        1px solid #dfe6ef;

    border-radius:
        24px;

    box-shadow:
        0 15px 40px
        rgba(15,23,42,.09);

}


.hero-logo img {

    display:
        block;

    width:
        100%;

    height:
        100%;

    object-fit:
        contain;

}


.fallback-logo {

    width:
        64px;

    height:
        64px;

    align-items:
        center;

    justify-content:
        center;

    border-radius:
        18px;

    background:
        linear-gradient(
            135deg,
            #155eef,
            #673ab7
        );

    color:
        white;

    font-size:
        18px;

    font-weight:
        800;

}


.eyebrow {

    display:
        inline-flex;

    align-items:
        center;

    gap:
        8px;

    padding:
        5px 13px;

    margin-bottom:
        12px;

    border-radius:
        30px;

    background:
        #eaf2ff;

    color:
        var(--primary);

    font-size:
        10px;

    font-weight:
        700;

}


.eyebrow-dot {

    width:
        7px;

    height:
        7px;

    border-radius:
        50%;

    background:
        #22c55e;

    box-shadow:
        0 0 0 4px
        rgba(34,197,94,.10);

}


.hero h2 {

    max-width:
        850px;

    margin:
        0;

    color:
        var(--navy);

    font-size:
        clamp(30px, 4vw, 47px);

    line-height:
        1.5;

    font-weight:
        800;

    letter-spacing:
        -.8px;

}


.hero h2 span {

    color:
        var(--primary);

}


.hero-text p {

    max-width:
        700px;

    margin:
        10px auto 0;

    color:
        var(--muted);

    font-size:
        13px;

}


/* =========================================================
   HERO STATS
========================================================= */

.hero-stats {

    position:
        relative;

    z-index:
        2;

    display:
        flex;

    justify-content:
        center;

    width:
        min(700px, 100%);

    margin:
        35px auto 0;

    background:
        rgba(255,255,255,.82);

    border:
        1px solid #e1e7ef;

    border-radius:
        17px;

    overflow:
        hidden;

    box-shadow:
        0 12px 35px
        rgba(15,23,42,.05);

    backdrop-filter:
        blur(10px);

}


.hero-stat {

    flex:
        1;

    padding:
        13px 20px;

    text-align:
        center;

    border-left:
        1px solid #edf1f5;

}


.hero-stat:last-child {

    border-left:
        0;

}


.hero-stat strong {

    display:
        block;

    color:
        var(--navy);

    font-size:
        18px;

    line-height:
        1.5;

}


.hero-stat span {

    display:
        block;

    color:
        #8993a3;

    font-size:
        9px;

}


/* =========================================================
   CONFERENCES SECTION
========================================================= */

.conferences {

    padding:
        70px 0 90px;

}


.section-title {

    text-align:
        center;

    margin-bottom:
        40px;

}


.section-label {

    color:
        var(--primary);

    font-size:
        10px;

    letter-spacing:
        2px;

    font-weight:
        800;

}


.section-title h2 {

    margin:
        5px 0;

    color:
        var(--navy);

    font-size:
        30px;

    line-height:
        1.6;

}


.section-title p {

    color:
        var(--muted);

    font-size:
        12px;

}


/* =========================================================
   GRID — 3 ستون
========================================================= */

.conference-grid {

    display:
        grid;

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

    gap:
        22px;

    align-items:
        start;

}


/* =========================================================
   CARD
========================================================= */

.conference-card {

    display:
        flex;

    flex-direction:
        column;

    overflow:
        hidden;

    background:
        var(--white);

    border:
        1px solid var(--border);

    border-radius:
        22px;

    box-shadow:
        0 8px 30px
        rgba(15,23,42,.045);

    transition:
        transform .3s ease,
        box-shadow .3s ease,
        border-color .3s ease;

}


.conference-card:hover {

    transform:
        translateY(-5px);

    border-color:
        #c8d8f2;

    box-shadow:
        0 22px 50px
        rgba(15,23,42,.10);

}


/* =========================================================
   POSTER
========================================================= */

.poster {

    position:
        relative;

    width:
        100%;

    aspect-ratio:
        210 / 297;

    overflow:
        hidden;

    background:
        #eef2f7;

    border-bottom:
        1px solid #edf0f4;

}


.poster-link {

    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    width:
        100%;

    height:
        100%;

}


.poster img {

    display:
        block;

    width:
        100%;

    height:
        100%;

    object-fit:
        contain;

    object-position:
        center center;

    background:
        #f2f4f7;

    transition:
        transform .45s ease;

}


.poster-link:hover img {

    transform:
        scale(1.015);

}


/* Poster overlay */

.poster-overlay {

    position:
        absolute;

    inset:
        auto 15px 15px 15px;

    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    padding:
        9px;

    background:
        rgba(11,27,54,.88);

    color:
        white;

    border-radius:
        9px;

    font-size:
        10px;

    font-weight:
        600;

    opacity:
        0;

    transform:
        translateY(8px);

    transition:
        .25s;

}


.poster-link:hover
.poster-overlay {

    opacity:
        1;

    transform:
        translateY(0);

}


/* =========================================================
   POSTER PLACEHOLDER
========================================================= */

.poster-placeholder {

    width:
        100%;

    height:
        100%;

    display:
        flex;

    flex-direction:
        column;

    align-items:
        center;

    justify-content:
        center;

    background:

        radial-gradient(
            circle at center top,
            rgba(37,99,235,.12),
            transparent 38%
        ),

        linear-gradient(
            145deg,
            #f6f8fc,
            #e8eef7
        );

    color:
        #667085;

}


.poster-placeholder-logo {

    width:
        72px;

    height:
        72px;

    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    margin-bottom:
        14px;

    border-radius:
        19px;

    background:
        linear-gradient(
            135deg,
            #155eef,
            #673ab7
        );

    color:
        white;

    font-size:
        20px;

    font-weight:
        800;

    box-shadow:
        0 10px 30px
        rgba(37,99,235,.18);

}


.poster-placeholder strong {

    font-size:
        15px;

}


.poster-placeholder span {

    margin-top:
        3px;

    color:
        #7d8798;

    direction:
        ltr;

    font-size:
        10px;

}


.poster-placeholder small {

    margin-top:
        10px;

    color:
        #a1a9b6;

    font-size:
        9px;

}


/* =========================================================
   NUMBER BADGE
========================================================= */

.conference-number {

    position:
        absolute;

    top:
        16px;

    right:
        16px;

    width:
        38px;

    height:
        38px;

    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    border-radius:
        11px;

    background:
        rgba(255,255,255,.94);

    color:
        var(--navy);

    font-size:
        11px;

    font-weight:
        800;

    box-shadow:
        0 5px 20px
        rgba(15,23,42,.12);

}


/* =========================================================
   LIVE BADGE
========================================================= */

.live-badge {

    position:
        absolute;

    top:
        16px;

    left:
        16px;

    display:
        flex;

    align-items:
        center;

    gap:
        7px;

    padding:
        6px 11px;

    border-radius:
        30px;

    background:
        rgba(255,255,255,.94);

    color:
        var(--green);

    font-size:
        9px;

    font-weight:
        700;

    box-shadow:
        0 5px 20px
        rgba(15,23,42,.08);

}


.live-badge i {

    width:
        7px;

    height:
        7px;

    border-radius:
        50%;

    background:
        var(--green);

    box-shadow:
        0 0 0 3px
        rgba(22,163,74,.10);

    animation:
        livePulse 1.6s ease-in-out infinite;

}


@keyframes livePulse {

    0%, 100% {

        opacity:
            1;

        transform:
            scale(1);

    }

    50% {

        opacity:
            .45;

        transform:
            scale(.85);

    }

}


/* =========================================================
   CARD BODY
========================================================= */

.card-body {

    display:
        flex;

    flex-direction:
        column;

    flex:
        1;

    padding:
        20px;

}


.category {

    display:
        inline-block;

    align-self:
        flex-start;

    padding:
        4px 9px;

    border-radius:
        7px;

    background:
        #edf4ff;

    color:
        var(--primary);

    font-size:
        9px;

    font-weight:
        700;

}


.card-body h3 {

    margin:
        10px 0 0;

    color:
        var(--navy);

    font-size:
        15px;

    line-height:
        1.85;

    min-height:
        4.7em;

    display:
        -webkit-box;

    -webkit-line-clamp:
        3;

    -webkit-box-orient:
        vertical;

    overflow:
        hidden;

}


/* =========================================================
   COUNTDOWN
========================================================= */

.countdown {

    margin-top:
        14px;

    padding:
        11px 12px;

    border:
        1px solid var(--amber-border);

    border-radius:
        13px;

    background:
        linear-gradient(
            135deg,
            #fff7ed,
            #ffedd5
        );

    display:
        flex;

    flex-direction:
        column;

    gap:
        9px;

    transition:
        background .3s,
        border-color .3s;

}


.countdown-label {

    display:
        flex;

    align-items:
        center;

    gap:
        6px;

    color:
        var(--amber);

    font-size:
        9px;

    font-weight:
        700;

}


.countdown-timer {

    display:
        grid;

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

    gap:
        5px;

}


.cd-box {

    padding:
        5px 2px;

    background:
        var(--white);

    border-radius:
        8px;

    text-align:
        center;

    display:
        flex;

    flex-direction:
        column;

    gap:
        0;

    box-shadow:
        0 1px 3px
        rgba(0,0,0,.05);

}


.cd-box strong {

    display:
        block;

    color:
        var(--navy);

    font-size:
        13px;

    font-weight:
        800;

    line-height:
        1.3;

    font-variant-numeric:
        tabular-nums;

}


.cd-box span {

    display:
        block;

    color:
        #9aa3b2;

    font-size:
        7px;

}


/* حالت اضطراری - کمتر از 3 روز */

.countdown.is-urgent {

    background:
        linear-gradient(
            135deg,
            #fef2f2,
            #fee2e2
        );

    border-color:
        var(--red-border);

    animation:
        urgentPulse 2s ease-in-out infinite;

}


.countdown.is-urgent .countdown-label {

    color:
        var(--red);

}


.countdown.is-urgent .cd-box strong {

    color:
        var(--red);

}


@keyframes urgentPulse {

    0%, 100% {

        box-shadow:
            0 0 0 0
            rgba(220,38,38,0);

    }

    50% {

        box-shadow:
            0 0 0 5px
            rgba(220,38,38,.10);

    }

}


/* حالت پایان یافته */

.countdown.is-expired {

    background:
        linear-gradient(
            135deg,
            #f1f5f9,
            #e2e8f0
        );

    border-color:
        #cbd5e1;

    animation:
        none;

}


.countdown.is-expired .countdown-label {

    color:
        var(--muted);

}


.cd-expired {

    grid-column:
        1 / -1;

    text-align:
        center;

    color:
        var(--muted);

    font-size:
        9px;

    font-weight:
        700;

    padding:
        5px 0;

}


/* =========================================================
   DETAILS
========================================================= */

.details {

    display:
        flex;

    flex-direction:
        column;

    gap:
        10px;

    margin-top:
        18px;

    padding-top:
        14px;

    border-top:
        1px dashed
        var(--border);

}


.detail {

    display:
        flex;

    align-items:
        flex-start;

    gap:
        9px;

}


.detail-icon {

    flex:
        0 0 30px;

    width:
        30px;

    height:
        30px;

    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    border-radius:
        9px;

    background:
        #f3f6fa;

    color:
        var(--primary);

}


.detail-icon svg {

    width:
        16px;

    height:
        16px;

}


.detail > div:last-child {

    display:
        flex;

    flex-direction:
        column;

    min-width:
        0;

}


.detail span {

    color:
        #9aa3b2;

    font-size:
        8px;

}


.detail strong {

    color:
        #465064;

    font-size:
        10px;

    line-height:
        1.75;

    font-weight:
        600;

    word-break:
        break-word;

}


/* =========================================================
   ISC
========================================================= */

.isc-row {

    display:
        flex;

    align-items:
        center;

    gap:
        9px;

    margin-top:
        15px;

    padding:
        9px;

    border:
        1px solid #e9edf2;

    border-radius:
        11px;

    background:
        #f8fafc;

}


.isc-logo {

    width:
        43px;

    height:
        34px;

    flex:
        0 0 43px;

    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    border-radius:
        8px;

    background:
        var(--navy);

    color:
        white;

    font-size:
        10px;

    font-weight:
        800;

}


.isc-info {

    display:
        flex;

    flex-direction:
        column;

    min-width:
        0;

}


.isc-info span {

    color:
        #8d96a5;

    font-size:
        8px;

}


.isc-info strong {

    color:
        #263348;

    font-size:
        9px;

    font-weight:
        600;

}


.isc-info bdi {

    direction:
        ltr;

    unicode-bidi:
        isolate;

    font-weight:
        700;

    letter-spacing:
        .2px;

}


/* =========================================================
   WEBSITE BUTTON
========================================================= */

.website-button {

    display:
        flex;

    align-items:
        center;

    justify-content:
        space-between;

    height:
        45px;

    margin-top:
        auto;

    padding:
        0 15px;

    border-radius:
        11px;

    background:
        var(--primary);

    color:
        white;

    font-size:
        10px;

    font-weight:
        700;

    transition:
        .25s;

}


.website-button:hover {

    background:
        var(--primary-dark);

    transform:
        translateY(-2px);

    box-shadow:
        0 8px 20px
        rgba(21,94,239,.18);

}


.button-arrow {

    font-size:
        18px;

    line-height:
        1;

    transition:
        transform .25s;

}


.website-button:hover
.button-arrow {

    transform:
        translateX(-4px);

}


/* =========================================================
   DOMAIN
========================================================= */

.domain {

    margin-top:
        7px;

    text-align:
        center;

    direction:
        ltr;

    color:
        #a1a9b6;

    font-size:
        8px;

}


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

footer {

    background:
        var(--navy);

    color:
        white;

}


.footer-inner {

    min-height:
        105px;

    display:
        flex;

    align-items:
        center;

    justify-content:
        space-between;

    gap:
        25px;

}


.footer-inner strong {

    display:
        block;

    font-size:
        11px;

}


.footer-inner span {

    display:
        block;

    margin-top:
        2px;

    color:
        #8e9bb0;

    font-size:
        8px;

}


.copyright {

    color:
        #65738a;

    font-size:
        8px;

}


/* =========================================================
   RESPONSIVE — TABLET (2 ستون)
========================================================= */

@media (max-width: 1100px) {

    .conference-grid {

        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap:
            20px;

    }

}


/* =========================================================
   RESPONSIVE — SMALL TABLET (1 ستون)
========================================================= */

@media (max-width: 760px) {

    .conference-grid {

        grid-template-columns:
            1fr;

        max-width:
            560px;

        margin:
            0 auto;

    }

}


/* =========================================================
   RESPONSIVE — MOBILE
========================================================= */

@media (max-width: 600px) {


    .container {

        width:
            calc(100% - 28px);

    }


    .hero {

        padding:
            45px 0 35px;

    }


    .hero-content {

        flex-direction:
            column;

        gap:
            17px;

    }


    .hero-logo {

        width:
            76px;

        height:
            76px;

        flex-basis:
            76px;

        border-radius:
            20px;

    }


    .hero h2 {

        font-size:
            28px;

        line-height:
            1.6;

    }


    .hero-text p {

        font-size:
            11px;

        line-height:
            2;

    }


    .hero-stats {

        margin-top:
            25px;

    }


    .hero-stat {

        padding:
            11px 7px;

    }


    .hero-stat strong {

        font-size:
            15px;

    }


    .hero-stat span {

        font-size:
            8px;

    }


    .conferences {

        padding:
            50px 0 65px;

    }


    .section-title {

        margin-bottom:
            30px;

    }


    .section-title h2 {

        font-size:
            23px;

    }


    .section-title p {

        font-size:
            10px;

    }


    .conference-grid {

        gap:
            18px;

    }


    .card-body {

        padding:
            17px;

    }


    .card-body h3 {

        font-size:
            14px;

        min-height:
            auto;

    }


    .detail strong {

        font-size:
            10px;

    }


    .cd-box strong {

        font-size:
            12px;

    }


    .footer-inner {

        flex-direction:
            column;

        align-items:
            flex-start;

        justify-content:
            center;

        padding:
            20px 0;

    }

}


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

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

    *,
    *::before,
    *::after {

        animation-duration:
            .01ms !important;

        animation-iteration-count:
            1 !important;

        transition-duration:
            .01ms !important;

    }

}