/*
 * Sahityakatha (সাহিত্যকথা) - Custom Premium CSS System
 * Designed for Dr. Manoj Mandal's Literary Portfolio & Blog
 */

/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Galada&family=Hind+Siliguri:wght@300;400;500;600;700&family=Noto+Serif+Bengali:wght@300;400;500;600;700;800&family=Outfit:wght@300;400;500;600;700&display=swap');

/* Color Variables and Design System Tokens */
:root {
    --primary: #0f172a;        /* Deep Navy Slate */
    --primary-light: #1e293b;  /* Lighter Slate */
    --primary-rgb: 15, 23, 42;
    --accent: #d97706;         /* Warm Gold/Amber */
    --accent-hover: #b45309;   /* Darker Gold */
    --accent-rgb: 217, 119, 6;
    --bg-main: #faf9f6;        /* Ivory Linen Background */
    --bg-card: #ffffff;        /* Pure White for Content Cards */
    --text-main: #334155;      /* Slate Gray for Reading Text */
    --text-dark: #0f172a;      /* Slate Dark for Headings */
    --text-muted: #64748b;    /* Slate Muted for Excerpts/Metas */
    --border-color: #e2e8f0;   /* Light Slate Border */
    --gold-border: #f59e0b;    /* Golden Highlights */
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.05), 0 1px 2px rgba(0,0,0,0.02);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.05), 0 2px 4px -1px rgba(0,0,0,0.03);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.04), 0 4px 6px -2px rgba(0, 0, 0, 0.02);
    --shadow-gold: 0 4px 20px rgba(217, 119, 6, 0.15);
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s ease-in-out;
    --font-heading: 'Hind Siliguri', sans-serif;
    --font-serif: 'Noto Serif Bengali', serif;
    --font-artistic: 'Galada', cursive;
    --font-numeric: 'Outfit', sans-serif;
}

/* Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: var(--font-serif);
    line-height: 1.8;
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300' viewBox='0 0 300 300'%3E%3Ctext x='40' y='80' font-family='Noto Serif Bengali, Georgia, serif' font-size='34' font-weight='500' fill='rgba(217, 119, 6, 0.015)'%3Eঅ%3C/text%3E%3Ctext x='180' y='140' font-family='Noto Serif Bengali, Georgia, serif' font-size='28' font-weight='500' fill='rgba(15, 23, 42, 0.01)'%3Eক%3C/text%3E%3Ctext x='70' y='240' font-family='Noto Serif Bengali, Georgia, serif' font-size='32' font-weight='500' fill='rgba(217, 119, 6, 0.015)'%3Eথ%3C/text%3E%3Ctext x='230' y='60' font-family='Noto Serif Bengali, Georgia, serif' font-size='24' font-weight='500' fill='rgba(15, 23, 42, 0.01)'%3Eম%3C/text%3E%3Ctext x='200' y='260' font-family='Noto Serif Bengali, Georgia, serif' font-size='30' font-weight='600' fill='rgba(217, 119, 6, 0.012)'%3E\u09b8\u09be\u09b9\u09bf\u09a4\u09cd\u09af%3C/text%3E%3Cpath d='M150,150 C155,140 165,140 170,150 C165,160 155,160 150,150 Z' fill='rgba(217, 119, 6, 0.01)' /%3E%3Cpath d='M150,150 C140,145 140,135 150,130 C160,135 160,145 150,150 Z' fill='rgba(217, 119, 6, 0.01)' /%3E%3Ccircle cx='100' cy='180' r='2' fill='rgba(217, 119, 6, 0.015)' /%3E%3Ccircle cx='200' cy='100' r='2.5' fill='rgba(217, 119, 6, 0.015)' /%3E%3Ccircle cx='50' cy='280' r='1.5' fill='rgba(15, 23, 42, 0.01)' /%3E%3C/svg%3E"),
        radial-gradient(circle at 10% 20%, rgba(217, 119, 6, 0.02) 0%, transparent 90%),
        radial-gradient(circle at 90% 80%, rgba(15, 23, 42, 0.015) 0%, transparent 90%);
    z-index: -1;
    pointer-events: none;
}

/* Bengali Vibes Alpona Ornaments */
.alpona-watermarks {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
}

.alpona-watermark {
    position: absolute;
    width: 280px;
    height: 280px;
    color: var(--accent);
    opacity: 0.035; /* Soft, light opacity */
    transition: var(--transition-smooth);
}

.alpona-watermark-left {
    bottom: -60px;
    left: -60px;
    transform: rotate(15deg);
}

.alpona-watermark-right {
    top: 120px;
    right: -80px;
    transform: rotate(-30deg);
}

