:root {
    --glass-bg: rgba(18, 20, 28, 0.55);
    --glass-border: rgba(255, 255, 255, 0.08);
    --text-main: #ffffff;
    --text-muted: rgba(230, 230, 235, 0.6);
    --smoke-gray: rgba(74, 78, 90, 0.8);
    /* خاکستری دودی برای هاور */
    --brand-gray: #a0a4b0;
    /* خاکستری برای PARANDA */
    --accent: #3b82f6;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Tahoma, 'Segoe UI', sans-serif;
    background: #0b0e14;
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    
}

.site-content {
    zoom: 86%;
}

/* پس‌زمینه سایت */
.site-background {
    position: fixed;

    top: 0;
    left: 0;

    width: 100vw;
    height: 100lvh;

    z-index: -2;
    overflow: hidden;
    pointer-events: none;

    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;

    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}

.site-background::after {
    content: "";
    position: absolute;
    inset: 0;

    background: rgba(0, 0, 0, 0.65);

    pointer-events: none;
}

/* ساختار نویگیشن */
.nav-wrap {
    position: fixed;
    top: 24px;
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 0 20px;
    z-index: 1000;
    transition: var(--transition);
}

.nav {
    width: 100%;
    max-width: 1200px;
    background: var(--glass-bg);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-radius: 28px;
    border: 1px solid var(--glass-border);
}

/* استایل برند */
.brand-name {
    font-weight: 800;
    color: rgb(255, 255, 255);
    letter-spacing: 2px;
}

.nav-top {
    display: flex;
    justify-content: space-between;
    padding: 13px 32px;
    font-size: 15px;
    border-bottom: 1px solid var(--glass-border);
    transition: var(--transition);
}

.quick-links a {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.9);
    margin-left: 15px;
    font-weight: 600;
}

/* چیدمان لوگو و منو */
.nav-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 35px;
    transition: var(--transition);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 35px;
}

.logo img {
    height: 38px;
}

.nav-menu {
    list-style: none;
    display: flex;
    gap: 10px;
}

.nav-link {
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    padding: 8px 18px;
    border-radius: 14px;
    transition: var(--transition);
}

.nav-link:hover {
    background: var(--smoke-gray);
    color: #fff;
}

/* جستجو دسکتاپ */
/* تنظیمات پایه ظرف جستجو */
.search-box-desktop {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 18px;
    padding: 5px 12px;
    /* اضافه کردن ترنزیشن برای تغییر نرم طول */
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    width: 160px;
    /* طول اولیه */
}

/* تغییر طول زمانی که داخل اینپوت کلیک می‌شود */
.search-box-desktop:focus-within {
    width: 250px;
    /* طول در حالت فعال */
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent);
}

.search-input {
    background: none;
    border: none;
    color: #fff;
    outline: none;
    width: 100%;
    /* استفاده از تمام فضای ظرف */
    font-size: 13px;
    padding-right: 5px;
}

.search-icon {
    background: none;
    border: none;
    cursor: pointer;
    opacity: 0.7;
    color: #fff;
}

/* وضعیت اسکرول هدر */
.nav-wrap.scrolled {
    top: 12px;
}

.nav-wrap.scrolled .nav-top {
    height: 0;
    padding: 0;
    opacity: 0;
    overflow: hidden;
}

.nav-wrap.scrolled .nav-main {
    padding: 12px 32px;
}

/* منوی موبایل و همبرگری */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 130vh;
    background: rgba(18, 20, 28, 0.98);
    backdrop-filter: blur(20px);
    padding: 100px 30px;
    transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2000;
}

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

.mobile-search-container {
    margin-bottom: 35px;
}

.mobile-search-input {
    width: 100%;
    padding: 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--glass-border);
    color: #fff;
    outline: none;
}

.mobile-menu ul {
    list-style: none;
}

.mobile-menu li {
    margin-bottom: 22px;
}

.mobile-menu a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
}

.menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    opacity: 0;
    pointer-events: none;
    transition: 0.3s;
    z-index: 1500;
}

.menu-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

/* بخش Hero و محتوا */
.content-wrapper {
    padding-top: 210px;
    text-align: center;
}

.hero-badge {
    display: inline-block;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid var(--accent);
    color: var(--accent);
    padding: 6px 22px;
    border-radius: 50px;
    margin-bottom: 25px;
    font-weight: bold;
    font-size: 13px;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    font-weight: 800;
}

.gradient-text {
    background: linear-gradient(90deg, #fff, var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 35px;
}

/* دکمه‌ها */
.btn {
    padding: 14px 34px;
    border-radius: 14px;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
    display: inline-block;
}

.btn-primary {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

.btn-glass {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: #fff;
    backdrop-filter: blur(5px);
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-3px);
}

.videos-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.videos-header .videos-title {
    margin-bottom: 0;
}

.course-details-btn {
    padding: 8px 20px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: bold;
    font-size: 14px;
    transition: 0.3s;
    display: inline-block;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: #fff;
    backdrop-filter: blur(5px);
}

.course-details-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-2px);
    color: #fff;
}

.app-shell {
    max-width: 1100px;
    margin: 20px auto;
    padding: 60px;
    background: rgba(22, 25, 32, 0.35);
    backdrop-filter: blur(15px);
    border-radius: 40px;
    border: 1px solid var(--glass-border);
}

.separator {
    width: 50px;
    height: 4px;
    background: var(--brand-gray);
    margin: 20px 0 30px;
    border-radius: 10px;
}

/* ریسپانسیو */
/* --- اصلاحیه بخش ریسپانسیو موبایل --- */
@media (max-width: 950px) {

    /* نمایش لاین بالا در موبایل */
    .nav-top {
        display: flex !important;
        padding: 11px 18px;
        font-size: 13px;
    }

    .quick-links a {
        margin-left: 8px;
    }

    .brand-name {
        font-size: 11px;
    }

    /* مخفی کردن منوی افقی و سرچ دسکتاپ */
    .nav-menu,
    .search-box-desktop {
        display: none !important;
    }

    /* نمایش دکمه همبرگری */
    .menu-toggle {
        display: flex;
    }

    /* تنظیم لاین اصلی در موبایل */
    .nav-main {
        padding: 16px 18px;
    }

    .logo img {
        height: 34px;
    }

    /* افکت تبدیل به تک لاین در موبایل هنگام اسکرول */
    .nav-wrap.scrolled .nav-top {
        height: 0;
        padding: 0;
        opacity: 0;
        overflow: hidden;
        border-bottom: none;
    }

    .nav-wrap.scrolled .nav-main {
        padding: 12px 32px;
    }

    .nav-wrap.scrolled .nav {
        border-radius: 20px;
        max-width: 95%;
        /* نوار در حالت اسکرول کمی جمع‌تر شود */
    }
}

@media (max-width: 768px) {
    .hero-banner {
        max-width: 92%;
        height: 260px;
        border-radius: 20px;
    }

    .app-shell {
        margin: 20px auto;
        padding: 15px;
    }
}

/* دکمه بستن منوی موبایل */
.mobile-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 42px;
    height: 42px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 2100;
    /* بالا از منوی موبایل */
}

/* Hover effect */
.mobile-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg) scale(1.1);
}

/* وقتی منو فعال است، کمی تاخیر انیمیشن برای ظاهر شدن */
.mobile-menu.active .mobile-close {
    animation: slideIn 0.4s ease forwards;
}

@keyframes slideIn {
    0% {
        transform: translateX(50px) rotate(-45deg);
        opacity: 0;
    }

    100% {
        transform: translateX(0) rotate(0);
        opacity: 1;
    }
}


/* back to top
*/

