/* ============================================ */
/* Import Font - Vazirmatn */
/* ============================================ */
@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@400;500;700;800&display=swap');

/* ============================================ */
/* تنظیمات پایه و ریست */
/* ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}



:root {
    /* پالت رنگی */
    --primary-dark: rgb(22, 46, 81);
    --primary-teal: rgb(49, 183, 176);
    --secondary-gray: rgb(169, 164, 152);
    --white: #FFFFFF;
    --light-gray: #F8F9FA;

    /* فونت */
    --font-family: 'Vazirmatn', sans-serif;

    /* سایز فونت‌ها */
    --font-xl: 3rem;
    --font-lg: 2.5rem;
    --font-md: 1.5rem;
    --font-base: 1rem;
    --font-sm: 0.875rem;

    /* فاصله‌ها */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;

    /* انیمیشن */
    --transition: all 0.3s ease;
}


html {
    overflow-x: hidden !important;
    width: 100% !important;
    max-width: 100% !important;
}



body {
    overflow-x: hidden !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    font-family: var(--font-family);
    line-height: 1.7;
    color: var(--primary-dark);
    direction: rtl;
    overflow-x: hidden;
}







.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ============================================ */
/* دکمه‌های اصلی */
/* ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: var(--font-base);
    cursor: pointer;
    border: none;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--primary-teal);
    color: var(--primary-dark);
}

.btn-primary:hover {
    background-color: #3ab5aa;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(49, 183, 176, 0.3);
}

.btn-secondary {
    background-color: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-secondary:hover {
    background-color: var(--white);
    color: var(--primary-dark);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-teal);
    border: 2px solid var(--primary-teal);
}

.btn-outline:hover {
    background-color: var(--primary-teal);
    color: var(--white);
}

/* ============================================ */
/* هدر و ناوبری */
/* ============================================ */
.header {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    background-color: transparent;
    transition: var(--transition);
}

.header.scrolled {
    background-color: var(--primary-dark);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding: 1rem 0;
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* سمت راست: همبرگر + لوگو */
.nav-right {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.logo a {
    font-size: var(--font-md);
    font-weight: 800;
    color: var(--white);
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-menu {
    display: flex;
    gap: var(--spacing-md);
}

.nav-link {
    color: var(--white);
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-teal);
    transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-teal);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-icons {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}


.nav-item-dropdown {
    position: relative;
}

.nav-item-dropdown .nav-link {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.nav-item-dropdown .nav-link i {
    font-size: 0.8rem;
    transition: var(--transition);
}

.nav-item-dropdown:hover .nav-link i {
    transform: rotate(180deg);
}

/* منوی کشویی */
.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: var(--primary-dark);
    min-width: 220px;
    border-radius: 15px;
    padding: var(--spacing-sm);
    margin-top: 1rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    z-index: 1000;
}

.nav-item-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -8px;
    right: 20px;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid var(--primary-dark);
}

.dropdown-link {
    display: block;
    padding: 0.8rem 1rem;
    color: var(--light-gray);
    font-size: var(--font-sm);
    border-radius: 10px;
    transition: var(--transition);
    position: relative;
}

.dropdown-link::before {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 2px;
    background-color: var(--primary-teal);
    transition: var(--transition);
}

.dropdown-link:hover {
    background-color: rgba(49, 183, 176, 0.1);
    color: var(--primary-teal);
    padding-right: 1.5rem;
}

.dropdown-link:hover::before {
    width: 8px;
    right: 0.5rem;
}


.nav-menu .has-dropdown {
    position: relative;
}
.nav-menu .dropdown {
    display: none;
    position: absolute;
    right: 0; /* اگر راست‌چین هستی (فارسی) */
    background: var(--primary-dark);
    min-width: 150px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    z-index: 10;
}
.nav-menu .has-dropdown:hover .dropdown {
    display: block;
}
.nav-menu .dropdown li {
    list-style: none;
}
.nav-menu .dropdown a {
    padding: 10px;
    display: block;
    color: #ffffff;
    text-decoration: none;
    border-bottom: 1px solid #eee;
}
.nav-menu .dropdown a:last-child {
    border-bottom: none;
}

.icon-btn {
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition);
    padding: 0.5rem;
}

.icon-btn:hover {
    color: var(--primary-teal);
    transform: scale(1.1);
}

/* دکمه همبرگر (موبایل) */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--white);
    border-radius: 3px;
    transition: var(--transition);
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}






/* ============================================ */
/* بخش Hero با ویدیو پس‌زمینه */
/* ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding-top: 80px;
}

/* ویدیوی پس‌زمینه */
.hero-video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
            135deg,
            rgba(22, 46, 81, 0.85) 0%,
            rgba(15, 40, 71, 0.75) 100%
    );
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    text-align: center;
    margin: 0 auto;
}

.hero-title {
    font-size: var(--font-xl);
    font-weight: 800;
    color: var(--white);
    margin-bottom: var(--spacing-md);
    line-height: 1.2;
}

.hero-title .highlight {
    color: var(--primary-teal);
}

.hero-description {
    font-size: 1.25rem;
    color: var(--light-gray);
    margin-bottom: var(--spacing-lg);
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    flex-wrap: wrap;
}

/* ============================================ */
/* بخش دوره ویژه */
/* ============================================ */
.featured-course {
    padding: var(--spacing-xl) 0;
    background-color: var(--white);
}

.course-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    align-items: center;
}

.course-image {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.1);
    width: 100%;
    aspect-ratio: 768 / 430;
}

.course-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: var(--transition);
}

.course-image:hover img {
    transform: scale(1.05);
}

.course-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background-color: var(--primary-teal);
    color: var(--primary-dark);
    padding: 0.5rem 1.5rem;
    border-radius: 30px;
    font-weight: 700;
    font-size: var(--font-sm);
    z-index: 2;
}

.course-content {
    padding: var(--spacing-md);
}

.course-tag {
    display: inline-block;
    background-color: rgba(49, 183, 176, 0.1);
    color: var(--primary-teal);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: var(--font-sm);
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
}

.course-title {
    font-size: var(--font-lg);
    font-weight: 800;
    color: var(--primary-dark);
    margin-bottom: var(--spacing-xs);
}

.course-subtitle {
    font-size: var(--font-md);
    color: var(--secondary-gray);
    margin-bottom: var(--spacing-md);
    font-weight: 500;
}

.course-features {
    margin-bottom: var(--spacing-md);
}

.course-features li {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-sm);
    font-size: 1.1rem;
}

.course-features i {
    color: var(--primary-teal);
    font-size: 1.2rem;
}

.course-actions {
    display: flex;
    gap: var(--spacing-md);
    flex-wrap: wrap;
}

/* ============================================ */
/* بخش ویدیو */
/* ============================================ */
.video-section {
    padding: var(--spacing-xl) 0;
    background-color: var(--light-gray);
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.section-title {
    font-size: var(--font-lg);
    font-weight: 800;
    color: var(--primary-dark);
    margin-bottom: var(--spacing-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
}

.section-title i {
    color: var(--primary-teal);
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--secondary-gray);
}

.video-wrapper {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: var(--spacing-md);
}

.main-video {
    background-color: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: var(--spacing-md);
}

.video-thumbnail {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: var(--spacing-sm);
    width: 100%;
    aspect-ratio: 768 / 430;
    background-color: var(--light-gray);
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background-color: rgba(49, 183, 176, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.play-button:hover {
    background-color: var(--primary-teal);
    transform: translate(-50%, -50%) scale(1.1);
}

.play-button i {
    font-size: 2rem;
    color: var(--white);
    margin-left: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: var(--spacing-xs);
}

.video-meta {
    color: var(--secondary-gray);
    font-size: var(--font-sm);
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    flex-wrap: wrap;
}

.dot {
    margin: 0 var(--spacing-xs);
}

/* لیست ویدیوهای کوچک */
.video-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.video-item {
    background-color: var(--white);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm);
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.video-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.video-item-thumbnail {
    position: relative;
    width: 150px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 768 / 430;
    background-color: var(--light-gray);
}

.video-item-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.video-duration {
    position: absolute;
    bottom: 5px;
    left: 5px;
    background-color: rgba(0, 0, 0, 0.8);
    color: var(--white);
    padding: 0.2rem 0.5rem;
    border-radius: 5px;
    font-size: 0.75rem;
    font-weight: 600;
}

.video-item-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.video-item-content h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-dark);
    margin-bottom: 0.3rem;
    line-height: 1.4;
}

.video-item-views {
    font-size: var(--font-sm);
    color: var(--secondary-gray);
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

/* ============================================ */
/* بخش پادکست */
/* ============================================ */
.podcast-section {
    padding: var(--spacing-xl) 0;
    background-color: var(--primary-dark);
    color: var(--white);
}

.podcast-section .section-title {
    color: var(--white);
}

.podcast-section .section-subtitle {
    color: var(--light-gray);
}

.podcast-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-md);
}

.podcast-card {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.podcast-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    background-color: rgba(255, 255, 255, 0.08);
}

.podcast-cover {
    width: 100%;
    aspect-ratio: 768 / 430;
    overflow: hidden;
    background-color: rgba(255, 255, 255, 0.03);
}

.podcast-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: var(--transition);
}

.podcast-card:hover .podcast-cover img {
    transform: scale(1.05);
}

.podcast-content {
    padding: var(--spacing-md);
}

.podcast-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--white)!important;
    margin-bottom: var(--spacing-sm);
    line-height: 1.3;
}

.podcast-description {
    font-size: var(--font-sm);
    color: var(--light-gray)!important;
    line-height: 1.6;
    margin-bottom: var(--spacing-md);
}

/* پلیر پادکست */
.podcast-player {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.play-pause-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--primary-teal);
    border: none;
    color: var(--primary-dark);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    flex-shrink: 0;
}

.play-pause-btn:hover {
    background-color: #3ab5aa;
    transform: scale(1.1);
}

.play-pause-btn i {
    font-size: 1rem;
    margin-left: 3px;
}

.progress-bar {
    flex: 1;
    height: 6px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
}

.progress {
    height: 100%;
    background-color: var(--primary-teal);
    border-radius: 10px;
    transition: width 0.3s ease;
}

.time {
    font-size: var(--font-sm);
    color: var(--secondary-gray);
    flex-shrink: 0;
    min-width: 40px;
    text-align: center;
}

/* ============================================ */
/* بخش‌های محتوایی (مقالات) */
/* ============================================ */
.content-section {
    padding: var(--spacing-xl) 0;
    background-color: var(--white);
}

.content-section:nth-child(even) {
    background-color: var(--light-gray);
}

.article-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-md);
}

