/* ==========================================================================
   BUDDHASUTRA.NET - THEME ADAPTATION FROM TRUYENPHATGIAO.COM (BOXKINHSACH)
   FULL-WIDTH ZING MP3 STYLE - 16:9 ZERO-CROPPING THUMBNAIL LAYERS
   ========================================================================== */

:root {
    --bs-primary: #d97706;
    --bs-primary-light: #f59e0b;
    --bs-primary-dark: #b45309;
    --bs-primary-soft: rgba(217, 119, 6, 0.1);
    --bs-primary-soft-hover: rgba(217, 119, 6, 0.18);
    --bs-purple: #9b4de0;
    --bs-purple-dark: #7016ff;
    --bs-pink: #c1377f;
    --bs-bg: #f4f6fc;
    --bs-card-bg: #ffffff;
    --bs-card-dark: #0f172a;
    --bs-text-main: #2c3e50;
    --bs-text-sub: #555555;
    --bs-text-muted: #888888;
    --bs-border: rgba(0, 0, 0, 0.05);
    --bs-border-hover: rgba(217, 119, 6, 0.25);
    --bs-radius-sm: 6px;
    --bs-radius-md: 12px;
    --bs-radius-lg: 16px;
    --bs-radius-pill: 9999px;
    --bs-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.02);
    --bs-shadow-md: 0 10px 30px rgba(0, 0, 0, 0.04);
    --bs-shadow-hover: 0 12px 24px rgba(0, 0, 0, 0.06);
    --bs-transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Global Reset & Base Typography */
body#body_tipitaka {
    background-color: var(--bs-bg) !important;
    font-family: 'Philosopher', 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif !important;
    color: var(--bs-text-main) !important;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* Full Width Fluid Container (Tràn Viền Full Chiều Rộng như Zing MP3 & Truyenphatgiao) */
.container,
.container-fluid,
.col-main-full,
#tipitaka-slide.col-main-full,
.container-zing {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: clamp(16px, 4vw, 48px) !important;
    padding-right: clamp(16px, 4vw, 48px) !important;
    box-sizing: border-box !important;
}

.container-fluid.container-zing {
    background: var(--bs-bg) !important;
    padding-top: 24px !important;
    padding-bottom: 40px !important;
}

.col-tipitaka-main-full,
.col-main-3 {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
    float: none !important;
}

#wrap {
    width: 100%;
    overflow-x: hidden;
}

/* Modern Sticky Header */
.navbar.navbar-default#nav {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border: none !important;
    border-bottom: 1px solid var(--bs-border) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03) !important;
    position: sticky !important;
    top: 0;
    z-index: 1050;
    padding: 8px 0;
    margin-bottom: 20px !important;
    transition: var(--bs-transition);
}

.navbar-header {
    display: flex;
    align-items: center;
    float: left;
}

img.head-logo {
    height: 48px;
    width: auto;
    object-fit: contain;
    transition: transform 0.25s ease;
}

img.head-logo:hover {
    transform: scale(1.03);
}

a.header-logo, h1 a.header-logo {
    font-family: 'Philosopher', serif;
    font-size: 26px;
    font-weight: 700;
    color: var(--bs-primary-dark) !important;
    text-decoration: none !important;
    letter-spacing: -0.5px;
    display: inline-flex;
    align-items: center;
}

/* Modern Search Box */
.navbar-form.navbar-right {
    margin: 6px 0;
    padding: 0;
    border: none;
    box-shadow: none;
    display: flex;
    align-items: center;
}

.navbar-form .input-group {
    display: flex;
    align-items: center;
    position: relative;
    background: #f1f2f6;
    border-radius: var(--bs-radius-pill);
    border: 1.5px solid transparent;
    transition: var(--bs-transition);
    overflow: hidden;
    width: 320px;
}

.navbar-form .input-group:focus-within {
    background: #ffffff;
    border-color: var(--bs-primary-light);
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.15);
    width: 400px;
}

.navbar-form input.form-control {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 10px 20px !important;
    font-size: 14px;
    color: var(--bs-text-main) !important;
    height: 42px;
    width: 100% !important;
}

.navbar-form input.form-control::placeholder {
    color: var(--bs-text-muted);
}

