/* ===========================
   باشگاه فوتبال پیروز مهر ایرانیان
   iran.css
=========================== */

@font-face {
    font-family: "Vazir";
    src: url('https://cdn.jsdelivr.net/gh/rastikerdar/vazir-font@v30.1.0/dist/Vazir-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Vazir";
    src: url('https://cdn.jsdelivr.net/gh/rastikerdar/vazir-font@v30.1.0/dist/Vazir-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Vazir", "Vazirmatn", "Tahoma", Arial, sans-serif;
    scroll-behavior: smooth;
}

html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

body {
    background:
        radial-gradient(circle at top, #fdf6ff 0%, #f7f1fb 44%, #eef6f1 100%);
    color: #333;
    line-height: 1.8;
    font-size: 16px;

    transition:
        background .3s ease,
        color .3s ease;
}

/* ===========================
   لودر
=========================== */

#loader {
    position: fixed;
    inset: 0;

    background: #6a0dad;

    display: flex;
    align-items: center;
    justify-content: center;

    z-index: 100000;

    transition:
        opacity .6s ease,
        visibility .6s ease;
}

#loader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-content {
    text-align: center;
    color: white;
}

.loader-content img {
    width: 110px;
    height: 110px;

    border-radius: 50%;
    object-fit: cover;

    animation: loaderPulse 1.3s infinite;
}

.loader-content h2 {
    margin: 18px 0;
    color: #ffd700;
}

.loader-spinner {
    width: 42px;
    height: 42px;

    margin: auto;

    border: 4px solid rgba(255, 255, 255, .3);
    border-top-color: #ffd700;

    border-radius: 50%;

    animation: spin .8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes loaderPulse {
    50% {
        transform: scale(1.08);
    }
}

/* ===========================
   هدر
=========================== */

header {
    background: linear-gradient(135deg, #4b0082, #6a0dad, #2d0759);
    color: white;

    padding: 20px;

    text-align: center;

    position: sticky;
    top: 0;

    z-index: 999;

    box-shadow:
        0 8px 24px rgba(54, 0, 99, .24);

    transition:
        background .3s ease,
        box-shadow .3s ease;
}

/* ===========================
   لوگو
=========================== */

.logo img {
    width: 100px;
    height: 100px;

    border-radius: 50%;
    object-fit: cover;

    margin-bottom: 15px;

    transition:
        transform .3s ease;
}

.logo img:hover {
    transform:
        scale(1.05);
}

header h1 {
    margin-bottom: 20px;
    font-size: clamp(28px, 3.2vw, 40px);
    font-weight: 800;
    line-height: 1.2;
    color: #fff;
    text-shadow: 0 2px 6px rgba(0, 0, 0, .28);
}

/* ===========================
   دکمه‌های هدر
=========================== */

.header-actions {
    display: flex;

    align-items: center;
    justify-content: center;

    gap: 15px;

    margin-bottom: 15px;
}

.theme-btn {
    width: 45px;
    height: 45px;

    border: 1px solid rgba(255, 255, 255, .25);

    border-radius: 50%;

    background: rgba(255, 255, 255, .12);

    color: #ffd700;

    cursor: pointer;

    font-size: 20px;

    transition:
        transform .3s ease,
        background .3s ease;
}

.theme-btn:hover {
    transform:
        rotate(20deg) scale(1.08);

    background:
        rgba(255, 255, 255, .2);
}

/* ===========================
   دکمه همبرگری
=========================== */

.menu-btn {
    display: none;

    font-size: 35px;

    color: #ffd700;

    cursor: pointer;

    user-select: none;

    transition:
        transform .3s ease;
}

.menu-btn:hover {
    transform: scale(1.08);
}

/* ===========================
   منو
=========================== */

nav {
    display: flex;

    justify-content: center;

    gap: 25px;

    flex-wrap: wrap;
}

nav a {
    color: #ffd700;

    text-decoration: none;

    font-weight: bold;

    padding: 7px 12px;

    border-radius: 8px;

    transition:
        color .3s ease,
        background .3s ease,
        transform .3s ease;
}

nav a:hover {
    color: white;

    background:
        linear-gradient(135deg, rgba(255, 215, 0, .95), rgba(184, 116, 0, .95));
    color: #35155a;

    transform:
        translateY(-2px);
}

/* ===========================
   هیرو
=========================== */

.hero {
    position: relative;

    height: 500px;

    background:
        url("piruz-merhre-iran.jpg");

    background-size: cover;
    background-position: center;

    display: flex;

    justify-content: center;
    align-items: center;
}

.overlay {
    position: absolute;

    inset: 0;

    background:
        rgba(80, 0, 120, .65);
}

.hero-content {
    position: relative;

    color: white;

    text-align: center;

    z-index: 2;

    padding: 20px;

    max-width: 900px;
}

.hero-content h2 {
    font-size: clamp(34px, 4vw, 50px);
    line-height: 1.25;
    margin-bottom: 20px;
    text-shadow: 0 4px 10px rgba(0, 0, 0, .42);
}

.hero-content p {
    font-size: clamp(19px, 2.2vw, 26px);
}

.hero button {
    margin-top: 30px;

    padding: 14px 35px;

    border: none;

    border-radius: 30px;

    background: linear-gradient(135deg, #ffd700, #d9b528);

    color: #6a0dad;

    font-size: 18px;

    font-weight: bold;

    cursor: pointer;

    transition:
        transform .3s ease,
        box-shadow .3s ease;
}

.hero button:hover {
    transform: scale(1.08);

    box-shadow:
        0 8px 20px rgba(0, 0, 0, .2);
}

/* ===========================
   اسلایدر
=========================== */

.slider {
    position: relative;

    width: 92%;
    max-width: 1200px;

    height: 430px;

    margin: 35px auto;

    overflow: hidden;

    border-radius: 22px;

    box-shadow:
        0 12px 35px rgba(0, 0, 0, .18);

    background: #222;

    touch-action: pan-y;
}

.slides,
.slide {
    width: 100%;
    height: 100%;
}

.slide {
    display: none;

    position: relative;
}

.slide.active {
    display: block;

    animation:
        slideFade .7s ease;
}

.slide img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    display: block;

    user-select: none;
}

.slide::after {
    content: "";

    position: absolute;

    inset: 0;

    background:
        linear-gradient(transparent 25%,
            rgba(0, 0, 0, .72));

    pointer-events: none;
}

.slide-caption {
    position: absolute;

    z-index: 2;

    bottom: 55px;
    right: 45px;

    color: white;

    max-width: 70%;
}

.slide-caption h2 {
    font-size: 32px;

    color: #ffd700;
}

.slide-caption p {
    font-size: 18px;
}

.slider-btn {
    position: absolute;

    z-index: 3;

    top: 50%;

    transform:
        translateY(-50%);

    width: 48px;
    height: 48px;

    border: none;

    border-radius: 50%;

    background:
        rgba(106, 13, 173, .85);

    color: white;

    cursor: pointer;

    font-size: 22px;

    transition:
        transform .3s ease,
        background .3s ease;
}

.slider-btn:hover {
    transform:
        translateY(-50%) scale(1.1);

    background:
        rgba(75, 0, 130, .95);
}

.slider-btn.prev {
    left: 18px;
}

.slider-btn.next {
    right: 18px;
}

.slider-dots {
    position: absolute;

    z-index: 3;

    bottom: 18px;

    left: 50%;

    transform:
        translateX(-50%);

    display: flex;

    gap: 8px;
}

.slider-dots button {
    width: 11px;
    height: 11px;

    border: 0;

    border-radius: 50%;

    background:
        rgba(255, 255, 255, .55);

    cursor: pointer;

    padding: 0;

    transition:
        .3s;
}

.slider-dots button:hover {
    background: white;
}

.slider-dots button.active {
    background: #ffd700;

    transform:
        scale(1.2);
}

@keyframes slideFade {
    from {
        opacity: .25;
        transform: scale(1.02);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ===========================
   بخش‌های اصلی
=========================== */

.about,
.news,
.teams,
.honors,
.gallery,
.contact {
    width: 85%;

    margin: 50px auto;

    background: linear-gradient(180deg, #fff, #fbfaff);

    padding: 35px;

    border-radius: 24px;

    box-shadow:
        0 8px 26px rgba(64, 10, 97, .08);

    transition:
        background .3s ease,
        color .3s ease,
        box-shadow .3s ease;
}

.about h2,
.news h2,
.teams h2,
.honors h2,
.gallery h2,
.contact h2 {
    color: #6a0dad;

    margin-bottom: 20px;

    text-align: center;
    font-size: clamp(28px, 2.8vw, 38px);
    line-height: 1.25;

    transition:
        color .3s ease;
}

/* ===========================
   کارت‌های اخبار
=========================== */

.cards {
    display: flex;

    justify-content: center;

    gap: 25px;

    flex-wrap: wrap;
}

.card {
    width: 300px;

    background: #fff;

    border-radius: 15px;

    padding: 25px;

    box-shadow:
        0 8px 20px rgba(0, 0, 0, .08);

    transition:
        transform .35s ease,
        box-shadow .35s ease,
        background .3s ease;
}

.card:hover {
    transform:
        translateY(-10px);

    box-shadow:
        0 15px 30px rgba(0, 0, 0, .15);
}

.card h3 {
    color: #6a0dad;

    margin-bottom: 15px;
}

/* ===========================
   تیم‌ها
=========================== */

.team-box {
    display: flex;

    justify-content: center;

    gap: 25px;

    flex-wrap: wrap;
}

.team-card {
    width: 280px;

    background: #6a0dad;

    color: white;

    padding: 25px;

    border-radius: 15px;

    transition:
        transform .35s ease,
        box-shadow .35s ease;

    box-shadow:
        0 8px 20px rgba(0, 0, 0, .12);
}

.team-card:hover {
    transform:
        scale(1.05) translateY(-5px);

    box-shadow:
        0 15px 30px rgba(0, 0, 0, .2);
}

.team-card h3 {
    color: #ffd700;

    margin-bottom: 15px;
}

/* ===========================
   افتخارات
=========================== */

.honors ul {
    list-style: none;
}

.honors li {
    background: #fafafa;

    margin: 15px 0;

    padding: 18px;

    border-right:
        5px solid #6a0dad;

    border-radius: 10px;

    transition:
        transform .3s ease,
        box-shadow .3s ease,
        background .3s ease;
}

.honors li:hover {
    transform:
        translateX(-5px);

    box-shadow:
        0 5px 15px rgba(0, 0, 0, .08);
}

/* ===========================
   شمارنده‌ها
=========================== */

.stats {
    width: 85%;

    margin: 50px auto;

    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 20px;
}

.stat-card {
    background: white;

    padding: 25px 15px;

    border-radius: 18px;

    text-align: center;

    box-shadow:
        0 8px 25px rgba(0, 0, 0, .08);

    transition:
        transform .3s ease,
        background .3s ease,
        box-shadow .3s ease;
}

.stat-card:hover {
    transform:
        translateY(-8px);

    box-shadow:
        0 14px 28px rgba(0, 0, 0, .13);
}

.stat-card strong {
    display: block;

    font-size: 35px;

    color: #6a0dad;
}

.stat-card span:last-child {
    display: block;

    font-weight: bold;
}

/* ===========================
   گالری
=========================== */

.images {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    align-items: stretch;
}

.images img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    display: block;
    border-radius: 15px;
    cursor: pointer;
    transition: transform .4s ease, box-shadow .4s ease;
}

.images img:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 25px rgba(0, 0, 0, .2);
}

.gallery-item {
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(67, 22, 92, .12);
    border: 1px solid rgba(106, 13, 173, .08);
    transition: transform .35s ease, box-shadow .35s ease;
}

.gallery-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 34px rgba(54, 5, 104, .20);
}

.gallery-item img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    display: block;
    cursor: pointer;
}

.gallery-item figcaption {
    padding: 16px 18px 18px;
    text-align: right;
}

.gallery-item h3 {
    color: #5f1488;
    font-size: 22px;
    margin-bottom: 8px;
}

.gallery-item time {
    display: block;
    color: #7a5c8f;
    font-size: 14px;
    margin-bottom: 10px;
}

.gallery-item p {
    color: #4a4a4a;
    font-size: 15px;
    line-height: 1.7;
}

.gallery .images {
    padding: 12px;
}

.gallery.page-section {
    background:
        linear-gradient(120deg, rgba(255,255,255,.96), rgba(250,244,255,.98));
}

/* ===========================
   لایت‌باکس
=========================== */

.lightbox {
    display: none;

    position: fixed;

    inset: 0;

    background:
        rgba(0, 0, 0, .9);

    justify-content: center;

    align-items: center;

    z-index: 99999;

    padding: 20px;
}

.lightbox img {
    max-width: 90%;

    max-height: 90%;

    border-radius: 15px;

    box-shadow:
        0 10px 40px rgba(0, 0, 0, .4);

    object-fit: contain;
}

.close {
    position: absolute;

    top: 20px;
    right: 35px;

    color: white;

    font-size: 50px;

    cursor: pointer;

    line-height: 1;

    transition:
        color .3s ease,
        transform .3s ease;
}

.close:hover {
    color: #ffd700;

    transform:
        rotate(90deg);
}

/* ===========================
   تماس
=========================== */

.contact p {
    text-align: center;

    margin: 12px 0;
}

.contact-form-wrap {
   max-width: 640px;
   margin: 35px auto 0;
}

.contact-form {
   display: flex;
   flex-direction: column;
   gap: 12px;
}

.contact-form label {
   font-weight: 700;
   color: #6a0dad;
}

.contact-form input,
.contact-form textarea {
   width: 100%;
   border-radius: 12px;
   border: 1px solid #d9d9e3;
   padding: 12px 14px;
   font-family: inherit;
}

.contact-form textarea {
   resize: vertical;
}

.contact-form button {
   align-self: flex-start;
   border: none;
   border-radius: 999px;
   background: #6a0dad;
   color: white;
   padding: 12px 28px;
   cursor: pointer;
}

.contact-form button:hover {
   background: #4b0082;
}

/* ===========================
   فرم ثبت نام و لیست
=========================== */

.signup-wrap,
.members-wrap {
   max-width: 980px;
   margin: 48px auto;
   padding: 0 20px;
}

.signup-box,
.members-table-wrap,
.access-box {
   background: linear-gradient(180deg, #fff, #fbf6ff);
   border-radius: 24px;
   box-shadow: 0 12px 32px rgba(80, 18, 120, .08);
   padding: 30px;
}

.signup-form {
   display: grid;
   grid-template-columns: repeat(2, minmax(220px, 1fr));
   gap: 20px;
}

.signup-form .full {
   grid-column: 1 / -1;
}

.signup-form label {
   display: block;
   font-weight: 700;
   margin-bottom: 8px;
   color: #5b1b7d;
}

.signup-form input,
.signup-form select,
.signup-form textarea {
   width: 100%;
   border-radius: 14px;
   border: 1px solid #e4d7f2;
   padding: 12px 14px;
   font-size: 16px;
   background: #fff;
   color: #333;
   font-family: "Vazir", "Vazirmatn", "Tahoma", Arial, sans-serif;
   direction: rtl;
   text-align: right;
}

.signup-form select,
.signup-form select option {
   font-family: "Vazir", "Vazirmatn", "Tahoma", Arial, sans-serif;
}

.signup-form textarea {
   min-height: 130px;
   resize: vertical;
}

.signup-submit {
   grid-column: 1 / -1;
   display: flex;
   justify-content: flex-start;
}

.signup-submit button,
.members-actions a {
   border: none;
   border-radius: 999px;
   background: linear-gradient(135deg, #6a0dad, #4b0082);
   color: white;
   font-family: inherit;
   cursor: pointer;
   padding: 12px 28px;
   text-decoration: none;
   display: inline-block;
}

.signup-submit button:hover,
.members-actions a:hover {
   filter: brightness(1.08);
}

.members-table-wrap table {
   width: 100%;
   border-collapse: collapse;
   overflow: hidden;
   border-radius: 16px;
}

.members-table-wrap th,
.members-table-wrap td {
   padding: 16px 14px;
   border-bottom: 1px solid #f0eaf7;
   text-align: center;
   font-size: 15px;
}

.members-table-wrap th {
   background: #6a0dad;
   color: white;
}

.members-table-wrap tbody tr:hover {
   background: #faf5ff;
}

.members-actions {
   display: flex;
   justify-content: space-between;
   align-items: center;
   gap: 12px;
   margin-bottom: 20px;
   flex-wrap: wrap;
}

.empty-state {
   text-align: center;
   color: #666;
   padding: 14px;
}

.access-box {
   max-width: 540px;
   margin: 80px auto 0;
   text-align: center;
}

.access-box h2 {
   color: #6a0dad;
   margin-bottom: 16px;
}

.access-box p {
   margin-bottom: 18px;
}

.access-form {
   display: flex;
   flex-direction: column;
   gap: 14px;
   text-align: right;
}

.access-form input {
   width: 100%;
   border: 1px solid #e3d9f4;
   border-radius: 12px;
   padding: 12px 14px;
   font-family: inherit;
   font-size: 16px;
}

.access-box button {
   border: none;
   background: #6a0dad;
   color: white;
   border-radius: 999px;
   padding: 12px 24px;
   cursor: pointer;
}

@media (max-width: 768px) {
   .signup-form {
       grid-template-columns: 1fr;
   }

   .members-table-wrap {
       overflow-x: auto;
   }
}

/* ===========================
   سخن مدیرعامل
=========================== */

.ceo-box {
   background: #f9f7ff;
   border-radius: 22px;
   padding: 30px;
}

.ceo-intro {
   display: flex;
   align-items: center;
   gap: 25px;
   margin-bottom: 25px;
}

.ceo-avatar img {
   width: 150px;
   height: 150px;
   border-radius: 50%;
   object-fit: cover;
   border: 4px solid #ffd700;
}

.ceo-intro h3 {
   color: #6a0dad;
   font-size: 28px;
}

.ceo-title {
   margin-top: 12px;
   color: #777;
   letter-spacing: .2px;
}

.ceo-text {
   font-size: 18px;
   line-height: 2;
}

.ceo-box blockquote {
   margin-top: 24px;
   padding: 20px;
   border-right: 4px solid #6a0dad;
   background: #fff;
   color: #444;
   border-radius: 12px;
}

/* ===========================
   دکمه بازگشت به بالا
=========================== */

.back-to-top {
    position: fixed;

    left: 25px;
    bottom: 25px;

    width: 50px;
    height: 50px;

    border: none;

    border-radius: 50%;

    background: #6a0dad;

    color: #ffd700;

    font-size: 28px;

    cursor: pointer;

    z-index: 5000;

    opacity: 0;

    visibility: hidden;

    transform:
        translateY(15px);

    transition:
        opacity .3s ease,
        visibility .3s ease,
        transform .3s ease,
        background .3s ease;

    box-shadow:
        0 8px 20px rgba(0, 0, 0, .2);
}

.back-to-top.show {
    opacity: 1;

    visibility: visible;

    transform:
        translateY(0);
}

.back-to-top:hover {
    background: #4b0082;

    transform:
        translateY(-4px);
}

/* ===========================
   فوتر
=========================== */

footer {
    background: #6a0dad;

    color: white;

    text-align: center;

    padding: 25px;

    margin-top: 40px;
}

/* ===========================
   حالت شب
=========================== */

body.dark-mode {
    background: #101014;
    color: #eeeeee;
}

body.dark-mode .about,
body.dark-mode .news,
body.dark-mode .teams,
body.dark-mode .honors,
body.dark-mode .gallery,
body.dark-mode .contact,
body.dark-mode .stat-card,
body.dark-mode .ceo-box {
    background: #1b1b22;
    color: #eeeeee;

    box-shadow:
        0 5px 20px rgba(0, 0, 0, .3);
}

body.dark-mode .card {
    background: #22222a;
    color: #eeeeee;

    box-shadow:
        0 8px 20px rgba(0, 0, 0, .25);
}

body.dark-mode .card h3 {
    color: #c58cff;
}

body.dark-mode .honors li {
    background: #24242c;
    color: #eeeeee;
}

body.dark-mode .about h2,
body.dark-mode .news h2,
body.dark-mode .teams h2,
body.dark-mode .honors h2,
body.dark-mode .gallery h2,
body.dark-mode .contact h2 {
    color: #c58cff;
}

body.dark-mode .stat-card strong {
    color: #c58cff;
}

body.dark-mode header {
    background: #4b0082;
}

body.dark-mode .team-card {
    background: #4b0082;
}

body.dark-mode .slider {
    box-shadow:
        0 12px 35px rgba(0, 0, 0, .4);
}

/* ===========================
   انیمیشن عمومی
=========================== */

@keyframes sectionShow {
    from {
        opacity: 0;
        transform: translateY(25px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===========================
   اسکرول‌بار
=========================== */

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #eeeeee;
}

::-webkit-scrollbar-thumb {
    background: #6a0dad;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #4b0082;
}

body.dark-mode::-webkit-scrollbar-track {
    background: #18181d;
}

body.dark-mode::-webkit-scrollbar-thumb {
    background: #6a0dad;
}

/* ===========================
   انتخاب متن
=========================== */

::selection {
    background: #6a0dad;
    color: #ffd700;
}

/* ===========================
   دسترسی بهتر
=========================== */

button,
a {
    -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible {
    outline: 3px solid #ffd700;
    outline-offset: 3px;
}

/* ===========================
   تبلت
=========================== */

@media (max-width: 900px) {

    header h1 {
        font-size: 27px;
    }

    .hero {
        height: 430px;
    }

    .hero-content h2 {
        font-size: 35px;
    }

    .about,
    .news,
    .teams,
    .honors,
    .gallery,
    .contact {
        width: 90%;
    }

    .stats {
        width: 90%;

        grid-template-columns:
            repeat(2, 1fr);
    }

}

/* ===========================
   موبایل
=========================== */

@media (max-width: 768px) {

    header {
        padding: 15px;
    }

    header h1 {
        font-size: 22px;
        margin-bottom: 10px;
    }

    .logo img {
        width: 75px;
        height: 75px;
    }

    .header-actions {
        margin: 5px 0 0;
    }

    .menu-btn {
        display: block;
    }

    nav {
        display: none;

        flex-direction: column;

        gap: 15px;

        margin-top: 15px;

        padding: 15px;

        background:
            rgba(0, 0, 0, .12);

        border-radius: 12px;
    }

    nav.active {
        display: flex;
    }

    nav a {
        padding: 8px;
    }

    /* هیرو */

    .hero {
        height: 390px;
    }

    .hero-content h2 {
        font-size: 28px;
    }

    .hero-content p {
        font-size: 17px;
    }

    /* اسلایدر */

    .slider {
        width: 94%;
        height: 330px;
    }

    .slide-caption {
        right: 20px;
        bottom: 45px;
    }

    .slide-caption h2 {
        font-size: 24px;
    }

    .slide-caption p {
        font-size: 15px;
    }

    .slider-btn {
        width: 42px;
        height: 42px;
        font-size: 18px;
    }

    .slider-btn.prev {
        left: 10px;
    }

    .slider-btn.next {
        right: 10px;
    }

    /* بخش‌ها */

    .about,
    .news,
    .teams,
    .honors,
    .gallery,
    .contact {
        width: 94%;
        padding: 25px;
        margin: 30px auto;
    }

    /* کارت‌ها */

    .cards {
        flex-direction: column;
        align-items: center;
    }

    .card {
        width: 100%;
    }

    .team-box {
        flex-direction: column;
        align-items: center;
    }

    .team-card {
        width: 100%;
    }

    /* شمارنده */

    .stats {
        width: 94%;

        grid-template-columns:
            repeat(2, 1fr);

        gap: 15px;

        margin: 30px auto;
    }

    .stat-card {
        padding: 20px 10px;
    }

    .stat-card strong {
        font-size: 30px;
    }

    /* گالری */

    .images {
        grid-template-columns:
            repeat(2, 1fr);

        gap: 12px;
    }

    .images img {
        height: 180px;
    }

    /* لایت‌باکس */

    .lightbox img {
        max-width: 95%;
        max-height: 80%;
    }

    .close {
        top: 10px;
        right: 20px;
        font-size: 40px;
    }

    /* دکمه بازگشت */

    .back-to-top {
        left: 15px;
        bottom: 15px;

        width: 45px;
        height: 45px;

        font-size: 24px;
    }

}

/* ===========================
   موبایل کوچک
=========================== */

@media (max-width: 450px) {

    header h1 {
        font-size: 19px;
    }

    .logo img {
        width: 65px;
        height: 65px;
    }

    .hero {
        height: 330px;
    }

    .hero-content {
        padding: 15px;
    }

    .hero-content h2 {
        font-size: 23px;
    }

    .hero-content p {
        font-size: 15px;
    }

    .hero button {
        padding: 12px 25px;
        font-size: 16px;
    }

    .slider {
        height: 270px;
    }

    .slide-caption {
        right: 15px;
        bottom: 40px;
        max-width: 75%;
    }

    .slide-caption h2 {
        font-size: 20px;
    }

    .slide-caption p {
        font-size: 13px;
    }

    .slider-btn {
        width: 38px;
        height: 38px;
        font-size: 16px;
    }

    .stats {
        grid-template-columns: 1fr;
    }

    .images {
        grid-template-columns: 1fr;
    }

    .images img {
        height: 220px;
    }

    .about,
    .news,
    .teams,
    .honors,
    .gallery,
    .contact {
        padding: 20px;
    }

}

/* ===========================
   کاهش انیمیشن برای کاربران
   ===========================
   سیستم‌هایی که کاهش حرکت را
   فعال کرده‌اند، انیمیشن کمتری می‌بینند.
=========================== */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }

}