.article-card {
    background-color: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
}

.article-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.article-image {
    width: 100%;
    aspect-ratio: 768 / 430;
    overflow: hidden;
    background-color: var(--light-gray);
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: var(--transition);
}

.article-card:hover .article-image img {
    transform: scale(1.05);
}

.article-content {
    padding: var(--spacing-md);
}

.article-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: var(--spacing-sm);
    line-height: 1.4;
}

.article-excerpt {
    color: var(--secondary-gray);
    font-size: var(--font-sm);
    line-height: 1.6;
    margin-bottom: var(--spacing-md);
}

.article-link {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    color: var(--primary-teal);
    font-weight: 600;
    font-size: var(--font-sm);
    transition: var(--transition);
}

.article-link:hover {
    gap: var(--spacing-sm);
}

/* بخش خاص دارالفنون خلاقیت */
.creative-section .article-card {
    border-top: 4px solid var(--primary-teal);
}

/* بخش ویژه کودکان */
.kids-section {
    background: linear-gradient(135deg, #ffeaa7 0%, #74b9ff 100%);
}

.kids-title {
    color: #2d3436;
}

.kids-section .section-subtitle {
    color: #636e72;
}

.kids-card {
    border: 3px solid var(--primary-teal);
    background-color: var(--white);
}

.kids-card .article-title {
    color: #e84393;
}

.kids-card .article-link {
    color: #fd79a8;
    font-weight: 700;
}

/* ============================================ */
/* فوتر */
/* ============================================ */
.footer {
    background-color: var(--primary-dark);
    color: var(--white);
    padding: var(--spacing-xl) 0 var(--spacing-md);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.footer-col {
    min-width: 0;
}

.footer-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: var(--spacing-md);
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
}

.footer-title i {
    color: var(--primary-teal);
}

.footer-text {
    color: var(--light-gray);
    line-height: 1.8;
    margin-bottom: var(--spacing-md);
    font-size: var(--font-sm);
}

/* لینک‌های اجتماعی */
.social-links {
    display: flex;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--primary-teal);
    transform: translateY(-3px);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.footer-links li {
    margin: 0;
}

.footer-links a {
    color: var(--light-gray);
    font-size: var(--font-sm);
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
}

.footer-links a:hover {
    color: var(--primary-teal);
    padding-right: var(--spacing-xs);
}

/* خبرنامه */
.footer-newsletter-text {
    color: var(--light-gray);
    margin-bottom: var(--spacing-md);
    font-size: var(--font-sm);
    line-height: 1.6;
}

.newsletter-form {
    display: flex;
    gap: var(--spacing-xs);
}

.newsletter-form input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 30px;
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--white);
    font-family: var(--font-family);
    font-size: var(--font-sm);
    min-width: 0;
}

.newsletter-form input::placeholder {
    color: var(--secondary-gray);
}

.newsletter-form input:focus {
    outline: none;
    border-color: var(--primary-teal);
    background-color: rgba(255, 255, 255, 0.1);
}

.newsletter-form button {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: var(--primary-teal);
    border: none;
    color: var(--primary-dark);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.newsletter-form button:hover {
    background-color: #3ab5aa;
    transform: scale(1.1);
}

/* حق کپی‌رایت */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: var(--spacing-md);
    text-align: center;
    margin-top: var(--spacing-lg);
}

.footer-bottom p {
    color: var(--secondary-gray);
    font-size: var(--font-sm);
}


/* ============================================ */
/* Search Overlay */
/* ============================================ */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(22, 46, 81, 0.98);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.search-overlay.active {
    opacity: 1;
    visibility: visible;
}

.search-overlay-content {
    width: 90%;
    max-width: 700px;
    position: relative;
    animation: searchSlideDown 0.4s ease;
}

@keyframes searchSlideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.search-close-btn {
    position: absolute;
    top: -50px;
    left: 0;
    background: none;
    border: none;
    color: var(--white);
    font-size: 2rem;
    cursor: pointer;
    transition: var(--transition);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-close-btn:hover {
    color: var(--primary-teal);
    transform: rotate(90deg);
}

.search-box {
    background-color: var(--white);
    border-radius: 50px;
    padding: 1.5rem 2rem;
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.search-box i {
    font-size: 1.5rem;
    color: var(--primary-teal);
}

.search-box input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 1.2rem;
    font-family: var(--font-family);
    color: var(--primary-dark);
}

.search-box input::placeholder {
    color: var(--secondary-gray);
}

/* دکمه جستجو */
.search-button-container {
    margin-top: var(--spacing-md);
    display: flex;
    justify-content: center;
}

.search-submit-btn {
    padding: 1rem 3rem;
    font-size: 1.1rem;
    border-radius: 50px;
    background-color: var(--primary-teal);
    color: var(--primary-dark);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    font-weight: 700;
    box-shadow: 0 5px 20px rgba(49, 183, 176, 0.3);
}

.search-submit-btn:hover {
    background-color: #3ab5aa;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(49, 183, 176, 0.4);
}

.search-submit-btn i {
    font-size: 1rem;
}

/* Responsive */
@media (max-width: 576px) {
    .search-overlay-content {
        width: 95%;
    }

    .search-box {
        padding: 1rem 1.5rem;
    }

    .search-box input {
        font-size: 1rem;
    }

    .search-close-btn {
        top: -40px;
        font-size: 1.5rem;
    }

    .search-submit-btn {
        padding: 0.9rem 2rem;
        font-size: 1rem;
        width: 100%;
        justify-content: center;
    }
}




/* ============================================ */
/* دکمه ورود/ثبت‌نام در هدر */
/* ============================================ */
.nav-icons .btn-auth {
    padding: 0.6rem 1.5rem;
    font-size: 0.9rem;
    white-space: nowrap;
}

.nav-icons .btn-auth i {
    font-size: 0.85rem;
}

/* Responsive برای دکمه ورود/ثبت‌نام */
@media (max-width: 768px) {
    .nav-icons .btn-auth {
        padding: 0.5rem 1.2rem;
        font-size: 0.85rem;
    }
}

@media (max-width: 576px) {
    .nav-icons .btn-auth {
        padding: 0.45rem 1rem;
        font-size: 0.8rem;
    }

    .nav-icons .btn-auth span {
        display: none;
    }

    .nav-icons .btn-auth i {
        margin: 0;
    }
}




/* ============================================ */
/* واکنش‌گرایی - Responsive Design */
/* ============================================ */

/* تبلت (992px و کمتر) */
@media (max-width: 992px) {
    :root {
        --font-xl: 2.5rem;
        --font-lg: 2rem;
        --font-md: 1.3rem;
    }

    body {
        position: relative !important;
    }

    body.menu-open {
        overflow: hidden !important;
        position: fixed !important;
        width: 100% !important;
    }

    /* اطمینان از عدم تداخل با container آسترا */
    .ast-container,
    .site-content,
    #content {
        overflow-x: hidden !important;
        max-width: 100% !important;
    }

    .container {
        padding: 0 var(--spacing-md);
    }

    /* هدر */
    .navbar {
        position: relative;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        height: 100vh;
        background-color: var(--primary-dark);
        flex-direction: column;
        padding: var(--spacing-lg) var(--spacing-md);
        transition: var(--transition);
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.2);
        padding-top: 100px;
    }

    .nav-menu.active {
        right: 0;
    }

    .hamburger {
        display: flex;
    }

    /* Hero */
    .hero-title {
        font-size: 2.2rem;
    }

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

    /* دوره ویژه */
    .course-wrapper {
        grid-template-columns: 1fr;
    }

    /* ویدیو */
    .video-wrapper {
        grid-template-columns: 1fr;
    }

    /* پادکست */
    .podcast-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* مقالات */
    .article-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* فوتر */
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-lg);
    }
}

/* موبایل (576px و کمتر) */
@media (max-width: 576px) {
    :root {
        --font-xl: 1.8rem;
        --font-lg: 1.5rem;
        --font-md: 1.2rem;
        --spacing-xl: 3rem;
        --spacing-lg: 2rem;
        --spacing-md: 1.5rem;
    }

    .container {
        padding: 0 var(--spacing-sm);
    }

    /* هدر */
    .nav-menu {
        width: 100% !important;
        right: -100% !important;
        left: auto !important;
        transform: none !important;
        margin: 0 !important;
        padding: var(--spacing-lg) var(--spacing-md) !important;
        padding-top: 100px !important;
    }


    .nav-menu.active {
        right: 0 !important;
        left: auto !important;
    }


    .logo a {
        font-size: 1.2rem;
    }

    /* Hero */
    .hero {
        min-height: 80vh;
        padding-top: 100px;
    }

    .hero-title {
        font-size: 1.6rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .hero-buttons {
        gap: var(--spacing-sm);
    }

    .btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }

    /* دوره ویژه */
    .course-wrapper {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }

    .course-title {
        font-size: 1.4rem;
    }

    .course-subtitle {
        font-size: 1.1rem;
    }

    .course-actions {
        flex-direction: column;
    }

    .course-actions .btn {
        width: 100%;
        justify-content: center;
    }

    /* ویدیو */
    .video-wrapper {
        grid-template-columns: 1fr;
    }

    .video-item {
        flex-direction: row;
    }

    .video-item-thumbnail {
        width: 120px;
    }

    /* پادکست */
    .podcast-grid {
        grid-template-columns: 1fr;
    }

    /* مقالات */
    .article-grid {
        grid-template-columns: 1fr;
    }

    /* فوتر */
    .footer {
        padding: var(--spacing-lg) 0 var(--spacing-sm);
    }

    .footer-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-md);
    }

    .footer-grid .footer-col:nth-child(1),
    .footer-grid .footer-col:nth-child(4) {
        grid-column: 1 / -1;
    }

    .footer-col {
        width: 100%;
    }

    .footer-title {
        font-size: 1.2rem;
        margin-bottom: var(--spacing-sm);
    }

    .footer-text {
        margin-bottom: var(--spacing-sm);
    }

    .footer-links {
        gap: 0.7rem;
    }

    .newsletter-form {
        flex-direction: row;
    }

    .newsletter-form input {
        padding: 0.7rem 1rem;
    }

    .newsletter-form button {
        width: 45px;
        height: 45px;
    }

    .footer-bottom {
        margin-top: var(--spacing-md);
        padding-top: var(--spacing-sm);
    }

    .section-title {
        font-size: 1.4rem;
        flex-direction: column;
        gap: var(--spacing-xs);
    }



    .search-overlay-content {
        width: 95%;
    }

    .search-box {
        padding: 1rem 1.5rem;
    }

    .search-box input {
        font-size: 1rem;
    }

    .search-overlay .search-results-list {
        max-height: 300px;
    }


    .search-close-btn {
        top: -40px;
        font-size: 1.5rem;
    }

    .search-submit-btn {
        padding: 0.9rem 2rem;
        font-size: 1rem;
        width: 100%;
        justify-content: center;
    }

}

