/* ============================================
   Utsab TV — Frontend Design System
   Modern, Minimal, Bengali-Optimized
   ============================================ */

/* ---- CSS Variables / Design Tokens ---- */
:root,
[data-theme="light"] {
    --bg: #FAFBFC;
    --bg-card: #FFFFFF;
    --bg-elevated: #F0F2F5;
    --text-primary: #1A1D23;
    --text-secondary: #5A6178;
    --text-muted: #9BA3B5;
    --border: #E2E6EF;
    --accent: #6C5CE7;
    --accent-hover: #5A4BD1;
    --accent-light: rgba(108, 92, 231, 0.08);
    --success: #00B894;
    --error: #E74C3C;
    --warning: #F39C12;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.12);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] {
    --bg: #0F1117;
    --bg-card: #1A1D27;
    --bg-elevated: #252830;
    --text-primary: #E8EBF0;
    --text-secondary: #9BA3B5;
    --text-muted: #6B7185;
    --border: #2D3140;
    --accent: #8B7CF7;
    --accent-hover: #A08CFF;
    --accent-light: rgba(139, 124, 247, 0.1);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
    white-space: nowrap;
}

/* ---- Reset & Base ---- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body, 'Noto Sans Bengali', sans-serif);
    background: var(--bg);
    color: var(--text-primary);
    line-height: 1.8;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    transition: background 0.3s ease, color 0.3s ease;
}

button,
input,
optgroup,
select,
textarea {
    font-family: inherit;
}



h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading, 'Hind Siliguri', sans-serif);
    font-weight: 700;
    line-height: 1.35;
    color: var(--text-primary);
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--accent-hover);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ---- Navbar ---- */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    background: rgba(255, 255, 255, 0.85);
}

[data-theme="dark"] .navbar {
    background: rgba(26, 29, 39, 0.88);
}

.navbar .container {
    display: flex;
    align-items: center;
    height: 64px;
    gap: 20px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    color: var(--text-primary);
}

.nav-logo {
    height: 36px;
}

.nav-title {
    font-size: 1.3rem;
    font-family: var(--font-heading);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 1;
    justify-content: center;
}

.nav-link {
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
    background: var(--accent-light);
    color: var(--accent);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: 10px;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    padding: 8px;
}

.offcanvas-close {
    display: none;
}

/* Theme Toggle */
.theme-toggle {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 50%;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    color: var(--text-secondary);
}

.theme-toggle:hover {
    border-color: var(--accent);
    color: var(--accent);
}

[data-theme="light"] .theme-icon-dark {
    display: none;
}

[data-theme="dark"] .theme-icon-light {
    display: none;
}

[data-theme="light"] .theme-logo-dark {
    display: none !important;
}

[data-theme="dark"] .theme-logo-light {
    display: none !important;
}

.theme-toggle svg {
    width: 18px;
    height: 18px;
}

/* Nav Dropdown (User) */
.nav-dropdown {
    position: relative;
}

/* Nav Menu Dropdown (Navigation menus) */
.nav-menu-dropdown {
    position: relative;
    display: inline-flex;
}

.nav-dropdown-toggle {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
}

.dropdown-submenu {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    min-width: 200px;
    z-index: 100;
    padding: 6px 0;
    animation: dropdownFadeIn 0.2s ease;
}

.nav-menu-dropdown.open .dropdown-submenu {
    display: block;
}

.dropdown-item {
    display: block;
    padding: 10px 18px;
    font-size: 0.9rem;
    color: var(--text-primary);
    transition: var(--transition);
    white-space: nowrap;
}

.dropdown-item:hover {
    background: var(--accent-light);
    color: var(--accent);
}

@keyframes dropdownFadeIn {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.nav-user-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text-primary);
    transition: var(--transition);
}

.nav-user-btn:hover {
    border-color: var(--accent);
}

.nav-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
}

.nav-dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    min-width: 180px;
    overflow: hidden;
    z-index: 50;
}

.nav-dropdown.open .nav-dropdown-menu {
    display: block;
}

.nav-dropdown-menu a,
.nav-dropdown-item {
    display: block;
    padding: 10px 16px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    transition: var(--transition);
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
}

.nav-dropdown-menu a:hover,
.nav-dropdown-item:hover {
    background: var(--accent-light);
    color: var(--accent);
}

