/*
Theme Name: ZabaneTurki
Theme URI: https://zabaneturki.com
Author: Custom Theme
Description: قالب اختصاصی، سبک و حرفه‌ای برای آموزش زبان ترکی استانبولی
Version: 1.0.0
Text Domain: zabaneturki
*/

/* =========================================
   تخصیص فونت کلمه (Kalameh)
   ========================================= */
@font-face {
    font-family: 'Kalameh';
    src: url('../fonts/KalamehWeb-Regular.woff2') format('woff2'),
         url('../fonts/KalamehWeb-Regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Kalameh';
    src: url('../fonts/KalamehWeb-Bold.woff2') format('woff2'),
         url('../fonts/KalamehWeb-Bold.woff') format('woff');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

:root {
    --font-primary: 'Kalameh', Tahoma, Arial, sans-serif;
    --color-primary: #e63946; /* قرمز */
    --color-secondary: #1D3557; /* سورمه‌ای */
    --color-text: #334155;
    --color-bg: #F1F5F9;
    --color-white: #ffffff;

	--tv-bg: #ffffff;
	--tv-bg-soft: #fbfaff;
	--tv-card: #ffffff;

	--tv-border: rgba(111, 78, 246, 0.14);
	--tv-border-strong: rgba(111, 78, 246, 0.24);

	--tv-shadow-sm: 0 10px 25px rgba(29, 18, 66, 0.06);
	--tv-shadow-md: 0 18px 45px rgba(29, 18, 66, 0.10);
	--tv-shadow-lg: 0 28px 80px rgba(29, 18, 66, 0.14);

	--tv-radius-sm: 12px;
	--tv-radius-md: 18px;
	--tv-radius-lg: 28px;
	--tv-radius-xl: 36px;

	--tv-container: 1220px;
}

body {
    font-family: var(--font-primary);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    direction: rtl;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

*, *::before, *::after {
    box-sizing: inherit;
}

h1, h2, h3, h4, h5, h6, button, input, textarea {
    font-family: var(--font-primary);
}

a {
    color: var(--color-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--color-primary);
}

header .container,
.site-header .container,
.container {
    max-width: 100% !important;
    padding-right: 40px !important;
    padding-left: 40px !important;
}

.page-container {
    max-width: 1000px;
    margin: 40px auto;
    padding: 0 20px;
}

.page-header {
    margin-bottom: 30px;
}

.page-header h1 {
    color: var(--color-secondary);
    font-size: 2.2rem;
    margin-bottom: 10px;
}

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

.white-box {
    background-color: var(--color-white);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.about-features {
    display: flex;
    gap: 20px;
    margin-top: 40px;
    border-top: 1px solid #e2e8f0;
    padding-top: 30px;
}

.feature-item {
    flex: 1;
    background: var(--color-bg);
    padding: 20px;
    border-radius: 8px;
    border-right: 4px solid var(--color-primary);
}

.feature-item h3 {
    color: var(--color-primary);
    margin-bottom: 10px;
}

.dictionary-search-box {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
}

.dict-input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-family: inherit;
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-white);
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.3s ease;
}

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

.site-main {
    min-height: 60vh;
    padding: 0;
}

/* =========================================
   Header Navigation
   ========================================= */
.site-header {
    background-color: #ffffff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    padding: 15px 0;
    position: relative;
    z-index: 1000;
}

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

.site-branding .site-title {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
}

.site-branding .site-title a {
    color: var(--color-primary);
}

.site-branding .site-description {
    margin: 0;
    font-size: 0.85rem;
    color: #64748B;
}

.site-branding, 
.site-title,
.header-logo {
    margin-left: 40px !important; 
}

.main-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 1.5rem; 
}

.main-navigation li {
    position: relative; 
}

.main-navigation a {
    color: var(--color-text);
    font-weight: 500;
    padding: 10px 0;
    display: block;
    font-size: 1rem;
}

.main-navigation a:hover {
    color: var(--color-primary);
}

/* Sub-menu */
.main-navigation .sub-menu {
    position: absolute;
    top: 100%; 
    right: 0; 
    background-color: #ffffff;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    min-width: 220px; 
    border-radius: 8px;
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    z-index: 100;
    border-top: 3px solid var(--color-primary); 
}

.main-navigation li:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.main-navigation .sub-menu a {
    padding: 12px 20px;
    font-weight: 400;
    border-bottom: 1px solid #f1f5f9;
}

.main-navigation .sub-menu li:last-child a {
    border-bottom: none;
}

.main-navigation .sub-menu a:hover {
    background-color: var(--color-bg);
    padding-right: 25px; 
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem; 
}

.header-search .search-form {
    display: flex;
    align-items: center;
    background-color: var(--color-bg); 
    border-radius: 20px;
    padding: 2px 15px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.header-search .search-form:focus-within {
    border-color: var(--color-primary);
    background-color: #ffffff;
    box-shadow: 0 0 0 2px rgba(230, 57, 70, 0.1); 
}

.header-search .search-field {
    border: none;
    background: transparent;
    padding: 8px 0;
    font-size: 14px;
    color: var(--color-text);
    outline: none;
    width: 150px; 
    transition: width 0.3s ease;
}

.header-search .search-field:focus {
    width: 200px; 
}

.header-search .search-submit {
    background: transparent;
    border: none;
    padding: 0;
    color: var(--color-text);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-search .search-submit:hover {
    color: var(--color-primary);
}

/* Auth Buttons */
.auth-btn,
.btn-login-register,
.btn-profile,
.btn-logout {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.auth-btn {
    color: var(--color-secondary);
    background-color: transparent;
    border: 1.5px solid var(--color-secondary);
    font-weight: 500;
}

.auth-btn:hover,
.auth-btn:active {
    background-color: var(--color-secondary);
    color: #ffffff !important;
    box-shadow: 0 4px 8px rgba(29, 53, 87, 0.2);
}

.btn-login-register {
    background-color: var(--color-secondary);
    color: #ffffff !important;
    border: 2px solid var(--color-secondary);
}

.btn-login-register:hover {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
}

.btn-profile {
    background-color: var(--color-secondary);
    color: #ffffff !important;
    border: 2px solid var(--color-secondary);
    margin-left: 10px;
}

.btn-profile:hover {
    background-color: var(--color-secondary); 
    border-color: var(--color-secondary); 
}

.btn-logout {
    background-color: transparent;
    color: var(--color-primary) !important; 
    border: 2px solid var(--color-primary); 
}

.btn-logout:hover {
    background-color: var(--color-primary); 
    color: #ffffff !important;
}

/* Header Responsive */
.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    color: var(--color-text);
    cursor: pointer;
    padding: 0;
}

.header-mobile-wrapper {
    display: flex;
    align-items: center;
    flex-grow: 1;
    justify-content: space-between;
}

@media screen and (max-width: 991px) {
    .menu-toggle {
        display: block;
    }
    .header-inner {
        flex-wrap: wrap;
        padding-top: 1rem;
        padding-bottom: 1rem;
    }
    .header-mobile-wrapper {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        padding-top: 1.5rem;
        border-top: 1px solid #e2e8f0;
        margin-top: 1rem;
        gap: 1.5rem;
    }
    .header-mobile-wrapper.toggled-on {
        display: flex;
    }
    .main-navigation ul {
        flex-direction: column;
        gap: 1rem;
        text-align: right;
    }
    .main-navigation ul li {
        width: 100%;
    }
    .header-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    .header-search .search-form,
    .header-search .search-field {
        width: 100%;
    }
    .header-buttons {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }
    .header-buttons a {
        text-align: center;
        width: 100%;
    }
}

/* =========================================
   بخش هیرو (Hero Section)
   ========================================= */
.hero-section {
    direction: rtl;
    padding: 0 0 30px 0;
    font-family: var(--font-primary); 
    background-color: transparent;
}

.hero-container {
    max-width: 1440px; 
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px; 
    padding: 0 40px;
}

.hero-content {
    flex: 1;
    max-width: 450px; 
}

.hero-title {
    font-size: 3.5rem; 
    font-weight: bold;
    color: #e63946;
    margin-bottom: 15px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: bold;
    color: #444;
    margin-bottom: 25px;
}

.hero-description {
    font-size: 1.05rem;
    color: #666;
    line-height: 1.8;
    margin-bottom: 35px;
}

.hero-btn {
    position: relative;
    z-index: 10;
    pointer-events: auto;
    display: inline-block;
    background-color: var(--color-primary); 
    color: #ffffff !important;
    padding: 14px 32px; 
    border-radius: 8px;
    font-weight: bold;
    font-size: 1.1rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.hero-btn:hover,
.hero-btn:active,
.hero-btn:focus,
.hero-btn:focus-visible {
    background-color: var(--color-secondary) !important;
    color: #ffffff !important;
    outline: none !important;
    box-shadow: 0 4px 12px rgba(29, 53, 87, 0.2);
}

.hero-image-wrapper {
    flex: 2; 
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 10px;
    margin: 0 auto;
}

.hero-img {
    width: 100%;
    max-width: 750px; 
    height: auto;
    filter: drop-shadow(0 15px 25px rgba(0,0,0,0.08)); 
    transition: all 0.6s ease-in-out;
}

.hero-img:hover {
    transform: translateY(-5px);
    filter: drop-shadow(0 20px 30px rgba(0,0,0,0.12));
}

.hero-stats {
    flex: 1;
    max-width: 400px; 
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; 
    gap: 30px 20px; 
    border-top: 1px solid #f0f0f0;
    border-bottom: 1px solid #f0f0f0;
    padding: 30px 0;
}

.stat-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 5px;
    font-size: 1rem; 
    color: #333;
}

.stat-number {
    font-weight: bold;
    color: #ef5350; 
    font-size: 1.1rem;
}

.stat-link {
    grid-column: span 2; 
    justify-content: flex-start;
    margin-top: 15px;
}

.stat-link a {
    color: #ef5350;
    font-weight: bold;
    font-size: 1.05rem;
}

.stat-link a:hover {
    text-decoration: underline;
}

/* =========================================
   Learning Path Section (مسیر یادگیری)
   ========================================= */
.learning-path-section {
    padding: 30px 0 80px 0; 
    background-color: transparent;
    position: relative;
    direction: rtl;
}

.path-boxes-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    position: relative;
    z-index: 2;
}

.path-box {
    background-color: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 120px 120px 30px 30px; 
    padding: 50px 25px 40px;
    text-align: center;
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    min-height: 400px;
}

.path-box:hover {
    background-color: var(--color-secondary, #1D3557); 
    border-color: var(--color-secondary, #1D3557);
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(29, 53, 87, 0.15);
}

.path-icon {
    width: 85px;
    height: 85px;
    background-color: var(--color-secondary, #1D3557);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
    transition: all 0.4s ease;
    color: #ffffff;
}

.path-box:hover .path-icon {
    background-color: #ffffff;
    color: var(--color-secondary, #1D3557);
}

.path-icon svg {
    width: 36px;
    height: 36px;
}

.path-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--color-secondary, #1D3557);
    margin-bottom: 15px;
    transition: color 0.4s ease;
}

.path-box:hover .path-title {
    color: #ffffff;
}

.path-desc {
    font-size: 0.95rem;
    color: #64748b;
    margin-bottom: 25px;
    line-height: 1.7;
    transition: color 0.4s ease;
    flex-grow: 1;
}

.path-box:hover .path-desc {
    color: #cbd5e1;
}

.path-link {
    font-size: 1.05rem;
    font-weight: bold;
    color: #ef5350; 
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: color 0.4s ease;
}

.path-link svg {
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease;
}

.path-box:hover .path-link {
    color: #ff8a80; 
}

.path-box:hover .path-link svg {
    transform: translateX(-5px); 
}

/* ==========================================
   طراحی مدرن سکشن CTA - دوره سلام ترکیه
========================================== */
.salam-turkiye-cta {
    padding: 0px 0;
    direction: rtl;
    background-color: transparent; 
}

.salam-turkiye-cta .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.cta-modern-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f8f5ff; 
    border-radius: 32px;
    padding: 50px 60px;
    gap: 40px;
    box-shadow: 0 20px 40px rgba(147, 112, 219, 0.05);
    border: 1px solid rgba(147, 112, 219, 0.12);
    position: relative;
    overflow: visible; 
}

.cta-content {
    flex: 1.2;
    max-width: 55%;
}

.cta-badge {
    display: inline-block;
    background-color: rgba(29, 53, 87, 0.08); 
    color: #1D3557; 
    font-size: 14px;
    font-weight: 700;
    padding: 8px 18px;
    border-radius: 50px;
    margin-bottom: 24px;
    border: 1px solid rgba(29, 53, 87, 0.15);
}

.cta-title {
    font-size: 34px;
    line-height: 1.6;
    color: #1D3557; 
    margin-bottom: 20px;
    font-weight: 800;
}

.cta-title .highlight {
    color: #ef5350; 
}

.cta-description {
    font-size: 16px;
    line-height: 1.9;
    color: #555555;
    margin-bottom: 35px;
}

.btn-cta-modern {
    display: inline-block;
    background-color: #ef5350; 
    color: #ffffff !important;
    font-size: 16px;
    font-weight: 700;
    padding: 14px 36px;
    border-radius: 12px;
    text-decoration: none;
    box-shadow: 0 8px 25px rgba(239, 83, 80, 0.35);
    transition: all 0.3s ease;
}

.btn-cta-modern:hover {
    background-color: var(--color-secondary); 
    color: #ffffff !important;
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(29, 53, 87, 0.45);
}

.cta-image-wrapper {
    flex: 0.8;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.cta-image-inner {
    position: relative;
    width: 100%;
    max-width: 380px;
}

.main-cta-img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 24px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
}

.floating-badge {
    position: absolute;
    background-color: #ffffff;
    color: #1D3557;
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 700;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.04);
    white-space: nowrap;
    animation: floatEffect 5s ease-in-out infinite;
}

.badge-top {
    top: 10%;
    right: -25px;
    animation-delay: 0s;
}

@keyframes floatEffect {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
    100% { transform: translateY(0px); }
}

/* ==========================================================================
   User Reviews Section
   ========================================================================== */

.tv-reviews-section {
    margin: 80px 0;
    padding: 60px 0;
    overflow: hidden;
    position: relative;
    background-color: var(--tv-bg);
    border-top: 1px solid var(--tv-border);
    border-bottom: 1px solid var(--tv-border);
    
    /* کدهای جدید برای تمام‌عرض کردن */
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
}


.tv-reviews-header {
    text-align: center;
    margin-bottom: 50px;
}

.tv-reviews-title {
    font-size: 32px;
    font-weight: 900;
    color: var(--tv-text);
    margin-bottom: 15px;
}

.tv-reviews-divider {
    width: 80px;
    height: 4px;
    background-color: var(--tv-secondary);
    margin: 0 auto;
    border-radius: 4px;
}

/* Slider Track */
.tv-reviews-slider-wrap {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 20px 0;
    /* جهت LTR برای حرکت صحیح انیمیشن به سمت چپ */
    direction: ltr; 
}

.tv-reviews-slider {
    display: flex;
    gap: 24px;
    width: max-content;
    /* تغییر نام انیمیشن در خط زیر */
    animation: tv-scroll-right 40s linear infinite; 
}

.tv-reviews-slider:hover {
    animation-play-state: paused;
}

/* Review Card */
.tv-review-card {
    width: 320px;
    background: var(--tv-card);
    border-radius: var(--tv-radius-lg);
    padding: 35px 25px;
    box-shadow: var(--tv-shadow-sm);
    border: 1px solid var(--tv-border);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    direction: rtl; /* بازگرداندن جهت متن به راست‌چین */
    position: relative;
}

.tv-review-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--tv-shadow-md);
    border-color: var(--tv-primary);
}

/* Quote Icon Background */
.tv-review-card::before {
    content: "“";
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 80px;
    line-height: 1;
    color: var(--tv-primary-soft);
    font-family: serif;
    z-index: 0;
}

.tv-review-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
    border: 3px solid var(--tv-bg);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    position: relative;
    z-index: 1;
}