#scrollTopBtn {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 60px;
    height: 60px;
    border-radius: 14px;

    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);

    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #fff;
    font-size: 1.5rem;
    font-weight: 600;

    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;

    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
    z-index: 999;
}

#scrollTopBtn:hover {
    background: rgba(255, 255, 255, 0.22);
    transform: translateY(0) scale(1.05);
}

#scrollTopBtn.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

@media (max-width: 768px) {
    #scrollTopBtn {
        bottom: 20px;
        right: 20px;
    }
}












/* بنر
*/
/* تنظیمات پایه اسلایدر */
.hero-slider {
    width: 100%;
    max-width: 1000px;
    margin: 10px auto;
    position: relative;
    direction: ltr;
    /* برای محاسبات دقیق ریاضی اسلایدر */
    touch-action: pan-y;
}

.slider {
    width: 100%;
    height: 500px;
    overflow: hidden;
    border-radius: 22px;
    position: relative;
    cursor: grab;
}

.slider:active {
    cursor: grabbing;
}

.slider-track {
    display: flex;
    height: 100%;
    will-change: transform;
}

.slide {
    min-width: 100%;
    height: 100%;
    position: relative;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    user-select: none;
    pointer-events: none;
    /* جلوگیری از درگ شدن عکس توسط مرورگر */
    -webkit-user-drag: none;
}

/* استایل دکمه قرمز روی اسلاید */
.slide-btn {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #ff4d4d;
    color: white;
    padding: 12px 25px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: bold;
    font-size: 14px;
    box-shadow: 0 4px 15px rgba(255, 77, 77, 0.4);
    transition: all 0.3s ease;
    z-index: 10;
    white-space: nowrap;
}

.slide-btn:hover {
    background-color: #e60000;
    transform: translateX(-50%) scale(1.05);
    box-shadow: 0 6px 20px rgba(255, 0, 0, 0.6);
}

/* دات‌ها (توپی‌ها) */
.dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
    direction: rtl;
}

.dot {
    width: 15px;
    height: 15px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    cursor: pointer;
    transition: 0.3s;
}

.dot.active {
    background: #fff;
    transform: scale(1.3);
}

/* ریسپانسیو موبایل */
@media (max-width: 768px) {
    .slider {
        height: 350px;
    }

    .slide-btn {
        padding: 8px 18px;
        font-size: 12px;
        bottom: 20px;
    }
}



.hero-typewriter {
    text-align: center;
    margin-bottom: 50px;
    margin-top: 120px;
    min-height: 80px;
    /* جلوگیری از پرش صفحه هنگام عوض شدن متن */
}

.hero-typewriter h1 {
    font-size: 2.2rem;
    font-weight: 800;
    color: #fff;
}

.accent-text {
    color: var(--accent);
    text-shadow: 0 0 15px rgba(59, 130, 246, 0.5);
}

.cursor {
    display: inline-block;
    width: 3px;
    background-color: var(--accent);
    margin-right: 5px;
    animation: blink 0.7s infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

@media (max-width: 768px) {
    .hero-typewriter h1 {
        font-size: 1.5rem;
    }
}







/* ===== Category Slider ===== */
.category-slider {
    max-width: 1200px;
    margin: 80px auto;
    padding: 0 20px;
}

.section-title {
    font-size: 1.6rem;
    margin-bottom: 25px;
    text-align: right;
}

.category-track {
    display: flex;
    gap: 22px;
    overflow-x: auto;
    padding: 20px 10px 30px;
}

.category-track::-webkit-scrollbar {
    display: none;
}

.category-card {
    min-width: 220px;
    height: 140px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(12px);
    border-radius: 22px;
    padding: 20px;
    cursor: pointer;

    display: flex;
    flex-direction: column;
    justify-content: space-between;

    transition: all 0.3s ease;

    position: relative;
    z-index: 1;
}

.category-card:hover {
    transform: translateY(-6px) scale(1.03);
    background: rgba(255, 255, 255, 0.12);
    z-index: 5;
}

.category-card .icon {
    font-size: 32px;
}

.category-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
}












/* ===== Smart Suggest Bar ===== */
.smart-bar {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(120%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;

    min-width: 280px;
    max-width: 520px;
    padding: 14px 18px;

    background: rgba(20, 23, 32, 0.75);
    backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 18px;

    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
    z-index: 1200;

    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.smart-bar.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.smart-bar-content {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
}

.smart-icon {
    font-size: 18px;
}

.smart-action {
    color: var(--accent);
    font-weight: bold;
    text-decoration: none;
}

.smart-action:hover {
    text-decoration: underline;
}

.smart-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    opacity: 0.6;
}

.smart-close:hover {
    opacity: 1;
}

/* موبایل */
@media (max-width: 768px) {
    .smart-bar {
        max-width: 90%;
        bottom: 16px;
    }
}

@media (max-width: 768px) {
    .smart-bar {
        right: auto;
        /* ← بسیار مهم */
        left: 40%;
        transform: translateX(-50%);

    }
}















/* ===== Search Overlay ===== */
.search-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10, 12, 18, 0.88);
    backdrop-filter: blur(20px);
    z-index: 3000;

    display: flex;
    align-items: center;
    justify-content: center;

    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
}

.search-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.search-overlay-box {
    width: 90%;
    max-width: 600px;
    text-align: center;
}

.search-overlay-input {
    width: 100%;
    padding: 18px 22px;
    font-size: 1.1rem;
    border-radius: 18px;
    border: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    outline: none;
}

.search-overlay-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.search-suggestions {
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.suggestion {
    padding: 8px 16px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.1);
    font-size: 13px;
    cursor: pointer;
    transition: 0.25s;
}

.suggestion:hover {
    background: rgba(255, 255, 255, 0.2);
}


















/* ===== Live Widgets ===== */
.live-widgets {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
    margin: 40px auto;
}

.live-widget {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(12px);
    font-size: 14px;
    color: #fff;
}

/* نقطه سبز زنده */
.live-dot {
    width: 10px;
    height: 10px;
    background: #2bff88;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(43, 255, 136, 0.8);
    animation: pulse 1.6s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.4);
        opacity: 0.6;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.live-number {
    font-weight: 700;
    font-size: 15px;
}














/* ===== Interest Strip (Subtle Right Side) ===== */
.interest-strip {
    position: fixed;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    width: 15px;
    height: 200px;
    background: rgba(18, 20, 28, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-right: none;
    border-radius: 16px 0 0 16px;
    backdrop-filter: blur(14px);
    z-index: 2500;
    cursor: pointer;
    transition: width 0.35s ease;
    overflow: hidden;
}

/* حالت باز */
.interest-strip.active {
    width: 250px;
    height: 200px;
}

/* نوشته عمودی */
.interest-strip-label {
    position: absolute;
    top: 50%;
    left: 8px;
    transform: translateY(-50%) rotate(-90deg);
    transform-origin: left center;
    font-size: 11px;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.7);
    white-space: nowrap;
    pointer-events: none;
}

/* پنل داخلی */
.interest-strip-panel {
    opacity: 0;
    padding: 16px 18px;
    transition: opacity 0.2s ease;
}

.interest-strip.active .interest-strip-panel {
    opacity: 1;
}

/* محتوا */
.interest-strip-panel h4 {
    font-size: 13px;
    margin-bottom: 12px;
}

.interest-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

.interest-options span {
    padding: 6px 10px;
    font-size: 11px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    cursor: pointer;
    transition: background 0.2s ease;
}

.interest-options span.active {
    background: rgba(59, 130, 246, 0.3);
}

.interest-strip-panel button {
    width: 100%;
    padding: 8px;
    border-radius: 10px;
    border: none;
    background: var(--accent);
    color: #fff;
    font-size: 11px;
    cursor: pointer;
}

