/**
 * Assamese Typing Portal - Modern 2026 Core Design System
 * File: assets/css/style.css
 * 
 * Built with Classic CSS.
 * Clean, lightweight, fully responsive across mobile, tablet, and desktop.
 */

/* ==========================================================================
   1. CSS Custom Properties / Design Tokens
   ========================================================================== */
:root {
    /* Brand Color Palette */
    --primary: #4f46e5;            /* Modern Indigo */
    --primary-hover: #4338ca;
    --primary-light: #eef2ff;
    --primary-dark: #3730a3;
    
    /* Cultural & Action Accent */
    --accent: #e11d48;             /* Vibrant Crimson / Gamusa Red */
    --accent-hover: #be123c;
    --accent-light: #ffe4e6;
    
    /* Secondary & Neutrals */
    --secondary: #64748b;
    --secondary-light: #f1f5f9;
    --secondary-dark: #334155;
    
    /* Dark & Surface Shades */
    --bg-body: #f8fafc;
    --bg-surface: #ffffff;
    --bg-elevated: #ffffff;
    --bg-dark: #0f172a;
    --bg-dark-card: #1e293b;
    
    /* Text Hierarchy */
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #64748b;
    --text-light: #f8fafc;
    
    /* Borders & Lines */
    --border: #e2e8f0;
    --border-light: #f1f5f9;
    --border-focus: #818cf8;
    
    /* Semantic Status */
    --success: #10b981;
    --success-light: #ecfdf5;
    --warning: #f59e0b;
    --warning-light: #fffbeb;
    --danger: #ef4444;
    --danger-light: #fef2f2;
    --info: #0284c7;
    
    /* Shadows */
    --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.08), 0 1px 2px -1px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -2px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
    --shadow-glow: 0 0 20px rgba(79, 70, 229, 0.25);
    
    /* Radii */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 22px;
    --radius-full: 9999px;
    
    /* Typography */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --font-assamese: 'Noto Sans Bengali', 'Kalpurush', sans-serif;
    --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    
    /* Transitions */
    --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   2. Modern Reset & Base Elements
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-body);
    color: var(--text-primary);
    line-height: 1.65;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

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

img {
    max-width: 100%;
    height: auto;
    display: block;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--text-primary);
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.02em;
}

/* ==========================================================================
   3. Layout Grid & Containers
   ========================================================================== */
.container {
    width: 100%;
    max-width: 1220px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 24px;
    padding-right: 24px;
}

.main-content,
.site-main {
    flex: 1 0 auto;
    padding: 12px 0 64px;
}

/* Accessibility & Hidden Semantic SEO */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ==========================================================================
   4. Top Announcement Bar & Sticky Header
   ========================================================================== */
.top-bar {
    background: #0f172a;
    color: #94a3b8;
    font-size: 0.82rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.top-bar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 7px;
    padding-bottom: 7px;
}

.top-bar-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.badge-accent {
    background: linear-gradient(135deg, var(--accent) 0%, #be123c 100%);
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: var(--radius-full);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.top-bar-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.top-bar-right a {
    color: #94a3b8;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
}

.top-bar-right a:hover {
    color: #ffffff;
}

.top-bar-right .admin-link {
    color: #818cf8;
    font-weight: 600;
}

.top-bar-right .admin-link:hover {
    color: #a5b4fc;
}

/* Sticky Main Navigation Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.04);
    transition: var(--transition);
}

.header-inner,
.header-container {
    max-width: 1220px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 24px;
}

/* Brand Logo Component */
.site-logo,
.logo-section .logo-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-icon,
.logo-badge {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--primary) 0%, #7c3aed 100%);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.45rem;
    font-family: var(--font-assamese);
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
    flex-shrink: 0;
}

.site-logo-img {
    object-fit: contain;
    flex-shrink: 0;
    transition: var(--transition);
}

.footer-logo-img {
    object-fit: contain;
    display: block;
}

.logo-text,
.logo-title-group {
    display: flex;
    flex-direction: column;
}

.logo-title,
.logo-main-text {
    font-size: 1.25rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary) 0%, #6366f1 50%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.03em;
    line-height: 1.15;
}

.logo-tagline,
.logo-sub-text {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.04em;
    font-family: var(--font-assamese);
}

/* Navigation Menu */
.site-nav .nav-list,
.main-nav .nav-list {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 4px;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: var(--radius-full);
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
}

.nav-link i {
    font-size: 0.95rem;
    color: var(--secondary);
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--primary);
    background-color: var(--primary-light);
}

.nav-link:hover i {
    color: var(--primary);
}

.nav-link.active {
    color: var(--primary);
    background-color: var(--primary-light);
    font-weight: 600;
}

.nav-link.active i {
    color: var(--primary);
}

/* Mobile Menu Toggle Button */
.mobile-toggle,
.mobile-nav-toggle {
    display: none;
    background: none;
    border: 1px solid var(--border);
    padding: 9px 13px;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-size: 1.15rem;
    color: var(--text-primary);
    transition: var(--transition);
}

.mobile-toggle:hover,
.mobile-nav-toggle:hover {
    background-color: var(--secondary-light);
    border-color: var(--border-focus);
}

/* Flash Messages Alert Box */
.flash-container {
    margin-top: 16px;
    margin-bottom: 8px;
}

.alert {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    border-radius: var(--radius-md);
    font-size: 0.92rem;
    font-weight: 500;
    margin-bottom: 12px;
    border: 1px solid transparent;
}

.alert-success {
    background-color: var(--success-light);
    color: #065f46;
    border-color: #a7f3d0;
}

.alert-danger {
    background-color: var(--danger-light);
    color: #991b1b;
    border-color: #fecaca;
}

.alert-close {
    margin-left: auto;
    background: none;
    border: none;
    font-size: 1.25rem;
    line-height: 1;
    color: inherit;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.15s ease;
}

.alert-close:hover {
    opacity: 1;
}

/* Admin Button Pill */
.nav-link-cta {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #ffffff !important;
    padding: 8px 18px;
    border-radius: var(--radius-full);
    box-shadow: 0 2px 8px rgba(79, 70, 229, 0.25);
}

.nav-link-cta i {
    color: #ffffff !important;
}

.nav-link-cta:hover {
    background: linear-gradient(135deg, var(--primary-hover) 0%, #312e81 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.35);
}

/* Mobile Menu Toggle Button */
.mobile-nav-toggle {
    display: none;
    background: none;
    border: 1px solid var(--border);
    padding: 9px 12px;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-size: 1.15rem;
    color: var(--text-primary);
    transition: var(--transition);
}

.mobile-nav-toggle:hover {
    background-color: var(--secondary-light);
    border-color: var(--border-focus);
}

/* ==========================================================================
   5. Hero Banner Section
   ========================================================================== */
.hero-banner {
    text-align: center;
    padding: 36px 24px 32px;
    margin-bottom: 28px;
    background: radial-gradient(circle at 50% 0%, rgba(79, 70, 229, 0.08) 0%, rgba(248, 250, 252, 0) 70%);
    border-radius: var(--radius-xl);
    position: relative;
}

.hero-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #ffffff;
    border: 1px solid rgba(79, 70, 229, 0.2);
    box-shadow: var(--shadow-sm);
    padding: 6px 16px;
    border-radius: var(--radius-full);
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 16px;
}

.hero-badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--accent);
    box-shadow: 0 0 8px rgba(225, 29, 72, 0.6);
    display: inline-block;
}

.hero-banner h1 {
    font-size: 2.35rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 12px;
    font-family: var(--font-assamese);
    letter-spacing: -0.03em;
    line-height: 1.25;
}

.hero-banner p {
    font-size: 1.05rem;
    color: var(--text-muted);
    max-width: 720px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ==========================================================================
   6. Content Blocks, Cards & Grids
   ========================================================================== */
.section-header,
.section-title-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--border-light);
}

