﻿
/* برای تگ‌های h و p */
h1, h2, h3, p {
    word-break: keep-all; /* جلوی شکستن کلمات را می‌گیرد (مناسب متون فارسی) */
    overflow-wrap: normal; /* جلوگیری از شکستن با قاعدهٔ «break-word» */
    hyphens: none; /* غیرفعال کردن هجی‌شدن اتوماتیک */
    -webkit-hyphens: none;
    -ms-hyphens: none;
    white-space: normal; /* اجازهٔ شکست خط بین کلمات، ولی نه داخل کلمه */
}

.row {
    display: flex;
    box-shadow: -1px 1px 6px 0px #00000038;
    margin: 1em;
    padding: 1em;
}
/*header*/
/*header*/

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    overflow-x: hidden;
}


    #home-page .header {
        position: relative;
        width: 100%;
        height: 100vh;
        background: url('../../icon/StaticAdhoosh/Image/programming--code.jpg') center/cover no-repeat;
        color: white;
    }
#home-page {
    position: relative;
    width: 100%;
    color: white;
}
/* استایل پیش‌فرض header در بقیه صفحات */
.header {
    /* فقط استایل‌های ضروری، بدون بک‌گراند */
    position: relative;
    width: 100%;
    color: white;
    /* height: auto; یا هر چیز دیگه */
}

/* ==== منوی فیکس ==== */
.navbar {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    background: linear-gradient(179deg, rgb(0 0 0) 0%, rgb(0 0 0 / 85%) 40%, rgb(0 0 0 / 0%) 100%);
    padding: 8px 5%;
    display: flex;
    align-items: center;
    justify-content: space-around;
    z-index: 1000;
}

