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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Vazirmatn', sans-serif;
    background: #050505;
    color: #fff;
    overflow-x: hidden;
    line-height: 1.9;
    opacity: 0;
    transform: translateY(10px);
    animation: pageIn 0.8s ease forwards;
}

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

a {
    text-decoration: none;
    color: inherit;
}

img {
    display: block;
    width: 100%;
}

ul {
    list-style: none;
}

.container {
    width: min(1400px, 92%);
    margin: auto;
    padding-bottom: 16px;
}


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

:root {
    --gold: #b38a4c;
    --gold-light: #d7b47b;
    --dark: #050505;
    --dark-2: #101010;
    --dark-3: #161616;
    --text: #f8f8f8;
    --muted: #999;
}

/* ==========================
   LOADER
========================== */

.loading-screen {
    position: fixed;
    inset: 0;
    background: #000;
    z-index: 9999;
}

.loader {
    width: 70px;
    height: 70px;
    border: 4px solid rgba(255, 255, 255, .1);
    border-top-color: var(--gold);
    border-radius: 50%;
    animation: spin 1s linear infinite;

    position: absolute;
    top: 50%;
    left: 50%;

    transform: translate(-50%, -50%);
}

@keyframes spin {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* ==========================
   PARTICLES
========================== */

.particles {
    position: fixed;
    inset: 0;
    /* pointer-events: none; */
    z-index: 1;

    background-image:
        radial-gradient(circle at 10% 20%, rgba(179, 138, 76, .15) 1px, transparent 1px),
        radial-gradient(circle at 70% 60%, rgba(179, 138, 76, .12) 1px, transparent 1px),
        radial-gradient(circle at 40% 80%, rgba(179, 138, 76, .1) 1px, transparent 1px);

    background-size: 250px 250px;
}

/* ==========================
   HERO
========================== */
.hero {

    position: relative;

    width: 100%;
    height: 100vh;

    overflow: hidden;

    display: flex;
    justify-content: flex-start;
    align-items: center;

    direction: rtl;

}

.hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: left center;
    z-index: 1;
    justify-self: left;
}

.overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    margin-right: 10%;
    text-align: center;
}

.hero-content img {
    display: block;
    opacity: .9;
}

.title {
    width: 100%;
    max-width: 560px;
    display: block;
    margin-bottom: 35px;
}

.hero-content p {
    color: #fff;
    font-size: 20px;
    line-height: 2.2;
    margin-bottom: 40px;
}

.date {
    color: #b38a4c;
    font-size: 18px;
}

/* ==========================
   CONDOLENCE BAR
========================== */
.condolence-bar {
    background: var(--dark-2);
    border-top: 1px solid rgba(179, 138, 76, .2);
    border-bottom: 1px solid rgba(179, 138, 76, .2);

    padding: 24px;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
}

.condolence-bar .container {
    margin: 0;
    padding: 0;
    width: auto;
    text-align: center;
}

.condolence-bar p:first-of-type {
    color: var(--text);
}

.condolence-bar p {
    color: var(--gold-light);
    font-size: 1.25rem;
}

.condolence-bar img {
    width: 100px;
    flex-shrink: 0;
    transform: scaleX(-1);
}

/* عکس سمت راست برعکس شود */
.condolence-bar img:last-child {
    transform: scaleX(1);
}

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

.section-title {

    text-align: center;

    margin-bottom: 60px;
}

.section-title h2 {

    font-size: 2.5rem;

    margin-bottom: 15px;
}

.section-title span {

    width: 90px;
    height: 3px;

    background: var(--gold);

    display: inline-block;
}

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

