        :root {
            --bg-color: #f7f1e3;        
            --text-color: #2c2c2c;      
            --card-bg: #fffbf0;         
            --header-bg: #3d3528;       
            --category-bg: #efe8d4;     
            --primary-color: #d1a153;   
            --hover-color: #b7863b;    
            --border-color: #decfa6;    
            --comment-bg: #f3edd9;     
            --footer-bg: #3d3528;       
            --footer-text: #decfa6;     
        }

        [data-theme="dark"] {
            --bg-color: #1e1e24;       
            --text-color: #d4d4dc;      
            --card-bg: #26262f;         
            --header-bg: #141419;       
            --category-bg: #2d2d37;     
            --border-color: #3e3e4d;    
            --comment-bg: #1e1e24;      
            --footer-bg: #141419;       
            --footer-text: #8e8e9d;     
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Hind Siliguri', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            transition: background-color 0.3s ease, color 0.3s ease;
        }

        body {
            background-color: var(--bg-color);
            color: var(--text-color);
            line-height: 1.6;
            display: flex;
            flex-direction: column;
            min-height: 100vh;
            align-items: center; 
        }

        .site-wrapper {
            width: 100%;
            max-width: 1200px; 
            background: var(--bg-color);
            box-shadow: 0 0 20px rgba(0,0,0,0.05);
            display: flex;
            flex-direction: column;
            min-height: 100vh;
        }

        .container {
            padding: 20px;
            width: 100%;
        }

        a {
            text-decoration: none;
            color: inherit;
        }

        @keyframes fadeInUp {
            from { opacity: 0; transform: translateY(20px); }
            to { opacity: 1; transform: translateY(0); }
        }

        /* অ্যানাউন্সমেন্ট বার */
        .announcement-bar {
            background-color: #ff4757;
            color: white;
            padding: 8px 0;
            font-size: 14px;
            font-weight: bold;
            overflow: hidden;
            position: relative;
            width: 100%;
            display: flex;
            align-items: center;
        }

        .announcement-bar .badge {
            background: #fff;
            color: #ff4757;
            padding: 3px 10px;
            border-radius: 3px;
            margin-left: 15px;
            z-index: 10;
            position: relative;
            box-shadow: 2px 0 5px rgba(0,0,0,0.2);
            white-space: nowrap;
        }

        .marquee-container {
            width: 100%;
            overflow: hidden;
            white-space: nowrap;
            padding-left: 20px;
        }

        .marquee-text {
            display: inline-block;
            padding-left: 100%;
            animation: marquee-animation 15s linear infinite;
        }

        .marquee-text:hover {
            animation-play-state: paused;
            cursor: pointer;
        }

        @keyframes marquee-animation {
            0% { transform: translate3d(0, 0, 0); }
            100% { transform: translate3d(-100%, 0, 0); }
        }
   
        header {
            background-color: var(--header-bg);
            color: white;
            padding: 15px 20px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            box-shadow: 0 4px 6px rgba(0,0,0,0.1);
            position: relative;
            width: 100%;
        }

        .logo h1 { 
            font-size: 32px; 
            font-weight: bold;
            line-height: 1;
        }

        .logo .red-text { color: #ff4757; }
        .logo .green-text { color: #2ed573; font-weight: 800; }

        .nav-container { 
            display: flex; 
            align-items: center; 
            gap: 25px; 
        }

        nav ul { 
            display: flex; 
            list-style: none;
            align-items: center;
            gap: 20px; 
        }

        nav ul li { 
            margin: 0; 
            position: relative; 
        }

        nav ul li a {
            font-size: 16px; 
            font-weight: 600;
            white-space: nowrap;
            display: block;
        }

        nav ul li a:hover { 
            color: var(--primary-color); 
        }

        .dropdown-content {
            display: none;
            position: absolute;
            top: 100%; 
            left: 50%;
            transform: translateX(-50%); 
            background-color: var(--card-bg);
            min-width: 160px;
            box-shadow: 0px 8px 16px rgba(0,0,0,0.15);
            border: 1px solid var(--border-color);
            border-radius: 4px;
            z-index: 100;
            list-style: none;
            padding: 5px 0;
        }

        .dropdown-content li {
            width: 100%;
        }

        .dropdown-content a {
            color: var(--text-color);
            padding: 10px 15px;
            display: block;
            font-size: 14px;
            text-align: center;
        }

        .dropdown:hover .dropdown-content {
            display: block;
        }

        .theme-toggle-btn {
            background: var(--primary-color);
            color: white;
            border: none;
            padding: 8px 15px;
            border-radius: 15px;
            cursor: pointer;
            font-weight: bold;
            font-size: 14px;
            white-space: nowrap;
        }

        .theme-toggle-btn:hover { 
            background: var(--hover-color); 
        }

        /* বইয়ের গ্রিড */
        .book-grid {
            display: grid;
            grid-template-columns: repeat(4, 1fr); 
            gap: 20px;
            margin-top: 20px;
            margin-bottom: 40px;
        }

        .book-card {
            background: var(--card-bg);
            border: 1px solid var(--border-color);
            border-radius: 8px;
            padding: 12px;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            box-shadow: 0 4px 6px rgba(0,0,0,0.03);
            position: relative;
            overflow: hidden;
        }

        .book-card img {
            width: 100%;
            height: 180px;
            object-fit: cover;
            border-radius: 6px;
            margin-bottom: 12px;
            border: 1px solid var(--border-color);
        }

        .book-card .badge {
            background: #ff4757;
            color: white;
            font-size: 11px;
            padding: 2px 6px;
            border-radius: 3px;
            position: absolute;
            top: 20px;
            left: 20px;
            z-index: 5;
        }

        .book-card:hover {
            transform: translateY(-8px);
            box-shadow: 0 8px 16px rgba(0,0,0,0.15);
        }

        .book-cover {
            width: 100%;
            height: 180px;
            background: var(--category-bg);
            color: var(--primary-color);
            border-radius: 6px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 16px;
            font-weight: bold;
            margin-bottom: 12px;
            border: 1px dashed var(--border-color);
            text-align: center;
            padding: 10px;
        }

        .book-title {
            font-size: 15px;
            font-weight: bold;
            color: var(--text-color);
            margin-bottom: 8px;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis; 
            text-align: center;
        }

        .read-btn {
            background: var(--primary-color);
            color: white;
            border: none;
            padding: 8px 12px;
            border-radius: 4px;
            cursor: pointer;
            font-size: 14px;
            font-weight: bold;
            width: 100%;
            transition: background 0.2s ease;
        }

        .read-btn:hover {
            background: var(--hover-color);
        }

        /* ক্যাটাগরি গ্রিড */
        .category-grid {
            display: grid;
            grid-template-columns: repeat(5, 1fr);
            gap: 15px;
            margin-top: 20px;
            margin-bottom: 40px;
        }

        .category-card {
            background: var(--card-bg);
            border: 1px solid var(--border-color);
            border-radius: 8px;
            overflow: hidden;
            text-align: center;
            box-shadow: 0 4px 6px rgba(0,0,0,0.05);
        }

        .category-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 6px 12px rgba(0,0,0,0.15);
        }

        .category-thumbnail { 
            width: 100%; 
            height: 110px; 
            background: var(--category-bg); 
            display: flex; 
            align-items: center; 
            justify-content: center; 
            border-bottom: 1px solid var(--border-color); 
            overflow: hidden;
        }

        .category-thumbnail img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .category-title {
            padding: 10px;
            font-size: 14px;
            font-weight: bold;
            color: var(--text-color);
        }

        /* ফুটার স্টাইল */
        footer {
            background-color: var(--header-bg); 
            color: var(--footer-text);
            padding: 30px 20px 15px 20px;
            margin-top: auto;
            border-top: 3px solid var(--primary-color);
            width: 100%; 
        }

        .footer-container {
            max-width: 1160px;
            margin: 0 auto;
        }

        .footer-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr); 
            gap: 30px;
            padding-bottom: 25px;
            border-bottom: 1px solid var(--border-color);
        }

        .footer-col h4 {
            color: white;
            margin-bottom: 15px;
            font-size: 18px;
            border-bottom: 2px solid var(--primary-color);
            display: inline-block;
            padding-bottom: 5px;
        }

        .footer-col p {
            font-size: 14px;
            line-height: 1.8;
        }

        .footer-col ul { 
            list-style: none; 
        }

        .footer-col ul li { 
            margin-bottom: 10px; 
        }

        .footer-col ul li a {
            font-size: 14px;
            transition: color 0.2s ease, padding-left 0.2s ease;
        }

        .footer-col ul li a:hover { 
            color: var(--primary-color); 
            padding-left: 8px; 
        }

        .social-links {
            display: flex;
            gap: 12px;
            margin-top: 15px;
        }

        .social-icon {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 36px;
            height: 36px;
            border-radius: 50%;
            background-color: var(--category-bg);
            color: var(--header-bg) !important;
            font-size: 16px;
            font-weight: bold;
        }

        .social-icon:hover {
            transform: translateY(-3px);
            background-color: var(--primary-color);
            color: white !important;
        }

        .footer-bottom {
            text-align: center;
            padding-top: 15px;
            font-size: 13px;
            color: var(--footer-text);
            opacity: 0.8;
        }

        /* রেসপনসিভ মিডিয়া কোয়েরি */
        @media (max-width: 992px) {
            .category-grid { grid-template-columns: repeat(3, 1fr); }
            .book-grid { grid-template-columns: repeat(2, 1fr); }
        }

        @media (max-width: 768px) {
            header { 
                flex-direction: column; 
                gap: 15px; 
                text-align: center;
            }
            
            .nav-container { 
                flex-direction: column; 
                gap: 15px; 
                width: 100%;
            }
            
            nav ul { 
                flex-wrap: wrap; 
                justify-content: center;
                gap: 15px;
            }
            
            .dropdown-content {
                position: static; 
                transform: none;
                box-shadow: none;
                border: none;
                background: transparent;
                padding: 0;
            }
            
            .dropdown-content a {
                font-size: 16px;
                padding: 5px;
                color: var(--primary-color);
            }

            .category-grid { grid-template-columns: repeat(2, 1fr); }

            .footer-grid {
                grid-template-columns: repeat(2, 1fr); 
                gap: 20px;
            }

            .footer-col:nth-child(1) {
                grid-column: span 2; 
                text-align: center;
            }
            .footer-col:nth-child(1) .social-links {
                justify-content: center;
            }

            .footer-col:nth-child(2), .footer-col:nth-child(3) {
                text-align: left; 
            }
        }
        
        body {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}