/* ============================
   Stories World - Main Stylesheet
   Modern Assamese Literature Platform
   ============================ */

/* CSS Custom Properties */
:root {
    --primary: #0a3d61;
    --primary-light: #1565a0;
    --primary-dark: #042842;
    --accent: #e8a838;
    --accent-light: #f0c060;
    --bg: #fafafa;
    --bg-card: #ffffff;
    --bg-dark: #0f1923;
    --text: #1a1a2e;
    --text-light: #4b5563;
    --text-lighter: #6b7280;
    --border: #e5e7eb;
    --border-light: #f3f4f6;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, .06), 0 1px 2px rgba(0, 0, 0, .04);
    --shadow: 0 4px 6px rgba(0, 0, 0, .04), 0 2px 4px rgba(0, 0, 0, .03);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, .06), 0 4px 10px rgba(0, 0, 0, .04);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, .08);
    --radius-sm: 6px;
    --radius: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-bengali: 'Jyotirupa', 'Noto Sans Bengali', sans-serif;
    --transition: 0.2s ease;
    --container: 1200px;

    /* Font Size Variables (controllable from Admin Dashboard) */
    --fs-body: 15px;
    --fs-h1: 32px;
    --fs-h2: 22px;
    --fs-h3: 18px;
    --fs-small: 12px;
    --fs-meta: 13px;
    --fs-content: 17px;
    --fs-nav: 14px;
}

/* Dark Mode Variables */
[data-theme="dark"] {
    --bg: #111827;
    --bg-card: #1f2937;
    --bg-dark: #0b1018;
    --text: #e5e7eb;
    --text-light: #9ca3af;
    --text-lighter: #7c8594;
    --border: #374151;
    --border-light: #1f2937;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, .3), 0 1px 2px rgba(0, 0, 0, .2);
    --shadow: 0 4px 6px rgba(0, 0, 0, .2), 0 2px 4px rgba(0, 0, 0, .15);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, .3), 0 4px 10px rgba(0, 0, 0, .2);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, .4);
}

/* Dark mode overrides for hardcoded colors */
[data-theme="dark"] .nav {
    background: #1f2937;
    border-bottom-color: #374151;
}

[data-theme="dark"] .nav__dropdown {
    background: #1f2937;
    border-color: #374151;
}

[data-theme="dark"] .nav__dropdown li a:hover {
    background: #374151;
}

[data-theme="dark"] .form-input,
[data-theme="dark"] .form-textarea {
    background: #374151;
    border-color: #4b5563;
    color: #e5e7eb;
}

[data-theme="dark"] .search-box__input {
    background: #374151;
    border-color: #4b5563;
    color: #e5e7eb;
}

[data-theme="dark"] .search-box__input:focus {
    background: #1f2937;
}

[data-theme="dark"] .search-results {
    background: #1f2937;
    border-color: #374151;
}

[data-theme="dark"] .search-results__item:hover {
    background: #374151;
}

[data-theme="dark"] .article {
    background: #1f2937;
    border-color: #374151;
}

[data-theme="dark"] .article__content blockquote {
    background: #374151;
    border-left-color: var(--accent);
    color: #9ca3af;
}

[data-theme="dark"] .auth-card {
    background: #1f2937;
    border-color: #374151;
}

[data-theme="dark"] .badge--published {
    background: #064e3b;
    color: #6ee7b7;
}

[data-theme="dark"] .badge--draft {
    background: #78350f;
    color: #fcd34d;
}

[data-theme="dark"] .alert--success {
    background: #064e3b;
    color: #6ee7b7;
    border-color: #065f46;
}

[data-theme="dark"] .alert--error {
    background: #7f1d1d;
    color: #fca5a5;
    border-color: #991b1b;
}

/* Custom Assamese Font */
@font-face {
    font-family: 'Jyotirupa';
    src: url('/fonts/Jyotirupa.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* Reset & Base */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    overflow-x: clip;
}

body {
    font-family: var(--font-sans);
    color: var(--text);
    background: var(--bg);
    line-height: 1.7;
    font-size: var(--fs-body);
    animation: pageFadeIn 0.35s ease;
    transition: background-color 0.3s ease, color 0.3s ease;
    overflow-x: clip;
}

@keyframes pageFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--primary-light);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

/* Container */
.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================
   Header
   ============================ */
.header__top {
    background: var(--primary-dark);
    color: rgba(255, 255, 255, .8);
    font-size: var(--fs-small);
    padding: 6px 0;
}

.header__top .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header__social {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header__social a {
    display: flex;
    align-items: center;
    color: rgba(255, 255, 255, .7);
    transition: color var(--transition);
}

.header__social a:hover {
    color: var(--accent);
}

.header__main {
    background: var(--primary);
    padding: 20px 0;
}

.header__main .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header__logo {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #fff;
    text-decoration: none;
}

.header__logo-img {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    display: inline-block;
    vertical-align: middle;
}

.header__logo-text {
    font-family: 'Outfit', 'Inter', sans-serif;
    font-size: calc(var(--fs-h2) + 2px);
    font-weight: 900;
    letter-spacing: 4px;
    line-height: 1.1;
    text-transform: uppercase;
}

.header__logo-tagline {
    font-size: var(--fs-small);
    color: rgba(255, 255, 255, .7);
    font-weight: 300;
    letter-spacing: 1px;
}

.header__menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    cursor: pointer;
    background: none;
    border: none;
    z-index: 1001;
    position: relative;
}

.header__menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
}

/* Hamburger → X animation */
.header__menu-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.header__menu-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.header__menu-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ============================
   Navigation (Desktop)
   ============================ */
.nav {
    background: #fff;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}

[data-theme="dark"] .nav {
    background: var(--bg-card);
}

.nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav__list {
    display: flex;
    align-items: center;
}

.nav__link {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 16px 18px;
    font-size: var(--fs-nav);
    font-weight: 500;
    color: var(--text);
    transition: color 0.3s ease;
    position: relative;
}

.nav__link:hover,
.nav__link--active {
    color: var(--primary);
}

.nav__item--dropdown {
    position: relative;
}

.nav__dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    min-width: 220px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all 0.25s ease;
    z-index: 200;
    border: 1px solid var(--border-light);
}

[data-theme="dark"] .nav__dropdown {
    background: var(--bg-card);
}

.nav__item--dropdown:hover .nav__dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav__dropdown li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 18px;
    font-size: var(--fs-meta);
    color: var(--text);
    transition: all var(--transition);
}

.nav__dropdown li a:hover {
    background: var(--border-light);
    color: var(--primary);
}

.nav__count {
    color: var(--text-lighter);
    font-size: var(--fs-small);
}

.nav__right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav__user {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: var(--fs-meta);
}

/* ============================
   Mobile Drawer Overlay
   ============================ */
.drawer-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    touch-action: none;
}

.drawer-overlay.active {
    opacity: 1;
}

/* Prevent background scroll when drawer open */
body.drawer-open {
    overflow: hidden !important;
    position: fixed;
    width: 100%;
    height: 100%;
}

/* Hide drawer-only elements on desktop */
.drawer-header {
    display: none;
}

.drawer-divider {
    display: none;
}

.drawer-section-label {
    display: none;
}

.drawer-icon {
    display: none;
}

.drawer-chevron {
    display: none;
}

.mobile-auth-link {
    display: none;
}

/* ============================
   Mobile Navigation Drawer
   (Android Material Design Style)
   ============================ */
@media (max-width: 768px) {
    .nav {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        width: 280px;
        max-width: 80vw;
        z-index: 1000 !important;
        transform: translateX(-100%);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: none;
        border-bottom: none;
        flex-direction: column;
        display: flex;
        overflow-y: auto;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 24px;
    }

    .nav.is-active {
        transform: translateX(0);
        box-shadow: 4px 0 24px rgba(0, 0, 0, 0.2);
    }

    .nav .container {
        flex-direction: column !important;
        align-items: stretch !important;
        padding: 0 !important;
        margin: 0 !important;
        max-width: none !important;
    }

    .nav__right {
        display: none !important;
    }

    /* Drawer Header — Profile/Brand area */
    .drawer-header {
        display: flex !important;
        flex-direction: column;
        background: linear-gradient(135deg, var(--primary), var(--primary-dark));
        padding: 24px 20px 18px;
        color: #fff;
        position: relative;
        overflow: hidden;
        flex-shrink: 0;
    }

    .drawer-header::after {
        content: '';
        position: absolute;
        bottom: -40px;
        right: -20px;
        width: 120px;
        height: 120px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.06);
    }

    .drawer-header__avatar {
        width: 56px;
        height: 56px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.2);
        display: flex;
        align-items: center;
        justify-content: center;
        margin-bottom: 12px;
        font-size: 20px;
        font-weight: 700;
        border: 2px solid rgba(255, 255, 255, 0.3);
        overflow: hidden;
    }

    .drawer-header__avatar img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .drawer-header__name {
        font-size: 16px;
        font-weight: 600;
        margin-bottom: 2px;
    }

    .drawer-header__email {
        font-size: 12px;
        opacity: 0.7;
    }

    .drawer-header__brand {
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .drawer-header__brand img {
        width: 40px;
        height: 40px;
        border-radius: 50%;
    }

    .drawer-header__brand-text {
        font-size: 16px;
        font-weight: 700;
        letter-spacing: 1px;
    }

    .drawer-header__brand-sub {
        font-size: 11px;
        opacity: 0.7;
    }

    /* Divider */
    .drawer-divider {
        height: 1px;
        background: var(--border-light);
        margin: 8px 0;
    }

    /* Section Label */
    .drawer-section-label {
        font-size: 11px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 1.5px;
        color: var(--text-lighter);
        padding: 16px 20px 8px;
    }

    /* Nav Links — Material Design list items */
    .nav__list {
        flex-direction: column;
        align-items: stretch;
        padding: 8px 0 0;
        margin: 0;
        list-style: none;
    }

    .nav__item {
        list-style: none;
    }

    .nav__link {
        display: flex !important;
        align-items: center !important;
        gap: 12px !important;
        padding: 12px 14px !important;
        font-size: 14px;
        font-weight: 500;
        color: var(--text);
        border-radius: 0 24px 24px 0;
        margin-right: 12px;
        transition: all 0.2s ease;
        position: relative;
        text-align: left !important;
        justify-content: flex-start !important;
        text-decoration: none;
        border-bottom: none !important;
    }

    .nav__link:hover {
        background: rgba(10, 61, 97, 0.06);
    }

    .nav__link--active {
        background: rgba(10, 61, 97, 0.08);
        color: var(--primary);
        font-weight: 600;
    }

    /* Nav icons for drawer */
    .nav__link .drawer-icon {
        width: 24px;
        height: 24px;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        color: var(--text-light);
    }

    .nav__link--active .drawer-icon {
        color: var(--primary);
    }

    /* Dropdown in drawer — expand inline */
    .nav__item--dropdown .nav__dropdown {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        min-width: auto;
        padding: 0 0 0 56px;
        background: transparent;
        display: none;
    }

    .nav__item--dropdown.open .nav__dropdown {
        display: block;
    }

    .nav__dropdown li a {
        padding: 10px 16px;
        font-size: 13px;
        border-radius: 0 20px 20px 0;
        margin-right: 12px;
    }

    .nav__dropdown li a:hover {
        background: rgba(10, 61, 97, 0.06);
    }

    /* Auth links in drawer */
    .mobile-auth-link {
        display: list-item !important;
    }

    .mobile-auth-link .nav__link {
        color: var(--text);
    }

    /* Hide search and desktop auth in drawer */
    .nav__right {
        display: none !important;
    }

    /* Drawer-specific elements visible */
    .drawer-header {
        display: flex !important;
    }

    .drawer-divider {
        display: block !important;
        height: 1px;
        background: var(--border-light);
        margin: 6px 16px;
    }

    .drawer-section-label {
        display: block !important;
        font-size: 11px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 1.5px;
        color: var(--text-lighter);
        padding: 12px 20px 6px;
    }

    .drawer-icon {
        display: flex !important;
        width: 22px;
        height: 22px;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        color: var(--text-light);
    }

    .drawer-chevron {
        display: inline-block !important;
        margin-left: auto;
    }

    .mobile-auth-link {
        display: list-item !important;
    }

    /* Drawer footer */
    .drawer-footer {
        margin-top: auto;
        padding: 16px 20px;
        border-top: 1px solid var(--border-light);
    }

    .drawer-footer__version {
        font-size: 11px;
        color: var(--text-lighter);
    }

    /* Dark mode drawer */
    [data-theme="dark"] .nav {
        background: var(--bg-card);
    }

    [data-theme="dark"] .nav__link:hover {
        background: rgba(255, 255, 255, 0.06);
    }

    [data-theme="dark"] .nav__link--active {
        background: rgba(96, 165, 250, 0.12);
        color: #60a5fa;
    }

    [data-theme="dark"] .nav__link--active .drawer-icon {
        color: #60a5fa;
    }
}

/* ============================
   Buttons
   ============================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 24px;
    font-size: var(--fs-nav);
    font-weight: 500;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
    cursor: pointer;
    border: none;
    text-decoration: none;
}

.btn--primary {
    background: var(--primary);
    color: #fff;
}

.btn--primary:hover {
    background: var(--primary-light);
    color: #fff;
}

.btn--accent {
    background: var(--accent);
    color: var(--primary-dark);
}

.btn--accent:hover {
    background: var(--accent-light);
}

.btn--outline {
    border: 1px solid var(--primary);
    color: var(--primary);
    background: transparent;
}

.btn--outline:hover {
    background: var(--primary);
    color: #fff;
}

.btn--ghost {
    color: var(--text-light);
    padding: 6px 12px;
}

.btn--ghost:hover {
    color: var(--primary);
    background: var(--border-light);
}

.btn--sm {
    padding: 6px 14px;
    font-size: var(--fs-small);
}

.btn--lg {
    padding: 14px 32px;
    font-size: calc(var(--fs-nav) + 2px);
}


/* ============================
   Section Layout
   ============================ */
.section {
    padding: 50px 0;
}

.section--gray {
    background: var(--border-light);
}

.section__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.section__title {
    font-size: var(--fs-h2);
    font-weight: 700;
    color: var(--text);
    position: relative;
    padding-left: 16px;
}

.section__title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 24px;
    background: var(--accent);
    border-radius: 2px;
}

.section__link {
    font-size: var(--fs-meta);
    font-weight: 500;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 4px;
}

.section__link:hover {
    gap: 8px;
}


/* Section Headers */
.section {
    padding: 48px 0;
}

.section--gray {
    background: var(--bg);
}

.section__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
}

.section__title {
    font-size: var(--fs-h2);
    font-weight: 800;
    color: var(--text);
    position: relative;
    display: inline-flex;
    align-items: center;
    font-family: var(--font-bengali);
}