/* بهینه‌سازی برای دستگاه‌های خیلی کوچک */
@media (max-width: 380px) {
    :root {
        --font-xl: 1.5rem;
        --font-lg: 1.3rem;
        --spacing-md: 1rem;
    }

    .btn {
        padding: 0.7rem 1.2rem;
        font-size: 0.85rem;
    }

    .hero-title {
        font-size: 1.4rem;
    }

    .section-title {
        font-size: 1.2rem;
    }

    .video-item-thumbnail {
        width: 100px;
    }

    .footer-title {
        font-size: 1.1rem;
    }

    .newsletter-form {
        gap: 0.5rem;
    }
}


/* استایل‌های بخش ایده بان */
.ideaban-section {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.ideaban-card {
    border-top: 4px solid #31b7b0;
    position: relative;
    overflow: hidden;
}

.ideaban-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(49, 183, 176, 0.1));
    transition: width 0.4s ease;
}

.ideaban-card:hover::before {
    width: 100%;
}

.ideaban-card .article-title {
    color: #162e51;
    font-weight: 800;
}

.ideaban-card .article-link {
    color: #31b7b0;
    font-weight: 700;
}

.ideaban-card:hover {
    border-top-color: #0f2847;
}

/* بهینه‌سازی سئو */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
}

img {
    max-width: 100%;
    height: auto;
}

/* دسترسی‌پذیری بهتر */
a:focus,
button:focus,
input:focus {
    outline: 2px solid var(--primary-teal);
    outline-offset: 2px;
}

/* بهینه‌سازی برای موتورهای جستجو */
.section-header {
    margin-bottom: var(--spacing-lg);
}

article {
    position: relative;
}




/* ============================================ */
/* کنترل نمایش منو برای دسکتاپ و موبایل (نسخه اصلاح شده) */
/* ============================================ */

/* حالت پیش‌فرض (دسکتاپ - بزرگتر از 992px) */
/* مخفی کردن آیتم‌های لیست مخصوص موبایل */
.nav-menu li.nav-mobile-category {
    display: none;
}

/* نمایش منوی کشویی در دسکتاپ */
.nav-menu li.has-dropdown {
    display: list-item; /* یا block */
}


/* حالت تبلت و موبایل (992px و کوچکتر) */
@media (max-width: 992px) {

    /* مخفی کردن منوی کشویی در موبایل */
    .nav-menu li.has-dropdown {
        display: none;
    }

    /* نمایش آیتم‌های لیست مخصوص موبایل */
    .nav-menu li.nav-mobile-category {
        display: list-item; /* یا block */
    }
}


/* ============================================ */
/* فاصله از بالا برای صفحات غیر از صفحه اصلی */
/* ============================================ */

/* فقط برای صفحات غیر از اصلی */
body.has-fixed-header {
    padding-top: 100px!important;
}

/* در صفحه اصلی padding نداشته باشد */
body:not(.has-fixed-header) {
    padding-top: 0;
}





/* ============================================ */
/* صفحه ورود - هماهنگ با تم اصلی */
/* ============================================ */
.login-section {
    padding: var(--spacing-xl) 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.login-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    background-color: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    max-width: 1100px;
    margin: 0 auto;
}

/* ============================================ */
/* بخش فرم (سمت راست) */
/* ============================================ */
.login-form-container {
    padding: var(--spacing-xl) var(--spacing-lg);
}

.login-header {
    margin-bottom: var(--spacing-lg);
}

.login-title {
    font-size: var(--font-lg);
    font-weight: 800;
    color: var(--primary-dark);
    margin-bottom: var(--spacing-xs);
}

.login-subtitle {
    font-size: 1rem;
    color: var(--secondary-gray);
    line-height: 1.6;
}

/* پیام‌های خطا و موفقیت */
.login-alert {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: 1rem 1.25rem;
    border-radius: 12px;
    margin-bottom: var(--spacing-md);
    font-size: 0.95rem;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.alert-error {
    background-color: #fee;
    border: 2px solid #f66;
    color: #c33;
}

.alert-success {
    background-color: #efe;
    border: 2px solid #6c6;
    color: #363;
}

/* فرم */
.login-form {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.form-label {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--primary-dark);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-label i {
    color: var(--primary-teal);
    font-size: 1rem;
}

.form-input {
    width: 100%;
    padding: 0.95rem 1.25rem;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 1rem;
    font-family: var(--font-family);
    color: var(--primary-dark);
    transition: var(--transition);
    background-color: #fafafa;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-teal);
    background-color: var(--white);
    box-shadow: 0 0 0 4px rgba(49, 183, 176, 0.1);
}

.form-input::placeholder {
    color: var(--secondary-gray);
}

/* رمز عبور با دکمه نمایش */
.password-wrapper {
    position: relative;
}

.password-wrapper .form-input {
    padding-left: 3.5rem;
}

.toggle-password {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--secondary-gray);
    cursor: pointer;
    padding: 0.5rem;
    transition: var(--transition);
}

.toggle-password:hover {
    color: var(--primary-teal);
}

/* گزینه‌های فرم */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
}

.remember-checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    color: var(--primary-dark);
}

.remember-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary-teal);
    cursor: pointer;
}

.forgot-link {
    color: var(--primary-teal);
    font-weight: 600;
    transition: var(--transition);
}

.forgot-link:hover {
    color: #2a9d93;
    text-decoration: underline;
}

/* دکمه ورود */
.btn-login {
    width: 100%;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, var(--primary-teal) 0%, #2a9d93 100%);
    color: var(--white);
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    box-shadow: 0 4px 15px rgba(49, 183, 176, 0.3);
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(49, 183, 176, 0.4);
}

.btn-login:active {
    transform: translateY(0);
}

/* فوتر فرم */
.login-footer {
    text-align: center;
    padding-top: var(--spacing-md);
    border-top: 2px solid #f0f0f0;
    margin-top: var(--spacing-sm);
}

.login-footer p {
    color: var(--secondary-gray);
    font-size: 0.95rem;
}

.register-link {
    color: var(--primary-teal);
    font-weight: 700;
    transition: var(--transition);
}

.register-link:hover {
    color: #2a9d93;
    text-decoration: underline;
}

/* ============================================ */
/* بخش اطلاعات (سمت چپ) */
/* ============================================ */
.login-info-container {
    background: linear-gradient(135deg, var(--primary-dark) 0%, #1a3a5e 100%);
    padding: var(--spacing-xl) var(--spacing-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.login-info-container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(49, 183, 176, 0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.login-info-content {
    position: relative;
    z-index: 1;
    text-align: center;
}


.login-info-content h2 {
    color: white;
}

.login-icon {
    width: 80px;
    height: 80px;
    background: rgba(49, 183, 176, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--spacing-md);
    border: 3px solid rgba(49, 183, 176, 0.3);
}

.login-icon i {
    font-size: 2.5rem;
    color: var(--primary-teal);
}

.login-info-content h2 {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: var(--spacing-sm);
}

.login-info-content p {
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: var(--spacing-lg);
    color: var(--light-gray);
}

.login-features {
    text-align: right;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.login-features li {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-size: 1rem;
}

.login-features i {
    color: var(--primary-teal);
    font-size: 1.2rem;
}

/* ============================================ */
/* واکنش‌گرایی */
/* ============================================ */
@media (max-width: 992px) {
    .login-wrapper {
        grid-template-columns: 1fr;
    }

    .login-info-container {
        order: -1;
        padding: var(--spacing-lg);
    }

    .login-info-content h2 {
        font-size: 1.5rem;
    }

    .login-features {
        text-align: center;
    }

    .login-features li {
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .login-section {
        padding: var(--spacing-md) 0;
    }

    .login-wrapper {
        border-radius: 0;
        box-shadow: none;
    }

    .login-form-container {
        padding: var(--spacing-md);
    }

    .login-title {
        font-size: 1.5rem;
    }

    .form-options {
        flex-direction: column;
        gap: var(--spacing-sm);
        align-items: flex-start;
    }

    .btn-login {
        font-size: 1rem;
        padding: 0.9rem 1.25rem;
    }

    .login-icon {
        width: 60px;
        height: 60px;
    }

    .login-icon i {
        font-size: 2rem;
    }
}


/* ============================================ */
/* صفحه ورود - بدون هدر و فوتر */
/* ============================================ */
body.login-page {
    padding-top: 0 !important;
    margin: 0;
}

.login-section {
    padding: var(--spacing-xl) 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.login-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    background-color: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    max-width: 1100px;
    margin: 0 auto;
}

/* ============================================ */
/* واکنش‌گرایی - مخفی کردن بخش توضیحات در موبایل */
/* ============================================ */
@media (max-width: 992px) {
    .login-wrapper {
        grid-template-columns: 1fr;
    }

    /* مخفی کردن بخش "به جامعه ورانش بپیوندید" در موبایل */
    .login-info-container {
        display: none;
    }

    .login-form-container {
        padding: var(--spacing-lg);
    }
}

@media (max-width: 576px) {
    .login-section {
        padding: var(--spacing-md) 0;
    }

    .login-wrapper {
        border-radius: 0;
        box-shadow: none;
    }

    .login-form-container {
        padding: var(--spacing-md);
    }

    .login-title {
        font-size: 1.5rem;
    }

    .form-options {
        flex-direction: column;
        gap: var(--spacing-sm);
        align-items: flex-start;
    }

    .btn-login {
        font-size: 1rem;
        padding: 0.9rem 1.25rem;
    }
}


/* ============================================ */
/* صفحه فراموشی رمز عبور */
/* ============================================ */

/* نوار پیشرفت */
.progress-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--spacing-lg);
    padding: var(--spacing-md) 0;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    position: relative;
}

.step-number {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: #e0e0e0;
    color: #999;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border: 3px solid #e0e0e0;
}

.progress-step.active .step-number {
    background: linear-gradient(135deg, var(--primary-teal) 0%, #2a9d93 100%);
    color: var(--white);
    border-color: var(--primary-teal);
    box-shadow: 0 4px 15px rgba(49, 183, 176, 0.3);
}

.step-label {
    font-size: 0.85rem;
    color: #999;
    font-weight: 600;
}

.progress-step.active .step-label {
    color: var(--primary-teal);
}

.progress-line {
    width: 80px;
    height: 3px;
    background-color: #e0e0e0;
    margin: 0 1rem;
    position: relative;
    top: -15px;
    transition: all 0.3s ease;
}

.progress-line.active {
    background: linear-gradient(90deg, var(--primary-teal) 0%, #2a9d93 100%);
}

/* راهنمای فرم */
.form-help {
    display: block;
    font-size: 0.85rem;
    color: var(--secondary-gray);
    margin-top: 0.5rem;
}

/* ورودی OTP */
.otp-input {
    text-align: center;
    font-size: 1.8rem;
    letter-spacing: 0.5rem;
    font-weight: 700;
    font-family: monospace;
}

/* تایمر ارسال مجدد */
.resend-timer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background-color: #f8f9fa;
    border-radius: 12px;
    margin-bottom: var(--spacing-md);
}

#timer-text {
    font-size: 0.9rem;
    color: var(--secondary-gray);
}

#countdown {
    font-weight: 700;
    color: var(--primary-teal);
}

.resend-btn {
    background: none;
    border: 2px solid var(--primary-teal);
    color: var(--primary-teal);
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: none;
}

.resend-btn:hover:not(:disabled) {
    background-color: var(--primary-teal);
    color: var(--white);
}

.resend-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* نمایشگر قدرت رمز عبور */
.password-strength {
    margin-bottom: var(--spacing-md);
    padding: 1rem;
    background-color: #f8f9fa;
    border-radius: 12px;
}

.strength-label {
    font-size: 0.9rem;
    color: var(--primary-dark);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.strength-bar {
    width: 100%;
    height: 8px;
    background-color: #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.strength-meter {
    height: 100%;
    width: 0;
    transition: all 0.3s ease;
    border-radius: 10px;
}

.strength-text {
    font-size: 0.85rem;
    font-weight: 600;
    text-align: center;
}

/* واکنش‌گرایی */
@media (max-width: 576px) {
    .progress-steps {
        padding: var(--spacing-sm) 0;
    }

    .step-number {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }

    .step-label {
        font-size: 0.75rem;
    }

    .progress-line {
        width: 40px;
        margin: 0 0.5rem;
    }

    .otp-input {
        font-size: 1.4rem;
        letter-spacing: 0.3rem;
    }

    .resend-timer {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
}




/* ============================================ */
/* صفحه ثبت‌نام - استایل‌های اضافی */
/* ============================================ */

/* چک‌باکس قوانین */
.terms-checkbox {
    margin: var(--spacing-md) 0;
}

.terms-link {
    color: var(--primary-teal);
    font-weight: 600;
    text-decoration: underline;
}

.terms-link:hover {
    color: #2a9d93;
}

/* فرم دو ستونی */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-md);
}

@media (max-width: 576px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

/* موبایل تایید شده */
.verified-mobile {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, #e8f8f5 0%, #d5f4e6 100%);
    border: 2px solid var(--primary-teal);
    border-radius: 12px;
    margin-bottom: var(--spacing-md);
    color: #27ae60;
    font-size: 0.95rem;
}

.verified-mobile i {
    font-size: 1.3rem;
}

/* نکات امنیتی */
.security-tips {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    padding: 1.25rem;
    margin-bottom: var(--spacing-md);
}

.tip-header {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    color: var(--primary-dark);
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: var(--spacing-sm);
}

.tip-header i {
    color: var(--primary-teal);
    font-size: 1.1rem;
}

.tips-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding-right: 1.5rem;
}

.tip-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--secondary-gray);
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.tip-item i {
    font-size: 0.5rem;
    color: #cbd5e0;
}

.tip-item.tip-valid {
    color: #27ae60;
}

.tip-item.tip-valid i {
    color: #27ae60;
    font-size: 0.7rem;
}

/* دکمه موفقیت */
.btn-success {
    background: linear-gradient(135deg, #27ae60 0%, #229954 100%);
    box-shadow: 0 4px 15px rgba(39, 174, 96, 0.3);
}

.btn-success:hover {
    box-shadow: 0 8px 25px rgba(39, 174, 96, 0.4);
}

/* آمار و ارقام */
.stats-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
    padding-top: var(--spacing-lg);
    border-top: 2px solid rgba(255, 255, 255, 0.2);
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary-teal);
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--light-gray);
}