/* ===== Post Categories ===== */
.post-categories {
    max-width: 1200px;
    margin: 60px auto 40px;
    padding: 0 20px;
    text-align: right;
}

.post-categories h2 {
    font-size: 1.6rem;
    margin-bottom: 18px;
}

.cat-list a {
    margin-left: 12px;
    margin-bottom: 8px;
    display: inline-block;
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 20px;
    text-decoration: none;
    font-size: 14px;
    color: #fff;
    transition: all 0.3s ease;
}

.cat-list a:hover {
    background: rgba(255, 255, 255, 0.12);
}

/* ===== Latest Posts ===== */
.latest-posts {
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 20px;

    margin-left: -30px;
    margin-right: -30px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.latest-posts h2 {
    font-size: 1.7rem;
    margin-bottom: 0;
    text-align: right;
}

.latest-posts .posts-grid {
    flex: 0 0 100%;
    width: 100%;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.post-card {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    overflow: hidden;
    transition: transform .3s ease;
    cursor: pointer;
    display: grid;
    grid-template-rows: auto 1fr;
    height: 100%;
}

.post-card:hover {
    transform: translateY(-6px);
}

.post-card img {
    width: 100%;
    height: 350px;
    object-fit: cover;
}

.post-info {
    padding: 16px;
}

.post-info h3 {
    font-size: 1.15rem;
    margin-bottom: 8px;
}

.post-info h3 a {
    color: #fff;
    text-decoration: none;
}

.post-info h3 a:hover {
    color: var(--accent);
}

.post-meta {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.post-excerpt {
    font-size: 13px;
    color: var(--text-main);
}

.post-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.post-card-link:hover .post-card {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.08);
}


/* ===== Popular Posts ===== */
.popular-posts {
    max-width: 1200px;
    margin: 50px auto 80px;
    padding: 0 20px;
    text-align: right;
}

.popular-posts h2 {
    font-size: 1.6rem;
    margin-bottom: 14px;
}

.popular-posts ul {
    list-style: none;
    padding: 0;
}

.popular-posts li {
    margin-bottom: 10px;
}

.popular-posts a {
    text-decoration: none;
    color: var(--accent);
    font-weight: 600;
    transition: color 0.3s ease;
}

.popular-posts a:hover {
    color: #3b98ff;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .posts-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .cat-list a {
        margin-left: 6px;
        margin-bottom: 6px;
        padding: 8px 12px;
    }

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

/* ===== Popular Posts Banner (Fixed) ===== */
.popular-posts-banner {
    max-width: 100%;
    margin: 40px auto 60px;
    padding: 0 20px;
    text-align: right;
    /* چون سایت RTL است */
}

.popular-posts-banner h2 {
    font-size: 1.6rem;
    margin-bottom: 20px;
}

.popular-posts-banner .popular-cards {
    flex: 0 0 100%;
    width: 100%;
}

/* Container کارت‌ها */
.popular-cards {
    display: flex;
    flex-direction: column;
    /* برای موبایل و دسکتاپ قابل انعطاف */
    gap: 20px;
}

/* هر کارت */
.popular-card {
    display: flex;
    flex-direction: row;
    gap: 20px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    overflow: hidden;
    transition: transform 0.3s ease, background 0.3s ease;
    cursor: pointer;
    position: relative;
    /* برای اطمینان از لایه دکمه */
}

.popular-card:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.12);
}

/* تصویر کارت */
.popular-card img {
    width: 180px;
    height: 170px;
    object-fit: cover;
    flex-shrink: 0;
    border-radius: 12px 0 0 12px;
    pointer-events: none;
    /* جلوگیری از اختلال روی کلیک دکمه */
}

/* محتوای کارت */
.popular-card .card-content {
    padding: 12px 16px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    /* تغییر از space-between برای جلوگیری از فاصله زیاد */
    gap: 8px;
}

/* عنوان و متن */
.popular-card .card-content h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.popular-card .card-content p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 10px;
}

.popular-card {
    display: flex;
    flex-direction: row;
    gap: 20px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    overflow: hidden;
    transition: transform 0.3s ease, background 0.3s ease;
    text-decoration: none;
    /* لینک کل کارت */
    color: inherit;
    /* رنگ متن */
}

.popular-card:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.12);
}

/* حذف دکمه slide-btn */


/* ===== Responsive (موبایل) ===== */
@media (max-width: 768px) {

    .popular-card{
        margin-left: -20px;
        margin-right: -20px;
    }

    .popular-card img {
        height: 235px;
        /* ارتفاع انعطاف‌پذیر */
    }

    .popular-card .card-content h3 {
        font-size: 0.95rem;
        font-weight: 700;
        margin-bottom: 2px;
        margin-right: -25px;
    }

    .popular-card .card-content p {
        font-size: 0.8rem;
        color: rgba(255, 255, 255, 0.85);
        margin-bottom: 0px;
        margin-right: -25px;
    }

    .popular-card .slide-btn {
        margin-top: 12px;
        /* افزایش فاصله از متن برای خوانایی بهتر */
        padding: 8px 16px;
        /* افزایش padding دکمه */
        font-size: 12px;
        /* افزایش اندازه فونت دکمه */
        width: 100%;
        /* دکمه عرض کامل برای استفاده بهتر از فضا */
        text-align: center;
        /* تراز وسط متن دکمه */
    }

    /* اطمینان از اینکه اگر کارت بدون تصویر باشد، ظاهر خوبی داشته باشد */
    .popular-card:not(:has(img)) .card-content {
        border-radius: 12px;
    }

    /* تنظیمات بیشتر برای فضاهای خالی */
    .popular-card {
        margin-bottom: 16px;
        /* فاصله بین کارت‌ها */
    }
}

/* ===== Editor Picks (Clickable Cards Version) ===== */

.editor-picks {
    margin-top: 60px;
}

.editor-title {
    font-size: 1.4rem;
    margin-bottom: 22px;
    text-align: right;
}

.latest-posts,
.popular-posts-banner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.latest-posts h2,
.popular-posts-banner h2 {
    margin-bottom: 0;
}

.latest-posts>a,
.popular-posts-banner>a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-inline-start: auto;
    padding: 8px 18px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    font-weight: 600;
    transition: var(--transition);
}

.latest-posts>a:hover,
.popular-posts-banner>a:hover {
    background: rgba(74, 78, 90, 0.8);
    color: #fff;
}

.view-all-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 14px;
    padding: 8px 18px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    font-weight: 600;
    transition: var(--transition);
}

.view-all-link:hover {
    background: rgba(74, 78, 90, 0.8);
    color: #fff;
}

/* گرید */
.editor-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
}

/* حذف استایل لینک */
.editor-main,
.editor-small {
    text-decoration: none;
    color: inherit;
}

/* کارت بزرگ */
.editor-main {
    position: relative;
    height: 400px;
    border-radius: 22px;
    overflow: hidden;
    display: block;
}

.editor-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.editor-main:hover img {
    transform: scale(1.07);
}

.editor-overlay {
    position: absolute;
    inset: 0;
    padding: 22px;

    display: flex;
    flex-direction: column;
    justify-content: flex-end;

    background: linear-gradient(to top, rgba(0, 0, 0, 0.85), transparent 65%);
}

.editor-overlay h4 {
    font-size: 1.3rem;
    margin-bottom: 8px;
}

.editor-overlay p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

/* ستون کناری */
.editor-side {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* کارت‌های کوچک */
.editor-small {
    display: flex;
    gap: 14px;
    padding: 5px;

    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;

    align-items: center;
    transition: all 0.3s ease;
}

.editor-small:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.12);
}

