/* 
 * Main Stylesheet for Poet Memorial Website
 * Elegant, respectful design with serif typography
 */

/* Import Google Fonts - Enhanced Bengali Support with proper fallbacks */
@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+Bengali:wght@300;400;500;600;700&family=Noto+Sans+Bengali:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Merriweather:ital,wght@0,300;0,400;0,700;1,300;1,400&family=Kalpurush&display=swap');

/* Fallback font definition for Bengali */
@font-face {
    font-family: 'Bengali-Fallback';
    src: local('SolaimanLipi'), local('Kalpurush'), local('Mukti Narrow'), local('Likhan'), local('Akaash');
    unicode-range: U+0980-09FF;
}

/* CSS Variables for consistent theming */
:root {
    --primary-color: #8B4513;
    /* Saddle Brown */
    --secondary-color: #CD853F;
    /* Peru */
    --accent-color: #A0522D;
    /* Sienna */
    --text-color: #2F1B14;
    /* Dark Brown */
    --text-light: #5D4037;
    /* Brown */
    --background-color: #FFFEF7;
    /* Off-white/Cream */
    --background-alt: #F5F3F0;
    /* Light Beige */
    --border-color: #D7CCC8;
    /* Light Brown */
    --shadow-color: rgba(139, 69, 19, 0.1);
    --gold-accent: #B8860B;
    /* Dark Goldenrod */

    /* Typography - Enhanced Bengali Support */
    --font-serif: 'Noto Serif Bengali', 'Bengali-Fallback', 'Playfair Display', 'Times New Roman', Georgia, serif;
    --font-body: 'Noto Sans Bengali', 'Bengali-Fallback', 'Merriweather', 'Arial', sans-serif;
    --font-display: 'Playfair Display', 'Noto Serif Bengali', 'Bengali-Fallback', Georgia, serif;
    --font-size-base: 18px;
    --line-height-base: 1.8;
    --letter-spacing-bengali: 0.02em;

    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-xxl: 3rem;

    /* Breakpoints */
    --mobile: 576px;
    --tablet: 768px;
    --desktop: 992px;
    --large: 1200px;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Skip to content link for accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--primary-color);
    color: white;
    padding: 8px;
    z-index: 1000;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    transition: top 0.3s;
}

.skip-link:focus {
    top: 6px;
}

html {
    font-size: var(--font-size-base);
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    color: var(--text-color);
    background-color: var(--background-color);
    background-image:
        radial-gradient(circle at 20% 50%, rgba(184, 134, 11, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(139, 69, 19, 0.03) 0%, transparent 50%);
    background-attachment: fixed;
    /* Enhanced Bengali text rendering */
    text-rendering: optimizeLegibility;
    -webkit-font-feature-settings: "liga", "kern", "calt";
    font-feature-settings: "liga", "kern", "calt";
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    letter-spacing: var(--letter-spacing-bengali);
    direction: ltr;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Typography Hierarchy */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-serif);
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: var(--spacing-md);
    line-height: 1.3;
    letter-spacing: var(--letter-spacing-bengali);
}

/* Specific image styles for home page */
.poet-image-home {
    width: 160px !important;
    height: 160px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    border: 3px solid var(--border-color) !important;
    box-shadow: 0 4px 12px var(--shadow-color) !important;
    margin: 0 auto var(--spacing-sm) auto !important;
    display: block !important;
}

h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: var(--spacing-lg);
}

h2 {
    font-size: 2rem;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: var(--spacing-sm);
    margin-bottom: var(--spacing-lg);
}

h3 {
    font-size: 1.5rem;
    color: var(--accent-color);
}

h4 {
    font-size: 1.25rem;
}

h5 {
    font-size: 1.1rem;
}

h6 {
    font-size: 1rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

p {
    margin-bottom: var(--spacing-md);
    text-align: justify;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

/* Layout Components */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.container-fluid {
    width: 100%;
    padding: 0 var(--spacing-md);
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -var(--spacing-sm);
}

.col {
    flex: 1;
    padding: 0 var(--spacing-sm);
}

.col-1 {
    flex: 0 0 8.333333%;
    max-width: 8.333333%;
}

.col-2 {
    flex: 0 0 16.666667%;
    max-width: 16.666667%;
}

.col-3 {
    flex: 0 0 25%;
    max-width: 25%;
}

.col-4 {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
}

.col-6 {
    flex: 0 0 50%;
    max-width: 50%;
}

.col-8 {
    flex: 0 0 66.666667%;
    max-width: 66.666667%;
}

.col-9 {
    flex: 0 0 75%;
    max-width: 75%;
}

.col-12 {
    flex: 0 0 100%;
    max-width: 100%;
}

/* Header Styles */
.site-header {
    background: linear-gradient(135deg, var(--background-color) 0%, var(--background-alt) 100%);
    border-bottom: 3px solid var(--border-color);
    box-shadow: 0 2px 10px var(--shadow-color);
    position: relative;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-sm) 0;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.site-logo img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 2px solid var(--primary-color);
}

.site-title {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0;
}

.site-subtitle {
    font-size: 0.9rem;
    color: var(--text-light);
    font-style: italic;
    margin: 0;
}

/* Navigation Styles */
.main-nav {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    box-shadow: 0 4px 20px rgba(139, 69, 19, 0.2);
    overflow: visible;
    position: relative;
    border-bottom: 3px solid var(--gold-accent);
    animation: navSlideIn 0.6s ease-out;
    padding: var(--spacing-xs) 0;
}

/* Add subtle animation on page load */
@keyframes navSlideIn {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.main-nav .container {
    max-width: 1200px;
    padding: 0 var(--spacing-md);
    position: relative;
    min-width: 0;
}

.nav-menu {
    display: flex;
    flex-wrap: nowrap;
    gap: 0;
    list-style: none;
    margin: 0;
    padding: var(--spacing-xs) 0;
    align-items: center;
    justify-content: center;
}

.nav-item {
    position: relative;
    flex-shrink: 0;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-family: var(--font-body);
    padding: var(--spacing-md) var(--spacing-md);
    transition: all 0.3s ease;
    position: relative;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    border-radius: 0;
    margin: 0 var(--spacing-xs);
    font-size: 0.9rem;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: var(--gold-accent);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link i {
    font-size: 0.85rem;
    width: 16px;
    text-align: center;
    flex-shrink: 0;
    margin-right: 2px;
}

.nav-link:hover,
.nav-link.active,
.nav-link:focus {
    background-color: rgba(255, 255, 255, 0.1);
    text-decoration: none;
    color: white;
    border-radius: 0;
    transform: none;
    box-shadow: none;
    outline: none;
}

.nav-link:hover::before,
.nav-link.active::before,
.nav-link:focus::before {
    width: 80%;
}

/* Authentication Links/Buttons */
.auth-links {
    display: flex;
    gap: var(--spacing-sm);
    align-items: center;
}

.auth-links button,
.auth-links .btn {
    text-decoration: none;
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 0.9rem;
    background: none;
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
}

.auth-links .btn-small {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.auth-links .btn-small:hover {
    background: var(--accent-color);
    border-color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 69, 19, 0.3);
}

.auth-links .btn-outline {
    background: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.auth-links .btn-outline:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 69, 19, 0.3);
}

/* Dropdown Menu */
.nav-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    min-width: 240px;
    box-shadow: 0 10px 30px rgba(139, 69, 19, 0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1001;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid var(--gold-accent);
}

.nav-item:hover .nav-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown .nav-link {
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding: var(--spacing-md) var(--spacing-lg);
    font-size: 0.95rem;
    border-radius: 0;
    transform: none;
    box-shadow: none;
    margin: 0;
    background: rgba(255, 255, 255, 0.05);
    gap: var(--spacing-sm);
}

.nav-dropdown .nav-link::before {
    display: none;
}

.nav-dropdown .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.15);
    border-radius: 0;
    transform: none;
    box-shadow: none;
    padding-left: calc(var(--spacing-lg) + 10px);
}

.nav-dropdown .nav-link:last-child {
    border-bottom: none;
}

/* Mobile Navigation */
.mobile-menu-toggle {
    display: none;
    background: var(--primary-color);
    color: white;
    border: 2px solid var(--gold-accent);
    padding: var(--spacing-md);
    cursor: pointer;
    font-size: 1.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    width: 50px;
    height: 50px;
    justify-content: center;
    align-items: center;
}

.mobile-menu-toggle:hover {
    background: var(--accent-color);
    border-color: white;
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }
    
    .nav-menu {
        justify-content: flex-start;
    }
}

.mobile-menu-toggle:hover {
    background: var(--accent-color);
}