@media (max-width: 992px) {
    .stats-container {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--spacing-sm);
    }

    .stat-number {
        font-size: 1.4rem;
    }

    .stat-label {
        font-size: 0.75rem;
    }
}

@media (max-width: 576px) {
    .security-tips {
        padding: 1rem;
    }

    .tips-list {
        padding-right: 1rem;
    }

    .verified-mobile {
        font-size: 0.85rem;
        padding: 0.85rem 1rem;
    }
}

/* انیمیشن برای نکات معتبر */
@keyframes checkValid {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
    }
}

.tip-item.tip-valid i {
    animation: checkValid 0.3s ease;
}

/* ویژگی‌های اضافه (بیشتر از 4 مورد) */
.login-features li:nth-child(n+5) {
    opacity: 0.9;
}

/* بهبود قابلیت خواندن در بخش اطلاعات */
.login-info-content p strong {
    color: var(--primary-teal);
    font-weight: 800;
}


/* ============================================ */
/* استایل‌های صفحه نوشته تکی با سایدبار         */
/* ============================================ */

.single-post-page .container {
    max-width: 1200px;
    margin: 0 auto;
}

/* ساختار گرید برای محتوا و سایدبار */
.site-content-wrapper.with-sidebar {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 40px;
    padding: var(--spacing-lg) 0;
}

.site-main {
    min-width: 0;
}

/* استایل‌های کلی ویجت‌ها/بخش‌ها در سایدبار */
.sidebar .widget {
    background-color: #fff;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 30px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
}

.sidebar .widget:last-child {
    margin-bottom: 0;
}

.sidebar .widget-title {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--primary-dark);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-teal);
    position: relative;
}

.sidebar .widget-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    right: 0;
    width: 30%;
    height: 2px;
    background-color: var(--primary-dark);
}

/* استایل برای لیست پست‌ها در سایدبار */
.sidebar .widget-posts-list .article-card-sidebar { /* تغییر نام سلکتور */
    display: flex;
    flex-direction: row;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e5e7eb;
}
.sidebar .widget-posts-list .article-card-sidebar:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.sidebar .widget-posts-list .article-thumbnail {
    flex: 0 0 100px;
    width: 100px;
    height: 75px;
    overflow: hidden; /* مهم برای گرد شدن گوشه ها */
    border-radius: 8px; /* *** جدید: گرد کردن گوشه های کانتینر تصویر *** */
}

.sidebar .widget-posts-list .article-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.sidebar .widget-posts-list .article-card-sidebar:hover .article-thumbnail img {
    transform: scale(1.1);
}

.sidebar .widget-posts-list .article-content {
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.sidebar .widget-posts-list .article-title {
    font-size: 0.95rem;
    line-height: 1.4;
    margin-bottom: 8px;
    font-weight: 700;
}

.sidebar .widget-posts-list .article-title a {
    color: var(--primary-dark);
    text-decoration: none;
}

.sidebar .widget-posts-list .article-title a:hover {
    color: var(--primary-teal);
}

.sidebar .widget-posts-list .article-excerpt-sidebar {
    font-size: 0.8rem; /* اندازه فونت کوچکتر برای خلاصه */
    color: #6c757d; /* رنگ خاکستری برای تمایز */
    line-height: 1.5;
}

/* استایل ابزارک بنر دوره */
.widget.varanesh-promo-widget {
    padding: 0;
    background: none;
    border: none;
    box-shadow: none;
}
.promo-banner-widget {
    background-color: var(--primary-dark);
    color: var(--white);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
}
.promo-banner-widget .promo-title {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 15px;
    color: var(--white); /* *** جدید: اصلاح رنگ عنوان بنر *** */
}
.promo-banner-widget .promo-description {
    font-size: 0.9rem;
    color: var(--light-gray);
    line-height: 1.6;
    margin-bottom: 25px;
}
.promo-banner-widget .promo-btn {
    width: 100%;
    justify-content: center;
    background-color: var(--primary-teal);
    color: var(--primary-dark);
}
.promo-banner-widget .promo-btn:hover {
    background-color: #fff;
}

/* واکنش‌گرایی برای تبلت و موبایل */
@media (max-width: 992px) {
    .site-content-wrapper.with-sidebar {
        grid-template-columns: 1fr;
        gap: 50px;
    }
}

.single-post-container .featured-image-container {
    border-radius: 15px; /* میزان گردی گوشه‌ها، می‌توانید این عدد را تغییر دهید */
    overflow: hidden;    /* این خط ضروری است تا خود تصویر از کادر گرد شده بیرون نزند */
    -webkit-transform: translateZ(0); /* ترفندی برای رفع مشکل احتمالی لبه‌های تیز در برخی مرورگرها */
    transform: translateZ(0);
}



/* ============================================ */
/* استایل بخش نظرات سفارشی                   */
/* ============================================ */

.comments-area {
    background-color: #fff;
    border-radius: 15px;
    padding: 30px;
    margin-top: 40px; /* فاصله از محتوای پست */
    border: 1px solid #e5e7eb;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
}

.comments-title,
.comment-reply-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-dark);
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--primary-teal);
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
}

.comments-title::after,
.comment-reply-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    right: 0;
    width: 30%;
    height: 2px;
    background-color: var(--primary-dark);
}

.comment-list {
    list-style: none;
    padding: 0;
    margin: 0 0 30px 0;
}

.comment-list ol,
.comment-list ul {
    list-style: none;
    padding-right: 30px; /* برای تو رفتگی پاسخ‌ها */
}

.comment-body {
    padding: 20px 0;
    border-bottom: 1px solid #e9ecef;
}

.comment-list > .comment:last-child > .comment-body {
    border-bottom: none;
}

.comment-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.comment-author .avatar {
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.comment-author .fn {
    font-weight: 700;
    color: var(--primary-dark);
    font-size: 1.1rem;
}

.comment-author .fn a {
    color: var(--primary-dark);
    text-decoration: none;
}

.comment-author .fn a:hover {
    color: var(--primary-teal);
}

.comment-metadata a {
    font-size: 0.85rem;
    color: var(--secondary-gray);
    text-decoration: none;
    transition: var(--transition);
}

.comment-metadata a:hover {
    color: var(--primary-teal);
}

.comment-content {
    line-height: 1.7;
    color: #34495e;
}

.comment-content p:last-child {
    margin-bottom: 0;
}

.reply .comment-reply-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.85rem;
    color: var(--primary-teal);
    font-weight: 600;
    text-decoration: none;
    padding: 5px 10px;
    border-radius: 5px;
    transition: var(--transition);
    border: 1px solid transparent;
    margin-top: 10px;
}