.section-title,
.section-heading {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.45rem;
    font-weight: 700;
    color: var(--text-primary);
}

.section-title i,
.section-heading i {
    color: var(--primary);
    font-size: 1.35rem;
}

.view-all-link {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
}

.view-all-link:hover {
    transform: translateX(3px);
}

/* Feature Cards Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 22px;
    margin: 36px 0;
}

.feature-card {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(79, 70, 229, 0.3);
}

.feature-icon-wrap {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-lg);
    background: var(--primary-light);
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.65rem;
    margin-bottom: 18px;
    transition: var(--transition);
}

.feature-card:hover .feature-icon-wrap {
    background: var(--primary);
    color: #ffffff;
    transform: scale(1.08);
}

.feature-card h3 {
    font-size: 1.15rem;
    margin-bottom: 8px;
}

.feature-card p {
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Generic Card & Post Cards Grid */
.card {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
}

.feature-highlight-card {
    text-align: center;
    padding: 25px 20px;
    text-decoration: none !important;
    color: inherit;
    display: block;
    cursor: pointer;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.25s ease;
}

.feature-highlight-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 28px -4px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.06);
    border-color: rgba(79, 70, 229, 0.35);
}

.homepage-text-content-section {
    transition: var(--transition-smooth);
}

.homepage-text-body p {
    margin-bottom: 16px;
    line-height: 1.75;
}

.homepage-text-body p:last-child {
    margin-bottom: 0;
}

.homepage-text-body a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: underline;
    transition: var(--transition);
}

.homepage-text-body a:hover {
    color: var(--primary-dark);
}

.inscript-guide-section {
    transition: var(--transition-smooth);
}

.inscript-guide-body h2 {
    font-size: 1.38rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 24px 0 12px;
    line-height: 1.35;
}

.inscript-guide-body h2:first-child {
    margin-top: 0;
}

.inscript-guide-body p {
    margin-bottom: 16px;
    line-height: 1.75;
}

.inscript-guide-body p:last-child {
    margin-bottom: 0;
}

.inscript-guide-body a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: underline;
    transition: var(--transition);
}

.inscript-guide-body a:hover {
    color: var(--primary-dark);
}

.keyboard-types-section {
    transition: var(--transition-smooth);
}

.keyboard-types-body h2 {
    font-size: 1.38rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 24px 0 12px;
    line-height: 1.35;
}

.keyboard-types-body h2:first-child {
    margin-top: 0;
}

.keyboard-types-body h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 20px 0 10px;
    line-height: 1.35;
}

.keyboard-types-body p {
    margin-bottom: 16px;
    line-height: 1.75;
}

.keyboard-types-body p:last-child {
    margin-bottom: 0;
}

.keyboard-types-body a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: underline;
    transition: var(--transition);
}

.keyboard-types-body a:hover {
    color: var(--primary-dark);
}

/* How to Use Grid & Step Cards (2x2 Grid matching reference design) */
.how-to-use-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

@media (max-width: 768px) {
    .how-to-use-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

.how-to-use-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 16px 16px 18px 16px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.25s ease;
    display: flex;
    flex-direction: column;
    text-align: center;
}

.how-to-use-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px -4px rgba(0, 0, 0, 0.09), 0 6px 10px -4px rgba(0, 0, 0, 0.04);
    border-color: #cbd5e1;
}

.how-to-use-card img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    display: block;
    box-sizing: border-box;
    background: #ffffff;
    content-visibility: auto;
}

img[loading="lazy"] {
    content-visibility: auto;
}

.how-to-use-caption {
    margin-top: 14px;
    font-size: 1rem;
    font-weight: 400;
    color: #1e293b;
    text-align: left;
    line-height: 1.4;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 26px;
}

.post-card {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    transition: var(--transition-smooth);
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    border-color: rgba(79, 70, 229, 0.25);
}

.post-card-img,
.post-thumbnail-wrap {
    position: relative;
    height: 190px;
    background-color: var(--secondary-light);
    overflow: hidden;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.post-card-img img,
.post-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.post-card:hover .post-card-img img,
.post-card:hover .post-thumbnail {
    transform: scale(1.05);
}

.post-card-body {
    padding: 22px;
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
}

.post-card-badge,
.post-category-tag {
    display: inline-block;
    align-self: flex-start;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background-color: var(--primary-light);
    color: var(--primary);
    margin-bottom: 12px;
}

.post-card-title,
.post-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.4;
    font-family: var(--font-assamese);
}

.post-card-title a,
.post-title a {
    color: var(--text-primary);
}

.post-card-title a:hover,
.post-title a:hover {
    color: var(--primary);
}

.post-card-excerpt,
.post-excerpt {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.65;
    margin-bottom: 18px;
    flex: 1 0 auto;
}

.post-card-meta,
.post-meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 14px;
    border-top: 1px solid var(--border-light);
    font-size: 0.82rem;
    color: var(--text-muted);
}

.post-card-meta span,
.post-meta-row span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* Text-Only Card Layout for Latest Assamese Essays & Articles */
.posts-grid-text {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 22px;
}

.post-card-text {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px 26px;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.25s ease;
}

.post-card-text:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px -4px rgba(0, 0, 0, 0.08), 0 4px 10px -2px rgba(0, 0, 0, 0.04);
    border-color: rgba(79, 70, 229, 0.3);
}

.post-card-text .post-card-title {
    font-size: 1.16rem;
    font-weight: 700;
    line-height: 1.45;
    margin-bottom: 12px;
}

.post-card-text .post-card-title a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.post-card-text:hover .post-card-title a {
    color: var(--primary);
}

.post-card-text .post-card-excerpt {
    font-size: 0.94rem;
    color: var(--text-secondary);
    line-height: 1.65;
    margin-bottom: 0;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (max-width: 768px) {
    .posts-grid-text {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .post-card-text {
        padding: 20px;
    }
}

/* Outline Buttons */
.btn-outline {
    background: #ffffff;
    border: 1.5px solid var(--border);
    color: var(--text-primary);
    box-shadow: var(--shadow-xs);
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
    background-color: var(--primary-light);
}

/* Tables & Custom Data Displays */
.table-responsive {
    overflow-x: auto;
    width: 100%;
}

.table-custom {
    width: 100%;
    border-collapse: collapse;
    margin: 12px 0;
    font-size: 0.92rem;
}

.table-custom th {
    background: var(--secondary-light);
    color: var(--text-primary);
    font-weight: 700;
    padding: 12px 16px;
    text-align: left;
    border-bottom: 2px solid var(--border);
}

.table-custom td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-light);
    color: var(--text-secondary);
}

.table-custom tr:hover td {
    background-color: var(--primary-light);
}

.char-as {
    font-family: var(--font-assamese);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
}

/* Link Cards & Top Meta */
.link-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
    width: 100%;
}

.link-badge {
    background: #eef2ff;
    color: #4f46e5;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 9999px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.link-category {
    font-size: 0.78rem;
    color: #64748b;
    font-weight: 500;
}

.link-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.4;
    margin: 0 0 8px 0;
}

.link-desc {
    font-size: 0.88rem;
    color: #64748b;
    line-height: 1.55;
    margin: 0 0 16px 0;
    flex: 1 0 auto;
}

.link-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #4f46e5;
    background: #f8fafc;
    padding: 7px 14px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    text-decoration: none;
    transition: all 0.18s ease;
    align-self: flex-start;
    margin-top: auto;
}

.link-btn:hover {
    background: #4f46e5;
    color: #ffffff;
    border-color: #4f46e5;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(79, 70, 229, 0.25);
}

.link-btn i {
    font-size: 0.78rem;
}

/* ==========================================================================
   7. Important Links Directory
   ========================================================================== */
.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 22px;
}

.link-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 22px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-decoration: none;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
    transition: all 0.22s ease;
    height: 100%;
    box-sizing: border-box;
}

