/* ================================
   post.css - نسخه 2025 با رنگ‌بندی مدرن و فوتر یکسان
   ================================ */

/* ===== متغیرهای CSS 2025 ===== */
:root {
  /* متغیرهای اصلی از فایل blog.css */
  --primary-color: #4361ee;
  --primary-dark: #3a56d4;
  --primary-light: #5a75f0;
  --secondary-color: #7209b7;
  --accent-color: #f72585;
  --accent-light: #ff4da6;
  --text-color: #1a1a2e;
  --text-light: #4a4a6a;
  --text-lighter: #6c6c8a;
  --bg-color: #f8f9fa;
  --bg-light: #f1f3f9;
  --bg-lighter: #e9ecf8;
  --border-color: #e2e8f0;
  --border-radius: 16px;
  --box-shadow: 0 6px 20px rgba(67, 97, 238, 0.08);
  --box-shadow-hover: 0 12px 30px rgba(67, 97, 238, 0.12);
  --transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --font-family: 'Vazirmatn', 'B Nazanin', 'Segoe UI', Tahoma, Arial, sans-serif;
  
  /* متغیرهای اضافی */
  --card-color: #ffffff;
  --header-bg: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  --footer-bg: linear-gradient(135deg, #1a1a2e 0%, #2d2d44 100%);
  --footer-light: #3a3a5e;
  --highlight-link: #f72585;
  --link-border: #4361ee;
  --faq-bg: #e9ecef;
  --container-padding: 1.5rem;
  --mobile-breakpoint: 768px;
  --tablet-breakpoint: 1024px;
  
  /* متغیرهای جدید برای بهبود طراحی */
  --gradient-primary: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  --gradient-accent: linear-gradient(135deg, var(--accent-color) 0%, #ff4da6 100%);
  --gradient-card: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(248, 249, 255, 0.9));
  --glass-effect: rgba(255, 255, 255, 0.25);
  --glass-border: rgba(255, 255, 255, 0.18);
}

/* ===== بهبود اسکرول بار ===== */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg-light);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  border-radius: 10px;
  border: 2px solid var(--bg-light);
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, var(--primary-dark), var(--secondary-color));
}

::-webkit-scrollbar-corner {
  background: var(--bg-light);
}

/* استایل برای مرورگرهای Firefox */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--primary-color) var(--bg-light);
}

/* ===== ریست پایه و تنظیمات عمومی ===== */
*,
*::before,
*::after { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    line-height: 1.8;
    background-color: var(--bg-color);
    color: var(--text-color);
    direction: rtl;
    padding: var(--container-padding);
    transition: background 0.3s, color 0.3s;
    min-height: 100vh;
    -webkit-text-size-adjust: 100%;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(67, 97, 238, 0.05) 0%, transparent 20%),
        radial-gradient(circle at 90% 80%, rgba(247, 37, 133, 0.05) 0%, transparent 20%);
}

/* ===== کانتینر اصلی ===== */
.container { 
    max-width: min(1100px, 95vw); 
    margin: 2.5rem auto; 
    padding: 0 var(--container-padding);
    width: 100%;
    animation: fadeIn 0.6s ease-out;
}

/* ===== انیمیشن‌ها ===== */
@keyframes fadeIn { 
    from { opacity: 0; transform: translateY(20px); } 
    to { opacity: 1; transform: translateY(0); } 
}

@keyframes slideUp { 
    from { transform: translateY(40px); opacity: 0; } 
    to { transform: translateY(0); opacity: 1; } 
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(67, 97, 238, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(67, 97, 238, 0); }
    100% { box-shadow: 0 0 0 0 rgba(67, 97, 238, 0); }
}

/* ===== هدر پست پیشرفته ===== */
.blog-header {
    position: relative;
    background: var(--header-bg);
    color: white;
    padding: 4rem 2rem;
    text-align: center;
    margin-bottom: 2.5rem;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    animation: fadeIn 0.8s ease-out;
}

.blog-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
    z-index: 1;
}

.blog-header .header-text {
    position: relative;
    z-index: 2;
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: calc(var(--border-radius) - 5px);
    border: 1px solid var(--glass-border);
}

.blog-header h1 {
    color: white;
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 1.5rem;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    line-height: 1.3;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.post-header-date {
    font-size: 1.2rem;
    opacity: 0.95;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    background: rgba(255, 255, 255, 0.15);
    padding: 12px 24px;
    border-radius: 50px;
    backdrop-filter: blur(5px);
    max-width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

/* ===== breadcrumb مدرن ===== */
.breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin: 2rem 0;
    padding: 20px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: var(--border-radius);
    font-size: 1rem;
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    animation: fadeIn 0.6s ease-out 0.2s both;
}

.breadcrumb-separator {
    color: rgba(255, 255, 255, 0.7);
    margin: 0 8px;
    font-size: 1.2rem;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
}

.breadcrumb-item a {
    color: rgba(255, 255, 255, 0.95);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    padding: 6px 12px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
}

.breadcrumb-item a:hover {
    color: white;
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.breadcrumb-item.active {
    color: white;
    font-weight: 700;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 8px;
}

/* ===== دسته‌بندی‌های پست - مشکل رفع شد ===== */
.post-categories-container {
    margin: 2rem 0;
    padding: 25px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: var(--border-radius);
    backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    animation: fadeIn 0.6s ease-out 0.4s both;
}

.categories-title {
    font-weight: 800;
    color: white;
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    text-align: center;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.categories-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.category-tag {
    background: rgba(255, 255, 255, 0.25);
    color: white;
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(5px);
    position: relative;
}

.category-tag:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.category-tag.active {
    background: rgba(255, 255, 255, 0.4);
    border: 2px solid white;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.category-tag.active::after {
    content: '✓';
    position: absolute;
    top: -8px;
    left: -8px;
    background: var(--accent-color);
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    z-index: 3;
}

/* ===== user mini profile ===== */
.user-profile-mini {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    margin-top: 20px;
    font-weight: 700;
    flex-wrap: wrap;
    justify-content: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    animation: fadeIn 0.6s ease-out 0.6s both;
}

.user-profile-mini .badge-doctor {
    background: var(--gradient-primary);
    color: white;
    padding: 6px 14px;
    border-radius: 12px;
    font-size: clamp(0.8rem, 2.5vw, 0.9rem);
    border: none;
    white-space: nowrap;
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(67, 97, 238, 0.3);
}

.user-profile-mini button#logoutBtn {
    background: transparent;
    border: none;
    color: var(--primary-dark);
    cursor: pointer;
    padding: 8px 16px;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.user-profile-mini button#logoutBtn:hover { 
    background: rgba(67, 97, 238, 0.1);
    transform: translateY(-2px);
}

/* ===== تصویر Header ===== */
.header-image-wrapper { 
    text-align: center; 
    margin: 2.5rem 0; 
    animation: fadeIn 0.8s ease-out 0.8s both;
}

.header-image-wrapper img { 
    display: block; 
    margin: 1.5rem auto; 
    max-width: min(600px, 95%);
    width: 100%;
    height: auto;
    border-radius: 20px;
    border: 2px solid rgba(67, 97, 238, 0.2); 
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1); 
    object-fit: cover;
    aspect-ratio: 16/9;
    transition: var(--transition);
    filter: brightness(1.02) contrast(1.05);
}

.header-image-wrapper img:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-color);
}

/* ===== استایل‌های عکس‌های مدرن ===== */
.post-card img {
    width: min(45%, 100%) !important;
    max-width: 320px !important;
    border-radius: 20px !important;
    border: 3px solid rgba(233, 236, 248, 0.8) !important;
    box-shadow: 
        0 10px 30px rgba(67, 97, 238, 0.15),
        0 5px 15px rgba(67, 97, 238, 0.1) !important;
    object-fit: cover !important;
    margin: 0 auto !important;
    transition: var(--transition) !important;
    height: auto !important;
    padding: 10px !important;
    background: var(--gradient-card) !important;
    backdrop-filter: blur(12px) !important;
    animation: pulse 2s infinite !important;
}

