/* ==========================================================================
   1. SẮM LỄ VẬT & TABS LỄ NGHI
   ========================================================================== */

.samle-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    border-bottom: 1px solid #c8e6c9;
    padding-bottom: 8px;
    margin-bottom: 12px;
}

.samle-tab-btn {
    padding: 6px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid #a5d6a7;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    background: #e8f5e9;
    color: #1b5e20;
}

.samle-tab-btn.active {
    background: #1b5e20 !important;
    color: #ffffff !important;
    border-color: #1b5e20 !important;
    box-shadow: 0 2px 6px #a5d6a7;
}

.samle-tab-btn:hover {
    background: #c8e6c9;
}

.samle-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 10px 12px;
    margin-bottom: 8px;
    box-shadow: 0 2px 8px #f1f5f9;
}

.samle-card-title {
    font-weight: 700;
    color: #1b5e20;
    margin-bottom: 4px;
    font-size: 13.5px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.samle-badge-kieng {
    background: #fff3e0;
    color: #e65100;
    padding: 2px 6px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    display: inline-block;
    margin-right: 4px;
}

.ban-accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 8px 12px;
    margin-bottom: 6px;
    cursor: pointer;
    user-select: none;
    transition: all 0.2s;
}

.ban-accordion-header:hover {
    background: #e8f5e9;
}

.ban-accordion-title {
    font-size: 13px;
    font-weight: 700;
    color: #1e293b;
}

.ban-accordion-content {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-top: none;
    border-radius: 0 0 10px 10px;
    padding: 10px 12px;
    margin-top: -6px;
    margin-bottom: 8px;
    font-size: 13px;
    color: #334155;
    line-height: 1.5;
}

/* ==========================================================================
   2. LỄ VẬT CHI TIẾT & BỘ LỌC TÌM KIẾM
   ========================================================================== */

/* Style for offering chips */
.samle-chip {
    display: inline-flex;
    align-items: center;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 20px;
    padding: 5px 12px;
    font-size: 12px;
    color: #334155;
    cursor: pointer;
    user-select: none;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px #e2e8f0;
}

.samle-chip:hover {
    border-color: #f97316;
    background: #fff7ed;
}

.samle-chip input[type="checkbox"] {
    display: none;
}

.samle-chip.active {
    background: #ffedd5;
    border-color: #f97316;
    color: #c2410c;
    font-weight: 700;
    box-shadow: 0 2px 5px #fed7aa;
}

/* Font size override for titles in spiritual card */
.glass-spiritual-card h2,
.glass-spiritual-card h3,
.glass-spiritual-card h4,
.glass-spiritual-card h5,
.glass-schedule-title {
    font-size: 14px !important;
}

/* Background with blur effect similar to iPhone */
body {
    min-height: 100vh;
    margin: 0;
    padding: 0;
}

/* Fixed background image for both desktop and mobile */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -2;
    pointer-events: none;
}

/* Remove dark overlay and blur effect */
body::after {
    display: none !important;
}

/* Loại bỏ lớp bóng đen mờ ở viền bên trái do menu panel ẩn tạo ra */
#menu-panel-mobile.-translate-x-full {
    box-shadow: none !important;
    visibility: hidden !important;
}


/* Glass Schedule Styles */
.glass-schedule-container {
    max-width: 100%;
    margin: 10px auto;
    padding: 0 2px;
    margin-left: 10px;
    margin-right: 10px;
}

.glass-schedule-card {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 20px #cbd5e1;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.glass-schedule-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px #94a3b8;
}

.glass-schedule-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 6px;
    border-bottom: 1px solid #e2e8f0;
}

.glass-schedule-icon {
    font-size: 22px;
}

.glass-schedule-title {
    font-size: 17px;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
    letter-spacing: 0.3px;
}

.glass-schedule-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

@media (max-width: 768px) {
    .glass-schedule-grid {
        grid-template-columns: 1fr;
    }
}

.glass-schedule-subcard {
    background: #f8fafc;
    border-radius: 14px;
    padding: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 6px #f1f5f9;
}