/* ---- Buttons ---- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.92rem;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.btn-sm {
    padding: 6px 14px;
    font-size: 0.85rem;
}

.btn-primary {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 2px 8px rgba(108, 92, 231, 0.3);
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
    color: #fff;
}

.btn-outline {
    background: transparent;
    color: var(--accent);
    border: 1.5px solid var(--accent);
}

.btn-outline:hover {
    background: var(--accent);
    color: #fff;
}

.btn-danger {
    background: var(--error);
    color: #fff;
}

.btn-danger:hover {
    opacity: 0.9;
}

.btn-success {
    background: var(--success);
    color: #fff;
}

/* ---- Alerts ---- */
.alert {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 20px;
    margin: 16px 20px;
    border-radius: var(--radius-md);
    font-size: 0.92rem;
    animation: slideDown 0.3s ease;
}

.alert-success {
    background: rgba(0, 184, 148, 0.1);
    color: #00B894;
    border: 1px solid rgba(0, 184, 148, 0.2);
}

.alert-error {
    background: rgba(231, 76, 60, 0.1);
    color: #E74C3C;
    border: 1px solid rgba(231, 76, 60, 0.2);
}

.alert svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    margin-top: 2px;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ---- Magazine Layout (Homepage) ---- */
.magazine-layout {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 30px;
}

.magazine-main .card {
    height: 100%;
    border: none;
    box-shadow: none;
    background: transparent;
    padding: 0 !important;
}

.magazine-main .card-body {
    padding: 16px 0 0 0 !important;
}

.magazine-main .card-image {
    aspect-ratio: 16/10;
    border-radius: var(--radius-lg);
    width: 100%;
    object-fit: cover;
}

.magazine-main .card-title {
    font-size: 1.6rem;
    margin: 16px 0 10px;
}

.magazine-main .card-excerpt {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.magazine-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.magazine-list-item {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 16px;
    align-items: start;
}

.magazine-list-item img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    border-radius: var(--radius-sm);
    transition: transform 0.5s;
}

.magazine-list-item:hover img {
    transform: scale(1.05);
}

.magazine-list-title {
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 6px;
}

.magazine-list-title a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.2s;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.magazine-list-title a:hover {
    color: var(--accent);
}

.magazine-list-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ---- Cards ---- */
.card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: var(--transition);
}

.card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.card-image {
    width: 100%;
    aspect-ratio: 16/10;
    object-fit: cover;
}

.card-body {
    padding: 20px;
}

.card-category {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent);
    background: var(--accent-light);
    padding: 3px 10px;
    border-radius: 20px;
    margin-bottom: 8px;
}

[data-theme="dark"] .card-category {
    color: #fff;
    background: var(--accent);
}

.card-title {
    font-size: 1.15rem;
    margin-bottom: 8px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-title a {
    color: var(--text-primary);
}

.card-title a:hover {
    color: var(--accent);
}

.card-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.82rem;
    color: var(--text-muted);
}

.card-meta svg {
    width: 14px;
    height: 14px;
}

/* ---- Post Grid ---- */
.post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 24px;
}

/* ---- Featured / Hero ---- */
.hero-section {
    padding: 40px 0 20px;
}

.featured-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 20px;
}

.featured-main .card-image {
    aspect-ratio: 16/9;
}

.featured-main .card-title {
    font-size: 1.5rem;
}

.featured-sidebar {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.featured-sidebar .card {
    display: flex;
    gap: 14px;
}

.featured-sidebar .card-image {
    width: 120px;
    min-width: 120px;
    aspect-ratio: 1;
    border-radius: var(--radius-sm);
}

.featured-sidebar .card-body {
    padding: 10px 0;
}

.featured-sidebar .card-title {
    font-size: 0.95rem;
}

.featured-sidebar .card:hover {
    transform: none;
}

/* ---- Section Headers ---- */
.section {
    padding: 40px 0;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    padding-bottom: 12px;
}

.section-title {
    font-size: 1.4rem;
    position: relative;
}

.section-title::before {
    content: '';
    position: absolute;
    bottom: -14px;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--accent);
    border-radius: 2px;
}

/* ---- Single Post ---- */
.post-layout {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.post-main {
    flex: 1;
    min-width: 0;
}

.post-single {
    width: 100%;
    margin: 0;
    padding: 0;
}

.sidebar {
    width: 320px;
    flex-shrink: 0;
    position: sticky;
    top: 100px;
}

/* Sidebar Search Widget Styling */
.sidebar-search {
    display: flex;
    width: 100%;
    border-radius: 30px;
    overflow: hidden;
    border: 1px solid var(--border);
    transition: var(--transition);
}

.sidebar-search:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.1);
}

.sidebar-search .form-control {
    border: none;
    border-radius: 0;
    padding-left: 20px;
    height: 44px;
    box-shadow: none;
    background: transparent;
}

.sidebar-search .btn-primary {
    border-radius: 0;
    padding: 0 20px;
    height: 44px;
    background: var(--accent);
    color: white;
    border: none;
    box-shadow: none;
}

.sidebar-search .form-control:focus {
    box-shadow: none;
}