.link-card:hover {
    transform: translateY(-4px);
    border-color: #cbd5e1;
    box-shadow: 0 12px 24px -6px rgba(79, 70, 229, 0.12);
}

/* Link Logo / Icon */
.link-logo-box {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 12px;
    flex-shrink: 0;
}

.link-logo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.link-logo-icon {
    font-size: 1.35rem;
    color: #4f46e5;
}

/* ==========================================================================
   7b. Single Post Article & Sidebar Layout
   ========================================================================== */
.post-layout {
    display: block;
    width: 100%;
    margin-top: 20px;
}

.post-layout.has-sticky-ad {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 336px;
    gap: 32px;
    align-items: start;
}

.post-layout.no-sticky-ad {
    display: block;
    max-width: 900px;
    margin: 20px auto 40px;
}

.article-sticky-sidebar {
    position: -webkit-sticky;
    position: sticky;
    top: 86px;
    width: 100%;
    z-index: 10;
}

.post-article {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 36px 40px;
    box-shadow: var(--shadow-sm);
    min-width: 0;
    box-sizing: border-box;
}

.post-header {
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-light);
}

.post-full-title {
    font-size: 2.1rem;
    font-weight: 800;
    font-family: var(--font-assamese);
    margin: 12px 0 16px;
    line-height: 1.35;
    color: var(--text-primary);
}

.post-header-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 0.88rem;
    color: var(--text-muted);
    flex-wrap: wrap;
}

.post-header-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.post-featured-image {
    border-radius: var(--radius-lg, 14px);
    overflow: hidden;
    margin-bottom: 28px;
    background: #f1f5f9;
    aspect-ratio: 16 / 9;
    max-height: 480px;
    box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.08);
}

.post-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ==========================================================================
   Article Typography & Minimal Reading Layout (.post-content)
   ========================================================================== */
.post-content,
.post-body-content {
    font-size: 1.08rem;
    line-height: 1.88;
    color: #334155;
    font-family: var(--font-assamese);
    word-break: break-word;
    display: block;
}

.post-content p,
.post-body-content p {
    margin-top: 0;
    margin-bottom: 1.45rem;
    line-height: 1.88;
}

/* Minimal Modern Headings with Clean Indigo Accent */
.post-content h2,
.post-body-content h2 {
    font-size: clamp(1.35rem, 2.3vw, 1.7rem);
    font-weight: 700;
    color: #0f172a;
    line-height: 1.38;
    margin-top: 2.6rem;
    margin-bottom: 1.1rem;
    padding-left: 14px;
    border-left: 3.5px solid #4f46e5;
    border-radius: 2px 0 0 2px;
}

.post-content h3,
.post-body-content h3 {
    font-size: clamp(1.15rem, 1.8vw, 1.32rem);
    font-weight: 600;
    color: #1e293b;
    line-height: 1.45;
    margin-top: 2rem;
    margin-bottom: 0.85rem;
}

.post-content h4,
.post-body-content h4 {
    font-size: 1.05rem;
    font-weight: 600;
    color: #334155;
    margin-top: 1.5rem;
    margin-bottom: 0.65rem;
}