.post-card img:hover {
    transform: translateY(-8px) scale(1.05) !important;
    box-shadow: 
        0 20px 50px rgba(67, 97, 238, 0.25),
        0 10px 25px rgba(67, 97, 238, 0.15) !important;
    border-color: var(--primary-color) !important;
    animation: none !important;
}

.blog-post img {
    display: block !important;
    margin: 2rem auto !important;
    width: min(55%, 100%) !important;
    max-width: 380px !important;
    border-radius: 18px !important;
    border: 3px solid rgba(233, 236, 248, 0.8) !important;
    box-shadow: 
        0 8px 25px rgba(67, 97, 238, 0.12),
        0 4px 12px rgba(67, 97, 238, 0.08) !important;
    height: auto !important;
    padding: 8px !important;
    background: var(--gradient-card) !important;
    transition: var(--transition) !important;
    backdrop-filter: blur(10px) !important;
}

.blog-post img:hover {
    transform: translateY(-6px) !important;
    box-shadow: 
        0 15px 40px rgba(67, 97, 238, 0.2),
        0 8px 20px rgba(67, 97, 238, 0.12) !important;
    border-color: var(--primary-color) !important;
}

.blog-post figure {
    margin: 2.5rem auto !important;
    text-align: center !important;
    padding: 0 !important;
    animation: fadeIn 0.6s ease-out;
}

.blog-post figcaption {
    margin-top: 12px !important;
    font-size: 0.9rem !important;
    color: var(--text-light) !important;
    font-style: italic !important;
    text-align: center !important;
    padding: 10px 15px !important;
    background: rgba(67, 97, 238, 0.08) !important;
    border-radius: 12px !important;
    border-right: 3px solid var(--primary-color) !important;
    max-width: 85% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    backdrop-filter: blur(5px);
}

/* ===== کارت پست ===== */
.post-card {
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    gap: 1.5rem;
    background: var(--gradient-card);
    padding: clamp(1.5rem, 4vw, 2.5rem);
    border-radius: 20px;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    margin: 2rem 0;
    border: 1px solid rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    animation: fadeIn 0.6s ease-out;
}

.post-card:hover { 
    transform: translateY(-8px); 
    box-shadow: var(--box-shadow-hover);
    border-color: rgba(67, 97, 238, 0.3);
}

.post-card .post-content { 
    width: 100%; 
    text-align: justify; 
    font-size: 1.1rem;
    line-height: 1.9;
    color: var(--text-color);
}

/* ===== محتوای مقاله ===== */
.blog-post { 
    background: var(--gradient-card);
    padding: clamp(1.5rem, 5vw, 3rem);
    border-radius: 20px; 
    box-shadow: var(--box-shadow); 
    line-height: 1.9; 
    color: var(--text-color); 
    font-size: clamp(1rem, 2.8vw, 1.15rem);
    overflow-wrap: break-word;
    word-wrap: break-word;
    border: 1px solid rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    animation: fadeIn 0.6s ease-out 0.3s both;
}

.blog-post h2 { 
    margin-top: 2.5rem; 
    margin-bottom: 1.5rem; 
    font-size: clamp(1.5rem, 4.5vw, 2rem);
    color: var(--text-color);
    line-height: 1.4;
    font-weight: 800;
    padding-bottom: 10px;
    border-bottom: 3px solid rgba(67, 97, 238, 0.2);
    position: relative;
}

.blog-post h2::after {
    content: '';
    position: absolute;
    bottom: -3px;
    right: 0;
    width: 100px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 3px;
}

.blog-post h3 { 
    margin-top: 2rem; 
    font-size: clamp(1.3rem, 4vw, 1.6rem);
    color: var(--primary-dark);
    line-height: 1.4;
    font-weight: 700;
    padding-right: 15px;
    border-right: 4px solid var(--accent-color);
}

.blog-post p { 
    margin-bottom: 1.8rem; 
    color: var(--text-color);
    text-align: justify;
    font-size: 1.1rem;
}

/* ===== کامپوننت‌های خاص پست ===== */
.highlight-box {
    background: linear-gradient(135deg, rgba(67, 97, 238, 0.12), rgba(67, 97, 238, 0.06));
    border-right: 5px solid var(--accent-color);
    padding: 2rem;
    border-radius: 16px;
    margin: 2.5rem 0;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(67, 97, 238, 0.15);
    animation: fadeIn 0.6s ease-out;
}

.highlight-box p {
    margin: 0;
    color: var(--text-color);
    font-size: 1.15rem;
    line-height: 1.8;
    font-weight: 500;
}

.stat-box {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
    padding: 2.5rem;
    background: linear-gradient(135deg, #f8f9ff, #f0f3ff);
    border-radius: 20px;
    border: 2px solid rgba(67, 97, 238, 0.25);
    box-shadow: 0 10px 30px rgba(67, 97, 238, 0.1);
    animation: fadeIn 0.6s ease-out 0.2s both;
}

.stat-item {
    text-align: center;
    padding: 1.8rem;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
    border: 1px solid rgba(67, 97, 238, 0.1);
}

.stat-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.stat-number {
    display: block;
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 0.8rem;
    text-shadow: 0 2px 4px rgba(67, 97, 238, 0.2);
}

.stat-label {
    display: block;
    font-size: 1rem;
    color: var(--text-light);
    line-height: 1.5;
    font-weight: 600;
}

.treatment-flow {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    padding: 2.5rem;
    margin: 3rem 0;
    border: 2px solid rgba(67, 97, 238, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    animation: fadeIn 0.6s ease-out 0.4s both;
}

.treatment-flow h4 {
    color: var(--text-color);
    margin-bottom: 2rem;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 800;
    position: relative;
    padding-bottom: 15px;
}

.treatment-flow h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 50%;
    transform: translateX(50%);
    width: 80px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.flow-step {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 1.8rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    border-right: 5px solid var(--primary-color);
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.flow-step:hover {
    background: rgba(67, 97, 238, 0.08);
    transform: translateX(10px);
    box-shadow: 0 8px 25px rgba(67, 97, 238, 0.15);
}

.flow-step-number {
    background: var(--gradient-primary);
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.3rem;
    flex-shrink: 0;
    box-shadow: 0 6px 15px rgba(67, 97, 238, 0.4);
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin: 3rem 0;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.12);
    animation: fadeIn 0.6s ease-out 0.5s both;
    border: 1px solid rgba(67, 97, 238, 0.1);
}

.comparison-table caption {
    caption-side: top;
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-color);
    margin-bottom: 1.5rem;
    text-align: center;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(67, 97, 238, 0.1), rgba(67, 97, 238, 0.05));
    border-radius: 12px;
}

.comparison-table th {
    background: var(--gradient-primary);
    color: white;
    padding: 1.5rem;
    text-align: center;
    font-weight: 700;
    border: none;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
}

.comparison-table td {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(67, 97, 238, 0.1);
    text-align: center;
    background: rgba(255, 255, 255, 0.8);
    font-size: 1.05rem;
    transition: var(--transition);
}

.comparison-table tr:hover td {
    background: rgba(67, 97, 238, 0.07);
    transform: scale(1.02);
}

.reference-list {
    background: rgba(248, 249, 250, 0.9);
    border-radius: 18px;
    padding: 2rem;
    margin: 2.5rem 0;
    border-left: 5px solid var(--primary-color);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(8px);
    animation: fadeIn 0.6s ease-out 0.6s both;
}

.reference-list h3 {
    color: var(--text-color);
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    font-weight: 800;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(67, 97, 238, 0.2);
}

.reference-list ul {
    list-style: none;
    padding: 0;
}

.reference-list li {
    padding: 1rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    color: var(--text-color);
    line-height: 1.7;
    font-size: 1.05rem;
    transition: var(--transition);
}