.post-header {
    margin-bottom: 30px;
}

.post-header .card-category {
    margin-bottom: 12px;
}

.post-header h1 {
    font-size: 2rem;
    line-height: 1.4;
    margin-bottom: 16px;
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.post-meta svg {
    width: 16px;
    height: 16px;
}

.post-author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.post-featured-image {
    width: 100%;
    border-radius: var(--radius-lg);
    margin-bottom: 30px;
    aspect-ratio: 16/9;
    object-fit: cover;
}

.post-content {
    font-size: 1.05rem !important;
    line-height: 1.8;
    color: var(--text-primary);
    margin-bottom: 2rem;
    font-family: var(--font-body) !important;
}

.post-content *,
.post-content p,
.post-content span {
    font-size: 1.05rem !important;
    font-family: var(--font-body) !important;
    max-width: 100%;
}

/* Override inline styles from rich text editor in dark mode */
[data-theme="dark"] .post-content * {
    color: inherit !important;
    background-color: transparent !important;
}

.post-content p {
    margin-bottom: 1.5em;
}

.post-content h2 {
    font-size: 1.5rem;
    margin: 2em 0 0.8em;
}

.post-content h3 {
    font-size: 1.25rem;
    margin: 1.5em 0 0.6em;
}

.post-content img {
    border-radius: var(--radius-md);
    margin: 1.5em 0;
}

.post-content blockquote {
    border-left: 4px solid var(--accent);
    padding: 16px 20px;
    background: var(--accent-light);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    margin: 1.5em 0;
    font-style: italic;
}

.post-content ul,
.post-content ol {
    padding-left: 1.5em;
    margin-bottom: 1.5em;
}

/* ---- Responsive Video/iframe Embeds ---- */
/* Fixes YouTube/Vimeo iframes that have fixed width="560" height="315" inline */
.post-content iframe,
.post-content video,
.post-content embed,
.post-content object {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius-md);
    margin: 1.5em 0;
    display: block;
}

/* Also fix if YouTube is wrapped in a <p> tag by Summernote */
.post-content p:has(> iframe),
.post-content p:has(> video) {
    display: block;
    overflow: hidden;
    margin: 1.5em 0;
}

/* Fix tables overflow on mobile */
.post-content table {
    width: 100%;
    overflow-x: auto;
    display: block;
    border-collapse: collapse;
}

.post-content td,
.post-content th {
    padding: 8px 12px;
    border: 1px solid var(--border);
    font-size: 0.95rem !important;
}

.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.post-tag {
    padding: 4px 12px;
    background: var(--bg-elevated);
    border-radius: 20px;
    font-size: 0.82rem;
    color: var(--text-secondary);
}

.post-tag:hover {
    background: var(--accent-light);
    color: var(--accent);
}

/* ---- Author Box ---- */
.author-box {
    display: flex;
    gap: 20px;
    padding: 24px;
    margin-top: 40px;
    background: var(--bg-elevated);
    border-radius: var(--radius-lg);
}

.author-box img {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
}

.author-box h4 {
    margin-bottom: 4px;
}

.author-box p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* ---- Sidebar ---- */
.blog-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 40px;
}

.sidebar {
    position: sticky;
    top: 80px;
    align-self: start;
}

.sidebar-widget {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 20px;
    margin-bottom: 20px;
}

.sidebar-widget h3 {
    font-size: 1.1rem;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border);
}

.sidebar-cat-list {
    list-style: none;
}

.sidebar-cat-list li a {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border);
    font-size: 0.9rem;
}

.sidebar-cat-list li:last-child a {
    border: none;
}

.sidebar-cat-list li a:hover {
    color: var(--accent);
}

.sidebar-cat-count {
    background: var(--bg-elevated);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.8rem;
}

.sidebar-ad img {
    border-radius: var(--radius-sm);
    width: 100%;
}

/* ---- Forms ---- */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg-card);
    font-size: 0.95rem;
    color: var(--text-primary);
    font-family: inherit;
    transition: var(--transition);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-light);
}

.form-textarea {
    resize: vertical;
    min-height: 150px;
    line-height: 1.7;
}

.form-error {
    color: var(--error);
    font-size: 0.82rem;
    margin-top: 4px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 30px;
    max-width: 480px;
    margin: 40px auto;
    box-shadow: var(--shadow-md);
}

.form-card h1 {
    text-align: center;
    margin-bottom: 24px;
    font-size: 1.6rem;
}

.form-card .form-footer {
    text-align: center;
    margin-top: 20px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* ---- Pagination ---- */
.pagination-wrapper {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 40px 0;
}

.pagination-wrapper:empty {
    display: none;
    padding: 0;
}

.pagination-wrapper .page-link,
.pagination-wrapper .page-item span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    color: var(--text-secondary);
    background: var(--bg-card);
    transition: var(--transition);
}

