
:root {
    --green: #1a8a6a;
    --green-dark: #136b52;
    --green-deeper: #0d4d3a;
    --gold: #c9a84c;
    --gold-light: #e8c96a;
    --dark: #1a1a1a;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
    font-family: 'Vazirmatn', Tahoma, sans-serif;
    background: #f0f0f0;
    color: #333;
    direction: rtl;
    text-align: right;
}

/* TOP BAR */
.top-bar {
    background: #fff;
    border-bottom: 2px solid #e0e0e0;
    padding: 8px 0;
}
.top-bar .logo-icons img { height: 36px; margin-left: 6px; }
.top-bar .logo-icons .icon-circle {
    width: 36px; height: 36px;
    border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 1rem; margin-left: 5px; text-decoration: none;
}
.icon-green { background: var(--green); color: #fff; }
.icon-blue  { background: #1da1f2; color: #fff; }
.search-wrap { position: relative; max-width: 260px; width: 100%; }
.search-wrap input {
    width: 100%; border: 1px solid #ccc; border-radius: 20px;
    padding: 6px 16px 6px 36px;
    font-family: 'Vazirmatn', sans-serif; font-size: 0.85rem;
    outline: none;
}
.search-wrap i {
    position: absolute; left: 12px; top: 50%;
    transform: translateY(-50%); color: #aaa;
}
.site-title {
    font-size: 1.05rem; font-weight: 700; color: var(--dark);
    white-space: nowrap;
}
.site-title small { font-size: 0.7rem; color: #888; }

/* NAVBAR */
.main-nav { background: var(--green); }
.main-nav .navbar-nav .nav-link {
    color: #fff !important;
    font-size: 0.88rem; font-weight: 500;
    padding: 12px 13px;
    transition: background .2s;
    white-space: nowrap;
}
.main-nav .navbar-nav .nav-link:hover,
.main-nav .navbar-nav .nav-link.active { background: var(--green-dark); }
.navbar-toggler { border-color: rgba(255,255,255,.4); }
.navbar-toggler-icon { filter: invert(1); }

/* HERO */
.hero-wrap { background: #fff; padding: 12px 0; }
.scholar-panel {
    background: linear-gradient(160deg, var(--green) 0%, var(--green-deeper) 100%);
    border-radius: 8px; overflow: hidden;
    height: 100%; min-height: 320px;
    display: flex; flex-direction: column;
    align-items: center; justify-content: flex-start;
    padding: 16px 12px 0;position: relative;
}
.scholar-panel .panel-label {
    color: rgba(255,255,255,.85); font-size: .78rem; text-align: center;
}
.scholar-panel .panel-name {
    color: var(--gold-light); font-size: 1rem; font-weight: 800;
    text-align: center; margin-top: 4px;
}
.scholar-panel .scholar-img {
    width: 100%; flex: 1;
    background: url('https://via.placeholder.com/300x220/1a8a6a/ffffff?text=استاد') center/cover no-repeat;
    margin-top: 10px;
}
.lesson-badge {
    background: linear-gradient(135deg, #1a4a38, #0d2e22);
    border: 2px solid var(--gold);
    border-radius: 8px;
    padding: 10px 14px;
    text-align: center;
    color: var(--gold-light);
    font-size: .9rem; font-weight: 700;
    margin: 8px 0 0;
    width: 100%;
}
.lesson-badge i { margin-left: 6px; }

/* SLIDER */
.main-slider { border-radius: 8px; overflow: hidden; }

.main-slider,
.carousel-item,
.slide-bg {
    min-height: 600px;
}

.slide-bg {
    position: relative;
    display: flex;
    align-items: flex-end;
    background-size: cover;
    background-position: center;
}

.slide-bg-1 { background: linear-gradient(135deg,#0d3d2e,#1a5c45); }
.slide-bg-2 { background: linear-gradient(135deg,#1a2a3e,#0d1a2e); }
.slide-bg-3 { background: linear-gradient(135deg,#2e1a0d,#1a0d05); }

.slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,.75) 40%, transparent);
}

.slide-caption {
    position: absolute;
    bottom: 2rem;
    right: 2rem;
    left: 2rem;
    color: #fff;
    z-index: 2;
}

.slide-caption h5 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: .4rem;
}

.slide-caption p {
    font-size: .85rem;
    opacity: .85;
    margin-bottom: .75rem;
}

.slide-badge {
    display: inline-block;
    background: var(--gold);
    color: #fff;
    font-size: .7rem;
    padding: 2px 10px;
    border-radius: 20px;
    margin-bottom: .5rem;
}

.slide-btn {
    display: inline-block;
    background: var(--green);
    color: #fff;
    font-size: .8rem;
    padding: 5px 16px;
    border-radius: 20px;
    text-decoration: none;
    transition: background .2s;
}
.slide-btn:hover { background: var(--gold); color: #fff; }

.carousel-indicators [data-bs-target] {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none; /* این خط مهمه */
    background: var(--green);
    opacity: 1;
}

/* تبلت */
@media (max-width: 991px) {
    .main-slider, .carousel-item, .slide-bg { min-height: 400px; }
    .slide-caption h5 { font-size: 1rem; }
}

/* موبایل */
@media (max-width: 767px) {
    .main-slider, .carousel-item, .slide-bg { min-height: 260px; }
    .slide-caption {
        bottom: 1rem;
        right: 1rem;
        left: 1rem;
    }
    .slide-caption h5 { font-size: .9rem; }
    .slide-caption p { display: none; }
}

/* CATEGORY TABS */
.cat-section { background: #fff; padding: 14px 0; border-bottom: 1px solid #e8e8e8; }
.cat-btn {
    display: flex; align-items: center; justify-content: center; gap: 7px;
    border: 1.5px solid #ddd; border-radius: 8px;
    padding: 10px 8px; cursor: pointer;
    background: #fff; color: #333;
    font-family: 'Vazirmatn', sans-serif;
    font-size: .82rem; font-weight: 600;
    transition: all .2s; text-decoration: none;
    width: 100%;
}
.cat-btn:hover, .cat-btn.active {
    background: var(--green); color: #fff; border-color: var(--green);
}
.cat-btn i { font-size: 1rem; }

/* MINI LECTURE CARDS */
.mini-cards-section { background: #fff; padding: 10px 0; border-bottom: 1px solid #eee; }
.mini-card {
    border-radius: 7px; overflow: hidden;
    position: relative; height: 85px; cursor: pointer;
}
.mini-card-bg { width: 100%; height: 100%; }
.mini-card-overlay {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    color: var(--gold-light); font-size: .78rem; font-weight: 700;
    text-align: center; padding: 6px;
    background: rgba(0,0,0,.35);
}

/* FEATURED BANNERS */
.banners-section { background: #f0f0f0; padding: 12px 0; }
.feat-banner {
    border-radius: 8px; overflow: hidden;
    position: relative; height: 155px; cursor: pointer;
}
.feat-banner-bg { width: 100%; height: 100%; }
.feat-banner-overlay {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
}
.feat-banner-title {
    color: var(--gold-light); font-size: 1.4rem; font-weight: 800;
    border: 2px solid var(--gold); padding: 8px 22px;
    border-radius: 6px; background: rgba(0,0,0,.3);
    text-align: center;
}

/* LESSONS SECTION */
.lessons-section { background: #f0f0f0; padding: 16px 0; }
.section-badge {
    display: inline-block;
    background: var(--green); color: #fff;
    padding: 4px 18px; border-radius: 20px;
    font-size: .82rem; font-weight: 700;
    margin-bottom: 12px;
}
.lesson-card {
    background: #fff; border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,.08);
    transition: transform .2s, box-shadow .2s;height: 100%;
}
.lesson-card:hover { transform: translateY(-3px); box-shadow: 0 6px 18px rgba(0,0,0,.13); }
.book-cover {
    height: 140px;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    position: relative;
    border-bottom: 3px solid var(--gold);
}
.book-cover::before {
    content: ''; position: absolute; inset: 7px;
    border: 1px solid rgba(201,168,76,.4); border-radius: 4px;
}
.book-cover .book-main-title {
    color: var(--gold-light); font-size: 1.05rem; font-weight: 800;
    text-align: center; padding: 0 12px; position: relative; z-index: 1;
}
.book-cover .book-author {
    color: rgba(255,255,255,.7); font-size: .72rem;
    margin-top: 6px; position: relative; z-index: 1;
}
.book-cover-fiqh  { background: linear-gradient(160deg,#8b1a1a,#3d0a0a); }
.book-cover-usool { background: linear-gradient(160deg,#1a3a8b,#0a1a3d); }
.lesson-card .card-body { padding: 11px 12px; }
.lesson-card .card-title {
    font-size: .8rem; font-weight: 700; color: var(--dark);
    margin-bottom: 5px; line-height: 1.55;
}
.lesson-card .card-meta {
    font-size: .73rem; color: #666; margin-bottom: 3px;
}
.btn-dl {
    background: var(--green); color: #fff; border: none;
    border-radius: 5px; padding: 5px 0;
    font-size: .78rem; font-family: 'Vazirmatn', sans-serif;
    cursor: pointer; width: 100%; margin-top: 8px;
    transition: background .2s;
}
.btn-dl:hover { background: var(--green-dark); }

/* NEWS / ARTICLES / ETHICS COLUMNS */
.columns-section { background: #f0f0f0; padding: 0 0 16px; }
.col-box {
    background: #fff; border-radius: 8px; overflow: hidden;
    height: 100%;
}
.col-box-header {
    background: var(--green); color: #fff;
    padding: 8px 14px; font-size: .85rem; font-weight: 700;
}
.news-item {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 12px; border-bottom: 1px solid #f2f2f2;
    text-decoration: none; color: #333;transition: background .15s;
}
.news-item:last-of-type { border-bottom: none; }
.news-item:hover { background: #f9f9f9; }
.news-thumb {
    width: 68px; height: 52px; border-radius: 5px;
    flex-shrink: 0; object-fit: cover;
}
.news-text { font-size: .78rem; font-weight: 600; line-height: 1.55; }
.news-item:hover .news-text { color: var(--green); }
/* یکدست سازی دکمه‌های داخل کارت‌ها */
.btn-read, .btn-dl {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none !important; /* حذف خط زیر لینک */
    transition: all 0.3s ease;
    border: 1px solid transparent;
    cursor: pointer;
}

/* استایل دکمه مطالعه (سبز تیره) */
.btn-read {
    background-color: #0b7a69;
    color: #ffffff !important;
}

.btn-read:hover {
    background-color: #085d50;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(11, 122, 105, 0.2);
}

/* استایل دکمه دانلود (حاشیه دار) */
.btn-dl {
    background-color: #f8f9fa;
    color: #0b7a69 !important;
    border-color: #0b7a69;
}

.btn-dl:hover {
    background-color: #0b7a69;
    color: #ffffff !important;
    transform: translateY(-2px);
}

/* اصلاح دکمه نمایش بیشتر (پایین باکس‌ها در تصویر) */
.display-more-btn,
.show-more-link { /* نام کلاس را طبق کدی که دارید جایگزین کنید */
    display: block;
    width: 100%;
    text-align: center;
    padding: 10px;
    margin-top: 15px;
    border: 2px solid #0b7a69;
    border-radius: 25px;
    color: #0b7a69 !important;
    font-weight: bold;
    text-decoration: none !important;
    transition: all 0.3s ease;
}

.display-more-btn:hover {
    background-color: #0b7a69;
    color: #fff !important;
}

/* آیکون‌های داخل دکمه */
.btn-read i, .btn-dl i {
    margin-left: 6px;
    font-size: 14px;
}

/* GALLERY */
.gallery-section { background: #fff; padding: 14px 0; }
.gallery-header-bar {
    background: var(--green); color: #fff;
    padding: 6px 18px; border-radius: 20px;
    font-size: .85rem; font-weight: 700;
    display: inline-block; margin-bottom: 12px;
}
.gallery-scroll {
    display: flex; gap: 6px;
    overflow-x: auto; padding-bottom: 4px;
}
.gallery-scroll::-webkit-scrollbar { height: 4px; }
.gallery-scroll::-webkit-scrollbar-thumb { background: var(--green); border-radius: 2px; }
.gallery-thumb {
    width: 155px; height: 115px; flex-shrink: 0;
    border-radius: 7px; object-fit: cover;cursor: pointer; transition: opacity .2s;
}
.gallery-thumb:hover { opacity: .82; }

/* FOOTER */
footer { background: var(--green-dark); color: #fff; padding: 28px 0 0; }
footer h6 {
    font-size: .9rem; font-weight: 700;
    margin-bottom: 14px; padding-bottom: 8px;
    border-bottom: 1px solid rgba(255,255,255,.2);
}
footer ul { list-style: none; padding: 0; }
footer ul li { margin-bottom: 8px; }
footer ul li a {
    color: rgba(255,255,255,.8); text-decoration: none;
    font-size: .83rem; transition: color .2s;
}
footer ul li a:hover { color: var(--gold-light); }
footer .social-link {
    color: #fff; font-size: 1.6rem;
    margin-left: 10px; transition: color .2s;
    text-decoration: none;
}
footer .social-link:hover { color: var(--gold-light); }
.footer-bottom {
    background: rgba(0,0,0,.25);
    text-align: center; padding: 11px;
    font-size: .78rem; color: rgba(255,255,255,.65);
    margin-top: 22px;
}

/* RESPONSIVE */
@media (max-width: 991px) {
    .slide-bg { height: 260px; }
    .scholar-panel { min-height: 260px; }
}
@media (max-width: 767px) {
    .slide-bg { height: 210px; }
    .scholar-panel { min-height: 180px; flex-direction: row; padding: 12px; gap: 10px; }
    .scholar-panel .scholar-img { flex: none; width: 90px; height: 90px; border-radius: 50%; margin-top: 0; }
    .feat-banner { height: 110px; }
    .feat-banner-title { font-size: 1rem; padding: 6px 14px; }
    .gallery-thumb { width: 120px; height: 88px; }
}
@media (max-width: 575px) {
    .site-title { font-size: .82rem; }
    .main-nav .navbar-nav .nav-link { font-size: .82rem; padding: 10px 10px; }
}
/* ─── TOP BANNER ─────────────────────────────────────── */
.site-banner {
    width: 100%;
    background: var(--green-dark);
    overflow: hidden;
    position: relative;
}

/* banner با تصویر */
.site-banner img.banner-img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}

/* banner متنی (fallback / بدون تصویر) */
.site-banner .banner-text {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    gap: 16px;
}

.banner-logo {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;font-size: 2rem;
    color: #fff;
}

.banner-title-wrap { flex: 1; text-align: center; }

.banner-title-wrap h1 {
    color: var(--gold-light);
    font-size: clamp(1rem, 3vw, 1.6rem);
    font-weight: 700;
    margin: 0 0 4px;
    line-height: 1.4;
}

.banner-title-wrap p {
    color: rgba(255,255,255,.75);
    font-size: clamp(.72rem, 2vw, .9rem);
    margin: 0;
}

.banner-close {
    background: none;
    border: none;
    color: rgba(255,255,255,.5);
    font-size: 1.1rem;
    cursor: pointer;
    flex-shrink: 0;
    padding: 4px 8px;
    line-height: 1;
    transition: color .2s;
}
.banner-close:hover { color: #fff; }

/* ─── NAVBAR ─────────────────────────────────────────── */
.main-nav {
    background: var(--green-dark);
    border-top: 1px solid rgba(255,255,255,.08);
    position: sticky;
    top: 0;
    z-index: 1030;
    transition: box-shadow .3s;
}

.main-nav .navbar-brand {
    color: var(--gold-light) !important;
    font-weight: 700;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.main-nav .nav-link {
    color: rgba(255,255,255,.85) !important;
    font-size: .88rem;
    padding: 10px 14px !important;
    transition: color .2s;
}
.main-nav .nav-link:hover,
.main-nav .nav-link.active { color: var(--gold-light) !important; }

.main-nav .navbar-toggler {
    border-color: rgba(255,255,255,.3);
}
.main-nav .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255,255,255,.8)' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");}

/* search در navbar */
.nav-search {
    display: flex;
    align-items: center;
    background: rgba(255,255,255,.1);
    border-radius: 20px;
    padding: 4px 12px;
    gap: 6px;
}
.nav-search input {
    background: none;
    border: none;
    outline: none;
    color: #fff;
    font-family: 'Vazirmatn', sans-serif;
    font-size: .82rem;
    width: 130px;
}
.nav-search input::placeholder { color: rgba(255,255,255,.5); }
.nav-search i { color: rgba(255,255,255,.6); font-size: .85rem; }

/* ─── RESPONSIVE ─────────────────────────────────────── */
@media (max-width: 767px) {
    .site-banner img.banner-img { height: auto; }
    .banner-logo { width: 52px; height: 52px; font-size: 1.4rem; }
    .nav-search { display: none; }   /* مخفی در موبایل */
}

@media (max-width: 480px) {
    .site-banner img.banner-img { height: auto; }
    .banner-text { padding: 12px 14px; }
}
.scholar-panel{
    padding: 20px;
}
.nav-social {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 15px;
}

.nav-social a {
    color: inherit;
    font-size: 1.1rem;
    transition: color 0.2s;
}

.nav-social a:hover {
    color: var(--color-gold, #c9a84c);
}
/* Base */
.main-slider .slide-bg {
    min-height: 500px;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: flex-end;
}

.slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,.7) 0%, transparent 60%);
}

.slide-caption {
    position: relative;
    z-index: 2;
    padding: 2rem;
    color: #fff;
}

/* Tablet */
@media (max-width: 991px) {
    .main-slider .slide-bg {
        min-height: 350px;
    }
    .slide-caption h5 {
        font-size: 1rem;
    }
}

/* Mobile */
@media (max-width: 767px) {
    .main-slider .slide-bg {
        min-height: 220px;
    }
    .slide-caption {
        padding: 1rem;
    }
    .slide-caption h5 {
        font-size: .9rem;
    }
    .slide-caption p {
        display: none;
    }
    .carousel-control-prev,
    .carousel-control-next {
        width: 10%;
    }
}


/* Breadcrumb */
.breadcrumb-bar { background:#e8f5e9; border-bottom:1px solid #c8e6c9; padding:6px 0; font-size:12px; }
.breadcrumb-bar a { color:var(--teal-dark); text-decoration:none; }

/* Section header */
.sec-header { background:var(--teal); color:#fff; padding:9px 14px; font-size:14px; font-weight:600; border-radius:5px 5px 0 0; }

/* Content box */
.content-box { background:#fff; border:1px solid #ddd; border-top:none; border-radius:0 0 5px 5px; padding:14px; }

/* Lesson card */
.lesson-card { border:1px solid #e0e0e0; border-radius:5px; padding:10px 12px; margin-bottom:8px; display:flex; align-items:center; gap:12px; background:#fafafa; }
.lesson-card:hover { background:#f0faf9; }
.lesson-info { flex:1; }
.lesson-title { font-size:13px; font-weight:600; color:var(--teal-dark); margin-bottom:3px; }
.lesson-desc { font-size:11px; color:#666; }
.btn-show { background:var(--teal); color:#fff; border:none; border-radius:4px; padding:5px 14px; font-size:12px; font-family:inherit; cursor:pointer; white-space:nowrap; }
.btn-show:hover { background:var(--teal-dark); }
.btn-more {
    display: table;
    width: auto;
    min-width: 130px;
    margin: 20px;
    padding: 8px 24px;
    text-align: center;
    border: 2px solid #0b7a69;
    border-radius: 50px;
    color: #0b7a69 !important;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none !important;
    transition: all 0.3s ease;
    background-color: transparent;
}

.btn-more:hover,
.btn-more:focus {
    background-color: #0b7a69;
    color: #ffffff !important;
    text-decoration: none !important;
    box-shadow: 0 4px 12px rgba(11, 122, 105, 0.15);
}


/* Sidebar */
.sidebar-box { background:#fff; border:1px solid #ddd; border-radius:5px; margin-bottom:14px; overflow:hidden; }
.sidebar-title { background:var(--teal); color:#fff; padding:8px 12px; font-size:13px; font-weight:600; }
.sidebar-item { padding:7px 12px; border-bottom:1px solid #f0f0f0; font-size:12px; }
.sidebar-item:last-child { border-bottom:none; }
.sidebar-item a { color:var(--teal-dark); text-decoration:none; }
.sidebar-item a:hover { text-decoration:underline; }
.sidebar-item .date { color:#999; font-size:11px; float:left; }


/* COURSE TITLE BAR */
.course-title-bar {
    background: var(--green);
    color: #fff;
    padding: 10px 18px;
    border-radius: 6px 6px 0 0;
    font-size: 15px;
    font-weight: bold;
    margin-bottom: 0;
}

/* SESSION ROW */
.session-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-top: none;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: background .2s;
    direction: ltr;
}
.session-card:hover { background: #f9f9f9; }
.session-card .thumb { width: 64px; height: 64px; object-fit: cover; border-radius: 4px; flex-shrink: 0; }
.session-card .thumb-placeholder { width: 64px; height: 64px; background: #ddd; border-radius: 4px; flex-shrink: 0; }
.session-info { flex: 1; }
.session-info .title { font-weight: bold; font-size: 13.5px; color: #222; margin-bottom: 3px; }
.session-info .subtitle { color: #666; font-size: 12px; }
.session-meta { text-align: center; font-size: 12px; color: #555; min-width: 80px; }
.session-meta .day { font-weight: bold; color: #333; }
.btn-read { background: var(--green-light); color: #fff; border: none; border-radius: 4px; padding: 4px 12px; font-size: 12px; white-space: nowrap; }
.btn-read:hover { background: var(--green); color: #fff; }
.btn-dl { background: #fff; color: var(--green); border: 1px solid var(--green); border-radius: 4px; padding: 4px 12px; font-size: 12px; white-space: nowrap; }
.btn-dl:hover { background: var(--green); color: #fff; }
.btn-actions { display: flex; flex-direction: column; gap: 5px; flex-shrink: 0; }

/* LOAD MORE */
.load-more-wrap { background: #fff; border: 1px solid #e0e0e0; border-top: none; text-align: center; padding: 14px; }
.btn-load-more { background: none; border: none; color: var(--green); font-size: 13px; cursor: pointer; }

/* SIDEBAR */
.sidebar-box { background: #fff; border: 1px solid #e0e0e0; border-radius: 6px; margin-bottom: 18px; overflow: hidden; }
.sidebar-box .sidebar-title {
    background: var(--green);
    color: #fff;
    padding: 8px 14px;
    font-size: 13.5px;
    font-weight: bold;
}
.sidebar-box .sidebar-body { padding: 10px 14px; }
.sidebar-item { padding: 7px 0; border-bottom: 1px solid #f0f0f0; font-size: 13px; color: #333; }
.sidebar-item:last-child { border-bottom: none; }
.sidebar-item a { color: #333; text-decoration: none; }
.sidebar-item a:hover { color: var(--green); }
.sidebar-link-item a { color: var(--green-light); font-size: 13px; display: block; padding: 5px 0; text-decoration: none; }
.sidebar-link-item a:before { content: '• '; color: var(--gold); }

.bg-teal { background-color: #1a9e8f; }
.btn-teal { background-color: #1a9e8f; color: #fff; border: none; }
.btn-teal:hover { background-color: #157a6e; color: #fff; }
.btn-outline-teal { border-color: #1a9e8f; color: #1a9e8f; }
.btn-outline-teal:hover { background-color: #1a9e8f; color: #fff; }
.card-header.bg-teal { border-radius: 6px 6px 0 0; }
.post-card { transition: box-shadow .2s; }
.post-card:hover { box-shadow: 0 2px 12px rgba(26,158,143,.15); }
.post-title { font-size: .95rem; line-height: 1.6; }


/* Single Post */
.single-title {
    font-size: 1.4rem;
    font-weight: 700;
    border-bottom: 2px solid #1a7c5a;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.post-intro {
    background: #f9f9f9;
    border-right: 4px solid #1a7c5a;
    padding: 12px;
    border-radius: 6px;
}

.post-intro .post-excerpt {
    font-size: .95rem;
    line-height: 1.8;
    color: #444;
}

.post-gallery a img {
    transition: opacity .2s;
}
.post-gallery a:hover img {
    opacity: .9;
}

/* Comments */
.comments-title {
    font-size: 1.1rem;
    font-weight: 700;
    border-bottom: 2px solid #1a7c5a;
    padding-bottom: 8px;
    margin-bottom: 20px;
}

.comment-list {
    list-style: none;
    padding: 0;
}

.comment-list .comment {
    border: 1px solid #eee;
    border-radius: 6px;
    padding: 12px;
    margin-bottom: 12px;
}

/* Responsive */
@media (max-width: 767px) {
    .post-intro {
        flex-direction: column;
    }
    .post-intro .flex-shrink-0 img {
        width: 100% !important;
        height: 200px !important;
    }
}
.sidebar-box{
    padding: 20px;
}
.post-card{
    text-align: right;
    direction: rtl;
}
.social-link, .social-link-img {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    color: rgba(255,255,255,.75);
    font-size: 1.1rem;
    margin-left: 6px;
}
.social-link-img img {
    width: 20px;
    height: 20px;
    object-fit: contain;
    filter: brightness(0) invert(1);
    opacity: .75;
}

@media (max-width: 576px) {
    .book-cover {
        min-height: 140px;
        font-size: 0.85rem;
    }
    .book-main-title {
        font-size: 1rem;
    }
    .book-author {
        font-size: 0.7rem;
    }
    .card-title {
        font-size: 0.85rem;
    }.card-meta {
         font-size: 0.75rem;
     }
    .btn-dl {
        font-size: 0.75rem;
        padding: 4px 8px;
    }.lessons-section .row.g-4 {
         margin: 0 !important;
     }
}

.lesson-card {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.lesson-card .card-body {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.lesson-card .btn-dl {
    margin-top: auto;
}
.lesson-list-item {
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    padding: 10px 12px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fafafa;
}
.lesson-list-item:hover { background: #f0faf9; }


/* Container for the lessons list */
.content-box {
    background: #fff;
    border: 1px solid #eef0f2;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.02);
}

/* Individual Lesson Card */
.lesson-card {
    background: #f8f9fa;
    border: 1px solid #edf0f3;
    border-radius: 10px;
    padding: 15px 20px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.lesson-card:hover {
    background: #ffffff;
    border-color: #008080; /* رنگ سبز تیره یا تم اصلی سایت */
    box-shadow: 0 4px 12px rgba(0, 128, 128, 0.08);
    transform: translateY(-2px);
}

/* Titles and Descriptions */
.lesson-title {
    color: #333;
    font-size: 1.05rem;
    margin-bottom: 4px;
}

.lesson-desc {
    color: #6c757d;
    font-size: 0.85rem;
    line-height: 1.6;
}

/* The "Show" Button */
.btn-show {
    background-color: #008080;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 6px 18px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn-show:hover {
    background-color: #006666;
    color: #fff;
    box-shadow: 0 3px 8px rgba(0,0,0,0.15);
}

/* More Button styling */
.btn-more {
    border: 2px solid #008080;
    color: #008080;
    border-radius: 50px;
    padding: 8px 30px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-more:hover {
    background-color: #008080;
    color: #fff;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .lesson-card {
        text-align: center;
        flex-direction: column !important; /* Stack items on mobile */
        padding: 20px;
    }

    .btn-show {
        width: 100%;
        margin-top: 10px;
    }
}
.pagination-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    direction: rtl;
}

.pagination-wrapper .page-numbers {
    min-width: 38px;
    height: 38px;
    padding: 7px 13px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid #e5e7eb;
    color: #333;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.25s ease;
}

.pagination-wrapper .page-numbers:hover {
    border-color: #008080;
    color: #008080;
    background: #f8ffff;
}

.pagination-wrapper .page-numbers.current {
    background: #008080;
    border-color: #008080;
    color: #fff;
    box-shadow: 0 6px 14px rgba(0, 128, 128, 0.18);
}

.pagination-wrapper .prev,
.pagination-wrapper .next {
    padding-inline: 16px;
}

.pagination-wrapper i {
    font-size: 11px;
}

.navbar-toggler-white {
    border-color: rgba(255, 255, 255, 0.6);
}

.navbar-toggler-white:focus {
    box-shadow: 0 0 0 0.15rem rgba(255, 255, 255, 0.25);
}

.navbar-toggler-white .navbar-toggler-icon {
    filter: invert(1) grayscale(100%) brightness(200%);
}

.navbar {
    background-color: #0b7a69;
}

.navbar .navbar-nav .nav-link {
    color: #fff;
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link:focus {
    color: #fff;
}

.navbar-toggler {
    border-color: rgba(255, 255, 255, 0.6);
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.15rem rgba(255, 255, 255, 0.25);
}

.navbar-toggler .navbar-toggler-icon {
    filter: invert(1) brightness(200%);
}

@media (max-width: 991.98px) {
    .navbar .collapse.navbar-collapse {
        width: 100%;
        background: #0b7a69;
        margin-top: 10px;
        padding: 12px;
        border-radius: 10px;
    }

    .navbar .navbar-nav {
        width: 100%;
    }

    .navbar .nav-item {
        width: 100%;
    }

    .navbar .nav-link {
        display: block;
        width: 100%;
        padding: 10px 12px;
        text-align: right;
    }

    .navbar .dropdown-menu {
        position: static !important;
        float: none;
        width: 100%;
        margin-top: 6px;
        border: 0;
        border-radius: 8px;
    }
}

.main-nav {
    background-color: #0b7a69;
}

.main-nav .navbar-nav .nav-link {
    color: #fff;
}

.main-nav .navbar-nav .nav-link:hover,
.main-nav .navbar-nav .nav-link:focus {
    color: #fff;
}

.main-nav .navbar-toggler {
    border-color: rgba(255, 255, 255, 0.6);
}

.main-nav .navbar-toggler:focus {
    box-shadow: 0 0 0 0.15rem rgba(255, 255, 255, 0.25);
}

.main-nav .nav-social {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-right: 16px;
}

.main-nav .nav-social a {
    color: #fff;
    text-decoration: none;
}

.main-nav .nav-search {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-right: 16px;
    color: #fff;
}

.main-nav .nav-search input {
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: transparent;
    color: #fff;
    border-radius: 8px;
    padding: 6px 10px;
    outline: none;
}

.main-nav .nav-search input::placeholder {
    color: rgba(255, 255, 255, 0.8);
}

@media (max-width: 991.98px) {
    .main-nav .navbar-collapse {
        background-color: #0b7a69;
        margin-top: 12px;
        padding: 14px;
        border-radius: 12px;
    }

    .main-nav .navbar-nav {
        width: 100%;
    }

    .main-nav .navbar-nav .nav-item,
    .main-nav .navbar-nav .nav-link {
        width: 100%;
    }

    .main-nav .navbar-nav .nav-link {
        padding: 10px 0;
        text-align: right;
    }

    .main-nav .nav-social {
        margin-right: 0;
        margin-top: 12px;
        justify-content: flex-start;
    }

    .main-nav .nav-search {
        margin-right: 0;
        margin-top: 12px;
        width: 100%;
    }

    .main-nav .nav-search input {
        width: 100%;
    }

    .main-nav .dropdown-menu {
        position: static;
        float: none;
        width: 100%;
        margin-top: 8px;
    }
}

@media (max-width: 991.98px) {
    /* باز شدن منو به صورت آکاردئونی (به جای افتادن روی بقیه) */
    .navbar-collapse .dropdown-menu {
        position: static !important;
        float: none;
        width: 100%;
        margin: 0;
        padding: 0;
        background-color: rgba(255, 255, 255, 0.05); /* پس‌زمینه بسیار شفاف برای تفکیک */
        border: none;
        box-shadow: none;
    }

    /* استایل هر آیتم زیرمنو در موبایل */
    .navbar-collapse .dropdown-item {
        color: #fff !important; /* متن سفید برای خوانایی روی پس‌زمینه سبز */
        padding: 12px 25px !important; /* فاصله بیشتر از سمت راست */
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        white-space: normal; /* اجازه شکستن خط برای متن‌های طولانی */
        text-align: right;
    }

    /* حذف خط آخرین آیتم زیرمنو */
    .navbar-collapse .dropdown-item:last-child {
        border-bottom: none;
    }

    /* استایل وقتی روی زیرمنو می‌روند */
    .navbar-collapse .dropdown-item:hover,
    .navbar-collapse .dropdown-item:focus {
        background-color: rgba(255, 255, 255, 0.15);
    }

    /* فلش کنار منوهای بازشونده */
    .navbar-nav .dropdown-toggle::after {
        float: left; /* بردن فلش به سمت چپ در موبایل */
        margin-top: 10px;
    }

    /* فاصله دادن به کل آیتم‌های منو در موبایل */
    .navbar-nav .nav-item {
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
}

.btn-dl {
    text-decoration: none;
}

.btn-dl:hover,
.btn-dl:focus {
    text-decoration: none;
}