@media (max-width: 768px) {
    .alpona-watermark {
        width: 180px;
        height: 180px;
        opacity: 0.025; /* Even softer on mobile to ensure readability */
    }
    .alpona-watermark-left {
        bottom: -30px;
        left: -30px;
    }
    .alpona-watermark-right {
        top: 80px;
        right: -50px;
    }
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-serif);
    color: var(--text-dark);
    font-weight: 700;
    line-height: 1.45;
    margin-bottom: 1rem;
    letter-spacing: -0.25px;
}

h1 { font-size: 2.25rem; }
h2 { font-size: 1.85rem; position: relative; padding-bottom: 0.5rem; }
h3 { font-size: 1.4rem; }
h4 { font-size: 1.15rem; }

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

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

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-main);
}
::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Utility Layouts */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding-top: 2rem;
    padding-bottom: 2rem;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Button & Form Elements */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: var(--font-heading);
    font-weight: 600;
    padding: 0.65rem 1.5rem;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: 1px solid transparent;
    font-size: 0.95rem;
    outline: none;
}

.btn-primary {
    background: var(--primary);
    color: #ffffff;
}

.btn-primary:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15);
}

.btn-accent {
    background: linear-gradient(135deg, var(--accent), var(--accent-hover));
    color: #ffffff;
}

.btn-accent:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-gold);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-main);
}

.btn-outline:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(217, 119, 6, 0.02);
}

.btn-sm {
    padding: 0.4rem 1rem;
    font-size: 0.85rem;
    border-radius: 4px;
}

/* Sticky Header with Glassmorphism */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(250, 249, 246, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    transition: var(--transition-smooth);
}

.header.scrolled {
    background: rgba(15, 23, 42, 0.95);
    border-bottom-color: rgba(255,255,255,0.05);
}

.header.scrolled .nav-link {
    color: #e2e8f0;
}
.header.scrolled .logo-txt {
    color: #ffffff;
}
.header.scrolled .logo-sub {
    color: #94a3b8;
}
.header.scrolled .menu-toggle {
    color: #ffffff;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 75px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    text-decoration: none;
}

.logo-img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--accent);
    background: #ffffff;
    box-sizing: border-box;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
}

.logo:hover .logo-img {
    transform: scale(1.06) rotate(8deg);
    border-color: var(--accent-hover);
    box-shadow: 0 4px 12px rgba(217, 119, 6, 0.25);
}

.logo-text-wrap {
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1.15;
}

.logo-txt {
    font-family: var(--font-serif);
    font-size: 1.7rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1.1;
    letter-spacing: -0.2px;
    transition: var(--transition-fast);
}

.logo:hover .logo-txt {
    color: var(--accent);
}

.logo-sub {
    font-family: var(--font-heading);
    font-size: 0.72rem;
    color: var(--accent);
    letter-spacing: 2.5px;
    font-weight: 700;
    text-transform: uppercase;
    margin-top: 3px;
    line-height: 1;
    transition: var(--transition-fast);
}

/* Scrolled Header Overrides */
.header.scrolled .logo-txt {
    color: #ffffff;
}

.header.scrolled .logo-sub {
    color: #94a3b8;
}

.header.scrolled .logo:hover .logo-txt {
    color: var(--accent);
}

.header.scrolled .logo:hover .logo-sub {
    color: #ffffff;
}

/* Footer Overrides */
.footer-about .logo-txt {
    color: #ffffff;
}

.footer-about .logo:hover .logo-txt {
    color: var(--accent);
}

.footer-about .logo-sub {
    color: var(--accent);
}

.footer-about .logo:hover .logo-sub {
    color: #ffffff;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    list-style: none;
}

.nav-link {
    font-family: var(--font-heading);
    color: var(--text-dark);
    font-weight: 550;
    font-size: 1.05rem;
    padding: 0.5rem 0.75rem;
    position: relative;
    transition: var(--transition-fast);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: var(--accent);
    transition: var(--transition-smooth);
    transform: translateX(-50%);
}

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

.nav-link:hover::after,
.nav-link.active::after {
    width: 80%;
}

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

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--text-dark);
}

/* Home Section Layouts */
.hero-wrapper {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 3rem;
    align-items: center;
    padding: 1.5rem 0;
    position: relative;
}

.hero-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('assets/kolkata_hero_bg.png');
    background-size: contain;
    background-position: right center;
    background-repeat: no-repeat;
    opacity: 0.07; /* Very soft opacity for a premium watermark feel */
    z-index: -1;
    pointer-events: none;
    transition: var(--transition-smooth);
}