.tv-review-name {
    font-size: 18px;
    font-weight: 800;
    color: var(--tv-text);
    margin-bottom: 5px;
    position: relative;
    z-index: 1;
}

.tv-review-role {
    font-size: 13px;
    color: var(--tv-text-soft);
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.tv-review-text {
    font-size: 14px;
    line-height: 1.8;
    color: var(--tv-text-muted);
    font-weight: 500;
    position: relative;
    z-index: 1;
}

/* Animation Keyframes */
@keyframes tv-scroll-right {
    0% {
        transform: translateX(-50%);
    }
    100% {
        transform: translateX(0);
    }
}


/* Responsive */
@media (max-width: 768px) {
    .tv-review-card {
        width: 280px;
        padding: 25px 20px;
    }
    .tv-reviews-title {
        font-size: 26px;
    }
}

/* =========================================
   Articles Section Styles (صفحه اصلی)
========================================= */
.latest-articles-section {
    padding: 60px 0;
    background-color: #f9f9f9; 
    direction: rtl;
}

.articles-header {
    text-align: center;
    margin-bottom: 40px;
}

.articles-title {
    color: #14213d; 
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 10px;
}

.articles-subtitle {
    color: #666;
    font-size: 1rem;
    margin: 0;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.article-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.article-image {
    width: 100%;
    height: 180px;
    overflow: hidden;
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.article-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    font-size: 0.85rem;
}

.article-date {
    color: #888;
}

.article-category {
    background-color: #fff0f1; 
    color: #e63946; 
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.8rem;
}

.article-heading {
    color: #14213d; 
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.5;
    margin: 0 0 10px 0;
}

.article-excerpt {
    color: #555;
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0 0 20px 0;
    flex-grow: 1; 
}

.read-more {
    color: #14213d; 
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    transition: color 0.3s ease;
    align-self: flex-start;
}

.read-more:hover {
    color: #e63946; 
}

.all-articles-action {
    text-align: center;
}

/* =========================================
   Instructor Section Styles
========================================= */
.instructor-section {
    padding: 20px 0;
    background-color: #ffffff;
    overflow: hidden;
}

.instructor-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px; 
    flex-wrap: wrap;
}

.instructor-content {
    flex: 1;
    min-width: 300px;
    max-width: 550px;
}

.instructor-content .section-subtitle {
    display: inline-block;
    color: #D32F2F;
    font-size: 14px;
    font-weight: 700;
    background-color: #FFF2F2;
    padding: 6px 12px;
    border-radius: 8px;
    margin-bottom: 16px;
}

.instructor-content .section-title {
    font-size: 32px;
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 24px;
    line-height: 1.4;
}

.instructor-content .instructor-desc {
    font-size: 16px;
    color: #555555;
    line-height: 1.8;
    margin-bottom: 32px;
}

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

.instructor-features li {
    background-color: #FFF2F2; 
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    font-weight: 600;
    color: #333333;
    transition: transform 0.3s ease;
}

.instructor-features li:hover {
    transform: translateX(-5px); 
}

.instructor-image-col {
    flex: 1;
    min-width: 300px;
    max-width: 450px;
    display: flex;
    justify-content: center;
    position: relative;
}

.instructor-image-wrapper {
    position: relative;
    z-index: 1;
}

.instructor-img {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 24px;
    position: relative;
    z-index: 2;
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

.instructor-image-bg {
    position: absolute;
    top: 20px;
    right: -20px;
    width: 100%;
    height: 100%;
    background-color: #FFF2F2; 
    border-radius: 24px;
    z-index: 1;
}

.experience-badge {
    position: absolute;
    bottom: 30px; 
    right: -30px;
    background: linear-gradient(90deg, #D32F2F 0%, #F44336 100%);
    color: #ffffff;
    font-size: 15px;
    font-weight: bold;
    padding: 16px 24px;
    border-radius: 12px;
    z-index: 3;
    box-shadow: 0 10px 20px rgba(211, 47, 47, 0.3);
}

/* =========================================
   FAQ Section (سوالات متداول دو ستونه)
========================================= */
.course-faq {
    padding: 80px 20px;
    background-color: #f8fafc;
    direction: rtl;
}

.faq-container { max-width: 1200px; margin: 0 auto; }

.course-faq .section-title {
    text-align: center;
    color: #1e293b;
    font-size: 28px;
    font-weight: 900;
    margin-bottom: 10px;
}

.course-faq .section-subtitle {
    text-align: center;
    color: #475569;
    font-size: 16px;
    margin-top: 0;
    margin-bottom: 50px;
}

.faq-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    align-items: start;
}

.faq-column { display: flex; flex-direction: column; gap: 16px; }

.faq-item {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.faq-item:hover { box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03); }

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary {
    list-style: none;
    padding: 20px 24px;
    font-size: 16px;
    font-weight: 700;
    color: #1e293b;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
}

.faq-icon {
    font-size: 26px;
    font-weight: 300;
    color: #64748b;
    transition: transform 0.3s ease, color 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
}

.faq-item[open] .faq-icon {
    transform: rotate(45deg);
    color: #1e293b;
}

.faq-content {
    padding: 0 24px 24px 24px;
    color: #475569;
    font-size: 15px;
    line-height: 1.8;
    text-align: justify;
}

.faq-content p {
    margin: 0;
    padding-top: 20px;
    border-top: 1px dashed #e2e8f0;
}

@media (max-width: 768px) {
    .faq-grid { grid-template-columns: 1fr; }
    .course-faq { padding: 60px 20px; }
}


/* =========================================
   صفحه آرشیو مقالات (Blog Archive)
   ========================================= */
.blog-archive-page {
    background-color: #f8fafc; 
    padding-bottom:  0px;
}

/* هیرو دو ستونه */
.blog-hero {
    padding: 40px 0;
    background-color: #ffffff;
}

.blog-hero-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: center;
}

.blog-hero-info {
    flex: 1;
    min-width: 300px;
}

.blog-hero-featured {
    flex: 1;
    min-width: 300px;
}

.blog-hero-info .hero-title {
    font-size: 32px;
    color: #0f172a; 
    margin-bottom: 15px;
    font-weight: 800;
}

.blog-hero-info .hero-desc {
    color: #64748b;
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 25px;
}

/* فرم جستجو */
.blog-search-box form {
    display: flex;
    background: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 30px;
}

.blog-search-box input {
    flex: 1;
    border: none;
    padding: 15px;
    outline: none;
    font-family: inherit;
}

.blog-search-box button {
    background-color: #1e3a8a; 
    color: #fff;
    border: none;
    padding: 0 30px;
    cursor: pointer;
    font-weight: bold;
    transition: 0.3s;
}

.blog-search-box button:hover {
    background-color: #1e40af;
}

/* باکس‌های آمار */
.blog-stats {
    display: flex;
    gap: 15px;
}

.stat-box {
    flex: 1;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 15px;
    text-align: center;
}

.stat-box .stat-num {
    display: block;
    font-size: 20px;
    font-weight: bold;
    color: #0f172a;
}

.stat-box .stat-text {
    font-size: 12px;
    color: #64748b;
}

/* کارت مقاله منتخب */
.featured-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    position: relative;
    border: 1px solid #e2e8f0;
}