.mobile-menu-toggle:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(rgba(139, 69, 19, 0.1),
            rgba(139, 69, 19, 0.1)),
        url('../images/hero-bg.jpg') center/cover;
    min-height: 400px;
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--text-color);
    position: relative;
    margin-bottom: var(--spacing-xxl);
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    padding: var(--spacing-xxl);
    background: rgba(255, 254, 247, 0.9);
    border-radius: 10px;
    box-shadow: 0 10px 30px var(--shadow-color);
}

.hero-title {
    font-size: 3rem;
    margin-bottom: var(--spacing-md);
    color: var(--primary-color);
}

.hero-subtitle {
    font-size: 1.3rem;
    font-style: italic;
    color: var(--text-light);
    margin-bottom: var(--spacing-lg);
}

.hero-dates {
    font-size: 1.1rem;
    color: var(--accent-color);
    font-weight: 600;
    letter-spacing: 1px;
}

/* Card Components */
.card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 15px var(--shadow-color);
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px var(--shadow-color);
}

.card-header {
    border-bottom: 2px solid var(--border-color);
    padding-bottom: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.card-title {
    margin: 0;
    color: var(--primary-color);
}

.card-meta {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-top: var(--spacing-sm);
}

.card-content {
    line-height: 1.8;
}

.card-footer {
    border-top: 1px solid var(--border-color);
    padding-top: var(--spacing-md);
    margin-top: var(--spacing-lg);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Button Styles */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-lg);
}

.section-header h2 {
    margin: 0;
    flex: 1;
}

.section-header .btn {
    margin-left: var(--spacing-md);
    white-space: nowrap;
}

/* Brief Biography Section - Card Style like attachment */
.brief-biography-section {
    background-color: #f8f9fa;
    padding: var(--spacing-xl) 0;
    margin: var(--spacing-xl) 0;
}

.biography-content {
    margin-top: var(--spacing-lg);
}

.biography-card {
    background: #ffffff;
    border: 1px solid #ddd;
    border-radius: 12px;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin-bottom: var(--spacing-lg);
    display: flex;
    min-height: 300px;
}

.biography-card-header {
    background: linear-gradient(135deg, #8B4513 0%, #A0522D 100%);
    color: white;
    padding: var(--spacing-md);
    font-size: 1.3rem;
    font-weight: 600;
}

.biography-card-content {
    display: flex;
    width: 100%;
    align-items: stretch;
}

.poet-profile-section {
    flex: 0 0 280px;
    background: #f8f6f2;
    border: 2px solid #d4b896;
    border-radius: 12px;
    padding: var(--spacing-md);
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: var(--spacing-sm);
}

.poet-portrait {
    width: 300px !important;
    height: 300px !important;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #EAE0D5;
    box-shadow: 0 4px 12px rgba(139, 69, 19, 0.2);
    margin: 0 auto var(--spacing-lg) auto;
    display: block;
}

.poet-basic-info {
    text-align: center;
    margin-top: var(--spacing-md);
    width: 100%;
    font-family: var(--font-serif);
}

.poet-name {
    color: #2c3e50;
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: var(--spacing-xs);
    line-height: 1.3;
    font-family: var(--font-serif);
    text-align: center;
}

.poet-title {
    color: #666;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: var(--spacing-sm);
    font-family: var(--font-body);
    text-align: center;
    font-style: italic;
}

.poet-lifespan {
    color: #8B4513;
    font-size: 1rem;
    font-weight: 600;
    background: transparent;
    padding: 0;
    border-radius: 0;
    display: block;
    margin-top: var(--spacing-xs);
    font-family: var(--font-serif);
    text-align: center;
}

.biography-text {
    flex: 1;
    padding: var(--spacing-md);
    border-left: 4px solid #d4b896;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.biography-text p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #444;
    margin-bottom: var(--spacing-sm);
}

.biography-text p:first-child {
    font-size: 1rem;
    font-weight: 500;
    color: #2c3e50;
}

/* Comprehensive responsive design for poet profile section */

/* Extra Large screens - 1400px+ */
@media (min-width: 1400px) {
    .poet-profile-section {
        flex: 0 0 420px;
        padding: var(--spacing-xl);
    }

    .poet-portrait {
        width: 320px !important;
        height: 320px !important;
    }

    .poet-name {
        font-size: 1.8rem;
    }

    .poet-title {
        font-size: 1.1rem;
    }

    .poet-lifespan {
        font-size: 1.2rem;
    }
}

/* Large Desktop - 1200px to 1399px */
@media (max-width: 1399px) and (min-width: 1200px) {
    .poet-profile-section {
        flex: 0 0 380px;
        padding: var(--spacing-lg);
    }

    .poet-portrait {
        width: 300px !important;
        height: 300px !important;
    }

    .poet-name {
        font-size: 1.6rem;
    }

    .poet-title {
        font-size: 1rem;
    }

    .poet-lifespan {
        font-size: 1.1rem;
    }
}

/* Medium Desktop - 992px to 1199px */
@media (max-width: 1199px) and (min-width: 992px) {
    .poet-profile-section {
        flex: 0 0 340px;
        padding: var(--spacing-lg);
    }

    .poet-portrait {
        width: 260px !important;
        height: 260px !important;
    }

    .poet-name {
        font-size: 1.5rem;
    }

    .poet-title {
        font-size: 0.95rem;
    }

    .poet-lifespan {
        font-size: 1.05rem;
    }
}

/* Small Desktop/Large Tablet - 769px to 991px */
@media (max-width: 991px) and (min-width: 769px) {
    .biography-card {
        flex-direction: column;
        min-height: auto;
    }

    .biography-card-content {
        flex-direction: column;
    }

    .poet-profile-section {
        flex: none;
        margin: var(--spacing-md);
        border-radius: 12px;
        padding: var(--spacing-lg);
        max-width: 100%;
        display: flex;
        flex-direction: row;
        align-items: center;
        text-align: left;
    }

    .poet-portrait {
        width: 220px !important;
        height: 220px !important;
        border: 2px solid #EAE0D5;
        margin-right: var(--spacing-lg);
        margin-bottom: 0;
        flex-shrink: 0;
    }

    .poet-basic-info {
        text-align: left;
        margin-top: 0;
    }

    .poet-name {
        font-size: 1.4rem;
    }

    .poet-title {
        font-size: 0.9rem;
    }

    .poet-lifespan {
        font-size: 1rem;
    }

    .biography-text {
        padding: var(--spacing-md);
        border-left: none;
        border-top: 4px solid #d4b896;
    }
}

/* Tablet - 576px to 768px - Keep horizontal layout */
@media (max-width: 768px) and (min-width: 576px) {
    .biography-card {
        flex-direction: column;
        min-height: auto;
    }

    .biography-card-content {
        flex-direction: column;
    }

    .poet-profile-section {
        flex: none;
        margin: var(--spacing-sm);
        border-radius: 12px;
        padding: var(--spacing-sm);
        display: flex;
        flex-direction: row;
        align-items: center;
        text-align: left;
    }

    .poet-portrait {
        width: 160px !important;
        height: 160px !important;
        border: 2px solid #EAE0D5;
        margin-right: var(--spacing-md);
        margin-bottom: 0;
        flex-shrink: 0;
    }

    .poet-basic-info {
        text-align: left;
        margin-top: 0;
        flex: 1;
    }

    .poet-name {
        font-size: 1.3rem;
    }

    .poet-title {
        font-size: 0.85rem;
    }

    .poet-lifespan {
        font-size: 0.95rem;
    }

    .biography-text {
        padding: var(--spacing-md);
        border-left: none;
        border-top: 4px solid #d4b896;
    }
}

/* Mobile - below 575px - Keep horizontal layout */
@media (max-width: 575px) {
    .biography-card {
        flex-direction: column;
        min-height: auto;
    }

    .biography-card-content {
        flex-direction: column;
    }

    .poet-profile-section {
        flex: none;
        margin: var(--spacing-sm);
        border-radius: 8px;
        padding: var(--spacing-sm);
        display: flex;
        flex-direction: row;
        align-items: center;
        text-align: left;
    }

    .poet-portrait {
        width: 120px !important;
        height: 120px !important;
        border: 2px solid #EAE0D5;
        margin-right: var(--spacing-sm);
        margin-bottom: 0;
        flex-shrink: 0;
    }

    .poet-basic-info {
        text-align: left;
        margin-top: 0;
        flex: 1;
    }

    .poet-name {
        font-size: 1.1rem;
    }

    .poet-title {
        font-size: 0.75rem;
    }

    .poet-lifespan {
        font-size: 0.85rem;
    }

    .biography-text {
        padding: var(--spacing-sm);
        border-left: none;
        border-top: 3px solid #d4b896;
    }
}

.poet-image-container {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}



.poet-portrait {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--gold-accent);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: var(--spacing-md);
}