.section__link {
    font-size: var(--fs-nav);
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.section__link:hover {
    gap: 8px;
    color: var(--primary-dark);
}

/* ============================
   Forms
   ============================ */
.form-group {
    margin-bottom: 18px;
}

.form-label {
    display: block;
    font-size: var(--fs-meta);
    font-weight: 600;
    color: var(--text);
    margin-bottom: 6px;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: var(--fs-nav);
    font-family: inherit;
    transition: border-color var(--transition);
    background: #fff;
    color: var(--text);
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(10, 61, 97, .08);
}

.form-textarea {
    min-height: 120px;
    resize: vertical;
}

.form-error {
    font-size: var(--fs-small);
    color: #e53e3e;
    margin-top: 4px;
}

/* ============================
   Admin Form Styles
   ============================ */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: var(--fs-meta);
    font-weight: 600;
    color: var(--text);
    margin-bottom: 6px;
    letter-spacing: 0.2px;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 10px 14px;
    font-size: var(--fs-nav);
    font-family: var(--font-sans);
    color: var(--text);
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    transition: border-color var(--transition), box-shadow var(--transition);
    outline: none;
}

.form-input:focus,
.form-textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(10, 61, 97, .08);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: var(--text-lighter);
}

.form-textarea {
    resize: vertical;
    line-height: 1.6;
}

/* ============================
   Search Box
   ============================ */
.search-box {
    position: relative;
}

.search-box__input {
    padding: 8px 36px 8px 14px;
    border: 1px solid var(--border);
    border-radius: 22px;
    font-size: var(--fs-meta);
    width: 200px;
    transition: all var(--transition);
    background: var(--border-light);
}

.search-box__input:focus {
    width: 260px;
    background: #fff;
    border-color: var(--primary);
    outline: none;
}

.search-box__btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-lighter);
}

/* Dropdown */
.nav__item--dropdown {
    position: relative;
}

.nav__item--dropdown .nav__link {
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav__dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    width: 240px;
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all .2s;
    z-index: 100;
    padding: 8px 0;
    list-style: none;
    border: 1px solid var(--border);
}

.nav__item--dropdown:hover .nav__dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav__dropdown li {
    border-bottom: 1px solid var(--border-light);
}

.nav__dropdown li:last-child {
    border-bottom: none;
}

.nav__dropdown a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    color: var(--text);
    font-size: 14px;
    text-decoration: none;
    transition: background .2s, color .2s;
}

.nav__dropdown a:hover {
    background: rgba(0, 0, 0, .02);
    color: var(--primary);
}

.nav__count {
    font-size: 12px;
    color: var(--text-light);
    background: var(--bg);
    padding: 2px 8px;
    border-radius: 12px;
}

[data-theme="dark"] .nav__dropdown {
    background: var(--bg-card);
    border-color: var(--border);
}

[data-theme="dark"] .nav__dropdown a {
    color: var(--text-light);
}

[data-theme="dark"] .nav__dropdown a:hover {
    background: rgba(255, 255, 255, .05);
    color: var(--primary-light);
}

[data-theme="dark"] .nav__count {
    background: rgba(255, 255, 255, .1);
    color: var(--text-lighter);
}

/* Mobile Auth Links Hidden on Desktop */
.mobile-auth-link {
    display: none;
}

.desktop-auth-link {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Mobile Nav — handled by header.css drawer styles */
@media (max-width: 768px) {
    .desktop-auth-link {
        display: none !important;
    }
}

.search-results {
    position: absolute;
    top: 100%;
    right: 0;
    width: 380px;
    background: var(--bg-card);
    border-radius: var(--radius);
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border);
    margin-top: 12px;
    max-height: 480px;
    overflow-y: auto;
    z-index: 300;
}

.search-results__item {
    display: flex;
    gap: 14px;
    padding: 16px;
    border-bottom: 1px solid var(--border-light);
    transition: background var(--transition);
    text-decoration: none;
}

.search-results__item:last-child {
    border-bottom: none;
}

.search-results__item:hover {
    background: var(--bg-hover);
}

.search-results__thumb {
    width: 64px;
    height: 64px;
    flex-shrink: 0;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--border-light);
}

.search-results__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.search-results__thumb-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--border-light), var(--border));
    color: var(--text-lighter);
}

.search-results__info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
}

.search-results__info h4 {
    font-size: var(--fs-nav);
    font-weight: 600;
    line-height: 1.4;
    color: var(--text);
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.search-results__meta {
    font-size: calc(var(--fs-small) - 1px);
    color: var(--text-light);
    margin-bottom: 4px;
}

.search-results__tags {
    font-size: calc(var(--fs-small) - 2px);
    color: var(--text-lighter);
    font-weight: 500;
}

/* ============================
   Pagination
   ============================ */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin-top: 40px;
}

.pagination a,
.pagination span {
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
    transition: all var(--transition);
}

.pagination a:hover {
    background: var(--primary);
    color: #fff;
}

.pagination .active {
    background: var(--primary);
    color: #fff;
}

.pagination .disabled {
    color: var(--text-lighter);
    pointer-events: none;
}

/* ============================
   Pagination
   ============================ */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
    margin-top: 24px;
    flex-wrap: wrap;
}

.pagination nav {
    display: flex;
    justify-content: center;
}

.pagination nav>div {
    display: flex;
    align-items: center;
    gap: 4px;
}

.pagination nav span,
.pagination nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    font-size: 13px;
    font-weight: 500;
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: all var(--transition);
}

.pagination nav a {
    color: var(--text);
    background: var(--bg-card);
    border: 1px solid var(--border);
}

.pagination nav a:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.pagination nav span[aria-current="page"] span,
.pagination nav .active span {
    background: var(--primary);
    color: #fff;
    border: 1px solid var(--primary);
    font-weight: 700;
}

.pagination nav span[aria-disabled="true"] span,
.pagination nav .disabled span {
    color: var(--text-lighter);
    background: var(--border-light);
    border: 1px solid var(--border-light);
    cursor: not-allowed;
}

/* Pagination info text (Showing x to y of z) */
.pagination p {
    font-size: 13px;
    color: var(--text-light);
    margin: 0;
}

/* ============================
   Pagination
   ============================ */
.pagination {
    margin-top: 40px;
}

.pagination-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.pagination-nav__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    text-decoration: none;
    transition: all 0.2s ease;
}

.pagination-nav__link:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.pagination-nav__link--disabled {
    color: var(--text-lighter);
    cursor: not-allowed;
    opacity: .5;
}

.pagination-nav__link--disabled:hover {
    background: var(--bg-card);
    color: var(--text-lighter);
    border-color: var(--border-light);
}

.pagination-nav__pages {
    display: flex;
    align-items: center;
    gap: 4px;
}

.pagination-nav__page {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    text-decoration: none;
    transition: all 0.2s ease;
}

.pagination-nav__page:hover {
    background: var(--bg);
    border-color: var(--primary);
    color: var(--primary);
}

.pagination-nav__page--active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    font-weight: 700;
}

.pagination-nav__dots {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    font-size: 16px;
    color: var(--text-lighter);
}

/* Status Badges */
.badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: calc(var(--fs-small) - 1px);
    font-weight: 600;
}

.badge--published {
    background: #d1fae5;
    color: #065f46;
}

.badge--draft {
    background: #fef3c7;
    color: #92400e;
}

.badge--pending {
    background: #dbeafe;
    color: #1e40af;
}

.badge--scheduled {
    background: #ede9fe;
    color: #6d28d9;
}

.badge--spam {
    background: #fee2e2;
    color: #991b1b;
}

/* ============================
   Alerts
   ============================ */
.alert {
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    font-size: var(--fs-nav);
    margin-bottom: 20px;
}

.alert--success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.alert--error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.alert--info {
    background: #dbeafe;
    color: #1e40af;
    border: 1px solid #bfdbfe;
}

/* ============================
   Empty State
   ============================ */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-light);
}

.empty-state__icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.empty-state__title {
    font-size: calc(var(--fs-h3) + 2px);
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text);
}

.empty-state__text {
    font-size: var(--fs-nav);
}

/* ============================
   Animations
   ============================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-in {
    animation: fadeInUp 0.5s ease forwards;
    opacity: 0;
}

.animate-in:nth-child(1) {
    animation-delay: 0.05s;
}

.animate-in:nth-child(2) {
    animation-delay: 0.1s;
}

.animate-in:nth-child(3) {
    animation-delay: 0.15s;
}

.animate-in:nth-child(4) {
    animation-delay: 0.2s;
}

.animate-in:nth-child(5) {
    animation-delay: 0.25s;
}

.animate-in:nth-child(6) {
    animation-delay: 0.3s;
}

/* Loading Skeleton */
.skeleton {
    background: linear-gradient(90deg, var(--border-light) 25%, var(--border) 50%, var(--border-light) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--radius-sm);
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

/* ============================
   Theme Toggle
   ============================ */
.theme-toggle {
    background: none;
    border: none;
    color: rgba(255, 255, 255, .7);
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease, transform 0.2s ease;
    border-radius: 50%;
}

.theme-toggle:hover {
    color: var(--accent);
    transform: scale(1.15);
}

/* Show sun in dark mode, moon in light mode */
.theme-toggle__sun {
    display: none;
}

.theme-toggle__moon {
    display: block;
}

[data-theme="dark"] .theme-toggle__sun {
    display: block;
}

[data-theme="dark"] .theme-toggle__moon {
    display: none;
}

/* ============================
   Reading Progress Bar
   ============================ */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--accent-light));
    z-index: 9999;
    transition: width 0.1s linear;
    border-radius: 0 2px 2px 0;
}

/* ============================
   Toast Notifications
   ============================ */
.toast-container {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.toast {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    border-radius: var(--radius);
    background: var(--bg-card);
    color: var(--text);
    box-shadow: 0 8px 30px rgba(0, 0, 0, .12);
    border: 1px solid var(--border);
    font-size: var(--fs-nav);
    font-weight: 500;
    pointer-events: auto;
    animation: toastIn 0.35s ease forwards;
    min-width: 280px;
    max-width: 420px;
}

.toast--success {
    border-left: 4px solid #10b981;
}

.toast--success .toast__icon {
    color: #10b981;
}

.toast--error {
    border-left: 4px solid #ef4444;
}

.toast--error .toast__icon {
    color: #ef4444;
}

.toast--info {
    border-left: 4px solid #3b82f6;
}

.toast--info .toast__icon {
    color: #3b82f6;
}

.toast__icon {
    flex-shrink: 0;
}

.toast__message {
    flex: 1;
    line-height: 1.4;
}

.toast__close {
    flex-shrink: 0;
    color: var(--text-lighter);
    cursor: pointer;
    padding: 2px;
    border-radius: 4px;
    transition: all 0.15s ease;
    background: none;
    border: none;
}

.toast__close:hover {
    color: var(--text);
    background: var(--border-light);
}

.toast.toast--out {
    animation: toastOut 0.3s ease forwards;
}

@keyframes toastIn {
    from {
        opacity: 0;
        transform: translateX(100px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes toastOut {
    from {
        opacity: 1;
        transform: translateX(0);
    }

    to {
        opacity: 0;
        transform: translateX(100px);
    }
}

/* ============================
   Micro-Animations
   ============================ */

/* Button hover lift */
.btn {
    transition: all 0.2s ease;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, .1);
}

.btn:active {
    transform: translateY(0) scale(0.98);
}

/* Post card hover */
.post-card {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .08);
}

/* Category card hover */
.category-card {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-card:hover {
    transform: translateY(-4px) scale(1.02);
}

/* Share buttons pulse on hover */
.share-btn {
    transition: transform 0.2s ease, background 0.2s ease;
}

.share-btn:hover {
    transform: scale(1.12);
}

/* Sidebar widget links */
.sidebar__tag:hover,
.sidebar__post-title:hover {
    transform: translateX(3px);
    transition: transform 0.15s ease;
}

/* Nav link underline animation — desktop only */
@media (min-width: 769px) {
    .nav__link {
        position: relative;
    }

    .nav__link::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 50%;
        width: 0;
        height: 3px;
        background: linear-gradient(90deg, var(--accent), var(--primary-light), var(--accent));
        background-size: 200% 100%;
        transition: width 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), left 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), opacity 0.3s ease;
        border-radius: 3px 3px 0 0;
        opacity: 0;
        box-shadow: 0 -2px 8px rgba(232, 168, 56, 0.3);
        animation: navBarShimmer 3s ease-in-out infinite;
    }

    .nav__link:hover::after,
    .nav__link--active::after {
        width: 80%;
        left: 10%;
        opacity: 1;
    }
}

@keyframes navBarShimmer {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

/* Image scale on hover in thumbnails */
.post-card__image img {
    transition: transform 0.4s ease;
}

.post-card__image:hover img {
    transform: scale(1.05);
}

/* ============================
   Hero Section (Home)
   ============================ */
.hero {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 60%, var(--primary-light) 100%);
    padding: 60px 0;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(232, 168, 56, .15) 0%, transparent 70%);
    border-radius: 50%;
}

.hero__grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
    align-items: center;
}

.hero__category {
    display: inline-block;
    background: var(--accent);
    color: var(--primary-dark);
    padding: 4px 14px;
    border-radius: 20px;
    font-size: var(--fs-small);
    font-weight: 600;
    font-family: var(--font-bengali);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
}

.hero__title {
    font-size: calc(var(--fs-h1) + 10px);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 16px;
    font-family: var(--font-bengali);
}

.hero__excerpt {
    font-size: var(--fs-h3);
    color: rgba(255, 255, 255, .8);
    line-height: 1.7;
    margin-bottom: 24px;
    font-family: var(--font-bengali);
}

.hero__meta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: var(--fs-meta);
    color: rgba(255, 255, 255, .7);
}

.hero__meta-dot {
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, .4);
    border-radius: 50%;
}

.hero__image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    aspect-ratio: 16/10;
}

.hero__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


/* ============================
   Hero Enhancements
   ============================ */
.hero__cta {
    margin-top: 24px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.hero__cta svg {
    transition: transform 0.3s ease;
}

.hero__cta:hover svg {
    transform: translateX(4px);
}

.hero__image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ============================
   Post Cards
   ============================ */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.posts-grid--2col {
    grid-template-columns: repeat(2, 1fr);
}

.posts-grid--4col {
    grid-template-columns: repeat(4, 1fr);
}

.post-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .04), 0 1px 3px rgba(0, 0, 0, .03);
    transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 1px solid var(--border-light);
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.post-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--primary-light));
    transition: width 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

.post-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, .08), 0 6px 12px rgba(0, 0, 0, .05);
    border-color: var(--border);
}

.post-card:hover::after {
    width: 100%;
}

.post-card__image {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
}

.post-card__image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(transparent, rgba(0, 0, 0, .08));
    pointer-events: none;
    z-index: 1;
}

.post-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.post-card:hover .post-card__image img {
    transform: scale(1.06);
}

.post-card__category {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: var(--primary);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: calc(var(--fs-small) - 1px);
    font-weight: 600;
    font-family: var(--font-bengali);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .08);
    transition: all 0.3s ease;
}

.post-card:hover .post-card__category {
    background: var(--accent);
    color: var(--primary-dark);
}