.stats-section {
    padding: 24px;
    background-color: var(--dark-2);
    margin-top: 24px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.stat-card {

    background: var(--dark-2);

    border: 1px solid rgba(179, 138, 76, .15);

    height: 200px;
    text-align: center;

    transition: .4s;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;

    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);

    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-card:hover {

    transform: translateY(-10px);

    border-color: var(--gold);
}

.stat-card h3 {

    font-size: 1.5rem;
    color: var(--gold);
}

.stat-card span {
    margin-top: 8px;
    color: #ccc;
}

/* ==========================
   NEWS SECTION
========================== */

.news-section {
    padding: 24px;
    background: var(--dark-2);
}

.news-grid {
    display: flex;
    gap: 35px;

    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;

    padding-bottom: 10px;
}

.load-more-btn {
    display: none;
}

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

.news-grid {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.news-card {
    background: #101010;
    border: 1px solid rgba(179, 138, 76, .12);
    overflow: hidden;
    transition: .45s;
    position: relative;
    display: flex;
    flex-direction: column;
    flex: 0 0 calc(25% - 26px);
    /* 4 تا در یک ردیف */
    min-width: 280px;
}

.news-card:hover {
    transform: translateY(-10px);
    border-color: var(--gold);
    box-shadow: 0 25px 50px rgba(0, 0, 0, .5);
}

.news-card>img {
    height: 200px;
    overflow: hidden;
}

.news-card>div {
    padding: 15px;
}

.news-card button {
    border: none;
    color: var(--gold);
    background: transparent;
    padding: 6px 12px;
    font-size: 12px;
    cursor: pointer;
    font-family: 'Vazirmatn', sans-serif;
    float: left;
}

.news-time {
    color: var(--gold);
    font-size: .85rem;
}

.news-image img {
    height: 100%;
    object-fit: cover;
    transition: .7s;
}

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

.news-date {
    color: var(--gold);
    font-size: .85rem;
}

.news-section h3 {
    margin: 15px 0;
}

.row {
    display: flex;
    flex-direction: row;
    justify-content: end;
}

.img-arrow-back {
    width: 12px;
    height: 10px;
    align-self: center;
}

/* ==========================
   TIMELINE
========================== */
.event-stepper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;

}

.content-event-stepper {
    padding: 20px;
    background: var(--dark-2);
}

.content-event-stepper h3 {
    margin: 15px;
}

.event-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 120px;
    color: #fff;

    opacity: 0;
    transform: translateY(50px);
    transition: opacity .8s ease, transform .8s ease;
}

.event-step.animate {
    opacity: 1;
    transform: translateY(0);
}

.event-step:nth-child(1) {
    transition-delay: .1s;
}

.event-step:nth-child(3) {
    transition-delay: .3s;
}

.event-step:nth-child(5) {
    transition-delay: .5s;
}

.event-step:nth-child(7) {
    transition-delay: .7s;
}

.circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--gold);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
}

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

.time {
    margin-top: 8px;
    font-size: 12px;
    color: var(--gold);
}

.text {
    margin-top: 4px;
    font-size: 13px;
    color: #ccc;
    text-align: center;
}

.line {
    width: 90%;
    height: 2px;
    background: linear-gradient(to right, var(--gold), transparent);
}

/* ==========================
   MEDIA SECTION
========================== */

.media-section {
    padding: 24px;
    background: var(--dark-2);
}

.media-section h3 {
    margin: 15px 0;
}

.media-grid {
    display: flex;
    gap: 25px;

    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    padding-bottom: 10px;
}

.media-grid::-webkit-scrollbar {
    display: none;
}