.glass-subcard-title {
    font-size: 15px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.glass-subcard-content {
    max-height: 200px;
    overflow-y: auto;
}

.schedule-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.schedule-list li {
    font-size: 14px;
    color: #334155;
    padding: 6px 0;
    border-bottom: 1px dashed #cbd5e1;
    display: flex;
    align-items: center;
    gap: 6px;
}

.schedule-list li:last-child {
    border-bottom: none;
}

.schedule-list .bullet {
    font-size: 12px;
}

.schedule-empty {
    font-size: 13px;
    color: #64748b;
    font-style: italic;
    margin: 0;
    padding: 4px 0;
}

.schedule-badge {
    background: #e8f5e9;
    color: #166534;
    font-size: 12px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 12px;
    border: 1px solid #a5d6a7;
}

.schedule-date-group-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.schedule-date-group {
    background: #ffffff;
    border-radius: 10px;
    padding: 6px 8px;
    border: 1px solid #e2e8f0;
}

.schedule-date-header {
    font-size: 13px;
    color: #1e293b;
    font-weight: 600;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.temple-search-box {
    margin-bottom: 8px;
}

.temple-search-input {
    width: 100%;
    padding: 6px 12px;
    font-size: 13px;
    border-radius: 20px;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    outline: none;
    transition: all 0.3s ease;
    box-sizing: border-box;
    color: #0f172a;
}

.temple-search-input:focus {
    background: #ffffff;
    border-color: #2563eb;
    box-shadow: 0 0 8px #93c5fd;
}

.schedule-item-link {
    color: #1e293b;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.schedule-item-link:hover {
    color: #2563eb;
    transform: translateX(3px);
}

/* Enhanced Glass Calendar Container */
.glass-calendar-container {
    max-width: 100%;
    margin: 4px auto;
    padding: 0 2px;
    margin-top: 10px;
    margin-left: 10px;
    margin-right: 10px;
}

.glass-calendar-card {
    background: #ffffff;
    border-radius: 18px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 6px 24px #cbd5e1;
    padding: 6px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.glass-calendar-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 32px #94a3b8;
    background: #ffffff;
}

/* Glass Calendar Body */
.glass-calendar-body {
    padding: 8px;
}

.glass-date-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 12px;
}

.glass-date-card {
    background: #f8fafc;
    border-radius: 16px;
    padding: 8px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 10px #f1f5f9;
}

.glass-date-card:hover {
    transform: translateY(-2px);
    background: #ffffff;
    box-shadow: 0 6px 20px #e2e8f0;
    border-color: #cbd5e1;
}

.solar-date {
    background: #ffe9d0ff;
}

.lunar-date {
    background: #d3ebffff;
}

.glass-date-header {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 6px;
    justify-content: center;
}

.glass-date-icon {
    font-size: 14px;
}

.glass-date-type {
    font-size: 11px;
    font-weight: 700;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.glass-date-main {
    display: flex;
    flex-direction: column;
    gap: 3px;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.glass-date-day {
    font-size: 24px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, sans-serif;
}

.glass-date-weekday {
    font-size: 12px;
    font-weight: 700;
    color: #334155;
    margin: 2px 0;
}

.glass-date-month {
    font-size: 13px;
    font-weight: 600;
    color: #475569;
}

.glass-date-year {
    font-size: 13px;
    font-weight: 500;
    color: #64748b;
}

/* Glass Events Section */
.glass-events-section {
    background: #ecf1eaff;
    border-radius: 16px;
    padding: 13px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 10px #f1f5f9;
}

.glass-events-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    padding-bottom: 6px;
    border-bottom: 1px solid #e2e8f0;
}

.glass-events-icon {
    font-size: 14px;
}

.glass-events-title {
    font-size: 11px;
    font-weight: 700;
    color: #1e293b;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.glass-events-content {
    position: relative;
}

.noidung {
    background: #ffffff;
    border-radius: 12px;
    padding: 10px;
    margin-bottom: 8px;
    border: 1px solid #e2e8f0;
    font-size: 14px;
    line-height: 1.5;
    color: #1e293b;
    text-align: left;
    box-shadow: 0 1px 3px #f1f5f9;
}

.noidung:hover {
    background: #f8fafc;
    transition: all 0.2s ease;
}

/* Glass Toggle Button */
.glass-toggle-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0px;
    width: 100%;
    padding: 2px 4px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 14px;
    color: #2b354bff;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    outline: none;
    box-shadow: 0 2px 8px #f1f5f9;
    -webkit-tap-highlight-color: transparent;
}

.glass-toggle-button:hover {
    background: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px #cbd5e1;
    border-color: #94a3b8;
}

.glass-toggle-button:active {
    transform: translateY(0) scale(0.98);
}

.glass-chevron-icon {
    transition: transform 0.3s ease;
}

.glass-toggle-button.expanded .glass-chevron-icon {
    transform: rotate(180deg);
}

.glass-button-text {
    color: inherit;
    font-weight: 700;
}

/* Animations */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive design */
@media (max-width: 768px) {
    .glass-container {
        margin: 8px auto;
        padding: 0 4px;
    }

    .glass-slider-container {
        margin: 8px auto;
        padding: 0 4px;
    }

    .glass-card,
    .glass-slider-card {
        padding: 8px;
        border-radius: 14px;
    }

    .header-title {
        font-size: 16px;
        color: #6d4700ff;
    }

    .noidung {
        padding: 6px 8px;
        font-size: 13px;
        line-height: 1.4;
        word-wrap: break-word;
        overflow-wrap: break-word;
        clear: both;
        margin-bottom: 0.5em;
        position: relative;
        z-index: 1;
    }

    .slider-header {
        flex-direction: column;
        gap: 6px;
        text-align: center;
        margin-bottom: 8px;
        padding-bottom: 4px;
    }

    .slider-nav {
        width: 44px;
        height: 44px;
    }

    .slider-nav-prev {
        left: 4px;
        top: -20px;
    }

    .slider-nav-next {
        right: 4px;
        top: -20px;
    }

    .slider-nav svg {
        width: 22px;
        height: 22px;
    }

    .date-badge {
        padding: 4px 6px;
        max-width: 100px;
        gap: 1px;
    }

    .badge-label {
        font-size: 10px;
    }

    .badge-value {
        font-size: 13px;
    }

    .slide-item {
        padding: 4px;
    }

    .slide-content {
        padding: 6px;
    }

    .day-date-display {
        gap: 4px;
    }

    .day-toggle-button {
        padding: 6px 10px;
        font-size: 13px;
        margin-top: 6px;
    }

    .event-item {
        padding: 6px;
        margin-bottom: 4px;
    }

    .event-description {
        font-size: 14px;
        line-height: 1.4;
        word-wrap: break-word;
        overflow-wrap: break-word;
        clear: both;
        margin-bottom: 0.5em;
        position: relative;
        z-index: 1;
    }

    .slider-indicators {
        font-size: 12px;
        padding: 3px 6px;
    }
}

/* Glass Slider Styles */
.glass-slider-container {
    max-width: 100%;
    margin: 16px auto;
    padding: 0 8px;
}

.glass-slider-card {
    background: #ffeec0ff;
    border-radius: 18px;
    border: 1px solid #bda86eff;
    box-shadow: 0 6px 24px #cbd5e1;
    padding: 12px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.slider-header {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e2e8f0;
}

.slider-indicators {
    display: flex;
    align-items: center;
    gap: 2px;
    font-family: 'SF Mono', Monaco, 'Cascadia Code', monospace;
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
    background: #f1f5f9;
    padding: 4px 10px;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
}

.slide-separator {
    opacity: 0.5;
}

/* Slider Wrapper - Overlay Navigation */
.slider-wrapper {
    position: relative;
    display: flex;
    align-items: stretch;
}

.slider-container {
    flex: 1;
    overflow: hidden;
    border-radius: 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    position: relative;
}

.slider-track {
    display: flex;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}

.slide-item {
    min-width: 100%;
    padding: 8px;
}

/* Overlay Navigation Buttons */
.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #0f172a;
    outline: none;
    z-index: 10;
    box-shadow: 0 2px 8px #cbd5e1;
}

.slider-nav-prev {
    left: 8px;
    top: -40px;
}

.slider-nav-next {
    right: 8px;
    top: -40px;
}

.slider-nav:hover {
    background: #ffffff;
    transform: translateY(-50%) scale(1.08);
    box-shadow: 0 4px 12px #94a3b8;
}

.slider-nav:active {
    transform: translateY(-50%) scale(0.95);
}

.slider-nav:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    transform: translateY(-50%) scale(1);
}

.slider-nav svg {
    width: 24px;
    height: 24px;
}

/* Slide Content */
.slide-day-header {
    margin-bottom: 8px;
}

.day-date-display {
    display: flex;
    gap: 8px;
    justify-content: center;
}

.date-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 6px 8px;
    flex: 1;
    max-width: 120px;
}