/* Subtle, Minimal Section Dividers */
.post-content hr,
.post-body-content hr {
    border: none;
    height: 1px;
    background: linear-gradient(90deg, transparent, #e2e8f0 20%, #e2e8f0 80%, transparent);
    margin: 2.2rem 0;
}

/* Clean, Readable Lists with Custom Violet Markers */
.post-content ul,
.post-content ol,
.post-body-content ul,
.post-body-content ol {
    margin: 1rem 0 1.6rem 0;
    padding-left: 1.6rem;
}

.post-content li,
.post-body-content li {
    margin-bottom: 0.65rem;
    line-height: 1.78;
    color: #334155;
}

.post-content ul > li::marker,
.post-body-content ul > li::marker {
    color: #6366f1;
    font-size: 1.1em;
}

.post-content ol > li::marker,
.post-body-content ol > li::marker {
    color: #6366f1;
    font-weight: 700;
    font-family: sans-serif;
}

/* Modern Minimal Blockquotes */
.post-content blockquote,
.post-body-content blockquote {
    border-left: 4px solid #4f46e5;
    padding: 16px 22px;
    background: #f8fafc;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    margin: 2rem 0;
    font-style: italic;
    color: #475569;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.post-content blockquote p:last-child,
.post-body-content blockquote p:last-child {
    margin-bottom: 0;
}

/* Editorial Links */
.post-content a,
.post-body-content a {
    color: #4f46e5;
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: rgba(79, 70, 229, 0.35);
    text-underline-offset: 3px;
    transition: color 0.15s ease, text-decoration-color 0.15s ease;
}

.post-content a:hover,
.post-body-content a:hover {
    color: #3730a3;
    text-decoration-color: #3730a3;
}

/* Bold Text Emphasis */
.post-content strong,
.post-content b,
.post-body-content strong,
.post-body-content b {
    font-weight: 700;
    color: #0f172a;
}

/* Comparison Tables & Data Layouts */
.post-content table,
.post-body-content table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    margin: 2rem 0;
    font-size: 0.96rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}

@media (max-width: 768px) {
    .post-content table,
    .post-body-content table {
        display: block;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

.post-content th,
.post-body-content th {
    background: #f8fafc;
    color: #0f172a;
    font-weight: 700;
    padding: 13px 16px;
    border-bottom: 1px solid #cbd5e1;
    border-right: 1px solid #f1f5f9;
    text-align: left;
}

.post-content th:last-child,
.post-body-content th:last-child {
    border-right: none;
}

.post-content td,
.post-body-content td {
    padding: 12px 16px;
    border-bottom: 1px solid #f1f5f9;
    border-right: 1px solid #f1f5f9;
    color: #334155;
    vertical-align: top;
    line-height: 1.6;
}

.post-content td:last-child,
.post-body-content td:last-child {
    border-right: none;
}

.post-content tr:last-child td,
.post-body-content tr:last-child td {
    border-bottom: none;
}

.post-content tr:nth-child(even) td,
.post-body-content tr:nth-child(even) td {
    background-color: #fafbfd;
}

.post-content tr:hover td,
.post-body-content tr:hover td {
    background-color: #f1f5f9;
}

/* Inline Code & Technical Snippets */
.post-content code,
.post-body-content code {
    background: #f1f5f9;
    color: #4338ca;
    padding: 2px 7px;
    border-radius: 5px;
    font-size: 0.88em;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    border: 1px solid #e2e8f0;
}

.post-content pre,
.post-body-content pre {
    background: #0f172a;
    color: #f8fafc;
    padding: 20px 24px;
    border-radius: 12px;
    overflow-x: auto;
    margin: 1.8rem 0;
    font-size: 0.92rem;
    line-height: 1.6;
}

.post-content pre code,
.post-body-content pre code {
    background: transparent;
    color: inherit;
    padding: 0;
    border: none;
    font-size: inherit;
}

/* Article Images & Figures */
.post-content img,
.post-body-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 1.8rem auto;
    display: block;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

/* Meta Data & Tip Cards */
.article-meta-data,
.post-content .article-meta-data {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    border-left: 4px solid #4f46e5 !important;
    border-radius: 10px !important;
    padding: 16px 20px !important;
    margin-bottom: 2rem !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02) !important;
}

.share-bar,
.post-share-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 36px;
    padding-top: 24px;
    border-top: 1px solid var(--border-light, #e2e8f0);
    flex-wrap: wrap;
}

.share-label {
    font-size: 0.95rem;
    font-weight: 700;
    color: #1e293b;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-right: 4px;
}

.share-label i {
    color: #4f46e5;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 16px;
    border-radius: var(--radius-full, 9999px);
    font-size: 0.86rem;
    font-weight: 600;
    color: #ffffff !important;
    text-decoration: none;
    border: none !important;
    cursor: pointer;
    outline: none;
    transition: all 0.2s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    line-height: 1.4;
}

.share-btn:hover {
    transform: translateY(-1.5px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    color: #ffffff !important;
}

.share-btn:active {
    transform: translateY(0);
}

.share-btn.share-wa, .share-btn.wa { background: #25D366 !important; }
.share-btn.share-wa:hover, .share-btn.wa:hover { background: #20ba5a !important; }

.share-btn.share-fb, .share-btn.fb { background: #1877F2 !important; }
.share-btn.share-fb:hover, .share-btn.fb:hover { background: #1565cf !important; }

.share-btn.share-tw, .share-btn.tw { background: #000000 !important; }
.share-btn.share-tw:hover, .share-btn.tw:hover { background: #222222 !important; }

.share-btn.share-tg, .share-btn.tg { background: #229ED9 !important; }
.share-btn.share-tg:hover, .share-btn.tg:hover { background: #1d88ba !important; }

.share-btn.share-copy, .share-btn.copy { background: #475569 !important; }
.share-btn.share-copy:hover, .share-btn.copy:hover { background: #334155 !important; }

/* ==========================================================================
   Newly Minimal Design: Related Articles Section (Below Article)
   ========================================================================== */
.related-articles-section {
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid var(--border-light);
}

.related-section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 22px;
    flex-wrap: wrap;
    gap: 12px;
}

.related-header-left {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.related-section-badge {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--primary);
}

.related-section-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0;
    letter-spacing: -0.2px;
}

.related-view-all {
    font-size: 0.86rem;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.related-view-all:hover {
    color: var(--primary-dark);
    gap: 9px;
}

.related-articles-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.minimal-related-card {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
}

.minimal-related-card:hover {
    border-color: #93c5fd;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px -4px rgba(37, 99, 235, 0.08);
}

.related-card-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

.related-card-thumb {
    width: 100%;
    height: 135px;
    overflow: hidden;
    background: #f8fafc;
}

.related-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.minimal-related-card:hover .related-card-thumb img {
    transform: scale(1.03);
}

.related-card-content {
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.related-card-cat {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
    display: inline-block;
}

.related-card-title {
    font-size: 0.98rem;
    font-weight: 700;
    line-height: 1.45;
    color: var(--text-primary);
    margin: 0 0 12px;
    font-family: var(--font-assamese);
    transition: color 0.2s ease;
    flex-grow: 1;
}

.minimal-related-card:hover .related-card-title {
    color: var(--primary);
}

.related-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 10px;
    border-top: 1px solid var(--border-light);
    font-size: 0.78rem;
    color: var(--text-muted);
}

.related-read-arrow {
    color: var(--primary);
    transition: transform 0.2s ease;
}

.minimal-related-card:hover .related-read-arrow {
    transform: translateX(3px);
}

@media (max-width: 680px) {
    .related-articles-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   User Comments Section (Below Related Articles)
   ========================================================================== */
.comments-section {
    margin-top: 48px;
    padding-top: 36px;
    border-top: 1px solid var(--border-light);
}

.comments-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.comments-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    letter-spacing: -0.2px;
}

.comments-title i {
    color: var(--primary);
    font-size: 1.25rem;
}

.comment-alert {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 20px;
    border-radius: 12px;
    margin-bottom: 24px;
    font-size: 0.92rem;
    line-height: 1.5;
}

.comment-alert i {
    font-size: 1.35rem;
    margin-top: 2px;
    flex-shrink: 0;
}

.comment-alert-success {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #065f46;
}

.comment-alert-success i {
    color: #10b981;
}

.comment-alert-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

.comment-alert-error i {
    color: #ef4444;
}

.comments-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 36px;
}

.comment-item {
    display: flex;
    gap: 16px;
    padding: 18px 20px;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.02);
}

.comment-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: #ffffff;
    font-weight: 700;
    font-size: 1.15rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    text-transform: uppercase;
    box-shadow: 0 2px 6px rgba(59, 130, 246, 0.25);
}

.comment-body {
    flex-grow: 1;
    min-width: 0;
}

.comment-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
    flex-wrap: wrap;
    gap: 8px;
}

.comment-author {
    font-size: 0.98rem;
    font-weight: 700;
    color: var(--text-primary);
}

.comment-time {
    font-size: 0.78rem;
    color: var(--text-muted);
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.comment-content {
    font-size: 0.92rem;
    line-height: 1.6;
    color: #334155;
    word-break: break-word;
}

.comment-actions {
    margin-top: 10px;
    display: flex;
    align-items: center;
}

.btn-comment-reply {
    background: transparent;
    border: none;
    color: var(--primary, #4f46e5);
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    padding: 4px 10px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: background 0.15s ease, color 0.15s ease;
}

.btn-comment-reply:hover {
    background: #e0e7ff;
    color: #3730a3;
}

.comment-replies-list {
    margin-top: 14px;
    padding-left: 18px;
    border-left: 3px solid #cbd5e1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.comment-reply-item {
    padding: 14px 16px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
}

.comment-reply-item.is-admin-reply {
    background: #f0f9ff;
    border-color: #bae6fd;
}

.reply-avatar {
    width: 36px;
    height: 36px;
    font-size: 0.95rem;
}

.badge-admin-tag {
    background: #0284c7;
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.no-comments-prompt {
    padding: 32px 20px;
    text-align: center;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 12px;
    color: #64748b;
    margin-bottom: 32px;
}

.no-comments-prompt i {
    font-size: 2rem;
    color: #94a3b8;
    margin-bottom: 8px;
    display: block;
}

.no-comments-prompt p {
    margin: 0;
    font-size: 0.92rem;
}

.comment-form-box {
    background: #f8fafc;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 26px;
}

.comment-form-box h4 {
    margin: 0 0 18px;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.comment-form-box h4 i {
    color: var(--primary);
}

.comment-form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 16px;
}

@media (max-width: 640px) {
    .comment-form-row {
        grid-template-columns: 1fr;
    }
}

.comment-form .form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 16px;
}

.comment-form .form-label {
    font-size: 0.88rem;
    font-weight: 600;
    color: #334155;
    margin-bottom: 6px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.comment-form .label-hint {
    font-size: 0.76rem;
    font-weight: 400;
    color: #94a3b8;
    margin-left: 4px;
}

.comment-input,
.comment-textarea {
    width: 100%;
    padding: 10px 14px;
    font-size: 0.92rem;
    font-family: inherit;
    color: #0f172a;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.comment-textarea {
    resize: vertical;
    min-height: 100px;
    line-height: 1.5;
}

.comment-input:focus,
.comment-textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.btn-comment-submit {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 24px;
    background: var(--primary);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 0.92rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.25);
}

.btn-comment-submit:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

/* Sidebar Widgets */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.sidebar-widget,
.widget {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-xs);
    box-sizing: border-box;
}

.sidebar-title,
.widget-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 18px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border-light);
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-primary);
}

.sidebar-title i,
.widget-title i {
    color: var(--primary);
}

.category-list,
.widget-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.category-list li,
.widget-list li {
    list-style: none;
    margin: 0;
    padding: 0;
}

.category-list a,
.category-link-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-secondary);
    font-size: 0.92rem;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    text-decoration: none;
}

.category-list a:hover,
.category-link-item:hover {
    background-color: var(--primary-light);
    color: var(--primary);
}

.category-count {
    background: var(--secondary-light);
    padding: 2px 8px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--secondary);
}

.related-posts-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.related-post-item {
    display: flex;
    gap: 12px;
    align-items: center;
}

.related-post-thumb {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-md);
    overflow: hidden;
    flex-shrink: 0;
    background: var(--secondary-light);
}

.related-post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.related-post-info h4 {
    font-size: 0.92rem;
    font-weight: 600;
    line-height: 1.4;
    font-family: var(--font-assamese);
}

.related-post-info a {
    color: var(--text-primary);
}

.related-post-info a:hover {
    color: var(--primary);
}

.related-post-date {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 4px;
}

@media (max-width: 992px) {
    .post-layout,
    .post-layout.has-sticky-ad {
        grid-template-columns: 1fr;
    }
    .article-sticky-sidebar {
        position: static;
        max-width: 336px;
        margin: 28px auto 0;
    }
    .post-article {
        padding: 24px 20px;
    }
}

/* ==========================================================================
   8. Accordions & FAQs
   ========================================================================== */
.article-faq-wrap {
    background: #ffffff;
    border: 1.5px solid var(--border);
    border-radius: clamp(12px, 2.5vw, 16px);
    padding: clamp(18px, 3.5vw, 32px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
    margin-top: 28px;
    margin-bottom: clamp(20px, 4vw, 32px);
}

.article-faq-wrap h2 {
    font-size: clamp(1.05rem, 3vw, 1.4rem);
    font-weight: 800;
    color: #0f172a;
    margin-top: 0;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Noto Sans Bengali', sans-serif;
}

.accordion {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

.accordion-wrapper {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 900px;
    margin: 0 auto;
}

.accordion-item {
    width: 100%;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xs);
    transition: var(--transition);
}

/* Fallback margin for older non-flex contexts */
@supports not (gap: 12px) {
    .accordion-item:not(:last-child) {
        margin-bottom: 12px;
    }
}

.accordion-item:hover {
    border-color: rgba(79, 70, 229, 0.3);
    box-shadow: var(--shadow-sm);
}

.accordion-header {
    width: 100%;
    background: none;
    border: none;
    padding: 18px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: left;
    cursor: pointer;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-primary);
    transition: var(--transition);
}

.accordion-header:hover {
    color: var(--primary);
    background-color: var(--secondary-light);
}

.accordion-icon {
    font-size: 1rem;
    color: var(--primary);
    transition: transform 0.25s ease;
}

.accordion-item.open .accordion-icon {
    transform: rotate(180deg);
}

.accordion-body {
    display: none;
    padding: 18px 24px 22px;
    border-top: 1px solid var(--border-light);
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
    background-color: #fafbfc;
}

.accordion-item.open .accordion-body {
    display: block;
}

/* ==========================================================================
   9. Clean Form Controls
   ========================================================================== */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    color: var(--text-primary);
    background-color: #ffffff;
    font-family: inherit;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.12);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 22px;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    cursor: pointer;
    border: none;
    transition: var(--transition);
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(79, 70, 229, 0.25);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-hover) 0%, #312e81 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.35);
    color: #ffffff;
}

