 @font-face {
     font-family: "iranyekanwebmedium";
     src: url('../fonts/iranyekanwebmedium.woff');
 }

 @font-face {
     font-family: "iranyekanwebbold";
     src: url('../fonts/iranyekanwebbold.woff2');
 }

 * {
     margin: 0;
     padding: 0;
     box-sizing: border-box;
 }

 body {
     font-family: "iranyekanwebmedium";
     transition: background-color 0.3s ease, color 0.3s ease;
 }

 body.light {
     --bg-gradient-start: #f9fafb;
     --bg-gradient-end: #f0f2f5;
     --bg-header: rgba(255, 255, 255, 0.7);
     --border-header: rgba(255, 255, 255, 0.2);
     --text-primary: #1e293b;
     --text-secondary: #475569;
     --text-muted: #64748b;
     --card-bg: rgba(255, 255, 255, 0.5);
     --card-border: rgba(255, 255, 255, 0.3);
     --border-light: #e2e8f0;
     --btn-secondary-bg: #e2e8f0;
     --nav-link-color: #475569;
     --accent: #1E6F5C;
     --accent-dark: #0f5a49;
     --accent-light: rgba(30, 111, 92, 0.1);
     --accent-gradient: linear-gradient(135deg, #0f5a49 0%, #1E6F5C 50%, #289672 100%);
     --bg-primary: #ffffff;
     --bg-secondary: #f8fafc;
 }

 body.dark {
     --bg-gradient-start: #0f172a;
     --bg-gradient-end: #020617;
     --bg-header: rgba(15, 23, 42, 0.7);
     --border-header: rgba(255, 255, 255, 0.05);
     --text-primary: #f1f5f9;
     --text-secondary: #cbd5e1;
     --text-muted: #94a3b8;
     --card-bg: rgba(255, 255, 255, 0.03);
     --card-border: rgba(255, 255, 255, 0.05);
     --border-light: #1e293b;
     --btn-secondary-bg: #334155;
     --nav-link-color: #cbd5e1;
     --accent: #289672;
     --accent-dark: #1E6F5C;
     --accent-light: rgba(40, 150, 114, 0.15);
     --accent-gradient: linear-gradient(135deg, #0f5a49 0%, #1E6F5C 50%, #289672 100%);
     --bg-primary: #0f172a;
     --bg-secondary: #111827;
 }

 body {
     background: linear-gradient(135deg, var(--bg-gradient-start), var(--bg-gradient-end));
     color: var(--text-primary);
     min-height: 100vh;
 }

 @keyframes fadeInDown {
     from {
         opacity: 0;
         transform: translateY(-30px);
     }

     to {
         opacity: 1;
         transform: translateY(0);
     }
 }

 @keyframes fadeInUp {
     from {
         opacity: 0;
         transform: translateY(40px);
     }

     to {
         opacity: 1;
         transform: translateY(0);
     }
 }

 /* صفحه جزئیات وبلاگ */
 .blog-single {
     max-width: 900px;
     width: 90%;
     margin: 0 auto;
 }

 .back-to-blog {
     margin: 20px 0;
     margin-top: 115px;
 }

 .back-link {
     display: inline-flex;
     align-items: center;
     gap: 8px;
     color: var(--accent);
     text-decoration: none;
     font-weight: 600;
 }

 .blog-header {
     text-align: center;
     margin-bottom: 40px;
 }

 .blog-category-badge {
     display: inline-block;
     background: var(--accent);
     color: white;
     padding: 5px 18px;
     border-radius: 30px;
     font-size: 12px;
     font-weight: 600;
     margin-bottom: 20px;
 }

 .blog-title-single {
     font-size: 36px;
     font-weight: 800;
     margin-bottom: 20px;
     line-height: 1.3;
 }

 .blog-meta-single {
     display: flex;
     justify-content: center;
     gap: 25px;
     flex-wrap: wrap;
     color: var(--text-muted);
     font-size: 14px;
     margin-bottom: 30px;
 }

 .blog-meta-single i {
     color: var(--accent);
     margin-left: 6px;
 }

 .blog-featured-icon {
     width: 100px;
     height: 100px;
     background: var(--accent-gradient);
     border-radius: 50%;
     display: flex;
     align-items: center;
     justify-content: center;
     margin: 0 auto 30px;
 }

 .blog-featured-icon i {
     font-size: 48px;
     color: white;
 }

 .blog-content-single {
     background: var(--card-bg);
     backdrop-filter: blur(12px);
     border: 1px solid var(--card-border);
     border-radius: 32px;
     padding: 40px;
     margin-bottom: 40px;
 }

 .blog-content-single h2 {
     font-size: 26px;
     margin: 30px 0 15px;
     color: var(--accent);
 }

 .blog-content-single h3 {
     font-size: 20px;
     margin: 25px 0 12px;
 }

 .blog-content-single p {
     line-height: 1.9;
     margin-bottom: 20px;
     color: var(--text-secondary);
 }

 .blog-content-single ul,
 .blog-content-single ol {
     margin: 20px 0;
     padding-right: 25px;
 }

 .blog-content-single li {
     margin: 10px 0;
     line-height: 1.7;
     color: var(--text-secondary);
 }

 .blog-content-single .highlight-box {
     background: var(--accent-light);
     padding: 20px;
     border-radius: 24px;
     margin: 25px 0;
     border-right: 4px solid var(--accent);
 }

 .blog-tags {
     display: flex;
     flex-wrap: wrap;
     gap: 10px;
     margin: 30px 0;
     padding-top: 20px;
     border-top: 1px solid var(--border-light);
 }

 .blog-tag {
     background: var(--accent-light);
     color: var(--accent);
     padding: 6px 16px;
     border-radius: 30px;
     font-size: 12px;
     text-decoration: none;
 }

 .author-box {
     background: var(--card-bg);
     backdrop-filter: blur(12px);
     border: 1px solid var(--card-border);
     border-radius: 28px;
     padding: 30px;
     display: flex;
     align-items: center;
     gap: 25px;
     flex-wrap: wrap;
     margin-bottom: 40px;
 }

 .author-avatar {
     width: 80px;
     height: 80px;
     background: var(--accent-gradient);
     border-radius: 50%;
     display: flex;
     align-items: center;
     justify-content: center;
 }

 .author-avatar i {
     font-size: 40px;
     color: white;
 }

 .author-info h4 {
     font-size: 18px;
     font-weight: 800;
     margin-bottom: 5px;
 }

 .author-info p {
     color: var(--text-muted);
     font-size: 13px;
     line-height: 1.7;
 }

 .related-posts {
     margin: 50px 0;
 }

 .related-title {
     font-size: 24px;
     font-weight: 800;
     margin-bottom: 30px;
     text-align: center;
 }

 .related-grid {
     display: grid;
     grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
     gap: 25px;
 }

 .related-card {
     background: var(--card-bg);
     backdrop-filter: blur(12px);
     border: 1px solid var(--card-border);
     border-radius: 24px;
     padding: 20px;
     transition: all 0.3s;
     text-decoration: none;
     display: block;
 }

 .related-card:hover {
     transform: translateY(-5px);
     border-color: var(--accent);
 }

 .related-card i {
     font-size: 40px;
     color: var(--accent);
     margin-bottom: 15px;
     display: block;
 }

 .related-card h4 {
     font-size: 16px;
     font-weight: 700;
     color: var(--text-primary);
     margin-bottom: 10px;
 }

 .related-card p {
     font-size: 12px;
     color: var(--text-muted);
 }

 /* استایل دکمه ادامه مطلب - اضافه کن به قسمت استایل‌ها */
 .related-card .read-more-btn {
     display: inline-flex;
     align-items: center;
     gap: 8px;
     color: var(--accent);
     font-size: 12px;
     font-weight: 600;
     margin-top: 12px;
     text-decoration: none;
     transition: all 0.3s ease;
     background: transparent;
     border: none;
     cursor: pointer;
     padding: 0;
 }

 .related-card .read-more-btn i {
     font-size: 12px;
     transition: transform 0.3s ease;
     width: auto;
     height: auto;
     margin: 0;
 }

 .related-card .read-more-btn:hover {
     gap: 12px;
 }

 .related-card .read-more-btn:hover i {
     transform: translateX(-4px);
 }


 @media (max-width: 1024px) {

     .desktop-menu,
     .desktop-actions {
         display: none;
     }

     .hamburger-menu {
         display: flex;
     }

     .header {
         padding: 0 20px;
         height: 65px;
     }

     .blog-title-single {
         font-size: 28px;
     }

     .blog-content-single {
         padding: 25px;
     }
 }

 @media (max-width: 768px) {
     .blog-meta-single {
         gap: 15px;
         font-size: 12px;
     }

     .author-box {
         flex-direction: column;
         text-align: center;
     }
 }

/* ========== ویدئو پلیر ========== */
.blog-video-container {
    margin-bottom: 30px;
    border-radius: 24px;
    overflow: hidden;
    background: #000;
    position: relative;
}

.video-player-wrapper {
    position: relative;
    width: 100%;
    background: #000;
}

.video-player {
    width: 100%;
    height: auto;
    display: block;
    cursor: pointer;
}

    .video-player:focus {
        outline: none;
    }

.video-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(0deg, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 100%);
    padding: 15px 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.video-player-wrapper:hover .video-controls {
    opacity: 1;
}

.play-pause-btn {
    background: rgba(255,255,255,0.2);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    transition: all 0.3s;
}

    .play-pause-btn:hover {
        background: #289672;
        transform: scale(1.1);
    }

.progress-bar {
    flex: 1;
    height: 4px;
    background: rgba(255,255,255,0.3);
    border-radius: 4px;
    cursor: pointer;
    position: relative;
}

.progress-filled {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    background: #289672;
    border-radius: 4px;
    width: 0%;
}

.time-display {
    color: white;
    font-size: 12px;
    margin: 0 10px;
}

.video-controls-inner {
    display: flex;
    align-items: center;
    gap: 15px;
}

.volume-control {
    position: relative;
}

.volume-slider {
    position: absolute;
    bottom: 35px;
    left: 0;
    width: 80px;
    height: 4px;
    background: rgba(255,255,255,0.3);
    border-radius: 4px;
    display: none;
}

.volume-control:hover .volume-slider {
    display: block;
}

/* ویدئو تامبنیل */
.video-thumbnail {
    position: relative;
    cursor: pointer;
}

    .video-thumbnail img {
        width: 100%;
        border-radius: 20px;
    }

.play-icon-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70px;
    height: 70px;
    background: rgba(40, 150, 114, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

    .play-icon-overlay i {
        font-size: 30px;
        color: white;
    }

.video-thumbnail:hover .play-icon-overlay {
    transform: translate(-50%, -50%) scale(1.1);
    background: #289672;
}