body {
    margin: 0;
    padding: 0;
    font-family: 'Noto Serif Bengali', serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #fdfcfb, #caad94);
    color: #522a04;
    text-align: center;
}

h1 {
    font-family: 'Noto Serif Bengali', serif; /* Elegant Bengali font */
    font-size: 2.0rem; /* Large and readable */
    color: #a76812; /* Rich, warm color for a literary feel */
    text-align: center; /* Center the heading */
    margin-bottom: 20px;
    margin-top: 10px;
    position: relative;
    padding-bottom: 12px;
    line-height: 1.4;
}

/* Decorative underline */
h1::after {
    content: '';
    width: 150px;
    height: 4px;
    background: linear-gradient(135deg, #49d649, #127704); /* Soft gradient underline */
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0;
    border-radius: 2px;
}

h3 {
    margin: 0 0 20px;
    font-size: 18px;
    color: #666;
    font-weight: 400;
}

.cover-container {
    width: 100%;
    max-width: 650px; /* Slightly wider for better visual appeal */
    padding: 45px;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.87); /* Soft glassmorphism effect */
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(15px);
    border: 2px solid rgba(255, 255, 255, 0.5);
    position: relative;
    overflow: hidden;
    margin: 100px auto 30px; /* Increased top margin to prevent overlap */
    box-sizing: border-box;
    transition: transform 0.4s ease-in-out, box-shadow 0.4s ease-in-out;
}

/* Gradient border for a premium look */
.cover-container::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.3), rgba(0, 0, 0, 0.1));
    border-radius: inherit;
    z-index: -1;
    transition: opacity 0.4s ease-in-out;
}

/* Add subtle glow and scale on hover */
.cover-container:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.3);
}

/* Soft glow effect */
.cover-container::after {
    content: '';
    position: absolute;
    top: -40px;
    left: -40px;
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.2), transparent 60%);
    opacity: 0.6;
    pointer-events: none;
}

/* Image Styling */
.cover-container img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transition: transform 0.4s ease-in-out;
}

/* Slight zoom effect on hover */
.cover-container:hover img {
    transform: scale(1.03);
}


.author-description p {
    font-family: 'Noto Serif Bengali', serif;
    font-size: 18px;
    color: #333;
    text-align: justify;
    line-height: 2;
}

.poem-description p {
    font-family: 'Noto Serif Bengali', serif;
    font-size: 18px;
    color: #11076e;
    text-align: center;
    line-height: 2;
}

.highlight {
    font-weight: bold;
    color: #8c4b00;
}
  
.quote {
    font-style: italic;
    color: #5a2a00;
    font-weight: bold;
}

.author-image {
    width: 20%; /* Relative to container */
    min-width: 70px; /* Prevent too small */
    max-width: 100px; /* Prevent too large */
    height: auto;
    margin: 16px auto;
    border-radius: 8px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.15);
    display: block;
}

.poem-image {
    width: 60%; /* Moderate size for visibility */
    max-width: 400px; /* Prevents too large images on wide screens */
    height: auto; /* Maintain aspect ratio */
    margin: 30px auto; /* Centered with vertical spacing */
    border-radius: 16px; /* Soft rounded corners */
    display: block;
    padding: 8px; /* Space inside border */
    background: rgba(255, 255, 255, 0.911); /* Light background for frame effect */
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1), 0 4px 12px rgba(0, 0, 0, 0.08); /* Soft layered shadows */
    transition: all 0.3s ease-in-out; /* Smooth hover effect */
    border: 1px solid rgba(0, 0, 0, 0.1); /* Subtle border */
}

.cover-container img { 
    width: 100%; 
    max-width: 400px; 
    border-radius: 10px; 
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2); 
}