.featured-label {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #1e3a8a; 
    color: #fff;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    z-index: 2;
}

.featured-img img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.featured-content {
    padding: 20px;
}

.featured-content h3 a {
    color: #0f172a;
    text-decoration: none;
    font-size: 18px;
    font-weight: bold;
}

.featured-content p {
    color: #64748b;
    font-size: 14px;
    line-height: 1.6;
    margin: 10px 0 15px;
}

.featured-content .read-more-link {
    color: #1e3a8a;
    font-weight: bold;
    text-decoration: none;
    font-size: 14px;
}

/* تگ‌های دسته‌بندی */
.blog-categories-tags {
    padding: 30px 0;
}

.tags-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.tag-item {
    padding: 8px 16px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 30px;
    color: #475569;
    text-decoration: none;
    font-size: 14px;
    transition: 0.3s;
}

.tag-item:hover, .tag-item.active {
    background: #1e3a8a; 
    color: #ffffff;
    border-color: #1e3a8a;
}

/* گرید مقالات و استایل کارت مقاله */
.blog-articles-list {
    padding-bottom: 40px;
}

.articles-grid-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.blog-articles-list .article-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    border: 1px solid #f1f5f9;
    transition: transform 0.3s;
}

.blog-articles-list .article-card:hover {
    transform: translateY(-5px);
}