.reply .comment-reply-link:hover {
    background-color: rgba(49, 183, 176, 0.1);
    border-color: rgba(49, 183, 176, 0.3);
    color: #1e837c;
}

/* فرم ارسال دیدگاه */
.comment-respond-wrapper {
    margin-top: 30px;
}

.comment-notes, .logged-in-as {
    font-size: var(--font-sm);
    color: var(--secondary-gray);
    background: #f8f9fa;
    padding: 10px 15px;
    border-radius: 8px;
    border-left: 3px solid var(--primary-teal);
    margin-bottom: 20px;
}

.logged-in-as a {
    color: var(--primary-teal);
    font-weight: 600;
}

.comment-form .form-group {
    margin-bottom: 15px;
}

.comment-form label {
    display: block;
    font-weight: 600;
    color: var(--primary-dark);
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ced4da;
    border-radius: 8px;
    background-color: #fff;
    color: var(--primary-dark);
    font-family: var(--font-family);
    font-size: var(--font-sm);
    transition: var(--transition);
}

.comment-form input[type="text"]:focus,
.comment-form input[type="email"]:focus,
.comment-form input[type="url"]:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: var(--primary-teal);
    box-shadow: 0 0 0 3px rgba(49, 183, 176, 0.2);
}

.comment-form .form-submit {
    margin-top: 20px;
}

/* استفاده از کلاس‌های دکمه اصلی شما */
.comment-form .submit.btn-primary {
    width: auto;
    min-width: 180px;
    padding: 0.9rem 2rem;
    font-weight: 700;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .comments-area {
        padding: 20px;
    }

    .comment-list ol,
    .comment-list ul {
        padding-right: 15px;
    }

    .comment-form .form-submit .submit.btn-primary {
        width: 100%;
    }
}




/* ============================================ */
/* استایل بخش برچسب‌های پست (Tags)            */
/* ============================================ */

/* کانتینر اصلی که عنوان و لیست تگ‌ها را در بر می‌گیرد */
.post-tags-container {
    display: flex; /* آیتم‌ها را در یک ردیف قرار می‌دهد */
    align-items: center; /* آیتم‌ها را به صورت عمودی در مرکز تراز می‌کند */
    flex-wrap: wrap; /* اگر فضا کم بود، به خط بعدی می‌شکند */
    gap: 15px; /* فاصله بین عنوان و لیست تگ‌ها */
    margin-top: 30px; /* فاصله از محتوای بالای خود */
    padding-top: 20px;
    border-top: 1px solid #e5e7eb; /* یک خط جداکننده زیبا */
}

/* استایل عنوان "برچسب‌ها:" */
.tags-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary-dark);
    flex-shrink: 0; /* جلوگیری از کوچک شدن عنوان در فضاهای کم */
}

/* لیست اصلی تگ‌ها (ul) */
.post-tags-list {
    list-style: none; /* حذف نقطه‌های کنار لیست */
    padding: 0;
    margin: 0;
    display: flex; /* کلید اصلی: تگ‌ها را افقی می‌کند */
    flex-wrap: wrap; /* برای نمایش صحیح در موبایل و تبلت */
    gap: 10px; /* فاصله بین هر تگ */
}

/* استایل هر تگ به صورت مجزا (لینک داخل li) */
.post-tags-list li a {
    display: inline-block;
    background-color: #f0f2f5; /* رنگ پس‌زمینه خنثی و زیبا */
    color: #5a6a7a; /* رنگ متن */
    padding: 6px 15px; /* فاصله داخلی برای ایجاد حجم */
    border-radius: 20px; /* گرد کردن گوشه‌ها برای حالت کپسولی */
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease; /* انیمیشن نرم برای هاور */
    border: 1px solid transparent; /* یک حاشیه نامرئی برای هاور بهتر */
}

/* استایل هاور (وقتی ماوس روی تگ می‌رود) */
.post-tags-list li a:hover {
    background-color: var(--primary-teal); /* استفاده از رنگ اصلی تم شما */
    color: var(--white); /* تغییر رنگ متن به سفید برای کنتراست */
    transform: translateY(-2px); /* کمی حرکت به بالا برای جذابیت */
    box-shadow: 0 4px 10px rgba(49, 183, 176, 0.3); /* سایه زیبا همرنگ با تم */
}



/* ============================================ */
/* استایل های صفحه آرشیو دسته بندی سفارشی      */
/* ============================================ */

/* ----- بخش فیلتر دسته بندی ----- */
.category-filter-section {
    margin-bottom: 40px;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 20px;
}

.category-filter-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap; /* برای شکستن خط در موبایل */
    gap: 15px; /* فاصله بین آیتم ها */
}

.category-filter-nav a {
    display: block;
    padding: 10px 25px;
    border-radius: 50px; /* دکمه های کپسولی شکل */
    background-color: #f5f5f5;
    color: #555;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.category-filter-nav a:hover {
    background-color: #e9e9e9;
    color: #111;
}

/* استایل دکمه فعال */
.category-filter-nav a.active {
    background-color: #0056b3; /* یک رنگ اصلی برای تم شما - میتوانید تغییر دهید */
    color: #ffffff;
    border-color: #004085;
    box-shadow: 0 2px 5px rgba(0, 86, 179, 0.2);
}

/* ----- هدر بخش پست ها ----- */
.posts-display-section .section-header {
    margin-bottom: 30px;
    text-align: center;
}

.posts-display-section .section-title {
    font-size: 2.2rem;
}

/* ----- استایل صفحه بندی (Pagination) ----- */
.pagination-container {
    margin-top: 50px;
    display: flex;
    justify-content: center;
}

.pagination-container .page-numbers {
    display: flex;
    align-items: center;
    gap: 10px;
}

.pagination-container .page-numbers li {
    list-style: none;
}

.pagination-container .page-numbers a,
.pagination-container .page-numbers span {
    display: inline-block;
    padding: 10px 18px;
    border: 1px solid #ddd;
    border-radius: 5px;
    text-decoration: none;
    color: #333;
    transition: all 0.2s ease-in-out;
}

.pagination-container .page-numbers a:hover {
    background-color: #f1f1f1;
    border-color: #ccc;
}

.pagination-container .page-numbers.current,
.pagination-container .page-numbers span.current {
    background-color: #0056b3;
    color: #fff;
    border-color: #0056b3;
}


/* ----- واکنش گرایی ----- */
@media (max-width: 768px) {
    .category-filter-nav ul {
        gap: 10px;
    }
    .category-filter-nav a {
        padding: 8px 18px;
        font-size: 0.9rem;
    }
    .posts-display-section .section-title {
        font-size: 1.8rem;
    }
}


/* ============================================ */
/* استایل صفحه بندی (Pagination) - نسخه اصلاح شده و شیک */
/* ============================================ */

/* کانتینر اصلی صفحه بندی */
.pagination-container {
    margin-top: 60px;
    margin-bottom: 20px;
    padding-top: 30px;
    border-top: 1px solid #e5e7eb; /* جداکننده ظریف از محتوا */
    display: flex;
    justify-content: center;
    align-items: center;
    /* مهم: این خط مشکل چیدمان برعکس در زبان فارسی را حل می کند */
    /*direction: ltr;*/
}

/* این کلاس توسط the_posts_pagination() ساخته می شود و نگهدارنده اصلی لینک هاست */
.pagination-container .nav-links {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap; /* برای نمایش بهتر در موبایل های خیلی کوچک */
    gap: 10px; /* فاصله بین دکمه ها */
}

/* استایل تمام دکمه ها و اعداد (لینک، صفحه فعلی، بعدی/قبلی) */
.pagination-container .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 10px;
    border: 1px solid #d1d5db;
    border-radius: 12px; /* گوشه های گردتر و مدرن تر */
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--primary-dark);
    background-color: #fff;
    transition: all 0.2s ease-in-out;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    font-family: var(--font-family); /* اطمینان از فونت صحیح */
}

/* استایل هاور برای دکمه های قابل کلیک */
.pagination-container a.page-numbers:hover {
    background-color: var(--primary-teal);
    color: var(--white);
    border-color: var(--primary-teal);
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(49, 183, 176, 0.25);
}

/* استایل دکمه صفحه فعلی (مانند عدد 1 در عکس شما) */
.pagination-container .page-numbers.current {
    background-color: var(--primary-dark);
    color: var(--white);
    border-color: var(--primary-dark);
    cursor: default;
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(22, 46, 81, 0.3);
}

/* استایل سه نقطه (...) که گاهی نمایش داده می شود */
.pagination-container .page-numbers.dots {
    background-color: transparent;
    border: none;
    box-shadow: none;
    cursor: default;
    padding: 0 5px;
}

/* استایل دکمه های "بعدی" و "قبلی" برای خوانایی بیشتر */
.pagination-container .next,
.pagination-container .prev {
    font-size: 0.9rem;
    padding: 0 18px;
}



/* ============================================ */
/* چیدمان ستونی برای آرشیوها و نتایج جستجو */
/* ============================================ */

/*
  این سلکتور به CSS می‌گوید:
  هر .posts-grid که داخل یک بادی با کلاس .category است
  و همچنین هر .posts-grid که داخل یک بادی با کلاس .search-results است
  باید این استایل‌ها را بگیرد.
*/
.category .posts-grid,
.search-results .posts-grid,
.tag .posts-grid{
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 ستون در دسکتاپ */
    gap: 30px; /* فاصله بین کارت‌ها */
}

/* واکنش‌گرایی برای تبلت */
@media (max-width: 992px) {
    .category .posts-grid,
    .search-results .posts-grid,
    .tag .posts-grid{
        grid-template-columns: repeat(2, 1fr); /* 2 ستون در تبلت */
    }
}

/* واکنش‌گرایی برای موبایل */
@media (max-width: 576px) {
    .category .posts-grid,
    .search-results .posts-grid,
    .tag .posts-grid{
        grid-template-columns: 1fr; /* 1 ستون در موبایل */
    }
}




/* ============================================ */
/* استایل صفحه 404 (صفحه یافت نشد) */
/* ============================================ */
.error-404-section {
    text-align: center;
    padding: 80px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 200px); /* ارتفاع صفحه را پوشش می‌دهد */
}

.error-404-content {
    max-width: 600px;
    width: 100%;
}

.error-404-title {
    font-size: 10rem;
    font-weight: 900;
    color: var(--primary-teal);
    line-height: 1;
    margin: 0;
    text-shadow: 4px 4px 0px rgba(22, 46, 81, 0.1);
    animation: bounce 1s ease-in-out;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-20px);
    }
    60% {
        transform: translateY(-10px);
    }
}