.hero-content {
    animation: fadeInLeft 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-subtitle {
    font-family: var(--font-heading);
    color: var(--accent);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
    display: inline-block;
}

.hero-title {
    font-family: var(--font-serif);
    font-size: 3.2rem;
    font-weight: 800;
    color: var(--text-dark);
    line-height: 1.25;
    margin-bottom: 1.5rem;
}

.hero-desc {
    font-size: 1.15rem;
    color: var(--text-main);
    margin-bottom: 2rem;
    text-align: justify;
}

.hero-cta-group {
    display: flex;
    gap: 1rem;
}

.hero-img-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeInRight 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.profile-avatar-wrapper {
    position: relative;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    padding: 10px;
    background: linear-gradient(135deg, #e2e8f0, #cbd5e1);
    box-shadow: var(--shadow-lg), 0 0 0 1px rgba(217, 119, 6, 0.15);
    transition: var(--transition-smooth);
}

.profile-avatar-wrapper:hover {
    transform: rotate(2deg) scale(1.02);
    background: linear-gradient(135deg, var(--accent), var(--primary));
}

.profile-avatar-inner {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
    position: relative;
    border: 4px solid var(--bg-main);
    background-color: #eaeaea;
}

.profile-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.profile-avatar-wrapper:hover .profile-avatar-img {
    transform: scale(1.05);
}

/* Featured Quote Section */
.quote-banner {
    background: linear-gradient(135deg, #1e293b, #0f172a);
    color: #ffffff;
    padding: 2.25rem 2rem;
    border-radius: 12px;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin: 1.5rem 0;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.quote-banner::before {
    content: '"';
    position: absolute;
    top: -30px;
    left: 40px;
    font-size: 15rem;
    color: rgba(217, 119, 6, 0.08);
    font-family: var(--font-artistic);
}

.quote-text {
    font-family: var(--font-serif);
    font-size: 1.6rem;
    font-weight: 550;
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto 1.5rem auto;
    position: relative;
    z-index: 2;
    color: #f1f5f9;
}

.quote-author {
    font-family: var(--font-heading);
    color: var(--accent);
    font-weight: 600;
    font-size: 1.1rem;
    position: relative;
    z-index: 2;
}

/* Home Writing Showcase */
.showcase-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 2.5rem;
}

.showcase-header h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--accent);
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 2rem;
}

/* Article Cards */
.article-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.article-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg), 0 4px 15px rgba(0, 0, 0, 0.02);
    border-color: rgba(217, 119, 6, 0.2);
}

.article-card-body {
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.article-badge {
    align-self: flex-start;
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.2rem 0.75rem;
    border-radius: 20px;
    background-color: rgba(217, 119, 6, 0.1);
    color: var(--accent);
    margin-bottom: 1rem;
    letter-spacing: 0.5px;
}

.article-title {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
    font-weight: 700;
    line-height: 1.45;
}

.article-excerpt {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: justify;
    line-height: 1.7;
    flex-grow: 1;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #f1f5f9;
    padding-top: 1rem;
    font-size: 0.8rem;
    font-family: var(--font-heading);
    color: var(--text-muted);
}

.article-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.article-meta span i {
    color: var(--accent);
}

/* About Page / Biography Styles */
.about-wrapper {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 4rem;
    margin-top: 2rem;
}

.about-sidebar {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    height: fit-content;
}

.about-profile {
    text-align: center;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1.5rem;
}

.about-profile-pic {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--accent);
    margin-bottom: 1rem;
    box-shadow: var(--shadow-md);
}

.about-profile-name {
    font-family: var(--font-serif);
    font-size: 1.45rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.about-profile-title {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 600;
    line-height: 1.4;
}

.about-contact-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.about-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.9rem;
    font-family: var(--font-heading);
}

.about-contact-item i {
    color: var(--accent);
    font-size: 1.1rem;
    margin-top: 0.2rem;
    width: 20px;
}

.about-contact-item a {
    color: var(--text-main);
}
.about-contact-item a:hover {
    color: var(--accent);
}

.bio-content h3 {
    margin: 2rem 0 1rem 0;
    border-left: 4px solid var(--accent);
    padding-left: 0.75rem;
}

.bio-text {
    text-align: justify;
    margin-bottom: 1.25rem;
}

/* Timeline Components */
.timeline {
    position: relative;
    max-width: 100%;
    margin: 2.5rem 0;
    padding-left: 20px;
    border-left: 2px solid var(--border-color);
}

.timeline-item {
    position: relative;
    margin-bottom: 2rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -27px;
    top: 6px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--accent);
    border: 2px solid var(--bg-main);
    transition: var(--transition-fast);
}