/* ==========================================================================
   10. Modern Multi-Column Site Footer
   ========================================================================== */
.site-footer {
    background-color: var(--bg-dark);
    color: #ffffff;
    margin-top: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-top-wrap {
    padding: 60px 0 40px;
}

.footer-inner,
.footer-grid {
    display: grid;
    grid-template-columns: minmax(280px, 1.8fr) repeat(auto-fit, minmax(180px, 1fr));
    gap: 40px;
    padding: 60px 0 40px;
}

.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #ffffff;
    text-decoration: none;
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 16px;
}

.footer-logo-icon {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--primary) 0%, #7c3aed 100%);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    font-family: var(--font-assamese);
    font-weight: 700;
}

.footer-logo-title {
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: 800;
}

.footer-desc {
    font-size: 0.92rem;
    color: #94a3b8;
    line-height: 1.7;
    max-width: 320px;
    margin-bottom: 22px;
}

.social-links {
    display: flex;
    gap: 10px;
}

.social-links a,
.social-btn {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #cbd5e1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: var(--transition);
}

.social-links a:hover,
.social-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #ffffff;
    transform: translateY(-2px);
}

.footer-heading,
.footer-col h4 {
    color: #ffffff;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 18px;
    letter-spacing: -0.01em;
}

.footer-links,
.footer-nav-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a,
.footer-nav-list a {
    color: #94a3b8;
    font-size: 0.9rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
}

.footer-links a:hover,
.footer-nav-list a:hover {
    color: #ffffff;
    transform: translateX(3px);
}

.footer-contact-mini {
    margin-top: 14px;
    font-size: 0.88rem;
    color: #94a3b8;
}

.footer-bottom,
.footer-bottom-wrap {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 24px 0;
}

.footer-bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 0.88rem;
    color: #64748b;
}

.footer-bottom-inner a {
    color: #94a3b8;
}

.footer-bottom-inner a:hover {
    color: #ffffff;
}

.footer-bottom-links {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.footer-bottom-links a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.84rem;
    transition: var(--transition);
}

.footer-bottom-links a:hover {
    color: #ffffff;
}

.footer-bottom-links .sep {
    color: #475569;
    font-size: 0.72rem;
    user-select: none;
}

.built-with {
    font-size: 0.85rem;
    color: #64748b;
}

/* ==========================================================================
   11. Desktop & Laptop Responsive Breakpoints
   ========================================================================== */

/* 1. Large & Ultra-wide Desktops (1600px and up) */
@media (min-width: 1600px) {
    .container {
        max-width: 1380px;
        padding-left: 32px;
        padding-right: 32px;
    }
    .hero-banner {
        padding: 48px 32px 40px;
    }
    .hero-banner h1 {
        font-size: 2.65rem;
    }
    .hero-banner p {
        font-size: 1.15rem;
        max-width: 820px;
    }
    .typing-section {
        padding: 32px 36px;
    }
    #textInput {
        font-size: 21px;
        height: 220px;
    }
    .posts-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 32px;
    }
    .features-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 26px;
    }
    .links-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
    }
    .post-layout {
        grid-template-columns: 1fr 360px;
        gap: 36px;
    }
}

/* 2. Standard Desktops & 15.6" Laptops (1366px - 1599px) */
@media (min-width: 1366px) and (max-width: 1599px) {
    .container {
        max-width: 1260px;
        padding-left: 24px;
        padding-right: 24px;
    }
    .posts-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 26px;
    }
    .features-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
    }
    .links-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 18px;
    }
}

/* 3. Medium Laptops & MacBooks (1200px - 1365px) */
@media (min-width: 1200px) and (max-width: 1365px) {
    .container {
        max-width: 1140px;
        padding-left: 20px;
        padding-right: 20px;
    }
    .nav-link {
        padding: 8px 14px;
        font-size: 0.9rem;
    }
    .post-layout {
        grid-template-columns: 1fr 310px;
        gap: 26px;
    }
    .posts-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 22px;
    }
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px;
    }
    .links-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }
    .footer-inner,
    .footer-grid {
        grid-template-columns: minmax(240px, 1.6fr) repeat(auto-fit, minmax(160px, 1fr));
        gap: 28px;
    }
}

/* 4. Compact Laptops, Netbooks & Split-Screen View (1024px - 1199px) */
@media (min-width: 1024px) and (max-width: 1199px) {
    .container {
        max-width: 980px;
        padding-left: 16px;
        padding-right: 16px;
    }
    .site-nav .nav-list,
    .main-nav .nav-list {
        gap: 2px;
    }
    .nav-link {
        padding: 7px 11px;
        font-size: 0.86rem;
        gap: 5px;
    }
    .typing-section {
        padding: 22px 20px;
    }
    .post-layout {
        grid-template-columns: 1fr 280px;
        gap: 20px;
    }
    .posts-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    .links-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    .footer-inner,
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
}

/* 5. Tablet Landscape / Intermediate Breakpoint (769px - 1023px) */
@media (min-width: 769px) and (max-width: 1023px) {
    .container {
        padding-left: 16px;
        padding-right: 16px;
    }
    .nav-link {
        padding: 6px 10px;
        font-size: 0.84rem;
    }
    .post-layout {
        grid-template-columns: 1fr;
    }
    .posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-inner,
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 28px;
    }
}