.poet-basic-info h3 {
    color: var(--primary-color);
    margin-bottom: var(--spacing-sm);
    font-size: 1.5rem;
}

.poet-lifespan {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: var(--spacing-sm);
}

.poet-title {
    color: var(--gold-accent);
    font-weight: 600;
    font-size: 0.95rem;
}

.biography-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-color);
}

.biography-text p {
    margin-bottom: var(--spacing-md);
    text-align: justify;
}

.short-biography h4 {
    color: var(--primary-color);
    font-size: 1.4rem;
    margin-bottom: var(--spacing-md);
    border-bottom: 2px solid var(--gold-accent);
    padding-bottom: var(--spacing-sm);
}

.short-biography p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-color);
    margin-bottom: var(--spacing-md);
    text-align: justify;
}




.btn {
    display: inline-block;
    padding: var(--spacing-sm) var(--spacing-lg);
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    text-align: center;
}

.btn:hover {
    background-color: var(--accent-color);
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--shadow-color);
}

.btn-secondary {
    background-color: var(--secondary-color);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: white;
}

.btn-small {
    padding: var(--spacing-xs) var(--spacing-sm);
    font-size: 0.85rem;
}

.btn-large {
    padding: var(--spacing-md) var(--spacing-xl);
    font-size: 1.1rem;
}

/* Form Styles */
.form-group {
    margin-bottom: var(--spacing-lg);
}

.form-label {
    display: block;
    margin-bottom: var(--spacing-sm);
    font-weight: 600;
    color: var(--text-color);
}

.form-control {
    width: 100%;
    padding: var(--spacing-sm) var(--spacing-md);
    border: 2px solid var(--border-color);
    border-radius: 5px;
    font-family: var(--font-body);
    font-size: 1rem;
    background-color: white;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(139, 69, 19, 0.1);
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

.form-error {
    color: #D32F2F;
    font-size: 0.9rem;
    margin-top: var(--spacing-xs);
}

.form-success {
    color: #388E3C;
    font-size: 0.9rem;
    margin-top: var(--spacing-xs);
}

/* Quote Styles */
blockquote {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    font-style: italic;
    color: var(--text-light);
    border-left: 4px solid var(--primary-color);
    padding: var(--spacing-lg);
    margin: var(--spacing-xl) 0;
    background-color: var(--background-alt);
    position: relative;
}

blockquote::before {
    content: '"';
    font-size: 3rem;
    color: var(--primary-color);
    position: absolute;
    top: -10px;
    left: var(--spacing-md);
    font-family: Georgia, serif;
}

.quote-author {
    text-align: right;
    margin-top: var(--spacing-md);
    font-size: 1rem;
    color: var(--primary-color);
    font-weight: 600;
}

.quote-author::before {
    content: '— ';
}

/* Poetry Specific Styles */
.poem-content {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    line-height: 1.8;
    white-space: pre-line;
    background-color: var(--background-alt);
    padding: var(--spacing-xl);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    margin: var(--spacing-lg) 0;
}

.poem-meta {
    text-align: center;
    margin-top: var(--spacing-lg);
    padding-top: var(--spacing-md);
    border-top: 1px solid var(--border-color);
    font-style: italic;
    color: var(--text-light);
}

/* Gallery Styles */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-lg);
    margin: var(--spacing-xl) 0;
}

.gallery-item {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px var(--shadow-color);
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.02);
}

.gallery-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: opacity 0.3s ease;
}

.gallery-caption {
    padding: var(--spacing-md);
}

.gallery-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
}

.gallery-description {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.5;
}

/* Timeline Styles */
.timeline {
    position: relative;
    padding: var(--spacing-xl) 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 3px;
    background-color: var(--primary-color);
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    margin-bottom: var(--spacing-xxl);
    width: 50%;
}

.timeline-item:nth-child(odd) {
    left: 0;
    padding-right: var(--spacing-xl);
    text-align: right;
}

.timeline-item:nth-child(even) {
    left: 50%;
    padding-left: var(--spacing-xl);
}

.timeline-marker {
    position: absolute;
    top: 20px;
    width: 20px;
    height: 20px;
    background-color: var(--primary-color);
    border: 4px solid white;
    border-radius: 50%;
    box-shadow: 0 0 0 4px var(--primary-color);
}

.timeline-item:nth-child(odd) .timeline-marker {
    right: -10px;
}

.timeline-item:nth-child(even) .timeline-marker {
    left: -10px;
}

.timeline-content {
    background: white;
    padding: var(--spacing-lg);
    border-radius: 8px;
    box-shadow: 0 4px 15px var(--shadow-color);
    border: 1px solid var(--border-color);
}

.timeline-date {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: var(--spacing-sm);
}

/* Footer Styles */
.site-footer {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    color: white;
    padding: var(--spacing-xxl) 0 var(--spacing-lg);
    margin-top: var(--spacing-xxl);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
}

.footer-section h3 {
    color: white;
    margin-bottom: var(--spacing-md);
    font-size: 1.2rem;
}

.footer-section p,
.footer-section a {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
}

.footer-section a:hover {
    color: white;
    text-decoration: underline;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding: var(--spacing-lg) 0;
    background: rgba(0, 0, 0, 0.1);
    text-align: center;
}

.footer-bottom-content {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    width: 100%;
}

.copyright-text {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    font-weight: 400;
    text-align: center;
    display: block;
    width: 100%;
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.text-left {
    text-align: left;
}

.mb-0 {
    margin-bottom: 0;
}

.mb-1 {
    margin-bottom: var(--spacing-sm);
}

.mb-2 {
    margin-bottom: var(--spacing-md);
}

.mb-3 {
    margin-bottom: var(--spacing-lg);
}

.mb-4 {
    margin-bottom: var(--spacing-xl);
}

.mt-0 {
    margin-top: 0;
}

.mt-1 {
    margin-top: var(--spacing-sm);
}

.mt-2 {
    margin-top: var(--spacing-md);
}

.mt-3 {
    margin-top: var(--spacing-lg);
}

.mt-4 {
    margin-top: var(--spacing-xl);
}

.featured {
    border-left: 4px solid var(--gold-accent);
    background-color: rgba(184, 134, 11, 0.05);
}

.featured::before {
    content: '★';
    color: var(--gold-accent);
    font-size: 1.2rem;
    margin-right: var(--spacing-sm);
}

/* Featured Poems Horizontal Layout */
.poems-horizontal-layout {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
    justify-content: center;
    align-items: stretch;
}

.poems-horizontal-layout .card {
    flex: 0 1 calc(25% - var(--spacing-md));
    min-width: 260px;
    max-width: 300px;
    display: flex;
    flex-direction: column;
}

.poems-horizontal-layout .card .card-footer {
    margin-top: auto;
}

/* Songs Section Layout */
.songs-layout {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-lg);
    justify-content: center;
    align-items: stretch;
}

.songs-layout .song-card {
    flex: 0 1 calc(33.333% - var(--spacing-lg));
    min-width: 300px;
    max-width: 400px;
    display: flex;
    flex-direction: column;
}

.songs-layout .card .card-footer {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
}

.singer-info {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-style: italic;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .poems-horizontal-layout .card {
        flex: 0 1 calc(25% - var(--spacing-md));
        min-width: 240px;
        max-width: 280px;
    }
}

@media (max-width: 1024px) {
    .poems-horizontal-layout .card {
        flex: 0 1 calc(50% - var(--spacing-md));
        min-width: 280px;
        max-width: 400px;
    }
}

@media (max-width: 768px) {
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--spacing-md);
    }

    .section-header .btn {
        margin-left: 0;
        align-self: flex-end;
    }

    .poems-horizontal-layout {
        flex-direction: column;
        align-items: center;
    }

    .songs-layout {
        flex-direction: column;
        align-items: center;
    }

    .songs-layout .song-card {
        max-width: 100%;
        width: 100%;
    }

    .poems-horizontal-layout .card {
        max-width: 100%;
        width: 100%;
        flex: none;
    }

    .poet-portrait {
        width: 200px;
        height: 200px;
    }

    .biography-text {
        font-size: 1rem;
        margin-top: var(--spacing-lg);
    }

    .poet-basic-info h3 {
        font-size: 1.2rem;
    }
}