.blog-articles-list .article-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.blog-articles-list .article-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.blog-articles-list .article-meta {
    margin-bottom: 10px;
    font-size: 13px;
    color: #94a3b8;
}

.blog-articles-list .article-title {
    font-size: 16px;
    line-height: 1.6;
    margin: 0;
}

.blog-articles-list .article-title a {
    color: #0f172a;
    text-decoration: none;
}

/* صفحه‌بندی وردپرس */
.blog-pagination {
    text-align: center;
    margin-top: 30px;
}

.blog-pagination .page-numbers {
    display: inline-block;
    padding: 8px 16px;
    margin: 0 4px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    color: #1e3a8a;
    text-decoration: none;
    transition: 0.3s;
}

.blog-pagination .page-numbers.current,
.blog-pagination .page-numbers:hover {
    background: #1e3a8a;
    color: #fff;
    border-color: #1e3a8a;
}

/* بخش CTA انتهایی مقالات */
.blog-cta-section {
    padding:  0px 0  0px 0;
}

.cta-wrapper {
    background: linear-gradient(135deg, #1e3a8a 0%, #172554 100%);
    border-radius: 24px;
    padding: 60px 30px;
    text-align: center;
    color: #ffffff;
    box-shadow: 0 20px 40px rgba(30, 58, 138, 0.15);
}

.cta-wrapper h2 {
    font-size: 32px;
    margin-bottom: 15px;
    font-weight: 800;
    color: #ffffff;
}

.cta-wrapper p {
    font-size: 16px;
    margin-bottom: 35px;
    color: #cbd5e1;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
}

.cta-wrapper .cta-button {
    display: inline-block;
    background-color: #ffffff;
    color: #1e3a8a;
    padding: 16px 40px;
    border-radius: 30px;
    font-weight: bold;
    text-decoration: none;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.cta-wrapper .cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 25px rgba(0,0,0,0.15);
    background-color: #f8fafc;
    color: #172554;
}

/* =========================================
   Footer Styles
   ========================================= */
.site-footer, 
footer {
    background-color: #2c3e50; 
    color: #ffffff; 
    padding-top: 20px !important;
    padding-bottom: 20px;
    margin-top: 20px !important;
}

.site-footer h1, .site-footer h2, .site-footer h3, .site-footer h4,
footer h1, footer h2, footer h3, footer h4 {
    color: #ffffff !important;
    margin-bottom: 20px;
}

.site-footer p,
.site-footer a,
footer p,
footer a {
    color: #bdc3c7 !important; 
}

.site-footer a:hover,
footer a:hover {
    color: #ffffff !important;
}

.site-footer input[type="search"],
.site-footer input[type="text"] {
    background-color: #ffffff;
    color: #333;
    border: 1px solid #ccc;
    padding: 8px;
    border-radius: 4px;
}

.custom-dark-footer {
    background-color: #24273f; 
    color: #ffffff;
    padding-top: 50px;
    direction: rtl;
    margin-top: 40px; 
}

.custom-dark-footer .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
    padding-bottom: 30px;
}

.footer-col h4 {
    color: #ffffff;
    font-size: 1.1rem;
    margin-bottom: 20px;
    font-weight: 700;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    right: 0;
    bottom: 0;
    width: 40px;
    height: 3px;
    background-color: var(--color-primary);
    border-radius: 2px;
}

.footer-col p,
.footer-col ul li {
    color: #cbd5e1;
    font-size: 0.95rem;
    line-height: 1.8;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #cbd5e1;
    display: inline-block;
}

.footer-links a:hover {
    color: var(--color-primary);
    transform: translateX(-5px); 
}

.social-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.social-btn {
    background-color: #343854;
    color: #ffffff !important;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.9rem;
}