.navbar-form .input-group-btn {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    width: auto;
}

.navbar-form .input-group-btn .btn {
    background: transparent !important;
    border: none !important;
    color: var(--bs-text-sub);
    padding: 6px 12px;
    border-radius: var(--bs-radius-pill);
    transition: var(--bs-transition);
}

.navbar-form .input-group-btn .btn:hover {
    color: var(--bs-primary);
    transform: scale(1.1);
}

/* ==========================================================================
   HOMEPAGE, CATEGORY & ARCHIVE THUMBNAILS (16:9 ZERO CROPPING)
   ========================================================================== */

.list.list-thumbnail.col-xs-12,
.list.list-thumbnail {
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
    padding: 0 !important;
    margin-bottom: 28px !important;
    width: 100% !important;
}

.list.list-thumbnail > .row,
.list-thumbnail > .row {
    background: transparent !important;
    display: flex !important;
    flex-wrap: wrap !important;
    margin: 0 -8px !important;
    padding: 0 !important;
    width: auto !important;
}

.col-main-1-tipitaka-full,
.col-main-1-moi-cap-nhat,
.home-tipitakadecu,
.list-thumbnail #tt,
#tt {
    padding: 8px !important;
    box-sizing: border-box !important;
    width: 20% !important;
    flex: 0 0 20% !important;
    max-width: 20% !important;
    float: none !important;
    display: inline-block !important;
    vertical-align: top !important;
}

.col-tipitaka-main .home-tipitakadecu {
    width: 25% !important;
    flex: 0 0 25% !important;
    max-width: 25% !important;
}

@media (min-width: 1680px) {
    .col-main-1-tipitaka-full,
    .col-main-1-moi-cap-nhat,
    .list-thumbnail #tt,
    #tt {
        width: 16.666667% !important;
        flex: 0 0 16.666667% !important;
        max-width: 16.666667% !important;
    }
}

@media (max-width: 1200px) {
    .col-main-1-tipitaka-full,
    .col-main-1-moi-cap-nhat,
    .home-tipitakadecu,
    .list-thumbnail #tt,
    #tt {
        width: 25% !important;
        flex: 0 0 25% !important;
        max-width: 25% !important;
    }
}

@media (max-width: 992px) {
    .col-main-1-tipitaka-full,
    .col-main-1-moi-cap-nhat,
    .home-tipitakadecu,
    .list-thumbnail #tt,
    #tt {
        width: 33.333333% !important;
        flex: 0 0 33.333333% !important;
        max-width: 33.333333% !important;
    }
}

@media (max-width: 640px) {
    .col-main-1-tipitaka-full,
    .col-main-1-moi-cap-nhat,
    .home-tipitakadecu,
    .list-thumbnail #tt,
    #tt {
        width: 50% !important;
        flex: 0 0 50% !important;
        max-width: 50% !important;
        padding: 5px !important;
    }
}

/* Beautiful card containers with uniform height (Truyenphatgiao Card Style) */
.each_tipitaka,
.each_kinhsach {
    display: flex !important;
    flex-direction: column !important;
    background: #ffffff !important;
    border-radius: 12px !important;
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
    padding: 10px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02) !important;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
    height: 220px !important;
    position: relative !important;
    margin-bottom: 16px !important;
}

.each_tipitaka:hover,
.each_kinhsach:hover,
.list-thumbnail #tt a:hover .each_tipitaka,
.home-tipitakadecu a:hover .each_tipitaka {
    transform: translateY(-4px) !important;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.06) !important;
    border-color: rgba(217, 119, 6, 0.25) !important;
}

.list-thumbnail #tt a,
.home-tipitakadecu a {
    text-decoration: none !important;
    display: block;
    height: 100%;
}

@media (max-width: 767px) {
    .each_tipitaka,
    .each_kinhsach {
        height: 190px !important;
    }
}

/* 16:9 Image frames with no cropping and beautiful rounded corners */
.list-thumbnail img,
.each_tipitaka img,
.home-tipitakadecu img,
.samechuyenmuc li img,
#tt img,
.image_lesson {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 16 / 9 !important;
    object-fit: contain !important; /* TOÀN BỘ ẢNH VÀ CHỮ TRÊN BÌA HIỂN THỊ TRỌN VẸN 100% */
    background-color: #0f172a !important;
    border-radius: 8px !important;
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
    display: block !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
}