.timeline-item:hover::before {
    background: var(--primary);
    transform: scale(1.3);
}

.timeline-year {
    font-family: var(--font-numeric);
    font-weight: 700;
    color: var(--accent);
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.timeline-title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.timeline-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Writings / Blog Page specific */
.search-filter-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin-bottom: 3rem;
    box-shadow: var(--shadow-sm);
}

.filter-tabs {
    display: flex;
    gap: 0.5rem;
    list-style: none;
}

.filter-tab {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.45rem 1.15rem;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition-smooth);
    color: var(--text-main);
    background: transparent;
    border: 1px solid transparent;
}

.filter-tab:hover {
    color: var(--accent);
    background: rgba(217, 119, 6, 0.05);
}

.filter-tab.active {
    background: var(--primary);
    color: #ffffff;
}

.search-box {
    position: relative;
    max-width: 300px;
    width: 100%;
}

.search-box input {
    width: 100%;
    padding: 0.5rem 1rem 0.5rem 2.5rem;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    background: var(--bg-main);
    font-family: var(--font-heading);
    font-size: 0.9rem;
    outline: none;
    transition: var(--transition-smooth);
}

.search-box input:focus {
    border-color: var(--accent);
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.1);
}

.search-box i {
    position: absolute;
    left: 0.9rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 0.9rem;
}

.no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 2rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
}

.no-results i {
    font-size: 3rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.no-results h3 {
    margin-bottom: 0.5rem;
}

/* Post Reader View */
.post-layout {
    display: grid;
    grid-template-columns: 1.35fr 0.65fr;
    gap: 3.5rem;
    align-items: start;
}

.post-article {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 3rem;
    box-shadow: var(--shadow-sm);
}

.post-header {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1.5rem;
    margin-bottom: 2rem;
}

.post-meta-details {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.5rem;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.post-meta-details span {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.post-meta-details i {
    color: var(--accent);
}

.post-title {
    font-family: var(--font-serif);
    font-size: 2.25rem;
    color: var(--text-dark);
    line-height: 1.4;
    margin-bottom: 1rem;
}

.post-body {
    font-size: 1.15rem;
    line-height: 2;
    color: #1e293b;
    text-align: justify;
}

.post-body p {
    margin-bottom: 1.5rem;
}

.post-body blockquote {
    border-left: 4px solid var(--accent);
    padding: 0.75rem 1.5rem;
    background: var(--bg-main);
    font-style: italic;
    color: var(--text-main);
    margin: 2rem 0;
    border-radius: 0 8px 8px 0;
}

.post-sidebar {
    position: sticky;
    top: 100px;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.sidebar-widget {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.75rem;
    box-shadow: var(--shadow-sm);
}

.widget-title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    border-bottom: 2px solid var(--accent);
    display: inline-block;
    padding-bottom: 0.35rem;
    margin-bottom: 1.25rem;
}

.widget-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.widget-item {
    display: flex;
    flex-direction: column;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 0.75rem;
}

.widget-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.widget-item-title {
    font-family: var(--font-serif);
    font-size: 0.95rem;
    color: var(--text-dark);
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 0.25rem;
}

.widget-item-date {
    font-family: var(--font-numeric);
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Comments Section */
.comments-section {
    margin-top: 3.5rem;
    border-top: 1px solid var(--border-color);
    padding-top: 2.5rem;
}

.comments-title {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
}

.comment-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.comment-card {
    background: var(--bg-main);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    font-family: var(--font-heading);
}

.comment-author {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 1rem;
}

.comment-date {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.comment-content {
    font-size: 0.95rem;
    color: var(--text-main);
}

.comment-form {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 2rem;
    box-shadow: var(--shadow-sm);
}

.comment-form-title {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    margin-bottom: 1.25rem;
}

.form-group-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-control {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin-bottom: 1.25rem;
}

.form-control label {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-dark);
}

.form-control input,
.form-control select,
.form-control textarea {
    width: 100%;
    padding: 0.65rem 0.9rem;
    border: 1px solid var(--border-color);
    background: var(--bg-main);
    border-radius: 6px;
    outline: none;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    transition: var(--transition-smooth);
}

.form-control textarea {
    font-family: var(--font-serif);
    font-size: 0.95rem;
    resize: vertical;
    min-height: 120px;
}

.form-control input:focus,
.form-control select:focus,
.form-control textarea:focus {
    border-color: var(--accent);
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.1);
}

/* Contact Page Layout */
.contact-wrapper {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 4rem;
    align-items: start;
}

.contact-info-card {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #ffffff;
    border-radius: 12px;
    padding: 3rem 2rem;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.contact-info-card::after {
    content: '';
    position: absolute;
    bottom: -60px;
    right: -60px;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: rgba(217, 119, 6, 0.1);
}

.contact-info-title {
    color: #ffffff;
    font-family: var(--font-heading);
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--accent);
    display: inline-block;
    padding-bottom: 0.35rem;
}

.contact-info-desc {
    color: #cbd5e1;
    margin-bottom: 2.5rem;
    font-size: 0.95rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.contact-detail-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    color: var(--accent);
    font-size: 1.25rem;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.contact-detail-text h4 {
    color: #ffffff;
    font-size: 1rem;
    margin-bottom: 0.15rem;
}

.contact-detail-text p {
    color: #cbd5e1;
    font-size: 0.9rem;
    line-height: 1.5;
}

.contact-detail-text a {
    color: #e2e8f0;
}
.contact-detail-text a:hover {
    color: var(--accent);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    color: #ffffff;
    font-size: 1.1rem;
    transition: var(--transition-smooth);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.social-link:hover {
    background: var(--accent);
    color: #ffffff;
    transform: translateY(-3px);
}

.contact-form-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 3rem;
    box-shadow: var(--shadow-sm);
}

.contact-form-title {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    margin-bottom: 0.5rem;
}

.contact-form-subtitle {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 2rem;
}

/* Admin Dashboard Portal */
.dashboard-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 2rem;
    align-items: start;
    margin-top: 1rem;
}

.dashboard-nav {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.25rem 0.75rem;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.db-nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--text-main);
    transition: var(--transition-fast);
}

.db-nav-item:hover {
    background: rgba(217, 119, 6, 0.05);
    color: var(--accent);
}

.db-nav-item.active {
    background: var(--primary);
    color: #ffffff;
}

.dashboard-panel {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 2rem;
    box-shadow: var(--shadow-sm);
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1.25rem;
    margin-bottom: 2rem;
}

.panel-title {
    font-family: var(--font-heading);
    font-size: 1.45rem;
    margin-bottom: 0;
}

.db-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.stat-card {
    background: var(--bg-main);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    background: rgba(217, 119, 6, 0.1);
    color: var(--accent);
}

.stat-info h4 {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}

.stat-value {
    font-family: var(--font-numeric);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-dark);
}

/* Post Manager Table */
.table-responsive {
    overflow-x: auto;
}

.db-table {
    width: 100%;
    border-collapse: collapse;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    text-align: left;
}

.db-table th {
    background: var(--bg-main);
    padding: 0.75rem 1rem;
    font-weight: 600;
    color: var(--text-dark);
    border-bottom: 2px solid var(--border-color);
}

.db-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-main);
}