@media (max-width: 992px) {
    .timeline::before {
        left: 30px;
    }

    .timeline-item {
        width: 100%;
        left: 0 !important;
        padding-left: 60px !important;
        padding-right: 0 !important;
        text-align: left !important;
    }

    .timeline-marker {
        left: 20px !important;
        right: auto !important;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .col-md-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }

    .col-md-12 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

@media (max-width: 992px) and (min-width: 769px) {
    /* Compact menu for medium screens */
    .nav-link {
        padding: var(--spacing-sm) var(--spacing-xs);
        font-size: 0.8rem;
        gap: 0.2rem;
        margin: 0;
    }

    .nav-link i {
        font-size: 0.75rem;
        width: 13px;
    }

    .nav-dropdown {
        min-width: 160px;
    }
}

/* Extra compact for slightly smaller screens */
@media (max-width: 1100px) and (min-width: 993px) {
    .nav-link {
        padding: var(--spacing-sm) var(--spacing-xs);
        font-size: 0.82rem;
        gap: 0.25rem;
    }

    .nav-link i {
        font-size: 0.78rem;
        width: 13px;
    }
}

/* Ultra compact for challenging screen sizes */
@media (max-width: 1300px) and (min-width: 1201px) {
    .nav-link {
        padding: var(--spacing-sm) var(--spacing-sm);
        font-size: 0.88rem;
        margin: 0;
    }
    
    .nav-link i {
        width: 16px;
        font-size: 0.83rem;
    }
}

/* Very compact for tablets and smaller desktops */
@media (max-width: 1200px) and (min-width: 769px) {
    .nav-link {
        padding: var(--spacing-sm) var(--spacing-sm);
        font-size: 0.85rem;
        margin: 0 1px;
    }
    
    .nav-link i {
        width: 15px;
        font-size: 0.8rem;
    }
    
    .main-nav .container {
        padding: 0 var(--spacing-sm);
    }
}

@media (max-width: 700px) {
    .mobile-menu-toggle {
        display: block;
    }

    .main-nav {
        display: none;
    }

    .main-nav.active {
        display: block;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
        z-index: 1000;
        box-shadow: 0 8px 20px rgba(139, 69, 19, 0.4);
        border-top: 2px solid var(--gold-accent);
    }

    .nav-menu {
        flex-direction: column;
    }

    .nav-link {
        display: flex;
        align-items: center;
        gap: var(--spacing-sm);
        padding: var(--spacing-lg) var(--spacing-xl);
        color: white;
        font-weight: 500;
        transition: all 0.3s ease;
        white-space: nowrap;
        justify-content: flex-start;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        margin: 0;
        border-radius: 0;
    }
    
    .nav-link::before {
        display: none;
    }
    
    .nav-link:hover {
        background-color: rgba(255, 255, 255, 0.15);
        padding-left: calc(var(--spacing-xl) + 10px);
    }

    .nav-link:last-child {
        border-bottom: none;
    }

    .nav-link i {
        font-size: 1rem;
        width: 20px;
        text-align: center;
        flex-shrink: 0;
    }

    .nav-dropdown {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: rgba(0, 0, 0, 0.2);
        border-radius: 0;
        border: none;
    }

    .nav-dropdown .nav-link {
        padding-left: calc(var(--spacing-xl) + var(--spacing-lg));
        background: rgba(0, 0, 0, 0.1);
        font-size: 0.9rem;
    }
    
    .nav-dropdown .nav-link:hover {
        padding-left: calc(var(--spacing-xl) + var(--spacing-lg) + 10px);
        background: rgba(255, 255, 255, 0.1);
    }
}

.header-content {
    flex-direction: column;
    text-align: center;
    gap: var(--spacing-md);
}

.hero-content {
    padding: var(--spacing-lg);
}

.hero-title {
    font-size: 2rem;
}

.col-sm-12 {
    flex: 0 0 100%;
    max-width: 100%;
}

.gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-md);
}

.footer-content {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        text-align: center;
        gap: var(--spacing-md);
    }

    .hero-content {
        padding: var(--spacing-lg);
    }

    .hero-title {
        font-size: 2rem;
    }

    .col-sm-12 {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: var(--spacing-md);
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
}