.badge-label {
    font-size: 11px;
    font-weight: 700;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-value {
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
    font-family: 'SF Mono', Monaco, 'Cascadia Code', monospace;
}

.slide-content {
    background: transparent;
    border-radius: 8px;
    padding: 6px;
    border: none;
}

.date-inline {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.date-item {
    display: inline-flex;
    align-items: center;
    font-weight: 700;
    white-space: nowrap;
    background: transparent;
    transition: all 0.2s ease;
}

.date-item.solar {
    color: inherit;
    background: transparent;
    padding: 0;
}

.date-item.lunar {
    color: inherit;
    background: transparent;
    padding: 0;
}

.date-separator {
    opacity: 0.5;
    font-size: 11px;
    margin: 0 2px;
    user-select: none;
}

.date-item:hover {
    background: transparent;
}

/* Day Toggle Button */
.day-toggle-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 6px 12px;
    background: transparent;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    outline: none;
    margin-top: 6px;
}

.day-toggle-button .chevron-icon {
    transition: transform 0.3s ease;
}

.day-toggle-button.expanded .chevron-icon {
    transform: rotate(180deg);
}

/* No Events State */
.no-events {
    text-align: center;
    padding: 20px 16px;
}

.no-events-icon {
    margin-bottom: 8px;
    opacity: 0.4;
}

.no-events-text {
    opacity: 0.7;
    font-size: 14px;
    margin: 0;
}

/* Event Items in Slider */
.event-item {
    border-radius: 8px;
    padding: 8px 10px;
    margin-bottom: 6px;
    transition: all 0.2s ease;
}

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

.event-description {
    font-size: 12px;
    line-height: 1.5;
}

@media (max-width: 480px) {
    .glass-slider-container {
        margin: 4px auto;
        padding: 0 2px;
    }

    .glass-slider-card {
        padding: 6px;
        border-radius: 12px;
    }

    .slider-nav {
        width: 40px;
        height: 40px;
    }

    .slider-nav svg {
        width: 20px;
        height: 20px;
    }

    .date-badge {
        padding: 3px 4px;
        max-width: 90px;
    }

    .badge-value {
        font-size: 12px;
    }

    .slide-content {
        padding: 4px;
    }

    .event-description {
        font-size: 14px;
    }
}

.clamp-text {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    position: relative;
    transition: all 0.2s ease;
    max-height: 4.5em;
    line-height: 1.4;
    word-wrap: break-word;
    overflow-wrap: break-word;
    clear: both;
    margin-bottom: 0.5em;
}

.clamp-text.expanded {
    -webkit-line-clamp: unset;
    max-height: none;
}

.clamp-text2 {
    overflow: hidden;
    position: relative;
    transition: all 0.2s ease;
    max-height: 5em;
    line-height: 1.4;
    word-wrap: break-word;
    overflow-wrap: break-word;
    clear: both;
    margin-bottom: 0.5em;
}

.clamp-text2.expanded {
    max-height: none;
}

.toggle-button {
    text-align: center;
    color: #1e293b;
    cursor: pointer;
    font-size: 14px;
    margin-top: -4px;
    font-weight: 700;
    user-select: none;
    height: 18px;
}

.toggle-button:hover {
    color: #2563eb;
    text-decoration: underline;
    transition: color 0.2s ease;
}

/* ==========================================================================
   3. HƯỚNG DẪN KÉO THẢ BIỂU TƯỢNG (ICON DRAG HINT)
   ========================================================================== */

/* Dòng ghi chú hướng dẫn kéo thả icon */
.icon-drag-hint {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 5px;
    padding-top: 5px;
    border-top: 1px dashed #e2e8f0;
    font-size: 12px;
    color: #64748b;
    text-align: center;
    font-weight: 500;
    opacity: 0.85;
}

/* Căn lề trái phải 10px cho container icon grid */
.category-folders-container {
    padding-left: 10px !important;
    padding-right: 10px !important;
    box-sizing: border-box;
}

/* Hiệu ứng kéo thả cho icon grid */
.category-item-cell {
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
    cursor: grab;
    transition: transform 0.2s cubic-bezier(0.2, 0, 0.2, 1), opacity 0.2s ease, box-shadow 0.2s ease;
    border-radius: 12px;
}

.category-item-cell:active {
    cursor: grabbing;
}

.category-item-cell.is-dragging {
    opacity: 0.45;
    transform: scale(1.08);
    z-index: 100;
    cursor: grabbing;
}

/* ==========================================================================
   4. THỐNG KÊ HỆ THỐNG GLASSMORPHISM (GLASS STATS)
   ========================================================================== */

/* Glass Statistics Section Styles */
.glass-stats-container {
    max-width: 100%;
}

.glass-stats-card {
    background: #ffffff;
    border-radius: 18px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 6px 24px #cbd5e1;
    padding: 12px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.glass-stats-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 32px #94a3b8;
    background: #ffffff;
}

.glass-stats-header {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
}

.glass-stats-icon {
    font-size: 22px;
}

.glass-stats-title {
    font-size: 17px;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
    letter-spacing: 0.3px;
}

.glass-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    position: relative;
    z-index: 1;
}

.glass-stat-item {
    background: #f8fafc;
    border-radius: 14px;
    padding: 12px 8px;
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 6px #f1f5f9;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.glass-stat-item:hover {
    transform: translateY(-2px);
    background: #ffffff;
    box-shadow: 0 6px 18px #cbd5e1;
    border-color: #cbd5e1;
}

.glass-stat-icon-wrapper {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    position: relative;
    z-index: 1;
}

.temple-icon {
    background: #ffedd5;
}

.kinh-icon {
    background: #dbeafe;
}

.kien-thuc-icon {
    background: #dcfce7;
}

.huyet-icon {
    background: #fee2e2;
}

.glass-stat-icon {
    font-size: 20px;
}

.glass-stat-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    position: relative;
    z-index: 1;
}

.glass-stat-count {
    font-size: 22px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1;
}

.glass-stat-label {
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    letter-spacing: 0.3px;
}