.db-table tr:hover td {
    background: #f8fafc;
}

.db-post-title {
    font-family: var(--font-serif);
    font-weight: 600;
    color: var(--text-dark);
}

.db-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-icon {
    width: 32px;
    height: 32px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
    background: #ffffff;
    cursor: pointer;
    transition: var(--transition-fast);
    font-size: 0.85rem;
}

.btn-icon-edit:hover {
    background: rgba(15, 23, 42, 0.05);
    color: var(--primary);
    border-color: var(--primary);
}

.btn-icon-delete:hover {
    background: #fef2f2;
    color: #ef4444;
    border-color: #fca5a5;
}

/* Photo Upload Component */
.photo-uploader-box {
    display: flex;
    align-items: center;
    gap: 2rem;
    background: var(--bg-main);
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px dashed var(--border-color);
    margin-bottom: 1.5rem;
}

.uploader-preview {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--accent);
}

.uploader-controls {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.uploader-controls input[type="file"] {
    display: none;
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.toast {
    background: var(--primary);
    color: #ffffff;
    padding: 0.85rem 1.5rem;
    border-radius: 6px;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    box-shadow: var(--shadow-lg);
    border-left: 4px solid var(--accent);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transform: translateY(50px);
    opacity: 0;
    animation: toastIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    transition: var(--transition-smooth);
}

.toast.removing {
    transform: scale(0.9);
    opacity: 0;
}

/* Footer Section */
.footer {
    background: var(--primary);
    color: #94a3b8;
    padding: 4.5rem 0 2rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 0.6fr 0.6fr 0.8fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-about .logo-txt {
    color: #ffffff;
}

.footer-about-desc {
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 1.25rem 0;
    color: #94a3b8;
    text-align: justify;
}

.footer-title {
    color: #ffffff;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 35px;
    height: 2px;
    background-color: var(--accent);
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    font-family: var(--font-heading);
    font-size: 0.9rem;
}

.footer-links a {
    color: #94a3b8;
    transition: var(--transition-fast);
}

.footer-links a:hover {
    color: var(--accent);
    padding-left: 5px;
}

.footer-contact-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    font-size: 0.85rem;
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.footer-contact-item i {
    color: var(--accent);
    font-size: 1rem;
    margin-top: 0.2rem;
}

.footer-contact-item span {
    line-height: 1.5;
}

.footer-contact-item a {
    color: #94a3b8;
}
.footer-contact-item a:hover {
    color: var(--accent);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-heading);
    font-size: 0.85rem;
}

.footer-bottom-links {
    display: flex;
    gap: 1.5rem;
}

.footer-bottom-links a {
    color: #64748b;
}

.footer-bottom-links a:hover {
    color: var(--accent);
}

/* Animations */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInLeft {
    from { opacity: 0; transform: translateX(-35px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInRight {
    from { opacity: 0; transform: translateX(35px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes toastIn {
    from { opacity: 0; transform: translateY(50px) scale(0.9); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Responsive Media Queries */
@media (max-width: 1024px) {
    .hero-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
        min-height: auto;
        padding: 2rem 0;
        text-align: center;
    }
    
    .hero-wrapper::before {
        background-position: center;
        background-size: cover;
        opacity: 0.04;
    }
    
    .hero-title {
        font-size: 2.8rem;
    }
    
    .hero-cta-group {
        justify-content: center;
    }
    
    .about-wrapper {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .post-layout, .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .post-sidebar {
        position: static;
    }
    
    .dashboard-layout {
        grid-template-columns: 1fr;
    }
    
    .db-stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2.5rem;
    }
}

@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.6rem; }
    
    .nav-links {
        display: none; /* Mobile Navigation Drawer logic triggers here in JS */
        flex-direction: column;
        position: absolute;
        top: 75px;
        left: 0;
        width: 100%;
        background: var(--bg-card);
        border-bottom: 1px solid var(--border-color);
        padding: 1.5rem;
        box-shadow: var(--shadow-md);
        gap: 1rem;
        z-index: 1000;
    }
    
    .nav-links.show {
        display: flex;
        animation: fadeInUp 0.3s ease-out forwards;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .search-filter-bar {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    
    .filter-tabs {
        overflow-x: auto;
        padding-bottom: 0.5rem;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
    }
    
    .search-box {
        max-width: 100%;
    }
    
    .post-article {
        padding: 1.75rem;
    }
    
    .post-title {
        font-size: 1.75rem;
    }
    
    .form-group-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .profile-avatar-wrapper {
        width: 260px;
        height: 260px;
    }

    /* Moved new layout component responsive queries to end of file to prevent base class style overrides */
}

/* --- NEW CULTURE Restructured Layout Styles --- */

/* Topic Slider */
.topic-slider-container {
    margin: 0.5rem 0;
}
.topic-slider {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding: 0.5rem 0;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none;  /* IE and Edge */
}
.topic-slider::-webkit-scrollbar {
    display: none; /* Safari and Chrome */
}
.topic-pill {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.6rem 1.25rem;
    border-radius: 30px;
    background: #ffffff;
    border: 1px solid var(--border-color);
    color: var(--text-dark);
    cursor: pointer;
    white-space: nowrap;
    transition: var(--transition-smooth);
}
.topic-pill:hover, .topic-pill.active {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}
.topic-pill i {
    color: var(--accent);
    transition: var(--transition-fast);
}
.topic-pill:hover i, .topic-pill.active i {
    color: #ffffff;
}

/* Kolkata Culture Spotlight */
.spotlight-wrapper {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 3.5rem;
    align-items: center;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 3rem;
    box-shadow: var(--shadow-sm);
    margin-top: 0.5rem;
}
.spotlight-desc {
    font-size: 1.05rem;
    margin-bottom: 2rem;
    text-align: justify;
}
.spotlight-card {
    background: var(--bg-main);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    height: 440px; /* fixed height for display balance */
    transition: var(--transition-smooth);
}
.spotlight-img-container {
    height: 240px;
    width: 100%;
    overflow: hidden;
    position: relative;
    background: #eaeaea;
}
.spotlight-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}
.spotlight-card-body {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.spotlight-card-title {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}
.spotlight-card-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-align: justify;
    line-height: 1.6;
}
.spotlight-thumbnails-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-top: 1.5rem;
}
.spotlight-thumb {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.75rem;
    cursor: pointer;
    text-align: center;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-sm);
}
.spotlight-thumb:hover, .spotlight-thumb.active {
    border-color: var(--accent);
    box-shadow: var(--shadow-gold);
    transform: translateY(-3px);
}
.spotlight-thumb-img-wrap {
    width: 100%;
    height: 60px;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.5rem;
    background: #eaeaea;
}
.spotlight-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.spotlight-thumb-title {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-dark);
}

/* Most Read / Trending Grid Split */
.trending-split {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 2.5rem;
}
.featured-article-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: var(--transition-smooth);
}
.featured-article-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg), var(--shadow-gold);
    border-color: rgba(217, 119, 6, 0.2);
}
.featured-img-wrap {
    height: 280px;
    overflow: hidden;
    position: relative;
    background: #eaeaea;
}
.featured-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}
.featured-article-card:hover .featured-img {
    transform: scale(1.03);
}
.featured-body {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.trending-side-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    height: 100%;
}
.horizontal-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    display: flex;
    height: calc(50% - 0.75rem);
    transition: var(--transition-smooth);
}
.horizontal-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: rgba(217, 119, 6, 0.15);
}
.horizontal-img-wrap {
    width: 180px;
    flex-shrink: 0;
    overflow: hidden;
    background: #eaeaea;
}
.horizontal-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}
.horizontal-card:hover .horizontal-img {
    transform: scale(1.04);
}
.horizontal-body {
    padding: 1.25rem 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-grow: 1;
}
.horizontal-title {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    line-height: 1.45;
    margin-bottom: 0.5rem;
    font-weight: 700;
}
.horizontal-excerpt {
    font-size: 0.85rem;
    color: var(--text-muted);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-align: justify;
    line-height: 1.5;
}