@media (max-width: 576px) {
    :root {
        --font-size-base: 14px;
    }

    .container {
        padding: 0 var(--spacing-sm);
    }

    h1 {
        font-size: 1.8rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .hero-title {
        font-size: 1.6rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .card {
        padding: var(--spacing-md);
    }

    .poem-content {
        padding: var(--spacing-md);
        font-size: 1rem;
    }

    blockquote {
        padding: var(--spacing-md);
        font-size: 1.1rem;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .timeline-item {
        padding-left: 40px !important;
    }

    .timeline::before {
        left: 20px;
    }

    .timeline-marker {
        left: 10px !important;
    }

    /* Ensure navigation stays consistent on very small screens */
    .nav-link {
        display: flex;
        align-items: center;
        gap: 0.4rem;
        padding: 0.8rem 1rem;
        font-size: 0.9rem;
        white-space: nowrap;
    }

    .nav-link i {
        font-size: 0.9rem;
        width: 18px;
        text-align: center;
        flex-shrink: 0;
    }
}

/* Print Styles */
@media print {

    .site-header,
    .main-nav,
    .site-footer,
    .btn,
    .mobile-menu-toggle {
        display: none;
    }

    body {
        background: white;
        color: black;
        font-size: 12pt;
    }

    .card {
        box-shadow: none;
        border: 1px solid #ccc;
        page-break-inside: avoid;
    }

    .hero-section {
        background: none;
        color: black;
    }

    .hero-content {
        background: none;
        box-shadow: none;
    }
}

/* ====================================
   WIKIPEDIA-STYLE BIOGRAPHY PAGE
   ==================================== */

.wikipedia-content {
    background: #ffffff;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Lato, Helvetica, Arial, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: #000000;
    padding: 0;
}

.wikipedia-content .container {
    max-width: none;
    padding: 0;
}

.wiki-layout {
    display: block;
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    min-height: 100vh;
    position: relative;
}

.wiki-main {
    width: 100%;
    padding: 20px 320px 20px 24px;
    background: white;
    box-sizing: border-box;
    min-height: 100vh;
}

.wiki-sidebar {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 280px;
    min-width: 280px;
    max-width: 280px;
    background: transparent;
    border: none;
    box-sizing: border-box;
    overflow-x: hidden;
}

/* Wikipedia Page Title */
.wiki-title {
    font-family: 'Linux Libertine', Georgia, Times, serif;
    font-size: 32px;
    font-weight: normal;
    line-height: 1.3;
    margin: 0 0 8px 0;
    padding: 0;
    color: #000000;
    border-bottom: 3px solid #a2a9b1;
    padding-bottom: 8px;
}

/* Wikipedia Notice Box */
.wiki-notice {
    background: #f6f6f6;
    border: 1px solid #a2a9b1;
    border-left: 10px solid #36c;
    padding: 8px 12px;
    margin: 16px 0;
    font-size: 13px;
    line-height: 1.4;
}

.wiki-notice i {
    color: #36c;
    margin-right: 8px;
}

/* Wikipedia Lead Section */
.wiki-lead {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 24px;
}

.wiki-lead p {
    margin-bottom: 16px;
}

.wiki-lead p:first-child {
    font-size: 15px;
    line-height: 1.5;
}

/* Wikipedia Links */
.wiki-link {
    color: #0645ad;
    text-decoration: none;
}

.wiki-link:visited {
    color: #0b0080;
}

.wiki-link:hover {
    text-decoration: underline;
}

.wiki-link:active {
    color: #faa700;
}

/* External Links */
.external-link {
    color: #0645ad;
    text-decoration: none;
}

.external-link:hover {
    text-decoration: underline;
}

.external-icon {
    font-size: 10px;
    margin-left: 3px;
    color: #0645ad;
}

/* Wikipedia Table of Contents */
.wiki-toc {
    background: #f8f9fa;
    border: 1px solid #a2a9b1;
    padding: 16px;
    margin: 20px 0;
    display: inline-block;
    min-width: 200px;
}

.toc-title {
    font-weight: bold;
    margin-bottom: 8px;
    font-size: 14px;
    color: #000;
}

.toc-list {
    margin: 0;
    padding-left: 20px;
    font-size: 13px;
    line-height: 1.5;
}

.toc-list li {
    margin-bottom: 4px;
}

.toc-list ol {
    margin-top: 4px;
    padding-left: 20px;
}

.toc-list a {
    color: #0645ad;
    text-decoration: none;
}

.toc-list a:hover {
    text-decoration: underline;
}

/* Wikipedia Section Headings */
.wiki-section {
    margin: 32px 0;
}

.wiki-heading {
    font-family: 'Linux Libertine', Georgia, Times, serif;
    font-size: 20px;
    font-weight: normal;
    line-height: 1.3;
    margin: 0 0 8px 0;
    padding: 0;
    color: #000000;
    border-bottom: 1px solid #a2a9b1;
    padding-bottom: 2px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.wiki-subheading {
    font-family: 'Linux Libertine', Georgia, Times, serif;
    font-size: 16px;
    font-weight: bold;
    line-height: 1.3;
    margin: 20px 0 8px 0;
    color: #000000;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mw-headline {
    flex: 1;
}

.wiki-edit {
    font-size: 11px;
    font-weight: normal;
    color: #0645ad;
}

.wiki-edit a {
    color: #0645ad;
    text-decoration: none;
}

.wiki-edit a:hover {
    text-decoration: underline;
}

/* Wikipedia Text Styles */
.wiki-section p {
    margin-bottom: 16px;
    line-height: 1.6;
    text-align: justify;
}

.wiki-list {
    margin: 16px 0;
    padding-left: 24px;
}

.wiki-list li {
    margin-bottom: 8px;
    line-height: 1.5;
}

/* Wikipedia References */
.wiki-references {
    font-size: 12px;
    line-height: 1.4;
}

.references-list {
    margin: 0;
    padding-left: 20px;
}

.references-list li {
    margin-bottom: 8px;
    text-align: justify;
}

.references-list a {
    color: #0645ad;
    text-decoration: none;
}

.references-list a:hover {
    text-decoration: underline;
}

/* Wikipedia Bibliography */
.wiki-bibliography {
    font-size: 13px;
    line-height: 1.5;
}

.bib-entry {
    margin-bottom: 12px;
    text-align: justify;
}

.bib-author {
    font-weight: bold;
}

/* Wikipedia Categories */
.wiki-categories {
    margin-top: 40px;
    padding-top: 16px;
    border-top: 1px solid #a2a9b1;
    font-size: 12px;
    line-height: 1.4;
}

.wiki-category {
    color: #0645ad;
    text-decoration: none;
    margin: 0 2px;
}

.wiki-category:hover {
    text-decoration: underline;
}

/* Wikipedia Infobox */
.infobox {
    background: #f8f9fa;
    border: 1px solid #a2a9b1;
    margin: 0 0 20px 0;
    width: 100%;
    font-size: 12px;
    line-height: 1.4;
    box-sizing: border-box;
    float: right;
    clear: right;
}

.stats-box {
    background: #f8f9fa;
    border: 1px solid #a2a9b1;
    margin: 20px 0;
    font-size: 12px;
    line-height: 1.4;
    float: right;
    clear: right;
    width: 100%;
}

.quick-nav {
    background: #f8f9fa;
    border: 1px solid #a2a9b1;
    margin: 20px 0;
    font-size: 12px;
    float: right;
    clear: right;
    width: 100%;
}

.infobox-title {
    background: #ccccff;
    padding: 8px;
    text-align: center;
    font-weight: bold;
    font-size: 14px;
    border-bottom: 1px solid #a2a9b1;
}

.infobox-image {
    text-align: center;
    padding: 12px 8px 8px 8px;
    border-bottom: 1px solid #a2a9b1;
}

.infobox-photo {
    max-width: 100%;
    width: 180px;
    height: 180px;
    object-fit: cover;
    border: 1px solid #a2a9b1;
    border-radius: 4px;
}

.infobox-caption {
    margin-top: 8px;
    font-size: 11px;
    color: #666;
    line-height: 1.3;
}

.infobox-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.infobox-table th,
.infobox-table td {
    padding: 4px 8px;
    text-align: left;
    border-bottom: 1px solid #eee;
    vertical-align: top;
    word-wrap: break-word;
    font-size: 11px;
}

.infobox-table th {
    background: #f0f0f0;
    font-weight: bold;
    width: 35%;
}

.infobox-table td {
    background: white;
    width: 65%;
}

.infobox-signature {
    padding: 8px;
    text-align: center;
    border-top: 1px solid #a2a9b1;
}

.signature-img {
    max-width: 80px;
    height: auto;
    margin-top: 4px;
}

/* Statistics Box */
.stats-box {
    background: #f8f9fa;
    border: 1px solid #a2a9b1;
    margin: 20px 0;
    font-size: 12px;
    line-height: 1.4;
}

.stats-title {
    background: #eaecf0;
    padding: 8px;
    font-weight: bold;
    border-bottom: 1px solid #a2a9b1;
}

.stats-table {
    width: 100%;
    border-collapse: collapse;
}

.stats-table td {
    padding: 6px 8px;
    border-bottom: 1px solid #eee;
}

.stats-table td:first-child {
    background: #f8f9fa;
    font-weight: bold;
}

.stats-number {
    text-align: right;
    font-weight: bold;
    color: #0645ad;
}

/* Quick Navigation */
.quick-nav {
    background: #f8f9fa;
    border: 1px solid #a2a9b1;
    margin: 20px 0;
    font-size: 12px;
}

.quick-nav-title {
    background: #eaecf0;
    padding: 8px;
    font-weight: bold;
    border-bottom: 1px solid #a2a9b1;
}

.quick-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.quick-nav-list li {
    border-bottom: 1px solid #eee;
}

.quick-nav-list li:last-child {
    border-bottom: none;
}

.quick-nav-list a {
    display: block;
    padding: 6px 8px;
    color: #0645ad;
    text-decoration: none;
    transition: background-color 0.2s;
}

.quick-nav-list a:hover {
    background: #eaecf0;
    text-decoration: underline;
}

/* Reference Links */
sup a {
    color: #0645ad;
    text-decoration: none;
    font-size: 11px;
}

sup a:hover {
    text-decoration: underline;
}

/* Responsive Design for Wikipedia Style */
@media (min-width: 1024px) {
    .wiki-main {
        padding: 20px 340px 20px 24px;
    }

    .wiki-sidebar {
        width: 300px;
        min-width: 300px;
        max-width: 300px;
    }
}

@media (max-width: 1023px) and (min-width: 769px) {
    .wiki-main {
        padding: 20px 300px 20px 20px;
    }

    .wiki-sidebar {
        width: 280px;
        min-width: 280px;
        max-width: 280px;
    }
}

@media (max-width: 768px) {
    .wiki-layout {
        display: block;
        position: static;
    }

    .wiki-main {
        padding: 20px 16px;
        width: 100%;
    }

    .wiki-sidebar {
        position: static;
        width: 100%;
        margin: 20px 0;
        padding: 0;
    }

    .infobox,
    .stats-box,
    .quick-nav {
        float: none;
        clear: none;
        margin: 20px 0;
        max-width: 100%;
    }

    .wiki-title {
        font-size: 24px;
    }

    .wiki-heading {
        font-size: 18px;
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .wiki-toc {
        width: 100%;
        display: block;
    }

    .wiki-edit {
        align-self: flex-end;
    }
}

@media (max-width: 480px) {
    .wiki-main {
        padding: 12px 16px;
    }

    .wiki-title {
        font-size: 20px;
    }

    .wiki-lead p:first-child {
        font-size: 14px;
    }

    .infobox-table th,
    .infobox-table td {
        padding: 3px 6px;
        font-size: 11px;
    }
}

/* =======================================
   LITERARY HERITAGE BIOGRAPHY STYLES
   ======================================= */

.literary-biography {
    background: linear-gradient(135deg, #f8f6f0 0%, #fff 50%, #f5f3ed 100%);
    min-height: 100vh;
    padding: 2rem 0;
}

/* Heritage Layout */
.heritage-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 3rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Literary Main Content */
.literary-main {
    background: white;
    border-radius: 15px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

/* Elegant Page Header */
.poet-header {
    background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
    color: white;
    padding: 3rem 2.5rem;
    position: relative;
    overflow: hidden;
}

.poet-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="white" opacity="0.08"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.poet-title-section {
    position: relative;
    z-index: 2;
}

.poet-name {
    font-family: 'Noto Serif Bengali', serif;
    font-size: 3.5rem;
    font-weight: 700;
    margin: 0 0 1rem 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    line-height: 1.1;
}

.poet-subtitle {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.life-span {
    font-size: 1.3rem;
    font-weight: 500;
    color: #ecf0f1;
}

.poet-designation {
    font-size: 1.1rem;
    color: #bdc3c7;
    font-style: italic;
}

.opening-quote {
    margin: 2rem 0 0 0;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-left: 4px solid #f39c12;
    border-radius: 0 8px 8px 0;
    backdrop-filter: blur(10px);
}

.opening-quote::before {
    content: '"';
    font-size: 3rem;
    color: #f39c12;
    float: left;
    line-height: 1;
    margin-right: 0.5rem;
    margin-top: -0.3rem;
}

/* Literary Introduction */
.literary-introduction {
    padding: 3rem 2.5rem;
    background: linear-gradient(to bottom, #ffffff 0%, #fafafa 100%);
}

.lead-paragraph {
    font-size: 1.25rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    color: #2c3e50;
    position: relative;
}

.drop-cap {
    float: left;
    font-family: 'Playfair Display', serif;
    font-size: 4rem;
    line-height: 3rem;
    padding-right: 0.5rem;
    padding-top: 0.3rem;
    color: #3498db;
    font-weight: 700;
}

.intro-content p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.7;
    color: #34495e;
}

/* Literary Table of Contents Navigation (Biography Page Only) */
.literary-nav {
    background: #f8f9fa;
    padding: 2rem 2.5rem;
    border-top: 1px solid #dee2e6;
    border-bottom: 1px solid #dee2e6;
}

.nav-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #3498db;
    display: inline-block;
}

.nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-list li {
    margin-bottom: 0.5rem;
}

.literary-nav .nav-link {
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.3rem 0;
    display: block;
}

.literary-nav .nav-link:hover {
    color: #2980b9;
    padding-left: 1rem;
}

.sub-nav {
    margin-left: 1.5rem;
    margin-top: 0.5rem;
}

.sub-nav li {
    margin-bottom: 0.3rem;
}

.sub-nav .nav-link {
    font-size: 0.95rem;
    color: #7f8c8d;
}

/* Life Chapters */
.life-chapter {
    padding: 3rem 2.5rem;
    border-bottom: 1px solid #ecf0f1;
}

.life-chapter:last-of-type {
    border-bottom: none;
}

.chapter-title {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    color: white;
    padding: 1.5rem 2rem;
    margin: 0;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    border-radius: 12px;
    font-family: 'Noto Serif Bengali', serif;
    box-shadow: 0 4px 15px rgba(139, 69, 19, 0.2);
}

.chapter-number {
    background: rgba(255,255,255,0.2);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1.1rem;
}

.chapter-name {
    font-size: 1.4rem;
    color: white;
    font-weight: 600;
    font-family: var(--font-serif);
}

.chapter-content p {
    margin-bottom: 1.5rem;
    line-height: 1.7;
    color: #34495e;
    font-size: 1.1rem;
}

/* Poetry Excerpts */
.poetry-excerpt {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    padding: 2rem;
    margin: 2rem 0;
    border-left: 4px solid #f39c12;
    position: relative;
}

.excerpt-label {
    font-size: 0.9rem;
    color: #7f8c8d;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.poetry-lines {
    font-family: 'Noto Serif Bengali', serif;
    font-size: 1.2rem;
    line-height: 1.8;
    color: #2c3e50;
    font-style: italic;
    margin: 0;
    text-align: center;
}

/* Literary Timeline */
.literary-timeline {
    margin: 2rem 0;
    position: relative;
}

.literary-timeline::before {
    content: '';
    position: absolute;
    left: 30px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, #3498db, #2980b9);
}

.timeline-event {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    margin-bottom: 2rem;
    position: relative;
}

.timeline-event::before {
    content: '';
    position: absolute;
    left: 22px;
    top: 8px;
    width: 18px;
    height: 18px;
    background: #3498db;
    border: 3px solid white;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(52, 152, 219, 0.3);
}

.major-milestone::before {
    background: #f39c12;
    width: 24px;
    height: 24px;
    left: 19px;
    top: 5px;
    box-shadow: 0 3px 12px rgba(243, 156, 18, 0.4);
}

.event-year {
    min-width: 60px;
    font-weight: 700;
    color: #3498db;
    font-size: 1.1rem;
}

.event-content {
    flex: 1;
}

.event-title {
    margin: 0 0 0.5rem 0;
    color: #2c3e50;
    font-size: 1.2rem;
    font-weight: 600;
}

.event-description {
    margin: 0;
    color: #7f8c8d;
    line-height: 1.6;
}

/* Period Sections */
.period-sections {
    margin-top: 3rem;
}

.literary-period {
    background: white;
    border-radius: 8px;
    padding: 2rem;
    margin-bottom: 1.5rem;
    border: 1px solid #ecf0f1;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.period-title {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.3rem;
    font-weight: 600;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #3498db;
}

/* Works Showcase */
.works-showcase {
    display: grid;
    gap: 3rem;
}

.works-category {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.works-title {
    color: #2c3e50;
    margin-bottom: 1.5rem;
    font-size: 1.4rem;
    font-weight: 600;
    text-align: center;
    padding-bottom: 1rem;
    border-bottom: 2px solid #3498db;
}

.books-list {
    display: grid;
    gap: 1rem;
}

.book-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.book-item:hover {
    background: #e9ecef;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.book-cover {
    font-size: 2rem;
    color: #3498db;
}

.book-title {
    margin: 0;
    color: #2c3e50;
    font-size: 1.1rem;
    font-weight: 600;
}

.book-year {
    color: #7f8c8d;
    font-size: 0.9rem;
}

.poems-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-xl);
}

.poem-card {
    background: white;
    border-radius: 12px;
    padding: var(--spacing-lg);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border-left: 4px solid var(--gold-accent);
    transition: all 0.3s ease;
    height: fit-content;
}

.poem-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.poem-header {
    margin-bottom: var(--spacing-md);
}

.poem-title {
    margin: 0 0 var(--spacing-sm) 0;
    font-size: 1.3rem;
    font-weight: 600;
    line-height: 1.4;
}

.poem-title a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.poem-title a:hover {
    color: var(--gold-accent);
}

.poem-meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
    font-size: 0.85rem;
}

.poem-category,
.poem-year,
.poem-featured {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
}

.poem-category {
    background: rgba(139, 69, 19, 0.1);
    color: var(--primary-color);
}

.poem-year {
    background: rgba(108, 117, 125, 0.1);
    color: #6c757d;
}

.poem-featured {
    background: rgba(184, 134, 11, 0.1);
    color: var(--gold-accent);
}

.poem-content {
    margin: var(--spacing-md) 0;
}

.poem-excerpt {
    font-style: italic;
    line-height: 1.7;
    color: #555;
    font-size: 0.95rem;
}

.poem-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: var(--spacing-md);
    padding-top: var(--spacing-md);
    border-top: 1px solid #eee;
}

.read-more-btn {
    background: var(--primary-color);
    color: white;
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
}

.read-more-btn:hover {
    background: var(--gold-accent);
    transform: translateX(3px);
}

.poem-stats {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-size: 0.85rem;
    color: #666;
}

.poem-views {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* No Results Section */
.no-results {
    text-align: center;
    padding: var(--spacing-xxl) 0;
    color: #666;
}

.no-results-icon {
    font-size: 3rem;
    color: #ccc;
    margin-bottom: var(--spacing-lg);
}

.no-results h3 {
    color: var(--primary-color);
    margin-bottom: var(--spacing-md);
}

.no-results p {
    margin-bottom: var(--spacing-lg);
    font-size: 1.1rem;
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, #2c3e50 100%);
    color: white;
    padding: var(--spacing-xl) 0;
    text-align: center;
}

.page-title {
    font-size: 2.5rem;
    margin: 0 0 var(--spacing-md) 0;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-md);
}

.page-title i {
    font-size: 2rem;
    color: var(--gold-accent);
}

.page-description {
    font-size: 1.1rem;
    margin: 0;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .page-title {
        font-size: 2rem;
        flex-direction: column;
        gap: var(--spacing-sm);
    }
    
    .page-title i {
        font-size: 1.5rem;
    }
    
    .page-description {
        font-size: 1rem;
    }
}

/* Filters Section */
.filters-section {
    background: #f8f6f2;
    padding: var(--spacing-lg) 0;
    border-bottom: 1px solid #eee;
}

.filters-wrapper {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.search-form {
    display: flex;
    justify-content: center;
}

.search-input-group {
    display: flex;
    max-width: 400px;
    width: 100%;
}

.search-input {
    flex: 1;
    padding: var(--spacing-sm) var(--spacing-md);
    border: 1px solid #ddd;
    border-radius: 6px 0 0 6px;
    font-size: 1rem;
    outline: none;
}

.search-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(139, 69, 19, 0.1);
}

.search-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: 0 6px 6px 0;
    cursor: pointer;
    transition: background 0.3s ease;
}

.search-btn:hover {
    background: var(--gold-accent);
}

.category-filters {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
    justify-content: center;
}

.filter-btn {
    padding: var(--spacing-sm) var(--spacing-md);
    background: white;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-color);
    color: white;
}

/* Results Info */
.results-info {
    padding: var(--spacing-md) 0;
    background: white;
}

.results-count {
    color: #666;
    font-size: 0.95rem;
    margin: 0;
}

/* Pagination */
.pagination-wrapper {
    margin-top: var(--spacing-xl);
    display: flex;
    justify-content: center;
}

.pagination {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.pagination-btn {
    padding: var(--spacing-sm) var(--spacing-md);
    background: white;
    color: var(--primary-color);
    border: 1px solid #ddd;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.pagination-btn:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.pagination-numbers {
    display: flex;
    align-items: center;
    gap: 4px;
}

.pagination-number {
    padding: var(--spacing-sm) 12px;
    background: white;
    color: var(--primary-color);
    border: 1px solid #ddd;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    min-width: 40px;
    text-align: center;
}

.pagination-number:hover,
.pagination-number.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.pagination-ellipsis {
    color: #666;
    padding: 0 var(--spacing-xs);
}

@media (max-width: 768px) {
    .poems-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    .filters-wrapper {
        gap: var(--spacing-md);
    }
    
    .category-filters {
        justify-content: flex-start;
    }
    
    .poem-footer {
        flex-direction: column;
        gap: var(--spacing-sm);
        align-items: flex-start;
    }
    
    .pagination {
        flex-wrap: wrap;
        justify-content: center;
    }
}

.poem-highlight {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    border: 1px solid #dee2e6;
    transition: all 0.3s ease;
}

.poem-highlight:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.poem-title {
    margin: 0 0 0.5rem 0;
    color: #2c3e50;
    font-size: 1.1rem;
    font-weight: 600;
}

.poem-year {
    color: #7f8c8d;
    font-size: 0.9rem;
}

/* Awards List */
.awards-list {
    display: grid;
    gap: 1rem;
}

.award-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
    border-radius: 10px;
    border: 1px solid #dee2e6;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.award-icon {
    font-size: 2.5rem;
}

.award-details h4 {
    margin: 0;
    color: #2c3e50;
    font-size: 1.2rem;
}

.award-year {
    color: #7f8c8d;
    font-size: 0.9rem;
}

/* Philosophy Content */
.philosophy-content {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 12px;
    padding: 2rem;
}

.philosophy-quote {
    background: white;
    border-radius: 8px;
    padding: 2rem;
    margin: 2rem 0;
    border-left: 4px solid #3498db;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.philosophy-quote blockquote {
    margin: 0;
    font-family: 'Noto Serif Bengali', serif;
    font-size: 1.2rem;
    font-style: italic;
    color: #2c3e50;
    text-align: center;
}

/* Legacy Stats */
.legacy-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: #3498db;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: #7f8c8d;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Bibliography Section */
.bibliography-section {
    background: #f8f9fa;
    padding: 2.5rem;
    margin-top: 2rem;
    border-radius: 12px;
    border: 1px solid #dee2e6;
}

.bibliography-list {
    list-style: none;
    padding: 0;
}

.bibliography-list li {
    padding: 0.8rem 0;
    border-bottom: 1px solid #dee2e6;
    color: #34495e;
}

.bibliography-list li:last-child {
    border-bottom: none;
}

/* Literary Sidebar */
.literary-sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.poet-profile-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 2rem;
}

.profile-image {
    text-align: center;
    padding: 2rem 2rem 1rem 2rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.poet-photo {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid white;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.profile-info {
    padding: 1rem 2rem 2rem 2rem;
}

.profile-name {
    text-align: center;
    margin: 0 0 1.5rem 0;
    color: #2c3e50;
    font-size: 1.3rem;
    font-weight: 600;
    font-family: 'Noto Serif Bengali', serif;
}

.profile-details {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f1f2f6;
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-label {
    font-weight: 600;
    color: #7f8c8d;
    font-size: 0.9rem;
}

.detail-value {
    color: #2c3e50;
    font-weight: 500;
}

/* Literary Stats */
.literary-stats {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.stats-title {
    text-align: center;
    margin: 0 0 1.5rem 0;
    color: #2c3e50;
    font-size: 1.1rem;
    font-weight: 600;
    padding-bottom: 1rem;
    border-bottom: 2px solid #3498db;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.stat-box {
    text-align: center;
    padding: 1rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 8px;
    border: 1px solid #ecf0f1;
    transition: all 0.3s ease;
}

.stat-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.stat-box .stat-number {
    font-size: 1.8rem;
    color: #3498db;
    margin-bottom: 0.3rem;
}

.stat-box .stat-label {
    font-size: 0.8rem;
}

/* Quick Links */
.quick-links {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.links-title {
    text-align: center;
    margin: 0 0 1.5rem 0;
    color: #2c3e50;
    font-size: 1.1rem;
    font-weight: 600;
    padding-bottom: 1rem;
    border-bottom: 2px solid #3498db;
}

.links-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.links-list li {
    margin-bottom: 0.8rem;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem 1rem;
    color: #34495e;
    text-decoration: none;
    border-radius: 8px;
    background: #f8f9fa;
    transition: all 0.3s ease;
    font-weight: 500;
}

.sidebar-link:hover {
    background: #3498db;
    color: white;
    transform: translateX(5px);
}

/* Section Title */
.section-title {
    font-family: 'Noto Serif Bengali', serif;
    font-size: 2rem;
    color: #2c3e50;
    margin-bottom: 2rem;
    text-align: center;
    padding-bottom: 1rem;
    border-bottom: 3px solid #3498db;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .heritage-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .literary-sidebar {
        order: -1;
    }

    .poet-profile-card {
        position: relative;
    }
}

@media (max-width: 768px) {
    .heritage-layout {
        padding: 0 1rem;
    }

    .poet-name {
        font-size: 2.5rem;
    }

    .chapter-title {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .legacy-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .poems-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .poet-header {
        padding: 2rem 1.5rem;
    }

    .literary-introduction,
    .literary-nav,
    .life-chapter {
        padding: 2rem 1.5rem;
    }

    .poet-name {
        font-size: 2rem;
    }

    .chapter-number {
        width: 50px;
        height: 50px;
        font-size: 1rem;
    }

    .chapter-name {
        font-size: 1.8rem;
    }

    .legacy-stats {
        grid-template-columns: 1fr;
    }
}

/* Login/Register Modal Styles - Fixed Design for All Pages - HIGHEST PRIORITY */
.modal {
    display: none !important;
    position: fixed !important;
    z-index: 999999 !important;
    left: 0 !important;
    top: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background-color: rgba(47, 27, 20, 0.75) !important;
    backdrop-filter: blur(8px) !important;
    animation: fadeIn 0.3s ease-out !important;
}

.modal.show {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.modal-content {
    background: linear-gradient(135deg, #FFFEF7 0%, #F5F3F0 100%) !important;
    border-radius: 20px !important;
    box-shadow: 0 25px 80px rgba(139, 69, 19, 0.3) !important;
    padding: 2.5rem !important;
    width: 90% !important;
    max-width: 450px !important;
    height: auto !important;
    max-height: 90vh !important;
    overflow-y: auto !important; /* Allow scroll if needed */
    border: 2px solid var(--gold-accent) !important;
    position: relative !important;
    animation: slideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.modal-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--border-color);
    position: relative;
}

.modal-header::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: var(--gold-accent);
}

.modal-header h2 {
    font-family: var(--font-serif);
    color: var(--primary-color);
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(139, 69, 19, 0.1);
}

.modal-header p {
    color: var(--text-light);
    font-size: 1rem;
    margin: 0;
}

.close-modal {
    position: absolute !important;
    top: 1rem !important;
    right: 1rem !important;
    background: var(--accent-color) !important;
    border: none !important;
    font-size: 1.5rem !important;
    color: white !important;
    cursor: pointer !important;
    padding: 0.5rem !important;
    border-radius: 50% !important;
    transition: all 0.3s ease !important;
    width: 40px !important;
    height: 40px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 4px 12px rgba(139, 69, 19, 0.2) !important;
    z-index: 999999 !important;
}

.close-modal:hover {
    background: var(--primary-color) !important;
    transform: rotate(90deg) !important;
}

.modal-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.modal-form .form-group {
    margin-bottom: 0;
}

.modal-form .form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--primary-color);
    font-size: 1rem;
    font-family: var(--font-serif);
}

.modal-form .form-control {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-size: 1rem;
    font-family: var(--font-body);
    transition: all 0.3s ease;
    background: white;
    box-shadow: inset 0 2px 4px rgba(139, 69, 19, 0.05);
}

.modal-form .form-control:focus {
    outline: none;
    border-color: var(--gold-accent);
    box-shadow: 0 0 0 4px rgba(184, 134, 11, 0.15);
    background: #FFFEF7;
}

.modal-form .form-help {
    font-size: 0.85rem;
    color: var(--secondary-color);
    margin-top: 0.5rem;
    font-style: italic;
}

.modal-form .btn-primary {
    width: 100%;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    color: white !important;
    border: none;
    padding: 16px 20px;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--font-serif);
    box-shadow: 0 6px 20px rgba(139, 69, 19, 0.25);
    margin-top: 1rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 10;
    display: block;
    text-align: center;
    text-decoration: none;
    outline: none;
    min-height: 50px;
    line-height: 1.2;
}

.modal-form .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(139, 69, 19, 0.35);
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--primary-color) 100%);
}