/* Responsive design for statistics section */
@media (max-width: 768px) {
    .glass-stats-container {
        margin: 10px auto;
        padding: 0 8px;
    }

    .glass-stats-card {
        padding: 10px;
        border-radius: 14px;
    }

    .glass-stats-header {
        margin-bottom: 10px;
    }

    .glass-stats-title {
        font-size: 16px;
    }

    .glass-stats-icon {
        font-size: 20px;
    }

    .glass-stats-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 6px;
    }

    .glass-stat-item {
        padding: 8px 4px;
        border-radius: 12px;
    }

    .glass-stat-icon-wrapper {
        width: 34px;
        height: 34px;
        margin-bottom: 4px;
    }

    .glass-stat-icon {
        font-size: 16px;
    }

    .glass-stat-count {
        font-size: 16px;
    }

    .glass-stat-label {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .glass-stats-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 6px;
    }

    .glass-stat-item {
        padding: 8px 4px;
    }

    .glass-stat-icon-wrapper {
        width: 32px;
        height: 32px;
        margin-bottom: 5px;
    }

    .glass-stat-icon {
        font-size: 16px;
    }

    .glass-stat-count {
        font-size: 16px;
    }

    .glass-stat-label {
        font-size: 12px;
    }
}

/* Styles for 10 ngày tiếp theo section */
.day-section {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.9) 100%);
    border-radius: 12px;
    margin-bottom: 15px;
    padding: 15px;
    border-left: 4px solid #28a745;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.day-section:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12);
    border-left-color: #218838;
}

.day-header {}

.day-title {
    color: #787878ff;
    font-size: 16px;
    font-weight: 600;
    margin: 5px 0 6px 0;
    font-family: "Segoe UI", "Noto Sans", sans-serif;
}

.day-date {
    color: #7f8c8d;
    font-size: 13px;
    font-style: italic;
    background: rgba(52, 152, 219, 0.1);
    padding: 4px 8px;
    border-radius: 6px;
    display: inline-block;
}

.day-events {
    margin-bottom: 5px;
}

.day-toggle-button {
    text-align: center;
    color: #a9a959ff;
    cursor: pointer;
    font-size: 13px;
    margin-top: 5px;
    margin-bottom: 5px;
    font-weight: bold;
    user-select: none;
    height: 15px;
    transition: color 0.2s ease;
}

.day-toggle-button:hover {
    color: #909090ff;
    text-decoration: underline;
}

/* Event items styling */
.event-item {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 10px;

    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.event-item:hover {
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transform: translateX(2px);
}

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

.event-name {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 8px;
    font-size: 14px;
    line-height: 1.3;
}

.event-details {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    flex-wrap: wrap;
}

.event-type {
    display: inline-block;
    background: linear-gradient(135deg, #17a2b8, #138496);
    color: white;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    flex-shrink: 0;
    white-space: nowrap;
}

.event-description {
    color: #555;
    font-size: 14px;
    line-height: 1.5;
    flex: 1;
    min-width: 0;
}

/* Enhanced clamp text animation */
.clamp-text {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    position: relative;
    transition: all 0.3s ease;
    max-height: 7.5em;
}

.clamp-text.expanded {
    -webkit-line-clamp: unset;
    max-height: none;
}

/* Responsive design for mobile */
@media (max-width: 768px) {
    .day-section {
        margin-bottom: 12px;
        padding: 3px;
    }

    .day-title {
        font-size: 14px;
    }

    .day-date {
        font-size: 13px;
    }

    .event-item {
        padding: 3px;
    }

    .event-name {
        font-size: 14px;
    }

    .event-description {
        font-size: 14px;
    }
}

/* ==========================================================================
   5. DANH MỤC KINH SÁCH GLASSMORPHISM (GLASS KINH SÁCH)
   ========================================================================== */

/* Styles for Các Kinh Sách section */
.glass-kinhsach-container {
    max-width: 100%;
    margin: 15px auto;
    padding: 0 10px;
}

.glass-kinhsach-card {
    background: #ffffff;
    border-radius: 0;
    border: none;
    box-shadow: 0 6px 24px #cbd5e1;
    padding: 16px;
    position: relative;
    overflow: visible;
    transition: all 0.3s ease;
}

.glass-kinhsach-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 32px #94a3b8;
    background: #ffffff;
}

.kinhsach-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 12px;
}

.kinhsach-title-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.kinhsach-icon {
    font-size: 24px;
}

.kinhsach-title {
    font-size: 20px;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
    letter-spacing: 0.3px;
}

.kinhsach-search {
    flex: 0 0 auto;
    max-width: 180px;
}

.kinhsach-search-input {
    width: 100%;
    padding: 6px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 18px;
    background: #ffffff;
    color: #0f172a;
    font-size: 13px;
    transition: all 0.2s ease;
    outline: none;
}

.kinhsach-search-input::placeholder {
    color: #94a3b8;
}

.kinhsach-search-input:focus {
    border-color: #2563eb;
    background: #ffffff;
    box-shadow: 0 0 8px #93c5fd;
}

.kinhsach-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
    position: relative;
    z-index: 1;
}

/* Footer */
.kinhsach-footer {
    text-align: center;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid #e2e8f0;
}

.kinhsach-view-all {
    color: #0f172a;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    padding: 6px 18px;
    border-radius: 16px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    transition: all 0.2s ease;
    display: inline-block;
    box-shadow: 0 2px 6px #f1f5f9;
}

.kinhsach-view-all:hover {
    color: #2563eb;
    background: #ffffff;
    border-color: #94a3b8;
    transform: translateY(-1px);
}

.kinhsach-item-link {
    text-decoration: none;
    display: block;
}

.kinhsach-item {
    background: #ffffff;
    border-radius: 14px;
    padding: 8px;
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 6px #f1f5f9;
}

.kinhsach-item:hover {
    transform: translateY(-2px);
    background: #ffffff;
    box-shadow: 0 6px 16px #cbd5e1;
    border-color: #cbd5e1;
}

.kinhsach-image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 3/4;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.kinhsach-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.kinhsach-item:hover .kinhsach-image {
    transform: scale(1.05);
}