/* Ranking List Sidebar Widget */
.ranking-widget {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.75rem;
    box-shadow: var(--shadow-sm);
}
.ranking-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}
.ranking-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 1rem;
    transition: var(--transition-fast);
}
.ranking-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}
.ranking-num {
    font-family: var(--font-numeric);
    font-size: 1.8rem;
    font-weight: 800;
    color: rgba(217, 119, 6, 0.25);
    line-height: 1;
    width: 35px;
    transition: var(--transition-fast);
}
.ranking-item:hover .ranking-num {
    color: var(--accent);
}
.ranking-thumb-wrap {
    width: 50px;
    height: 50px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
    background: #eaeaea;
}
.ranking-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.ranking-details {
    flex-grow: 1;
}
.ranking-title {
    font-family: var(--font-serif);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.35;
    margin-bottom: 0.15rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.ranking-meta {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* --- NEW 3D BOOKS & ACADEMIC LECTURES STYLES --- */

/* Books Section */
.book-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 1.5rem;
}

.book-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2.25rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
    height: 100%;
    justify-content: space-between;
}

.book-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg), var(--shadow-gold);
    border-color: rgba(217, 119, 6, 0.15);
}

.book-container-3d {
    perspective: 1000px;
    width: 140px;
    height: 205px;
    margin-bottom: 1.5rem;
}