.error-404-subtitle {
    font-size: 2.2rem;
    color: var(--primary-dark);
    margin-top: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
    font-weight: 700;
}

.error-404-text {
    color: var(--secondary-gray);
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: var(--spacing-lg);
}

.error-404-actions .btn {
    padding: 12px 30px;
    font-size: 1rem;
}

.error-404-actions .search-prompt {
    margin-top: var(--spacing-lg);
    margin-bottom: var(--spacing-sm);
    color: var(--secondary-gray);
}

/* استایل فرم جستجو در صفحه 404 */
.error-404-section .search-form-container {
    max-width: 450px;
    margin: 0 auto;
}

.error-404-section .search-form {
    display: flex;
    border: 1px solid #ddd;
    border-radius: 50px;
    overflow: hidden;
    background-color: #fff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.error-404-section .search-field {
    border: none;
    flex-grow: 1;
    padding: 12px 20px;
    background-color: transparent;
    font-family: var(--font-family);
    color: var(--primary-dark);
    font-size: 1rem;
    width: 100%;
    min-width: 0;
}

.error-404-section .search-field:focus {
    outline: none;
}

.error-404-section .search-submit {
    background-color: var(--primary-dark);
    color: var(--white);
    border: none;
    padding: 0 25px;
    cursor: pointer;
    font-size: 1.1rem;
    transition: var(--transition);
}

.error-404-section .search-submit:hover {
    background-color: var(--primary-teal);
}

/* واکنش‌گرایی برای موبایل */
@media (max-width: 576px) {
    .error-404-title {
        font-size: 7rem;
    }
    .error-404-subtitle {
        font-size: 1.6rem;
    }
    .error-404-text {
        font-size: 1rem;
    }
    .error-404-section {
        padding: 40px 15px;
    }
}





/* ============================================ */
/* دکمه مشاهده بیشتر برای سکشن ها */
/* ============================================ */
.section-view-all-container {
    text-align: center;
    margin-top: 40px; /* فاصله از گرید محتوا */
    padding-bottom: 20px; /* فاصله تا انتهای سکشن */
}

.btn-view-all {
    display: inline-block;
    padding: 12px 35px;
    font-size: 1rem;
    font-weight: 500;
    font-family: 'Vazirmatn', sans-serif; /* اطمینان از استفاده از فونت اصلی سایت */
    text-decoration: none;
    border-radius: 50px; /* دکمه کپسولی شکل */
    border: 2px solid #3ab5aa; /* رنگ اصلی تم شما */
    color: #3ab5aa;
    background-color: transparent;
    transition: all 0.3s ease-in-out;
    cursor: pointer;
}

.btn-view-all:hover {
    background-color: #3ab5aa;
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(49, 183, 176, 0.3);
}

.btn-view-all i {
    margin-left: 10px; /* فاصله آیکون از متن */
}

/* واکنش‌گرایی برای موبایل */
@media (max-width: 576px) {
    .btn-view-all {
        padding: 10px 25px;
        font-size: 0.9rem;
        width: 100%; /* دکمه تمام عرض در موبایل */
    }
}


/* ============================================ */
/* استایل جدید هدر سکشن ها با دکمه */
/* ============================================ */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-lg);
    flex-wrap: wrap; /* برای واکنشگرایی بهتر */
    gap: 20px; /* فاصله بین عنوان و دکمه در موبایل */
}

.section-header-content {
    text-align: right;
}

/* پاک کردن margin پایین عنوان و زیرعنوان وقتی در هدر جدید هستند */
.section-header .section-title,
.section-header .section-subtitle {
    margin-bottom: 0;
}

.section-header .section-subtitle {
    margin-top: 5px; /* کمی فاصله از عنوان */
}