.list-thumbnail img:hover,
.each_tipitaka img:hover,
.list-thumbnail a:hover .each_tipitaka img {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

/* Caption and typography styling */
.each_tipitaka .caption,
.each_kinhsach .caption {
    padding: 8px 0 0 0 !important;
    text-align: left !important;
    display: flex !important;
    flex-direction: column !important;
    flex-grow: 1 !important;
    justify-content: space-between !important;
    background: transparent !important;
}

.each_tipitaka .caption > h3,
.each_kinhsach .caption > h3 {
    white-space: normal !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    font-size: 14px !important;
    line-height: 1.4 !important;
    height: 40px !important;
    margin: 4px 0 6px 0 !important;
    color: #2c3e50 !important;
    font-weight: 700 !important;
    transition: color 0.2s ease;
}

.list-thumbnail #tt a:hover .each_tipitaka .caption > h3,
.home-tipitakadecu a:hover .each_tipitaka .caption > h3 {
    color: var(--bs-primary) !important;
}

/* Sub-title / chapter badge */
.each_tipitaka .caption > small.label-primary,
.each_kinhsach .caption > small.label-primary {
    align-self: flex-start !important;
    background-color: #f0f3f8 !important;
    color: #718096 !important;
    border-radius: 4px !important;
    padding: 3px 8px !important;
    font-size: 11.5px !important;
    font-weight: 600 !important;
    border: 1px solid rgba(0, 0, 0, 0.03) !important;
    white-space: normal !important;
    line-height: 1.3 !important;
    max-width: 100% !important;
}

.full_label {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 3;
    max-height: 28px;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,0.35));
}

.prefix {
    display: inline-block;
    background: linear-gradient(135deg, var(--bs-primary-light), var(--bs-primary-dark));
    color: #fff;
    font-size: 11.5px;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 6px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

/* ==========================================================================
   ZING MP3 LAYOUT (TRUYENPHATGIAO.COM ADAPTATION - SINGLE & READING PAGES)
   ========================================================================== */

/* Left Sidebar Column */
.col-zing-sidebar {
    margin-bottom: 30px;
}

.zing-sticky-card {
    position: -webkit-sticky;
    position: sticky;
    top: 24px;
    background: #ffffff;
    border-radius: 16px;
    padding: 28px 22px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    text-align: center;
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
}

.zing-sticky-card:hover {
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.07);
}

/* 16:9 Zero-Cropping Book Cover (Khung 255px x 200px bo viền đẹp) */
.zing-cover-wrapper {
    width: 255px !important;
    max-width: 100% !important;
    height: auto !important;
    aspect-ratio: 16 / 9 !important;
    margin: 0 auto 20px auto !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    background: #0f172a !important;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12) !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.zing-cover-wrapper:hover {
    transform: scale(1.03);
}

.zing-cover-wrapper img.zing-cover,
img.zing-cover {
    width: 100% !important;
    height: 100% !important;
    aspect-ratio: 16 / 9 !important;
    object-fit: contain !important; /* Toàn bộ bìa và chữ trên ảnh hiển thị 100% nguyên vẹn */
    background: #0f172a !important;
    display: block !important;
    border-radius: 12px !important;
}

.zing-title {
    font-size: 20px;
    font-weight: 800;
    margin: 0 0 12px 0;
    color: #2c3e50;
    line-height: 1.4;
    font-family: 'Philosopher', sans-serif;
}

.zing-title a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.2s;
}

.zing-title a:hover {
    color: var(--bs-primary);
}

.zing-author {
    font-size: 14px;
    margin-bottom: 18px;
    color: #7f8c8d;
}

.zing-author a {
    color: var(--bs-primary);
    font-weight: 700;
    text-decoration: none;
    transition: color 0.2s;
}

.zing-author a:hover {
    text-decoration: underline;
}