.pagination-wrapper .page-link:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.pagination-wrapper .active span {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

.pagination-wrapper svg {
    width: 20px;
    height: 20px;
}

/* ---- Page Headers ---- */
.page-banner {
    background: var(--accent);
    color: #fff;
    padding: 50px 0;
    text-align: center;
}

.page-banner h1 {
    font-size: 2rem;
    margin-bottom: 8px;
    color: #fff;
}

.page-banner p {
    opacity: 0.85;
    font-size: 1.05rem;
}

/* ---- Breadcrumbs ---- */
.breadcrumbs {
    padding: 14px 0;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.breadcrumbs a {
    color: var(--text-secondary);
}

.breadcrumbs a:hover {
    color: var(--accent);
}

.breadcrumbs span {
    margin: 0 6px;
}

/* ---- Ad placements ---- */
.ad-banner {
    text-align: center;
    margin: 20px 0;
}

.ad-banner img {
    border-radius: var(--radius-sm);
    max-width: 100%;
}

/* ---- Footer ---- */
.footer {
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    padding: 50px 0 30px;
    margin-top: 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
}

.footer-links-row {
    display: contents;
}

.footer-col h3 {
    font-size: 1.2rem;
    margin-bottom: 12px;
}

.footer-col h4 {
    font-size: 1rem;
    margin-bottom: 12px;
}

.footer-col p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.footer-col a {
    display: block;
    font-size: 0.9rem;
    color: var(--text-secondary);
    padding: 3px 0;
}

.footer-col a:hover {
    color: var(--accent);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    margin-top: 30px;
    border-top: 1px solid var(--border);
}

.footer-bottom p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ---- Author Dashboard ---- */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 30px;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 20px;
    text-align: center;
}

.stat-card .stat-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent);
}

.stat-card .stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 4px;
}

/* ---- Tables ---- */
.table-wrapper {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

table th,
table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border);
    font-size: 0.9rem;
}

table th {
    font-weight: 600;
    color: var(--text-secondary);
    background: var(--bg-elevated);
}

table tr:hover {
    background: var(--accent-light);
}

/* ---- Status Badges ---- */
.badge-status {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 600;
}

.badge-published {
    background: rgba(0, 184, 148, 0.12);
    color: #00B894;
}

.badge-pending {
    background: rgba(243, 156, 18, 0.12);
    color: #F39C12;
}

.badge-rejected {
    background: rgba(231, 76, 60, 0.12);
    color: #E74C3C;
}

.badge-draft {
    background: rgba(155, 163, 181, 0.15);
    color: var(--text-muted);
}

.badge-approved {
    background: rgba(0, 184, 148, 0.12);
    color: #00B894;
}

/* ---- Summernote Dark Mode Fixes ---- */
[data-theme="dark"] .note-editor.note-frame {
    border-color: var(--border);
    background: var(--bg-card);
}

[data-theme="dark"] .note-editor .note-toolbar {
    background: var(--bg-elevated);
    border-bottom-color: var(--border);
}

[data-theme="dark"] .note-editor .note-editing-area .note-editable {
    color: var(--text-primary);
    background-color: var(--bg-card);
}

[data-theme="dark"] .note-editor .note-statusbar {
    background-color: var(--bg-elevated);
    border-top-color: var(--border);
}

[data-theme="dark"] .note-btn {
    color: var(--text-primary);
    background-color: var(--bg-elevated);
    border-color: var(--border);
}

[data-theme="dark"] .note-btn:hover {
    background-color: var(--accent);
    color: #fff;
}

[data-theme="dark"] .note-dropdown-menu {
    background-color: var(--bg-card);
    border-color: var(--border);
}

[data-theme="dark"] .note-dropdown-item {
    color: var(--text-primary);
}

[data-theme="dark"] .note-dropdown-item:hover {
    background-color: var(--accent-light);
}

[data-theme="dark"] .note-modal-content {
    background-color: var(--bg-card);
    border-color: var(--border);
    color: var(--text-primary);
}

[data-theme="dark"] .note-modal-header {
    border-bottom-color: var(--border);
    color: var(--text-primary);
}

[data-theme="dark"] .note-modal-title {
    color: var(--text-primary);
}

[data-theme="dark"] .note-form-label {
    color: var(--text-primary);
}

[data-theme="dark"] .close {
    color: var(--text-primary);
    text-shadow: none;
    opacity: 0.8;
}