.social-btn:hover {
    background-color: var(--color-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.footer-bottom {
    background-color: #1a1c2e; 
    padding: 20px 0;
    border-top: 1px solid #343854;
}

.bottom-bar-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.copyright {
    margin: 0;
    font-size: 0.9rem;
    color: #94a3b8;
}

.copyright strong {
    color: #ffffff;
}

.scroll-to-top {
    color: #cbd5e1;
    font-size: 0.9rem;
}

.scroll-to-top:hover {
    color: #ffffff;
}

/* =========================================
   مدیا کوئری‌های عمومی و یکپارچه (Responsive)
   ========================================= */
@media (max-width: 1200px) {
    .hero-container {
        gap: 0px;
        padding: 0 20px;
    }
    .hero-img {
        max-width: 600px;
    }
    .path-boxes-grid {
        gap: 15px;
    }
    .path-box {
        padding: 40px 15px 30px;
        min-height: 380px;
    }
}

@media (max-width: 1024px) {
    .hero-container {
        flex-direction: column;
        text-align: center;
    }
    .hero-content {
        order: 2; 
        max-width: 100%;
    }
    .hero-image-wrapper {
        order: 1; 
        margin-bottom: 40px;
    }
    .hero-img {
        max-width: 550px;
    }
    .hero-stats {
        order: 3; 
        width: 100%;
        max-width: 600px;
    }
    .articles-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 992px) {
    .cta-modern-box {
        flex-direction: column-reverse;
        padding: 40px 30px;
        text-align: center;
        gap: 50px;
    }
    .cta-content {
        max-width: 100%;
    }
    .cta-image-wrapper {
        max-width: 300px;
        margin: 0 auto;
    }
    .badge-top {
        right: -15px;
    }
    .path-boxes-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    .instructor-wrapper {
        flex-direction: column-reverse;
        text-align: center;
        gap: 60px;
    }
    .instructor-content .section-title {
        font-size: 26px;
    }
    .instructor-features li {
        justify-content: center;
    }
    .experience-badge {
        right: 50%;
        transform: translateX(50%);
        bottom: -20px;
    }
    .instructor-image-bg {
        right: -10px;
        top: 10px;
    }
    .faq-split-container {
        flex-direction: column;
        gap: 40px;
    }
    .faq-info-column,
    .faq-accordion-column {
        width: 100%;
    }
    /* Blog Archive Responsive */
    .articles-grid-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .bottom-bar-flex {
        flex-direction: column;
        text-align: center;
    }
    .hero-section {
        padding: 0 0 20px 0; 
    }
    .learning-path-section {
        padding: 20px 0; 
    }
    .hero-image-wrapper {
        margin-bottom: 20px;
    }
    /* Blog Archive Responsive */
    .articles-grid-container {
        grid-template-columns: 1fr;
    }
    .blog-hero-wrapper {
        flex-direction: column-reverse;
    }
    .cta-wrapper {
        padding: 40px 20px;
    }
    .cta-wrapper h2 {
        font-size: 24px;
    }
}

@media (max-width: 640px) {
    .articles-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    .articles-title,
    .section-title {
        font-size: 1.8rem;
    }
    .testimonials-section {
        padding-top: 15px;
    }
}

@media (max-width: 576px) {
    .path-boxes-grid {
        grid-template-columns: 1fr;
    }
    .path-box {
        border-radius: 90px 90px 20px 20px; 
        min-height: auto;
    }
    .hero-section {
        padding: 0 0 15px 0;
    }
    .learning-path-section {
        padding: 15px 0;
    }
}
/* تنظیم گرید اصلی برای نمایش ۳ ستونه و جمع‌وجورتر */
.your-grid-container-class { /* کلاس کانتینر اصلی مقالات خود را جایگزین کنید */
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px; /* فاصله بین کارت‌ها */
    max-width: 1100px; /* محدود کردن عرض کل برای کوچک‌تر شدن ابعاد صفحه */
    margin: 0 auto;
}

/* استایل کارت مقاله */
.custom-post-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* تنظیم ابعاد تصویر */
.custom-post-thumbnail img {
    width: 100%;
    height: 180px; /* ارتفاع ثابت برای تصویر جهت یکدست شدن کارت‌ها */
    object-fit: cover;
}

/* پدینگ داخلی کارت */
.custom-post-content {
    padding: 15px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

/* استایل بخش تاریخ و دسته‌بندی */
.custom-post-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #888;
    margin-bottom: 10px;
}

/* استایل بج دسته‌بندی (رنگ بنفش مشابه سایت قبل) */
.post-category {
    background-color: #f3f0fa;
    color: #6b46c1;
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: bold;
}

/* استایل عنوان */
.post-title {
    font-size: 16px;
    line-height: 1.5;
    margin: 0 0 10px 0;
    font-weight: bold;
}

.post-title a {
    color: #333;
    text-decoration: none;
}

/* استایل خلاصه مقاله */
.post-excerpt {
    font-size: 13px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
    flex-grow: 1; /* هول دادن دکمه ادامه مطلب به پایین */
}

/* دکمه ادامه مقاله */
.read-more-link {
    color: #6b46c1;
    font-size: 13px;
    font-weight: bold;
    text-decoration: none;
    align-self: flex-end; /* تراز کردن سمت چپ/راست بر اساس نیاز */
}
/* محدود کردن عرض کل محتوای صفحه مقالات و ایجاد فضای خالی در اطراف (مانند سایت قبل) */
.blog-archive-page .container {
    max-width: 1140px !important; /* عرض استاندارد سایت - می‌توانید عدد را به 1200px نیز تغییر دهید */
    margin: 0 auto !important; /* وسط‌چین کردن محتوا */
    padding-left: 15px;
    padding-right: 15px;
}
/* استایل کانتینر اصلی CTA مشابه سایت قبل */
.custom-cta-section {
    background-color: #f8f9fa; /* پس‌زمینه خاکستری بسیار روشن/سفید */
    text-align: center;
    padding: 40px 20px;
    border-radius: 16px; /* گوشه‌های گرد */
    max-width: 1000px; /* محدود کردن عرض برای شباهت به سایت قبل */
    margin: 40px auto 60px auto; /* وسط‌چین کردن و فاصله از بالا و پایین */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03); /* یک سایه بسیار محو برای زیبایی */
}

.custom-cta-section {
    background-color: #f4f7f6; /* رنگ پس‌زمینه خاکستری/آبی بسیار روشن */
    padding: 50px 30px;
    border-radius: 16px; /* گوشه‌های گرد */
    text-align: center;
    margin: 60px auto;
    max-width: 800px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06); /* سایه ملایم برای برجسته شدن باکس */
    border: 1px solid #e5e7eb; /* حاشیه بسیار ظریف */
}

/* استایل‌های متن و دکمه (در صورت نیاز به بررسی) */
.custom-cta-section h2 {
    font-size: 24px;
    color: #1f2937;
    margin-bottom: 15px;
    font-weight: 800;
}

.custom-cta-section p {
    font-size: 16px;
    color: #4b5563;
    margin-bottom: 30px;
    line-height: 1.6;
}

.custom-cta-button {
    background-color: #0056b3; /* رنگ آبی دکمه */
    color: #ffffff;
    padding: 12px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    display: inline-block;
    transition: background-color 0.3s ease;
}

.custom-cta-button:hover {
    background-color: #004494; /* رنگ دکمه هنگام رفتن موس روی آن */
    color: #ffffff;
}
:root {
  /* پالت قرمز */
  --st-primary: #D32F2F; 
  --st-primary-2: #E53935;
  --st-primary-3: #ffebee;
  
  /* پالت سورمه‌ای */
  --st-navy: #161b33;
  --st-navy-light: #2c345c;
  
  /* رنگ‌های پایه */
  --st-text: var(--st-navy);
  --st-muted: #5e6583;
  --st-white: #ffffff;
  --st-border: #e0e2ec;
  --st-bg: #f8f9fc;
  
  /* سایه‌ها متناسب با رنگ‌های جدید */
  --st-shadow: 0 20px 60px rgba(22, 27, 51, 0.08);
  --st-radius: 24px;
}

/* ================================
   Base
================================ */

.st-podcast-page {
  background: linear-gradient(180deg, var(--st-bg) 0%, #ffffff 100%);
  color: var(--st-text);
  direction: rtl;
  padding: 48px 0 80px;
  overflow: hidden;
}

.st-container {
  width: min(1200px, calc(100% - 32px));
  margin-inline: auto;
}

.st-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 16px;
  border: 1px solid transparent;
  font-weight: 800;
  text-decoration: none;
  transition: .25s ease;
  cursor: pointer;
  line-height: 1.4;
}

.st-btn--primary {
  background: linear-gradient(135deg, var(--st-primary) 0%, var(--st-primary-2) 100%);
  color: #fff;
  box-shadow: 0 12px 30px rgba(211, 47, 47, 0.25);
}

.st-btn--primary:hover {
  transform: translateY(-2px);
  color: #fff;
  box-shadow: 0 16px 35px rgba(211, 47, 47, 0.35);
}

.st-btn--ghost {
  background: #fff;
  border-color: var(--st-border);
  color: var(--st-text);
}

.st-btn--ghost:hover {
  border-color: var(--st-primary);
  color: var(--st-primary);
}

.st-btn--light {
  background: #fff;
  color: var(--st-primary);
}

.st-btn--light:hover {
  color: var(--st-primary);
  transform: translateY(-2px);
}

/* ================================
   Hero
================================ */

.st-podcast-hero {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 32px;
  align-items: center;
  padding: 40px;
  background:
    radial-gradient(circle at top right, rgba(211, 47, 47, 0.12), transparent 35%),
    linear-gradient(135deg, #ffffff 0%, var(--st-bg) 100%);
  border: 1px solid var(--st-border);
  border-radius: 32px;
  box-shadow: var(--st-shadow);
  overflow: hidden;
}

.st-podcast-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--st-primary-3);
  color: var(--st-primary);
  font-weight: 800;
  font-size: 14px;
  margin-bottom: 18px;
}