.editor-small img {
    width: 110px;
    height: 100px;
    object-fit: cover;
    border-radius: 12px;
    flex-shrink: 0;
}

.editor-small-content {
    display: flex;
    flex-direction: column;
    gap: 6px;

    /* متن‌ها رو از راست به چپ (در محیط RTL) یا از شروع باکس می‌چینه */
    align-items: flex-start;

    /* اجازه میده محتوا در فضای باقی‌مانده جا بشه */
    flex: 1;
    /* جلوگیری از بیرون‌زدگی متن‌های طولانی */
    min-width: 0;
}

.editor-small-content h4 {
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
}

.editor-small-content h5 {
    font-size: 0.7rem;
    /* برای اطمینان از راست‌چین بودن متن */
    text-align: right;
    direction: rtl;
}


.editor-small-content span {
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.85);

    /* برای اطمینان از راست‌چین بودن متن */
    text-align: right;
    direction: rtl;
    /* اگر متن فارسی است، این هم مطمئن‌ترش می‌کند */

}

/* موبایل */
@media (max-width: 900px) {

    .editor-grid {
        grid-template-columns: 1fr;
    }

    .editor-main {
        height: 340px;
        width: 100%;
    }

    .editor-small img {
        width: 180px;
        height: 160px;
    }

    .editor-small-content h5 {
        font-size: 0.9rem;
        /* برای اطمینان از راست‌چین بودن متن */
        text-align: right;
        direction: rtl;
    }


    .editor-small-content span {
        font-size: 0.8rem;
        color: rgba(255, 255, 255, 0.85);

        /* برای اطمینان از راست‌چین بودن متن */
        text-align: right;
        direction: rtl;
        /* اگر متن فارسی است، این هم مطمئن‌ترش می‌کند */

    }
}

/* ===== Latest Videos ===== */

.latest-videos {
    margin-top: 70px;
}

.videos-title {
    font-size: 1.4rem;
    margin-bottom: 22px;
    text-align: right;
}

/* گرید */
.videos-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

/* کارت */
.video-card {
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease;
}

.video-card:hover {
    transform: translateY(-5px);
}

/* تصویر */
.video-thumb {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
}

.video-thumb img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    display: block;
}

/* آیکون پلی */
.play-icon {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 34px;
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(3px);
    opacity: 0;
    transition: 0.3s;
}

.video-card:hover .play-icon {
    opacity: 1;
}

/* زمان ویدیو */
.video-time {
    position: absolute;
    bottom: 8px;
    left: 8px;

    background: rgba(0, 0, 0, 0.75);
    padding: 3px 8px;
    border-radius: 8px;
    font-size: 16px;
}

/* عنوان */
.video-card h4 {
    font-size: 0.95rem;
    margin-top: 10px;
    line-height: 1.5;
}

/* ریسپانسیو */
@media (max-width: 1100px) {
    .videos-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .video-thumb img {
        height: 280px;
    }

    .videos-grid {
        grid-template-columns: 1fr;
    }

    .video-time {
        font-size: 24px;
    }
}

/* ===== Game Reviews ===== */

.game-reviews {
    margin-top: 70px;
}

.reviews-title {
    font-size: 1.4rem;
    margin-bottom: 22px;
    text-align: right;
}

/* گرید */
.reviews-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
}

/* حذف استایل لینک */
.review-main,
.review-small {
    text-decoration: none;
    color: inherit;
}

/* کارت بزرگ */
.review-main {
    position: relative;
    height: 340px;
    border-radius: 22px;
    overflow: hidden;
    display: block;
}

.review-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.review-main:hover img {
    transform: scale(1.06);
}

/* اورلی */
.review-overlay {
    position: absolute;
    inset: 0;
    padding: 22px;

    display: flex;
    flex-direction: column;
    justify-content: flex-end;

    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent 65%);
}

/* امتیاز بزرگ */
.review-score {
    position: absolute;
    top: 16px;
    left: 16px;

    background: #00c853;
    color: #fff;
    font-weight: bold;

    padding: 6px 12px;
    border-radius: 12px;
    font-size: 14px;
}

.review-overlay p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

/* ستون کناری */
.review-side {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

/* کارت کوچک */
.review-small {
    display: flex;
    gap: 12px;
    padding: 12px;

    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;

    align-items: center;
    transition: 0.3s;
}

.review-small:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.12);
}

.review-small img {
    width: 95px;
    height: 70px;
    object-fit: cover;
    border-radius: 10px;
}

.review-info {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* امتیاز کوچک */
.review-info .score {
    background: #ff4d4d;
    padding: 4px 8px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: bold;
}

/* موبایل */
@media (max-width: 900px) {
    .reviews-grid {
        grid-template-columns: 1fr;
    }

    .review-main {
        height: 240px;
    }
}

/* ===== Windows Apps Section ===== */
.windows-apps {
    max-width: 1200px;
    margin: 70px auto;
    padding: 0 20px;
}

.windows-apps .section-title {
    font-size: 1.5rem;
    margin-bottom: 25px;
    text-align: right;
}

/* گرید کارت‌ها */
.apps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

/* کارت برنامه */
.app-card {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, background 0.3s ease;
}

.app-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.12);
}

/* تصویر برنامه */
.app-card img {
    width: 100%;
    height: 140px;
    object-fit: contain;
    background: rgba(0, 0, 0, 0.1);
}

/* محتوای کارت */
.app-content {
    padding: 14px 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

/* عنوان و توضیح */
.app-content h4 {
    font-size: 1rem;
    font-weight: 700;
}

.app-content p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    flex: 1;
}

/* دکمه دانلود */
.download-btn {
    text-decoration: none;
    display: inline-block;
    padding: 8px 16px;
    background: var(--accent);
    color: #fff;
    border-radius: 12px;
    font-size: 13px;
    font-weight: bold;
    text-align: center;
    transition: all 0.3s ease;
}

.download-btn:hover {
    background: #2563eb;
    transform: translateY(-2px);
}

/* ===== Gaming Intro ===== */
.gaming-intro {
    text-align: right;
    margin: 6px 20px 34px;
    padding: 18px 20px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
}

.gaming-intro h2 {
    font-size: 1.55rem;
    margin-bottom: 8px;
}

.gaming-intro p {
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.95rem;
}

/* ===== Ad Showcase ===== */
.ad-showcase {
    margin: 24px 20px 56px;
    text-align: right;
}

.ad-showcase h2 {
    font-size: 1.35rem;
    margin-bottom: 16px;
}

.ad-main,
.ad-square {
    border-radius: 18px;
    border: 1px dashed rgba(255, 255, 255, 0.26);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.58);
    font-size: 0.9rem;
}

.ad-main {
    width: 100%;
    min-height: 170px;
    margin-bottom: 16px;
}

.ad-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(120px, 1fr));
    gap: 14px;
}

.ad-square {
    aspect-ratio: 1 / 1;
    min-height: 120px;
}

@media (max-width: 960px) {
    .ad-grid {
        grid-template-columns: repeat(2, minmax(120px, 1fr));
    }
}

@media (max-width: 600px) {

    .gaming-intro,
    .ad-showcase,
    .latest-posts,
    .popular-posts-banner,
    .windows-apps {
        margin-left: 0;
        margin-right: 0;
    }

    .ad-main {
        min-height: 130px;
    }
}

/* ===== Pro Gaming Additions ===== */
.tournament-board,
.upcoming-releases,
.ad-strip,
.ad-cubes {
    margin: 46px 20px;
    text-align: right;
}

.tournament-board h3,
.upcoming-releases h3 {
    font-size: 1.35rem;
    margin-bottom: 14px;
}

.tournament-grid,
.release-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
}

.tournament-card,
.release-card {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 14px;
    backdrop-filter: blur(10px);
}