.zing-meta-list {
    text-align: left;
    background: #f8fafc;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 22px;
    font-size: 13.5px;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.zing-meta-item {
    margin-bottom: 10px;
    color: #555;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.zing-meta-item:last-child {
    margin-bottom: 0;
}

.zing-meta-item span {
    color: #888;
    font-weight: 500;
}

.zing-meta-item strong, .zing-meta-item .text-primary {
    font-weight: 700;
    color: #333;
}

/* Zing MP3 Play / Read Button */
.btn-zing-play {
    background: linear-gradient(135deg, var(--bs-primary-light) 0%, var(--bs-primary-dark) 100%) !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 28px !important;
    padding: 13px 24px !important;
    font-weight: 800 !important;
    font-size: 13px !important;
    display: inline-block;
    width: 100%;
    letter-spacing: 0.5px;
    box-shadow: 0 6px 18px rgba(217, 119, 6, 0.28) !important;
    transition: all 0.3s ease !important;
    text-decoration: none !important;
}

.btn-zing-play:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(217, 119, 6, 0.4) !important;
    filter: brightness(1.05);
}

.zing-sidebar-widgets {
    margin-top: 24px;
}

/* Right Main Column */
.col-zing-main {
    margin-bottom: 30px;
}

.zing-description-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 28px 32px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.04);
    margin-bottom: 24px;
}

.zing-section-title {
    font-size: 18px;
    font-weight: 800;
    color: #2c3e50;
    margin: 0 0 16px 0;
    border-left: 4px solid var(--bs-primary);
    padding-left: 12px;
    font-family: 'Philosopher', sans-serif;
}

.zing-description-content {
    font-size: 15.5px;
    color: #475569;
    line-height: 1.85;
    text-align: justify !important;
    text-justify: inter-word !important;
}

/* Playlist / Chapters Container (Zing MP3 Style) */
.zing-playlist-container {
    background: #ffffff;
    border-radius: 16px;
    padding: 28px 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.04);
    margin-bottom: 24px;
}

.zing-playlist-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #f1f2f6;
    padding-bottom: 18px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.playlist-title h2 {
    font-size: 20px;
    font-weight: 800;
    margin: 0 0 4px 0;
    color: #2c3e50;
    font-family: 'Philosopher', sans-serif;
}

.playlist-subtitle {
    font-size: 13px;
    color: #95a5a6;
}

.playlist-search {
    position: relative;
    display: flex;
    align-items: center;
    background: #f1f2f6;
    border-radius: 20px;
    padding: 8px 16px;
    width: 280px;
    border: 1px solid transparent;
    transition: all 0.3s ease;
}

.playlist-search:focus-within {
    background: #ffffff;
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.15);
}

.playlist-search .glyphicon {
    color: #7f8c8d;
    margin-right: 10px;
    font-size: 12px;
}

.playlist-search input {
    border: none;
    background: transparent;
    outline: none;
    width: 100%;
    font-size: 13.5px;
    color: #333;
}

/* Chapters List Grid */
.zing-chapters-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.zing-chapter-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 13px 18px;
    background: #ffffff;
    border: 1px solid transparent;
    border-radius: 10px;
    transition: all 0.25s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.zing-chapter-item:hover {
    background: #f8fafc;
    border-color: rgba(217, 119, 6, 0.15);
    transform: translateX(6px);
}

.zing-chapter-left {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 1;
}

.zing-chapter-number {
    font-size: 13px;
    font-weight: 700;
    color: #bdc3c7;
    width: 24px;
    font-family: monospace;
}

.zing-chapter-item:hover .zing-chapter-number {
    color: var(--bs-primary);
}

.zing-file-icon {
    color: #bdc3c7;
    font-size: 14px;
    transition: color 0.2s;
}

.zing-chapter-item:hover .zing-file-icon {
    color: var(--bs-primary-light);
}

.zing-chapter-title-link {
    font-size: 15px;
    color: #2c3e50;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s;
    outline: none;
}

.zing-chapter-title-link:hover {
    color: var(--bs-primary);
    text-decoration: none;
}

.btn-zing-action {
    font-size: 11px;
    font-weight: 700;
    color: var(--bs-primary);
    border: 1.5px solid var(--bs-primary);
    padding: 5px 16px;
    border-radius: 20px;
    text-decoration: none !important;
    letter-spacing: 0.5px;
    opacity: 0;
    transform: scale(0.95);
    transition: all 0.2s ease;
}