.header .navbar div:not(.hamburger) {
    display: flex;
    margin: 0 0.8em;
}
@media (max-width:450px) {
    .support-btn{
        display:none!important;
    }
}

    .logo {
        font-size: 28px;
        font-weight: bold;
    }

        .logo img {
            width: 5em;
        }
    /* منوی دسکتاپ */
    .menu {
        display: flex;
        gap: 30px;
    }

        .menu a {
            color: white;
            text-decoration: none;
            font-size: 16px;
            display: flex;
            align-items: center;
            gap: 8px;
            transition: 0.3s;
            font-size: larger;
        }

            .menu a:hover {
                color: #ffd700;
            }

    .Header #Cart {
        padding: 0.2em;
        display: flex;
        color: #ffffff;
    }
    /* دکمه همبرگر */
    .hamburger {
        display: none;
        flex-direction: column;
        cursor: pointer;
        gap: 4px;
        padding: 5px;
    }

        .hamburger span {
            width: 25px;
            height: 3px;
            background: white;
            border-radius: 3px;
            transition: 0.3s;
        }

    /* منوی موبایل */
    .mobile-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: rgb(0 0 0 / 21%);
        backdrop-filter: blur(10px);
        transition: right 0.3s ease;
        padding: 80px 30px 30px;
        z-index: 999;
        display: flex;
        flex-direction: column;
        gap: 20px;
        z-index: 10000;
    }

        .mobile-menu.active {
            right: 0;
        }

        .mobile-menu a {
            color: white;
            text-decoration: none;
            font-size: 18px;
            padding: 12px 0;
            border-bottom: 1px solid rgba(255,255,255,0.1);
            transition: 0.3s;
        }

            .mobile-menu a:hover {
                color: #0ec5d5;
                padding-right: 10px;
            }


    .accordion-item {
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }

    .accordion-header {
        color: white;
        font-size: 18px;
        padding: 14px 0;
        cursor: pointer;
        display: flex;
        justify-content: space-between;
        align-items: center;
        transition: 0.3s;
    }

        .accordion-header:hover {
            color: #0ec5d5;
            padding-right: 10px;
        }

        .accordion-header .arrow {
            transition: transform 0.3s ease;
            font-size: 14px;
        }

        .accordion-header.active .arrow {
            transform: rotate(180deg);
        }

    .accordion-content,
    .sub-accordion-content {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease;
        background: rgba(255,255,255,0.05);
        margin-right: 20px;
        border-right: 2px solid #0ec5d5;
    }

        .accordion-content.active,
        .sub-accordion-content.active {
            max-height: 800px;
            display: flex;
            flex-direction: column;
        }

    /* زیرمنوی سطح دوم */
    .sub-accordion-header {
        color: #ddd;
        font-size: 16px;
        padding: 10px 0;
        cursor: pointer;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

        .sub-accordion-header:hover {
            color: #0ec5d5;
        }

    /* ==== باکس‌های راست ==== */
    .header .navbar .auth-box {
        display: flex;
        align-items: center;
        background-color: #0ec5d5;
        border-radius: 10em;
    }

        .header .navbar .auth-box img {
            width: 3em;
            padding: 0 0.3em;
            border-radius: 50%;
            object-fit: cover;
        }

        .header .navbar .auth-box #login {
            display: flex;
            align-items: center;
            color: white;
        }

    .login-btn {
        background-color: #0ec5d5;
        color: black;
        padding: 1px 10px;
        border-radius: 50px;
        display: flex;
        align-items: center;
        backdrop-filter: blur(5px);
        transition: 0.3s;
        color: black;
        text-decoration: none;
    }

    .separator {
        width: 1px;
        height: 28px;
        background: linear-gradient(to bottom, transparent, #000000, transparent);
        transform: skewY(-10deg);
    }

    .separator {
        width: 1px;
        height: 28px;
        background: linear-gradient(to bottom, transparent, #ccc, transparent);
        transform: skewY(-10deg);
    }

    .support-btn {
        padding: 0.5em 1em;
        border: 0.5px solid #ffffff;
        border-radius: 50px;
        display: flex;
        align-items: center;
        gap: 10px;
        backdrop-filter: blur(5px);
        transition: 0.3s;
    }

    .cart {
        position: relative;
    }

        .cart img {
            width: 3em;
        }

        .cart span {
            position: absolute;
            right: -8;
            background-color: #ff0000;
            border-radius: 20em;
            font-size: smaller;
            padding: 0.1em 0.6em;
        }

    .login-btn img, .support-btn img {
        width: 2em;
    }

    /* ==== باکس وسط-پایین ==== */
    .stats-box {
        position: absolute;
        bottom: 80px;
        left: 50%;
        transform: translateX(-50%);
        background: rgb(0 0 0 / 37%);
        backdrop-filter: blur(1px);
        padding: 30px 60px;
        border-radius: 10px;
        display: flex;
        gap: 50px;
        text-align: center;
    }

    .stat {
        position: relative;
        display: flex;
        align-items: center;
    }

        .stat p {
            font-size: smaller;
        }

        .stat:not(:last-child)::after {
            content: "";
            position: absolute;
            left: -25px;
            top: 50%;
            transform: translateY(-50%);
            width: 3px;
            height: 90px;
            background: rgb(255 255 255);
        }

    .num {
        font-size: 60px;
        font-weight: bold;
        color: #0ec5d5;
    }

    .txt {
        padding: 0.5em;
    }

        .txt strong {
            font-size: xx-large;
        }

        .txt p {
            font-size: 15px;
            margin-top: 8px;
        }

    /* ==== ریسپانسیو ==== */
    @media (max-width: 992px) {
        .stats-box {
            flex-direction: column;
            gap: 20px;
            padding: 25px;
            display: none;
        }

        .stat:not(:last-child)::after {
            display: none;
        }

        .menu {
            gap: 15px;
            font-size: 14px;
        }
    }

    @media (max-width: 941px) {
        .menu {
            display: none !important;
        }

        .hamburger {
            display: flex;
            align-items: center;
            justify-content: center;
        }
    }

    @media (max-width: 768px) {
        /* همبرگر نمایش */
        .hamburger {
            display: flex;
        }

        .menu {
            display: none !important;
        }

        .navbar {
            padding: 15px;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
        }

        .auth-box {
            gap: 10px;
            flex-wrap: wrap;
        }

            .auth-box img {
                width: 3em;
                padding: 0 0.3em;
                border-radius: 50%;
                object-fit: cover;
            }

            .auth-box #login {
                display: flex;
                align-items: center;
                color: white;
            }

        .login-btn, .support-btn {
            padding: 8px 12px;
            font-size: 12px;
        }
    }

    @media (max-width: 1315px) {
        .navbar {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
        }
    }

    @media (max-width: 600px) {
        .navbar {
            flex-direction: column;
            padding: 15px;
            gap: 10px;
        }

        .auth-box {
            margin-top: 10px;
            justify-content: center;
        }

        .menu a::after {
            display: none;
        }

        .mobile-menu {
            padding: 80px 20px 20px;
        }
    }


    /* ================== زیرمنو دسکتاپ ================== */
    .dropdown {
        position: relative;
        display: inline-block;
    }

    .dropbtn {
        display: flex;
        align-items: center;
        gap: 8px;
        color: white;
        text-decoration: none;
        font-size: 16px;
        transition: 0.3s;
    }

        .dropbtn .arrow {
            transition: transform 0.3s ease;
        }

    .dropdown:hover .dropbtn .arrow {
        transform: rotate(180deg);
    }

    .dropdown-content {
        display: none;
        position: absolute;
        top: 100%;
        right: 0;
        background: rgba(0, 0, 0, 0.95);
        backdrop-filter: blur(10px);
        min-width: 200px;
        border-radius: 5px;
        overflow: hidden;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
        z-index: 1000;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: all 0.3s ease;
    }

    .dropdown:hover .dropdown-content {
        display: block;
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        flex-direction: column;
    }

    .dropdown-content a {
        color: white;
        padding: 12px 20px;
        text-decoration: none;
        display: block;
        transition: 0.3s;
        font-size: 15px;
    }

        .dropdown-content a:hover {
            background: #0ec5d5;
            color: black;
            padding-right: 25px;
        }

    /* ================== زیرمنو موبایل ================== */
    .mobile-dropdown {
        position: relative;
    }

    .mobile-dropbtn {
        display: flex;
        align-items: center;
        justify-content: space-between;
        color: white;
        padding: 12px 0;
        text-decoration: none;
        font-size: 18px;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        transition: 0.3s;
    }

        .mobile-dropbtn .arrow {
            transition: transform 0.3s ease;
        }

    .mobile-dropdown-content {
        display: none;
        background: rgba(255, 255, 255, 0.1);
        backdrop-filter: blur(5px);
        padding: 0 15px;
        border-radius: 8px;
        margin: 5px 0;
        overflow: hidden;
    }

        .mobile-dropdown-content a {
            color: #ddd;
            padding: 10px 0;
            display: block;
            font-size: 16px;
            text-decoration: none;
            border-bottom: 1px dashed rgba(255,255,255,0.2);
            transition: 0.3s;
        }

            .mobile-dropdown-content a:hover {
                color: #0ec5d5;
                padding-right: 10px;
            }

    .mobile-dropdown.active .mobile-dropbtn .arrow {
        transform: rotate(180deg);
    }

    .mobile-dropdown.active .mobile-dropdown-content {
        display: block;
    }
    /*Header*/

    /*herosectio*/
    /* ================== CSS بخش جدید (اضافه کن به style.css) ================== */
    .hero-section {
        position: relative;
        width: 100%;
        padding: 100px 5%;
        overflow: hidden;
        color: #000000;
    }

    /* عکس پس‌زمینه محو */
    .hero-bg {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: url('../../icon/StaticAdhoosh/Image/Programming2.jpg');
    }

        /* لایه تیره روی عکس (برای خوانایی متن) */
        .hero-bg::after {
            content: "";
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: linear-gradient(135deg, rgba(0,0,0,0.7) 0%, rgba(14,197,213,0.3) 100%);
            z-index: -1;
        }

    .hero-container {
        position: relative;
        max-width: 1300px;
        margin: 0 auto;
        text-align: center;
    }

    /* هدر بالا */
    .hero-header h1 {
        font-size: 38px;
        font-weight: 900;
        margin-bottom: 20px;
        text-shadow: 0 4px 10px rgba(0,0,0,0.5);
    }

    /* خط جدید: مشکی + آبی وسط + مشکی */
    .blue-line {
        width: 500px;
        height: 2px;
        background: linear-gradient(to right, #dbe5e5 0%, #dbe5e5 40%, #0ec5d5 40%, #0ec5d5 60%, #dbe5e5 60%, #dbe5e5 100%);
        border-radius: 10px;
        margin: 30px auto;
        box-shadow: 0 0 15px rgba(14, 197, 213, 0.8);
        position: relative;
    }

        /* درخشش آبی وسط */
        .blue-line::before {
            content: "";
            position: absolute;
            top: -8px;
            left: 50%;
            transform: translateX(-50%);
            width: 80px;
            height: 22px;
            filter: blur(10px);
            opacity: 0.7;
        }

    /* متن زیر خط */
    .hero-subtitle {
        font-size: 22px;
        opacity: 0.95;
    }

    /* دو ستونه */
    .hero-content {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 50px;
        margin-top: 50px;
        flex-wrap: wrap;
    }

    /* متن راست */
    .hero-text {
        flex: 1;
        min-width: 300px;
        text-align: right;
        direction: rtl;
    }

    .hero-btn {
        display: flex;
        flex-direction: column;
        align-items: flex-end;
    }

    .hero-text img {
        width: 1em;
    }

    .hero-text h2 {
        font-size: 25px;
        color: #1d757c;
        margin-bottom: 20px;
        display: flex;
    }

    .hero-text p {
        font-size: 18px;
        line-height: 1.5;
        margin-bottom: 30px;
        text-align: justify;
        color: black;
    }

    /* دکمه لینک */
    .hero-btn a {
        display: inline-flex;
        align-items: center;
        gap: 12px;
        background: #0ec5d5;
        color: rgb(255, 255, 255);
        padding: 8px 32px;
        border-radius: 50px;
        text-decoration: none;
        font-weight: bold;
        font-size: 18px;
        transition: 0.4s;
        box-shadow: 0 8px 25px rgba(14,197,213,0.4);
    }

    .hero-btn:hover {
        transform: translateY(-5px);
    }

    .hero-btn svg {
        width: 20px;
        height: 20px;
        fill: black;
    }

    /* عکس چپ */
    .hero-image {
        flex: 1;
        min-width: 300px;
    }

        .hero-image img {
            width: 100%;
            border-radius: 10px;
            box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4)
        }

    /* ریسپانسیو */
    @media (max-width: 992px) {
        .hero-content {
            flex-direction: column-reverse;
            text-align: center;
        }

        .hero-text {
            text-align: center;
        }

        .hero-header h1 {
            font-size: 38px;
        }

        .hero-subtitle {
            font-size: 18px;
        }
    }

    @media (max-width: 600px) {
        .hero-header h1 {
            font-size: 30px;
        }

        .hero-text h2 {
            font-size: 28px;
        }

        .hero-btn {
            padding: 12px 24px;
            font-size: 16px;
        }
    }

    /*herosection*/


    /* ================== CSS بخش جستجو (اضافه کن به style.css) ================== */
    .courses-search {
        width: 100%;
        padding: 80px 5%;
        background: #dae8e9;
        color: white;
        text-align: center;
    }

    .container {
        max-width: 1400px;
        margin: 0 auto;
        position: relative;
    }

    /* هدر */
    .search-header {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 15px;
        margin-bottom: 30px;
    }

        .search-header img {
            width: 40px;
        }

        .search-header h2 {
            font-size: 36px;
            font-weight: 900;
            color: #003e45;
        }

    /* اینپوت جستجو */
    .search-box {
        position: relative;
        max-width: 600px;
        margin: 0 auto 40px;
    }

    #searchInput {
        width: 100%;
        padding: 16px 60px 16px 20px;
        border: none;
        border-radius: 50px;
        font-size: 16px;
        outline: none;
        box-shadow: 0 10px 30px rgba(0,0,0,0.3);
        transition: 0.3s;
        background-color: #ffffff00;
        border: 1px solid #777e7e;
    }
    /*autocomplate*/
    .ui-autocomplete-input {
        width: 100%;
        padding: 16px 60px 16px 20px;
        border: none;
        border-radius: 50px;
        font-size: 16px;
        outline: none;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
        transition: 0.3s;
        background-color: #ffffff00;
        border: 1px solid #777e7e;
    }

    #searchInput:focus {
        box-shadow: 0 0 0 4px rgba(14,197,213,0.4);
    }

    .search-btn {
        position: absolute;
        right: 8px;
        top: 50%;
        transform: translateY(-50%);
        background: #0ec5d5;
        border: none;
        width: 48px;
        height: 48px;
        border-radius: 50%;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: 0.3s;
    }

        .search-btn:hover {
            transform: translateY(-50%) scale(0.8);
        }

        .search-btn img {
            width: 3em;
        }

    /* خط جداکننده */
    .divider-line {
        height: 2px;
        background: linear-gradient(to right, transparent, white, transparent);
        margin: 40px auto;
        border-radius: 2px;
    }

    /* اسلایدر کارت‌ها */
    .courses-slider {
        position: relative;
        overflow: hidden;
        border-radius: 20px;
    }

    .courses-wrapper {
        display: flex;
        gap: 20px;
        overflow-x: auto;
        scroll-behavior: smooth;
        padding: 20px 0;
        scrollbar-width: none;
    }

        .courses-wrapper::-webkit-scrollbar {
            display: none;
        }

    /* کارت‌ها */
    .course-card {
        min-width: 140px;
        background: rgb(255 255 255);
        backdrop-filter: blur(10px);
        border: 1px solid rgba(255, 255, 255, 0.2);
        border-radius: 16px;
        padding: 20px 10px;
        text-align: center;
        transition: 0.4s;
        cursor: pointer;
        flex-shrink: 0;
        color: black;
    }

        .course-card .num-course-card {
            font-size: x-small;
            font-weight: 200;
            margin: 0.5em 0 0 0;
        }

        .course-card:hover {
            background: #0ec5d5;
            transform: translateY(-10px) scale(1.05);
            box-shadow: 0 20px 40px rgba(14,197,213,0.4);
        }

        .course-card img {
            width: 60px;
            height: 60px;
            margin-bottom: 10px;
        }

        .course-card span {
            display: block;
            font-weight: bold;
            font-size: 14px;
        }

    /* دکمه‌های ناوبری */
    .nav-btn {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        background: rgba(255, 255, 255, 0.3);
        border: none;
        width: 50px;
        height: 50px;
        border-radius: 50%;
        font-size: 24px;
        color: rgb(0, 0, 0);
        cursor: pointer;
        z-index: 10;
        transition: 0.3s;
        backdrop-filter: blur(10px);
    }

    .prev-btn {
        left: 10px;
    }

    .next-btn {
        right: 10px;
    }

    .nav-btn:hover {
        background: #0ec5d5;
        transform: translateY(-50%) scale(1.2);
    }

    /* ریسپانسیو */
    @media (max-width: 768px) {
        .search-header h2 {
            font-size: 28px;
        }

        .course-card {
            min-width: 120px;
        }

        .nav-btn {
            width: 40px;
            height: 40px;
            font-size: 20px;
        }
    }






    /*More Course*/

    /* ================== بخش دوره‌های آموزشی ================== */
    .courses-section {
        width: 100%;
        background: #ffffff;
        color: #000000;
    }

        .courses-section .container .headercourses {
            width: 2em;
        }

        .courses-section .container {
            max-width: 1400px;
            margin: 0 auto;
            position: relative;
            display: flex;
            flex-direction: column;
            align-items: center;
            margin-bottom: 3em;
        }

    .section-header {
        text-align: center;
        margin-bottom: 30px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 15px;
    }

        .section-header img {
            width: 50px;
            filter: brightness(0) invert(1);
        }

        .section-header h2 {
            font-size: 38px;
            font-weight: 900;
            color: #00353b;
        }

    /* تب‌ها */
    .tabs {
        display: flex;
        justify-content: center;
        gap: 15px;
        margin-bottom: 50px;
    }

    .tab-btn {
        background: rgba(255, 255, 255, 0.1);
        border: 1px solid #91adb0;
        color: #000000;
        padding: 12px 30px;
        border-radius: 5px;
        font-weight: bold;
        cursor: pointer;
        transition: 0.4s;
        backdrop-filter: blur(10px);
    }

        .tab-btn.active,
        .tab-btn:hover {
            background: #034249;
            color: #ffffff;
        }

    /* گرید کارت‌ها */
    .courses-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
        margin-bottom: 50px;
    }

    /* کارت دوره */
    .course-card-item {
        background: #ffffff;
        border-radius: 5px;
        overflow: hidden;
        transition: 0.4s;
        border: 1px solid rgba(14, 197, 213, 0.2);
        box-shadow: 1px 1px 10px 0px #d7c9c9;
    }

        .course-card-item:hover {
            transform: translateY(-15px);
            box-shadow: 0 25px 50px rgba(14,197,213,0.3);
        }

    .card-thumb {
        position: relative;
        height: 200px;
        overflow: hidden;
        margin: 0.8em;
    }

        .card-thumb img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: 0.5s;
            border-radius: 0.3em;
        }

    .course-card-item:hover .card-thumb img {
        transform: scale(1.1);
    }

    .highlight {
        position: absolute;
        top: 15px;
        right: 15px;
        background: #0ec5d5;
        color: #ffffff;
        padding: 6px 12px;
        border-radius: 5px;
        font-size: 12px;
        font-weight: bold;
    }

    .rating {
        position: absolute;
        top: 15px;
        left: 15px;
        background: rgba(0,0,0,0.7);
        padding: 6px 10px;
        border-radius: 10px;
        font-size: 14px;
    }

    .card-body {
        padding: 20px;
    }

        .card-body h3 {
            font-size: 13px;
            margin: 15px 0;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .card-body img {
            width: 24px;
        }

    .instructor {
        display: flex;
        align-items: center;
        gap: 8px;
        color: #545050;
        font-size: 14px;
        margin: 10px 0;
    }

        .instructor img {
            width: 20px;
        }

    .meta {
        display: flex;
        justify-content: space-between;
        font-size: 13px;
        color: black;
        margin: 15px 0;
    }

        .meta span:first-child {
            display: flex;
            align-items: center;
        }

        .meta span:last-child {
            border: 1px solid #8d8d8d;
            padding: 0.3em 1em;
            border-radius: 0.3em;
            color: black;
        }

    .card-divider {
        height: 1px;
        color: rebeccapurple;
        background: #b3c7c8;
        margin: 0.8em;
    }

    .card-footer {
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-direction: row-reverse;
    }

    .price {
        font-weight: bold;
        color: #0ec5d5;
    }

        .price del {
            color: #666;
            font-size: 14px;
        }

    .buy-btn {
        background: #f7da40;
        color: black;
        padding: 5px 25px;
        border-radius: 5px;
        text-decoration: none;
        font-weight: bold;
        font-size: 14px;
        transition: 0.3s;
    }

        .buy-btn:hover {
            background: white;
            transform: scale(1.05);
        }


    .view-all {
        text-align: center;
    }

    .view-all-btn {
        display: inline-flex;
        align-items: center;
        gap: 10px;
        background: #ffffff;
        border: 2px solid #0ec5d500;
        color: #00363c;
        padding: 14px 40px;
        border-radius: 5px;
        font-weight: bold;
        text-decoration: none;
        transition: 0.4s;
        box-shadow: -3px 2px 12px 0px #0000005e;
    }

        .view-all-btn:hover {
            background: #0ec5d5;
            color: black;
        }

    @media (max-width: 1490px) {
        .courses-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 30px;
            margin-bottom: 50px;
        }

        .section-header h2 {
            font-size: 32px;
        }
    }

    @media (max-width: 992px) {
        .courses-grid {
            grid-template-columns: repeat(2, 1fr);
        }

        .section-header h2 {
            font-size: 32px;
        }
    }

    @media (max-width: 600px) {
        .courses-grid {
            grid-template-columns: 1fr;
        }

        .tabs {
            /*flex-direction: column;*/
        }

        .tab-btn {
            margin: 0 auto;
        }
    }

    /*baner*/

    .Baner {
        display: block;
        width: 100%;
        margin: 0 auto;
        overflow: hidden;
        border-radius: 16px; /* دلخواه - گرد کردن گوشه‌ها */
        transition: transform 0.3s ease;
    }

        .Baner:hover {
            transform: translateY(-5px);
        }

        .Baner a {
            display: flex;
            /* width: 100%; */
            /* height: 100%; */
            align-items: center;
            justify-content: center;
        }

        .Baner img {
            height: auto; /* مهم: ارتفاع خودکار */
            min-height: 200px; /* حداقل ارتفاع برای موبایل */
            object-fit: contain; /* تصویر کامل پر کنه بدون کشیدگی */
            display: block;
            transition: transform 0.5s ease;
        }

        .Baner a:hover img {
            transform: scale(1.05); /* زوم نرم هنگام هاور */
        }

    /* ریسپانسیو برای اندازه‌های مختلف */
    @media (max-width: 768px) {
        .Baner {
            border-radius: 12px;
        }

            .Baner img {
                min-height: 180px;
                width: 100%;
            }
    }

    @media (max-width: 480px) {
        .Baner {
            border-radius: 10px;
        }

            .Baner img {
                min-height: 160px;
                width: 100%;
            }
    }

    /*baner*/

    /* ================== CSS بخش دو ستونه (اضافه کن به style.css) ================== */
    .split-section {
        width: 100%;
        padding: 100px 5%;
        position: relative;
        overflow: hidden;
    }

    .split-container {
        max-width: 1100px;
        margin: 0 auto;
        display: flex;
        align-items: center;
        flex-wrap: wrap;
        position: relative;
        z-index: 2;
        background-color: #dae8e9;
        border-radius: 0.5em;
    }

    .split-text {
        flex: 1;
        min-width: 300px;
        color: #024249;
        text-align: right;
        direction: rtl;
        padding: 0 2em;
    }

    .text-icon {
        width: 60px;
        margin-bottom: 20px;
    }

    .linkcard {
        text-align: end;
    }

    .split-text h2 {
        font-size: 42px;
        font-weight: 900;
        margin-bottom: 20px;
        text-shadow: 0 4px 10px rgba(0,0,0,0.3);
    }

    .split-text p {
        font-size: 18px;
        line-height: 2;
        margin-bottom: 30px;
        opacity: 0.95;
    }

    .text-link {
        margin: 0 0 0.8em 0;
        display: inline-flex;
        align-items: center;
        gap: 12px;
        background: #034249;
        color: #ffffff;
        padding: 8px 20px;
        border-radius: 10px;
        text-decoration: none;
        font-weight: bold;
        font-size: 18px;
        transition: 0.4s;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    }

        .text-link:hover {
            background: #ffd700;
            color: black;
            transform: translateY(-5px);
        }

        .text-link svg {
            width: 20px;
            height: 20px;
            fill: currentColor;
        }

    /* سمت چپ: کارت‌ها */
    .split-cards {
        flex: 1;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
        min-width: 300px;
    }

    /* کارت بیرون‌زده */
    .feature-card {
        background: white;
        border-radius: 5px;
        overflow: hidden;
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
        transition: 0.4s;
        position: relative;
        top: -80px;
        right: 50px;
        transform: translateY(20px);
    }

        .feature-card:hover {
            transform: translateY(0);
            box-shadow: 0 30px 60px rgba(14,197,213,0.4);
        }

    .card-img {
        height: 160px;
        overflow: hidden;
        margin: 0.8em;
    }

        .card-img img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: 0.5s;
        }

    .feature-card:hover .card-img img {
        transform: scale(1.1);
    }

    .card-info {
        display: flex;
        justify-content: flex-start;
        padding: 8px 0;
        font-size: 13px;
        color: #333;
    }

    .card-more img {
        width: 1em;
    }

    .card-info img {
        width: 2em;
    }

    .card-info span {
        display: flex;
        align-items: center;
        gap: 6px;
        margin: 0 0.3em;
    }

    .card-info svg {
        width: 16px;
        height: 16px;
        fill: #0ec5d5;
    }

    .feature-card h3 {
        padding: 15px 20px 10px;
        font-size: 14px;
        color: #363636;
    }

    .card-more {
        text-align: center;
        padding: 10px 20px;
        color: #67888b;
        text-decoration: none;
        font-weight: bold;
        font-size: 14px;
        transition: 0.3s;
        display: flex;
        align-items: center;
        justify-content: center;
    }

        .card-more:hover {
            color: #007a99;
        }

        .card-more svg {
            width: 16px;
            height: 16px;
            fill: currentColor;
        }

    /* ریسپانسیو */
    @media (max-width: 992px) {
        .split-container {
            flex-direction: column;
            text-align: center;
        }

        .split-text {
            text-align: center;
        }

        .split-cards {
            grid-template-columns: 1fr 1fr;
            gap: 40px;
        }

        .feature-card {
            top: 0;
            transform: translateY(0);
        }
    }

    @media (max-width: 720px) {



        .split-cards {
            grid-template-columns: 1fr;
            gap: 40px;
        }
    }

    @media (max-width: 600px) {
        .split-text h2 {
            font-size: 32px;
        }

        .text-link {
            padding: 12px 24px;
            font-size: 16px;
        }
    }



    /*footer*/


    footer {
        border-top: 4px solid #00747c;
        background: #dae8e9;
        color: #0f4a50;
        padding: 60px 0 30px;
        direction: rtl;
        width: 100%;
    }

    .footer-container {
        max-width: 1400px;
        margin: 0 auto;
        padding: 0 20px;
        display: grid;
        grid-template-columns: 0.5fr 1fr 1fr 1fr;
        gap: 40px;
    }

    /* بخش اول - لوگو */
    .footer-logo img {
        height: 80px;
    }

    /* بخش دوم - درباره ما */
    .footer-about h3 {
        font-size: 1.4rem;
        margin-bottom: 12px;
        position: relative;
        padding-bottom: 10px;
    }

        .footer-about h3::after {
            content: '';
            position: absolute;
            right: 0;
            bottom: 0;
            width: 100px;
            height: 2px;
            background: #abe0e4;
        }

    .footer-about p {
        font-size: 0.95rem;
        line-height: 1.8;
        color: #4f5555;
        margin-top: 20px;
    }

    /* بخش سوم - تماس با ما */
    .footer-contact h3 {
        font-size: 1.4rem;
        margin-bottom: 12px;
        position: relative;
        padding-bottom: 10px;
    }

        .footer-contact h3::after {
            content: '';
            position: absolute;
            right: 0;
            bottom: 0;
            width: 110px;
            height: 2px;
            background: #abe0e4;
        }

    .footer-contact ul {
        list-style: none;
        margin-top: 20px;
    }

        .footer-contact ul li {
            margin-bottom: 12px;
            font-size: 0.95rem;
            color: #4f5555;
        }

            .footer-contact ul li i {
                color: #e74c3c;
                margin-left: 8px;
            }

    /* شبکه‌های اجتماعی */
    .social-links {
        display: flex;
        gap: 12px;
        margin-top: 20px;
    }

        .social-links a {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 42px;
            height: 42px;
            background: #231f20;
            color: #4f5555;
            border-radius: 50%;
            transition: all 0.3s;
        }

            .social-links a img {
                width: 3em;
            }

            .social-links a:hover {
                background: #231f20;
                transform: translateY(-5px);
            }

    /* بخش چهارم - تصویر و کپی‌رایت */
    .footer-image {
        text-align: center;
    }

        .footer-image img {
            width: 10em;
            border-radius: 12px;
        }

    .copyright-line {
        height: 2px;
        background: #abe0e4;
        width: 80px;
        margin: 25px auto;
    }

    .copyright-text {
        font-size: 0.9rem;
        color: #999;
        margin-top: 15px;
    }

    @media (max-width: 992px) {
        .footer-container {
            grid-template-columns: 0.5fr 1fr;
        }

        .footer-image {
            grid-column: span 2;
        }
    }

    @media (max-width: 600px) {
        .footer-container {
            grid-template-columns: 1fr;
        }

        .footer-image {
            grid-column: span 1;
        }
    }







    /*cart*/


    /* ================== سبد خرید - صفحه کامل ================== */
    .cart-page {
        padding: 90px 5% 60px;
        direction: rtl;
        font-family: inherit;
        background: #f8fbfc;
        min-height: 80vh;
        margin-top: 5em;
    }

    .cart-container {
        max-width: 1400px;
        margin: 0 auto;
        display: flex;
        gap: 30px;
        flex-wrap: wrap;
        flex-direction: row-reverse;
    }

    /* ============= لیست دوره‌ها ============= */
    .cart-items {
        flex: 2;
        min-width: 300px;
        background: white;
        border-radius: 16px;
        padding: 25px;
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
        border: 1px solid #e6eff0;
    }

    .cart-list {
        display: flex;
        flex-direction: column;
        gap: 18px;
    }

    /* کارت دوره */
    .cart-item {
        background: #f8fbfc;
        border-radius: 14px;
        padding: 20px;
        display: flex;
        align-items: center;
        gap: 16px;
        position: relative;
        transition: all 0.35s ease;
        border: 1px solid #e6eff0;
        flex-wrap: wrap;
    }

        .cart-item:hover {
            transform: translateY(-6px);
            box-shadow: 0 16px 35px rgba(14, 197, 213, 0.18);
            border-color: #0ec5d5;
            background: #ffffff;
        }

    .item-image {
        width: 90px;
        height: 90px;
        object-fit: cover;
        border-radius: 12px;
        flex-shrink: 0;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }

    .item-details {
        flex: 1;
        min-width: 200px;
    }

    .item-title {
        font-weight: 700;
        font-size: 17px;
        color: #003e45;
        margin: 0 0 8px;
        line-height: 1.4;
    }

    .item-instructor {
        font-size: 14px;
        color: #555;
        display: flex;
        align-items: center;
        gap: 6px;
        margin: 0;
    }

        .item-instructor svg {
            width: 16px;
            height: 16px;
            fill: #0ec5d5;
        }

    /* قیمت‌ها */
    .item-pricing {
        text-align: left;
        font-size: 14px;
        min-width: 160px;
    }

    .price-row {
        display: flex;
        justify-content: space-between;
        margin: 6px 0;
        color: #003e45;
    }

        .price-row span:first-child {
            color: #666;
            font-weight: 500;
        }

        .price-row.discount span:last-child {
            color: #e74c3c;
            font-weight: 600;
        }

        .price-row.final {
            font-weight: bold;
            color: #0ec5d5;
            font-size: 15px;
        }

            .price-row.final strong {
                font-size: 16px;
            }

    /* دکمه حذف */
    .btn-delete {
        position: absolute;
        top: -12px;
        left: -10px;
        background: #ff4757;
        color: white;
        width: 32px;
        height: 32px;
        border: none;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: all 0.3s ease;
        z-index: 10;
        padding: 0;
    }

        .btn-delete:hover {
            background: #ff3742;
            transform: scale(1.12) rotate(90deg);
            box-shadow: 0 4px 12px rgba(255, 71, 87, 0.4);
        }

        .btn-delete svg {
            width: 16px;
            height: 16px;
        }

    /* ============= خلاصه سفارش ============= */
    .cart-summary {
        flex: 1;
        min-width: 300px;
        background: white;
        border-radius: 16px;
        padding: 28px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        border: 1px solid rgba(14, 197, 213, 0.2);
        height: fit-content;
        position: sticky;
        top: 100px;
    }

    .summary-form h4 {
        font-size: 17px;
        color: #003e45;
        margin-bottom: 16px;
        font-weight: 700;
        position: relative;
        padding-bottom: 8px;
    }

        .summary-form h4::after {
            content: '';
            position: absolute;
            right: 0;
            bottom: 0;
            width: 40px;
            height: 2px;
            background: #0ec5d5;
            border-radius: 2px;
        }

    /* کد تخفیف */
    .discount-section {
        display: flex;
        gap: 10px;
        margin-bottom: 25px;
        flex-wrap: wrap;
    }

    .input-discount {
        flex: 1;
        min-width: 180px;
        padding: 13px 18px;
        border: 1.5px solid #ddd;
        border-radius: 50px;
        font-size: 15px;
        outline: none;
        transition: all 0.3s ease;
        background: #f9f9f9;
    }

        .input-discount:focus {
            border-color: #0ec5d5;
            background: white;
            box-shadow: 0 0 0 4px rgba(14, 197, 213, 0.15);
        }

    .btn-apply-discount {
        background: #0ec5d5;
        color: white;
        border: none;
        padding: 13px 22px;
        border-radius: 50px;
        font-weight: bold;
        font-size: 15px;
        cursor: pointer;
        transition: all 0.3s ease;
        white-space: nowrap;
    }

        .btn-apply-discount:hover {
            background: #00a6b5;
            transform: translateY(-2px);
            box-shadow: 0 6px 15px rgba(14, 197, 213, 0.3);
        }

    /* روش پرداخت */
    .payment-method,
    .payment-gateway {
        margin-bottom: 22px;
    }

    .radio-label {
        display: flex;
        align-items: center;
        gap: 10px;
        font-size: 15px;
        color: #003e45;
        cursor: pointer;
        padding: 10px 0;
        transition: color 0.2s;
    }

        .radio-label input[type="radio"] {
            accent-color: #0ec5d5;
            width: 18px;
            height: 18px;
        }

        .radio-label:hover {
            color: #0ec5d5;
        }

        .radio-label input:disabled + span {
            color: #aaa;
            cursor: not-allowed;
        }

    /* خلاصه قیمت */
    .summary-total {
        border-top: 2px dashed #e0e8e9;
        padding-top: 20px;
        margin-top: 20px;
    }

    .total-row {
        display: flex;
        justify-content: space-between;
        font-size: 16px;
        margin-bottom: 12px;
        font-weight: 600;
        color: #003e45;
    }

    .final-price {
        text-align: center;
        font-size: 18px;
        font-weight: bold;
        color: #0ec5d5;
        margin: 18px 0 22px;
    }

        .final-price strong {
            font-size: 20px;
        }

    /* دکمه پرداخت */
    .btn-pay {
        width: 100%;
        background: #ffd700;
        color: #003e45;
        border: none;
        padding: 16px;
        border-radius: 50px;
        font-size: 18px;
        font-weight: bold;
        cursor: pointer;
        transition: all 0.4s ease;
        box-shadow: 0 8px 20px rgba(255, 215, 0, 0.3);
    }

        .btn-pay:hover {
            background: #ffed4e;
            transform: translateY(-4px);
            box-shadow: 0 14px 28px rgba(255, 215, 0, 0.4);
        }

        .btn-pay:active {
            transform: translateY(-2px);
        }

    /* ============= سبد خالی ============= */
    .cart-empty {
        text-align: center;
        padding: 90px 30px;
        color: #666;
    }

        .cart-empty img {
            width: 130px;
            margin-bottom: 25px;
            opacity: 0.75;
            filter: grayscale(20%);
        }

        .cart-empty h2 {
            font-size: 26px;
            color: #003e45;
            margin: 18px 0;
            font-weight: 700;
        }

    .text-muted {
        font-size: 16px;
        color: #888;
        margin-bottom: 30px;
        line-height: 1.6;
    }

    .btn-primary {
        display: inline-flex;
        align-items: center;
        gap: 10px;
        background: #0ec5d5;
        color: white;
        padding: 14px 36px;
        border-radius: 50px;
        text-decoration: none;
        font-weight: bold;
        font-size: 17px;
        transition: all 0.3s ease;
        box-shadow: 0 8px 22px rgba(14, 197, 213, 0.3);
    }

        .btn-primary:hover {
            background: #00a6b5;
            transform: translateY(-4px);
            box-shadow: 0 12px 28px rgba(14, 197, 213, 0.4);
        }

    /* ============= ریسپانسیو ============= */
    @media (max-width: 992px) {
        .cart-container {
            flex-direction: column;
        }

        .cart-summary {
            position: static;
            order: -1;
        }

        .cart-item {
            flex-direction: column;
            text-align: center;
            padding: 22px;
        }

        .item-image {
            width: 110px;
            height: 110px;
        }

        .item-pricing {
            text-align: center;
            width: 100%;
        }

        .price-row {
            justify-content: center;
            gap: 15px;
        }
    }

    @media (max-width: 600px) {
        .cart-page {
            padding: 70px 5% 50px;
        }

        .cart-items,
        .cart-summary {
            padding: 20px;
        }

        .discount-section {
            flex-direction: column;
        }

        .input-discount,
        .btn-apply-discount {
            width: 100%;
        }

        .btn-pay,
        .btn-primary {
            font-size: 16px;
            padding: 14px;
        }

        .cart-empty h2 {
            font-size: 22px;
        }
    }

    /*cart*/


    /*contact us*/
    /* ================== صفحه تماس با ما ================== */
    .contact-page {
        padding: 90px 5% 70px;
        direction: rtl;
        background: linear-gradient(135deg, #f8fbfc 0%, #dae8e9 100%);
        min-height: 100vh;
        font-family: inherit;
        margin-top: 7em;
    }

    .contact-container {
        max-width: 1400px;
        margin: 0 auto;
        display: flex;
        gap: 40px;
        flex-wrap: wrap;
        align-items: flex-start;
    }

    /* ============= اطلاعات تماس ============= */
    .contact-info {
        flex: 1.4;
        min-width: 300px;
    }

    .info-header {
        text-align: center;
        margin-bottom: 35px;
        color: #003e45;
    }

        .info-header h2 {
            font-size: 36px;
            font-weight: 900;
            margin-bottom: 12px;
            position: relative;
            display: inline-block;
        }

            .info-header h2::after {
                content: '';
                position: absolute;
                bottom: -8px;
                left: 50%;
                transform: translateX(-50%);
                width: 80px;
                height: 4px;
                background: linear-gradient(to right, #0ec5d5, #ffd700);
                border-radius: 2px;
            }

        .info-header p {
            font-size: 17px;
            color: #555;
        }

    /* کارت‌ها */
    .contact-card {
        background: white;
        border-radius: 18px;
        padding: 24px;
        margin-bottom: 20px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
        border: 1px solid rgba(14, 197, 213, 0.15);
        transition: all 0.4s ease;
    }

        .contact-card:hover {
            transform: translateY(-8px);
            box-shadow: 0 20px 40px rgba(14, 197, 213, 0.2);
            border-color: #0ec5d5;
        }

        .contact-card.main {
            background: linear-gradient(135deg, #0ec5d5, #00a6b5);
            color: white;
            margin-bottom: 30px;
        }

            .contact-card.main .card-header svg {
                fill: #ffd700;
            }

            .contact-card.main h3,
            .contact-card.main ul li strong,
            .contact-card.main ul li {
                color: white;
            }

    .card-header {
        display: flex;
        align-items: center;
        gap: 12px;
        margin-bottom: 16px;
        font-weight: bold;
    }

        .card-header .icon {
            width: 28px;
            height: 28px;
            fill: #0ec5d5;
            flex-shrink: 0;
        }

        .card-header h3 {
            font-size: 18px;
            color: #003e45;
            margin: 0;
        }

    .contact-card ul {
        list-style: none;
        padding: 0;
        margin: 0;
        font-size: 15px;
        line-height: 2;
    }

        .contact-card ul li {
            color: #444;
            display: flex;
            align-items: center;
            gap: 8px;
        }

            .contact-card ul li strong {
                color: #003e45;
                min-width: 90px;
            }

    .name {
        font-weight: bold;
        color: #0ec5d5;
        margin: 8px 0 12px;
        font-size: 16px;
    }

    .contact-team {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
        gap: 20px;
    }

    /* ============= فرم تماس ============= */
    .contact-form {
        flex: 1;
        min-width: 300px;
        background: white;
        border-radius: 20px;
        padding: 32px;
        box-shadow: 0 12px 35px rgba(0, 0, 0, 0.1);
        border: 1px solid rgba(14, 197, 213, 0.2);
    }

    .form-header {
        text-align: center;
        margin-bottom: 28px;
        color: #003e45;
    }

        .form-header h3 {
            font-size: 26px;
            font-weight: 800;
            margin-bottom: 10px;
        }

        .form-header p {
            color: #666;
            font-size: 16px;
        }

    .form-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 18px;
        margin-bottom: 18px;
    }

    .input-group {
        position: relative;
    }

        .input-group.full {
            grid-column: span 2;
        }

        .input-group.textarea {
            grid-column: span 2;
        }

    .input-icon {
        position: absolute;
        right: 16px;
        top: 50%;
        transform: translateY(-50%);
        width: 20px;
        height: 20px;
        fill: #0ec5d5;
        pointer-events: none;
        z-index: 2;
    }

    .input-group input,
    .input-group textarea {
        width: 100%;
        padding: 16px 50px 16px 16px;
        border: 1.5px solid #ddd;
        border-radius: 50px;
        font-size: 15px;
        outline: none;
        transition: all 0.3s ease;
        background: #f9fbfc;
        font-family: inherit;
    }

    .input-group textarea {
        border-radius: 16px;
        padding: 16px;
        min-height: 120px;
        resize: vertical;
    }

        .input-group input:focus,
        .input-group textarea:focus {
            border-color: #0ec5d5;
            background: white;
            box-shadow: 0 0 0 4px rgba(14, 197, 213, 0.15);
        }

        .input-group input::placeholder,
        .input-group textarea::placeholder {
            color: #aaa;
        }

    .text-danger {
        font-size: 13px;
        color: #e74c3c;
        margin-top: 6px;
        display: block;
    }

    /* دکمه ارسال */
    .btn-submit {
        width: 100%;
        background: linear-gradient(135deg, #0ec5d5, #00a6b5);
        color: white;
        border: none;
        padding: 16px;
        border-radius: 50px;
        font-size: 18px;
        font-weight: bold;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        margin-top: 20px;
        transition: all 0.4s ease;
        box-shadow: 0 8px 25px rgba(14, 197, 213, 0.3);
    }

        .btn-submit:hover {
            background: linear-gradient(135deg, #00a6b5, #008c9a);
            transform: translateY(-4px);
            box-shadow: 0 14px 30px rgba(14, 197, 213, 0.4);
        }

        .btn-submit .arrow {
            width: 20px;
            height: 20px;
            fill: white;
            transition: transform 0.3s ease;
        }

        .btn-submit:hover .arrow {
            transform: translateX(6px);
        }

    /* ============= ریسپانسیو ============= */
    @media (max-width: 992px) {
        .contact-container {
            flex-direction: column;
        }

        .info-header h2 {
            font-size: 32px;
        }

        .contact-team {
            grid-template-columns: 1fr;
        }
    }

    @media (max-width: 600px) {
        .contact-page {
            padding: 70px 5% 50px;
        }

        .form-grid {
            grid-template-columns: 1fr;
        }

        .input-group.full,
        .input-group.textarea {
            grid-column: span 1;
        }

        .contact-card,
        .contact-form {
            padding: 20px;
        }

        .info-header h2 {
            font-size: 28px;
        }

        .btn-submit {
            font-size: 16px;
            padding: 14px;
        }
    }

    /*blog*/
    /* ================== صفحه مقالات ================== */
    .blog-page {
        padding: 90px 5% 70px;
        direction: rtl;
        background: #f8fbfc;
        min-height: 100vh;
        font-family: inherit;
        margin-top: 5em;
    }

    .blog-container {
        max-width: 1400px;
        margin: 0 auto;
    }

    /* عنوان صفحه */
    .page-header {
        text-align: center;
        margin-bottom: 50px;
        color: #003e45;
    }

        .page-header h1 {
            font-size: 38px;
            font-weight: 900;
            margin-bottom: 14px;
            position: relative;
            display: inline-block;
        }

            .page-header h1::after {
                content: '';
                position: absolute;
                bottom: -10px;
                left: 50%;
                transform: translateX(-50%);
                width: 90px;
                height: 4px;
                background: linear-gradient(to right, #0ec5d5, #ffd700);
                border-radius: 2px;
            }

        .page-header p {
            font-size: 18px;
            color: #555;
            max-width: 700px;
            margin: 0 auto;
            line-height: 1.6;
        }

    /* گرید مقالات */
    .blog-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
        gap: 28px;
        margin-bottom: 50px;
    }

    /* کارت مقاله */
    .blog-card {
        background: white;
        border-radius: 18px;
        overflow: hidden;
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
        transition: all 0.4s ease;
        border: 1px solid rgba(14, 197, 213, 0.15);
        height: 100%;
        display: flex;
        flex-direction: column;
    }

        .blog-card:hover {
            transform: translateY(-10px);
            box-shadow: 0 20px 40px rgba(14, 197, 213, 0.2);
            border-color: #0ec5d5;
        }

    .card-link {
        display: flex;
        flex-direction: column;
        height: 100%;
        text-decoration: none;
        color: inherit;
    }

    .card-image {
        position: relative;
        height: 200px;
        overflow: hidden;
    }

        .card-image img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.5s ease;
        }

    .blog-card:hover .card-image img {
        transform: scale(1.08);
    }

    .image-overlay {
        position: absolute;
        inset: 0;
        background: linear-gradient(transparent, rgba(0,0,0,0.4));
        opacity: 0;
        transition: opacity 0.3s;
    }

    .blog-card:hover .image-overlay {
        opacity: 1;
    }

    .card-content {
        padding: 22px;
        display: flex;
        flex-direction: column;
        flex: 1;
    }

    .card-title {
        font-size: 18px;
        font-weight: 700;
        color: #003e45;
        margin: 0 0 12px;
        line-height: 1.5;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .card-excerpt {
        font-size: 15px;
        color: #555;
        line-height: 1.7;
        margin: 0 0 16px;
        flex: 1;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .card-meta {
        display: flex;
        justify-content: space-between;
        align-items: center;
        font-size: 14px;
        color: #777;
        margin-top: auto;
    }

    .meta-item {
        display: flex;
        align-items: center;
        gap: 6px;
    }

        .meta-item .icon {
            width: 16px;
            height: 16px;
            fill: #0ec5d5;
        }

    /* حالت خالی */
    .empty-state {
        text-align: center;
        padding: 80px 20px;
        color: #666;
        grid-column: 1 / -1;
    }

        .empty-state img {
            width: 120px;
            margin-bottom: 20px;
            opacity: 0.7;
        }

        .empty-state h3 {
            font-size: 24px;
            color: #003e45;
            margin: 15px 0;
        }

        .empty-state p {
            margin-bottom: 25px;
            font-size: 16px;
        }

    /* پگی‌نیشن */
    .pagination-container {
        display: flex;
        justify-content: center;
    }

    .pagination {
        display: flex;
        gap: 8px;
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .page-item {
        margin: 0;
    }

    .page-link {
        display: flex;
        align-items: center;
        gap: 6px;
        padding: 10px 16px;
        background: white;
        color: #003e45;
        border-radius: 50px;
        font-size: 15px;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.3s ease;
        text-decoration: none;
        min-width: 44px;
        justify-content: center;
    }

        .page-link:hover {
            background: #0ec5d5;
            color: white;
            border-color: #0ec5d5;
            transform: translateY(-2px);
            box-shadow: 0 6px 15px rgba(14, 197, 213, 0.3);
        }

        .page-link svg {
            width: 16px;
            height: 16px;
            fill: currentColor;
        }

    .page-item.active .page-link {
        background: #0ec5d5;
        color: white;
        border-color: #0ec5d5;
        cursor: default;
        box-shadow: 0 4px 12px rgba(14, 197, 213, 0.3);
    }

    .page-item.disabled .page-link {
        color: #aaa;
        cursor: not-allowed;
        background: #f5f5f5;
    }

    .page-item.prev .page-link,
    .page-item.next .page-link {
        font-weight: bold;
    }

    /* ریسپانسیو */
    @media (max-width: 992px) {
        .blog-grid {
            grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
            gap: 24px;
        }

        .page-header h1 {
            font-size: 32px;
        }
    }

    @media (max-width: 600px) {
        .blog-page {
            padding: 70px 5% 50px;
        }

        .page-header h1 {
            font-size: 28px;
        }

        .page-header p {
            font-size: 16px;
        }

        .card-content {
            padding: 18px;
        }

        .card-title {
            font-size: 17px;
        }

        .pagination {
            flex-wrap: wrap;
            justify-content: center;
        }

        .page-link {
            padding: 8px 12px;
            font-size: 14px;
        }
    }

    #divvideo video {
        width: 100%;
    }