.reference-list li:hover {
    padding-right: 10px;
    color: var(--primary-dark);
}

.reference-list li:last-child {
    border-bottom: none;
}

/* ===== جدول مدرن ===== */
.table-container {
    overflow-x: auto;
    margin: 2.5rem 0;
    border-radius: 18px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1) !important;
    border: 1px solid rgba(67, 97, 238, 0.15) !important;
    animation: fadeIn 0.6s ease-out;
}

table { 
    width: 100%; 
    border-collapse: collapse; 
    background: rgba(255, 255, 255, 0.95); 
    border-radius: 18px !important; 
    min-width: 650px;
    backdrop-filter: blur(10px);
}

th, td { 
    padding: clamp(12px, 2.5vw, 18px); 
    text-align: center; 
    border-bottom: 1px solid rgba(67, 97, 238, 0.1); 
    word-break: break-word;
    font-size: 1.05rem;
}

th { 
    background: var(--gradient-primary) !important;
    color: white !important;
    font-weight: 700 !important;
    padding: 18px 15px !important;
    border: none !important;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
}

td {
    padding: 16px !important;
    border-bottom: 1px solid rgba(67, 97, 238, 0.1) !important;
    background: rgba(255, 255, 255, 0.8) !important;
    transition: var(--transition);
}

tr:hover td {
    background: rgba(67, 97, 238, 0.07) !important;
    transform: scale(1.02);
}

/* ===== لینک‌ها ===== */
a { 
    color: var(--primary-color); 
    text-decoration: none; 
    transition: var(--transition); 
    word-break: break-word;
    font-weight: 600;
    position: relative;
}

a:hover { 
    color: var(--primary-dark); 
    text-decoration: none;
}

a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    right: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
    border-radius: 1px;
}

a:hover::after {
    width: 100%;
}

/* ===== لینک بازگشت ===== */
.back-link { 
    display: inline-flex; 
    align-items: center;
    gap: 10px;
    margin: 20px 0; 
    text-decoration: none; 
    color: var(--primary-color); 
    font-weight: 700; 
    transition: var(--transition); 
    font-size: clamp(1rem, 2.8vw, 1.1rem);
    padding: 12px 24px;
    background: rgba(67, 97, 238, 0.1);
    border-radius: 12px;
    border: 1px solid rgba(67, 97, 238, 0.2);
}

.back-link:hover { 
    color: var(--primary-dark); 
    background: rgba(67, 97, 238, 0.2);
    transform: translateX(-5px);
    box-shadow: 0 6px 20px rgba(67, 97, 238, 0.15);
}

/* ===== فوتر بهبود یافته (یکسان با blog.css) ===== */
.site-footer { 
    background: var(--footer-bg);
    color: white;
    padding: clamp(2rem, 5vw, 3.5rem) clamp(1.5rem, 4vw, 2.5rem);
    font-size: clamp(0.9rem, 2.8vw, 1rem);
    box-shadow: 0 -8px 25px rgba(0, 0, 0, 0.15); 
    border-radius: 25px 25px 0 0; 
    margin-top: 4rem; 
    border-top: 3px solid var(--primary-color);
    animation: fadeIn 0.6s ease-out 0.7s both;
    position: relative;
    overflow: hidden;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.03) 0%, transparent 40%);
    z-index: 1;
}

.footer-container { 
    display: flex; 
    flex-wrap: wrap; 
    gap: clamp(1.5rem, 4vw, 3rem);
    max-width: 1300px; 
    margin: 0 auto 2rem auto; 
    position: relative;
    z-index: 2;
}

.footer-column { 
    flex: 1 1 min(300px, 100%);
    min-width: 250px;
}

.footer-column h4 { 
    margin-bottom: 1.5rem; 
    font-weight: 800; 
    color: white;
    font-size: clamp(1.1rem, 3.5vw, 1.3rem);
    padding-bottom: 10px;
    border-bottom: 3px solid rgba(255, 255, 255, 0.2);
    position: relative;
}

.footer-column h4::after {
    content: '';
    position: absolute;
    bottom: -3px;
    right: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-color), transparent);
    border-radius: 1.5px;
}

.footer-column ul { 
    list-style: none; 
    padding: 0; 
}

.footer-column ul li { 
    margin-bottom: 1rem; 
    transition: var(--transition);
}

.footer-column ul li:hover {
    transform: translateX(-5px);
}

.footer-column ul li a { 
    text-decoration: none; 
    color: rgba(255, 255, 255, 0.85); 
    transition: color 0.3s;
    font-size: clamp(0.9rem, 2.8vw, 1.05rem);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-column ul li a:hover { 
    color: white; 
}

.footer-bottom { 
    text-align: center; 
    margin-top: 3rem; 
    color: rgba(255, 255, 255, 0.7); 
    font-size: clamp(0.85rem, 2.5vw, 0.95rem);
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    z-index: 2;
}

.footer-social {
    display: flex;
    gap: 1.2rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: var(--transition);
    font-size: 1.2rem;
}

.social-icon:hover {
    background: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

/* ===== FAQ مدرن ===== */
.faq { 
    margin-top: 3rem; 
    font-family: var(--font-family);
    animation: fadeIn 0.6s ease-out 0.8s both;
}

.faq-item {
    margin-bottom: 1.5rem;
}

.faq-item h3 {
    cursor: pointer;
    background: linear-gradient(135deg, var(--bg-light), var(--bg-lighter));
    padding: clamp(15px, 4vw, 20px) clamp(18px, 4vw, 25px);
    border-radius: 15px;
    transition: var(--transition);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    position: relative;
    font-size: clamp(1.1rem, 3.5vw, 1.3rem);
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 15px;
}

.faq-item h3:hover { 
    background: linear-gradient(135deg, var(--primary-light), var(--primary-color)); 
    transform: translateY(-3px); 
    color: white;
    box-shadow: 0 10px 25px rgba(67, 97, 238, 0.3);
}

.faq-item h3::after { 
    content: '▸'; 
    position: absolute; 
    left: 25px; 
    font-size: 1.5rem; 
    transition: transform 0.4s; 
    color: var(--primary-color);
}

.faq-item.active h3::after { 
    transform: rotate(90deg); 
    color: white;
}

.faq-item .faq-content { 
    display: none; 
    padding: clamp(15px, 4vw, 20px) clamp(18px, 4vw, 25px);
    border-left: 5px solid var(--accent-color); 
    background: var(--bg-light); 
    margin-bottom: 20px; 
    border-radius: 12px; 
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06); 
    color: var(--text-color); 
    transition: all 0.4s ease;
    font-size: clamp(1rem, 3vw, 1.1rem);
    line-height: 1.8;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    animation: slideUp 0.4s ease-out;
}

.faq-item.active .faq-content { 
    display: block; 
}

/* ===== دیدگاه‌ها ===== */
.comments-section { 
    margin-top: 3.5rem; 
    background: var(--card-color); 
    padding: clamp(1.5rem, 4vw, 2.5rem);
    border-radius: 20px; 
    backdrop-filter: blur(12px); 
    color: var(--text-color); 
    transition: background 0.3s, color 0.3s; 
    box-shadow: var(--box-shadow);
    border: 1px solid rgba(255, 255, 255, 0.8);
    animation: fadeIn 0.6s ease-out 0.9s both;
}

.comments-section h3 {
    color: var(--text-color);
    font-size: 1.5rem;
    margin-bottom: 1.8rem;
    font-weight: 800;
    padding-bottom: 12px;
    border-bottom: 3px solid rgba(67, 97, 238, 0.2);
    position: relative;
}

.comments-section h3::after {
    content: '';
    position: absolute;
    bottom: -3px;
    right: 0;
    width: 80px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 1.5px;
}

.comments-section form input,
.comments-section form textarea { 
    width: 100%; 
    padding: clamp(12px, 3vw, 16px);
    margin-bottom: 1.2rem; 
    border-radius: 12px; 
    border: 2px solid rgba(67, 97, 238, 0.3); 
    background: var(--bg-light); 
    color: var(--text-color);
    font-size: clamp(0.95rem, 3vw, 1.05rem);
    font-family: var(--font-family);
    transition: var(--transition);
}

.comments-section form input:focus,
.comments-section form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.2);
    transform: translateY(-2px);
}