.post-card__body {
    padding: 20px 22px 22px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.post-card__title {
    font-size: calc(var(--fs-h3) + 1px);
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 10px;
    color: var(--text);
    font-family: var(--font-bengali);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-card__title a {
    color: inherit;
    transition: color 0.2s ease;
}

.post-card__title a:hover {
    color: var(--primary);
}

.post-card__excerpt {
    font-size: var(--fs-body);
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 16px;
    font-family: var(--font-bengali);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-card__meta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: var(--fs-small);
    color: var(--text-lighter);
    padding-top: 14px;
    border-top: 1px solid var(--border-light);
    margin-top: auto;
}

.post-card__meta svg {
    width: 14px;
    height: 14px;
}


/* Post Card Horizontal */
.post-card--horizontal {
    display: grid;
    grid-template-columns: 200px 1fr;
}

.post-card--horizontal .post-card__image {
    aspect-ratio: auto;
    height: 100%;
}

/* Post Card Small (sidebar) */
.post-card--small {
    display: flex;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid var(--border-light);
    background: transparent;
    box-shadow: none;
    border-radius: 0;
    border: none;
}

.post-card--small:hover {
    transform: none;
}

.post-card--small .post-card__image {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
    aspect-ratio: auto;
}

.post-card--small .post-card__body {
    padding: 0;
}

.post-card--small .post-card__title {
    font-size: var(--fs-body);
    margin-bottom: 4px;
}

.post-card--small .post-card__number {
    font-size: calc(var(--fs-h2) + 2px);
    font-weight: 800;
    color: var(--border);
    line-height: 1;
    margin-bottom: 4px;
}

/* ============================
   Single Post
   ============================ */
.article {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
}

.article__header {
    margin-bottom: 32px;
}

.article__category {
    display: inline-block;
    background: var(--accent);
    color: var(--primary-dark);
    padding: 4px 14px;
    border-radius: 20px;
    font-size: var(--fs-small);
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.article__title {
    font-size: var(--fs-h1);
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 16px;
    color: var(--text);
    font-family: var(--font-bengali);
}

.article__meta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: var(--fs-meta);
    color: var(--text-light);
    flex-wrap: wrap;
}

.article__meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.article__featured-image {
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 32px;
    aspect-ratio: 16/9;
}

.article__featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article__content {
    font-size: var(--fs-content);
    line-height: 1.9;
    color: var(--text);
    font-family: var(--font-bengali);
}

.article__content p {
    margin-bottom: 20px;
    text-indent: 2em;
    /* Book-style paragraph indentation */
}

.article__content h2 {
    font-size: calc(var(--fs-h2) + 2px);
    font-weight: 700;
    margin: 32px 0 16px;
}

.article__content h3 {
    font-size: calc(var(--fs-h3) + 2px);
    font-weight: 600;
    margin: 28px 0 14px;
}

.article__content img {
    border-radius: var(--radius);
    margin: 24px 0;
}

.article__content blockquote {
    border-left: 4px solid var(--accent);
    padding: 16px 24px;
    background: var(--border-light);
    border-radius: 0 var(--radius) var(--radius) 0;
    margin: 24px 0;
    font-style: italic;
    color: var(--text-light);
}

.article__tags {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
    flex-wrap: wrap;
}

.article__tags-label {
    font-size: var(--fs-nav);
    font-weight: 600;
    color: var(--text);
}

.article__share {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
}

.share-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: all var(--transition);
}

.share-btn:hover {
    transform: scale(1.1);
    color: #fff;
}

.share-btn--fb {
    background: #1877f2;
}

.share-btn--tw {
    background: #1da1f2;
}

.share-btn--wa {
    background: #25d366;
}

.share-btn--li {
    background: #0077b5;
}

/* ============================
   Comments
   ============================ */
.comments {
    margin-top: 40px;
}

.comments__title {
    font-size: calc(var(--fs-h3) + 2px);
    font-weight: 700;
    margin-bottom: 24px;
}

.comment {
    display: flex;
    gap: 16px;
    padding: 20px 0;
    border-bottom: 1px solid var(--border-light);
}

.comment__avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: calc(var(--fs-nav) + 2px);
    flex-shrink: 0;
}

.comment__body {
    flex: 1;
}

.comment__author {
    font-weight: 600;
    font-size: var(--fs-nav);
    color: var(--text);
}

.comment__date {
    font-size: var(--fs-small);
    color: var(--text-lighter);
}

.comment__text {
    font-size: var(--fs-nav);
    color: var(--text-light);
    margin-top: 6px;
    line-height: 1.6;
}

.comment__replies {
    margin-left: 60px;
}

/* Comment Form */
.comment-form {
    margin-top: 32px;
}

.comment-form__title {
    font-size: var(--fs-h3);
    font-weight: 700;
    margin-bottom: 16px;
}


/* ============================
   Table of Contents (Rank Math)
   ============================ */
.wp-block-rank-math-toc-block {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 40px;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
}

.wp-block-rank-math-toc-block:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--border);
}

/* Header with toggle */
.rm-toc-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    user-select: none;
    padding-bottom: 0;
    margin-bottom: 0;
}

.rm-toc-title {
    font-size: var(--fs-h3);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text);
}

.rm-toc-toggle {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--bg);
    color: var(--text-light);
    transition: transform 0.3s ease, background 0.2s ease;
}

.rm-toc-toggle:hover {
    background: var(--border-light);
}

.wp-block-rank-math-toc-block:not(.is-open) .rm-toc-toggle {
    transform: rotate(-90deg);
}

/* Nav list — collapsible */
.wp-block-rank-math-toc-block nav {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
        margin-top 0.3s ease,
        padding-top 0.3s ease;
    margin-top: 0;
    padding-top: 0;
}

.wp-block-rank-math-toc-block.is-open nav {
    max-height: 2000px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border-light);
}

/* List styles */
.wp-block-rank-math-toc-block nav>ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.wp-block-rank-math-toc-block nav ul ul {
    list-style: none;
    padding-left: 20px;
    margin: 4px 0 0;
}

/* List items */
.wp-block-rank-math-toc-block nav li {
    margin-bottom: 4px;
    font-size: 15px;
}

.wp-block-rank-math-toc-block nav ul ul li {
    font-size: 14px;
    opacity: 0.9;
}

.wp-block-rank-math-toc-block nav ul ul ul li {
    font-size: 13.5px;
    opacity: 0.8;
}

/* Links */
.wp-block-rank-math-toc-block nav a {
    display: block;
    color: var(--text);
    padding: 7px 12px;
    border-radius: var(--radius);
    text-decoration: none;
    transition: all 0.2s ease;
    border-left: 2px solid transparent;
    line-height: 1.5;
}

.wp-block-rank-math-toc-block nav a:hover {
    background: var(--bg);
    color: var(--primary);
    padding-left: 16px;
}

/* Active state */
.wp-block-rank-math-toc-block nav li.active>a {
    background: rgba(10, 61, 97, 0.05);
    color: var(--primary);
    border-left-color: var(--primary);
    font-weight: 600;
}

/* ============================
   Table of Contents — Modern Premium
   ============================ */
.article__toc {
    position: relative;
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 16px;
    margin-bottom: 36px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    font-family: var(--font-bengali);

}

/* Gradient accent bar */
.article__toc::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, var(--primary), var(--accent, #2563eb));
    border-radius: 4px 0 0 4px;
}

/* Header */
.article__toc-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px 16px 28px;
    cursor: pointer;
    user-select: none;
    transition: background 0.2s ease;
}

.article__toc-header:hover {
    background: rgba(0, 0, 0, 0.02);
}

.article__toc-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: var(--fs-content);
    color: var(--text);
    letter-spacing: -0.01em;
}

.article__toc-title svg {
    color: var(--primary);
    flex-shrink: 0;
}

/* Heading count badge */
.article__toc-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 20px;
    background: var(--primary);
    color: #fff;
    font-size: var(--fs-small);
    font-weight: 700;
    line-height: 1;
}

/* Arrow */
.article__toc-arrow {
    color: var(--text-lighter);
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), color 0.2s ease;
    flex-shrink: 0;
}

.article__toc:hover .article__toc-arrow {
    color: var(--primary);
}

.article__toc.is-open .article__toc-arrow {
    transform: rotate(180deg);
}

/* Body / List container */
.article__toc-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1), padding 0.35s ease;
    padding: 0 24px 0 28px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.article__toc.is-open .article__toc-body {
    max-height: 800px;
    padding: 4px 24px 20px 28px;
}

/* Individual TOC item */
.toc-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 14px;
    border-radius: 10px;
    text-decoration: none;
    color: var(--text-light);
    font-size: calc(var(--fs-nav) + 2px);
    font-weight: 450;
    line-height: 1.5;
    transition: all 0.2s ease;
    position: relative;
}

.toc-item:hover {
    background: rgba(0, 0, 0, 0.04);
    color: var(--primary);
    transform: translateX(3px);
}

/* Number circle */
.toc-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #e2e8f0;
    color: #475569;
    font-size: var(--fs-meta);
    font-weight: 700;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.toc-text {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Sub-items (H3) */
.toc-item--sub {
    margin-left: 20px;
    font-size: 15px;
    padding: 6px 12px;
}

.toc-item--sub .toc-num {
    width: 20px;
    height: 20px;
    font-size: var(--fs-nav);
    background: transparent;
    color: var(--text-lighter);
    font-weight: 900;
}

/* Active state */
.toc-item.is-active {
    background: linear-gradient(135deg, rgba(10, 61, 97, 0.08), rgba(37, 99, 235, 0.06));
    color: var(--primary);
    font-weight: 600;
}

.toc-item.is-active .toc-num {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 2px 8px rgba(10, 61, 97, 0.25);
}

.toc-item--sub.is-active .toc-num {
    background: transparent;
    color: var(--primary);
    box-shadow: none;
}

/* Dark mode adjustments */
[data-theme="dark"] .article__toc {
    background: linear-gradient(135deg, #1e293b, #1a2332);
    border-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .toc-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .toc-num {
    background: #334155;
    color: #94a3b8;
}

[data-theme="dark"] .toc-item.is-active {
    background: linear-gradient(135deg, rgba(96, 165, 250, 0.12), rgba(59, 130, 246, 0.08));
}

[data-theme="dark"] .toc-item.is-active .toc-num {
    background: #3b82f6;
}

/* Responsive */
@media (max-width: 768px) {
    .article__toc {
        border-radius: 12px;
        margin-bottom: 24px;
    }

    .article__toc-header {
        padding: 14px 16px 14px 20px;
    }

    .article__toc-body {
        padding-left: 20px;
        padding-right: 16px;
    }

    .article__toc.is-open .article__toc-body {
        padding: 4px 16px 16px 20px;
    }

    .toc-item {
        padding: 7px 10px;
        gap: 10px;
    }

    .toc-item--sub {
        margin-left: 12px;
    }
}

/* ============================
   Donation / Support CTA
   ============================ */
.donation-cta {
    margin-top: 36px;
    padding: 40px 32px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    border-radius: var(--radius-lg);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.donation-cta::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -30%;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    pointer-events: none;
}

.donation-cta::after {
    content: '';
    position: absolute;
    bottom: -40%;
    left: -20%;
    width: 250px;
    height: 250px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 50%;
    pointer-events: none;
}

.donation-cta__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    margin-bottom: 16px;
    color: #fff;
    animation: pulse-heart 2s infinite ease-in-out;
}

@keyframes pulse-heart {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.08);
    }
}

.donation-cta__heading {
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
}

.donation-cta__desc {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.6;
    max-width: 480px;
    margin: 0 auto 24px;
    position: relative;
    z-index: 1;
}

.donation-cta__btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    background: var(--accent);
    color: var(--primary-dark);
    font-size: 16px;
    font-weight: 700;
    border-radius: 50px;
    text-decoration: none;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.donation-cta__btn:hover {
    background: var(--accent-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.3);
}

/* Two-column layout when QR code is present */
.donation-cta--with-qr {
    display: flex;
    align-items: center;
    gap: 32px;
    text-align: left;
    padding: 36px 40px;
}

.donation-cta--with-qr .donation-cta__content {
    flex: 1;
}

.donation-cta--with-qr .donation-cta__desc {
    margin: 0 0 24px;
}

.donation-cta__qr {
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.donation-cta__qr-card {
    background: #fff;
    border-radius: 16px;
    padding: 16px;
    text-align: center;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.donation-cta__qr-card img {
    width: 160px;
    height: 160px;
    object-fit: contain;
    display: block;
    margin: 0 auto 8px;
}

.donation-cta__qr-label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.donation-cta__upi-id {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: #f0f0f0;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    color: #333;
    cursor: pointer;
    transition: background 0.2s;
    position: relative;
}

.donation-cta__upi-id:hover {
    background: #e0e0e0;
}

.donation-cta__copy-msg {
    position: absolute;
    top: -28px;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: #fff;
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 6px;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

@media (max-width: 768px) {
    .donation-cta--with-qr {
        flex-direction: column;
        text-align: center;
        padding: 32px 20px;
    }

    .donation-cta--with-qr .donation-cta__desc {
        margin: 0 auto 24px;
    }

    .donation-cta__qr-card img {
        width: 140px;
        height: 140px;
    }
}

/* ============================
   Donation Modal
   ============================ */
.donation-cta__btn {
    border: none;
    cursor: pointer;
}

.donation-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.2s ease;
}

.donation-modal__card {
    background: var(--bg-card);
    border-radius: 20px;
    padding: 36px 32px;
    max-width: 380px;
    width: 90%;
    text-align: center;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.donation-modal__close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--bg-hover);
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-light);
    transition: all 0.2s;
}

.donation-modal__close:hover {
    background: var(--border);
    color: var(--text);
}

.donation-modal__header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 24px;
}

.donation-modal__header h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text);
    margin: 0;
}

.donation-modal__qr {
    background: #fff;
    border-radius: 16px;
    padding: 16px;
    display: inline-block;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    margin-bottom: 12px;
}

.donation-modal__qr img {
    width: 200px;
    height: 200px;
    object-fit: contain;
    display: block;
}

.donation-modal__scan-text {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 20px;
    font-weight: 500;
}

.donation-modal__upi-row {
    margin-bottom: 20px;
}

.donation-modal__upi-label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-lighter);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.donation-modal__upi-copy {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: var(--bg-hover);
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}

.donation-modal__upi-copy:hover {
    background: var(--border-light);
    border-color: var(--primary);
}

.donation-modal__copied {
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: #fff;
    font-size: 11px;
    padding: 4px 12px;
    border-radius: 6px;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.donation-modal__external-btn {
    display: inline-block;
    font-size: 13px;
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    margin-top: 4px;
}

.donation-modal__external-btn:hover {
    text-decoration: underline;
}

/* ==================================
   Sticky Share Bar
   ================================== */
.sticky-share {
    position: sticky;
    top: 100px;
    float: left;
    margin-left: -80px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 90;
}

.sticky-share__count {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    color: var(--text);
}

.sticky-share__count span {
    font-size: 20px;
    font-weight: 800;
    line-height: 1;
}

.sticky-share__count small {
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--text-light);
    margin-top: 4px;
}

.sticky-share__btn {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--bg-card);
    color: var(--text-light);
    border: 1px solid var(--border);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
}

/* Tooltips */
.sticky-share__btn::after {
    content: attr(data-tooltip);
    position: absolute;
    left: calc(100% + 12px);
    top: 50%;
    transform: translateY(-50%) translateX(5px);
    background: var(--text);
    color: var(--bg);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    z-index: 10;
}

.sticky-share__btn::before {
    content: '';
    position: absolute;
    left: calc(100% + 7px);
    top: 50%;
    transform: translateY(-50%) translateX(5px);
    border: 5px solid transparent;
    border-right-color: var(--text);
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    z-index: 10;
}