/* 6. Mobile Breakpoints (768px and below) */
@media (max-width: 768px) {
    .mobile-toggle,
    .mobile-nav-toggle {
        display: block;
    }
    
    .site-nav,
    .main-nav {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: #ffffff;
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow-xl);
        padding: 20px 24px;
        display: none;
        flex-direction: column;
        gap: 8px;
        z-index: 9999;
    }
    
    .site-nav.active,
    .main-nav.active {
        display: flex;
    }
    
    .site-nav .nav-list,
    .main-nav .nav-list {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }
    
    .nav-link {
        padding: 12px 18px;
        border-radius: var(--radius-md);
    }
    
    .footer-inner,
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }
    
    .footer-bottom-inner {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
    
    .hero-banner h1 {
        font-size: 1.85rem;
    }
    
    .hero-banner p {
        font-size: 0.95rem;
    }
}

/* ==========================================================================
   Homepage Sticky Skyscraper Ads Layout (AdSense Side Rails)
   ========================================================================== */
.homepage-sticky-ads-layout {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    width: 100%;
    max-width: 1680px;
    margin: 0 auto;
    padding: 0 12px;
    position: relative;
    gap: 16px;
    box-sizing: border-box;
}

.homepage-main-column {
    flex: 1 1 0;
    min-width: 0;
    max-width: 1220px;
}

.homepage-main-column > .container {
    padding-left: 0;
    padding-right: 0;
}

/* Sticky Rails */
.sticky-ad-rail {
    width: 160px;
    flex-shrink: 0;
    position: sticky;
    top: 85px; /* Floats smoothly below fixed header */
    z-index: 40;
    margin-top: 10px;
}

.sticky-ad-card {
    width: 100%;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 4px 16px -2px rgba(15, 23, 42, 0.05);
    overflow: hidden;
    text-align: center;
    transition: all 0.2s ease;
}

.sticky-ad-header {
    background: #f8fafc;
    border-bottom: 1px dashed #e2e8f0;
    padding: 5px 6px;
}

.sticky-ad-header span {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.8px;
    color: #94a3b8;
    text-transform: uppercase;
    display: block;
}

.sticky-ad-slot {
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    box-sizing: border-box;
    overflow: hidden;
}

.sticky-ad-slot ins.adsbygoogle {
    display: inline-block;
    width: 160px;
    height: 600px;
}

/* Elegant Placeholder when no AdSense code is active yet */
.ad-placeholder-box {
    width: 100%;
    height: 590px;
    border: 1.5px dashed #cbd5e1;
    border-radius: 8px;
    background: #f8fafc;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 16px 8px;
    box-sizing: border-box;
    color: #64748b;
    gap: 8px;
}

.ad-placeholder-box i {
    font-size: 26px;
    color: #4f46e5;
    opacity: 0.85;
}

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

.ad-ph-size {
    font-size: 11px;
    font-weight: 600;
    color: #4f46e5;
    background: #eef2ff;
    padding: 2px 7px;
    border-radius: 6px;
}

.ad-ph-desc {
    font-size: 10px;
    color: #94a3b8;
    line-height: 1.3;
}

/* Media Queries: Ensure perfect responsiveness */
@media (max-width: 1440px) {
    .sticky-ad-rail {
        width: 120px;
    }
    .sticky-ad-slot ins.adsbygoogle {
        width: 120px;
    }
    .ad-ph-size {
        font-size: 10px;
    }
}

@media (max-width: 1260px) {
    /* Gracefully hide on screens < 1260px so keyboard and typing canvas are never compressed */
    .sticky-ad-rail {
        display: none !important;
    }
    .homepage-sticky-ads-layout {
        padding: 0;
    }
    .homepage-main-column > .container {
        padding-left: 20px;
        padding-right: 20px;
    }
}

/* ==========================================================================
   Full Screen Mode Sticky Ads Placement
   ========================================================================== */
body.fs-active .sticky-ad-rail {
    position: fixed;
    top: 24px;
    z-index: 100005;
    display: block !important;
}

body.fs-active .sticky-ad-left {
    left: max(16px, calc((100vw - 1100px) / 2 - 178px));
}

body.fs-active .sticky-ad-right {
    right: max(16px, calc((100vw - 1100px) / 2 - 178px));
}

/* On mid-sized laptops (1260px - 1440px) during fullscreen */
@media (min-width: 1260px) and (max-width: 1440px) {
    body.fs-active .sticky-ad-rail {
        width: 120px;
    }
    body.fs-active .sticky-ad-left {
        left: max(12px, calc((100vw - 1000px) / 2 - 132px));
    }
    body.fs-active .sticky-ad-right {
        right: max(12px, calc((100vw - 1000px) / 2 - 132px));
    }
    body.fs-active .typing-section.fs-mode .typing-area,
    body.fs-active .typing-section.fs-mode .keyboard {
        max-width: 1000px;
    }
}

/* Hide on screens smaller than 1260px in fullscreen to prevent overlapping the typing box */
@media (max-width: 1259px) {
    body.fs-active .sticky-ad-rail {
        display: none !important;
    }
}

/* Dark Theme support for Sticky Ads in Full Screen Mode */
body.kb-dark-theme.fs-active .sticky-ad-card {
    background: #1e1e24;
    border-color: #33333d;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}

body.kb-dark-theme.fs-active .sticky-ad-header {
    background: #141418;
    border-bottom-color: #33333d;
}

body.kb-dark-theme.fs-active .sticky-ad-header span {
    color: #a1a1aa;
}

body.kb-dark-theme.fs-active .ad-placeholder-box {
    background: #141418;
    border-color: #3f3f4e;
    color: #a1a1aa;
}

body.kb-dark-theme.fs-active .ad-ph-title {
    color: #f4f4f5;
}

body.kb-dark-theme.fs-active .ad-ph-size {
    background: rgba(79, 70, 229, 0.2);
    color: #818cf8;
}

/* ==========================================================================
   Phonetic Common & Difficult Words Responsive Auto-Resize Table
   ========================================================================== */
.phonetic-words-section {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 24px;
    margin: 36px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.phonetic-words-table-wrapper {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.phonetic-words-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.92rem;
}

.phonetic-words-table th {
    padding: 12px 14px;
    font-weight: 700;
    background: #f8fafc;
    border-bottom: 2px solid #e2e8f0;
}

.phonetic-words-table th.col-english {
    color: #334155;
    width: 25%;
}

.phonetic-words-table th.col-assamese {
    color: #4f46e5;
    width: 25%;
}

.phonetic-words-table td {
    padding: 10px 14px;
    vertical-align: middle;
}

.phonetic-words-table td.cell-input {
    font-family: monospace;
    font-weight: 600;
    color: #0f172a;
}

.phonetic-words-table td.cell-output {
    font-size: 1.12rem;
    font-weight: 700;
    color: #4338ca;
}

.phonetic-words-table .col-divider {
    border-right: 2px solid #e2e8f0;
}

.phonetic-words-table tr:nth-child(even) {
    background: #fafafa;
}

.phonetic-words-table tr {
    border-bottom: 1px solid #f1f5f9;
}

/* Tablet Auto-Resize (<= 768px) */
@media (max-width: 768px) {
    .phonetic-words-section {
        padding: 18px 14px;
        margin: 28px 0;
    }
    .phonetic-words-table {
        font-size: 0.85rem;
    }
    .phonetic-words-table th {
        padding: 10px 8px;
        font-size: 0.8rem;
    }
    .phonetic-words-table td {
        padding: 8px 8px;
    }
    .phonetic-words-table td.cell-output {
        font-size: 1rem;
    }
}

/* Mobile Screen Auto-Resize (<= 540px) */
@media (max-width: 540px) {
    .phonetic-words-section {
        padding: 14px 8px;
        border-radius: 10px;
    }
    .phonetic-words-table {
        font-size: 0.78rem;
    }
    .phonetic-words-table th {
        padding: 8px 4px;
        font-size: 0.72rem;
        line-height: 1.25;
    }
    .phonetic-words-table td {
        padding: 7px 4px;
    }
    .phonetic-words-table td.cell-input {
        font-size: 0.75rem;
    }
    .phonetic-words-table td.cell-output {
        font-size: 0.92rem;
    }
}

/* Extra Small Phones (<= 380px) */
@media (max-width: 380px) {
    .phonetic-words-table th {
        padding: 6px 3px;
        font-size: 0.68rem;
    }
    .phonetic-words-table td {
        padding: 6px 3px;
    }
    .phonetic-words-table td.cell-input {
        font-size: 0.7rem;
    }
    .phonetic-words-table td.cell-output {
        font-size: 0.85rem;
    }
}

/* Responsive About Tool Section */
@media (max-width: 640px) {
    .about-tool-section {
        padding: 22px 16px !important;
        margin: 28px 0 !important;
        border-radius: 10px !important;
    }
}

/* ==========================================================================
   17. Custom Pages Typography Styling (.page-content)
   ========================================================================== */
.page-content h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark, #0f172a);
    margin: 28px 0 14px;
    line-height: 1.4;
}

.page-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-dark, #0f172a);
    margin: 22px 0 10px;
    line-height: 1.4;
}