.comments-section form textarea {
    min-height: 150px;
    resize: vertical;
    line-height: 1.6;
}

.comments-section form button { 
    background: var(--gradient-primary); 
    color: #fff; 
    padding: clamp(12px, 3vw, 16px) clamp(20px, 4vw, 30px);
    border-radius: 12px; 
    border: none; 
    cursor: pointer; 
    transition: var(--transition);
    font-size: clamp(0.95rem, 3vw, 1.05rem);
    font-weight: 700;
    letter-spacing: 0.5px;
    box-shadow: 0 6px 20px rgba(67, 97, 238, 0.3);
}

.comments-section form button:hover { 
    background: linear-gradient(135deg, var(--primary-dark), var(--secondary-color)); 
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(67, 97, 238, 0.4);
}

.comment-card { 
    border-bottom: 1px solid rgba(67, 97, 238, 0.2); 
    padding: clamp(1rem, 3vw, 1.5rem);
    margin-bottom: 1.5rem; 
    border-radius: 15px; 
    background: var(--bg-light);
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.comment-card:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.comment-admin { 
    border: 2px solid var(--primary-color); 
    background: linear-gradient(135deg, rgba(67, 97, 238, 0.15), rgba(67, 97, 238, 0.08)); 
    position: relative; 
    z-index: 1; 
    backdrop-filter: blur(10px);
}

.comment-admin::before {
    content: '👨‍⚕️ پاسخ دکتر';
    position: absolute;
    top: -12px;
    right: 20px;
    background: var(--gradient-primary);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(67, 97, 238, 0.3);
}

/* ===== پاسخ دکتر ===== */
.reply-box {
    margin-right: clamp(1.5rem, 4vw, 3rem);
    border-right: 4px solid var(--primary-color);
    padding: clamp(1rem, 3vw, 1.5rem);
    background: linear-gradient(135deg, rgba(67, 97, 238, 0.2), rgba(67, 97, 238, 0.1));
    backdrop-filter: blur(15px);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 2;
    transition: var(--transition);
    border: 1px solid rgba(67, 97, 238, 0.3);
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.reply-box:hover { 
    background: linear-gradient(135deg, rgba(67, 97, 238, 0.3), rgba(67, 97, 238, 0.2)); 
    transform: translateY(-5px); 
    box-shadow: 0 15px 40px rgba(67, 97, 238, 0.2);
}

/* ===== استایل لینک‌های دکتر در کامنت‌ها ===== */
.comment-admin a {
    display: inline-block !important;
    background: var(--gradient-primary) !important;
    color: white !important;
    text-decoration: none !important;
    padding: 10px 20px !important;
    border-radius: 12px !important;
    border: 2px solid rgba(255, 255, 255, 0.3) !important;
    font-weight: 700 !important;
    font-size: 0.95rem !important;
    margin: 5px 8px !important;
    transition: var(--transition) !important;
    box-shadow: 0 6px 20px rgba(67, 97, 238, 0.25) !important;
    animation: pulse 3s infinite !important;
}

.comment-admin a:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--secondary-color)) !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 10px 30px rgba(67, 97, 238, 0.4) !important;
    color: white !important;
    text-decoration: none !important;
    animation: none !important;
}

/* مخفی کردن تگ a خام در کامنت دکتر */
.comment-admin a[href*="//"]:not([class]),
.comment-admin a:not([class]) {
    background: var(--gradient-primary) !important;
    color: white !important;
    text-decoration: none !important;
    padding: 10px 20px !important;
    border-radius: 12px !important;
    border: 2px solid rgba(255, 255, 255, 0.3) !important;
    font-weight: 700 !important;
    margin: 5px 8px !important;
    transition: var(--transition) !important;
    box-shadow: 0 6px 20px rgba(67, 97, 238, 0.25) !important;
}

.reply-btn { 
    background: none; 
    border: none; 
    color: var(--primary-color); 
    cursor: pointer; 
    font-size: clamp(0.85rem, 2.8vw, 0.95rem);
    margin-top: 8px; 
    padding: 8px 16px;
    font-weight: 600;
    border-radius: 8px;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.reply-btn:hover { 
    background: rgba(67, 97, 238, 0.1);
    transform: translateY(-2px);
}

.reply-form textarea { 
    width: 100%; 
    padding: 15px; 
    border-radius: 12px; 
    margin-top: 10px; 
    border: 2px solid rgba(67, 97, 238, 0.3); 
    background: var(--bg-light); 
    min-height: 120px;
    resize: vertical;
    font-family: var(--font-family);
    font-size: 1rem;
    transition: var(--transition);
}

.reply-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.2);
    transform: translateY(-2px);
}

.reply-form button { 
    background: var(--gradient-primary); 
    color: white; 
    padding: 12px 24px; 
    border: none; 
    border-radius: 10px; 
    margin-top: 10px; 
    cursor: pointer; 
    transition: var(--transition);
    font-size: clamp(0.9rem, 2.8vw, 1rem);
    font-weight: 700;
    box-shadow: 0 6px 20px rgba(67, 97, 238, 0.3);
}

.reply-form button:hover { 
    background: linear-gradient(135deg, var(--primary-dark), var(--secondary-color)); 
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(67, 97, 238, 0.4);
}

.doctor-link { 
    color: var(--primary-dark); 
    text-decoration: underline; 
    font-weight: 700;
}

.comment-admin a[href*="dr-rezvani-vet.ir"] { 
    display: inline-block;
    padding: 12px 24px !important;
    border: 2px solid var(--primary-color);
    border-radius: 12px;
    color: white !important;
    font-weight: 800;
    text-decoration: none !important;
    transition: var(--transition);
    font-size: clamp(0.9rem, 2.8vw, 1rem);
    background: var(--gradient-primary) !important;
    box-shadow: 0 8px 25px rgba(67, 97, 238, 0.3);
    text-align: center;
    min-width: 200px;
    margin: 10px 5px;
}

.comment-admin a[href*="dr-rezvani-vet.ir"]:hover { 
    background: linear-gradient(135deg, var(--primary-dark), var(--secondary-color)) !important; 
    color: white !important; 
    box-shadow: 0 12px 35px rgba(67, 97, 238, 0.4) !important; 
    text-decoration: none !important;
    transform: translateY(-5px);
}

/* ===== مودال ورود و ثبت نام شیشه‌ای ===== */
#loginModal { 
    display: none; 
    position: fixed; 
    inset: 0; 
    background: rgba(0, 0, 0, 0.7); 
    backdrop-filter: blur(10px); 
    justify-content: center; 
    align-items: center; 
    z-index: 9999; 
    animation: fadeIn 0.5s ease forwards; 
    padding: 1.5rem;
}

#loginModalContent { 
    background: var(--card-color); 
    backdrop-filter: blur(15px); 
    padding: clamp(1.5rem, 4vw, 2.5rem);
    border-radius: 20px; 
    width: min(400px, 95vw);
    max-width: 95vw;
    position: relative; 
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3); 
    animation: slideUp 0.5s ease forwards; 
    text-align: center; 
    border: 1px solid rgba(255, 255, 255, 0.3);
}

#closeLogin { 
    position: absolute; 
    top: 15px; 
    right: 20px; 
    cursor: pointer; 
    font-size: 24px; 
    color: var(--text-color);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    background: rgba(0, 0, 0, 0.05);
}

#closeLogin:hover { 
    background: rgba(0, 0, 0, 0.1);
    transform: rotate(90deg);
}

#loginTabs { 
    display: flex; 
    justify-content: space-between; 
    margin-bottom: 1.5rem; 
    border-radius: 12px; 
    overflow: hidden; 
    background: rgba(67, 97, 238, 0.1); 
    border: 1px solid rgba(67, 97, 238, 0.2);
}