.sticky-share__btn:hover::after,
.sticky-share__btn:hover::before {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateX(0);
}

.sticky-share__btn:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: var(--shadow-lg);
}

.sticky-share__btn--fb:hover {
    color: #fff;
    background: #1877f2;
    border-color: #1877f2;
}

.sticky-share__btn--tw:hover {
    color: #fff;
    background: #1da1f2;
    border-color: #1da1f2;
}

.sticky-share__btn--wa:hover {
    color: #fff;
    background: #25d366;
    border-color: #25d366;
}

.sticky-share__btn--copy:hover {
    color: var(--primary);
    border-color: var(--primary);
    background: rgba(10, 61, 97, 0.05);
}

[data-theme="dark"] .sticky-share__btn {
    background: var(--bg-card);
    border-color: var(--border);
}

[data-theme="dark"] .sticky-share__btn--copy:hover {
    background: rgba(255, 255, 255, 0.1);
}

@media (max-width: 1024px) {
    .sticky-share {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        top: auto;
        margin: 0;
        float: none;
        flex-direction: row;
        justify-content: center;
        align-items: center;
        background: var(--bg-card);
        padding: 12px;
        border-top: 1px solid var(--border);
        box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.08);
        gap: 16px;
    }

    [data-theme="dark"] .sticky-share {
        box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.3);
    }

    .sticky-share__count {
        flex-direction: column;
        gap: 2px;
        margin: 0;
        padding-right: 16px;
        border-right: 1px solid var(--border);
    }

    .sticky-share__count span {
        font-size: 16px;
    }

    .sticky-share__count small {
        margin: 0;
        font-size: 10px;
    }

    .sticky-share__btn {
        width: 40px;
        height: 40px;
    }

    .sticky-share__btn:hover {
        transform: translateY(-2px);
    }
}

/* ============================
   Sidebar
   ============================ */
.content-with-sidebar {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 40px;
    align-items: start;
}

.sidebar__widget {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
}

.sidebar__title {
    font-size: calc(var(--fs-nav) + 2px);
    font-weight: 700;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--accent);
    color: var(--text);
}

/* ============================
   Popular Items Sidebar
   ============================ */
.popular-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-light);
    text-decoration: none;
    transition: all 0.2s ease;
}

.popular-item:last-child {
    border-bottom: none;
}

.popular-item:hover {
    padding-left: 4px;
}

.popular-item__rank {
    font-size: var(--fs-h2);
    font-weight: 800;
    color: var(--text-lighter);
    line-height: 1;
    min-width: 28px;
    flex-shrink: 0;
}

.popular-item__thumb {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    flex-shrink: 0;
}

.popular-item__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.popular-item__body {
    flex: 1;
    min-width: 0;
}

.popular-item__title {
    font-size: var(--fs-nav);
    font-weight: 600;
    color: var(--text);
    font-family: var(--font-bengali);
    line-height: 1.4;
    margin-bottom: 2px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.popular-item__views {
    font-size: var(--fs-small);
    color: var(--text-lighter);
}

.popular-item:hover .popular-item__title {
    color: var(--primary);
}

/* ============================
   Sidebar Categories
   ============================ */
.sidebar-cats {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sidebar-cat {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    font-size: var(--fs-nav);
    color: var(--text);
    text-decoration: none;
    transition: all 0.2s ease;
}

.sidebar-cat:hover {
    background: var(--border-light);
    color: var(--primary);
    padding-left: 16px;
}

.sidebar-cat__name {
    font-family: var(--font-bengali);
}

.sidebar-cat__count {
    background: var(--border-light);
    color: var(--text-light);
    font-size: var(--fs-small);
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 20px;
    min-width: 28px;
    text-align: center;
}

.sidebar-cat:hover .sidebar-cat__count {
    background: var(--primary);
    color: #fff;
}

/* Categories Grid */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.category-card {
    background: linear-gradient(145deg, #0a3d61 0%, #0d4f7e 50%, #14669e 100%);
    color: #fff;
    padding: 28px 22px 20px;
    border-radius: var(--radius-lg);
    text-decoration: none;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 4px 12px rgba(10, 61, 97, .15);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-height: 160px;
    justify-content: center;
}

.category-card::before {
    content: '';
    position: absolute;
    top: -30px;
    right: -30px;
    width: 100px;
    height: 100px;
    background: rgba(232, 168, 56, .1);
    border-radius: 50%;
    transition: all 0.5s ease;
}

.category-card::after {
    content: '';
    position: absolute;
    bottom: -40px;
    left: -20px;
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, .04);
    border-radius: 50%;
    transition: all 0.5s ease;
}

.category-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 16px 32px rgba(10, 61, 97, .25);
    background: linear-gradient(145deg, #0d4f7e 0%, #14669e 50%, #1a7cbf 100%);
    color: #fff;
}

.category-card:hover::before {
    transform: scale(1.8);
    background: rgba(232, 168, 56, .18);
}

.category-card:hover::after {
    transform: scale(1.5);
}

/* Floating badge */
.category-card__badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(232, 168, 56, .9);
    color: #1a1a2e;
    font-size: calc(var(--fs-small) - 1px);
    font-weight: 800;
    padding: 3px 9px;
    border-radius: 12px;
    line-height: 1.3;
    z-index: 2;
}

/* Icon */
.category-card__icon {
    font-size: 32px;
    margin-bottom: 10px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .15));
    z-index: 1;
}

/* Name */
.category-card__name {
    font-size: calc(var(--fs-nav) + 2px);
    font-weight: 700;
    margin-bottom: 10px;
    font-family: var(--font-bengali);
    color: #fff;
    line-height: 1.3;
    z-index: 1;
}

/* Footer */
.category-card__footer {
    display: flex;
    align-items: center;
    gap: 6px;
    z-index: 1;
    margin-top: auto;
}

.category-card__stories {
    font-size: var(--fs-small);
    color: rgba(255, 255, 255, .6);
    font-weight: 500;
}

.category-card__arrow {
    color: rgba(255, 255, 255, .4);
    transition: all 0.3s ease;
}

.category-card:hover .category-card__arrow {
    color: var(--accent);
    transform: translateX(4px);
}

.category-card:hover .category-card__stories {
    color: rgba(255, 255, 255, .85);
}



/* Tags */
.tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-badge {
    display: inline-block;
    padding: 5px 14px;
    background: var(--border-light);
    color: var(--text-light);
    border-radius: 20px;
    font-size: var(--fs-small);
    font-weight: 500;
    transition: all var(--transition);
}

.tag-badge:hover {
    background: var(--primary);
    color: #fff;
}

/* ============================
   Footer — Modern Professional
   ============================ */
.footer {
    background: linear-gradient(180deg, #0a1628 0%, #060e1a 100%);
    color: rgba(255, 255, 255, .75);
    font-family: var(--font-bengali);
    padding: 0;
    position: relative;
    overflow: hidden;
}

/* Decorative background orbs */
.footer::before {
    content: '';
    position: absolute;
    top: -120px;
    right: -80px;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(59, 130, 246, .08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.footer::after {
    content: '';
    position: absolute;
    bottom: -100px;
    left: -60px;
    width: 280px;
    height: 280px;
    background: radial-gradient(circle, rgba(232, 168, 56, .06) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

/* Accent gradient bar at top */
.footer__accent-bar {
    height: 4px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 40%, #3b82f6 70%, var(--primary-light) 100%);
    background-size: 200% 100%;
    animation: footerShimmer 6s ease infinite;
}

@keyframes footerShimmer {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

/* Grid */
.footer__grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
    gap: 48px;
    padding: 56px 0 48px;
    position: relative;
    z-index: 1;
}

/* Brand Column */
.footer__col--brand {
    padding-right: 24px;
}

.footer__brand {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
}

.footer__logo-img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, .12);
    box-shadow: 0 4px 16px rgba(0, 0, 0, .3);
}

.footer__brand-name {
    color: #fff;
    font-size: var(--fs-footer-brand, 18px);
    font-weight: 800;
    letter-spacing: 1.5px;
    line-height: 1.2;
}

.footer__brand-tagline {
    font-size: var(--fs-footer-tagline, 11px);
    color: rgba(255, 255, 255, .4);
    letter-spacing: 0.5px;
    font-weight: 400;
}

.footer__about {
    font-size: var(--fs-footer-about, 13px);
    line-height: 1.8;
    color: rgba(255, 255, 255, .5);
    margin-bottom: 24px;
    font-family: var(--font-bengali);
}

/* Social Icons — Glassmorphism */
.footer__social {
    display: flex;
    gap: 10px;
}

.footer__social-link {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(255, 255, 255, .06);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, .08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, .6);
    transition: all 0.3s cubic-bezier(.4, 0, .2, 1);
    text-decoration: none;
}

.footer__social-link:hover {
    background: rgba(59, 130, 246, .15);
    border-color: rgba(59, 130, 246, .3);
    color: #60a5fa;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, .15);
}

/* Column Headings */
.footer__heading {
    color: #fff;
    font-size: var(--fs-footer-heading, 14px);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 22px;
    position: relative;
    padding-bottom: 14px;
}

.footer__heading::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 28px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), transparent);
    border-radius: 2px;
}

/* Links with Arrow */
.footer__links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer__links li {
    margin-bottom: 0;
}

.footer__links a {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, .55);
    font-size: var(--fs-footer-link, 14px);
    text-decoration: none;
    padding: 7px 0;
    transition: all 0.25s ease;
    border-radius: 4px;
}

.footer__link-arrow {
    font-size: 11px;
    opacity: 0;
    transform: translateX(-6px);
    transition: all 0.25s ease;
    color: var(--accent);
}

.footer__links a:hover {
    color: #fff;
    padding-left: 4px;
}

.footer__links a:hover .footer__link-arrow {
    opacity: 1;
    transform: translateX(0);
}

/* CTA Column */
.footer__cta-text {
    font-size: var(--fs-footer-cta, 13px);
    line-height: 1.7;
    color: rgba(255, 255, 255, .5);
    margin-bottom: 20px;
    font-family: var(--font-bengali);
}

.footer__cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    background: linear-gradient(135deg, rgba(59, 130, 246, .15), rgba(139, 92, 246, .15));
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(59, 130, 246, .2);
    border-radius: 10px;
    color: #93c5fd;
    font-size: var(--fs-footer-btn, 13px);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-bottom: 20px;
}

.footer__cta-btn:hover {
    background: linear-gradient(135deg, rgba(59, 130, 246, .25), rgba(139, 92, 246, .25));
    border-color: rgba(59, 130, 246, .4);
    color: #bfdbfe;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(59, 130, 246, .12);
}

/* App Badge */
.footer__app-badge {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, .04);
    border: 1px solid rgba(255, 255, 255, .06);
    border-radius: 10px;
    width: fit-content;
}

.footer__badge-label {
    font-size: 11px;
    color: rgba(255, 255, 255, .4);
    font-weight: 400;
}

.footer__badge-text {
    font-size: 14px;
    color: #fff;
    font-weight: 700;
    letter-spacing: 0.3px;
}

/* Bottom Bar */
.footer__bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    margin-top: 0;
    border-top: 1px solid rgba(255, 255, 255, .07);
    font-size: var(--fs-footer-bottom, 12px);
    position: relative;
    z-index: 1;
}

.footer__bottom-left p {
    color: rgba(255, 255, 255, .35);
    margin: 0;
}

.footer__bottom-left strong {
    color: rgba(255, 255, 255, .55);
}

.footer__bottom-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer__bottom-right a {
    color: rgba(255, 255, 255, .4);
    text-decoration: none;
    font-size: var(--fs-footer-bottom, 12px);
    transition: color 0.2s ease;
}

.footer__bottom-right a:hover {
    color: #60a5fa;
}

.footer__dot {
    color: rgba(255, 255, 255, .2);
    font-size: 14px;
}

/* Dark Mode */
[data-theme="dark"] .footer {
    background: linear-gradient(180deg, #020617 0%, #000 100%);
}

/* Responsive */
@media (max-width: 1024px) {
    .footer__grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px 36px;
    }

    .footer__col--brand {
        grid-column: 1 / -1;
        padding-right: 0;
    }
}

@media (max-width: 640px) {
    .footer__grid {
        grid-template-columns: 1fr;
        gap: 36px;
        padding: 40px 0 36px;
    }

    .footer__bottom {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
}


/* ============================
   Back to Top
   ============================ */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 44px;
    height: 44px;
    background: var(--primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 500;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--primary-light);
    transform: translateY(-3px);
}

/* ============================
   Page Header (Category/Tag)
   ============================ */
.page-header {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: #fff;
    padding: 50px 0;
    text-align: center;
}

.page-header__title {
    font-size: var(--fs-h1);
    font-weight: 800;
    margin-bottom: 8px;
}

.page-header__desc {
    font-size: var(--fs-body);
    color: rgba(255, 255, 255, .7);
    max-width: 600px;
    margin: 0 auto;
}

.page-header__breadcrumb {
    display: flex;
    justify-content: center;
    gap: 8px;
    font-size: var(--fs-meta);
    color: rgba(255, 255, 255, .5);
    margin-top: 14px;
}

.page-header__breadcrumb a {
    color: rgba(255, 255, 255, .7);
}

.page-header__breadcrumb a:hover {
    color: var(--accent);
}

/* ============================
   Auth Pages
   ============================ */
/* ============================
   Auth Pages — Modern Layout
   ============================ */
.auth-page {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
}

.auth-page--register {
    padding: 40px 20px;
}

.auth-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    max-width: 900px;
    width: 100%;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .1), 0 4px 16px rgba(0, 0, 0, .06);
    border: 1px solid var(--border-light);
}

/* Branding Panel */
.auth-brand {
    background: linear-gradient(145deg, var(--primary-dark) 0%, var(--primary) 50%, #0d5a82 100%);
    padding: 48px 36px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
    color: #fff;
}

.auth-brand__decor {
    position: absolute;
    top: -30%;
    right: -30%;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(232, 168, 56, .1) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.auth-brand::after {
    content: '';
    position: absolute;
    bottom: -20%;
    left: -20%;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(255, 255, 255, .05) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.auth-brand__content {
    position: relative;
    z-index: 1;
}

.auth-brand__logo {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: rgba(255, 255, 255, .1);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    border: 1px solid rgba(255, 255, 255, .15);
}

.auth-brand__title {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 12px;
    line-height: 1.2;
}

.auth-brand__text {
    font-size: 14px;
    color: rgba(255, 255, 255, .7);
    line-height: 1.7;
    margin-bottom: 32px;
}

.auth-brand__features {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.auth-brand__feature {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, .85);
}

.auth-brand__feature svg {
    flex-shrink: 0;
    color: var(--accent);
}

/* Form Panel */
.auth-form-panel {
    background: var(--bg-card);
    padding: 44px 36px;
}

.auth-form__title {
    font-size: 24px;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 6px;
}

.auth-form__subtitle {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 28px;
}

.auth-form-panel .form-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 6px;
}

.auth-form-panel .form-label svg {
    color: var(--text-lighter);
}

.auth-form-panel .form-input {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    font-size: 14px;
    transition: all 0.2s ease;
    background: var(--bg);
}

.auth-form-panel .form-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(10, 61, 97, .08);
    outline: none;
}

/* Password toggle wrapper */
.form-input-wrapper {
    position: relative;
}

.form-input-wrapper .form-input {
    padding-right: 44px;
}

.form-input__toggle {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-lighter);
    padding: 4px;
    display: flex;
    transition: color 0.2s ease;
}