.book-cover-3d {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transform: rotateY(-22deg) rotateX(4deg);
    transition: transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 8px 8px 15px rgba(0, 0, 0, 0.15);
    border-radius: 2px 5px 5px 2px;
}

.book-card:hover .book-cover-3d {
    transform: rotateY(-5deg) rotateX(0deg) scale(1.05);
    box-shadow: 2px 12px 25px rgba(0, 0, 0, 0.22);
}

.book-front {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 2px 5px 5px 2px;
    color: #ffffff;
    padding: 1.25rem 1rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-left: 5px solid var(--accent);
    box-sizing: border-box;
    z-index: 2;
    backface-visibility: hidden;
}

.book-front::after {
    content: '';
    position: absolute;
    top: 0;
    left: 8px;
    width: 1px;
    height: 100%;
    background: rgba(255, 255, 255, 0.08);
}

.book-title-cover {
    font-family: var(--font-serif);
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.4;
    text-align: left;
    color: #f8fafc;
    margin-bottom: 0.5rem;
}

.book-author-cover {
    font-family: var(--font-heading);
    font-size: 0.7rem;
    color: var(--accent);
    text-align: left;
    font-weight: 600;
}

.book-year-cover {
    font-family: var(--font-numeric);
    font-size: 0.75rem;
    align-self: flex-end;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 500;
}

.book-card-title {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.book-card-meta {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.book-card-desc {
    font-size: 0.88rem;
    color: var(--text-main);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    text-align: justify;
}

/* Speeches & Seminars Section */
.seminar-wrapper {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 3rem;
    align-items: start;
    margin-top: 1.5rem;
}

.video-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    height: 340px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    cursor: pointer;
    background: #0f172a;
}

.video-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.7;
    transition: var(--transition-smooth);
}