#loginTabs button { 
    flex: 1; 
    border: none; 
    padding: clamp(12px, 3vw, 16px) 0;
    cursor: pointer; 
    font-weight: 700; 
    background: transparent; 
    color: var(--text-color); 
    transition: var(--transition);
    font-size: clamp(0.9rem, 2.8vw, 1.05rem);
}

#loginTabs button.active { 
    background: var(--gradient-primary); 
    color: #fff; 
}

#loginTabs button:hover { 
    background: rgba(67, 97, 238, 0.2); 
}

#loginModalContent input { 
    width: 100%; 
    padding: clamp(12px, 3vw, 16px);
    margin-bottom: 1.2rem; 
    border-radius: 12px; 
    border: 2px solid rgba(67, 97, 238, 0.3); 
    background: var(--bg-light); 
    font-size: clamp(0.95rem, 2.8vw, 1.05rem);
    font-family: var(--font-family);
    transition: var(--transition);
}

#loginModalContent input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.2);
    transform: translateY(-2px);
}

#loginModalContent button[type="submit"] { 
    width: 100%; 
    padding: clamp(12px, 3vw, 16px);
    border: none; 
    border-radius: 12px; 
    background: var(--gradient-primary); 
    color: #fff; 
    font-weight: 800; 
    cursor: pointer; 
    transition: var(--transition);
    font-size: clamp(0.95rem, 2.8vw, 1.05rem);
    letter-spacing: 0.5px;
    box-shadow: 0 8px 25px rgba(67, 97, 238, 0.3);
}

#loginModalContent button[type="submit"]:hover { 
    background: linear-gradient(135deg, var(--primary-dark), var(--secondary-color)); 
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(67, 97, 238, 0.4);
}

/* ===== دارک مود ===== */
body.dark-mode {
    --bg-color: #0f0f23;
    --text-color: #e0e6e3;
    --card-color: #1a1a2e;
    --header-bg: linear-gradient(135deg, #1a2720, #23382c);
    --footer-bg: linear-gradient(135deg, #1a1a2e 0%, #2d2d44 100%);
    --footer-light: #0d1912;
    --accent: #f72585;
    --shadow: rgba(0, 0, 0, 0.6);
    --shadow-hover: rgba(0, 0, 0, 0.8);
    --highlight-link: #f72585;
    --link-border: #5a75f0;
    --text-light: #b0b8b4;
    --text-lighter: #8a938f;
    --bg-light: #1a201d;
    --bg-lighter: #232a26;
    --border-color: #2a332f;
    
    background: radial-gradient(circle at 40% 20%, #0c100e, #080b0a);
    color: var(--text-color);
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(90, 117, 240, 0.05) 0%, transparent 20%),
        radial-gradient(circle at 90% 80%, rgba(247, 37, 133, 0.05) 0%, transparent 20%);
}

body.dark-mode .blog-header { 
    background: linear-gradient(135deg, #1c2b22, #264231); 
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.7); 
}

body.dark-mode .blog-header h1 { 
    color: #a5c7f7; 
    text-shadow: 0 0 10px rgba(165, 199, 247, 0.3); 
}

body.dark-mode .blog-header .subtitle { 
    color: #d1e0f5; 
}

body.dark-mode .post-card, 
body.dark-mode .blog-post, 
body.dark-mode .comments-section { 
    background: var(--card-color); 
    color: var(--text-color); 
    box-shadow: 0 8px 35px rgba(0, 0, 0, 0.6); 
    border: 1px solid rgba(90, 117, 240, 0.2); 
}

body.dark-mode .blog-post p { 
    color: #d0d8d4; 
}

body.dark-mode .blog-post h2 { 
    color: #a5c7f7; 
}

body.dark-mode .blog-post h3 { 
    color: #8db3e3; 
}

body.dark-mode .post-card img,
body.dark-mode .blog-post img {
    border-color: rgba(90, 117, 240, 0.3) !important;
    background: linear-gradient(135deg, #1c2420, #222e26) !important;
    box-shadow: 
        0 10px 35px rgba(90, 117, 240, 0.15),
        0 5px 15px rgba(90, 117, 240, 0.1) !important;
}

body.dark-mode .post-card img:hover,
body.dark-mode .blog-post img:hover {
    border-color: #5a75f0 !important;
    box-shadow: 
        0 20px 50px rgba(90, 117, 240, 0.25),
        0 10px 25px rgba(90, 117, 240, 0.15) !important;
}

body.dark-mode .blog-post figcaption {
    background: rgba(90, 117, 240, 0.1) !important;
    color: #c8d5f5 !important;
    border-right-color: #5a75f0 !important;
}

body.dark-mode .highlight-box {
    background: linear-gradient(135deg, rgba(90, 117, 240, 0.15), rgba(90, 117, 240, 0.08));
    border-right-color: #5a75f0;
}

body.dark-mode .stat-box {
    background: linear-gradient(135deg, #1c2420, #212d25);
    border-color: rgba(90, 117, 240, 0.3);
}

body.dark-mode .stat-item {
    background: rgba(35, 42, 38, 0.95);
    color: #d0dad4;
}

body.dark-mode .stat-label {
    color: #b8cce7;
}

body.dark-mode .treatment-flow {
    background: rgba(35, 42, 38, 0.9);
    border-color: rgba(90, 117, 240, 0.25);
}

body.dark-mode .flow-step {
    background: rgba(40, 48, 43, 0.95);
    border-right-color: #5a75f0;
}

body.dark-mode .flow-step:hover {
    background: rgba(90, 117, 240, 0.12);
}

body.dark-mode .comparison-table {
    background: rgba(35, 42, 38, 0.95);
}

body.dark-mode .comparison-table caption {
    color: #a5c7f7;
}

body.dark-mode .comparison-table td {
    background: rgba(40, 48, 43, 0.8);
    color: #d0dad4;
}

body.dark-mode .comparison-table tr:hover td {
    background: rgba(90, 117, 240, 0.12);
}

body.dark-mode .reference-list {
    background: rgba(40, 48, 43, 0.9);
    border-left-color: #5a75f0;
}

body.dark-mode .reference-list h3 {
    color: #a5c7f7;
}

body.dark-mode .reference-list li {
    color: #c3ccc8;
    border-bottom-color: rgba(255, 255, 255, 0.08);
}

body.dark-mode .comment-admin a {
    background: linear-gradient(135deg, rgba(90, 117, 240, 0.2), rgba(90, 117, 240, 0.1)) !important;
    color: #e0e8f7 !important;
    border: 2px solid rgba(90, 117, 240, 0.4) !important;
    box-shadow: 0 8px 25px rgba(90, 117, 240, 0.2) !important;
}

body.dark-mode .comment-admin a:hover {
    background: linear-gradient(135deg, rgba(90, 117, 240, 0.3), rgba(90, 117, 240, 0.2)) !important;
    color: white !important;
    box-shadow: 0 12px 35px rgba(90, 117, 240, 0.3) !important;
}

body.dark-mode .comment-admin a[href*="dr-rezvani-vet.ir"] {
    background: linear-gradient(135deg, rgba(90, 117, 240, 0.2), rgba(90, 117, 240, 0.1)) !important;
    color: #e0e8f7 !important;
}

body.dark-mode .comment-admin a[href*="dr-rezvani-vet.ir"]:hover {
    background: linear-gradient(135deg, rgba(90, 117, 240, 0.3), rgba(90, 117, 240, 0.2)) !important;
    color: white !important;
}

body.dark-mode table { 
    background: rgba(30, 36, 33, 0.95); 
}

body.dark-mode th { 
    background: linear-gradient(135deg, #2a3d32, #365241) !important; 
    color: #d1e0f5 !important; 
}

body.dark-mode td { 
    color: #d0dad4; 
    border-color: rgba(255, 255, 255, 0.08); 
    background: rgba(40, 48, 43, 0.8) !important;
}

body.dark-mode a { 
    color: var(--highlight-link); 
    text-decoration: none; 
}

body.dark-mode a:hover { 
    color: #ff7ab8; 
    text-shadow: 0 0 6px rgba(255, 122, 184, 0.4); 
}

body.dark-mode .site-footer { 
    background: var(--footer-bg); 
    color: #c8d0cc; 
    box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.8); 
}

body.dark-mode .footer-column h4 { 
    color: #a5c7f7; 
}

body.dark-mode .footer-bottom { 
    color: #a0a8a4; 
}

body.dark-mode .faq-item h3 { 
    background: linear-gradient(135deg, #25322a, #304438); 
    color: #d2dcd6; 
}

body.dark-mode .faq-item .faq-content { 
    background: rgba(30, 38, 34, 0.95); 
    border-left-color: var(--highlight-link); 
    color: #cfd8d3; 
}

body.dark-mode #loginModalContent { 
    background: rgba(25, 32, 28, 0.98); 
    color: #d2dbd5; 
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.9); 
}

body.dark-mode #loginTabs button.active { 
    background: linear-gradient(135deg, #5a75f0, #4361ee); 
    color: #0e1111; 
}

body.dark-mode .breadcrumb {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .breadcrumb-item a {
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.9);
}

body.dark-mode .post-categories-container {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .category-tag {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.15);
}

body.dark-mode .user-profile-mini {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.1);
}

/* بهبود اسکرول بار در دارک مود */
body.dark-mode ::-webkit-scrollbar-track {
  background: var(--bg-light);
}

body.dark-mode ::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

body.dark-mode ::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, var(--primary-light), var(--secondary-color));
}