.form-input__toggle:hover {
    color: var(--primary);
}

/* Password Strength */
.pwd-strength {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
    min-height: 16px;
}

.pwd-strength__bar {
    flex: 1;
    height: 4px;
    background: var(--border-light);
    border-radius: 4px;
    overflow: hidden;
}

.pwd-strength__fill {
    height: 100%;
    width: 0;
    border-radius: 4px;
    transition: width 0.4s ease, background 0.4s ease;
}

.pwd-strength__text {
    font-size: 11px;
    font-weight: 700;
    min-width: 55px;
    text-align: right;
}

/* Submit Button */
.auth-submit-btn {
    width: 100%;
    margin-top: 8px;
    padding: 13px 20px;
    font-size: 15px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: var(--radius);
    transition: all 0.25s ease;
}

.auth-submit-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(10, 61, 97, .2);
}

/* Trust Badges */
.auth-trust {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--border-light);
}

.auth-trust__item {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-lighter);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.auth-trust__item svg {
    color: #10b981;
}

/* Footer Link */
.auth-form__footer {
    text-align: center;
    margin-top: 20px;
    font-size: 13px;
    color: var(--text-light);
}

.auth-form__footer a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
}

.auth-form__footer a:hover {
    text-decoration: underline;
}

/* Google Button */
.google-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 12px 20px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg);
    color: var(--text);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.25s ease;
    font-family: inherit;
}

.google-btn:hover {
    border-color: #4285F4;
    background: rgba(66, 133, 244, .04);
    box-shadow: 0 2px 8px rgba(66, 133, 244, .12);
    transform: translateY(-1px);
}

/* Auth Divider */
.auth-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 20px 0;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-light);
}

.auth-divider span {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-lighter);
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Old auth-card fallback (login) */
.auth-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 40px;
    width: 100%;
    max-width: 440px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-light);
}

.auth-card__title {
    font-size: calc(var(--fs-h2) + 2px);
    font-weight: 800;
    text-align: center;
    margin-bottom: 8px;
}

.auth-card__subtitle {
    text-align: center;
    color: var(--text-light);
    font-size: var(--fs-nav);
    margin-bottom: 28px;
}

/* Responsive */
@media (max-width: 768px) {
    .auth-container {
        grid-template-columns: 1fr;
        max-width: 480px;
    }

    .auth-brand {
        padding: 32px 24px;
    }

    .auth-brand__features {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .auth-form-panel {
        padding: 32px 24px;
    }

    .auth-trust {
        gap: 12px;
    }
}

/* ============================
   Stats Trust Bar
   ============================ */
.stats-bar {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    padding: 32px 0;
    position: relative;
    overflow: hidden;
}

.stats-bar::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(232, 168, 56, .12) 0%, transparent 70%);
    border-radius: 50%;
}

.stats-bar__grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 60px;
}

.stats-bar__item {
    text-align: center;
}

.stats-bar__number {
    display: block;
    font-size: calc(var(--fs-h1) + 4px);
    font-weight: 800;
    color: #fff;
    line-height: 1.1;
    letter-spacing: -1px;
}

.stats-bar__label {
    font-size: var(--fs-meta);
    color: rgba(255, 255, 255, .65);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 4px;
    display: block;
}

.stats-bar__divider {
    width: 1px;
    height: 44px;
    background: rgba(255, 255, 255, .15);
}

/* ============================
   Editor's Picks
   ============================ */
.editor-picks__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.editor-pick {
    display: flex;
    flex-direction: column;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    text-decoration: none;
    transition: all 0.3s ease;
}

.editor-pick:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.editor-pick__image {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
}

.editor-pick__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.editor-pick:hover .editor-pick__image img {
    transform: scale(1.08);
}

.editor-pick__overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 8px 12px;
    background: linear-gradient(transparent, rgba(0, 0, 0, .6));
    display: flex;
    justify-content: flex-end;
}

.editor-pick__views {
    display: flex;
    align-items: center;
    gap: 4px;
    color: rgba(255, 255, 255, .9);
    font-size: var(--fs-small);
    font-weight: 500;
}

.editor-pick__body {
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.editor-pick__category {
    display: inline-block;
    font-size: calc(var(--fs-small) - 1px);
    font-weight: 600;
    font-family: var(--font-bengali);
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.editor-pick__title {
    font-size: calc(var(--fs-nav) + 2px);
    font-weight: 700;
    line-height: 1.4;
    color: var(--text);
    font-family: var(--font-bengali);
    margin-bottom: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.editor-pick__meta {
    font-size: var(--fs-small);
    color: var(--text-lighter);
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px solid var(--border-light);
}

/* ============================
   Newsletter Section
   ============================ */
.newsletter {
    padding: 60px 0;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
    position: relative;
    overflow: hidden;
}

.newsletter::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(232, 168, 56, .15) 0%, transparent 70%);
    border-radius: 50%;
}

.newsletter::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 255, 255, .05) 0%, transparent 70%);
    border-radius: 50%;
}

.newsletter__inner {
    position: relative;
    z-index: 1;
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.newsletter__icon {
    width: 64px;
    height: 64px;
    background: rgba(255, 255, 255, .12);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--accent);
    backdrop-filter: blur(4px);
}

.newsletter__title {
    font-size: calc(var(--fs-h2) + 6px);
    font-weight: 800;
    color: #fff;
    margin-bottom: 10px;
    letter-spacing: -0.5px;
}

.newsletter__desc {
    font-size: var(--fs-body);
    color: rgba(255, 255, 255, .7);
    margin-bottom: 28px;
    line-height: 1.6;
}

.newsletter__form {
    width: 100%;
}

.newsletter__input-group {
    display: flex;
    gap: 0;
    background: rgba(255, 255, 255, .12);
    border-radius: 50px;
    padding: 5px;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, .2);
}

.newsletter__input {
    flex: 1;
    padding: 14px 24px;
    border: none;
    background: transparent;
    color: #fff;
    font-size: var(--fs-nav);
    font-family: inherit;
    outline: none;
}

.newsletter__input::placeholder {
    color: rgba(255, 255, 255, .5);
}

.newsletter__btn {
    padding: 14px 32px;
    background: var(--accent);
    color: var(--primary-dark);
    border: none;
    border-radius: 50px;
    font-size: var(--fs-nav);
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    font-family: inherit;
}

.newsletter__btn:hover {
    background: var(--accent-light);
    transform: scale(1.02);
}

@media (max-width: 480px) {
    .newsletter__input-group {
        flex-direction: column;
        border-radius: 12px;
        background: transparent;
        border: none;
        padding: 0;
        gap: 12px;
    }

    .newsletter__input {
        background: rgba(255, 255, 255, .12);
        border: 1px solid rgba(255, 255, 255, .2);
        border-radius: 50px;
        width: 100%;
        text-align: center;
    }

    .newsletter__btn {
        width: 100%;
    }
}

.newsletter__error {
    color: #fca5a5;
    font-size: var(--fs-meta);
    margin-top: 10px;
}

/* ============================
   Admin Styles
   ============================ */
.admin-layout {
    display: grid;
    grid-template-columns: 250px 1fr;
    min-height: 100vh;
}

.admin-sidebar {
    background: var(--primary-dark);
    padding: 24px 0;
    color: #fff;
    z-index: 1000;
}

.admin-sidebar__brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 24px 24px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 12px;
}

.admin-sidebar__brand-text h3 {
    font-size: 16px;
    color: #fff;
    font-weight: 700;
    line-height: 1.2;
    margin: 0;
}

.admin-sidebar__brand-text p {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 400;
    margin: 2px 0 0 0;
}

.admin-sidebar__logo {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.admin-sidebar__logo h2 {
    font-size: 16px;
    color: #fff;
    font-weight: 700;
    line-height: 1.2;
}

.admin-sidebar__logo span {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 400;
}

.admin-nav {
    padding: 24px 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.admin-nav__link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 24px;
    color: rgba(255, 255, 255, .7);
    font-size: 14px;
    transition: all var(--transition);
}

.admin-nav__link:hover,
.admin-nav__link--active {
    background: rgba(255, 255, 255, .08);
    color: #fff;
}

.admin-content {
    padding: 0 32px 28px;
    background: var(--bg);
}

/* ---------- Admin Topbar ---------- */
.admin-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    margin-bottom: 12px;
    border-bottom: 1px solid var(--border-light);
    position: sticky;
    top: 0;
    z-index: 500;
    background: var(--bg);
}

.admin-topbar__title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text);
    margin: 0;
}

.admin-topbar__right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.admin-topbar__profile {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 12px;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}

.admin-topbar__profile:hover,
.admin-topbar__profile.active {
    background: var(--bg-hover);
}

.admin-topbar__avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border-light);
}

.admin-topbar__info {
    display: flex;
    flex-direction: column;
}

.admin-topbar__name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    line-height: 1.2;
}

.admin-topbar__role {
    font-size: 11px;
    color: var(--text-light);
}

.admin-topbar__chevron {
    color: var(--text-light);
    transition: transform 0.2s;
}

.admin-topbar__profile.active .admin-topbar__chevron {
    transform: rotate(180deg);
}

/* Dropdown */
.admin-topbar__dropdown {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    min-width: 260px;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    overflow: hidden;
    animation: topbarDropIn 0.15s ease;
}

.admin-topbar__dropdown.active {
    display: block;
}

.admin-topbar__dropdown-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    border-bottom: 1px solid var(--border-light);
    background: var(--bg-hover);
}

.admin-topbar__dropdown-body {
    padding: 6px 0;
}

.admin-topbar__dropdown-footer {
    padding: 6px 0;
    border-top: 1px solid var(--border-light);
}

.admin-topbar__dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text);
    text-decoration: none;
    transition: background 0.15s;
}

.admin-topbar__dropdown-item:hover {
    background: var(--bg-hover);
}

.admin-topbar__dropdown-item--danger {
    color: #e53e3e;
}

.admin-topbar__dropdown-item--danger:hover {
    background: #fff5f5;
}

@keyframes topbarDropIn {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

/* Title now shows in topbar — hide the duplicate h1 */
.admin-header h1 {
    display: none;
}

/* Hide admin-header entirely when it only has h1 and no action buttons */
.admin-header:not(:has(a, button, .btn)) {
    display: none;
}

/* When admin-header has action buttons but no h1, right-align them */
.admin-header:has(a, button, .btn) {
    justify-content: flex-end;
}

/* Dashboard Stats */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 32px;
}

.stat-card {
    background: #fff;
    padding: 24px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
}

.stat-card__value {
    font-size: 32px;
    font-weight: 800;
    line-height: 1.2;
    font-variant-numeric: tabular-nums;
}

.stat-card__label {
    font-size: 13px;
    color: var(--text-light);
    margin-top: 4px;
}

.dashboard-section-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 16px;
}

/* Data Table */
.table-wrapper {
    overflow-x: auto;
    border-radius: var(--radius-lg);
    box-shadow: 0 1px 3px rgba(0, 0, 0, .04), 0 4px 12px rgba(0, 0, 0, .03);
    border: 1px solid var(--border-light);
    background: var(--bg-card);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    white-space: nowrap;
}

.data-table thead {
    position: sticky;
    top: 0;
    z-index: 1;
}

.data-table th {
    text-align: left;
    padding: 14px 18px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #fff;
    background: var(--primary);
    border-bottom: none;
}

.data-table th:first-child {
    border-radius: var(--radius-lg) 0 0 0;
}

.data-table th:last-child {
    border-radius: 0 var(--radius-lg) 0 0;
}

.data-table td {
    padding: 13px 18px;
    font-size: 14px;
    color: var(--text);
    border-bottom: 1px solid var(--border-light);
    transition: background 0.15s ease;
    vertical-align: middle;
}

.data-table tbody tr:nth-child(even) td {
    background: rgba(10, 61, 97, .015);
}

.data-table tbody tr:hover td {
    background: rgba(10, 61, 97, .04);
}

.data-table tbody tr {
    position: relative;
    transition: all 0.15s ease;
}

.data-table tbody tr:hover {
    box-shadow: inset 3px 0 0 var(--accent);
}

/* SL Number Column */
.th-sl,
.td-sl {
    width: 50px;
    text-align: center;
    font-weight: 700;
    color: var(--text-lighter);
    font-size: 13px;
}

.td-sl {
    font-variant-numeric: tabular-nums;
}

/* Title Column */
.td-title {
    max-width: 300px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.td-title a {
    color: var(--text);
    font-weight: 600;
    transition: color 0.2s ease;
}

.td-title a:hover {
    color: var(--primary);
}

/* Date Column */
.td-date {
    color: var(--text-light);
    font-size: 13px;
}

/* Empty State */
.td-empty {
    text-align: center;
    padding: 48px 20px !important;
    color: var(--text-lighter);
    font-size: 15px;
}

/* Actions Column */
.td-actions {
    display: flex;
    gap: 6px;
    align-items: center;
}

/* Delete/Danger Button */
.btn--danger {
    color: #e53e3e;
    background: rgba(229, 62, 62, .06);
    border: 1px solid rgba(229, 62, 62, .15);
}

.btn--danger:hover {
    background: #e53e3e;
    color: #fff;
    border-color: #e53e3e;
}

/* Slug code tags */
.data-table code {
    background: var(--border-light);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    color: var(--primary);
    font-family: 'SF Mono', 'Consolas', monospace;
}

/* Settings Form */
.settings-form {
    max-width: 700px;
}

.settings-card {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 16px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    transition: all 0.2s ease;
}

.settings-card:hover {
    box-shadow: var(--shadow-md);
}

.settings-card__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.settings-card__title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
}

.settings-card__desc {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 0;
}

.settings-card__fields {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid var(--border-light);
}

.settings-field {
    flex: 1;
    min-width: 140px;
}

.settings-field__label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Toggle Switch */
.toggle {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 26px;
    flex-shrink: 0;
}

.toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle__slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background: var(--border);
    border-radius: 26px;
    transition: all 0.3s ease;
}

.toggle__slider::before {
    content: '';
    position: absolute;
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background: #fff;
    border-radius: 50%;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .15);
}

.toggle input:checked+.toggle__slider {
    background: var(--primary);
}

.toggle input:checked+.toggle__slider::before {
    transform: translateX(22px);
}

.toggle input:focus+.toggle__slider {
    box-shadow: 0 0 0 3px rgba(10, 61, 97, .1);
}


/* ============================
   Media Manager
   ============================ */
.mm {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 0;
    min-height: calc(100vh - 100px);
    background: #fff;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .04), 0 4px 12px rgba(0, 0, 0, .03);
    border: 1px solid var(--border-light);
}

/* Sidebar */
.mm-sidebar {
    background: #f8fafc;
    border-right: 1px solid var(--border-light);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.mm-sidebar__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 16px 12px;
    border-bottom: 1px solid var(--border-light);
}

.mm-sidebar__header h3 {
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
}

.mm-sidebar__btn {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    border: 1px solid var(--border);
    background: #fff;
    cursor: pointer;
    font-size: 16px;
    font-weight: 700;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .15s ease;
}