.zing-chapter-item:hover .btn-zing-action {
    opacity: 1;
    transform: scale(1);
}

.btn-zing-action:hover {
    background: var(--bs-primary);
    color: #ffffff !important;
    box-shadow: 0 4px 10px rgba(217, 119, 6, 0.25);
}

/* Active Chapter Highlight */
.zing-chapter-item.active-chapter {
    background: #fef3c7 !important;
    border-left: 4px solid var(--bs-primary) !important;
}

.zing-chapter-item.active-chapter .zing-chapter-title-link {
    color: var(--bs-primary-dark) !important;
    font-weight: 700 !important;
}

.zing-chapter-item.active-chapter .zing-file-icon {
    color: var(--bs-primary) !important;
}

/* ==========================================================================
   CHAPTER READER INTERFACE (SINGLE CHAP) & JUSTIFIED TYPOGRAPHY
   ========================================================================== */

.chapter-content,
#chapter-content-body,
.content_lesson,
.tipitaka_no_chap,
.kinhsach_khong_chuong {
    font-family: 'Philosopher', 'Plus Jakarta Sans', -apple-system, sans-serif;
    font-size: clamp(17.5px, 1.3vw, 20.5px) !important;
    line-height: 2 !important;
    color: #1e293b !important;
    letter-spacing: 0.01em;
    padding: 24px 0;
    max-width: 100%;
    word-wrap: break-word;
    text-align: justify !important;
    text-justify: inter-word !important;
    -webkit-hyphens: auto;
    -moz-hyphens: auto;
    -ms-hyphens: auto;
    hyphens: auto;
}

.chapter-content p,
#chapter-content-body p,
.content_lesson p,
.tipitaka_no_chap p,
.kinhsach_khong_chuong p {
    text-align: justify !important;
    text-justify: inter-word !important;
    margin-bottom: 22px !important;
    line-height: 2 !important;
    -webkit-hyphens: auto;
    -moz-hyphens: auto;
    -ms-hyphens: auto;
    hyphens: auto;
}

.chapter-content h1,
.chapter-content h2,
.chapter-content h3,
.chapter-content h4,
.chapter-content h5,
.chapter-content h6,
#chapter-content-body h1,
#chapter-content-body h2,
#chapter-content-body h3,
#chapter-content-body h4 {
    text-align: center !important;
    margin: 28px 0 16px 0 !important;
    color: #2c3e50 !important;
    font-weight: 800 !important;
}

/* Table of Contents Box */
#toc_container {
    text-align: left !important;
    margin: 20px auto 32px auto !important;
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 12px !important;
    padding: 18px 26px !important;
    max-width: 600px !important;
}

#toc_container p.toc_title {
    text-align: center !important;
    font-weight: 800 !important;
    font-size: 16px !important;
    color: #2c3e50 !important;
    margin-bottom: 12px !important;
}

#toc_container ul.toc_list,
#toc_container ul.toc_list li {
    text-align: left !important;
}

.chapter-btn-group,
.theme-btn-group {
    display: inline-flex !important;
    align-items: center !important;
    gap: 10px !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
}

.chapter-btn-group .btn,
.theme-btn-group .btn,
#prev_chap,
#next_chap,
#chapter_jump {
    border-radius: var(--bs-radius-pill) !important;
    font-weight: 700 !important;
    font-size: 13.5px !important;
    padding: 9px 22px !important;
    border: 1.5px solid transparent !important;
    transition: var(--bs-transition) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    box-sizing: border-box;
}

.btn-success,
#prev_chap:not(.disabled),
#next_chap:not(.disabled) {
    background: linear-gradient(135deg, var(--bs-primary-light), var(--bs-primary-dark)) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(217, 119, 6, 0.28) !important;
    border: none !important;
}

.btn-success:hover,
#prev_chap:not(.disabled):hover,
#next_chap:not(.disabled):hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(217, 119, 6, 0.4) !important;
}

.btn-default,
#chapter_jump {
    background: #f1f5f9 !important;
    color: var(--bs-text-main) !important;
    border-color: var(--bs-border) !important;
}