/* ===== نوار پیشرفت خواندن ===== */
#reading-progress-wrap {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: rgba(0, 0, 0, 0.1);
    z-index: 10000;
}

#reading-progress {
    height: 100%;
    background: var(--gradient-primary);
    width: 0%;
    transition: width 0.3s ease;
    box-shadow: 0 2px 10px rgba(67, 97, 238, 0.4);
}

body.dark-mode #reading-progress-wrap { 
    background: rgba(255, 255, 255, 0.1); 
}

/* ===== استایل دسکتاپ برای عکس‌ها ===== */
@media (min-width: 769px) {
    .post-card img {
        width: 500px !important;
        height: 500px !important;
        max-width: 500px !important;
        max-height: 500px !important;
        object-fit: cover !important;
        border-radius: 25px !important;
        margin: 0 auto !important;
        display: block !important;
    }
    
    .blog-post img {
        width: 500px !important;
        height: 500px !important;
        max-width: 500px !important;
        max-height: 500px !important;
        object-fit: cover !important;
        border-radius: 22px !important;
        margin: 2.5rem auto !important;
        display: block !important;
    }
}

/* ===== استایل پیشرفته برای لینک‌های دکتر در کامنت‌ها ===== */
.comment-admin a {
    all: unset !important;
    display: inline-block !important;
    background: var(--gradient-primary) !important;
    color: white !important;
    text-decoration: none !important;
    padding: 12px 24px !important;
    border-radius: 15px !important;
    border: 3px solid rgba(255, 255, 255, 0.4) !important;
    font-weight: 800 !important;
    font-size: 1rem !important;
    margin: 6px 10px !important;
    transition: var(--transition) !important;
    box-shadow: 0 8px 30px rgba(67, 97, 238, 0.3) !important;
    cursor: pointer !important;
    line-height: 1.4 !important;
    text-align: center !important;
    min-width: 180px !important;
    animation: pulse 2.5s infinite !important;
}

.comment-admin a:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--secondary-color)) !important;
    transform: translateY(-4px) !important;
    box-shadow: 0 12px 40px rgba(67, 97, 238, 0.4) !important;
    color: white !important;
    text-decoration: none !important;
    animation: none !important;
}

.comment-admin a:active {
    transform: translateY(0) !important;
}

.comment-admin a[href*="//"]:not([class]),
.comment-admin a:not([class]) {
    all: unset !important;
    display: inline-block !important;
    background: var(--gradient-primary) !important;
    color: white !important;
    text-decoration: none !important;
    padding: 12px 24px !important;
    border-radius: 15px !important;
    border: 3px solid rgba(255, 255, 255, 0.4) !important;
    font-weight: 800 !important;
    margin: 6px 10px !important;
    transition: var(--transition) !important;
    box-shadow: 0 8px 30px rgba(67, 97, 238, 0.3) !important;
    cursor: pointer !important;
    text-align: center !important;
    min-width: 180px !important;
}

/* استایل دارک مود برای لینک‌های دکتر */
body.dark-mode .comment-admin a {
    background: linear-gradient(135deg, rgba(90, 117, 240, 0.25), rgba(90, 117, 240, 0.15)) !important;
    color: #e0e8f7 !important;
    border: 3px solid rgba(90, 117, 240, 0.5) !important;
    box-shadow: 0 8px 30px rgba(90, 117, 240, 0.25) !important;
}

body.dark-mode .comment-admin a:hover {
    background: linear-gradient(135deg, rgba(90, 117, 240, 0.35), rgba(90, 117, 240, 0.25)) !important;
    color: white !important;
    box-shadow: 0 12px 40px rgba(90, 117, 240, 0.35) !important;
}

/* ===== اعداد فارسی در موبایل ===== */
.farsi-numbers {
    font-variant-numeric: proportional-nums;
    unicode-bidi: bidi-override;
    direction: rtl;
}

/* ===== بهبودهای لمسی برای موبایل ===== */
@media (hover: none) and (pointer: coarse) {
    .post-card:hover {
        transform: none;
    }
    
    .post-card img:hover {
        transform: none;
    }
    
    .reply-box:hover {
        transform: none;
    }
    
    .faq-item h3:hover {
        transform: none;
    }
    
    .comment-admin a:hover {
        transform: none !important;
        animation: pulse 2.5s infinite !important;
    }
    
    button, 
    .reply-btn, 
    #logoutBtn {
        min-height: 48px;
        min-width: 48px;
    }
    
    a {
        padding: 4px 0;
    }
}

/* ===== پشتیبانی از حالت لنداسکیپ ===== */
@media (max-height: 500px) and (orientation: landscape) {
    body {
        padding: 0.8rem;
    }
    
    .container {
        margin: 1.5rem auto;
    }
    
    .blog-header {
        padding: 1.5rem;
    }
    
    #loginModal {
        align-items: flex-start;
        padding-top: 2.5rem;
    }
}

/* ===== پشتیبانی از دستگاه‌های با DPI بالا ===== */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .blog-header,
    .post-card,
    .blog-post,
    .comments-section {
        backdrop-filter: blur(15px);
    }
}

/* ===== بهبود accessibility ===== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .post-card,
    .service-card,
    .contact-card,
    .branch-card,
    .cta-button,
    .faq-item h4,
    .comment-admin a {
        transition: none !important;
        transform: none !important;
    }
    
    #reading-progress {
        transition: none !important;
    }
}

/* ===== پشتیبانی از مرورگرهای مختلف ===== */
@supports not (backdrop-filter: blur(10px)) {
    .comments-section,
    #loginModalContent,
    .reply-box,
    .blog-header .header-text {
        background: var(--card-color);
    }
}