.mm-sidebar__btn:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.mm-sidebar__tree {
    flex: 1;
    overflow-y: auto;
    padding: 8px;
}

/* Folder Tree */
.mm-tree-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 10px;
    border-radius: 6px;
    font-size: 13px;
    color: var(--text);
    text-decoration: none;
    transition: all .15s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
}

.mm-tree-item:hover {
    background: rgba(10, 61, 97, .06);
    color: var(--primary);
}

.mm-tree-item--active {
    background: var(--primary) !important;
    color: #fff !important;
    font-weight: 600;
}

.mm-tree-item--active svg {
    fill: #fff !important;
}

.mm-tree-row {
    display: flex;
    align-items: center;
}

.mm-tree-toggle {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: none;
    cursor: pointer;
    opacity: .5;
    flex-shrink: 0;
    border-radius: 4px;
    transition: all .15s ease;
}

.mm-tree-toggle:hover {
    opacity: 1;
    background: var(--border-light);
}

.mm-tree-toggle svg {
    transition: transform .2s ease;
}

.mm-tree-group.is-open>.mm-tree-row>.mm-tree-toggle svg {
    transform: rotate(90deg);
}

.mm-tree-children {
    display: none;
    padding-left: 12px;
}

.mm-tree-group.is-open>.mm-tree-children {
    display: block;
}

/* Main Content */
.mm-main {
    display: flex;
    flex-direction: column;
    position: relative;
}

/* Toolbar */
.mm-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    border-bottom: 1px solid var(--border-light);
    background: #fff;
    gap: 16px;
    flex-wrap: wrap;
}

.mm-toolbar__left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.mm-toolbar__right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.mm-breadcrumb {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
}

.mm-breadcrumb a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.mm-breadcrumb a:hover {
    text-decoration: underline;
}

.mm-breadcrumb span {
    color: var(--text-lighter);
}

.mm-toolbar__count {
    font-size: 12px;
    color: var(--text-lighter);
    padding-left: 12px;
    border-left: 1px solid var(--border-light);
}

/* Search */
.mm-search {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--border-light);
    border-radius: 20px;
    padding: 6px 12px;
    border: 1px solid transparent;
    transition: all .2s ease;
}

.mm-search:focus-within {
    border-color: var(--primary);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(10, 61, 97, .08);
}

.mm-search svg {
    opacity: .5;
    flex-shrink: 0;
}

.mm-search input {
    border: none;
    background: none;
    font-size: 13px;
    outline: none;
    width: 140px;
    font-family: inherit;
    color: var(--text);
}

/* View Toggle */
.mm-view-toggle {
    display: flex;
    border: 1px solid var(--border);
    border-radius: 6px;
    overflow: hidden;
}

.mm-view-btn {
    width: 34px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: #fff;
    cursor: pointer;
    color: var(--text-lighter);
    transition: all .15s ease;
}

.mm-view-btn:hover {
    color: var(--primary);
}

.mm-view-btn--active {
    background: var(--primary);
    color: #fff;
}

.mm-view-btn+.mm-view-btn {
    border-left: 1px solid var(--border);
}

/* Bulk Action Bar */
.mm-bulk {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: #fff;
    font-size: 13px;
    animation: slideDown .2s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Drag & Drop Zone */
.mm-dropzone {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 40px;
    margin: 16px 20px;
    border: 2px dashed var(--primary);
    border-radius: var(--radius-lg);
    background: rgba(10, 61, 97, .03);
    color: var(--primary);
    font-size: 15px;
    font-weight: 600;
    animation: pulse 1.5s ease infinite;
}

.mm-dropzone.is-active {
    display: flex;
}

@keyframes pulse {

    0%,
    100% {
        border-color: var(--primary);
    }

    50% {
        border-color: var(--accent);
    }
}

/* Folder Actions */
.mm-folder-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    background: #fef3f2;
    border-bottom: 1px solid #fecaca;
    font-size: 13px;
}

.mm-folder-actions__path {
    font-weight: 600;
    color: var(--text);
}

/* Section Label */
.mm-section-label {
    padding: 12px 20px 6px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--text-lighter);
}

/* Folders Grid */
.mm-folders {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
    padding: 0 20px 16px;
}

.mm-folder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 16px 10px;
    border-radius: var(--radius);
    text-decoration: none;
    color: var(--text);
    transition: all .2s ease;
    border: 1px solid transparent;
}

.mm-folder:hover {
    background: rgba(10, 61, 97, .04);
    border-color: var(--border-light);
    transform: translateY(-2px);
}

.mm-folder__name {
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    width: 100%;
}

/* Files Grid */
.mm-files--grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 14px;
    padding: 0 20px 20px;
}

.mm-file {
    background: #fff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all .25s ease;
    position: relative;
}

.mm-file:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(10, 61, 97, .08);
    transform: translateY(-2px);
}

.mm-file__check {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 3;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mm-file__check input {
    width: 16px;
    height: 16px;
    accent-color: var(--primary);
    cursor: pointer;
    opacity: 0;
    transition: opacity .15s ease;
}

.mm-file:hover .mm-file__check input,
.mm-file__check input:checked {
    opacity: 1;
}

.mm-file__thumb {
    height: 140px;
    overflow: hidden;
    background: #f3f4f6;
    cursor: pointer;
    position: relative;
}

.mm-file__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s ease;
}

.mm-file:hover .mm-file__thumb img {
    transform: scale(1.05);
}

.mm-file__info {
    padding: 10px 12px;
}

.mm-file__name {
    font-size: 12px;
    font-weight: 600;
    color: var(--text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mm-file__meta {
    font-size: 11px;
    color: var(--text-lighter);
    display: flex;
    justify-content: space-between;
    margin-top: 3px;
}

.mm-file__actions {
    display: flex;
    gap: 4px;
    padding: 0 12px 10px;
    opacity: 0;
    transition: opacity .15s ease;
}

.mm-file:hover .mm-file__actions {
    opacity: 1;
}

.mm-act-btn {
    border: none;
    background: var(--border-light);
    border-radius: 4px;
    padding: 3px 8px;
    font-size: 12px;
    cursor: pointer;
    transition: all .15s ease;
}

.mm-act-btn:hover {
    background: var(--primary);
    color: #fff;
}

.mm-act-btn--danger:hover {
    background: #e53e3e;
}

/* List View */
.mm-files--list {
    padding: 0 20px 20px;
}

.mm-list-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.mm-list-table th {
    text-align: left;
    padding: 10px 12px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-lighter);
    border-bottom: 2px solid var(--border-light);
}

.mm-list-table td {
    padding: 8px 12px;
    border-bottom: 1px solid var(--border-light);
    color: var(--text);
}

.mm-list-table tbody tr:hover {
    background: rgba(10, 61, 97, .02);
}

.mm-list-name {
    max-width: 250px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 500;
}

/* Empty State */
.mm-empty {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
}

.mm-empty__icon {
    font-size: 56px;
    margin-bottom: 16px;
}

.mm-empty h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 6px;
}

.mm-empty p {
    color: var(--text-lighter);
    font-size: 14px;
}

/* Lightbox */
.mm-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .7);
    backdrop-filter: blur(4px);
    z-index: 1100;
    align-items: center;
    justify-content: center;
}

.mm-lightbox.is-open {
    display: flex;
}

.mm-lightbox__inner {
    background: #fff;
    border-radius: var(--radius-lg);
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0, 0, 0, .3);
    animation: modalIn .25s ease;
    display: flex;
    flex-direction: column;
}

@keyframes modalIn {
    from {
        opacity: 0;
        transform: scale(.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.mm-lightbox__close {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 10;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, .5);
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .15s ease;
}

.mm-lightbox__close:hover {
    background: #e53e3e;
}

.mm-lightbox__img {
    position: relative;
    background: #111;
    display: flex;
    align-items: center;
    justify-content: center;
    max-height: 55vh;
    overflow: hidden;
}

.mm-lightbox__img img {
    max-width: 100%;
    max-height: 55vh;
    object-fit: contain;
}

.mm-lightbox__details {
    padding: 20px 24px;
}

.mm-lightbox__details h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 10px;
    word-break: break-all;
}

.mm-lightbox__meta {
    display: flex;
    gap: 24px;
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 14px;
}

.mm-lightbox__meta span:first-child {
    font-weight: 600;
    color: var(--text);
}

.mm-lightbox__url {
    display: flex;
    gap: 8px;
}

.mm-lightbox__url input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-family: 'SF Mono', 'Consolas', monospace;
    color: var(--text);
    background: var(--border-light);
}

/* Modals */
.mm-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .5);
    backdrop-filter: blur(3px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.mm-modal__box {
    background: #fff;
    padding: 28px 32px;
    border-radius: var(--radius-lg);
    max-width: 440px;
    width: 90%;
    position: relative;
    box-shadow: 0 20px 50px rgba(0, 0, 0, .2);
    animation: modalIn .25s ease;
}

.mm-modal__box h2 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
}

.mm-modal__close {
    position: absolute;
    top: 12px;
    right: 14px;
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: var(--text-lighter);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all .15s ease;
}

.mm-modal__close:hover {
    background: var(--border-light);
    color: var(--text);
}

/* Toast */
.toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: var(--primary-dark);
    color: #fff;
    padding: 10px 24px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .2);
    z-index: 9999;
    opacity: 0;
    transition: all .3s ease;
    pointer-events: none;
}

.toast--show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}


/* ============================
   Admin Dark Mode
   ============================ */
[data-admin-theme="dark"] {
    --bg: #0f1419;
    --bg-card: #1a2028;
    --text: #e4e6ea;
    --text-light: #9aa0a9;
    --text-lighter: #6b7280;
    --border: #2d3748;
    --border-light: #1e2a36;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, .25);
    --shadow: 0 4px 6px rgba(0, 0, 0, .2);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, .3);
}

[data-admin-theme="dark"] .admin-sidebar {
    background: #0a0f14;
}

[data-admin-theme="dark"] .admin-content {
    background: var(--bg);
    color: var(--text);
}

/* Cards & Stat cards */
[data-admin-theme="dark"] .stat-card,
[data-admin-theme="dark"] .settings-card,
[data-admin-theme="dark"] .data-table,
[data-admin-theme="dark"] .table-wrapper {
    background: var(--bg-card);
    border-color: var(--border);
    color: var(--text);
}

/* Table */
[data-admin-theme="dark"] .data-table th {
    background: #151c24;
    color: var(--text-light);
    border-color: var(--border);
}

[data-admin-theme="dark"] .data-table td {
    border-color: var(--border);
    color: var(--text);
}

[data-admin-theme="dark"] .data-table tbody tr:hover {
    background: rgba(255, 255, 255, .03);
}

/* Forms */
[data-admin-theme="dark"] .form-input,
[data-admin-theme="dark"] .form-textarea,
[data-admin-theme="dark"] .form-select,
[data-admin-theme="dark"] select,
[data-admin-theme="dark"] input[type="text"],
[data-admin-theme="dark"] input[type="email"],
[data-admin-theme="dark"] input[type="number"],
[data-admin-theme="dark"] input[type="password"],
[data-admin-theme="dark"] input[type="url"],
[data-admin-theme="dark"] textarea {
    background: #151c24;
    border-color: var(--border);
    color: var(--text);
}

[data-admin-theme="dark"] .form-input:focus,
[data-admin-theme="dark"] .form-textarea:focus,
[data-admin-theme="dark"] textarea:focus {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(21, 101, 160, .2);
}

/* Buttons */
[data-admin-theme="dark"] .btn--ghost {
    border-color: var(--border);
    color: var(--text);
}

[data-admin-theme="dark"] .btn--ghost:hover {
    background: rgba(255, 255, 255, .06);
}

/* Alerts */
[data-admin-theme="dark"] .alert--success {
    background: rgba(16, 185, 129, .12);
    border-color: rgba(16, 185, 129, .3);
    color: #6ee7b7;
}

/* Dashboard charts area */
[data-admin-theme="dark"] .chart-card,
[data-admin-theme="dark"] .dashboard-card {
    background: var(--bg-card);
    border-color: var(--border);
}

/* Heading colors */
[data-admin-theme="dark"] .admin-header h1,
[data-admin-theme="dark"] h1,
[data-admin-theme="dark"] h2,
[data-admin-theme="dark"] h3 {
    color: var(--text);
}

/* Status badges */
[data-admin-theme="dark"] .status-badge {
    opacity: 0.9;
}

/* Settings form specific */
[data-admin-theme="dark"] .settings-card__header {
    border-color: var(--border);
}

/* Confirm modal */
[data-admin-theme="dark"] .confirm-modal {
    background: var(--bg-card);
    color: var(--text);
}

[data-admin-theme="dark"] .confirm-modal-overlay {
    background: rgba(0, 0, 0, .7);
}

/* Pagination */
[data-admin-theme="dark"] .pagination a,
[data-admin-theme="dark"] .pagination span {
    background: var(--bg-card);
    border-color: var(--border);
    color: var(--text);
}

/* Media Manager */
[data-admin-theme="dark"] .mm {
    background: var(--bg-card);
    border-color: var(--border);
}

[data-admin-theme="dark"] .mm-sidebar {
    background: #0e1520;
    border-color: var(--border);
}

[data-admin-theme="dark"] .mm-toolbar {
    background: var(--bg-card);
    border-color: var(--border);
}

[data-admin-theme="dark"] .mm-file {
    background: var(--bg-card);
    border-color: var(--border);
}

[data-admin-theme="dark"] .mm-file__thumb {
    background: #151c24;
}

[data-admin-theme="dark"] .mm-search {
    background: #151c24;
}

[data-admin-theme="dark"] .mm-search input {
    color: var(--text);
}

[data-admin-theme="dark"] .mm-view-btn {
    background: var(--bg-card);
    border-color: var(--border);
    color: var(--text-lighter);
}

[data-admin-theme="dark"] .mm-sidebar__btn {
    background: #151c24;
    border-color: var(--border);
}

[data-admin-theme="dark"] .mm-modal__box {
    background: var(--bg-card);
    color: var(--text);
}

[data-admin-theme="dark"] .mm-lightbox__inner {
    background: var(--bg-card);
}

[data-admin-theme="dark"] .mm-lightbox__details {
    color: var(--text);
}

[data-admin-theme="dark"] .mm-lightbox__url input {
    background: #151c24;
    border-color: var(--border);
    color: var(--text);
}

[data-admin-theme="dark"] .mm-list-table th {
    color: var(--text-lighter);
    border-color: var(--border);
}

[data-admin-theme="dark"] .mm-list-table td {
    border-color: var(--border);
    color: var(--text);
}

[data-admin-theme="dark"] .mm-folder-actions {
    background: rgba(239, 68, 68, .1);
    border-color: rgba(239, 68, 68, .2);
}

/* Product Level Theme Switcher */
.admin-theme-switch-wrapper {
    display: flex;
    align-items: center;
}

.admin-theme-switch {
    display: flex;
    position: relative;
    background: var(--bg);
    border-radius: 24px;
    padding: 4px;
    border: 1px solid var(--border);
    width: 220px;
    /* Wider for full text + icon */
}

.admin-theme-switch__glider {
    position: absolute;
    top: 4px;
    bottom: 4px;
    left: 4px;
    width: calc((100% - 8px) / 3);
    background: var(--card-bg, #fff);
    border-radius: 20px;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-light);
}