.event-tag {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(59, 130, 246, 0.24);
    color: #dbeafe;
    font-size: 11px;
    margin-bottom: 8px;
}

.tournament-card h4,
.release-card h4 {
    font-size: 1rem;
    margin-bottom: 6px;
}

.tournament-card p,
.release-card p {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.86rem;
}

.ad-banner-wide,
.ad-banner-mid,
.ad-cube {
    border: 1px dashed rgba(255, 255, 255, 0.3);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
    border-radius: 18px;
    backdrop-filter: blur(10px);
    color: rgba(255, 255, 255, 0.62);
    display: flex;
    justify-content: center;
    align-items: center;
}

.ad-banner-wide {
    width: 100%;
    min-height: 180px;
}

.ad-banner-mid {
    width: 100%;
    min-height: 130px;
}

.ad-cubes-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(120px, 1fr));
    gap: 14px;
}

.ad-cube {
    min-height: 120px;
    aspect-ratio: 1/1;
}

@media (max-width: 760px) {

    .tournament-grid,
    .release-grid {
        grid-template-columns: 1fr !important;
    }

    .tournament-board,
    .upcoming-releases,
    .ad-strip,
    .ad-cubes {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .ad-banner-wide {
        min-height: 140px;
    }

    .ad-cubes-grid {
        grid-template-columns: repeat(2, minmax(120px, 1fr));
    }
}

/* ===== Glass Footer ===== */
.site-footer {
    max-width: 1200px;
    margin: 72px auto 40px;
    padding: 34px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
    border: 1px solid var(--glass-border);
    border-radius: 30px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.28);
}

/* ===== BytoLearn Practical Sections ===== */
.bytolearn-section {
    margin-top: 58px;
}

.bytolearn-section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 20px;
}

.bytolearn-kicker {
    display: inline-flex;
    padding: 6px 12px;
    margin-bottom: 10px;
    border-radius: 999px;
    background: rgba(59, 130, 246, 0.12);
    border: 1px solid rgba(59, 130, 246, 0.22);
    color: #dbeafe;
    font-size: 0.84rem;
}

.bytolearn-section-head h3 {
    font-size: 1.55rem;
    line-height: 1.45;
}

.bytolearn-view-link {
    color: #e5e7eb;
    text-decoration: none;
    padding: 10px 14px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    white-space: nowrap;
}

.bytolearn-skill-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.bytolearn-skill-card {
    display: block;
    padding: 22px;
    border-radius: 24px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
    border: 1px solid rgba(255, 255, 255, 0.09);
    text-decoration: none;
    color: #fff;
}

.bytolearn-skill-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin-bottom: 14px;
    border-radius: 16px;
    background: rgba(59, 130, 246, 0.12);
    border: 1px solid rgba(59, 130, 246, 0.18);
    font-weight: 800;
}

.bytolearn-skill-card h4,
.bytolearn-course-body h4,
.bytolearn-track-card h4 {
    margin-bottom: 8px;
}

.bytolearn-skill-card p,
.bytolearn-course-body p,
.bytolearn-track-card p {
    color: var(--text-muted);
}

.bytolearn-card-foot,
.bytolearn-course-badges,
.bytolearn-track-line {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.bytolearn-card-foot {
    margin-top: 16px;
}

.bytolearn-card-foot span,
.bytolearn-course-badges span {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.8rem;
    color: #e2e8f0;
}

.bytolearn-course-grid,
.bytolearn-track-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.bytolearn-course-card,
.bytolearn-track-card {
    overflow: hidden;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.bytolearn-course-thumb {
    position: relative;
    height: 170px;
    overflow: hidden;
    background: transparent;
}

.bytolearn-course-thumb-1 {
    background: transparent;
}

.bytolearn-course-thumb-2 {
    background: transparent;
}

.bytolearn-course-thumb-3 {
    background: transparent;
}

.bytolearn-course-body {
    padding: 18px;
    text-align: right;
    direction: rtl;
}

.bytolearn-course-meta,
.bytolearn-course-foot {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    font-size: 0.85rem;
    color: #cbd5e1;
    direction: rtl;
}

.bytolearn-course-meta {
    margin-bottom: 10px;
}

.bytolearn-course-badges {
    margin-top: 14px;
    direction: rtl;
}

.bytolearn-course-foot {
    margin-top: 18px;
    align-items: center;
    flex-direction: row-reverse;
}

.bytolearn-course-foot a {
    color: #fff;
    text-decoration: none;
    padding: 14px 16px;
    border-radius: 12px;
    background: rgba(59, 130, 246, 0.18);
}

.bytolearn-track-card {
    padding: 22px;
}

.bytolearn-track-card span {
    display: inline-flex;
    margin-bottom: 14px;
    color: #bfdbfe;
    font-size: 0.84rem;
}

.bytolearn-track-line {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.86rem;
}

.bytolearn-track-line strong {
    color: #fff;
}

.bytolearn-track-line span {
    color: var(--text-muted);
}

.bytolearn-podcast-shell {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 16px;
}

.bytolearn-podcast-feature,
.bytolearn-podcast-list,
.bytolearn-tool-card {
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.bytolearn-podcast-feature {
    padding: 24px;
    min-height: 100%;
}

.bytolearn-podcast-badge {
    display: inline-flex;
    margin-bottom: 16px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(236, 72, 153, 0.14);
    border: 1px solid rgba(236, 72, 153, 0.22);
    color: #fbcfe8;
    font-size: 0.84rem;
}

.bytolearn-podcast-feature h4 {
    font-size: 1.25rem;
    margin-bottom: 10px;
}

.bytolearn-podcast-feature p {
    color: var(--text-muted);
    max-width: 58ch;
}

.bytolearn-podcast-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 22px;
}

.bytolearn-podcast-actions a,
.bytolearn-podcast-item a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 14px;
    border-radius: 12px;
    text-decoration: none;
    color: #fff;
    background: rgba(236, 72, 153, 0.16);
    border: 1px solid rgba(236, 72, 153, 0.22);
}

.bytolearn-podcast-list {
    padding: 8px;
    display: grid;
    gap: 10px;
}

.bytolearn-podcast-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.04);
}

.bytolearn-podcast-item h4 {
    margin-bottom: 4px;
    font-size: 0.98rem;
}

.bytolearn-podcast-item span {
    color: var(--text-muted);
    font-size: 0.84rem;
}

.bytolearn-podcast-shell {
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
    align-items: stretch;
}

.bytolearn-podcast-player,
.bytolearn-podcast-playlist {
    padding: 24px;
    border-radius: 30px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.bytolearn-podcast-player {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.bytolearn-podcast-stage {
    display: grid;
    grid-template-columns: minmax(190px, 230px) 1fr;
    gap: 18px;
    align-items: stretch;
}

.bytolearn-podcast-art {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 240px;
    padding: 20px;
    border-radius: 26px;
    background:
        radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.16), transparent 22%),
        radial-gradient(circle at 80% 0%, rgba(59, 130, 246, 0.28), transparent 28%),
        linear-gradient(145deg, rgba(15, 23, 42, 0.55), rgba(17, 24, 39, 0.72));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.bytolearn-podcast-art::before {
    content: "";
    position: absolute;
    inset: auto -20% -28% auto;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.35), rgba(59, 130, 246, 0.05) 62%, transparent 70%);
    filter: blur(2px);
}

.bytolearn-podcast-art-badge {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-self: flex-start;
    min-height: 30px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(236, 72, 153, 0.14);
    border: 1px solid rgba(236, 72, 153, 0.22);
    color: #fbcfe8;
    font-size: 0.8rem;
    letter-spacing: 0.3px;
}