@supports not (display: grid) {
    .doctor-stats,
    .services-grid,
    .branches-grid,
    .contact-grid {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .stat-item,
    .service-card,
    .branch-card,
    .contact-card {
        flex: 1 1 300px;
        margin: 10px;
    }
}

/* ===== ریسپانسیو پیشرفته ===== */
@media (max-width: 1200px) {
    .container {
        max-width: 95%;
        margin: 2rem auto;
    }
}

@media (max-width: 992px) {
    body {
        padding: 1rem;
    }
    
    .container {
        padding: 0 1rem;
        margin: 2rem auto;
    }
    
    .blog-header {
        padding: 3rem 1.5rem;
    }
    
    .post-card {
        padding: 1.8rem;
    }
    
    .blog-post {
        padding: 2rem;
    }
    
    .comments-section {
        padding: 1.8rem;
    }
    
    .footer-container {
        gap: 2.5rem;
    }
}

/* ===== تغییرات اصلی برای موبایل (جدول‌ها) ===== */
@media (max-width: 768px) {
    body {
        padding: 0.8rem;
        font-size: 1rem;
        overflow-x: hidden; /* جلوگیری از اسکرول افقی کل صفحه */
    }
    
    .container {
        padding: 0 0.8rem;
        margin: 1.5rem auto;
        width: 100%;
        overflow-x: hidden; /* جلوگیری از اسکرول افقی در کانتینر */
    }
    
    /* بهینه‌سازی جدول‌ها برای موبایل */
    .table-container {
        margin: 1.5rem 0;
        border-radius: 16px !important;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch; /* اسکرول نرم در آیفون */
        position: relative;
        width: 100%;
        max-width: 100vw;
    }
    
    .table-container::after {
        content: '← اسکرول کنید →';
        display: block;
        text-align: center;
        padding: 8px 0;
        font-size: 0.85rem;
        color: var(--text-light);
        background: linear-gradient(90deg, 
            rgba(67, 97, 238, 0.1) 0%, 
            rgba(67, 97, 238, 0.2) 50%, 
            rgba(67, 97, 238, 0.1) 100%);
        border-radius: 0 0 16px 16px;
        margin-top: -1px;
    }
    
    table {
        min-width: 100%;
        width: auto;
        max-width: none;
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
    
    /* بهبود نمایش جدول در موبایل */
    th, td {
        padding: 12px 10px !important;
        font-size: 0.95rem;
        min-width: 100px;
        white-space: normal;
        word-break: break-word;
        max-width: 200px;
    }
    
    th {
        position: sticky;
        left: 0;
        background: var(--gradient-primary) !important;
        z-index: 10;
    }
    
    /* جدول comparison-table در موبایل */
    .comparison-table {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        display: block;
        width: 100%;
        margin: 1.5rem 0;
    }
    
    .comparison-table table {
        min-width: 100%;
    }
    
    .comparison-table th,
    .comparison-table td {
        padding: 14px 12px !important;
        font-size: 0.95rem;
        min-width: 120px;
    }
    
    /* بقیه استایل‌های موبایل */
    .blog-header {
        padding: 2rem 1rem;
        border-radius: 15px;
    }
    
    .blog-header h1 {
        font-size: 1.6rem;
    }
    
    .post-card {
        padding: 1.5rem;
        border-radius: 18px;
    }
    
    .post-card img {
        width: 70% !important;
        border-radius: 18px !important;
        padding: 8px !important;
    }
    
    .blog-post {
        padding: 1.5rem;
        border-radius: 18px;
    }
    
    .blog-post img {
        width: 80% !important;
        border-radius: 15px !important;
        padding: 6px !important;
    }
    
    .blog-post figcaption {
        max-width: 95% !important;
        font-size: 0.85rem !important;
    }
    
    .stat-box {
        grid-template-columns: 1fr;
        gap: 1.2rem;
        padding: 1.5rem;
    }
    
    .stat-number {
        font-size: 2.2rem;
    }
    
    .treatment-flow {
        padding: 1.5rem;
    }
    
    .flow-step {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .flow-step-number {
        align-self: center;
    }
    
    .highlight-box {
        padding: 1.5rem;
    }
    
    .footer-container {
        flex-direction: column;
        gap: 2rem;
    }
    
    .footer-column {
        flex: 1 1 100%;
    }
    
    .reply-box {
        margin-right: 1rem;
        padding: 1.2rem;
    }
    
    .services-grid,
    .branches-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .contact-card {
        flex-direction: column;
        text-align: center;
    }
    
    .post-cta {
        padding: 30px 20px;
        margin: 40px 0 30px;
    }
    
    .post-cta h3 {
        font-size: 1.8rem;
    }
    
    .footer-links {
        gap: 1rem;
        font-size: 0.9rem;
    }
  
    /* بهبود اسکرول‌بار در موبایل */
    ::-webkit-scrollbar {
        width: 8px;
        height: 8px;
    }
    
    ::-webkit-scrollbar-track {
        background: rgba(67, 97, 238, 0.1);
        border-radius: 8px;
    }
    
    ::-webkit-scrollbar-thumb {
        background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
        border-radius: 8px;
        border: 2px solid rgba(67, 97, 238, 0.1);
    }
    
    ::-webkit-scrollbar-thumb:hover {
        background: linear-gradient(135deg, var(--primary-dark), var(--secondary-color));
    }
    
    /* اطمینان از نمایش اسکرول‌بار در موبایل */
    html {
        -webkit-overflow-scrolling: touch;
    }
    
    body {
        overflow-x: hidden;
    }
    
    .container, .post-card, .blog-post {
        -webkit-overflow-scrolling: touch;
    }
}

@media (max-width: 600px) {
    body {
        padding: 0.6rem;
        line-height: 1.7;
    }
    
    .container {
        padding: 0 0.6rem;
    }
    
    .blog-header {
        padding: 1.5rem 0.8rem;
    }
    
    .blog-header h1 {
        font-size: 1.5rem;
    }
    
    .blog-header .subtitle {
        font-size: 0.9rem;
    }
    
    .header-image-wrapper img {
        width: 100%;
        border-radius: 12px;
    }
    
    .post-card {
        padding: 1.2rem;
        gap: 1.2rem;
    }
    
    .post-card img {
        width: 80% !important;
        max-width: 280px !important;
        border-radius: 16px !important;
    }
    
    .blog-post {
        padding: 1.2rem;
        font-size: 1rem;
    }
    
    .blog-post h2 {
        font-size: 1.4rem;
    }
    
    .blog-post h3 {
        font-size: 1.2rem;
    }
    
    .blog-post img {
        width: 85% !important;
        max-width: 260px !important;
        border-radius: 14px !important;
    }
    
    .user-profile-mini {
        flex-direction: column;
        gap: 8px;
        padding: 1rem;
    }
    
    .comments-section {
        padding: 1.2rem;
    }
    
    .reply-box {
        margin-right: 0.8rem;
        padding: 1rem;
    }
    
    #loginModalContent {
        width: 95vw;
        padding: 1.5rem;
    }
    
    .breadcrumb {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .post-categories-container {
        padding: 1.5rem;
    }
    
    .categories-list {
        flex-direction: column;
        align-items: center;
    }
    
    .category-tag {
        width: 100%;
        text-align: center;
    }
    
    .footer-column h4 {
        font-size: 1.2rem;
    }
    
    .footer-column a {
        font-size: 0.95rem;
    }
    
    .social-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    /* جدول‌ها در صفحه‌های کوچک‌تر */
    .table-container::after {
        font-size: 0.8rem;
        padding: 6px 0;
    }
    
    th, td {
        padding: 10px 8px !important;
        font-size: 0.9rem;
        min-width: 90px;
    }
    
    .comparison-table th,
    .comparison-table td {
        padding: 12px 10px !important;
        font-size: 0.9rem;
        min-width: 100px;
    }
}

@media (max-width: 480px) {
    body {
        padding: 0.5rem;
        font-size: 0.95rem;
    }
    
    .container {
        padding: 0 0.5rem;
        margin: 1rem auto;
    }
    
    .blog-header {
        padding: 1.2rem 0.5rem;
        border-radius: 12px;
    }
    
    .blog-header h1 {
        font-size: 1.3rem;
        margin-bottom: 0.5rem;
    }
    
    .post-card {
        padding: 1rem;
        border-radius: 15px;
    }
    
    .post-card img {
        width: 85% !important;
        max-width: 240px !important;
    }
    
    .blog-post {
        padding: 1rem;
        border-radius: 15px;
    }
    
    .blog-post h2 {
        font-size: 1.2rem;
        margin-top: 1.5rem;
    }
    
    .blog-post h3 {
        font-size: 1.1rem;
    }
    
    .blog-post img {
        width: 90% !important;
        max-width: 220px !important;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .flow-step {
        padding: 1rem;
    }
    
    .site-footer {
        padding: 1.5rem 0.8rem;
        margin-top: 2.5rem;
    }
    
    .comments-section {
        padding: 1rem;
    }
    
    .comment-card {
        padding: 0.8rem;
    }
    
    .faq-item h3 {
        padding: 12px 15px;
        font-size: 1rem;
    }
    
    .faq-item .faq-content {
        padding: 12px 15px;
        font-size: 0.9rem;
    }
    
    .comment-admin a {
        min-width: 150px !important;
        padding: 10px 18px !important;
        font-size: 0.9rem !important;
    }
    
    /* جدول‌ها در موبایل‌های خیلی کوچک */
    .table-container {
        margin: 1rem 0;
        border-radius: 12px !important;
    }
    
    .table-container::after {
        font-size: 0.75rem;
        padding: 5px 0;
    }
    
    th, td {
        padding: 8px 6px !important;
        font-size: 0.85rem;
        min-width: 80px;
    }
    
    .comparison-table th,
    .comparison-table td {
        padding: 10px 8px !important;
        font-size: 0.85rem;
        min-width: 90px;
    }
}

@media (max-width: 360px) {
    body {
        padding: 0.4rem;
    }
    
    .container {
        padding: 0 0.4rem;
    }
    
    .blog-header h1 {
        font-size: 1.2rem;
    }
    
    .post-card, 
    .blog-post {
        padding: 0.8rem;
    }
    
    #loginModalContent {
        width: 98vw;
        padding: 1.2rem;
    }
    
    .comment-admin a {
        min-width: 130px !important;
        padding: 8px 15px !important;
        font-size: 0.85rem !important;
    }
    
    /* جدول‌ها در دستگاه‌های بسیار کوچک */
    th, td {
        padding: 6px 4px !important;
        font-size: 0.8rem;
    }
    
    .table-container::after {
        font-size: 0.7rem;
    }
}

/* ===== تم شیشه‌ای پیشرفته ===== */
.glass-effect {
    background: var(--glass-effect);
    backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.glow-effect {
    position: relative;
}

.glow-effect::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color), var(--primary-color));
    border-radius: inherit;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.glow-effect:hover::before {
    opacity: 0.5;
    animation: glow 2s linear infinite;
}

@keyframes glow {
    0% { opacity: 0.3; }
    50% { opacity: 0.6; }
    100% { opacity: 0.3; }
}

/* ===== اسکرول بار زیبا ===== */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: rgba(67, 97, 238, 0.1);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: 10px;
    border: 2px solid transparent;
    background-clip: padding-box;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--secondary-color));
}