.st-podcast-hero h1 {
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.2;
  margin: 0 0 16px;
  color: var(--st-navy);
}

.st-podcast-hero p {
  font-size: 17px;
  line-height: 2;
  color: var(--st-muted);
  margin: 0 0 24px;
}

.st-podcast-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}

.st-podcast-hero__features {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.st-podcast-hero__features li {
  padding: 10px 14px;
  background: #fff;
  border: 1px solid var(--st-border);
  border-radius: 14px;
  color: var(--st-text);
  font-size: 14px;
  font-weight: 700;
}

.st-podcast-hero__visual {
  display: flex;
  justify-content: center;
}

.st-podcast-hero-card {
  position: relative;
  width: min(100%, 480px);
  border-radius: 28px;
  overflow: hidden;
  background: #fff;
  box-shadow: var(--st-shadow);
  border: 1px solid rgba(255, 255, 255, 0.6);
}

.st-podcast-hero-card img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1/1;
  object-fit: cover;
}

.st-podcast-hero-card__glow {
  position: absolute;
  inset: auto -40px -40px auto;
  width: 160px;
  height: 160px;
  background: radial-gradient(circle, rgba(211, 47, 47, 0.35) 0%, rgba(211, 47, 47, 0) 70%);
  pointer-events: none;
}

/* ================================
   Sections
================================ */

.st-podcast-intro,
.st-podcast-seo-text {
  margin-top: 56px;
}

.st-section-head {
  text-align: center;
  max-width: 860px;
  margin: 0 auto;
}

.st-section-head h2 {
  margin: 0 0 16px;
  font-size: clamp(26px, 4vw, 40px);
  line-height: 1.4;
  color: var(--st-navy);
}

.st-section-head p {
  margin: 0 0 14px;
  font-size: 16px;
  line-height: 2;
  color: var(--st-muted);
}

/* ================================
   Podcast Grid
================================ */

.st-podcast-grid-section {
  margin-top: 40px;
}

.st-podcast-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.st-podcast-card {
  background: #fff;
  border: 1px solid var(--st-border);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(22, 27, 51, 0.05);
  transition: .25s ease;
}

.st-podcast-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(22, 27, 51, 0.10);
}

.st-podcast-card.is-hidden {
  display: none;
}

.st-podcast-card.is-playing {
  border-color: rgba(211, 47, 47, 0.45);
  box-shadow: 0 18px 46px rgba(211, 47, 47, 0.14);
}

.st-podcast-card__thumb {
  position: relative;
  overflow: hidden;
  background: var(--st-bg);
}

.st-podcast-card__thumb img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  display: block;
}

.st-podcast-card__body {
  padding: 18px;
}

.st-podcast-card__body h3 {
  margin: 0 0 8px;
  font-size: 20px;
  line-height: 1.5;
  color: var(--st-navy);
}

.st-podcast-card__body p {
  margin: 0 0 16px;
  color: var(--st-muted);
  line-height: 1.9;
  font-size: 14px;
}

/* ================================
   Card Play Button
================================ */

.st-card-main-play {
  position: absolute;
  left: 18px;
  bottom: 18px;
  width: 62px;
  height: 62px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--st-primary) 0%, var(--st-primary-2) 100%);
  box-shadow: 0 18px 35px rgba(211, 47, 47, 0.35);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
  transition: transform .25s ease, box-shadow .25s ease, opacity .25s ease;
}

.st-card-main-play:hover {
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 22px 45px rgba(211, 47, 47, 0.42);
}

.st-card-main-play span {
  width: 0;
  height: 0;
  border-top: 11px solid transparent;
  border-bottom: 11px solid transparent;
  border-right: 0;
  border-left: 17px solid #fff;
  margin-left: 4px;
}

.st-podcast-card.is-playing .st-card-main-play span {
  width: 18px;
  height: 22px;
  border: 0;
  margin: 0;
  background:
    linear-gradient(#fff, #fff) left center / 6px 22px no-repeat,
    linear-gradient(#fff, #fff) right center / 6px 22px no-repeat;
}

/* ================================
   Listen Button
================================ */

.st-podcast-listen-btn {
  width: 100%;
  min-height: 52px;
  border: 1px solid var(--st-border);
  border-radius: 16px;
  background: #fff;
  color: var(--st-text);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 900;
  cursor: pointer;
  transition: .25s ease;
}

.st-podcast-listen-btn:hover {
  border-color: var(--st-primary);
  color: var(--st-primary);
  background: var(--st-primary-3);
}

.st-podcast-listen-btn__icon {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--st-primary) 0%, var(--st-primary-2) 100%);
  position: relative;
  flex: 0 0 34px;
}

.st-podcast-listen-btn__icon::before {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 0;
  height: 0;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  border-left: 10px solid #fff;
  transform: translateX(1px);
}

.st-podcast-card.is-playing .st-podcast-listen-btn {
  background: var(--st-primary-3);
  color: var(--st-primary);
  border-color: rgba(211, 47, 47, 0.35);
}

.st-podcast-card.is-playing .st-podcast-listen-btn__text::after {
  content: " در حال پخش";
}

.st-podcast-card.is-playing .st-podcast-listen-btn__icon::before {
  width: 12px;
  height: 14px;
  border: 0;
  background:
    linear-gradient(#fff, #fff) left center / 4px 14px no-repeat,
    linear-gradient(#fff, #fff) right center / 4px 14px no-repeat;
}

/* ================================
   Load More
================================ */

.st-load-more-wrap {
  text-align: center;
  margin-top: 32px;
}

/* ================================
   CTA
================================ */

.st-podcast-cta {
  margin-top: 64px;
  padding: 42px;
  border-radius: 32px;
  background: linear-gradient(135deg, var(--st-navy) 0%, var(--st-navy-light) 100%);
  color: #fff;
  box-shadow: 0 24px 50px rgba(22, 27, 51, 0.24);
  text-align: center;
}

.st-podcast-cta .st-podcast-badge {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

.st-podcast-cta h2 {
  margin: 14px 0 12px;
  font-size: clamp(26px, 4vw, 42px);
  line-height: 1.4;
  color: #fff;
}

.st-podcast-cta p {
  margin: 0 0 22px;
  line-height: 2;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.92);
}

/* ================================
   Sticky Bottom Player
================================ */

.st-sticky-player {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 18px;
  z-index: 9999;
  display: flex;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transform: translateY(120%);
  transition: opacity .3s ease, transform .3s ease;
}

.st-sticky-player.is-active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.st-sticky-player__inner {
  width: min(1040px, calc(100% - 28px));
  min-height: 92px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(224, 226, 236, 0.95);
  box-shadow: 0 24px 70px rgba(22, 27, 51, 0.18);
  border-radius: 24px;
  padding: 12px 14px;
  display: grid;
  grid-template-columns: 68px 1fr auto;
  align-items: center;
  gap: 14px;
  direction: rtl;
}

.st-sticky-player__cover {
  width: 68px;
  height: 68px;
  border-radius: 18px;
  overflow: hidden;
  background: var(--st-bg);
  box-shadow: 0 10px 25px rgba(22, 27, 51, 0.10);
}

.st-sticky-player__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.st-sticky-player__content {
  min-width: 0;
}

.st-sticky-player__meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 12px;
}

.st-sticky-player__meta strong {
  color: var(--st-navy);
  font-size: 16px;
  font-weight: 900;
  line-height: 1.5;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.st-sticky-player__meta span {
  color: var(--st-muted);
  font-size: 13px;
  line-height: 1.5;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.st-sticky-player__timeline {
  display: grid;
  grid-template-columns: 48px 1fr 48px;
  align-items: center;
  gap: 10px;
  direction: ltr;
}

#st-sticky-current,
#st-sticky-duration {
  color: var(--st-muted);
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}

#st-sticky-progress {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 7px;
  border-radius: 999px;
  outline: none;
  cursor: pointer;
  background:
    linear-gradient(
      90deg,
      var(--st-primary) 0%,
      var(--st-primary) var(--progress, 0%),
      #e0e2ec var(--progress, 0%),
      #e0e2ec 100%
    );
}

#st-sticky-progress::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 17px;
  height: 17px;
  border-radius: 999px;
  background: var(--st-primary);
  border: 3px solid #fff;
  box-shadow: 0 4px 14px rgba(211, 47, 47, 0.35);
}