.bytolearn-podcast-disc {
    position: relative;
    z-index: 1;
    width: 118px;
    height: 118px;
    margin-inline-start: auto;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background:
        radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.2) 0 11%, rgba(255, 255, 255, 0.06) 11% 21%, rgba(15, 23, 42, 0.2) 21% 36%, rgba(15, 23, 42, 0.52) 36% 100%),
        linear-gradient(135deg, rgba(59, 130, 246, 0.42), rgba(236, 72, 153, 0.24));
    box-shadow: 0 0 0 12px rgba(255, 255, 255, 0.02), 0 20px 30px rgba(0, 0, 0, 0.25);
}

.bytolearn-podcast-disc-core {
    position: absolute;
    inset: 50% auto auto 50%;
    width: 28px;
    height: 28px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.bytolearn-podcast-wave {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: flex-end;
    gap: 6px;
    margin-top: 18px;
    height: 42px;
}

.bytolearn-podcast-wave span {
    width: 8px;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(59, 130, 246, 0.5));
    transform-origin: bottom;
    opacity: 0.65;
}

.bytolearn-podcast-wave span:nth-child(1) { height: 14px; }
.bytolearn-podcast-wave span:nth-child(2) { height: 28px; }
.bytolearn-podcast-wave span:nth-child(3) { height: 20px; }
.bytolearn-podcast-wave span:nth-child(4) { height: 34px; }
.bytolearn-podcast-wave span:nth-child(5) { height: 18px; }
.bytolearn-podcast-wave span:nth-child(6) { height: 30px; }
.bytolearn-podcast-wave span:nth-child(7) { height: 16px; }

.bytolearn-podcast-player.is-playing .bytolearn-podcast-wave span {
    animation: podcast-wave 0.95s ease-in-out infinite;
}

.bytolearn-podcast-player.is-playing .bytolearn-podcast-wave span:nth-child(2n) {
    animation-delay: 0.12s;
}

.bytolearn-podcast-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 12px;
}

.bytolearn-podcast-copy h4 {
    font-size: 1.38rem;
    line-height: 1.55;
}

.bytolearn-podcast-copy p {
    color: var(--text-muted);
}

.bytolearn-podcast-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.bytolearn-podcast-meta-row span {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #e2e8f0;
    font-size: 0.8rem;
}

.bytolearn-podcast-progress-wrap {
    display: grid;
    gap: 10px;
}

.bytolearn-podcast-time-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    color: #cbd5e1;
    font-size: 0.84rem;
}

.bytolearn-podcast-progress-track {
    width: 100%;
    height: 12px;
    padding: 0;
    border: 0;
    appearance: none;
    -webkit-appearance: none;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    overflow: hidden;
    cursor: pointer;
}

.bytolearn-podcast-progress-fill {
    display: block;
    width: 0%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--accent), #8b5cf6, #ec4899);
    box-shadow: 0 0 16px rgba(59, 130, 246, 0.35);
    transition: width 0.2s linear;
}

.bytolearn-podcast-controls {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
}

.bytolearn-podcast-control {
    min-height: 48px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    appearance: none;
    -webkit-appearance: none;
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.bytolearn-podcast-control:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.09);
    border-color: rgba(59, 130, 246, 0.3);
}

.bytolearn-podcast-control-play {
    min-height: 58px;
    font-size: 1.15rem;
    background: linear-gradient(135deg, var(--accent), #2563eb);
    box-shadow: 0 14px 28px rgba(59, 130, 246, 0.22);
}

.bytolearn-podcast-control-play:hover {
    background: linear-gradient(135deg, #4f8dfc, #1d4ed8);
}

.bytolearn-podcast-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    color: #cbd5e1;
    font-size: 0.82rem;
}

.bytolearn-podcast-summary span {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.bytolearn-podcast-playlist {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.bytolearn-podcast-playlist-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 4px;
}

.bytolearn-podcast-playlist-head h4 {
    font-size: 1.08rem;
}

.bytolearn-podcast-playlist-head span {
    color: var(--text-muted);
    font-size: 0.84rem;
}

.bytolearn-podcast-item {
    width: 100%;
    text-align: right;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px;
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    appearance: none;
    -webkit-appearance: none;
    background: rgba(255, 255, 255, 0.04);
    color: #fff;
    cursor: pointer;
    transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.bytolearn-podcast-item-left {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.bytolearn-podcast-item-index {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: none;
    width: 46px;
    height: 46px;
    border-radius: 16px;
    background: rgba(59, 130, 246, 0.12);
    border: 1px solid rgba(59, 130, 246, 0.2);
    color: #bfdbfe;
    font-weight: 800;
}

.bytolearn-podcast-item h4 {
    margin-bottom: 4px;
    font-size: 0.97rem;
    line-height: 1.5;
}

.bytolearn-podcast-item-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: none;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(59, 130, 246, 0.16);
    border: 1px solid rgba(59, 130, 246, 0.22);
    color: #fff;
    font-size: 0.8rem;
}

.bytolearn-podcast-item.is-active {
    border-color: rgba(59, 130, 246, 0.3);
    background: linear-gradient(145deg, rgba(59, 130, 246, 0.14), rgba(255, 255, 255, 0.04));
    box-shadow: 0 18px 32px rgba(0, 0, 0, 0.18);
}

.bytolearn-podcast-item.is-active .bytolearn-podcast-item-action {
    background: linear-gradient(135deg, var(--accent), #2563eb);
}

.bytolearn-podcast-item:hover {
    transform: translateY(-2px);
    border-color: rgba(59, 130, 246, 0.25);
}

@keyframes podcast-wave {
    0%,
    100% {
        transform: scaleY(0.55);
        opacity: 0.55;
    }

    50% {
        transform: scaleY(1.22);
        opacity: 1;
    }
}

.bytolearn-tool-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.bytolearn-tool-card {
    padding: 20px;
}

.bytolearn-tool-card h4 {
    font-size: 1.02rem;
    margin-bottom: 8px;
}

.bytolearn-tool-card p {
    color: var(--text-muted);
}

.bytolearn-skill-card {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-height: 100%;
}

.bytolearn-skill-copy {
    display: grid;
    gap: 8px;
}

.bytolearn-skill-copy p {
    color: var(--text-muted);
}

.bytolearn-skill-card .bytolearn-card-foot span,
.bytolearn-track-focus span,
.bytolearn-track-tags span,
.bytolearn-roadmap-meta span,
.bytolearn-project-focus span,
.bytolearn-project-tags span,
.bytolearn-tool-meta span {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #e2e8f0;
    font-size: 0.8rem;
}

.bytolearn-skill-card .bytolearn-card-foot {
    margin-top: auto;
}

.bytolearn-course-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.bytolearn-course-thumb {
    position: relative;
    min-height: 190px;
    overflow: hidden;
    background: transparent;
}

.bytolearn-course-thumb-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
}

.bytolearn-course-thumb::after,
.bytolearn-project-thumb::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.08) 0%, rgba(15, 23, 42, 0.48) 100%);
    pointer-events: none;
}

.bytolearn-course-thumb::after {
    display: none;
}

.bytolearn-course-cover-label,
.bytolearn-course-cover-track,
.bytolearn-project-badge {
    position: absolute;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 12px;
    border-radius: 999px;
    width: fit-content;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.01em;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.24);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.bytolearn-course-cover-label {
    top: 16px;
    right: 16px;
    background: rgba(49, 190, 84, 0.624);
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: #fff;
}

.bytolearn-course-cover-track {
    bottom: 16px;
    right: 16px;
    background: rgba(59, 130, 246, 0.42);
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: #fff;
}

.bytolearn-course-instructor {
    color: #cbd5e1;
    font-size: 0.84rem;
    margin-bottom: 8px;
}