.admin-theme-switch[data-active="light"] .admin-theme-switch__glider {
    transform: translateX(0%);
}

.admin-theme-switch[data-active="dark"] .admin-theme-switch__glider {
    transform: translateX(100%);
}

.admin-theme-switch[data-active="system"] .admin-theme-switch__glider {
    transform: translateX(200%);
}

.admin-theme-switch__btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 6px 0;
    border: none;
    background: transparent;
    color: var(--text-light);
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    position: relative;
    z-index: 1;
    transition: color 0.15s ease;
}

.admin-theme-switch__btn:hover {
    color: var(--text);
}

.admin-theme-switch__btn.is-active {
    color: var(--text);
}

[data-admin-theme="dark"] .admin-theme-switch__btn.is-active {
    color: #1a1a2e;
}

/* ---------------------------------
   MEDIA PAGER
--------------------------------- */
.mm-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 20px 0;
}

.mm-page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 12px;
    border-radius: var(--radius-sm);
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text);
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: all var(--transition);
}

.mm-page-btn:hover:not(.mm-page-btn--disabled):not(.mm-page-btn--active) {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(10, 61, 97, 0.05);
}

.mm-page-btn--active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    pointer-events: none;
}

.mm-page-btn--disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: var(--bg);
}

[data-theme="dark"] .mm-page-btn:hover:not(.mm-page-btn--disabled):not(.mm-page-btn--active) {
    background: rgba(59, 130, 246, 0.1);
    color: #60a5fa;
    border-color: #3b82f6;
}

[data-theme="dark"] .mm-page-btn--active {
    background: var(--primary);
    border-color: var(--primary);
    color: #ffffff;
}

/* ---------------------------------
   MOBILE RESPONSIVENESS OVERRIDES
--------------------------------- */
@media (max-width: 1024px) {
    .dashboard-charts-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {

    /* Hide sidebar by default on mobile */
    .admin-layout {
        display: block;
    }

    .admin-sidebar {
        position: fixed;
        left: -260px;
        transition: left 0.3s ease;
    }

    .admin-sidebar.is-active {
        left: 0;
    }

    /* Provide a mobile menu trigger (needs to be added to layout if not exists, or user just uses desktop widths, but assuming basic mobile view) */
    .admin-content {
        padding: 20px 16px;
        width: 100%;
        max-width: 100vw;
        overflow-x: hidden;
    }

    .admin-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    /* Make tables responsive */
    .table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin-bottom: 24px;
        width: 100%;
    }

    /* Charts */
    .dashboard-charts-grid {
        display: flex;
        flex-direction: column;
        gap: 16px;
    }

    .chart-card {
        padding: 16px !important;
        width: 100%;
        overflow: hidden;
    }

    .chart-card canvas {
        max-width: 100%;
        height: auto !important;
    }

    /* Forms and grids */
    .form-row {
        flex-direction: column;
        gap: 12px;
    }

    /* Media Manager */
    .media-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}

/* ============================
   About Page
   ============================ */

/* Hero */
.about-hero {
    position: relative;
    padding: 80px 0 60px;
    text-align: center;
    overflow: hidden;
    background: linear-gradient(160deg, var(--primary-dark) 0%, var(--primary) 40%, var(--primary-light) 100%);
    color: #fff;
}

.about-hero__bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 600px 400px at 20% 50%, rgba(232, 168, 56, .12) 0%, transparent 70%),
        radial-gradient(ellipse 500px 500px at 80% 30%, rgba(255, 255, 255, .06) 0%, transparent 60%);
    pointer-events: none;
}

.about-hero__content {
    position: relative;
    z-index: 1;
}

.about-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .2);
    padding: 6px 18px;
    border-radius: 24px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 20px;
    backdrop-filter: blur(8px);
}

.about-hero__title {
    font-size: 44px;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 12px;
    letter-spacing: -1px;
    font-family: var(--font-bengali);
}

.about-hero__subtitle {
    font-size: 18px;
    color: rgba(255, 255, 255, .75);
    font-weight: 400;
    font-family: var(--font-bengali);
    max-width: 500px;
    margin: 0 auto;
    line-height: 1.6;
}

.about-hero__divider {
    width: 60px;
    height: 3px;
    background: var(--accent);
    margin: 28px auto 0;
    border-radius: 3px;
}

/* Sections */
.about-section {
    padding: 64px 0;
}

.about-section--alt {
    background: var(--border-light);
}

.about-section__header {
    text-align: center;
    margin-bottom: 44px;
}

.about-section__title {
    font-size: 28px;
    font-weight: 800;
    color: var(--text);
    font-family: var(--font-bengali);
    margin-bottom: 8px;
}

.about-section__desc {
    font-size: 16px;
    color: var(--text-light);
    font-family: var(--font-bengali);
}

/* Intro */
.about-intro {
    display: flex;
    gap: 32px;
    align-items: flex-start;
    max-width: 800px;
    margin: 0 auto;
    background: var(--bg-card);
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
}

.about-intro__icon {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-intro__text {
    flex: 1;
}

.about-intro__text .article__content {
    font-size: 16px;
    line-height: 1.85;
}

/* Features Grid */
.about-features {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.about-feature {
    background: var(--bg-card);
    padding: 32px 24px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    text-align: center;
    transition: all 0.35s ease;
    position: relative;
    overflow: hidden;
}

.about-feature::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    opacity: 0;
    transition: opacity 0.35s ease;
}

.about-feature:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.about-feature:hover::before {
    opacity: 1;
}

.about-feature__icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: rgba(10, 61, 97, .08);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
    transition: all 0.35s ease;
}

.about-feature:hover .about-feature__icon {
    background: var(--primary);
    color: #fff;
    transform: scale(1.08);
}

.about-feature__icon--accent {
    background: rgba(232, 168, 56, .1);
    color: var(--accent);
}

.about-feature:hover .about-feature__icon--accent {
    background: var(--accent);
    color: var(--primary-dark);
}

.about-feature__icon--green {
    background: rgba(16, 185, 129, .1);
    color: #10b981;
}

.about-feature:hover .about-feature__icon--green {
    background: #10b981;
    color: #fff;
}

.about-feature__icon--purple {
    background: rgba(139, 92, 246, .1);
    color: #8b5cf6;
}

.about-feature:hover .about-feature__icon--purple {
    background: #8b5cf6;
    color: #fff;
}

.about-feature__title {
    font-size: 17px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 8px;
    font-family: var(--font-bengali);
}

.about-feature__text {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.6;
    font-family: var(--font-bengali);
}

/* Stats */
.about-stats {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    padding: 48px 0;
    position: relative;
    overflow: hidden;
}

.about-stats::before {
    content: '';
    position: absolute;
    top: -60%;
    right: -5%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(232, 168, 56, .1) 0%, transparent 70%);
    border-radius: 50%;
}

.about-stats::after {
    content: '';
    position: absolute;
    bottom: -40%;
    left: -5%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 255, 255, .05) 0%, transparent 70%);
    border-radius: 50%;
}

.about-stats__grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 56px;
    position: relative;
    z-index: 1;
}

.about-stats__item {
    text-align: center;
}

.about-stats__number {
    font-size: 40px;
    font-weight: 800;
    color: #fff;
    line-height: 1.1;
    letter-spacing: -1px;
}

.about-stats__label {
    font-size: 13px;
    color: rgba(255, 255, 255, .6);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-top: 6px;
}

.about-stats__divider {
    width: 1px;
    height: 48px;
    background: rgba(255, 255, 255, .15);
}

/* Vision Cards */
.about-vision {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    max-width: 900px;
    margin: 0 auto;
}

.about-vision__card {
    background: var(--bg-card);
    padding: 36px 32px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    transition: all 0.35s ease;
    position: relative;
    overflow: hidden;
}

.about-vision__card::after {
    content: '';
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 100px;
    height: 100px;
    background: rgba(10, 61, 97, .03);
    border-radius: 50%;
    transition: all 0.4s ease;
}

.about-vision__card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.about-vision__card:hover::after {
    transform: scale(2);
}

.about-vision__icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
}

.about-vision__icon--accent {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
    color: var(--primary-dark);
}

.about-vision__title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 10px;
    font-family: var(--font-bengali);
}

.about-vision__text {
    font-size: 15px;
    color: var(--text-light);
    line-height: 1.8;
    font-family: var(--font-bengali);
}

/* CTA Section */
.about-cta {
    padding: 72px 0;
    background: linear-gradient(160deg, var(--primary-dark) 0%, var(--primary) 50%, #0d4f7e 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.about-cta::before {
    content: '';
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(232, 168, 56, .08) 0%, transparent 60%);
    border-radius: 50%;
}

.about-cta__content {
    position: relative;
    z-index: 1;
}

.about-cta__title {
    font-size: 32px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 12px;
    font-family: var(--font-bengali);
}

.about-cta__text {
    font-size: 16px;
    color: rgba(255, 255, 255, .7);
    margin-bottom: 32px;
    font-family: var(--font-bengali);
}

.about-cta__buttons {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn--accent {
    background: var(--accent);
    color: var(--primary-dark);
    font-weight: 700;
}

.btn--accent:hover {
    background: var(--accent-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(232, 168, 56, .3);
}

.btn--lg {
    padding: 14px 32px;
    font-size: 15px;
    border-radius: var(--radius);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* Responsive */
@media (max-width: 1024px) {
    .about-features {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .about-hero {
        padding: 52px 0 40px;
    }

    .about-hero__title {
        font-size: 32px;
    }

    .about-intro {
        flex-direction: column;
        padding: 28px;
    }

    .about-features {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .about-stats__grid {
        flex-direction: column;
        gap: 24px;
    }

    .about-stats__divider {
        width: 60px;
        height: 1px;
    }

    .about-vision {
        grid-template-columns: 1fr;
    }

    .about-cta__title {
        font-size: 24px;
    }

    .about-section {
        padding: 44px 0;
    }
}

/* ============================
   Contact Page
   ============================ */

/* Hero */
.contact-hero {
    position: relative;
    padding: 80px 0 60px;
    text-align: center;
    overflow: hidden;
    background: linear-gradient(160deg, var(--primary-dark) 0%, var(--primary) 40%, var(--primary-light) 100%);
    color: #fff;
}

.contact-hero__bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 500px 400px at 75% 40%, rgba(232, 168, 56, .1) 0%, transparent 70%),
        radial-gradient(ellipse 400px 400px at 15% 60%, rgba(255, 255, 255, .06) 0%, transparent 60%);
    pointer-events: none;
}

.contact-hero__content {
    position: relative;
    z-index: 1;
}

.contact-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .2);
    padding: 6px 18px;
    border-radius: 24px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 20px;
    backdrop-filter: blur(8px);
}

.contact-hero__title {
    font-size: 44px;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 12px;
    letter-spacing: -1px;
    font-family: var(--font-bengali);
}

.contact-hero__subtitle {
    font-size: 18px;
    color: rgba(255, 255, 255, .75);
    font-weight: 400;
    font-family: var(--font-bengali);
}

.contact-hero__divider {
    width: 60px;
    height: 3px;
    background: var(--accent);
    margin: 28px auto 0;
    border-radius: 3px;
}

/* Section */
.contact-section {
    padding: 64px 0;
}

/* Grid: cards + form */
.contact-grid {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 36px;
    align-items: start;
}

/* Contact Cards */
.contact-cards {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.contact-card {
    background: var(--bg-card);
    padding: 28px 24px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    transition: all 0.35s ease;
    position: relative;
    overflow: hidden;
}

.contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: linear-gradient(180deg, var(--primary), var(--accent));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.contact-card:hover::before {
    opacity: 1;
}

.contact-card__icon {
    width: 50px;
    height: 50px;
    border-radius: 14px;
    background: rgba(10, 61, 97, .08);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    transition: all 0.3s ease;
}

.contact-card:hover .contact-card__icon {
    background: var(--primary);
    color: #fff;
    transform: scale(1.06);
}

.contact-card__icon--blue {
    background: rgba(24, 119, 242, .08);
    color: #1877f2;
}

.contact-card:hover .contact-card__icon--blue {
    background: #1877f2;
    color: #fff;
}

.contact-card__icon--green {
    background: rgba(16, 185, 129, .08);
    color: #10b981;
}

.contact-card:hover .contact-card__icon--green {
    background: #10b981;
    color: #fff;
}

.contact-card__title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 4px;
}

.contact-card__text {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 10px;
    font-family: var(--font-bengali);
}

.contact-card__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
    transition: all 0.2s ease;
}

.contact-card__link:hover {
    gap: 10px;
    color: var(--primary-dark);
}

.contact-card__info {
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
}

/* Contact Form */
.contact-form-wrapper {
    background: var(--bg-card);
    padding: 36px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
}

.contact-form-header {
    margin-bottom: 28px;
}

.contact-form-header__title {
    font-size: 22px;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 6px;
    font-family: var(--font-bengali);
}

.contact-form-header__desc {
    font-size: 14px;
    color: var(--text-light);
    font-family: var(--font-bengali);
}

.contact-form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.contact-form__group {
    margin-bottom: 18px;
}

.contact-form__label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 6px;
    font-family: var(--font-bengali);
}

.contact-form__input,
.contact-form__textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-family: var(--font-bengali);
    transition: all 0.2s ease;
    background: var(--bg);
    color: var(--text);
}

.contact-form__input:focus,
.contact-form__textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(10, 61, 97, .08);
    background: #fff;
}

.contact-form__input::placeholder,
.contact-form__textarea::placeholder {
    color: var(--text-lighter);
}

.contact-form__textarea {
    resize: vertical;
    min-height: 120px;
    line-height: 1.6;
}

.contact-form__btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 32px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    font-family: var(--font-bengali);
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 14px rgba(10, 61, 97, .2);
}

.contact-form__btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(10, 61, 97, .3);
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
}

/* FAQ */
.contact-faq {
    padding: 60px 0 72px;
    background: var(--border-light);
}

.contact-faq__header {
    text-align: center;
    margin-bottom: 36px;
}

.contact-faq__title {
    font-size: 26px;
    font-weight: 800;
    color: var(--text);
    font-family: var(--font-bengali);
}

.contact-faq__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-faq__item {
    background: var(--bg-card);
    padding: 28px 24px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    transition: all 0.3s ease;
}

.contact-faq__item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.contact-faq__question {
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 10px;
    font-family: var(--font-bengali);
    line-height: 1.4;
}

.contact-faq__answer {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.7;
    font-family: var(--font-bengali);
}

/* Responsive */
@media (max-width: 1024px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .contact-cards {
        flex-direction: row;
    }

    .contact-card {
        flex: 1;
    }
}

@media (max-width: 768px) {
    .contact-hero {
        padding: 52px 0 40px;
    }

    .contact-hero__title {
        font-size: 32px;
    }

    .contact-cards {
        flex-direction: column;
    }

    .contact-form-wrapper {
        padding: 24px;
    }

    .contact-form__row {
        grid-template-columns: 1fr;
    }

    .contact-faq__grid {
        grid-template-columns: 1fr;
    }

    .contact-section {
        padding: 44px 0;
    }
}

/* ============================
   User Profile — Premium Redesign
   ============================ */