#st-sticky-progress::-moz-range-thumb {
  width: 17px;
  height: 17px;
  border-radius: 999px;
  background: var(--st-primary);
  border: 3px solid #fff;
  box-shadow: 0 4px 14px rgba(211, 47, 47, 0.35);
}

.st-sticky-player__actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.st-sticky-toggle {
  width: 58px;
  height: 58px;
  border-radius: 999px;
  border: 0;
  background: linear-gradient(135deg, var(--st-primary) 0%, var(--st-primary-2) 100%);
  box-shadow: 0 14px 30px rgba(211, 47, 47, 0.32);
  cursor: pointer;
  position: relative;
  flex: 0 0 58px;
}

.st-sticky-toggle span {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 0;
  height: 0;
  border-top: 11px solid transparent;
  border-bottom: 11px solid transparent;
  border-left: 16px solid #fff;
  transform: translateX(2px);
}

.st-sticky-player.is-playing .st-sticky-toggle span {
  width: 18px;
  height: 22px;
  border: 0;
  transform: none;
  background:
    linear-gradient(#fff, #fff) left center / 6px 22px no-repeat,
    linear-gradient(#fff, #fff) right center / 6px 22px no-repeat;
}

.st-sticky-close {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 999px;
  background: var(--st-primary-3);
  color: var(--st-primary);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  transition: .2s ease;
}

.st-sticky-close:hover {
  background: var(--st-primary);
  color: #fff;
}

body.st-player-open {
  padding-bottom: 120px;
}

/* ================================
   Responsive
================================ */

@media (max-width: 991px) {
  .st-podcast-hero {
    grid-template-columns: 1fr;
    padding: 24px;
  }

  .st-podcast-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .st-podcast-page {
    padding: 24px 0 56px;
  }

  .st-container {
    width: min(100%, calc(100% - 20px));
  }

  .st-podcast-hero {
    border-radius: 24px;
  }

  .st-podcast-hero__actions {
    flex-direction: column;
  }

  .st-btn {
    width: 100%;
  }

  .st-podcast-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .st-podcast-card {
    border-radius: 20px;
  }

  .st-podcast-card__body {
    padding: 14px;
  }

  .st-card-main-play {
    width: 56px;
    height: 56px;
    left: 14px;
    bottom: 14px;
  }

  .st-podcast-cta {
    padding: 28px 18px;
    border-radius: 24px;
  }

  .st-sticky-player {
    bottom: 10px;
  }

  .st-sticky-player__inner {
    width: calc(100% - 18px);
    min-height: auto;
    border-radius: 22px;
    padding: 10px;
    grid-template-columns: 58px 1fr 48px;
    gap: 10px;
  }

  .st-sticky-player__cover {
    width: 58px;
    height: 58px;
    border-radius: 16px;
  }

  .st-sticky-player__meta {
    margin-bottom: 8px;
  }

  .st-sticky-player__meta strong {
    font-size: 14px;
  }

  .st-sticky-player__meta span {
    font-size: 12px;
  }

  .st-sticky-player__timeline {
    grid-template-columns: 40px 1fr 40px;
    gap: 6px;
  }

  #st-sticky-current,
  #st-sticky-duration {
    font-size: 10px;
  }

  .st-sticky-player__actions {
    flex-direction: column;
    gap: 5px;
  }

  .st-sticky-toggle {
    width: 46px;
    height: 46px;
    flex-basis: 46px;
  }

  .st-sticky-toggle span {
    border-top-width: 9px;
    border-bottom-width: 9px;
    border-left-width: 13px;
  }

  .st-sticky-close {
    width: 26px;
    height: 26px;
    font-size: 20px;
  }

  body.st-player-open {
    padding-bottom: 110px;
  }
}
.st-podcast-card .st-podcast-image img {
    width: 100%;
    aspect-ratio: 1 / 1; /* نسبت تصویر را دقیقا مربع می‌کند */
    object-fit: cover; /* باعث می‌شود عکس بدون کشیدگی، کادر را پر کند */
    border-radius: 12px 12px 0 0; /* گرد کردن گوشه‌های بالای عکس */
}
/* ==========================================================================
   Podcast Archive Page Styles (ZabaneTurki)
   ========================================================================== */

/* --- General Variables --- */
:root {
    --primary-color: #e63946; /* رنگ اصلی سایت - می‌توانید تغییر دهید */
    --primary-hover: #d62828;
    --text-dark: #1d3557;
    --text-muted: #457b9d;
    --bg-light: #f1faee;
    --card-bg: #ffffff;
    --border-radius: 12px;
}

/* --- Hero Section --- */
.podcast-hero {
    background: linear-gradient(135deg, var(--text-dark), #2a4c7e);
    color: #ffffff;
    padding: 60px 0;
}
.podcast-hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    gap: 40px;
}
.hero-content {
    flex: 1;
}
.hero-title {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 20px;
    color: #1D3557;
}
.hero-description {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 30px;
    opacity: 0.9;
}
.hero-image {
    flex: 1;
    text-align: left;
}
.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}
.btn-primary {
    background-color: var(--primary-color);
    color: #fff;
    box-shadow: 0 4px 10px rgba(230, 57, 70, 0.3);
}
.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    color: #fff;
}

/* --- Podcast Grid Section --- */
.podcast-list-section {
    padding: 80px 0;
    background-color: #f9f9fc;
}
.podcast-list-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
.podcast-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

/* Podcast Cards */
.podcast-card {
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}
.podcast-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}
.podcast-thumbnail {
    position: relative;
    width: 100%;
    height: 200px;
}
.podcast-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.podcast-duration-badge {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0,0,0,0.7);
    color: #fff;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* Card Content */
.podcast-info {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.podcast-level {
    display: inline-block;
    background-color: var(--bg-light);
    color: var(--text-muted);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 15px;
    align-self: flex-start;
}
.podcast-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.4;
}
.podcast-title a {
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.3s;
}
.podcast-title a:hover {
    color: var(--primary-color);
}
.podcast-excerpt {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}
.btn-play {
    display: block;
    text-align: center;
    background-color: #f4f4f5;
    color: var(--text-dark);
    padding: 10px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s, color 0.3s;
}
.btn-play:hover {
    background-color: var(--primary-color);
    color: #fff;
}

/* --- Pagination --- */
.podcast-pagination {
    text-align: center;
    margin-top: 40px;
}
.podcast-pagination .nav-links {
    display: inline-flex;
    gap: 10px;
}
.podcast-pagination .page-numbers {
    display: inline-block;
    padding: 8px 16px;
    background: var(--card-bg);
    border: 1px solid #ddd;
    border-radius: 8px;
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}
.podcast-pagination .page-numbers:hover,
.podcast-pagination .page-numbers.current {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

/* --- CTA Section --- */
.cta-salam-turkiye {
    padding: 60px 0;
    background-color: #fff;
}
.cta-box {
    background: var(--bg-light);
    border: 2px dashed #a8dadc;
    border-radius: 16px;
    padding: 50px 30px;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}
.cta-box h2 {
    font-size: 2rem;
    color: var(--text-dark);
    margin-bottom: 15px;
}
.cta-box p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 30px;
}
.btn-cta {
    background-color: #2a9d8f;
    color: #fff;
    font-size: 1.1rem;
    padding: 15px 30px;
}
.btn-cta:hover {
    background-color: #21867a;
    transform: scale(1.05);
}