.bytolearn-course-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
    margin-bottom: 20px;
}

.bytolearn-course-foot {
    margin-top: 18px;
    align-items: center;
}

.bytolearn-course-foot span {
    color: #e2e8f0;
    font-weight: 600;
}

.bytolearn-course-foot a {
    width: fit-content;
}

.bytolearn-course-body h4 {
    font-size: 1.3rem;
}

.bytolearn-course-body h4,
.bytolearn-course-body p,
.bytolearn-course-instructor {
    text-align: right;
}

.bytolearn-track-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 22px;
}

.bytolearn-track-focus,
.bytolearn-track-tags,
.bytolearn-project-focus,
.bytolearn-project-tags,
.bytolearn-roadmap-meta,
.bytolearn-tool-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.bytolearn-track-focus span,
.bytolearn-track-tags span,
.bytolearn-project-focus span,
.bytolearn-project-tags span,
.bytolearn-roadmap-meta span,
.bytolearn-tool-meta span {
    background: rgba(255, 255, 255, 0.06);
}

.bytolearn-track-line {
    margin-top: 6px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.86rem;
}

.bytolearn-track-line strong {
    color: #fff;
}

.bytolearn-tool-card {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 22px;
}

.bytolearn-tool-top {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.bytolearn-tool-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    flex: none;
    border-radius: 16px;
    background: rgba(59, 130, 246, 0.12);
    border: 1px solid rgba(59, 130, 246, 0.2);
    font-size: 1.15rem;
}

.bytolearn-tool-top div {
    display: grid;
    gap: 4px;
}

.bytolearn-tool-top div span {
    color: var(--text-muted);
    font-size: 0.84rem;
}

.bytolearn-tool-meta {
    margin-top: 2px;
}

.bytolearn-tool-action,
.bytolearn-project-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 14px;
    border-radius: 12px;
    text-decoration: none;
    color: #fff;
    width: fit-content;
    transition: transform 0.28s ease, background 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
}

.bytolearn-tool-action {
    background: rgba(59, 130, 246, 0.16);
    border: 1px solid rgba(59, 130, 246, 0.22);
}

.bytolearn-tool-action:hover {
    background: rgba(59, 130, 246, 0.24);
    transform: translateY(-2px);
}

.bytolearn-roadmap-grid,
.bytolearn-project-grid {
    display: grid;
    gap: 16px;
}

.bytolearn-roadmap-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.bytolearn-roadmap-card,
.bytolearn-project-card {
    border-radius: 28px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
    overflow: hidden;
}

.bytolearn-roadmap-card:hover,
.bytolearn-project-card:hover {
    transform: translateY(-5px);
    border-color: rgba(59, 130, 246, 0.22);
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.18);
}

.bytolearn-roadmap-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 22px;
    position: relative;
}

.bytolearn-roadmap-chip {
    display: inline-flex;
    align-self: flex-start;
    min-height: 30px;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(59, 130, 246, 0.14);
    border: 1px solid rgba(59, 130, 246, 0.22);
    color: #dbeafe;
    font-size: 0.8rem;
}

.bytolearn-roadmap-step {
    width: 46px;
    height: 46px;
    margin-bottom: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.18), rgba(236, 72, 153, 0.14));
    border: 1px solid rgba(59, 130, 246, 0.24);
    color: #fff;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.bytolearn-roadmap-meta {
    margin-top: auto;
}

.bytolearn-roadmap-meta span {
    font-weight: 600;
}

.bytolearn-project-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.bytolearn-project-card {
    display: flex;
    flex-direction: column;
}

.bytolearn-project-thumb {
    position: relative;
    min-height: 190px;
    padding: 18px;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    background-size: cover;
    background-position: center;
}

.bytolearn-project-badge {
    top: 16px;
    right: 16px;
    background: rgba(236, 72, 153, 0.42);
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: #fff;
}

.bytolearn-project-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 18px;
}

.bytolearn-project-meta {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.bytolearn-project-focus {
    margin-top: 2px;
}

.bytolearn-project-link {
    background: rgba(236, 72, 153, 0.14);
    border: 1px solid rgba(236, 72, 153, 0.22);
}

.bytolearn-project-link:hover {
    background: rgba(236, 72, 153, 0.22);
    transform: translateY(-2px);
}

.bytolearn-skill-card,
.bytolearn-course-card,
.bytolearn-track-card,
.bytolearn-tool-card {
    transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
}

.bytolearn-skill-card:hover,
.bytolearn-course-card:hover,
.bytolearn-track-card:hover,
.bytolearn-tool-card:hover {
    transform: translateY(-6px);
    border-color: rgba(59, 130, 246, 0.25);
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.18);
}

.bytolearn-view-link:hover,
.bytolearn-course-foot a:hover {
    background: rgba(59, 130, 246, 0.24);
}

@media (max-width: 900px) {
    .bytolearn-skill-grid,
    .bytolearn-course-grid,
    .bytolearn-track-grid,
    .bytolearn-podcast-shell,
    .bytolearn-tool-grid,
    .bytolearn-roadmap-grid,
    .bytolearn-project-grid {
        grid-template-columns: 1fr;
    }

    .bytolearn-podcast-stage {
        grid-template-columns: 1fr;
    }

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

    .bytolearn-podcast-control-play {
        grid-column: span 2;
    }

    .bytolearn-podcast-item {
        align-items: flex-start;
        flex-direction: column;
    }

    .bytolearn-podcast-playlist-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .bytolearn-course-foot,
    .bytolearn-project-meta {
        flex-direction: column;
        align-items: flex-start;
    }

    .bytolearn-roadmap-meta {
        flex-direction: column;
    }

    .bytolearn-tool-top {
        align-items: flex-start;
    }

    .bytolearn-section-head {
        flex-direction: column;
        align-items: flex-start;
    }
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 28px;
    text-align: right;
}

.footer-brand h2 {
    font-size: 1.6rem;
    margin-bottom: 14px;
    letter-spacing: 1px;
    background: linear-gradient(90deg, #ffffff, #60a5fa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.footer-brand p,
.footer-newsletter p,
.footer-bottom p {
    color: var(--text-muted);
}

.footer-brand p,
.footer-newsletter p,
.footer-links a {
    font-size: 0.95rem;
    line-height: 1.9;
}

.footer-links h4,
.footer-newsletter h4 {
    font-size: 1rem;
    margin-bottom: 16px;
    color: #fff;
}

.footer-links ul,
.wrapper {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.78);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: #93c5fd;
    padding-right: 6px;
}

.footer-newsletter form {
    display: grid;
    /* استفاده از Grid */
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    /* حداقل عرض 180 پیکسل، پر کردن فضای موجود */
    gap: 12px;
    margin-top: 16px;
    align-items: center;
    /* هم‌ترازی عمودی */
}

.footer-newsletter input {
    padding: 12px 16px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    outline: none;
    min-width: 0;
    /* اضافه شد برای اطمینان از کوچک شدن */
    width: 100%;
    /* اطمینان از پر کردن فضای گرید */
}

.footer-newsletter button {
    padding: 12px 22px;
    border: 1px solid rgba(96, 165, 250, 0.35);
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(59, 130, 246, 0.95), rgba(96, 165, 250, 0.8));
    color: #fff;
    cursor: pointer;
    transition: var(--transition);
    width: auto;
    /* اجازه بده عرضش رو خود گرید تعیین کنه */
    min-width: 120px;
    /* حداقل عرض برای دکمه */
}

.footer-newsletter button:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(59, 130, 246, 0.22);
}

.wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 18px;
    flex-wrap: wrap;
}

.wrapper .icon {
    position: relative;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #fff;
    cursor: pointer;
    transition: var(--transition);
}