.btn-default:hover,
#chapter_jump:hover {
    background: #e2e8f0 !important;
    transform: translateY(-2px);
}

.btn.disabled,
#prev_chap.disabled,
#next_chap.disabled {
    opacity: 0.45 !important;
    cursor: not-allowed !important;
    transform: none !important;
    box-shadow: none !important;
    background: #e2e8f0 !important;
    color: var(--bs-text-muted) !important;
}

.chap_options {
    border-radius: var(--bs-radius-pill) !important;
    background: #f1f5f9 !important;
    color: var(--bs-text-main) !important;
    border: 1px solid var(--bs-border) !important;
    padding: 8px 18px !important;
    margin: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
}

.chap_options .dropdown a {
    color: var(--bs-text-main) !important;
    font-size: 15px;
    text-decoration: none !important;
}

.chap_options .dropdown-menu.settings {
    border-radius: 18px !important;
    padding: 24px !important;
    border: 1px solid var(--bs-border) !important;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.14) !important;
    background: #ffffff !important;
    min-width: 320px;
}

#chapter_error {
    border-radius: var(--bs-radius-pill) !important;
    background: rgba(239, 68, 68, 0.08) !important;
    color: #dc2626 !important;
    border: 1px solid rgba(239, 68, 68, 0.2) !important;
    font-weight: 700 !important;
    padding: 8px 20px !important;
    font-size: 13px !important;
    transition: var(--bs-transition);
}

#chapter_error:hover {
    background: #dc2626 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(220, 38, 38, 0.3) !important;
    transform: translateY(-1px);
}

.box-notice {
    border-radius: var(--bs-radius-pill) !important;
    background: rgba(217, 119, 6, 0.08) !important;
    color: var(--bs-primary-dark) !important;
    border: 1px solid rgba(217, 119, 6, 0.2) !important;
    padding: 10px 26px !important;
    font-size: 13.5px !important;
    font-weight: 600 !important;
    display: inline-block;
    margin-top: 14px !important;
}

/* ==========================================================================
   SECTION HEADERS, SIDEBARS & FOOTER
   ========================================================================== */

h2.h2-custom-col {
    font-family: 'Philosopher', sans-serif !important;
    font-size: 21px !important;
    font-weight: 800 !important;
    color: var(--bs-text-main) !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: transparent !important;
    border: none !important;
    padding: 16px 0 12px !important;
    margin: 0 0 16px 0 !important;
    display: flex !important;
    align-items: center;
    position: relative;
}

h2.h2-custom-col::before {
    content: '';
    display: inline-block;
    width: 5px;
    height: 22px;
    background: linear-gradient(180deg, var(--bs-primary-light), var(--bs-primary-dark));
    border-radius: 4px;
    margin-right: 12px;
}

.list > .row > div.more,
.list.custom-col > .row > div.more,
.more {
    position: absolute !important;
    right: 12px !important;
    top: 14px !important;
    padding: 0 !important;
    border: none !important;
    background: transparent !important;
    z-index: 5;
}

.list > .row > div.more a,
.more a {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 6px 18px !important;
    border-radius: var(--bs-radius-pill) !important;
    background: var(--bs-primary-soft) !important;
    color: var(--bs-primary) !important;
    font-size: 12.5px !important;
    font-weight: 700 !important;
    text-transform: none !important;
    text-decoration: none !important;
    transition: var(--bs-transition) !important;
}

.list > .row > div.more a:hover,
.more a:hover {
    background: var(--bs-primary) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(217, 119, 6, 0.35) !important;
    transform: translateY(-1px);
}

.custom-col,
.col-tipitaka-side .list.list-tipitaka,
.list-kinhsach {
    background: var(--bs-card-bg) !important;
    border-radius: var(--bs-radius-lg) !important;
    padding: 20px 24px !important;
    border: 1px solid var(--bs-border) !important;
    box-shadow: var(--bs-shadow-md) !important;
    margin-bottom: 24px !important;
    position: relative;
}

.col-tren {
    background: transparent !important;
    display: flex;
    margin: 0 -10px !important;
    padding: 0 !important;
    gap: 18px;
}