.btn-view-all-header {
    display: inline-block;
    padding: 10px 25px;
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    border-radius: 50px;
    border: 2px solid rgba(49, 183, 176, 0.3); /* حاشیه کمرنگ تر */
    color: var(--primary-dark, #162e51);
    background-color: transparent;
    transition: all 0.3s ease;
}

.btn-view-all-header:hover {
    background-color: rgba(49, 183, 176, 0.1);
    border-color: var(--primary-teal, #31b7b0);
    color: var(--primary-teal, #31b7b0);
}

.btn-view-all-header i {
    margin-right: 8px; /* انتقال آیکون به سمت راست متن */
    font-size: 0.8rem;
}

/* واکنش‌گرایی برای هدر جدید */
@media (max-width: 768px) {
    .section-header {
        flex-direction: column; /* زیر هم قرار گرفتن در موبایل */
        align-items: stretch;   /* تمام عرض شدن */
        text-align: center;
    }

    .section-header-content {
        text-align: center;
    }
}







/* ============================================ */
/* استایل مدرن باکس قیمت دوره (سایدبار) */
/* ============================================ */

/* 1. استیکی کردن سایدبار (UX عالی) */
.sidebar-sticky-wrapper {
    position: sticky;
    z-index: 99;
}

/* 2. کانتینر اصلی باکس */
.widget.varanesh-course-pricing-widget.modern-pricing-box {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(22, 46, 81, 0.08); /* سایه نرم‌تر */
    border: 1px solid rgba(49, 183, 176, 0.1); /* حاشیه خیلی کمرنگ سبز */
    padding: 0;
    position: relative;
    margin-bottom: 30px;
    transition: transform 0.3s ease;
}

/* افکت هاور ملایم روی کل باکس */
.widget.varanesh-course-pricing-widget.modern-pricing-box:hover {
    box-shadow: 0 15px 50px rgba(22, 46, 81, 0.12);
    transform: translateY(-2px);
}

/* 3. بج تخفیف (روبان بالای باکس) */
.discount-badge {
    position: absolute;
    top: -12px;
    right: 20px;
    background: #ff4757; /* قرمز جذاب برای تخفیف */
    color: #fff;
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(255, 71, 87, 0.3);
    z-index: 2;
}

.pricing-box-content {
    padding: 25px;
    text-align: center;
}

/* 4. بخش نمایش قیمت */
.price-section {
    margin-bottom: 25px;
    background: #f8fbfb; /* پس زمینه خیلی کمرنگ */
    padding: 15px;
    border-radius: 15px;
    border: 1px dashed #d1eceb;
}

.price-label {
    display: block;
    font-size: 0.85rem;
    color: var(--secondary-gray);
    margin-bottom: 8px;
}

.price-values {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.regular-price {
    color: #aab0b6;
    font-size: 1rem;
    text-decoration: line-through;
    margin-bottom: -5px;
}

.current-price {
    color: var(--primary-dark);
    font-weight: 900;
    display: flex;
    align-items: center;
    gap: 5px;
}

.current-price .amount {
    font-size: 2.2rem;
    color: var(--primary-teal); /* سبز کله غازی */
}

.current-price .currency {
    font-size: 1rem;
    color: var(--secondary-gray);
    font-weight: 400;
    margin-top: 8px;
}

/* 5. دکمه ثبت نام (CTA) */
.enroll-btn-wrapper {
    margin-bottom: 25px;
}

.btn-enroll.btn-pulse-effect {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 16px;
    background: linear-gradient(45deg, var(--primary-teal), #2aa19a);
    color: #fff;
    font-weight: 800;
    font-size: 1.1rem;
    border-radius: 12px; /* گوشه‌های کمی گرد */
    text-decoration: none;
    box-shadow: 0 8px 20px rgba(49, 183, 176, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-enroll.btn-pulse-effect:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(49, 183, 176, 0.4);
    background: linear-gradient(45deg, #2aa19a, var(--primary-teal));
}

.btn-enroll.btn-pulse-effect i {
    margin-right: 10px;
    transition: transform 0.3s ease;
}

.btn-enroll.btn-pulse-effect:hover i {
    transform: translateX(-5px); /* حرکت فلش به سمت چپ */
}

/* انیمیشن پالس (تپش) */
@keyframes subtlePulse {
    0% { box-shadow: 0 0 0 0 rgba(49, 183, 176, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(49, 183, 176, 0); }
    100% { box-shadow: 0 0 0 0 rgba(49, 183, 176, 0); }
}

.btn-enroll.btn-pulse-effect {
    animation: subtlePulse 2s infinite;
}

.guarantee-text {
    display: block;
    margin-top: 10px;
    font-size: 0.75rem;
    color: #95a5a6;
}

.guarantee-text i {
    color: #27ae60;
    margin-left: 3px;
}

/* 6. لیست ویژگی‌ها */
.course-features-list {
    text-align: right;
    border-top: 1px solid #eee;
    padding-top: 20px;
}

.course-features-list ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.course-features-list li {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    font-size: 0.9rem;
    color: var(--primary-dark);
}

.course-features-list li:last-child {
    margin-bottom: 0;
}

.course-features-list li i {
    color: var(--primary-teal); /* رنگ آیکون‌ها */
    margin-left: 10px;
    font-size: 1.1rem;
    background: rgba(49, 183, 176, 0.1);
    padding: 5px;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* حالت موبایل */
@media (max-width: 992px) {
    .sidebar-sticky-wrapper {
        position: static; /* در موبایل استیکی نباشد */
    }

    .widget.varanesh-course-pricing-widget.modern-pricing-box {
        margin-bottom: 40px;
    }
}





/* ============================================ */
/* استایل اختصاصی صفحه تسویه حساب ورانش */
/* ============================================ */

/* کانتینر اصلی */
.varanesh-checkout-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0 50px;
}

/* گرید بندی دو ستونه */
.varanesh-checkout-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr; /* ستون اطلاعات کمی بزرگتر */
    gap: 30px;
    align-items: start;
}

/* استایل کارت‌های سفید */
.checkout-card {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(22, 46, 81, 0.08);
    border: 1px solid #edf2f7;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.checkout-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 50px rgba(22, 46, 81, 0.12);
}

/* هدر کارت‌ها */
.checkout-card .card-header {
    background: #f8fbfb;
    padding: 20px 25px;
    border-bottom: 1px solid #eef2f5;
    display: flex;
    align-items: center;
    gap: 10px;
}

.checkout-card .card-header i {
    color: var(--primary-teal, #31b7b0);
    font-size: 1.2rem;
}

.checkout-card .card-header h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--primary-dark, #162e51);
}

.checkout-card .card-body {
    padding: 25px;
}

/* پیام راهنما بالای فرم اطلاعات */
.billing-notice {
    background: rgba(49, 183, 176, 0.1);
    color: var(--primary-dark);
    padding: 10px 15px;
    border-radius: 10px;
    font-size: 0.9rem;
    margin-bottom: 20px;
    border-right: 3px solid var(--primary-teal);
    display: flex;
    align-items: center;
    gap: 8px;
}

/* --- استایل فیلدهای فرم (Override کردن استایل‌های پیش‌فرض ووکامرس) --- */

/* حذف عنوان تکراری Billing Details خود ووکامرس */
.woocommerce-billing-fields > h3 {
    display: none;
}

.woocommerce-checkout .form-row {
    margin-bottom: 20px;
}

.woocommerce-checkout .form-row label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--primary-dark);
}

.woocommerce-checkout .col-billing-info input.input-text {
    padding: 12px 15px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    background-color: #fff;
    width: 100%;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

/* استایل فیلدهای فقط خواندنی (Read-only) */
/* این کلاس توسط PHP اضافه شده بود: field-is-readonly */
.woocommerce-checkout .field-is-readonly input.input-text,
.woocommerce-checkout input[readonly] {
    background-color: #f8f9fa !important;
    border-color: #edf2f7 !important;
    color: #718096 !important;
    cursor: not-allowed;
    box-shadow: none !important;
}

/* آیکون قفل برای فیلدهای قفل شده */
.field-is-readonly {
    position: relative;
}
.field-is-readonly::after {
    content: "\f023"; /* کد آیکون قفل FontAwesome */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    left: 15px;
    top: 38px; /* تنظیم ارتفاع بسته به لیبل */
    color: #cbd5e0;
    font-size: 0.9rem;
}

/* --- بخش خلاصه سفارش و پرداخت --- */

.review-heading {
    font-size: 0.95rem;
    color: #718096;
    margin-bottom: 15px;
}

/* جدول سفارش */
.woocommerce-checkout-review-order-table {
    border: none !important;
    margin-bottom: 20px !important;
}

.woocommerce-checkout-review-order-table th,
.woocommerce-checkout-review-order-table td {
    border: none !important;
    border-bottom: 1px dashed #e2e8f0 !important;
    padding: 15px 0 !important;
    font-size: 0.95rem;
}

.woocommerce-checkout-review-order-table .product-name {
    color: var(--primary-dark);
    font-weight: 600;
}

.woocommerce-checkout-review-order-table .product-total,
.woocommerce-checkout-review-order-table .order-total td {
    text-align: left;
    color: var(--primary-teal);
    font-weight: 700;
    font-family: sans-serif; /* برای نمایش بهتر اعداد */
}

.woocommerce-checkout-review-order-table .order-total th {
    color: var(--primary-dark);
    font-weight: 800;
    font-size: 1.1rem;
}

.woocommerce-checkout-review-order-table .order-total td {
    font-size: 1.2rem;
}

/* بخش پرداخت */
#payment {
    background: transparent !important;
    border-radius: 0 !important;
}

#payment ul.payment_methods {
    border: none !important;
    padding: 0 !important;
}

#payment div.payment_box {
    background-color: #f1fdfc !important;
    color: var(--primary-dark) !important;
    border-radius: 8px;
    font-size: 0.85rem;
    padding: 15px !important;
}
#payment div.payment_box::before {
    border-bottom-color: #f1fdfc !important;
}

/* دکمه پرداخت */
#place_order {
    background-color: var(--primary-teal, #31b7b0) !important;
    color: #fff !important;
    font-weight: 800 !important;
    padding: 18px 30px !important;
    border-radius: 50px !important;
    font-size: 1.1rem !important;
    width: 100%;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(49, 183, 176, 0.3);
    margin-top: 20px !important;
}

#place_order:hover {
    background-color: var(--primary-dark, #162e51) !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(49, 183, 176, 0.4);
}

/* نشان اعتماد */
.checkout-trust-badge {
    text-align: center;
    margin-top: 20px;
    color: #95a5a6;
    font-size: 0.85rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

/* کد تخفیف (طراحی مجدد) */
.woocommerce-form-coupon-toggle {
    margin-bottom: 20px;
}
.woocommerce-form-coupon-toggle .showcoupon {
    background: #fff;
    border: 2px dashed var(--primary-teal);
    display: block;
    padding: 15px;
    border-radius: 12px;
    text-align: center;
    color: var(--primary-teal);
    font-weight: 700;
    text-decoration: none;
    transition: 0.3s;
}
.woocommerce-form-coupon-toggle .showcoupon:hover {
    background: rgba(49, 183, 176, 0.05);
}

.checkout_coupon {
    background: #fff !important;
    padding: 20px !important;
    border-radius: 15px;
    border: 1px solid #e2e8f0;
    margin-bottom: 25px !important;
}

/* واکنش‌گرایی (موبایل) */
@media (max-width: 992px) {
    .varanesh-checkout-grid {
        grid-template-columns: 1fr; /* تک ستونه شدن */
    }

    .col-order-review {
        order: -1; /* آوردن فاکتور به بالای صفحه در موبایل */
        margin-bottom: 20px;
    }

    .checkout-card .card-header {
        padding: 15px;
    }

    .checkout-card .card-body {
        padding: 15px;
    }
}


/* اصلاح لودینگ زشت ووکامرس (BlockUI) */
.blockUI.blockOverlay {
    background: rgba(255, 255, 255, 0.8) !important; /* پس زمینه سفید شیشه‌ای */
    opacity: 1 !important;
    border-radius: 20px;
    backdrop-filter: blur(2px); /* بلور کردن محتوای زیر */
    z-index: 1000 !important;
}

/* مخفی کردن آیکون پیش‌فرض سیاه */
.blockUI.blockOverlay::before,
.woocommerce .blockUI.blockOverlay::before {
    display: none !important;
}

/* ساخت لودینگ اختصاصی جدید */
.blockUI.blockOverlay::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    margin: -20px 0 0 -20px;
    border: 3px solid rgba(49, 183, 176, 0.2);
    border-top-color: var(--primary-teal); /* رنگ اصلی سایت */
    border-radius: 50%;
    animation: spin 1s ease-in-out infinite;
    z-index: 1001;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}


/* مخفی کردن نوار خلاصه سفارش پیش‌فرض موبایل ووکامرس */



/* اصلاح عرض و چیدمان فیلدهای فرم */
.woocommerce-checkout .form-row {
    width: 100% !important; /* اجبار به تمام عرض بودن */
    float: none !important;
    display: block !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    margin-bottom: 20px;
    clear: both;
}

/* اصلاح فاصله لیبل و ورودی */
.woocommerce-checkout .form-row label {
    display: block;
    margin-bottom: 8px;
    width: 100%;
}

.woocommerce-checkout .form-row input.input-text {
    width: 100% !important;
    box-sizing: border-box; /* محاسبه صحیح پدینگ در عرض */
    height: 48px; /* ارتفاع مناسب برای تاچ موبایل */
}

/* اگر فیلدها کنار هم هستند (مثل نام و نام خانوادگی)، در دسکتاپ کنار هم باشند */
@media (min-width: 768px) {
    .woocommerce-checkout .form-row-first,
    .woocommerce-checkout .form-row-last {
        width: 48% !important;
        float: right !important; /* راست‌چین */
        display: inline-block !important;
    }

    .woocommerce-checkout .form-row-first {
        margin-left: 4%; /* فاصله بین دو فیلد */
    }

    .woocommerce-checkout .form-row-last {
        margin-left: 0;
    }
}



/* زیباسازی جدول محصول در سایدبار */
.varanesh-order-review table.shop_table {
    border: none;
    border-collapse: separate;
    border-spacing: 0 10px; /* فاصله بین ردیف‌ها */
    margin: 0;
    width: 100%;
}

.varanesh-order-review td.product-name {
    padding: 15px 10px;
    background: #f9fbfd;
    border-radius: 0 10px 10px 0; /* گرد کردن سمت راست */
    font-size: 0.9rem;
    line-height: 1.6;
    color: #4a5568;
    border: none !important;
}

.varanesh-order-review td.product-total {
    padding: 15px 10px;
    background: #f9fbfd;
    border-radius: 10px 0 0 10px; /* گرد کردن سمت چپ */
    text-align: left;
    font-weight: 700;
    color: var(--primary-dark);
    border: none !important;
    white-space: nowrap;
}

/* جمع کل */
.varanesh-order-review tr.order-total th,
.varanesh-order-review tr.order-total td {
    background: transparent;
    padding-top: 20px;
    border-top: 2px dashed #e2e8f0 !important;
    font-size: 1.1rem;
}

.varanesh-order-review tr.cart-subtotal td,
.varanesh-order-review tr.cart-subtotal th {
    background: transparent;
    padding: 10px 0;
    font-size: 0.9rem;
    color: #718096;
}



/* ============================================ */
/* استایل اختصاصی کارت محصول در تسویه حساب */
/* ============================================ */

/* کانتینر کلی */
.varanesh-custom-review {
    font-family: inherit;
}

/* آیتم دوره (کارت کوچک) */
.review-course-item {
    display: flex;
    align-items: center;
    gap: 15px;
    background: #fff;
    border: 1px solid #eef2f5;
    padding: 10px;
    border-radius: 12px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.review-course-item:hover {
    border-color: var(--primary-teal);
    background: #f8fbfb;
}

/* تصویر بندانگشتی */
.course-review-thumb {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
}

.course-review-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* جزئیات متن */
.course-review-details {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.course-review-details .course-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 5px;
    line-height: 1.4;
}

.course-review-details .course-price {
    font-size: 0.95rem;
    color: var(--primary-teal);
    font-weight: 800;
}

/* بخش جمع کل */
.review-totals-section {
    margin-top: 20px;
    border-top: 2px dashed #e2e8f0;
    padding-top: 15px;
}

.review-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    font-size: 0.9rem;
    color: #718096;
}

.review-row.total-row {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #edf2f7;
    color: var(--primary-dark);
    font-weight: 800;
    font-size: 1.1rem;
}

.review-row.total-row .final-price {
    color: var(--primary-teal);
    font-size: 1.3rem;
}

/* استایل درگاه پرداخت */
.varanesh-payment-methods {
    margin-top: 20px;
}

/* حذف استایل‌های قدیمی لیست (اگر هنوز مانده باشند) */
.varanesh-custom-review ul,
.varanesh-custom-review li {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}


/* ============================================ */
/* اصلاحیه نمایش عکس تکراری در فاکتور */
/* ============================================ */

/* 1. تنظیم سایز استاندارد برای عکس اصلی (که الان خیلی بزرگ شده) */
.course-review-thumb {
    width: 80px !important;   /* عرض ثابت */
    height: 80px !important;  /* ارتفاع ثابت */
    flex-shrink: 0;           /* جلوگیری از جمع شدن */
    border-radius: 10px;
    overflow: hidden;
    margin-left: 15px;        /* فاصله از متن */
}

.course-review-thumb img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important; /* برش خوردن مرتب عکس */
    margin: 0 !important;
}

/* 2. حذف عکس دوم (تکراری) که داخل متن یا عنوان افتاده است */
.course-review-details img,
.course-review-details .course-title img {
    display: none !important;
}

/* 3. مرتب سازی چیدمان فلکس باکس */
.review-course-item {
    display: flex !important;
    align-items: center !important;
    flex-direction: row !important; /* حتما در یک خط باشند */
    padding: 15px !important;
}







/* ============================================ */
/* استایل اختصاصی سرفصل‌های دوره (Syllabus) */
/* ============================================ */

.varanesh-syllabus-wrapper {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(22, 46, 81, 0.05);
    padding: 30px;
    margin: 40px 0;
    border: 1px solid #edf2f7;
}

.syllabus-main-title {
    font-size: 1.4rem;
    color: var(--primary-dark);
    margin-bottom: 25px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 10px;
}

.syllabus-main-title i {
    color: var(--primary-teal);
    background: rgba(49, 183, 176, 0.1);
    padding: 8px;
    border-radius: 10px;
    font-size: 1.1rem;
}

/* استایل آیتم‌های آکاردئون */
.syllabus-section-item {
    border: 1px solid #eef2f5;
    border-radius: 12px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.syllabus-section-item:hover {
    border-color: var(--primary-teal);
}

.syllabus-section-item.open {
    border-color: var(--primary-teal);
    box-shadow: 0 5px 15px rgba(49, 183, 176, 0.08);
}

/* هدر هر بخش (قابل کلیک) */
.section-header-toggle {
    background: #fcfdfd;
    padding: 18px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    user-select: none;
    transition: background 0.2s;
}

.syllabus-section-item.open .section-header-toggle {
    background: #f0fbfb; /* رنگ پس زمینه خیلی ملایم سبز */
}

.section-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.section-number {
    font-size: 0.8rem;
    background: #e2e8f0;
    color: #64748b;
    padding: 4px 10px;
    border-radius: 50px;
    font-weight: 700;
}

.syllabus-section-item.open .section-number {
    background: var(--primary-teal);
    color: #fff;
}

.section-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary-dark);
}