.wrapper .tooltip {
    position: absolute;
    top: -42px;
    right: 50%;
    transform: translateX(50%);
    padding: 6px 10px;
    border-radius: 10px;
    background: rgba(15, 23, 42, 0.92);
    color: #fff;
    font-size: 12px;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
}

.wrapper .tooltip::before {
    content: "";
    position: absolute;
    inset-inline-start: calc(50% - 5px);
    bottom: -5px;
    width: 10px;
    height: 10px;
    background: rgba(15, 23, 42, 0.92);
    transform: rotate(45deg);
}

.wrapper .icon:hover {
    transform: translateY(-4px);
    background: rgba(59, 130, 246, 0.22);
    border-color: rgba(96, 165, 250, 0.35);
}

.wrapper .icon:hover .tooltip {
    opacity: 1;
}

.footer-bottom {
    margin-top: 28px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center;
    font-size: 0.86rem;
}

/* ============================= */
/* ✅ Tablet */
@media (max-width: 992px) {

    .site-footer {
        margin: 60px 20px 30px;
        padding: 28px;
    }

    .footer-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

}

/* ============================= */
/* ✅ Mobile */
@media (max-width: 768px) {

    .site-footer {
        margin: 50px 16px 24px;
        padding: 24px;
        border-radius: 22px;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }

    .footer-brand h2 {
        font-size: 1.4rem;
    }

    .footer-links ul {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .footer-links li {
        margin-bottom: 8px;
    }

    /* ✅ فرم خبرنامه استک شود */
    .footer-newsletter form {
        flex-direction: column;
        gap: 12px;
    }

    .footer-newsletter input,
    .footer-newsletter button {
        width: 100%;
    }

    /* ✅ آیکن‌های سوشال وسط‌چین */
    .wrapper {
        justify-content: center;
        gap: 14px;
    }

    .wrapper .icon {
        width: 44px;
        height: 44px;
    }

    /* ✅ در موبایل tooltip روی hover کاربردی نیست */
    .wrapper .tooltip {
        display: none;
    }

    .footer-bottom {
        font-size: 0.8rem;
        margin-top: 24px;
    }
}

/* ============================= */
/* ✅ Small Mobile */
@media (max-width: 480px) {

    .site-footer {
        padding: 20px;
        border-radius: 18px;
    }

    .footer-brand h2 {
        font-size: 1.25rem;
    }

    .footer-brand p,
    .footer-newsletter p,
    .footer-links a {
        font-size: 0.85rem;
        line-height: 1.8;
    }

    .wrapper .icon {
        width: 40px;
        height: 40px;
    }

}



#podcastProgress {
    direction: ltr;
}

#podcastProgressBar {
    width: 0%;
    left: 0;
    right: auto;
    transform-origin: left center;
}












/* یکسان شدن ارتفاع کارت‌ها */
.bytolearn-course-grid {
    align-items: stretch;
}

.bytolearn-course-card {
    display: flex !important;
    flex-direction: column !important;
    height: 100%;
}

.bytolearn-course-body {
    display: flex !important;
    flex-direction: column !important;
    flex: 1;
}

/* فوتر همیشه پایین کارت */
.bytolearn-course-foot {
    margin-top: auto !important;
    display: flex;
    align-items: center;
    justify-content: space-between;
}


@media (max-width: 768px) {
    .bytolearn-course-foot {
        flex-direction: row !important;
        justify-content: space-between !important;
    }

    .bytolearn-course-foot span {
        order: 2; /* تاریخ انتشار سمت چپ */
    }

    .bytolearn-course-foot a {
        order: 1; /* دکمه مشاهده سمت راست */
    }

    .bytolearn-course-thumb {

    min-height: 300px;

    }

    .bytolearn-course-instructor {

        font-size: 1rem;

    }
    .bytolearn-course-meta,
    .bytolearn-course-foot {
        font-size: 1rem;

    }


    .bytolearn-course-body h4 {
        font-size: 1.5rem;
    }


    .bytolearn-course-body p {
        font-size: 1.2rem;
    }
}




/* ===== Categories Mega Menu ===== */
.nav-dropdown {
    position: relative;
}

.nav-dropdown .mega-menu {
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 220px;
    padding: 12px 8px;
    background: #121620;
    border: 1px solid var(--glass-border, rgba(255, 255, 255, 0.08));
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.nav-dropdown:hover .mega-menu,
.nav-dropdown:focus-within .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mega-menu-item {
    display: block;
    padding: 10px 18px;
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
}

.mega-menu-item:hover {
    background: rgba(74, 78, 90, 0.8);
    color: #fff;
}

.nav-dropdown .dropdown-toggle::after {

    margin-left: 5px;
    font-size: 10px;
    opacity: 0.7;
}

/* Mobile submenu for categories */
.mobile-menu .mobile-dropdown {
    margin-bottom: 22px;
}

.mobile-menu .mobile-dropdown-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    cursor: pointer;
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    font-size: 15px;
}

.mobile-menu .mobile-dropdown-toggle::after {

    font-size: 10px;
    opacity: 0.7;
}

.mobile-menu .mobile-submenu {
    list-style: none;
    margin-right: 10px;
    margin-top: 10px;
}

.mobile-menu .mobile-submenu li {
    margin-bottom: 16px;
}

.mobile-menu details[open] .mobile-dropdown-toggle {
    color: var(--accent, #3b82f6);
}


/* Newsletter Form Captcha */
.footer-newsletter .captcha-field-footer {
    display: grid;
    grid-template-columns: auto 1fr; /* Image and Input */
    gap: 10px;
    align-items: center;
    margin-top: 15px;
}

.footer-newsletter .captcha-field-footer > label {
    grid-column: 1 / -1; /* Label spans both columns */
    text-align: right;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 5px;
}

.footer-newsletter .captcha-field-footer .captcha { /* Image */
    height: 42px;
    border-radius: 8px;
}

.footer-newsletter .captcha-field-footer input[type="text"] { /* Input */
    height: 42px;
    width: 100%;
    border-radius: 10px;
    padding: 0 15px;
    font-size: 14px;
}


/* ===== Footer Newsletter Responsive Fix ===== */
/* ===== Footer Newsletter Responsive Fix ===== */

@media (max-width: 768px) {

    .footer-newsletter form {
        display: flex;
        flex-direction: column;
        width: 100%;
        gap: 12px;
    }


    /* فیلد ایمیل */
    .footer-newsletter form input[type="email"] {
        width: 100%;
        height: 42px;
        box-sizing: border-box;
    }


    /* کپچا - همچنان در یک خط */
    .footer-newsletter .captcha-field-footer {

        display: grid !important;

        grid-template-columns: 40% 60% !important;

        gap: 10px;

        align-items: center;

        width: 90% !important;

        margin-top: 0;

    }


    /* عنوان کپچا */
    .footer-newsletter .captcha-field-footer > label {

        grid-column: 1 / -1;

        width: 100%;

        text-align: right;

        margin-bottom: 0;

    }


    /* wrapper داخلی Django captcha */
    .footer-newsletter .captcha-field-footer > div {

        display: contents !important;

    }


    /* تصویر کپچا */
    .footer-newsletter .captcha-field-footer img,
    .footer-newsletter .captcha-field-footer .captcha {

        width: 100% !important;

        height: 42px;

        object-fit: fill;

        border-radius: 8px;

    }


    /* ورودی کد */
    .footer-newsletter .captcha-field-footer input[type="text"] {

        width: 100% !important;

        height: 42px;

        box-sizing: border-box;

        border-radius: 10px;

    }


    /* دکمه */
    .footer-newsletter button {

        width: 100%;

        height: 42px;

    }

}