.user-profile {
    min-height: 60vh;
    padding-bottom: 60px;
}

/* ── Hero Banner ── */
.up-hero {
    background: linear-gradient(135deg, #071e2f 0%, var(--primary) 50%, var(--primary-light) 100%);
    padding: 48px 0 56px;
    position: relative;
    overflow: hidden;
}

.up-hero__pattern {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 15% 50%, rgba(232, 168, 56, .12) 0%, transparent 50%),
        radial-gradient(circle at 85% 30%, rgba(255, 255, 255, .06) 0%, transparent 40%);
    pointer-events: none;
}

.up-hero__pattern::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -80px;
    width: 350px;
    height: 350px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .06);
    animation: heroOrbit 20s linear infinite;
}

@keyframes heroOrbit {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.up-hero__content {
    display: flex;
    align-items: center;
    gap: 28px;
    position: relative;
    z-index: 2;
}

/* Avatar */
.up-hero__avatar-wrap {
    position: relative;
    flex-shrink: 0;
}

.up-hero__avatar {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid rgba(255, 255, 255, .2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, .3);
    transition: transform 0.3s ease;
}

.up-hero__avatar:hover {
    transform: scale(1.05);
}

.up-hero__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.up-hero__avatar-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--accent), #d4993e);
    color: #fff;
    font-size: 42px;
    font-weight: 800;
}

.up-hero__badge {
    position: absolute;
    bottom: 4px;
    right: 4px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, #10b981, #059669);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    border: 3px solid rgba(7, 30, 47, .8);
    box-shadow: 0 2px 8px rgba(16, 185, 129, .4);
}

/* Info */
.up-hero__info {
    flex: 1;
    color: #fff;
}

.up-hero__name {
    font-size: 28px;
    font-weight: 800;
    margin: 0 0 6px;
    font-family: var(--font-bengali);
    letter-spacing: -0.02em;
}

.up-hero__email {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: rgba(255, 255, 255, .65);
    margin: 0 0 8px;
}

.up-hero__bio {
    font-size: 15px;
    color: rgba(255, 255, 255, .8);
    font-family: var(--font-bengali);
    line-height: 1.6;
    margin: 0 0 10px;
    max-width: 500px;
}

.up-hero__meta {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.up-hero__meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: rgba(255, 255, 255, .55);
}

/* Edit Button */
.up-hero__edit-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    background: rgba(255, 255, 255, .12);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 50px;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.25s ease;
    flex-shrink: 0;
    align-self: flex-start;
}

.up-hero__edit-btn:hover {
    background: rgba(255, 255, 255, .22);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, .2);
}

/* ── Stats Cards ── */
.up-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: -32px;
    margin-bottom: 28px;
    position: relative;
    z-index: 10;
}

.up-stat {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, .06);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.up-stat:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, .1);
}

.up-stat__icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.up-stat--bookmarks .up-stat__icon {
    background: linear-gradient(135deg, rgba(59, 130, 246, .12), rgba(59, 130, 246, .05));
    color: #3b82f6;
}

.up-stat--reads .up-stat__icon {
    background: linear-gradient(135deg, rgba(16, 185, 129, .12), rgba(16, 185, 129, .05));
    color: #10b981;
}

.up-stat--joined .up-stat__icon {
    background: linear-gradient(135deg, rgba(139, 92, 246, .12), rgba(139, 92, 246, .05));
    color: #8b5cf6;
}

.up-stat__content {
    min-width: 0;
}

.up-stat__value {
    font-size: 24px;
    font-weight: 800;
    color: var(--text);
    line-height: 1.2;
}

.up-stat__label {
    font-size: 13px;
    color: var(--text-light);
    font-weight: 500;
    margin-top: 2px;
}

/* ── Quick Actions ── */
.up-actions {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-bottom: 28px;
}

.up-action {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 18px;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    text-decoration: none;
    color: var(--text);
    font-size: 14px;
    font-weight: 600;
    transition: all 0.25s ease;
    box-shadow: var(--shadow-sm);
}

.up-action:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, .08);
}

.up-action__icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.up-action__icon--blue {
    background: rgba(59, 130, 246, .1);
    color: #3b82f6;
}

.up-action__icon--green {
    background: rgba(16, 185, 129, .1);
    color: #10b981;
}

.up-action__icon--purple {
    background: rgba(139, 92, 246, .1);
    color: #8b5cf6;
}

.up-action__icon--gold {
    background: rgba(232, 168, 56, .1);
    color: #e8a838;
}

.up-action span {
    flex: 1;
}

.up-action>svg {
    color: var(--text-light);
    transition: transform 0.2s ease;
}

.up-action:hover>svg {
    transform: translateX(3px);
    color: var(--primary);
}

/* ── Content Grid ── */
.up-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

/* ── Cards ── */
.up-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    box-shadow: 0 2px 12px rgba(0, 0, 0, .04);
    overflow: hidden;
}

.up-card__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-light);
}

.up-card__header-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.up-card__header-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.up-card__header-icon--blue {
    background: rgba(59, 130, 246, .1);
    color: #3b82f6;
}

.up-card__header-icon--gold {
    background: rgba(232, 168, 56, .1);
    color: #e8a838;
}

.up-card__header h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
}

.up-card__link {
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.up-card__link:hover {
    color: var(--accent);
}

.up-card__body {
    padding: 8px 0;
}

/* ── List Items ── */
.up-list-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 24px;
    text-decoration: none;
    transition: all 0.2s ease;
    color: var(--text);
}

.up-list-item:hover {
    background: var(--bg-hover, rgba(0, 0, 0, .02));
}

.up-list-item__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary);
    flex-shrink: 0;
    opacity: 0.6;
}

.up-list-item__dot--gold {
    background: var(--accent);
}

.up-list-item__info {
    flex: 1;
    min-width: 0;
}

.up-list-item__info h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    font-family: var(--font-bengali);
    line-height: 1.4;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.up-list-item__meta {
    font-size: 12px;
    color: var(--text-light);
}

.up-list-item__arrow {
    color: var(--text-light);
    flex-shrink: 0;
    transition: all 0.2s ease;
    opacity: 0;
}

.up-list-item:hover .up-list-item__arrow {
    opacity: 1;
    transform: translateX(3px);
    color: var(--primary);
}

/* ── Empty State ── */
.up-empty {
    padding: 40px 24px;
    text-align: center;
}

.up-empty__icon {
    font-size: 36px;
    margin-bottom: 12px;
}

.up-empty p {
    color: var(--text-light);
    font-size: 14px;
    margin: 0 0 12px;
}

.up-empty__link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.up-empty__link:hover {
    color: var(--accent);
}

/* ── Page Header (for bookmarks, history) ── */
.up-page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
    flex-wrap: wrap;
    gap: 12px;
}

.up-page-header h1 {
    font-size: calc(var(--fs-h2) + 2px);
    font-weight: 800;
    color: var(--text);
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .up-hero {
        padding: 32px 0 44px;
    }

    .up-hero__content {
        flex-direction: column;
        text-align: center;
    }

    .up-hero__avatar {
        width: 90px;
        height: 90px;
    }

    .up-hero__meta {
        justify-content: center;
    }

    .up-hero__edit-btn {
        align-self: center;
    }

    .up-stats {
        grid-template-columns: 1fr;
    }

    .up-actions {
        grid-template-columns: 1fr 1fr;
    }

    .up-grid {
        grid-template-columns: 1fr;
    }

    .up-page-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ============================
   User Nav, Bookmark & Shared Components
   ============================ */

/* ── History Item ── */
.up-history-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 22px;
    border-bottom: 1px solid var(--border-light);
}

.up-history-item:last-child {
    border-bottom: none;
}

.up-history-item__info {
    flex: 1;
    text-decoration: none;
    color: var(--text);
}

.up-history-item__info h4 {
    font-size: var(--fs-nav);
    font-weight: 600;
    font-family: var(--font-bengali);
    line-height: 1.4;
    margin-bottom: 2px;
    transition: color 0.2s ease;
}

.up-history-item__info:hover h4 {
    color: var(--primary);
}

.up-history-item__remove {
    background: none;
    border: none;
    color: var(--text-lighter);
    cursor: pointer;
    padding: 6px;
    border-radius: 50%;
    transition: all 0.2s ease;
    display: flex;
}

.up-history-item__remove:hover {
    color: #ef4444;
    background: rgba(239, 68, 68, .08);
}

/* ── Edit Avatar ── */
.up-edit-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto;
    border: 3px solid var(--border-light);
}

.up-edit-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ── Bookmark Button ── */
.bookmark-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 50px;
    font-size: var(--fs-nav);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: 2px solid var(--border);
    background: var(--bg-card);
    color: var(--text);
}

.bookmark-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(10, 61, 97, .1);
}

.bookmark-btn--active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.bookmark-btn--active:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    color: #fff;
}

.bookmark-btn svg {
    transition: transform 0.3s ease;
}

.bookmark-btn:hover svg {
    transform: scale(1.15);
}

/* ── User Nav Dropdown ── */
.user-nav-dropdown {
    position: relative;
}

.user-nav-trigger {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: var(--fs-meta);
    font-weight: 500;
    color: var(--text);
    text-decoration: none;
}

.user-nav-trigger:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.user-nav-trigger__avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.user-nav-trigger__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-nav-trigger__avatar-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
}

.user-nav-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 200px;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 6px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all 0.25s ease;
    z-index: 300;
}

.user-nav-dropdown:hover .user-nav-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-nav-menu a,
.user-nav-menu button {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    font-size: var(--fs-meta);
    color: var(--text);
    text-decoration: none;
    transition: all 0.15s ease;
    width: 100%;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    text-align: left;
}

.user-nav-menu a:hover,
.user-nav-menu button:hover {
    background: var(--border-light);
    color: var(--primary);
}

.user-nav-menu__divider {
    height: 1px;
    background: var(--border-light);
    margin: 4px 0;
}

/* ============================
   Reading History — Modern Cards
   ============================ */

/* Stats Bar */
.rh-stats-bar {
    display: flex;
    gap: 16px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}

.rh-stats-bar__item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 50px;
    font-size: 13px;
    color: var(--text-light);
    box-shadow: var(--shadow-sm);
}

.rh-stats-bar__item strong {
    color: var(--text);
    font-weight: 700;
}

/* Date Divider */
.rh-date-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 24px 0 12px;
}

.rh-date-divider:first-child {
    margin-top: 0;
}

.rh-date-divider span {
    font-size: 13px;
    font-weight: 700;
    color: var(--text);
    white-space: nowrap;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.rh-date-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, var(--border), transparent);
}

/* History Card */
.rh-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.rh-card {
    display: flex;
    gap: 18px;
    padding: 18px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    margin-bottom: 10px;
    transition: all 0.25s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: var(--shadow-sm);
}

.rh-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, .06);
    border-color: var(--primary);
}

/* Thumbnail */
.rh-card__thumb {
    width: 120px;
    height: 90px;
    border-radius: var(--radius);
    overflow: hidden;
    flex-shrink: 0;
}

.rh-card__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.rh-card:hover .rh-card__thumb img {
    transform: scale(1.08);
}

.rh-card__thumb-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--border-light), var(--border));
    color: var(--text-lighter);
}

/* Content */
.rh-card__content {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.rh-card__top {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}

.rh-card__category {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: var(--font-bengali);
}

.rh-card__time {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: var(--text-lighter);
}

.rh-card__title {
    font-size: calc(var(--fs-nav) + 1px);
    font-weight: 700;
    color: var(--text);
    text-decoration: none;
    font-family: var(--font-bengali);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s ease;
}

.rh-card__title:hover {
    color: var(--primary);
}

.rh-card__excerpt {
    font-size: 13px;
    color: var(--text-light);
    line-height: 1.5;
    margin-top: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-family: var(--font-bengali);
}

/* Footer */
.rh-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 8px;
    gap: 12px;
}

.rh-card__meta {
    display: flex;
    align-items: center;
    gap: 14px;
}

.rh-card__author,
.rh-card__views {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: var(--text-lighter);
}

.rh-card__actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.rh-card__read-btn {
    font-size: 12px;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
    padding: 4px 12px;
    border-radius: 50px;
    border: 1px solid var(--primary);
    transition: all 0.2s ease;
}

.rh-card__read-btn:hover {
    background: var(--primary);
    color: #fff;
}

.rh-card__remove {
    background: none;
    border: none;
    color: var(--text-lighter);
    cursor: pointer;
    padding: 6px;
    border-radius: 50%;
    transition: all 0.2s ease;
    display: flex;
}

.rh-card__remove:hover {
    color: #ef4444;
    background: rgba(239, 68, 68, .06);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .rh-card {
        flex-direction: column;
        gap: 12px;
    }

    .rh-card__thumb {
        width: 100%;
        height: 160px;
    }

    .rh-stats-bar {
        flex-direction: column;
    }

    .rh-card__footer {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ============================
   Responsive Design
   ============================ */

/* ── Tablet (≤ 1024px) ── */
@media (max-width: 1024px) {
    .hero__grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .hero__image {
        display: none;
    }

    .content-with-sidebar {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .posts-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .editor-picks__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .footer__grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }

    .categories-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }

    .stats-bar__grid {
        gap: 36px;
    }

    .stats-bar__number {
        font-size: 28px;
    }

    .admin-layout {
        grid-template-columns: 1fr;
    }

    .admin-sidebar {
        display: none;
    }
}

/* ── Mobile (≤ 768px) ── */
@media (max-width: 768px) {

    /* Header */
    .header__logo-text {
        font-size: 20px;
    }

    .header__logo-tagline {
        font-size: 10px;
    }

    .header__top {
        font-size: 11px;
        padding: 4px 0;
    }

    .header__main {
        padding: 14px 0;
    }

    /* Show hamburger */
    .header__menu-toggle {
        display: flex;
    }

    /* Hero */
    .hero {
        padding: 36px 0;
    }

    .hero__title {
        font-size: 24px;
    }

    .hero__excerpt {
        font-size: 14px;
    }

    /* Posts Grid */
    .posts-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .editor-picks__grid {
        grid-template-columns: 1fr;
    }

    /* Section */
    .section {
        padding: 30px 0;
    }

    .section__title {
        font-size: 18px;
    }

    /* Article */
    .article {
        padding: 24px 16px;
    }

    .article__title {
        font-size: 24px;
    }

    /* Stats */
    .stats-bar__grid {
        flex-direction: column;
        gap: 20px;
    }

    .stats-bar__divider {
        width: 60px;
        height: 1px;
    }

    /* Footer */
    .footer__grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    /* Pages */
    .page-header {
        padding: 32px 0;
    }

    .page-header__title {
        font-size: 24px;
    }

    /* Search */
    .search-box__input {
        width: 100%;
    }

    .search-results {
        width: 100%;
    }

    /* Categories */
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .category-card {
        padding: 16px 14px;
    }

    .category-card__name {
        font-size: 14px;
    }
}

/* ── Small Mobile (≤ 480px) ── */
@media (max-width: 480px) {
    .categories-grid {
        grid-template-columns: 1fr;
    }

    .post-card--horizontal {
        grid-template-columns: 1fr;
    }

    .header__logo-text {
        font-size: 18px;
    }

    .header__logo-img {
        width: 36px;
        height: 36px;
    }
}