.video-card:hover .video-img {
    transform: scale(1.03);
    opacity: 0.55;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.9) 0%, rgba(15, 23, 42, 0.1) 60%, rgba(15, 23, 42, 0.3) 100%);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 2.25rem;
    color: #ffffff;
    box-sizing: border-box;
}

.play-btn {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: var(--accent);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    margin: auto;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-gold);
    border: none;
    cursor: pointer;
}

.video-card:hover .play-btn {
    transform: scale(1.15);
    background: var(--accent-hover);
    box-shadow: 0 0 25px rgba(217, 119, 6, 0.4);
}

.video-card-title {
    font-family: var(--font-serif);
    font-size: 1.45rem;
    color: #ffffff;
    margin-bottom: 0.35rem;
    font-weight: 700;
}

.video-card-meta {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    color: #94a3b8;
}

.lecture-list-widget {
    display: flex;
    flex-direction: column;
    gap: 1.15rem;
}

.lecture-item-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 1.2rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-sm);
}

.lecture-item-card:hover {
    transform: translateY(-2px);
    border-color: var(--accent);
    box-shadow: var(--shadow-md);
}

.lecture-icon-wrap {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    background: rgba(217, 119, 6, 0.1);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    flex-shrink: 0;
    transition: var(--transition-fast);
}

.lecture-item-card:hover .lecture-icon-wrap {
    background: var(--primary);
    color: #ffffff;
}

.lecture-details-wrap {
    flex-grow: 1;
}

.lecture-item-title {
    font-family: var(--font-serif);
    font-size: 1.08rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.2rem;
    line-height: 1.35;
}

.lecture-item-univ {
    font-family: var(--font-heading);
    font-size: 0.82rem;
    color: var(--text-muted);
}

/* Responsive Overrides */
@media (max-width: 900px) {
    .book-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .seminar-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .video-card {
        height: 260px;
    }
}

@media (max-width: 600px) {
    .book-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .book-card {
        padding: 1.75rem 1.5rem;
    }
}

/* --- MOBILE FRIENDLINESS UPDATES --- */

.filter-tab {
    flex-shrink: 0;
}
.topic-pill {
    flex-shrink: 0;
}

/* Custom Modal System */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.modal-card {
    background: #ffffff;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    padding: 2.5rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s ease;
    box-sizing: border-box;
}

/* Home Essays Grid Layout */
.home-essays-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

@media (max-width: 768px) {
    .container {
        padding: 0 1.25rem;
    }
    .header.scrolled .nav-links {
        background: rgba(15, 23, 42, 0.98);
        border-bottom-color: rgba(255, 255, 255, 0.1);
    }
    .grid-3 {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .home-essays-grid {
        grid-template-columns: 1fr;
    }
    .dashboard-nav {
        flex-direction: row;
        overflow-x: auto;
        white-space: nowrap;
        padding: 0.75rem;
        gap: 0.5rem;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .dashboard-nav::-webkit-scrollbar {
        display: none;
    }
    .db-nav-item {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
        justify-content: center;
        flex-shrink: 0;
    }
    .filter-tabs::-webkit-scrollbar {
        display: none;
    }

    /* --- Responsive additions for New layout components --- */
    .spotlight-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 1.75rem;
    }
    
    .spotlight-card {
        height: auto;
    }
    
    .spotlight-img-container {
        height: 200px;
    }
    
    .spotlight-thumbnails-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    
    .spotlight-thumb {
        padding: 0.5rem;
    }
    
    .spotlight-thumb-img-wrap {
        height: 50px;
    }
    
    .trending-split {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .horizontal-card {
        height: auto;
        flex-direction: column;
    }
    
    .horizontal-img-wrap {
        width: 100%;
        height: 160px;
    }
    
    .horizontal-body {
        padding: 1.25rem;
    }
    
    .hero-cta-group {
        flex-direction: column;
        align-items: center;
        width: 100%;
        gap: 0.75rem;
    }
    .hero-cta-group .btn {
        width: 100%;
        max-width: 280px;
        box-sizing: border-box;
    }
}

@media (max-width: 600px) {
    .db-table th:nth-child(3),
    .db-table td:nth-child(3),
    .db-table th:nth-child(4),
    .db-table td:nth-child(4) {
        display: none;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    .hero-title {
        font-size: 2.25rem;
    }
    .hero-desc {
        font-size: 1rem;
    }
    .post-article {
        padding: 1rem;
    }
    .photo-uploader-box {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    .uploader-controls {
        align-items: center;
    }
    .modal-card {
        padding: 1.5rem;
    }
}