.modal-form .btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 4px 15px rgba(139, 69, 19, 0.3);
}

.modal-form .btn-primary:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.modal-form .btn-primary:focus {
    outline: 2px solid var(--gold-accent);
    outline-offset: 2px;
}

/* Register Submit Button Specific Styling */
.register-submit-btn {
    background: linear-gradient(135deg, #8B4513 0%, #D2691E 100%) !important;
    color: white !important;
    border: 2px solid #D2691E !important;
    width: 100% !important;
    padding: 20px !important;
    font-size: 1.2rem !important;
    font-weight: 700 !important;
    border-radius: 12px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    margin: 25px 0 !important;
    display: block !important;
    position: relative !important;
    z-index: 999 !important;
    box-shadow: 0 8px 25px rgba(139, 69, 19, 0.4) !important;
    text-align: center !important;
    min-height: 55px !important;
    line-height: 1.2 !important;
    opacity: 1 !important;
    visibility: visible !important;
    text-transform: none !important;
}

/* Enhanced Register Button Styling */
#registerSubmitBtn {
    background: linear-gradient(135deg, #8B4513 0%, #D2691E 100%) !important;
    border: 3px solid #D2691E !important;
    color: white !important;
    font-size: 18px !important;
    font-weight: bold !important;
    padding: 25px !important;
    margin: 40px 0 !important;
    display: block !important;
    width: 100% !important;
    position: relative !important;
    z-index: 999999 !important;
    border-radius: 12px !important;
    box-shadow: 0 8px 25px rgba(139, 69, 19, 0.4) !important;
    text-align: center !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    opacity: 1 !important;
    visibility: visible !important;
    min-height: 60px !important;
    font-family: var(--font-serif) !important;
}

#registerSubmitBtn:hover {
    background: linear-gradient(135deg, #D2691E 0%, #8B4513 100%) !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 12px 35px rgba(139, 69, 19, 0.6) !important;
}

#registerSubmitBtn:active {
    transform: translateY(0) !important;
    box-shadow: 0 6px 20px rgba(139, 69, 19, 0.4) !important;
}