.page-content p {
    margin-bottom: 16px;
    line-height: 1.8;
}

.page-content ul, 
.page-content ol {
    margin: 0 0 18px 24px;
    line-height: 1.8;
}

.page-content li {
    margin-bottom: 6px;
}

.page-content blockquote {
    border-left: 4px solid var(--primary, #2563eb);
    padding: 14px 20px;
    background: #f8fafc;
    border-radius: 0 8px 8px 0;
    margin: 22px 0;
    font-style: italic;
    color: #475569;
}

.page-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 18px 0;
}

@media (max-width: 768px) {
    .page-content h2 {
        font-size: 1.3rem;
        margin: 22px 0 10px;
    }
    .page-content h3 {
        font-size: 1.15rem;
        margin: 18px 0 8px;
    }
    .page-content ul, 
    .page-content ol {
        margin: 0 0 16px 18px;
    }
}

/* ==========================================================================
   Typing Practice Minimal Card Grid Styles
   ========================================================================== */
.tp-practice-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)) !important;
    gap: 14px !important;
}
.tp-card-item {
    background: #ffffff !important;
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 14px !important;
    padding: 10px 20px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 14px !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02) !important;
    transition: all 0.25s ease !important;
}
.tp-card-item:hover {
    border-color: #cbd5e1 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.06) !important;
}
.tp-card-item.is-retest {
    border-color: #60a5fa !important;
}
.tp-card-item.tp-card-hidden {
    display: none !important;
}
.tp-card-num-badge {
    width: 36px !important;
    height: 36px !important;
    border-radius: 50% !important;
    background: #dcfce7 !important;
    color: #16a34a !important;
    font-size: 1rem !important;
    font-weight: 800 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
}
.tp-card-title {
    font-size: 1.05rem !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    margin: 0 0 3px !important;
    font-family: 'Noto Sans Bengali', sans-serif !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}
.tp-badge-pill {
    border-radius: 12px !important;
    font-size: 0.70rem !important;
    font-weight: 600 !important;
    padding: 2px 8px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
}
.tp-badge-pill i {
    font-size: 0.68rem !important;
}
.tp-badge-duration {
    background: #f3e8ff !important;
    color: #7e22ce !important;
}
.tp-badge-attempts {
    background: #f1f5f9 !important;
    color: #475569 !important;
}
.tp-badge-level,
.tp-badge-level-easy {
    background: #dcfce7 !important;
    color: #15803d !important;
}
.tp-badge-level-medium {
    background: #fef3c7 !important;
    color: #b45309 !important;
}
.tp-badge-level-hard {
    background: #fee2e2 !important;
    color: #b91c1c !important;
}
.tp-card-btn-start {
    background: #ffffff !important;
    color: #2563eb !important;
    border: 1.5px solid #60a5fa !important;
    padding: 6px 15px !important;
    border-radius: 9px !important;
    font-weight: 600 !important;
    font-size: 0.82rem !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
}
.tp-card-btn-start:hover {
    background: #2563eb !important;
    color: #ffffff !important;
    border-color: #2563eb !important;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2) !important;
}
.tp-card-btn-retest {
    background: #ffffff !important;
    color: #16a34a !important;
    border: 1.5px solid #4ade80 !important;
    padding: 6px 15px !important;
    border-radius: 9px !important;
    font-weight: 600 !important;
    font-size: 0.82rem !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
}
.tp-card-btn-retest:hover {
    background: #16a34a !important;
    color: #ffffff !important;
    border-color: #16a34a !important;
    box-shadow: 0 4px 12px rgba(22, 163, 74, 0.2) !important;
}
@media (max-width: 576px) {
    .tp-practice-grid {
        grid-template-columns: 1fr !important;
    }
    .tp-card-item {
        flex-direction: column !important;
        align-items: flex-start !important;
    }
    .tp-card-btn-start, .tp-card-btn-retest {
        width: 100% !important;
        justify-content: center !important;
    }
}

/* Feature Highlights Bar */
.tp-features-bar {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 16px !important;
    display: grid !important;
    grid-template-columns: repeat(6, 1fr) !important;
    margin-bottom: 32px !important;
    overflow: hidden !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02) !important;
}
.tp-feature-item {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    padding: 16px 18px !important;
    border-right: 1px solid #e2e8f0 !important;
}
.tp-feature-item:last-child {
    border-right: none !important;
}
.tp-feature-icon {
    width: 38px !important;
    height: 38px !important;
    border-radius: 10px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 1rem !important;
    flex-shrink: 0 !important;
}
.tp-feature-title {
    font-size: 0.95rem !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    line-height: 1.2 !important;
}
.tp-feature-sub {
    font-size: 0.75rem !important;
    font-weight: 500 !important;
    color: #64748b !important;
    margin-top: 2px !important;
    white-space: nowrap !important;
}
@media (max-width: 1024px) {
    .tp-features-bar {
        grid-template-columns: repeat(3, 1fr) !important;
    }
    .tp-feature-item:nth-child(3n) {
        border-right: none !important;
    }
    .tp-feature-item {
        border-bottom: 1px solid #e2e8f0 !important;
    }
    .tp-feature-item:nth-last-child(-n+3) {
        border-bottom: none !important;
    }
}
@media (max-width: 640px) {
    .tp-features-bar {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    .tp-feature-item {
        border-right: 1px solid #e2e8f0 !important;
        border-bottom: 1px solid #e2e8f0 !important;
    }
    .tp-feature-item:nth-child(2n) {
        border-right: none !important;
    }
    .tp-feature-item:nth-last-child(-n+2) {
        border-bottom: none !important;
    }
}

/* Sidebar Ad Component Responsive Layout */
@media (max-width: 991px) {
    .vowel-right-ad-sidebar,
    .jk-right-ad-sidebar {
        width: 100% !important;
        max-width: 340px;
        margin: 16px auto 0;
    }
}

/* ==========================================================================
   Back to Top Floating Button
   ========================================================================== */
.back-to-top-btn {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: #4f46e5;
    color: #ffffff;
    border: none;
    outline: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.38);
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px) scale(0.9);
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), 
                visibility 0.3s cubic-bezier(0.4, 0, 0.2, 1), 
                transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                background-color 0.2s ease,
                box-shadow 0.2s ease;
    z-index: 99999;
}