/* ---- Scroll to Top ---- */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 900;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top:hover {
    background: var(--accent-hover);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
    .blog-layout {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: static;
    }

    .featured-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: flex;
        position: fixed;
        top: 0;
        right: -100%;
        width: 90%;
        max-width: 360px;
        height: 100vh;
        height: 100dvh;
        background: var(--bg-card);
        flex-direction: column;
        padding: 70px 0 30px;
        gap: 0;
        z-index: 9999;
        overflow-y: auto;
        box-shadow: -4px 0 30px rgba(0, 0, 0, 0.25);
        transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .nav-menu.active {
        right: 0;
    }

    /* Close Button inside offcanvas */
    .offcanvas-close {
        position: absolute;
        top: 16px;
        right: 16px;
        background: none;
        border: 1px solid var(--border);
        border-radius: 50%;
        width: 36px;
        height: 36px;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        color: var(--text-primary);
        z-index: 10;
        transition: var(--transition);
    }

    .offcanvas-close:hover {
        background: var(--accent-light);
        border-color: var(--accent);
        color: var(--accent);
    }

    .offcanvas-close svg {
        width: 18px;
        height: 18px;
    }

    /* Overlay */
    .nav-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 9998;
    }

    .nav-overlay.active {
        display: block;
    }

    /* Hamburger toggle */
    .nav-toggle {
        display: flex;
    }

    /* Force disable navbar blur on mobile */
    .navbar {
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        background: var(--bg-card) !important;
        z-index: 10000 !important;
    }

    /* User dropdown in mobile */
    .nav-dropdown {
        width: 100%;
        padding: 10px 24px;
    }

    .nav-user-btn {
        padding: 8px 12px;
        font-size: 0.9rem;
        width: 100%;
    }

    .nav-dropdown-menu {
        position: static;
        box-shadow: none;
        border: none;
        background: var(--bg-elevated);
        border-radius: var(--radius-sm);
        margin-top: 8px;
        min-width: unset;
        width: 100%;
    }

    /* ---- Menu Links Section ---- */
    .nav-link {
        display: block;
        width: 100%;
        padding: 14px 24px;
        border-radius: 0;
        font-size: 0.95rem;
        font-weight: 500;
        text-align: left;
        border-bottom: 1px solid var(--border-light, rgba(0, 0, 0, 0.05));
    }

    .nav-link:hover,
    .nav-link.active {
        background: var(--accent-light);
    }

    /* Mobile dropdown styles */
    .nav-menu-dropdown {
        display: block;
        width: 100%;
    }

    .nav-dropdown-toggle {
        width: 100%;
        padding: 14px 24px;
        justify-content: space-between;
        border-radius: 0;
        font-size: 0.95rem;
        border-bottom: 1px solid var(--border-light, rgba(0, 0, 0, 0.05));
    }

    .dropdown-submenu {
        position: static;
        box-shadow: none;
        border: none;
        background: var(--bg-elevated);
        border-radius: 0;
        margin: 0;
        padding: 4px 0;
        animation: none;
        border-bottom: 1px solid var(--border-light, rgba(0, 0, 0, 0.05));
    }

    .dropdown-item {
        padding: 12px 24px 12px 40px;
        font-size: 0.9rem;
    }

    .post-grid {
        grid-template-columns: 1fr;
    }

    .post-layout {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        position: static;
    }

    .magazine-layout {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .magazine-list-item {
        grid-template-columns: 100px 1fr;
    }

    .magazine-main .card-title {
        font-size: 1.35rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .footer-links-row {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .post-header h1 {
        font-size: 1.5rem;
    }

    .featured-sidebar .card {
        flex-direction: row;
    }

    .featured-sidebar .card-image {
        width: 90px;
        min-width: 90px;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .post-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== Nav Mobile Actions (toggle only, visible on tablet/mobile) ===== */
.nav-mobile-actions {
    display: none;
    align-items: center;
    gap: 8px;
    margin-right: 8px;
}

.nav-mobile-actions .theme-toggle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    color: var(--text-primary);
    cursor: pointer;
    transition: 0.2s;
}

.nav-mobile-actions .theme-toggle:hover {
    background: var(--accent-light);
    border-color: var(--accent);
    color: var(--accent);
}

/* Desktop: hide mobile actions, properly position right actions */
@media (min-width: 769px) {
    .navbar .container {
        position: relative;
    }

    .nav-mobile-actions {
        display: none !important;
    }

    .nav-actions {
        position: absolute;
        right: 20px;
        top: 50%;
        transform: translateY(-50%);
        margin-left: 0;
    }
}

/* Mobile/Tablet */
@media (max-width: 768px) {
    .nav-mobile-actions {
        display: flex;
        order: 2;
        margin-left: auto;
    }

    .nav-toggle {
        order: 3;
    }

    .desktop-only {
        display: none !important;
    }

    .footer-bottom {
        flex-direction: column !important;
        justify-content: center !important;
        text-align: center;
    }

    /* Fix inherited center alignment for offcanvas */
    .nav-menu {
        align-items: flex-start;
        justify-content: flex-start;
    }

    /* Keep login/register buttons inline at the bottom of the offcanvas */
    .nav-menu .nav-actions {
        margin-top: auto;
        margin-bottom: 24px;
        margin-left: 24px;
        display: flex;
        flex-direction: row;
        gap: 10px;
        width: calc(100% - 48px);
        justify-content: flex-start;
        align-items: center;
    }
}

/* ==========================================================================
   Utshob TV — Premium Frontend Upgrades (Festive Loader & Interactive Widgets)
   ========================================================================== */

/* ---- Global Card Hover Zoom ---- */
.card {
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), border-color 0.3s ease;
}
.card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent);
}
.card .card-image {
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
}
.card:hover .card-image {
    transform: scale(1.04) !important;
}