.kinhsach-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom,
            transparent 0%,
            rgba(0, 0, 0, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.kinhsach-item:hover .kinhsach-overlay {
    opacity: 1;
}

.kinhsach-info {
    text-align: center;
}

.kinhsach-name {
    font-size: 13px;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Responsive design */
@media (max-width: 768px) {
    .glass-kinhsach-container {
        margin: 10px auto;
        padding: 0 6px;
    }

    .glass-kinhsach-card {
        padding: 12px;
        border-radius: 14px;
    }

    .kinhsach-header {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .kinhsach-title {
        font-size: 17px;
    }

    .kinhsach-icon {
        font-size: 20px;
    }

    .kinhsach-search {
        max-width: 100%;
    }

    .kinhsach-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 8px;
    }

    .kinhsach-item {
        padding: 6px;
        border-radius: 10px;
    }

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

@media (max-width: 480px) {
    .kinhsach-grid {
        grid-template-columns: repeat(auto-fill, minmax(85px, 1fr));
        gap: 8px;
    }

    .kinhsach-item {
        padding: 5px;
    }

    .kinhsach-name {
        font-size: 10px;
    }
}

/* Loading indicator */
.loading-indicator {
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
    margin: 20px 0;
    font-size: 14px;
}

.hidden {
    display: none;
}

/* ==========================================================================
   6. BÀI VIẾT ĐỀN CHÙA & TRẠNG THÁI (TEMPLE ARTICLES)
   ========================================================================== */

/* Temple Articles Glassmorphism Styles */
.temple-articles-container {}

.temple-articles-card {
    background: #ffffff;
    border-radius: 18px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 6px 24px #cbd5e1;
    padding: 16px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.temple-articles-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 32px #94a3b8;
    background: #ffffff;
}

.temple-articles-header {
    margin-bottom: 14px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e2e8f0;
}

.temple-articles-title-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
}

.temple-articles-icon {
    font-size: 20px;
}

.temple-articles-title {
    font-size: 17px;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    letter-spacing: 0.3px;
}

.temple-articles-newspaper {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* Main Article Styles */
.temple-main-article {
    background: #ffffff;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 8px #f1f5f9;
}

.temple-main-article:hover {
    background: #ffffff;
    box-shadow: 0 6px 18px #cbd5e1;
    border-color: #cbd5e1;
}

.temple-main-article-image {
    width: 100%;
    aspect-ratio: 21/9;
    max-height: 160px;
    overflow: hidden;
}

.temple-main-article-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.temple-main-article:hover .temple-main-article-img {
    transform: scale(1.04);
}

.temple-main-article-content {
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.temple-main-article-title {
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
    line-height: 1.4;
    display: flex;
    align-items: center;
    gap: 6px;
}

.temple-title-icon {
    font-size: 16px;
}

.temple-main-article-user {
    display: flex;
    align-items: center;
    gap: 8px;
}

.temple-main-user-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid #cbd5e1;
}

.temple-main-user-info {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.temple-main-user-link {
    text-decoration: none !important;
}

.temple-main-user-name {
    font-size: 13px;
    font-weight: 700;
    color: #1e293b;
}

.temple-main-article-date {
    font-size: 11px;
    color: #64748b;
    font-weight: 500;
}

.temple-main-article-excerpt {
    font-size: 13px;
    color: #475569;
    line-height: 1.5;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.temple-main-article-footer {
    display: flex;
    justify-content: flex-end;
    margin-top: 4px;
}

.temple-main-article-link {
    font-size: 12px;
    color: #0f172a;
    text-decoration: none !important;
    font-weight: 700;
    transition: all 0.2s ease;
    padding: 5px 14px;
    background: #f1f5f9;
    border-radius: 16px;
    border: 1px solid #cbd5e1;
}

.temple-main-article-link:hover {
    background: #ffffff;
    color: #2563eb;
    border-color: #94a3b8;
}

/* Secondary Articles Styles */
.temple-secondary-articles-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    border-top: 1px solid #e2e8f0;
    padding-top: 10px;
}

.temple-secondary-article {
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    padding: 8px 10px;
    transition: all 0.2s ease;
}

.temple-secondary-article:hover {
    background: #ffffff;
    transform: translateX(3px);
    border-color: #cbd5e1;
}

.temple-secondary-article-link {
    text-decoration: none !important;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.temple-secondary-article-title-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    overflow: hidden;
}

.temple-secondary-title-badge {
    width: 22px;
    height: 22px;
    border-radius: 6px;
    background: #ffedd5;
    border: 1px solid #fdba74;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    flex-shrink: 0;
}

.temple-secondary-article-title {
    font-size: 13px;
    font-weight: 700;
    color: #1e293b;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.temple-secondary-arrow {
    color: #94a3b8;
    font-size: 14px;
    transition: transform 0.2s ease;
    margin-left: 8px;
}

.temple-secondary-article:hover .temple-secondary-arrow {
    color: #2563eb;
    transform: translateX(2px);
}

/* Footer Section */
.temple-articles-footer {
    margin-top: 12px;
    display: flex;
    justify-content: center;
}

.temple-articles-view-all {
    width: 100%;
    text-align: center;
    font-size: 13px;
    color: #0f172a;
    text-decoration: none !important;
    font-weight: 700;
    padding: 8px 16px;
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #cbd5e1;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px #f1f5f9;
}

.temple-articles-view-all:hover {
    background: #ffffff;
    color: #2563eb;
    border-color: #94a3b8;
    transform: translateY(-1px);
}


.temple-article-card {
    background: #ffffff;
    border-radius: 18px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px #f1f5f9;
    position: relative;
    z-index: 1;
    margin-bottom: 15px;
}

.temple-article-card:hover {
    transform: translateY(-3px);
    background: #ffffff;
    box-shadow: 0 8px 25px #cbd5e1;
    border-color: #cbd5e1;
}

.temple-article-image {
    width: 100%;
    height: 160px;
    overflow: hidden;
    position: relative;
}

.temple-article-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.temple-article-card:hover .temple-article-img {
    transform: scale(1.05);
}

.temple-article-content {
    padding: 6px;
}

.temple-article-user {
    display: flex;
    align-items: center;
    gap: 10px;
}

.temple-user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #cbd5e1;
    box-shadow: 0 2px 8px #f1f5f9;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.temple-user-avatar:hover {
    transform: scale(1.05);
    border-color: #94a3b8;
}

.temple-article-title-inline {
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.3;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.temple-user-name {
    text-align: left;
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.temple-article-title {
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 5px 0;
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.temple-article-excerpt {
    font-size: 14px;
    color: #475569;
    line-height: 1.5;
    margin-bottom: 2px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.temple-article-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 5px;
    border-top: 1px solid #e2e8f0;
}

.temple-article-date {
    font-size: 12px;
    color: #64748b;
    font-weight: 500;
}

.temple-article-link {
    font-size: 14px;
    color: #0f172a;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.temple-article-link:hover {
    color: #2563eb;
    transform: translateX(3px);
}

.temple-articles-footer {
    text-align: center;
    padding-top: 5px;
}

.temple-articles-view-all {
    display: inline-block;
    padding: 12px 32px;
    background: #ffffff;
    border-radius: 30px;
    border: 1px solid #cbd5e1;
    color: #0f172a;
    text-decoration: none;
    font-weight: 700;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px #f1f5f9;
}

.temple-articles-view-all:hover {
    background: #ffffff;
    color: #2563eb;
    border-color: #94a3b8;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px #cbd5e1;
}

/* Status Articles Styles */
.status-articles-container {}

.status-articles-card {
    background: #ffffff;
    border-radius: 18px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 6px 24px #cbd5e1;
    padding: 18px 16px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.status-articles-card:hover {
    background: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 10px 32px #94a3b8;
    border-color: #cbd5e1;
}

.status-articles-header {
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e2e8f0;
}

.status-articles-title-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
}

.status-articles-icon {
    font-size: 20px;
}

.status-articles-title {
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    letter-spacing: 0.3px;
}

.status-articles-newspaper {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Main Article Styles */
.status-main-article {
    background: #ffffff;
    border-radius: 18px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 8px #f1f5f9;
}

.status-main-article:hover {
    background: #ffffff;
    border-color: #cbd5e1;
    box-shadow: 0 6px 18px #cbd5e1;
}

.status-main-article-image {
    width: 100%;
    aspect-ratio: 21/9;
    overflow: hidden;
}

.status-main-article-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.status-main-article:hover .status-main-article-img {
    transform: scale(1.04);
}

.status-main-article-content {
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.status-main-article-title {
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
    line-height: 1.35;
    display: flex;
    align-items: center;
    gap: 6px;
}

.status-title-icon {
    font-size: 18px;
}

.status-main-article-user {
    display: flex;
    align-items: center;
    gap: 8px;
}

.status-main-user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid #cbd5e1;
    box-shadow: 0 2px 6px #f1f5f9;
}

.status-main-user-info {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.status-main-user-link {
    text-decoration: none !important;
}

.status-main-user-name {
    font-size: 13px;
    font-weight: 700;
    color: #1e293b;
}

.status-main-article-date {
    font-size: 11px;
    color: #64748b;
    font-weight: 500;
}

.status-main-article-excerpt {
    font-size: 13px;
    color: #475569;
    line-height: 1.5;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.status-main-article-footer {
    display: flex;
    justify-content: flex-end;
    margin-top: 4px;
}

.status-main-article-link {
    font-size: 12px;
    color: #0f172a;
    text-decoration: none !important;
    font-weight: 700;
    transition: all 0.2s ease;
    padding: 6px 14px;
    background: #f1f5f9;
    border-radius: 20px;
    border: 1px solid #cbd5e1;
    box-shadow: 0 2px 8px #f1f5f9;
}

.status-main-article-link:hover {
    background: #ffffff;
    color: #2563eb;
    border-color: #94a3b8;
    transform: translateY(-1px);
}

/* Secondary Articles Styles */
.status-secondary-articles-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    border-top: 1px solid #e2e8f0;
    padding-top: 12px;
}

.status-secondary-article {
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    padding: 10px 12px;
    transition: all 0.2s ease;
}

.status-secondary-article:hover {
    background: #ffffff;
    transform: translateX(4px);
    border-color: #cbd5e1;
}

.status-secondary-article-link {
    text-decoration: none !important;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.status-secondary-article-title-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    overflow: hidden;
}

.status-secondary-title-badge {
    width: 22px;
    height: 22px;
    border-radius: 6px;
    background: #dbeafe;
    border: 1px solid #93c5fd;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    flex-shrink: 0;
}

.status-secondary-article-title {
    font-size: 13.5px;
    font-weight: 700;
    color: #1e293b;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.status-secondary-arrow {
    color: #94a3b8;
    font-size: 14px;
    transition: transform 0.2s ease;
    margin-left: 8px;
}

.status-secondary-article:hover .status-secondary-arrow {
    color: #2563eb;
    transform: translateX(2px);
}

/* Footer Section */
.status-articles-footer {
    margin-top: 14px;
    display: flex;
    justify-content: center;
}

.status-articles-view-all {
    width: 100%;
    text-align: center;
    font-size: 13px;
    color: #0f172a;
    text-decoration: none !important;
    font-weight: 700;
    padding: 8px 16px;
    background: #ffffff;
    border-radius: 20px;
    border: 1px solid #cbd5e1;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px #f1f5f9;
}

.status-articles-view-all:hover {
    background: #ffffff;
    color: #2563eb;
    border-color: #94a3b8;
    transform: translateY(-1px);
}

/* Responsive Design */
@media (max-width: 768px) {

    .temple-articles-container,
    .status-articles-container {
        margin: 15px auto;
        padding: 0 8px;
    }

    .temple-articles-card,
    .status-articles-card {
        padding: 15px;
        border-radius: 20px;
    }

    .temple-articles-grid,
    .status-articles-grid {
        grid-template-columns: 1fr;
        gap: 5px;
    }

    .temple-article-image,
    .status-article-image {
        height: 100px;
    }

    .temple-article-title,
    .status-article-title {
        font-size: 16px;
    }

    .temple-article-excerpt,
    .status-article-excerpt {
        font-size: 13px;
    }

    .temple-articles-view-all,
    .status-articles-view-all {
        padding: 10px 24px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {

    .temple-articles-container,
    .status-articles-container {
        margin: 12px auto;
        padding: 0 5px;
    }

    .temple-articles-card,
    .status-articles-card {
        padding: 12px;
        border-radius: 18px;
    }

    .temple-article-image,
    .status-article-image {
        height: 100px;
    }

    .temple-article-content,
    .status-article-content {
        padding: 5px;
    }

    .temple-article-title,
    .status-article-title {
        font-size: 15px;
    }

    .temple-article-excerpt,
    .status-article-excerpt {
        font-size: 13px;
    }
}

/* ==========================================================================
   7. GIAO DIỆN BIỂU TƯỢNG ỨNG DỤNG & ANIMATION (APP ICONS)
   ========================================================================== */

/* Nhịp tim scale nhẹ */
@keyframes blinkScale {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.03);
    }
}

.blink-scale {}

/* Lóe sáng */
@keyframes shineEffect {
    0% {
        left: -150%;
    }

    100% {
        left: 150%;
    }
}

.shine::after {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 50%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    pointer-events: none;
    z-index: 10;
}

/* ==========================================================================
   IPHONE (iOS) APP ICON DESIGN
   ========================================================================== */

.category-folders-container {
    width: 100%;
    padding: 6px 10px;
    box-sizing: border-box;
}

.glass-icons-card,
.solid-icons-card {
    width: 100%;
    max-width: 100%;
    background: #ffffff;
    border-radius: 18px;
    border: 1px solid rgba(226, 232, 240, 0.8);
    box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.06);
    padding: 18px 12px 14px;
    position: relative;
    overflow: hidden;
    margin: 0;
    box-sizing: border-box;
}

.direct-icon-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px 8px;
    width: 100%;
    box-sizing: border-box;
}

.category-item-cell {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    width: 100%;
}

.category-item-link {
    text-decoration: none !important;
    width: 100%;
    display: flex;
    justify-content: center;
    -webkit-tap-highlight-color: transparent;
}

.iphone-icon-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    position: relative;
    width: 100%;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}

.iphone-icon-wrapper a {
    text-decoration: none;
    color: inherit;
}

/* Khung Icon - Chuẩn Squircle bo tròn và hiệu ứng nổi như iPhone (Apple iOS App Icon) */
.iphone-icon {
    width: 62px;
    height: 62px;
    border-radius: 22.37%;
    /* Chuẩn tỉ lệ góc bo Squircle Apple */
    background: #ffffff;
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Đổ bóng nhiều tầng và viền mảnh Retina như iOS */
    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.12),
        0 1px 3px rgba(0, 0, 0, 0.08),
        inset 0 0 0 0.5px rgba(0, 0, 0, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
    transition: transform 0.15s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.15s ease, filter 0.15s ease;
    -webkit-mask-image: -webkit-radial-gradient(white, black);
    /* Khắc phục răng cưa góc bo trên WebKit */
}

/* Lớp bóng gương cong phản chiếu mặt kính đặc trưng của icon iOS */
.iphone-icon::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 48%;
    background: linear-gradient(180deg,
            rgba(255, 255, 255, 0.45) 0%,
            rgba(255, 255, 255, 0.12) 60%,
            rgba(255, 255, 255, 0) 100%);
    border-top-left-radius: inherit;
    border-top-right-radius: inherit;
    border-bottom-left-radius: 50% 18%;
    border-bottom-right-radius: 50% 18%;
    pointer-events: none;
    z-index: 2;
}

/* Ảnh Icon lấp đầy toàn khung bo tròn chuẩn App iPhone */
.icon-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
    display: block;
    z-index: 1;
    position: relative;
}

/* Chạm / Nhấn giữ icon (Touch Feedback hệt như mở app trên iPhone) */
.iphone-icon-wrapper:active .iphone-icon {
    transform: scale(0.90);
    filter: brightness(0.88);
    box-shadow:
        0 2px 5px rgba(0, 0, 0, 0.15),
        inset 0 0 0 0.5px rgba(0, 0, 0, 0.2);
}

/* Hover trên chuột máy tính */
@media (hover: hover) {
    .iphone-icon-wrapper:hover .iphone-icon {
        transform: translateY(-2px) scale(1.04);
        box-shadow:
            0 8px 18px rgba(0, 0, 0, 0.16),
            0 2px 5px rgba(0, 0, 0, 0.1),
            inset 0 0 0 0.5px rgba(0, 0, 0, 0.15),
            inset 0 1px 0 rgba(255, 255, 255, 0.8);
    }

    .iphone-icon-wrapper:hover .iphone-icon-label {
        color: #000000;
        font-weight: 600;
    }
}

/* Nhãn chữ bên dưới icon chuẩn kiểu Apple typography */
.iphone-icon-label {
    margin-top: 6px;
    font-size: 11.5px;
    line-height: 1.25;
    color: #1c1c1e;
    text-align: center;
    font-weight: 500;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    letter-spacing: -0.2px;
    text-decoration: none;
    word-break: break-word;
    max-width: 100%;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Gợi ý kéo thả di chuyển vị trí */
.icon-drag-hint {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 14px;
    padding-top: 10px;
    border-top: 1px dashed rgba(203, 213, 225, 0.6);
    font-size: 11.5px;
    color: #94a3b8;
}

/* Trạng thái đang kéo thả (Dragging state) */
.category-item-cell.is-dragging .iphone-icon {
    transform: scale(1.1) rotate(2deg);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.25);
    opacity: 0.85;
}

/* Responsive Kích thước Icon theo kích cỡ màn hình */
@media (max-width: 480px) {
    .direct-icon-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 14px 6px;
    }

    .iphone-icon {
        width: 58px;
        height: 58px;
    }

    .iphone-icon-label {
        font-size: 11px;
        margin-top: 5px;
    }
}

@media (min-width: 576px) {
    .direct-icon-grid {
        grid-template-columns: repeat(6, 1fr);
        gap: 16px 10px;
    }

    .iphone-icon {
        width: 64px;
        height: 64px;
    }

    .iphone-icon-label {
        font-size: 12px;
    }
}

@media (min-width: 768px) {
    .category-folders-container {
        padding: 10px 0;
    }

    .glass-icons-card,
    .solid-icons-card {
        padding: 22px 18px 16px;
        border-radius: 20px;
    }

    .direct-icon-grid {
        grid-template-columns: repeat(8, 1fr);
        gap: 18px 12px;
    }

    .iphone-icon {
        width: 66px;
        height: 66px;
    }

    .iphone-icon-label {
        font-size: 12px;
        margin-top: 6px;
    }
}

@media (min-width: 1024px) {

    .glass-icons-card,
    .solid-icons-card {
        padding: 24px 20px 18px;
        border-radius: 22px;
    }

    .direct-icon-grid {
        grid-template-columns: repeat(8, 1fr);
        gap: 20px 14px;
    }

    .iphone-icon {
        width: 70px;
        height: 70px;
    }

    .iphone-icon-label {
        font-size: 12.5px;
        margin-top: 7px;
    }
}

@media (min-width: 1400px) {
    .direct-icon-grid {
        grid-template-columns: repeat(8, 1fr);
        gap: 22px 16px;
    }

    .iphone-icon {
        width: 72px;
        height: 72px;
    }

    .iphone-icon-label {
        font-size: 13px;
        margin-top: 8px;
    }
}


/* iPhone-style background */
.iphone-container {
    background: #ffffff;
    border-radius: 18px;
    padding-top: 2px;
    margin: 0 20px 20px 20px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 6px 24px #cbd5e1;
    position: relative;
    overflow: hidden;
}

.iphone-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(120, 119, 198, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 119, 198, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(255, 219, 98, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

/* Automatic responsive grid layout - removed to allow Tailwind classes to work */

/* Enhanced grid spacing */
.row-cols-4 .col {
    padding: 12px;
}

/* Sizing is handled mobile-first via min-width media queries above */

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .m-2 {
        background: linear-gradient(135deg,
                rgba(30, 30, 30, 0.95) 0%,
                rgba(40, 40, 40, 0.9) 50%,
                rgba(50, 50, 50, 0.85) 100%);
        border: 1px solid rgba(255, 255, 255, 0.5);
    }

    .iphone-icon-label {
        color: #e2e8f0;
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    }

    .iphone-icon-wrapper:hover .iphone-icon-label {
        color: #ffffff;
    }
}

/* ==========================================================================
   8. CẨM NANG BẤM HUYỆT CHỮA BỆNH (ACUPRESSURE POINTS)
   ========================================================================== */

/* Glassmorphism Acupressure Points Section */
.bamhuyet-section {
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 15px;
}

.bamhuyet-container {
    background: #ffffff;
    border-radius: 18px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 6px 24px #cbd5e1;
    padding: 20px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.bamhuyet-header {
    text-align: center;
    margin-bottom: 24px;
    position: relative;
    z-index: 1;
}

.bamhuyet-title {
    font-size: 24px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 8px 0;
    letter-spacing: 0.3px;
}

.bamhuyet-subtitle {
    font-size: 15px;
    color: #475569;
    margin: 0;
}

.bamhuyet-subsection {
    margin-bottom: 30px;
    position: relative;
    z-index: 1;
}

.bamhuyet-subsection:last-child {
    margin-bottom: 0;
}

.bamhuyet-subsection-title {
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 16px 0;
    padding-bottom: 8px;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Disease Layout */
.benh-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
}

.benh-featured {
    background: #ffffff;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
    transition: all 0.2s ease;
    position: relative;
    box-shadow: 0 2px 8px #f1f5f9;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}

.benh-featured:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px #cbd5e1;
    border-color: #cbd5e1;
}

.benh-featured-image {
    width: 100%;
    height: 100%;
    min-height: 240px;
    object-fit: cover;
    border-right: 1px solid #e2e8f0;
}

.benh-featured-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.benh-featured-name {
    font-size: 20px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 12px 0;
    line-height: 1.3;
}

.benh-featured-desc {
    font-size: 14px;
    color: #334155;
    margin: 0 0 12px 0;
    line-height: 1.5;
}

.benh-featured-link {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 20px;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    text-decoration: none;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    box-shadow: 0 3px 10px #fbcfe8;
    transition: all 0.2s ease;
    align-self: flex-start;
}

.benh-featured-link:hover {
    transform: translateY(-1px);
    box-shadow: 0 5px 15px #f472b6;
}

.benh-simple-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 16px;
}

.benh-simple {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    padding: 14px;
    transition: all 0.2s ease;
    position: relative;
    box-shadow: 0 2px 6px #f1f5f9;
}

.benh-simple:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px #cbd5e1;
    border-color: #cbd5e1;
}

.benh-simple-id {
    display: inline-block;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 6px;
}

.benh-simple-name {
    font-size: 14px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 8px 0;
    line-height: 1.4;
}

.benh-simple-link {
    display: inline-block;
    color: #2563eb;
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.benh-simple-link:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

/* Acupressure Points Grid */
.bamhuyet-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 14px;
    position: relative;
    z-index: 1;
}

.bamhuyet-card {
    background: #ffffff;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    padding: 14px;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 6px #f1f5f9;
}

.bamhuyet-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px #cbd5e1;
    border-color: #cbd5e1;
}

.bamhuyet-card-id {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 3px 10px;
    border-radius: 16px;
    font-size: 11px;
    font-weight: 700;
    margin-bottom: 8px;
}

.bamhuyet-card-name {
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 6px 0;
    line-height: 1.4;
}

.bamhuyet-card-image {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 10px;
    margin-top: 8px;
    border: 1px solid #e2e8f0;
}

/* Small Cell Style for Acupressure Points */
.huyet-small-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    position: relative;
    z-index: 1;
}