.register-submit-btn:hover {
    background: linear-gradient(135deg, #D2691E 0%, #8B4513 100%) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 30px rgba(139, 69, 19, 0.5) !important;
}

.register-submit-btn:active {
    transform: translateY(0) !important;
    box-shadow: 0 4px 15px rgba(139, 69, 19, 0.4) !important;
}

/* Login Submit Button Specific Styling */
.login-submit-btn {
    background: linear-gradient(135deg, #8B4513 0%, #D2691E 100%) !important;
    border: 3px solid #D2691E !important;
    color: white !important;
    font-size: 18px !important;
    font-weight: bold !important;
    padding: 25px !important;
    margin: 40px 0 !important;
    display: block !important;
    width: 100% !important;
    position: relative !important;
    z-index: 999999 !important;
    border-radius: 12px !important;
    box-shadow: 0 8px 25px rgba(139, 69, 19, 0.4) !important;
    text-align: center !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    opacity: 1 !important;
    visibility: visible !important;
    min-height: 60px !important;
    font-family: var(--font-serif) !important;
}

.login-submit-btn:hover {
    background: linear-gradient(135deg, #D2691E 0%, #8B4513 100%) !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 12px 35px rgba(139, 69, 19, 0.6) !important;
}

.login-submit-btn:active {
    transform: translateY(0) !important;
    box-shadow: 0 4px 15px rgba(139, 69, 19, 0.4) !important;
}

/* Forgot Password Submit Button Styling */
.forgot-submit-btn {
    background: linear-gradient(135deg, #8B4513 0%, #D2691E 100%) !important;
    border: 3px solid #D2691E !important;
    color: white !important;
    font-size: 18px !important;
    font-weight: bold !important;
    padding: 25px !important;
    margin: 40px 0 !important;
    display: block !important;
    width: 100% !important;
    position: relative !important;
    z-index: 999999 !important;
    border-radius: 12px !important;
    box-shadow: 0 8px 25px rgba(139, 69, 19, 0.4) !important;
    text-align: center !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    opacity: 1 !important;
    visibility: visible !important;
    min-height: 60px !important;
    font-family: var(--font-serif) !important;
}

.forgot-submit-btn:hover {
    background: linear-gradient(135deg, #D2691E 0%, #8B4513 100%) !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 12px 35px rgba(139, 69, 19, 0.6) !important;
}

.forgot-submit-btn:active {
    transform: translateY(0) !important;
    box-shadow: 0 4px 15px rgba(139, 69, 19, 0.4) !important;
}

.modal-footer {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
    margin-top: 1.5rem;
}

.modal-footer a {
    color: var(--gold-accent);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
    font-family: var(--font-serif);
}

.modal-footer a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.alert {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-weight: 500;
    border-left: 4px solid;
    animation: slideDown 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.alert-danger {
    background: #fdeaea;
    color: #c53030;
    border-color: #e53e3e;
}

.alert-success {
    background: #edf7ed;
    color: #2f855a;
    border-color: #38a169;
}

.password-requirements {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-top: 0.25rem;
    font-style: italic;
}

/* Loading Spinner */
.fa-spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (max-width: 576px) {
    .modal-content {
        padding: 1.5rem;
        margin: 0.5rem;
        max-height: 95vh;
        width: 95%;
        border-radius: 16px;
    }
    
    .modal-header h2 {
        font-size: 1.6rem;
    }
    
    .modal-form {
        gap: 1rem;
    }
    
    .modal-form .form-control {
        padding: 12px 16px;
        font-size: 16px; /* Prevent zoom on iOS */
    }
    
    .modal-form .btn-primary {
        padding: 14px 20px;
        font-size: 1rem;
    }
    
    .close-modal {
        top: 0.75rem;
        right: 0.75rem;
        width: 35px;
        height: 35px;
        font-size: 1.25rem;
    }
    
    .auth-links {
        flex-direction: column;
        gap: 0.5rem;
        width: 100%;
    }
    
    .auth-links button,
    .auth-links .btn {
        width: 100%;
        justify-content: center;
        padding: 0.75rem 1rem;
    }
}

/* ===============================================
   ADMIN PANEL UTILITY CLASSES
   =============================================== */

/* Admin text styling */
.poem-preview {
    font-size: 0.8rem !important;
    color: var(--text-light) !important;
    margin-top: 0.25rem !important;
}

.text-muted {
    color: #999 !important;
}

.help-text {
    color: #666 !important;
    margin-top: 5px !important;
    display: block !important;
}

/* Status indicators */
.status-indicator {
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
}

.status-published {
    color: #28a745 !important;
    background: rgba(40, 167, 69, 0.1);
}

.status-draft {
    color: #dc3545 !important;
    background: rgba(220, 53, 69, 0.1);
}

/* Admin button utilities */
.btn-sm {
    padding: 0.25rem 0.5rem !important;
    font-size: 0.8rem !important;
}

/* Layout utilities */
.text-center {
    text-align: center !important;
}

.no-data-message {
    padding: 2rem !important;
}

/* Enhanced Bengali font rendering for better readability */
.bengali-text {
    font-family: var(--font-body);
    letter-spacing: var(--letter-spacing-bengali);
    text-rendering: optimizeLegibility;
    -webkit-font-feature-settings: "liga", "kern", "calt";
    font-feature-settings: "liga", "kern", "calt";
}

/* Mobile Auth Section */
.mobile-auth-section {
    display: none;
    padding: 1rem;
    background: var(--background-alt);
    border-top: 1px solid var(--border-color);
}