/* --- Responsive Design (Mobile & Tablet) --- */
@media (max-width: 768px) {
    .podcast-hero .container {
        flex-direction: column;
        text-align: center;
    }
    .hero-image {
        margin-top: 30px;
        text-align: center;
    }
    .podcast-grid {
        grid-template-columns: 1fr;
    }
    .cta-box {
        padding: 40px 20px;
    }
}
/* استایل کارت‌های پادکست مشابه عکس */
.podcast-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 30px; margin-top: 40px; }
.podcast-card-app { background: #937979; border-radius: 24px; padding: 15px; box-shadow: 0 10px 30px rgba(0,0,0,0.03); border: 1px solid #f0f4f8; text-align: center; transition: transform 0.3s ease; }
.podcast-card-app:hover { transform: translateY(-5px); box-shadow: 0 15px 35px rgba(0,0,0,0.06); }

/* تصویر مربع (نسبت 1 به 1) */
.podcast-thumbnail-square { width: 100%; aspect-ratio: 1 / 1; background-color: #f8fafc; border-radius: 16px; overflow: hidden; margin-bottom: 20px; display: flex; align-items: center; justify-content: center; }
.podcast-thumbnail-square img { width: 100%; height: 100%; object-fit: contain; padding: 10px; }

/* متون و دکمه */
.podcast-title-app { font-size: 1.2rem; font-weight: 800; color: #1e293b; margin-bottom: 10px; }
.podcast-excerpt-app { font-size: 0.9rem; color: #64748b; margin-bottom: 20px; }
.btn-play-trigger { width: 100%; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 14px; background: #ffffff; color: #0f172a; border: 2px solid #e2e8f0; border-radius: 16px; font-weight: bold; font-size: 1rem; cursor: pointer; transition: all 0.2s; font-family: inherit; }
.btn-play-trigger svg { width: 20px; height: 20px; }
/* افکت هاور با رنگ نارنجی (رنگ لوگوی سایت شما) به جای بنفش */
.btn-play-trigger:hover { border-color: #f27a22; color: #f27a22; background: #fffaf5; }

/* ========================================= */
/* استایل پلیر چسبان پایین صفحه (مانند اپلیکیشن) */
/* ========================================= */
.sticky-player-container { position: fixed; bottom: 0; left: 0; width: 100%; background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(10px); box-shadow: 0 -5px 25px rgba(0,0,0,0.08); z-index: 9999; transform: translateY(120%); transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); border-top-left-radius: 30px; border-top-right-radius: 30px; padding: 15px 0; border-top: 1px solid #f1f5f9; }
.sticky-player-container.active { transform: translateY(0); }
.sticky-player-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.sticky-player-info { display: flex; align-items: center; gap: 15px; flex: 1; min-width: 200px; }
.sticky-player-info img { width: 50px; height: 50px; border-radius: 12px; object-fit: contain; background: #f8fafc; border: 1px solid #e2e8f0; }
.sticky-player-info span { font-weight: bold; color: #0f172a; font-size: 1.1rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sticky-player-controls { flex: 2; display: flex; justify-content: center; min-width: 250px; }
.sticky-player-controls audio { width: 100%; max-width: 600px; height: 45px; outline: none; }
#sticky-player-close { background: #f1f5f9; border: none; width: 35px; height: 35px; border-radius: 50%; font-size: 1rem; cursor: pointer; color: #64748b; display: flex; align-items: center; justify-content: center; transition: 0.2s; }
#sticky-player-close:hover { background: #fee2e2; color: #ef4444; }

/* ریسپانسیو برای موبایل */
@media (max-width: 768px) {
    .sticky-player-inner { flex-direction: column; gap: 10px; }
    .sticky-player-info { width: 100%; }
    .sticky-player-controls { width: 100%; }
    #sticky-player-close { position: absolute; top: 15px; left: 15px; }
}
body.tr-auth-fullpage .site-header,
body.tr-auth-fullpage .site-footer,
body.tr-auth-fullpage .entry-title,
body.tr-auth-fullpage .page-header {
	display: none !important;
}

body.tr-auth-fullpage .site-content,
body.tr-auth-fullpage #content,
body.tr-auth-fullpage .entry-content {
	padding: 0 !important;
	margin: 0 !important;
	max-width: none !important;
}

body.tr-auth-fullpage .tr-auth-page {
	min-height: 100vh;
}
/* یکپارچه‌سازی و افقی کردن کانتینر اکشن‌های هدر */
.header-actions {
    display: flex !important;
    flex-direction: row !important; /* قرارگیری در یک خط افقی */
    align-items: center !important; /* تراز عمودی در وسط */
    gap: 15px !important; /* فاصله بین جستجو و دکمه‌ها */
    flex-wrap: nowrap !important; /* جلوگیری از رفتن به خط بعد */
    width: auto !important;
}

/* جلوگیری از تمام‌عرض شدن دکمه‌های پنل کاربری و خروج */
.header-actions .btn-logout,
.header-actions .btn-profile,
.header-actions .btn-login-register {
    width: auto !important;
    margin: 0 !important;
    white-space: nowrap !important; /* جلوگیری از شکستن متن دکمه‌ها */
}

/* تنظیمات فرم جستجو برای سازگاری با دکمه‌ها */
.header-actions .header-search {
    margin: 0 !important;
    width: auto !important;
}

/* در صورتی که دکمه‌های کاربری داخل یک لایه مجزا (div) قرار دارند */
.header-actions > div:not(.header-search) {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 10px !important;
}
/* تنظیمات نوار ناوبری پایین مخصوص موبایل */
@media (max-width: 768px) {
    .mobile-bottom-nav {
        display: flex !important; /* اجبار به نمایش در موبایل */
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        background-color: #1e293b !important; /* رنگ پس‌زمینه سورمه‌ای */
        z-index: 999999 !important; /* قرارگیری بالاتر از تمام لایه‌ها */
        justify-content: space-around !important;
        align-items: center !important;
        padding: 8px 0 !important;
        padding-bottom: calc(8px + env(safe-area-inset-bottom)) !important; /* سازگاری با آیفون */
        height: auto !important;
        min-height: 65px !important;
        box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.15) !important;
    }
    
    .mobile-bottom-nav a {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        color: #f8fafc !important; /* رنگ آیکون و متن حالت عادی */
        font-size: 11px !important;
        text-decoration: none !important;
        gap: 5px !important;
    }

    .mobile-bottom-nav a svg {
        width: 24px !important;
        height: 24px !important;
        stroke: currentColor !important;
    }

    /* رنگ طلایی برای هاور و دکمه فعال */
    .mobile-bottom-nav a:hover, 
    .mobile-bottom-nav a:active,
    .mobile-bottom-nav a.active {
        color: #fcd34d !important;
    }

    /* فاصله دادن به انتهای محتوای سایت تا زیر نوار موبایل مخفی نشود */
    body {
        padding-bottom: 75px !important; 
    }
}

/* مخفی کردن کامل نوار ناوبری پایین در حالت دسکتاپ و تبلت بزرگ */
@media (min-width: 769px) {
    .mobile-bottom-nav {
        display: none !important;
    }
    body {
        padding-bottom: 0 !important;
    }
}
@media (max-width: 768px) {
    /* ایجاد فاصله در پایین محتوای اصلی برای جلوگیری از تداخل با نوار موبایل */
    .site-main {
        padding-bottom: 100px !important; /* این عدد را متناسب با ارتفاع نوار پایین خود تنظیم کنید */
    }
}