.huyet-small-cell {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    padding: 10px 8px;
    transition: all 0.2s ease;
    position: relative;
    box-shadow: 0 2px 6px #f1f5f9;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-height: 110px;
    justify-content: flex-start;
}

.huyet-small-cell:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px #cbd5e1;
    border-color: #cbd5e1;
}

.huyet-small-id {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2px 8px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 6px;
}

.huyet-small-name {
    font-size: 13px;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
    line-height: 1.4;
}

.huyet-small-image {
    width: 100%;
    height: 70px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 6px;
    border: 1px solid #e2e8f0;
}

.no-data {
    text-align: center;
    padding: 40px;
    color: #64748b;
    font-size: 15px;
    grid-column: 1 / -1;
}

/* Responsive design */
@media (max-width: 768px) {
    .bamhuyet-section {
        padding: 0 10px;
        margin: 20px auto;
    }

    .bamhuyet-container {
        padding: 20px 15px;
        border-radius: 20px;
    }

    .bamhuyet-title {
        font-size: 22px;
    }

    .bamhuyet-subsection-title {
        font-size: 18px;
    }

    .bamhuyet-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 15px;
    }

    .huyet-small-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .benh-featured {
        grid-template-columns: 1fr;
    }

    .benh-featured-image {
        height: 200px;
        min-height: 200px;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .benh-featured-content {
        padding: 20px;
    }

    .benh-featured-name {
        font-size: 18px;
    }

    .benh-simple-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .bamhuyet-card {
        padding: 15px;
    }

    .bamhuyet-card-image {
        height: 140px;
    }

    .huyet-small-cell {
        padding: 10px 8px;
        min-height: 110px;
    }

    .huyet-small-image {
        height: 60px;
    }

    .huyet-small-name {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .bamhuyet-grid {
        grid-template-columns: 1fr;
    }

    .huyet-small-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .benh-simple-list {
        grid-template-columns: 1fr;
    }

    .bamhuyet-title {
        font-size: 20px;
    }

    .bamhuyet-subsection-title {
        font-size: 16px;
    }

    .bamhuyet-container {
        padding: 18px 12px;
    }

    .benh-featured-image {
        height: 180px;
        min-height: 180px;
    }

    .benh-featured-content {
        padding: 18px;
    }

    .benh-featured-name {
        font-size: 16px;
    }

    .benh-featured-desc {
        font-size: 13px;
    }

    .benh-simple {
        padding: 14px;
    }

    .huyet-small-cell {
        padding: 8px 6px;
        min-height: 100px;
    }

    .huyet-small-image {
        height: 55px;
    }

    .huyet-small-name {
        font-size: 11px;
    }
}