.in-col-tren {
    width: 50%;
    background: transparent !important;
    padding: 0 !important;
}

ul.tipitakahot_ul_customcol,
ul.kinhsachhot_ul_customcol,
.col-tipitaka-side .list.list-tipitaka .textwidget {
    background: transparent !important;
    list-style: none;
    padding: 0;
    margin: 0;
}

ul.tipitakahot_ul_customcol li.tipitakahot_li_customcol,
ul.kinhsachhot_ul_customcol li.kinhsachhot_li_customcol {
    padding: 12px 8px;
    border-bottom: 1px solid rgba(226, 232, 240, 0.6);
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: background-color 0.2s ease;
    border-radius: var(--bs-radius-sm);
}

ul.tipitakahot_ul_customcol li.tipitakahot_li_customcol:hover,
ul.kinhsachhot_ul_customcol li.kinhsachhot_li_customcol:hover {
    background-color: #f8fafc;
}

ul.tipitakahot_ul_customcol li.tipitakahot_li_customcol a,
ul.kinhsachhot_ul_customcol li.kinhsachhot_li_customcol a {
    font-weight: 600;
    color: var(--bs-text-main);
    text-decoration: none;
}

ul.tipitakahot_ul_customcol li.tipitakahot_li_customcol a:hover,
ul.kinhsachhot_ul_customcol li.kinhsachhot_li_customcol a:hover {
    color: var(--bs-primary);
}

.col-duoi {
    display: flex;
    margin: 0 -10px;
    gap: 18px;
    clear: both;
}

.in-col-duoi {
    width: 33.3333%;
    padding: 0 !important;
    float: none !important;
}

.breadcrumb {
    background: transparent !important;
    padding: 12px 0 !important;
    margin-bottom: 18px !important;
    font-size: 14px;
}

.breadcrumb > li + li:before {
    color: var(--bs-text-muted) !important;
    content: "›" !important;
    padding: 0 8px !important;
}

.breadcrumb a {
    color: var(--bs-text-sub);
    text-decoration: none;
}

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

.breadcrumb > .active {
    color: var(--bs-text-main);
    font-weight: 600;
}

div.footer {
    background: #0f172a !important;
    color: #94a3b8 !important;
    padding: 56px 0 40px !important;
    margin-top: 56px !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
}

div.footer a {
    color: #cbd5e1 !important;
    text-decoration: none !important;
    transition: var(--bs-transition);
    display: inline-block;
    padding: 3px 6px;
    border-radius: 4px;
}

div.footer a:hover {
    color: var(--bs-primary-light) !important;
    background: rgba(255, 255, 255, 0.06);
    text-decoration: none !important;
}

.foot-gioithieu {
    font-size: 14.5px;
    line-height: 1.7;
    color: #94a3b8;
}

/* Custom Scrollbars */
.zing-playlist-body::-webkit-scrollbar,
.zing-description-content::-webkit-scrollbar {
    width: 6px;
}
.zing-playlist-body::-webkit-scrollbar-track,
.zing-description-content::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 10px;
}
.zing-playlist-body::-webkit-scrollbar-thumb,
.zing-description-content::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}
.zing-playlist-body::-webkit-scrollbar-thumb:hover,
.zing-description-content::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Responsive Adjustments */
@media (max-width: 991px) {
    .container-fluid.container-zing {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }
    .zing-sticky-card {
        position: static !important;
        margin-bottom: 24px;
    }
    .playlist-search {
        width: 100%;
    }
    .btn-zing-action {
        opacity: 1 !important;
        transform: scale(1) !important;
    }
    .col-tren, .col-duoi {
        flex-direction: column;
        gap: 0;
    }
    .in-col-tren, .in-col-duoi {
        width: 100%;
    }
    .navbar-form .input-group {
        width: 100%;
    }
    .navbar-form .input-group:focus-within {
        width: 100%;
    }
}

@media (max-width: 480px) {
    h2.h2-custom-col {
        font-size: 17.5px !important;
    }
    .container, .container-fluid {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }
    .chapter-btn-group .btn, .theme-btn-group .btn {
        padding: 7px 14px !important;
        font-size: 12px !important;
    }
}