.continue-button {
    display: inline-block; 
    padding: 12px 40px;
    background: linear-gradient(135deg, #ff9a00, #c55001);
    color: white;
    font-size: 18px;
    border: none;
    border-radius: 30px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    margin: 5px; 
}

.continue-button:hover {
    background: linear-gradient(135deg, #e68a00, #cc5500);
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}
  
 




/* ------------------   TOC Container ------------------------------- */
.toc-container {
    margin-top: 60px; /* Adjust margin so heading moves down */
    padding: 20px;
    border: 2px solid #ddd; /* Soft border for a clear view */
    border-radius: 8px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1); /* Light shadow effect */
}
  
/* Grid */
.toc-grid {
    display: grid;
    gap: 15px;
    grid-template-columns: repeat(2, 1fr); /* Default: 2 columns */
}
  
/* TOC Item */
.toc-item {
    background: rgba(255, 255, 255, 0.85);
    padding: 20px 16px; /* Increased padding for better spacing */
    border-radius: 16px; /* Softer, more rounded corners */
    text-decoration: none;
    color: #5f330a;
    font-family: 'Noto Serif Bengali', serif;
    font-size: 1.2rem; /* Slightly larger text for better readability */
    font-weight: bold; /* Make text bold */
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    text-align: center;
    width: 100%; /* Make sure it fills the column */
    box-sizing: border-box; /* Ensure padding is included in width */    
}
  
/* Hover effect */
.toc-item:hover {
    background: linear-gradient(135deg, #F9D29D, #ECC29C);
    color: #4a2902;
    transform: translateY(-4px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
}


 
 /* Basic Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

/* Navbar Styles */
.navbar {
    background: rgba(247, 245, 245, 0.952);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    padding: 20px 20px;
    text-align: center;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.nav-list {
    list-style: none;
    display: flex;
    justify-content: center;
}

.nav-list li {
    margin: 0 15px;
}

.nav-list a {
    text-decoration: none;
    color: #444444;
    font-weight: bold;
    padding: 8px 12px;
    transition: 0.3s ease;
}

.nav-list a:hover {
    color: #b8730d;
    background-color: #e4ded0;
    border: 2px solid #d8800c; /* Deep border color */
    border-radius: 8px; /* Rounded corners */
}

/* Active menu item styling */
.nav-list a.active {
    color: white; 
    background-color: #b8730d; /* Lighter pinkish shade */
    font-weight: bold;
    border: 2px solid #fa9d12; /* Deep border color */
    border-radius: 8px; /* Rounded corners */
    padding: 8px 12px; /* Better spacing */
}


/* Mobile Menu */
.menu-toggle {
    display: none;
    font-size: 24px;
    cursor: pointer;
}

.menu-title {
    flex-grow: 1;
    text-align: center; /* Centers the text */
}

.hamburger {
    font-size: 24px;
    color: #9b4106; /* Stylish blue */
    text-shadow: 0px 0px 6px rgba(214, 182, 77, 0.6); /* Glow effect */
    cursor: pointer;
    margin-right: 10px; /* Space between icon and text */
    display: inline-block; /* Ensure it stays inline */
}

 
 

/* ------------  Responsive Design ------------------------- */


/* Extra small devices (phones, 320px and up) */
@media (max-width: 480px) {  
    /* Cover container padding adjustment */
    .cover-container {
        padding: 18px 12px;
    }

 
    /* Poem Image responsiveness */
    .poem-image {
        width: 80%; /* Take 80% width */
        max-width: 100%; /* Never exceed parent width */
        height: auto; /* Maintain aspect ratio */
        padding: 8px; /* Compact padding */
        border-radius: 12px; /* Slight rounding */
        display: block;
        margin: 0 auto; /* Center */
    }

    .toc-grid {
        grid-template-columns: repeat(1, 1fr); /* 1 column for small screens */
    }
   
    h1 {
        font-size: 1.0rem;
    }

}

  
/* Small devices (larger phones, 481px and up) */
@media (max-width: 767px) {
    /* Larger mobile styles */
    .cover-container {
        max-width: 90%; /* Adjust width for tablets and mobiles */
        padding: 30px;
    }

    .poem-image {
        width: 80%; /* Almost full width on very small screens */
        max-width: 100px; /* Prevents too large images on wide screens */
        height: auto; /* Maintain aspect ratio */
        padding: 8px; /* Reduce padding for smaller screens */
        border-radius: 12px; /* Slightly less rounding on small screens */
    }

    .continue-button {
        width: 80%; /* Full width button on mobile */
        padding: 14px;
        font-size: 16px;
    }

        
    .toc-item {
        font-size: 1.1rem;
        font-weight: bold; /* Make text bold */
        padding: 10px 8px;
    }

    h1 {
        font-size: 1.8rem;
    }

    .menu-toggle {
        display: block;
        text-align: right;
        /* padding: 2px; */
        cursor: pointer;
      }
    
    .nav-list {
        display: none;
        flex-direction: column;
        background: rgba(255, 255, 255, 0.95);
        position: absolute;
        width: 100%;
        top: 50px;
        left: 0;
        text-align: center;
        padding: 10px 0;
    }
    
    .nav-list.active {
        display: flex;
    }

    .nav-list li {
        padding: 10px 0;
    }

    .hamburger-menu {
        padding: 2px 2px; /* Reduce padding */
    }
      
}
  

  