body.dark-mode ::-webkit-scrollbar-track {
    background: rgba(90, 117, 240, 0.1);
}

body.dark-mode ::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #5a75f0, #4361ee);
}

/* ===== انیمیشن ورود ===== */
.fade-in-up {
    animation: fadeInUp 0.6s ease-out forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== افکت‌های تعاملی ===== */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* ===== استایل‌های تایپوگرافی ===== */
.text-gradient {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-shadow {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* ===== دکمه‌های مدرن ===== */
.btn-modern {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 28px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: none;
    cursor: pointer;
}

.btn-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.btn-modern:hover::before {
    left: 100%;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 6px 20px rgba(67, 97, 238, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--secondary-color));
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(67, 97, 238, 0.4);
}

.btn-accent {
    background: var(--gradient-accent);
    color: white;
    box-shadow: 0 6px 20px rgba(247, 37, 133, 0.3);
}

.btn-accent:hover {
    background: linear-gradient(135deg, #ff4da6, #f72585);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(247, 37, 133, 0.4);
}

/* ===== کارت‌های مدرن ===== */
.card-modern {
    background: var(--gradient-card);
    border-radius: 20px;
    padding: 30px;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    overflow: hidden;
    position: relative;
}

.card-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
}

.card-modern:hover {
    transform: translateY(-8px);
    box-shadow: var(--box-shadow-hover);
}

.card-modern.accent::before {
    background: var(--gradient-accent);
}

/* ===== برچسب‌های مدرن ===== */
.tag-modern {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.85rem;
    background: var(--gradient-primary);
    color: white;
    text-decoration: none;
    transition: var(--transition);
    border: 2px solid transparent;
}

.tag-modern:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(67, 97, 238, 0.3);
    border-color: white;
}

.tag-secondary {
    background: var(--gradient-accent);
}

/* ===== جدول‌بندی شبکه‌ای پیشرفته ===== */
.grid-auto-fit {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.grid-auto-fill {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

/* ===== جداکننده‌های زیبا ===== */
.divider {
    height: 3px;
    background: var(--gradient-primary);
    border: none;
    border-radius: 2px;
    margin: 40px 0;
    position: relative;
    overflow: hidden;
}

.divider::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* ===== استایل‌های نهایی برای زیبایی بیشتر ===== */
.rounded-xl {
    border-radius: 20px;
}

.rounded-2xl {
    border-radius: 25px;
}

.rounded-3xl {
    border-radius: 30px;
}

.shadow-xl {
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.1);
}

.shadow-2xl {
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15);
}

.backdrop-blur-sm {
    backdrop-filter: blur(8px);
}

.backdrop-blur-md {
    backdrop-filter: blur(12px);
}

.backdrop-blur-lg {
    backdrop-filter: blur(16px);
}

/* ===== استایل‌های سفارشی برای عناصر خاص ===== */
.featured-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--gradient-accent);
    color: white;
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 800;
    font-size: 0.9rem;
    z-index: 10;
    box-shadow: 0 6px 20px rgba(247, 37, 133, 0.3);
    animation: pulse 2s infinite;
}

.popular-tag {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--gradient-primary);
    color: white;
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 800;
    font-size: 0.9rem;
    z-index: 10;
    box-shadow: 0 6px 20px rgba(67, 97, 238, 0.3);
    transform: rotate(-5deg);
}

/* ===== استایل‌های برای اسکرول نرم ===== */
.smooth-scroll {
    scroll-behavior: smooth;
}

/* ===== استایل‌های برای تصاویر پس‌زمینه ===== */
.bg-pattern {
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(67, 97, 238, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(247, 37, 133, 0.1) 0%, transparent 50%);
}

/* ===== بهبودهای نهایی برای ظاهر کلی ===== */
*:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

::selection {
    background: rgba(67, 97, 238, 0.3);
    color: var(--text-color);
}

body.dark-mode ::selection {
    background: rgba(90, 117, 240, 0.4);
    color: white;
}

/* ===== استایل‌های نهایی و بهینه‌سازی ===== */
.optimize-performance {
    will-change: transform, opacity;
    transform: translateZ(0);
    backface-visibility: hidden;
}/* ===== رفع نهایی مشکل دو فلش و چرخش FAQ ===== */

/* ۱. مخفی کردن مثلث پیش‌فرض مرورگر */
.faq details.faq-item > summary {
    list-style: none;
}
.faq details.faq-item > summary::-webkit-details-marker {
    display: none;
}

/* ۲. شکستن display: none پیش‌فرض و نمایش محتوا وقتی details باز است */
.faq details.faq-item .faq-content {
    display: block !important; /* مجبور کردن مرورگر به نمایش محتوا */
}

/* ۳. وقتی details باز است، فلش h3 بچرخد */
.faq details.faq-item[open] > summary h3::after {
    transform: rotate(90deg);
    color: white;
}

/* ۴. برای حالت div معمولی با کلاس active (اگر جایی دیگر استفاده شود) */
.faq .faq-item.active h3::after {
    transform: rotate(90deg);
    color: white;
}