.back-to-top-btn.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.back-to-top-btn:hover,
.back-to-top-btn:focus-visible {
    background-color: #4338ca;
    color: #ffffff;
    box-shadow: 0 8px 26px rgba(67, 56, 202, 0.48);
    transform: translateY(-4px) scale(1.06);
}

.back-to-top-btn:active {
    transform: translateY(-1px) scale(0.96);
}

@media (max-width: 768px) {
    .back-to-top-btn {
        bottom: 20px;
        right: 20px;
        width: 44px;
        height: 44px;
        font-size: 1.05rem;
    }
}

/* ==========================================================================
   Homepage Testimonials / User Feedback Section (Vertical Running Ticker)
   ========================================================================== */
.testimonials-section {
    position: relative;
    overflow: hidden;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: 1fr 1.35fr;
    gap: 44px;
    align-items: center;
}

.testimonials-left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.testimonials-tagline {
    color: #6366f1;
    font-weight: 800;
    font-size: 0.82rem;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    margin-bottom: 12px;
    display: inline-block;
}

.testimonials-title {
    font-size: clamp(1.8rem, 2.5vw, 2.3rem);
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 16px;
    line-height: 1.25;
    letter-spacing: -0.02em;
}

.testimonials-desc {
    color: #475569;
    font-size: 0.98rem;
    line-height: 1.7;
    margin: 0 0 28px;
    max-width: 480px;
}

.btn-testimonial-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: #6366f1;
    color: #ffffff !important;
    font-weight: 700;
    font-size: 0.92rem;
    padding: 13px 26px;
    border-radius: 30px;
    text-decoration: none !important;
    box-shadow: 0 6px 18px rgba(99, 102, 241, 0.32);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-testimonial-cta:hover {
    background-color: #4f46e5;
    box-shadow: 0 10px 24px rgba(79, 70, 229, 0.42);
    transform: translateY(-2px);
    color: #ffffff !important;
}

.btn-testimonial-cta i {
    transition: transform 0.2s ease;
}

.btn-testimonial-cta:hover i {
    transform: translateX(4px);
}

/* Vertical Ticker Container */
.testimonials-right {
    width: 100%;
}

.ticker-viewport {
    height: 420px;
    overflow: hidden;
    position: relative;
    border-radius: 16px;
    background: #f8fafc;
    border: 1px solid #f1f5f9;
    padding: 12px 16px;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 8%, black 92%, transparent 100%);
    mask-image: linear-gradient(to bottom, transparent 0%, black 8%, black 92%, transparent 100%);
}

.ticker-track {
    display: flex;
    flex-direction: column;
    gap: 16px;
    animation: scrollUpTicker 32s linear infinite;
}

.ticker-viewport:hover .ticker-track {
    animation-play-state: paused;
}

@keyframes scrollUpTicker {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(-50%);
    }
}

/* Individual Feedback Card */
.testimonial-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 20px 22px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.025);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.testimonial-card:hover {
    border-color: #cbd5e1;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
}

.testimonial-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.testimonial-avatar {
    width: 44px;
    height: 44px;
    min-width: 44px;
    max-width: 44px;
    border-radius: 50%;
    color: #ffffff;
    font-weight: 700;
    font-size: 0.95rem;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    flex-shrink: 0;
}

.testimonial-user-info {
    display: flex;
    flex-direction: column;
}

.testimonial-name {
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.3;
}

.testimonial-role {
    font-size: 0.8rem;
    color: #64748b;
    font-weight: 500;
}

.testimonial-feedback {
    font-size: 0.93rem;
    color: #475569;
    line-height: 1.65;
    margin: 0;
}

/* Responsive Breakpoints */
@media (max-width: 991px) {
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .testimonials-left {
        text-align: center;
        align-items: center;
    }
    .testimonials-desc {
        max-width: 100%;
    }
    .ticker-viewport {
        height: 380px;
    }
}

/* ==========================================
   Article Author Box Component (Minimal & SEO)
   ========================================== */
.article-author-box {
    margin: 36px 0 28px 0;
    position: relative;
}

.author-box-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-bottom: 1px solid #ffffff;
    border-radius: 8px 8px 0 0;
    font-size: 0.88rem;
    font-weight: 700;
    color: #0f172a;
    position: relative;
    z-index: 2;
    margin-left: 2px;
}

.author-box-tab i {
    color: #6366f1;
}

.author-box-card {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 0 12px 12px 12px;
    padding: 22px 24px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    margin-top: -1px;
    position: relative;
    z-index: 1;
}

.author-avatar-wrap {
    flex-shrink: 0;
}

.author-avatar-img {
    width: 68px;
    height: 68px;
    border-radius: 10px;
    object-fit: cover;
    border: 2px solid #e2e8f0;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.author-avatar-placeholder {
    width: 68px;
    height: 68px;
    border-radius: 10px;
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.author-info-wrap {
    flex: 1;
}

.author-meta-publish {
    font-size: 1.05rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 8px;
    line-height: 1.4;
}

.author-name-highlight {
    color: #4f46e5;
    font-weight: 800;
    text-decoration: none;
    transition: color 0.2s ease, text-decoration 0.2s ease;
}

.author-name-highlight:hover {
    color: #3730a3;
    text-decoration: underline;
}

.author-meta-publish time {
    color: #64748b;
    font-weight: 600;
}

.author-bio-text {
    font-size: 0.93rem;
    color: #475569;
    line-height: 1.6;
    margin: 0;
}

@media (max-width: 600px) {
    .author-box-card {
        flex-direction: column;
        gap: 14px;
        padding: 18px 16px;
    }
    .author-avatar-img,
    .author-avatar-placeholder {
        width: 56px;
        height: 56px;
    }
    .author-meta-publish {
        font-size: 0.98rem;
    }
}

/* ==========================================================================
   Modern Responsive Pagination Component (Public Website & Archives)
   ========================================================================== */
.pagination-wrapper {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    margin: 48px auto 28px auto !important;
    width: 100% !important;
    clear: both;
}

.pagination {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    list-style: none !important;
    list-style-type: none !important;
    padding: 0 !important;
    margin: 0 !important;
    gap: 8px !important;
    flex-wrap: wrap !important;
}

.pagination .page-item {
    list-style: none !important;
    list-style-type: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: inline-flex !important;
}

.pagination .page-link {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 44px !important;
    height: 44px !important;
    padding: 0 16px !important;
    font-size: 0.94rem !important;
    font-weight: 600 !important;
    color: #475569 !important;
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 10px !important;
    text-decoration: none !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05) !important;
    user-select: none !important;
    line-height: 1 !important;
}

.pagination a.page-link:hover {
    color: #ffffff !important;
    background: #4f46e5 !important;
    border-color: #4f46e5 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.25) !important;
}

.pagination .page-item.active .page-link {
    color: #ffffff !important;
    background: #4f46e5 !important;
    border-color: #4f46e5 !important;
    box-shadow: 0 4px 14px rgba(79, 70, 229, 0.35) !important;
    cursor: default !important;
    pointer-events: none !important;
}

.pagination .page-item.disabled .page-link {
    color: #94a3b8 !important;
    background: #f8fafc !important;
    border-color: #e2e8f0 !important;
    cursor: not-allowed !important;
    box-shadow: none !important;
    opacity: 0.65 !important;
    pointer-events: none !important;
}

.pagination .page-item.disabled.ellipsis .page-link {
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    min-width: 24px !important;
    padding: 0 4px !important;
    font-size: 1.1rem !important;
    color: #94a3b8 !important;
}

@media (max-width: 640px) {
    .pagination-wrapper {
        margin: 36px auto 20px auto !important;
    }
    .pagination {
        gap: 6px !important;
    }
    .pagination .page-link {
        min-width: 38px !important;
        height: 38px !important;
        padding: 0 12px !important;
        font-size: 0.86rem !important;
        border-radius: 8px !important;
    }
}