.media-grid {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.media-card {
    flex: 0 0 calc(25% - 18px);
    min-width: 280px;

    position: relative;
}

.load-more-media {
    display: none;
}

.media-card video {
    border: 1px solid rgba(179, 138, 76, .2);
    object-fit: cover;
    transition: .8s;
    width: 100%;
}

.media-card span {
    color: var(--text);
    display: flex;
    justify-self: center;
}

.media-card:hover img {
    transform: scale(1.12);
}

.media-card:hover::after {
    opacity: 1;
}

/* ==========================
   QUOTE
========================== */

.quote-section {
    background-color: var(--dark-2);
    border: 1px solid rgba(179, 138, 76, .2);
}

.quote-content {
    display: flex;
    align-items: center;
    gap: 30px;
}

.quote-image {
    flex: 1;
}

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

.quote-text {
    flex: 4;
    margin-right: 32px;
    margin-top: 20px;
}

.quote-text img:nth-of-type(1) {
    width: 32px;
    margin-top: 15px;
    margin-bottom: 0;
}

.quote-text img:nth-of-type(2) {
    width: 32px;
    margin-top: 10px;
    margin-bottom: 28px;
}

.quote-text span {
    font-size: 14px;
    color: var(--gold-light);
    margin-bottom: 10px;
    margin-right: 18%;
}


.quote-section blockquote {
    margin: auto;
    font-size: 20px;
    color: var(--gold-light);
    line-height: 2;
    position: relative;
    z-index: 2;
    margin-right: 32px;
}

/* ==========================
   MEDIA LOGOS
========================== */

.media-logos {
    padding: 120px 0;
}

.logos-slider {
    display: flex;
    gap: 60px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.logos-slider img {
    width: 150px;
    opacity: .6;
    filter: grayscale(100%);
    transition: .4s;
}

.logos-slider img:hover {
    opacity: 1;
    filter: grayscale(0);
}

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

footer {
    padding: 80px 0;
    background: #111;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.footer-img {
    flex: 0 0 180px;
    width: 180px;
}

.footer-text {
    flex: 1;
    text-align: center;
}

footer h3 {
    margin-bottom: 15px;
}

footer p {
    color: #888;
}

.footer-btn {
    background: transparent;
    border: 1px solid #b38a4c;
    color: #b38a4c;
    padding: 10px 18px;
    cursor: pointer;
    transition: 0.3s;
    font-size: 18px;
    font-family: 'Vazirmatn', sans-serif;
}

.footer-btn:hover {
    background: #b38a4c;
    color: #111;
}

/* ==========================
   SCROLL ANIMATION
========================== */

.reveal {
    opacity: 0;
    transform: translateY(70px);
    transition: all 1s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.fade-left {
    opacity: 0;
    transform: translateX(-100px);
    transition: .9s;
}

.fade-left.active {
    opacity: 1;
    transform: translateX(0);
}

.fade-right {
    opacity: 0;
    transform: translateX(100px);
    transition: .9s;
}

.fade-right.active {
    opacity: 1;
    transform: translateX(0);
}

/* ==========================
   GOLD GLOW
========================== */

.gold-glow {
    position: relative;
}

.gold-glow::before {
    content: "";
    position: absolute;
    inset: -1px;
    background:
        linear-gradient(45deg,
            transparent,
            rgba(179, 138, 76, .4),
            transparent);

    opacity: 0;
    transition: .4s;
}

.gold-glow:hover::before {
    opacity: 1;
}

/* ==========================
   CUSTOM SCROLLBAR
========================== */

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #0a0a0a;
}

::-webkit-scrollbar-thumb {
    background: var(--gold);
    border-radius: 20px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gold-light);
}


/* FLOATING PARTICLES */

.particle {
    position: absolute;
    bottom: -20px;
    background: rgba(179, 138, 76, .5);
    border-radius: 50%;
    animation: floatParticle linear infinite;
}

@keyframes floatParticle {

    from {
        transform: translateY(0);
    }

    to {
        transform: translateY(-120vh);
    }

}

/* animation */

.news-card,
.stat-card,
.media-card {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.news-card.animate,
.stat-card.animate,
.media-card.animate {
    opacity: 1;
    transform: translateY(0);
}


/* ============ responsive ============== */


@media(max-width:991px) {

    .timeline::before {
        right: 20px;
    }

    .timeline-item {
        width: calc(100% - 60px);
        margin-right: 60px !important;
        margin-left: 0 !important;
    }

    .timeline-item::before {
        right: -49px !important;
        left: auto !important;
    }

    .hero h1 {
        font-size: 3rem;
    }

    .section-title h2 {
        font-size: 2rem;
    }
}

@media(max-width:768px) {

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 300px;
        text-align: center;
    }

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

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

    .quote-section blockquote {
        font-size: 1.5rem;
    }

    .condolence-bar {
        padding: 14px;
    }

    .condolence-bar p {
        font-size: 1.1rem;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .stat-card {
        height: 160px;
    }
}

@media(max-width:480px) {

    .hero {
        min-height: 90vh;
    }

    .hero-bg {
        object-position: 68% center;
    }

    .hero-content {
        margin-right: 0;
        justify-items: center;
    }


    .hero h1 {
        font-size: 2.2rem;
    }

    .hero p {
        font-size: .95rem;
    }

    .section-title h2 {
        font-size: 1.7rem;
    }

    .condolence-bar {
        padding: 12px;
        gap: 10px;
    }

    .condolence-bar p {
        font-size: 10px;
    }

    .condolence-bar img {
        width: 50px;
    }

    .condolence-bar p:first-of-type {
        font-size: 12px;
    }

    .stats-grid {
        gap: 12px;
    }

    .stat-icon {
        width: 50px;
        height: 50px;
    }

    .stat-card {
        height: 140px;
    }

    .stat-card h3 {
        font-size: 12px;
    }

    .stat-card span {
        font-size: 12px;
    }

    .footer-inner {
        flex-direction: column-reverse;
        text-align: center;
        font-size: 14px;
    }

    .footer-inner button {
        font-size: 12px;
    }

    .quote-section {
        padding: 18px 0px;
    }

    .quote-image img {
        width: 170px;
        border: 1px solid rgba(179, 138, 76, .2);
    }

    .quote-text h3 {
        font-size: 16px;
    }

    .quote-section blockquote {
        font-size: 13px;
        line-height: 2.1;
    }

    .quote-text span {
        font-size: 12px;
    }

    .quote-text img:nth-of-type(1),
    .quote-text img:nth-of-type(2) {
        width: 20px;
    }

    .quote-content {
        flex-direction: column;
    }

    .event-stepper {
        gap: 5px;
    }

    .event-step {
        min-width: 56px;
    }

    .event-step .text {
        font-size: 11px;
    }

    .event-step .time {
        font-size: 10px;
    }

    .event-stepper .circle {
        width: 40px;
        height: 40px;
    }

    .news-section,
    .stats-section,
    .media-section,
    .content-event-stepper {
        padding: 12px;
    }

    h3 {
        font-size: 16px;
        margin: 0 !important;
        margin-bottom: 12px !important;
    }

    .news-card {
        font-size: 14px;
        display: none;
    }

    .news-card:nth-child(-n+4) {
        display: flex;
    }

    .media-card {
        padding-top: 24px;
    }

    .media-card span {
        font-size: 12px;
    }

    .media-card:not(:first-child) {
        border-top: 1px solid rgba(179, 138, 76, .2);
    }

    .quote-text {
        margin: 16px;
    }

    .news-grid {
        overflow: visible;
        flex-wrap: wrap;
    }

    .news-card {
        flex: 0 0 100%;
        display: none;
    }

    .news-card:nth-child(-n+4) {
        display: flex;
    }

    .media-grid {
        flex-wrap: wrap;
        overflow: visible;
    }

    .media-card {
        flex: 0 0 100%;
        display: none;
    }

    .media-card:nth-child(-n+4) {
        display: block;
    }

    .load-more-btn {
        display: block;
        margin: 20px auto;
        background: var(--gold);
        border: none;
        padding: 10px 20px;
        cursor: pointer;
        font-family: inherit;
    }

    .load-more-media {
        display: block;
        margin: 20px auto;
        background: var(--gold);
        color: #000;
        border: none;
        padding: 10px 20px;
        cursor: pointer;
        font-family: inherit;
    }


    .quote-text img:nth-of-type(1) {
        width: 20px;
        margin-top: 15px;
    }

    .quote-text img:nth-of-type(2) {
        width: 20px;
        margin-top: 0;
        margin-bottom: 0;
    }

    .quote-text span {
        margin-bottom: 10px;
        margin-right: 18%;
    }

    .quote-section blockquote {
        margin-right: 16px;
    }

    footer {
        padding: 24px 0;
    }

    .footer-img {
        flex: 1;
    }
}