/* ---- Reading Progress Bar ---- */
.reading-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent) 0%, #FF8C00 50%, #FFD93D 100%);
    width: 0%;
    z-index: 100000;
    transition: width 0.1s ease;
}

/* ---- Text Resizer Bar ---- */
.text-resizer-bar {
    display: flex;
    gap: 8px;
    align-items: center;
    background: var(--bg-card);
    padding: 8px 16px;
    border-radius: 30px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    width: fit-content;
    margin: 0 0 20px auto;
}
.resizer-btn {
    padding: 4px 12px;
    border-radius: 20px;
    border: 1px solid var(--border);
    background: var(--bg-elevated);
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    transition: var(--transition);
}
.resizer-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}
.resizer-btn.active {
    background: var(--accent) !important;
    color: white !important;
    border-color: var(--accent) !important;
}
.post-content.font-sm, .post-content.font-sm * { font-size: 15px !important; }
.post-content.font-md, .post-content.font-md * { font-size: 17px !important; }
.post-content.font-lg, .post-content.font-lg * { font-size: 21px !important; }
.post-content.font-xl, .post-content.font-xl * { font-size: 25px !important; }

/* ---- Slide-in Floating Social Share Dock ---- */
.floating-share-dock {
    position: fixed;
    left: 24px;
    top: 50%;
    transform: translateY(-50%) translateX(-100px);
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 999;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.floating-share-dock.visible {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
}
.share-dock-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    text-decoration: none;
    border: none;
}
.share-dock-btn:hover {
    transform: scale(1.15) rotate(8deg);
}
.share-dock-btn svg {
    width: 18px;
    height: 18px;
}
.share-dock-btn.facebook { background: #1877F2; }
.share-dock-btn.twitter { background: #1DA1F2; }
.share-dock-btn.whatsapp { background: #25D366; }
.share-dock-btn.copy { background: var(--accent); }

/* ---- Interactive Opinion Poll Widget ---- */
.interactive-poll-widget .poll-option-btn {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 12px 18px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg-card);
    color: var(--text-primary);
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: var(--font-body);
}
.interactive-poll-widget .poll-option-btn:hover {
    border-color: var(--accent);
    background: var(--accent-light);
    color: var(--accent);
    transform: translateX(4px);
}
.interactive-poll-widget .poll-progress-track {
    height: 8px;
    background: var(--bg-elevated);
    border-radius: 4px;
    overflow: hidden;
    width: 100%;
}
.interactive-poll-widget .poll-progress-fill {
    height: 100%;
    border-radius: 4px;
    width: 0%;
    transition: width 1s cubic-bezier(0.1, 0.8, 0.2, 1);
}

/* ---- Festive Loading Screen (উৎসব ভাইব) ---- */
.page-loader {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Festive warm gradient */
    background: linear-gradient(135deg, #7C2D12 0%, #B91C1C 40%, #7E22CE 75%, #4C1D95 100%);
    background-size: 400% 400%;
    animation: festiveGradient 10s ease infinite;
    transition: opacity 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.page-loader.fade-out {
    opacity: 0;
    pointer-events: none;
}
.loader-content {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    z-index: 10;
}

/* Spinner and Traditional Bengali Alpana / Mandala Ring */
.alpana-ring {
    position: absolute;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    border: 2px dashed rgba(254, 240, 138, 0.25); /* Gold outline */
    animation: spinAlpana 18s linear infinite;
    display: flex;
    align-items: center;
    justify-content: center;
}
.alpana-ring::before {
    content: '';
    position: absolute;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    border: 1px dotted rgba(251, 191, 36, 0.4);
    animation: spinAlpanaReverse 10s linear infinite;
}
.loader-logo-wrap {
    position: relative;
    width: 110px;
    height: 110px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4), 0 0 40px rgba(251, 191, 36, 0.35);
    animation: pulseLogo 2s ease-in-out infinite;
    z-index: 2;
    border: 3px solid #FBBF24; /* Golden border */
    overflow: hidden;
}
.loader-logo {
    max-width: 75%;
    max-height: 75%;
    object-fit: contain;
}
.loader-text-logo {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 800;
    color: #B91C1C;
    text-shadow: 1px 1px 0px rgba(0,0,0,0.1);
}
.loader-info {
    margin-top: 35px;
    z-index: 3;
}
.loader-loading-text {
    font-family: var(--font-heading);
    color: #FEF08A; /* Warm gold */
    font-size: 1.15rem;
    font-weight: bold;
    letter-spacing: 0.5px;
    display: block;
    margin-bottom: 8px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    animation: glowText 1.5s ease-in-out infinite alternate;
}
.loader-accent-line {
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, transparent 0%, #FEF08A 50%, transparent 100%);
    margin: 8px auto;
}

/* Raining Confetti Sparks */
.loader-particles {
    position: absolute;
    inset: -100px;
    pointer-events: none;
    z-index: 1;
}
.confetti {
    position: absolute;
    width: 8px;
    height: 8px;
    background-color: #FEF08A;
    border-radius: 50%;
    opacity: 0.85;
    animation: fallAndSway 4s linear infinite;
}
/* Colorful variations of confetti */
.confetti:nth-child(2n) { background-color: #F43F5E; width: 6px; height: 12px; border-radius: 3px; } /* rose */
.confetti:nth-child(3n) { background-color: #10B981; width: 10px; height: 5px; } /* emerald */
.confetti:nth-child(4n) { background-color: #3B82F6; width: 7px; height: 7px; } /* blue */
.confetti:nth-child(5n) { background-color: #FBBF24; width: 9px; height: 9px; } /* amber */

/* Custom Keyframes */
@keyframes festiveGradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
@keyframes spinAlpana {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
@keyframes spinAlpanaReverse {
    0% { transform: rotate(360deg); }
    100% { transform: rotate(0deg); }
}
@keyframes pulseLogo {
    0%, 100% { transform: scale(1); box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4), 0 0 30px rgba(251, 191, 36, 0.35); }
    50% { transform: scale(1.05); box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5), 0 0 50px rgba(251, 191, 36, 0.55); }
}
@keyframes glowText {
    from { opacity: 0.8; text-shadow: 0 0 5px rgba(254, 240, 138, 0.5); }
    to { opacity: 1; text-shadow: 0 0 15px rgba(254, 240, 138, 0.95); }
}
@keyframes fallAndSway {
    0% {
        transform: translateY(-20px) translateX(0) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(300px) translateX(80px) rotate(360deg);
        opacity: 0;
    }
}

/* ============================================
   Emergency Alert Ticker Bar
   ============================================ */
.emergency-alert-bar {
    width: 100%;
    position: relative;
    z-index: 1050;
    font-family: var(--font-heading);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease;
}

.emergency-alert-bar.slide-up {
    transform: translateY(-100%);
    opacity: 0;
}

.emergency-alert-bar .alert-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    min-height: 46px;
    position: relative;
}

.emergency-alert-bar.theme-danger {
    background: linear-gradient(135deg, #DC2626 0%, #B91C1C 100%);
    color: #FFFFFF;
}
.emergency-alert-bar.theme-warning {
    background: linear-gradient(135deg, #D97706 0%, #B45309 100%);
    color: #FFFFFF;
}
.emergency-alert-bar.theme-accent {
    background: linear-gradient(135deg, #6C5CE7 0%, #4F39E3 100%);
    color: #FFFFFF;
}
.emergency-alert-bar.theme-info {
    background: linear-gradient(135deg, #2563EB 0%, #1D4ED8 100%);
    color: #FFFFFF;
}

.alert-pulse-badge {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.4);
    font-size: 0.8rem;
    font-weight: bold;
    padding: 2px 8px;
    border-radius: 4px;
    white-space: nowrap;
    text-transform: uppercase;
    animation: alertBadgePulse 1.8s infinite alternate;
}

.alert-ticker-wrap {
    flex-grow: 1;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
}

.alert-ticker-text {
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.4;
    white-space: nowrap;
    animation: alertTickerScroll 25s linear infinite;
    display: inline-block;
    padding-left: 100%;
}

.alert-ticker-wrap:hover .alert-ticker-text {
    animation-play-state: paused;
}

.alert-close-btn {
    background: none;
    border: none;
    color: currentColor;
    cursor: pointer;
    padding: 4px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, transform 0.2s;
    flex-shrink: 0;
    opacity: 0.85;
}

.alert-close-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: rotate(90deg);
    opacity: 1;
}

@keyframes alertBadgePulse {
    0% { transform: scale(0.98); background-color: rgba(255,255,255,0.15); }
    100% { transform: scale(1.03); background-color: rgba(255,255,255,0.3); }
}

@keyframes alertTickerScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

/* ============================================
   Seasonal Decor Engine
   ============================================ */
.seasonal-decor-container {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100vh;
    pointer-events: none;
    z-index: 9999;
    overflow: hidden;
}

.decor-particle {
    position: absolute;
    top: -50px;
    pointer-events: none;
}

/* Pohela Boishakh Petals */
.boishakh-petal {
    width: 15px;
    height: 15px;
    background-color: #EA580C; /* গাঁদা কমলা */
    border-radius: 15px 0 15px 15px;
    opacity: 0.8;
    transform-origin: left top;
    animation: boishakhFalling 8s linear infinite;
}
.boishakh-petal:nth-child(3n) {
    background-color: #DC2626; /* কৃষ্ণচূড়া লাল */
    width: 12px;
    height: 18px;
    border-radius: 50% 50% 0 0;
}
.boishakh-petal:nth-child(3n+1) {
    background-color: #FBBF24; /* হলুদ */
    width: 16px;
    height: 10px;
    border-radius: 50%;
}

/* Eid Stars */
.eid-star {
    width: 16px;
    height: 16px;
    background-color: #FBBF24; /* উজ্জ্বল গোল্ডেন */
    clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
    opacity: 0;
    top: auto !important; /* let it render absolutely in container height */
    animation: eidSparkle 4s ease-in-out infinite;
}
.eid-star:nth-child(2n) {
    transform: scale(0.7);
    background-color: #FEF08A;
}

/* Winter Snowflakes */
.winter-snowflake {
    width: 8px;
    height: 8px;
    background-color: #E2E8F0;
    border-radius: 50%;
    opacity: 0.9;
    box-shadow: 0 0 8px #FFFFFF;
    animation: winterDrifting 6s linear infinite;
}
.winter-snowflake:nth-child(3n) {
    width: 12px;
    height: 12px;
    opacity: 0.7;
    box-shadow: 0 0 12px rgba(255,255,255,0.8);
}
.winter-snowflake:nth-child(3n+1) {
    width: 5px;
    height: 5px;
    opacity: 0.95;
}

/* Keyframes */
@keyframes boishakhFalling {
    0% {
        transform: translateY(-20px) translateX(0) rotate(0deg);
        opacity: 0;
    }
    10% { opacity: 0.8; }
    90% { opacity: 0.8; }
    100% {
        transform: translateY(105vh) translateX(120px) rotate(720deg);
        opacity: 0;
    }
}

@keyframes eidSparkle {
    0%, 100% { transform: scale(0.6) rotate(0deg); opacity: 0; }
    50% { transform: scale(1.15) rotate(180deg); opacity: 0.85; filter: drop-shadow(0 0 8px #FBBF24); }
}

@keyframes winterDrifting {
    0% {
        transform: translateY(-20px) translateX(0) rotate(0deg);
        opacity: 0;
    }
    10% { opacity: 0.9; }
    90% { opacity: 0.9; }
    100% {
        transform: translateY(105vh) translateX(-80px) rotate(360deg);
        opacity: 0;
    }
}

/* ============================================
   Interactive Post Reactions
   ============================================ */
.reaction-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 10px 18px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 75px;
    position: relative;
    overflow: hidden;
}

.reaction-btn:hover {
    background: var(--bg-card);
    border-color: var(--accent);
    transform: translateY(-4px);
    box-shadow: 0 6px 15px -4px rgba(108, 92, 231, 0.15);
}

.reaction-btn .emoji {
    font-size: 1.8rem;
    transition: transform 0.25s ease;
}

.reaction-btn:hover .emoji {
    animation: wobbleReaction 0.6s ease-in-out infinite alternate;
}

.reaction-btn .count {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-secondary);
}

.reaction-btn:hover .count {
    color: var(--accent);
}

.reaction-btn.reacted {
    background: var(--accent-light);
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(108, 92, 231, 0.2), inset 0 0 10px rgba(108, 92, 231, 0.1);
}

.reaction-btn.reacted .emoji {
    transform: scale(1.15);
    filter: drop-shadow(0 2px 4px rgba(108, 92, 231, 0.3));
}

.reaction-btn.reacted .count {
    color: var(--accent);
}

@keyframes wobbleReaction {
    0% { transform: rotate(-8deg) scale(1); }
    100% { transform: rotate(8deg) scale(1.15); }
}