.section-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    color: #94a3b8;
    font-size: 0.9rem;
}

.toggle-icon {
    transition: transform 0.3s ease;
}

.syllabus-section-item.open .toggle-icon {
    transform: rotate(180deg);
    color: var(--primary-teal);
}

/* محتوای درس‌ها */
.section-content {
    background: #fff;
    border-top: 1px solid #f1f5f9;
}

.lessons-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.lesson-item {
    border-bottom: 1px solid #f8fafc;
}

.lesson-item:last-child {
    border-bottom: none;
}

.lesson-link {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    text-decoration: none;
    transition: background 0.2s;
    gap: 15px;
}

.lesson-link:hover {
    background: #fafafa;
}

.lesson-icon i {
    font-size: 1.1rem;
    width: 24px;
    text-align: center;
}

.free-icon {
    color: #2ecc71; /* سبز روشن برای رایگان */
}

.lock-icon {
    color: #cbd5e1; /* خاکستری برای قفل */
}

.lesson-details {
    display: flex;
    justify-content: space-between;
    width: 100%;
    align-items: center;
}

.lesson-title {
    color: #475569;
    font-size: 0.95rem;
    font-weight: 500;
}

.lesson-link:hover .lesson-title {
    color: var(--primary-teal);
}

.free-badge {
    font-size: 0.75rem;
    background: rgba(46, 204, 113, 0.1);
    color: #2ecc71;
    padding: 2px 8px;
    border-radius: 4px;
}


/* ============================================ */
/* استایل سرفصل‌های دوره - اصلاح نهایی */
/* ============================================ */

/* کلاس مشترک برای نگهدارنده محتوا (چه لینک باشد چه دایو) */
.lesson-row-content {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    width: 100%;
    text-decoration: none !important; /* حذف زیرخط لینک */
    transition: all 0.3s ease;
    border-radius: 8px; /* نرم کردن گوشه‌ها */
}

/* --- حالت درس باز (Unlocked) --- */
.lesson-unlocked .lesson-row-content {
    color: #162e51; /* رنگ متن اصلی */
    cursor: pointer;
}

.lesson-unlocked .lesson-icon i {
    color: #31b7b0; /* رنگ سبز آیکون پلی */
    font-size: 1.1rem;
}

.lesson-unlocked:hover .lesson-row-content {
    background-color: #eafaf9; /* پس زمینه سبز روشن موقع هاور */
    transform: translateX(-5px); /* انیمیشن حرکت */
}

/* --- حالت درس قفل (Locked) --- */
.lesson-locked .lesson-row-content {
    color: #95a5a6; /* رنگ متن خاکستری */
    cursor: not-allowed; /* نشانگر موس ممنوع */
    background-color: #fdfdfd; /* پس زمینه خیلی کمرنگ */
}

.lesson-locked .lesson-icon i {
    color: #bdc3c7; /* رنگ خاکستری برای قفل */
    font-size: 1rem;
}

/* حذف افکت هاور برای درس‌های قفل شده */
.lesson-locked:hover .lesson-row-content {
    background-color: #fdfdfd;
    transform: none;
}

/* تنظیم فاصله آیکون */
.lesson-icon {
    margin-left: 12px;
    width: 24px;
    text-align: center;
    display: inline-block;
}

/* بج رایگان */
.free-badge {
    display: inline-block;
    background-color: #e1f7f5;
    color: #31b7b0;
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 50px;
    margin-right: 10px;
    font-weight: 700;
}





/* ============================================ */
/* استایل اختصاصی داشبورد کاربری ورانش */
/* ============================================ */

.varanesh-dashboard-wrapper {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    font-family: inherit; /* پیروی از فونت قالب */
}

/* هدر خوش‌آمدگویی */
.dashboard-welcome-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff;
    padding: 20px 30px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(22, 46, 81, 0.05);
    border: 1px solid #edf2f7;
    margin-bottom: 30px;
}

.dashboard-welcome-header .user-welcome-text span {
    color: #95a5a6;
    font-size: 0.9rem;
    display: block;
    margin-bottom: 5px;
}

.dashboard-welcome-header .user-welcome-text h3 {
    color: var(--primary-dark);
    font-size: 1.4rem;
    font-weight: 800;
    margin: 0;
}

.dashboard-welcome-header .user-avatar-circle img {
    border-radius: 50%;
    border: 3px solid rgba(49, 183, 176, 0.2);
    padding: 3px;
}

/* گرید بندی اصلی */
.varanesh-dashboard-grid {
    display: grid;
    grid-template-columns: 280px 1fr; /* سایدبار ثابت، محتوا متغیر */
    gap: 30px;
    align-items: start;
}

/* --- استایل منوی ناوبری (سایدبار) --- */
.varanesh-account-nav {
    background: #fff;
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 10px 40px rgba(22, 46, 81, 0.05);
    border: 1px solid #edf2f7;
    position: sticky;
    top: 120px; /* اگر هدر چسبان دارید */
}

.varanesh-account-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.varanesh-account-nav li {
    margin-bottom: 10px;
}

.varanesh-account-nav li:last-child {
    margin-bottom: 0;
}

.varanesh-account-nav a {
    display: flex;
    align-items: center;
    padding: 15px;
    border-radius: 12px;
    color: var(--primary-dark);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.varanesh-account-nav a:hover {
    background-color: #f8fbfb;
    color: var(--primary-teal);
    transform: translateX(-5px);
}

/* آیتم فعال */
.varanesh-account-nav li.is-active a {
    background-color: var(--primary-teal);
    color: #fff;
    box-shadow: 0 8px 20px rgba(49, 183, 176, 0.3);
}

/* آیکون‌ها */
.varanesh-account-nav .nav-icon {
    width: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 10px;
    font-size: 1.1rem;
}

.varanesh-account-nav .nav-arrow {
    margin-right: auto; /* چسباندن فلش به سمت چپ */
    font-size: 0.8rem;
    opacity: 0.5;
    transition: 0.3s;
}

.varanesh-account-nav li.is-active a .nav-arrow {
    opacity: 1;
    color: #fff;
}

/* --- استایل محتوا (کارت سمت چپ) --- */
.dashboard-content-col .content-card {
    background: #fff;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(22, 46, 81, 0.08);
    border: 1px solid #edf2f7;
    min-height: 400px;
}

/* اصلاح فرم‌های داخلی ووکامرس */
.woocommerce-EditAccountForm legend {
    color: var(--primary-dark);
    font-weight: 800;
    font-size: 1.2rem;
    border-bottom: 2px dashed #edf2f7;
    padding-bottom: 10px;
    margin-bottom: 20px;
    width: 100%;
}

.woocommerce-Input {
    padding: 12px 15px !important;
    border-radius: 12px !important;
    border: 1px solid #e2e8f0 !important;
    background: #f9fbfd !important;
}
.woocommerce-Input:focus {
    border-color: var(--primary-teal) !important;
    background: #fff !important;
}

.woocommerce-Button.button {
    background-color: var(--primary-teal) !important;
    color: #fff !important;
    border-radius: 50px !important;
    padding: 12px 30px !important;
    font-weight: 700 !important;
}

.woocommerce-Button.button:hover {
    background-color: var(--primary-dark) !important;
    transform: translateY(-2px);
}

/* ============================================ */
/* واکنش‌گرایی (موبایل) */
/* ============================================ */
@media (max-width: 992px) {
    .varanesh-dashboard-grid {
        grid-template-columns: 1fr; /* تک ستونه */
        gap: 20px;
    }

    /* سایدبار افقی در موبایل (اختیاری - اگر بخواهید اسکرول بخورد) */
    /* یا به صورت لیست ساده زیر هم */
    .varanesh-account-nav {
        position: static;
    }

    .dashboard-welcome-header {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .dashboard-content-col .content-card {
        padding: 20px;
    }
}


/* استایل دکمه خروج کوچک در هدر */
.logout-mini-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fee2e2;
    color: #ef4444;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 15px;
    transition: 0.3s;
    text-decoration: none;
}
.logout-mini-btn:hover {
    background: #ef4444;
    color: #fff;
}
.header-actions {
    display: flex;
    align-items: center;
}

/* استایل اکتیو برای منو */
.varanesh-account-nav li.is-active a {
    background-color: var(--primary-teal); /* رنگ فیروزه‌ای اصلی شما */
    color: #fff !important;
    box-shadow: 0 5px 15px rgba(49, 183, 176, 0.4);
}

.varanesh-account-nav li.is-active a .nav-icon,
.varanesh-account-nav li.is-active a .nav-arrow {
    color: #fff !important;
}

