/*
Theme Name: QalbeTalks
Theme URI: https://example.com/qalbetalks
Author: QalbeTalks Team
Description: A premium, high-performance WordPress theme with Custom Admin Panel support.
Version: 2.0.0
*/

/* ==========================================================================
   1. CSS VARIABLES (THEME OPTIONS PREPARATION)
   এই ভেরিয়েবলগুলোই পরবর্তীতে এডমিন প্যানেল দিয়ে চেঞ্জ করা যাবে
   ========================================================================== */
:root {
    /* Brand Colors */
    --primary-color: #2563eb;       /* Modern Blue */
    --primary-hover: #1d4ed8;
    --secondary-color: #10b981;     /* Emerald Green (Download/Action) */
    --accent-color: #f59e0b;        /* Amber (Notifications/Badges) */
    
    /* Dark/Light Mode Colors */
    --bg-body: #f8fafc;             /* Slate 50 */
    --bg-card: #ffffff;
    --text-main: #1e293b;           /* Slate 800 */
    --text-muted: #64748b;          /* Slate 500 */
    --border-color: #e2e8f0;
    
    /* Layout & Spacing */
    --container-width: 1280px;
    --header-height: 80px;
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    
    /* Effects */
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
    --shadow-hover: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Fonts */
    --font-main: 'Inter', sans-serif;
}

/* ==========================================================================
   2. GLOBAL RESET & TYPOGRAPHY
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

body {
    font-family: var(--font-main);
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

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

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

img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius-sm);
}

/* Layout Container */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ==========================================================================
   3. HEADER & NAVIGATION (Glassmorphism Effect)
   ========================================================================== */
.site-header {
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    height: var(--header-height);
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.site-title a {
    font-size: 1.75rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -1px;
}

/* Navigation */
.main-navigation ul {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.main-navigation a {
    color: var(--text-main);
    font-weight: 600;
    font-size: 0.95rem;
    position: relative;
    padding: 5px 0;
}

.main-navigation a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.main-navigation a:hover::after {
    width: 100%;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-main);
    cursor: pointer;
}

/* ==========================================================================
   4. HERO SECTION (Modern Gradient)
   ========================================================================== */
.hero-section {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    padding: 6rem 0;
    text-align: center;
    color: #fff;
    position: relative;
    overflow: hidden;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    margin-bottom: 3rem;
}

/* Decorative Circle (Background) */
.hero-section::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 300px;
    height: 300px;
    background: var(--primary-color);
    opacity: 0.2;
    filter: blur(80px);
    border-radius: 50%;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-desc {
    font-size: 1.25rem;
    opacity: 0.8;
    max-width: 700px;
    margin: 0 auto 2.5rem;
}

/* Search Bar (Floating) */
.hero-search {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}

.search-field {
    width: 100%;
    padding: 1.2rem 3.5rem 1.2rem 1.5rem;
    border-radius: 50px;
    border: none;
    font-size: 1rem;
    box-shadow: 0 20px 25px -5px rgba(0,0,0,0.3);
    outline: none;
    transition: var(--transition);
}

.search-field:focus {
    transform: scale(1.02);
}

.search-submit {
    position: absolute;
    right: 8px;
    top: 8px;
    bottom: 8px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 0 1.5rem;
    font-weight: 600;
    transition: var(--transition);
}

.search-submit:hover {
    background-color: var(--primary-hover);
}

/* ==========================================================================
   5. CARDS & GRID SYSTEM (Tools & Downloads)
   ========================================================================== */
.section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2rem;
    position: relative;
    padding-left: 1rem;
    border-left: 4px solid var(--primary-color);
}

/* Tools Grid */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.tool-card {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.tool-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-color);
}

.tool-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    background: rgba(37, 99, 235, 0.1); /* Primary color light opacity */
    padding: 1rem;
    border-radius: 50%;
    width: 80px;
    height: 80px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.tool-card h3 a {
    color: var(--text-main);
    font-weight: 700;
}

.tool-card .btn-sm {
    margin-top: 1rem;
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--bg-body);
    color: var(--text-main);
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.85rem;
}

.tool-card:hover .btn-sm {
    background: var(--primary-color);
    color: white;
}

/* Download Cards (Software Store Style) */
.downloads-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.5rem;
}

.download-mini-card {
    background: var(--bg-card);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid transparent;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.download-mini-card:hover {
    border-color: var(--secondary-color);
    box-shadow: var(--shadow-lg);
}

.download-head {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.download-thumb {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-sm);
    object-fit: cover;
}

.download-info h4 {
    font-size: 1rem;
    margin: 0;
    line-height: 1.3;
}

.version-tag {
    font-size: 0.75rem;
    background: #ecfdf5;
    color: var(--secondary-color);
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 600;
}

.btn-block {
    display: block;
    width: 100%;
    text-align: center;
    background-color: var(--secondary-color);
    color: white;
    padding: 0.6rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    transition: var(--transition);
}

.btn-block:hover {
    background-color: #059669;
    color: white;
}

/* ==========================================================================
   6. SINGLE DOWNLOAD PAGE (Conversion Optimized)
   ========================================================================== */
.download-single-page .entry-header {
    text-align: center;
    margin-bottom: 3rem;
}

.download-single-page .entry-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.download-grid-layout {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 3rem;
}

.download-card-widget {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: 2rem;
    position: sticky;
    top: 100px;
}

.btn-download-large {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--secondary-color), #059669);
    color: white !important;
    padding: 1.2rem;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 1.1rem;
    box-shadow: 0 10px 15px -3px rgba(16, 185, 129, 0.4);
    transition: var(--transition);
}

.btn-download-large:hover {
    transform: scale(1.02);
    box-shadow: 0 20px 25px -5px rgba(16, 185, 129, 0.5);
}

.info-table {
    width: 100%;
    margin-top: 1.5rem;
    border-collapse: collapse;
}

.info-table td {
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.9rem;
}

.info-table td:first-child {
    font-weight: 600;
    color: var(--text-muted);
}

.info-table td:last-child {
    text-align: right;
    font-weight: 700;
    color: var(--text-main);
}

/* ==========================================================================
   7. FOOTER
   ========================================================================== */
.site-footer {
    background-color: #0f172a;
    color: #cbd5e1;
    padding: 4rem 0 2rem;
    margin-top: 5rem;
}

.footer-widgets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-widget h4 {
    color: white;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

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

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

.site-info {
    border-top: 1px solid #1e293b;
    padding-top: 2rem;
    text-align: center;
    font-size: 0.9rem;
}

/* ==========================================================================
   8. RESPONSIVE DESIGN (Mobile First Approach)
   ========================================================================== */
@media (max-width: 992px) {
    :root {
        --header-height: 70px;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .main-navigation ul {
        display: none; /* JS দিয়ে টগল করা হবে */
        position: absolute;
        top: var(--header-height);
        left: 0;
        right: 0;
        background: var(--bg-card);
        flex-direction: column;
        padding: 2rem;
        box-shadow: var(--shadow-lg);
        border-top: 1px solid var(--border-color);
    }
    
    .main-navigation.toggled ul {
        display: flex;
    }
    
    .hero-title { font-size: 2.5rem; }
    
    .download-grid-layout {
        grid-template-columns: 1fr;
    }
    
    .download-card-widget {
        order: -1; /* মোবাইল ডিভাইসে ডাউনলোড বাটন সবার আগে দেখাবে */
        position: static;
    }
}

@media (max-width: 576px) {
    .hero-section { padding: 4rem 0; }
    .hero-title { font-size: 2rem; }
    .tool-card { padding: 1.5rem; }
}


/* ==========================================================================
   9. CONTENT TYPOGRAPHY & ELEMENTS
   (For inside Blog Posts & Pages)
   ========================================================================== */
.entry-content {
    font-size: 1.1rem;
    color: var(--text-main);
}

.entry-content h1, .entry-content h2, .entry-content h3, 
.entry-content h4, .entry-content h5, .entry-content h6 {
    color: #111827; /* Darker than body text */
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
    line-height: 1.3;
}

.entry-content p {
    margin-bottom: 1.5rem;
}

/* Blockquote (উদ্ধৃতি ডিজাইন) */
.entry-content blockquote {
    border-left: 5px solid var(--primary-color);
    background: #f1f5f9;
    margin: 2rem 0;
    padding: 1.5rem 2rem;
    font-style: italic;
    font-size: 1.2rem;
    color: #334155;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

/* Code Blocks (প্রোগ্রামিং কোড দেখানোর জন্য) */
.entry-content pre {
    background: #1e293b;
    color: #e2e8f0;
    padding: 1.5rem;
    border-radius: var(--radius-md);
    overflow-x: auto;
    margin-bottom: 2rem;
    font-family: 'Fira Code', monospace;
    font-size: 0.9rem;
}

/* Drop Cap (আর্টিকেলের প্রথম অক্ষর বড় করা) */
.has-drop-cap:first-letter {
    font-size: 4em;
    font-weight: 800;
    float: left;
    margin-right: 0.5rem;
    line-height: 0.8;
    color: var(--primary-color);
}


/* ==========================================================================
   10. GUTENBERG BLOCKS SUPPORT
   ========================================================================== */
/* Buttons */
.wp-block-button__link {
    background-color: var(--primary-color);
    color: #fff !important;
    padding: 0.8rem 1.5rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    transition: var(--transition);
    border: none;
}
.wp-block-button__link:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
}

/* Tables */
.wp-block-table table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 2rem;
    border-radius: var(--radius-sm);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}
.wp-block-table th {
    background-color: var(--primary-color);
    color: #fff;
    padding: 1rem;
    text-align: left;
}
.wp-block-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    background: #fff;
}
.wp-block-table tr:last-child td { border-bottom: none; }
.wp-block-table tr:nth-child(even) td { background-color: #f8fafc; }

/* Images & Captions */
.wp-block-image img {
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
}
.wp-block-image figcaption {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-align: center;
    margin-top: 0.5rem;
}

/* ==========================================================================
   11. FAQ / ACCORDION COMPONENTS
   ========================================================================== */
details.faq-item {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    margin-bottom: 1rem;
    transition: var(--transition);
    overflow: hidden;
}

details.faq-item[open] {
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

summary.faq-question {
    padding: 1.2rem;
    cursor: pointer;
    font-weight: 600;
    list-style: none; /* ডিফল্ট ত্রিভুজ আইকন লুকানো */
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-main);
}

/* কাস্টম প্লাস আইকন */
summary.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

details[open] summary.faq-question::after {
    transform: rotate(45deg); /* ওপেন হলে ক্রস হয়ে যাবে */
}

.faq-answer {
    padding: 0 1.2rem 1.2rem 1.2rem;
    color: var(--text-muted);
    border-top: 1px solid #f1f5f9;
    margin-top: 0;
    padding-top: 1rem;
}

/* ==========================================================================
   12. FORMS & INPUTS
   ========================================================================== */
input[type="text"], input[type="email"], input[type="url"], input[type="password"], textarea, select {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: #fff;
    color: var(--text-main);
    font-family: var(--font-main);
    transition: var(--transition);
    outline: none;
}

input:focus, textarea:focus, select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1); /* ফোকাস রিং */
}

/* Comment Section Specific */
.comment-list { padding: 0; }
.comment-body {
    background: #fff;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}
.comment-meta {
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* ==========================================================================
   13. COMPONENT: ALERTS & NOTICES
   ========================================================================== */
.alert {
    position: relative;
    padding: 1rem 1.5rem 1rem 3.2rem; /* আইকনের জায়গা */
    border-radius: var(--radius-sm);
    margin-bottom: 1.5rem;
    border-left: 4px solid transparent;
    font-weight: 500;
}

/* Common icon style */
.alert::before {
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.1rem;
}

/* INFO */
.alert-info {
    background-color: #eff6ff;
    color: #1e40af;
    border-left-color: #3b82f6;
}
.alert-info::before {
    content: "\f05a"; /* info-circle */
    color: #3b82f6;
}

/* SUCCESS */
.alert-success {
    background-color: #ecfdf5;
    color: #065f46;
    border-left-color: #10b981;
}
.alert-success::before {
    content: "\f058"; /* check-circle */
    color: #10b981;
}

/* WARNING */
.alert-warning {
    background-color: #fffbeb;
    color: #92400e;
    border-left-color: #f59e0b;
}
.alert-warning::before {
    content: "\f071"; /* exclamation-triangle */
    color: #f59e0b;
}

/* DANGER */
.alert-danger {
    background-color: #fef2f2;
    color: #b91c1c;
    border-left-color: #ef4444;
}
.alert-danger::before {
    content: "\f06a"; /* exclamation-circle */
    color: #ef4444;
}


/* ==========================================================================
   14. PAGINATION
   ========================================================================== */
.pagination .nav-links {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 3rem;
}

.pagination .page-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 50%;
    color: var(--text-main);
    font-weight: 600;
    transition: var(--transition);
}

.pagination .page-numbers:hover,
.pagination .page-numbers.current {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* ==========================================================================
   15. AUTHOR PROFILE BOX
   ========================================================================== */
.author-box {
    background: #fff;
    padding: 2rem;
    margin-top: 3rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    display: flex;
    gap: 1.5rem;
    align-items: center;
    box-shadow: var(--shadow-sm);
}

.author-avatar img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #f1f5f9;
}

.author-info h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

.author-info p {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.author-socials a {
    display: inline-block;
    margin-right: 10px;
    color: var(--text-muted);
    font-size: 1.1rem;
    transition: var(--transition);
}

.author-socials a:hover {
    color: var(--primary-color);
    transform: translateY(-2px);
}

/* মোবাইল রেসপন্সিভ */
@media (max-width: 600px) {
    .author-box {
        flex-direction: column;
        text-align: center;
    }
}

/* ==========================================================================
   16. CATEGORIES & TAGS STYLING
   ========================================================================== */
/* পোস্টের ভেতরের ক্যাটাগরি ব্যাজ */
.cat-links a {
    display: inline-block;
    background: #eff6ff;
    color: var(--primary-color);
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-right: 5px;
    margin-bottom: 5px;
    transition: var(--transition);
}

.cat-links a:hover {
    background: var(--primary-color);
    color: #fff;
}

/* ট্যাগ ক্লাউড (Tags) */
.tags-links a {
    display: inline-block;
    background: #f8fafc;
    color: var(--text-muted);
    padding: 4px 10px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 0.85rem;
    margin-right: 5px;
}

.tags-links a:hover {
    border-color: var(--text-main);
    color: var(--text-main);
}

/* সাইডবার বা ফুটার ক্যাটাগরি লিস্ট */
.widget_categories ul li {
    padding: 0.8rem 0;
    border-bottom: 1px dashed var(--border-color);
    position: relative;
    padding-left: 1.5rem;
}

.widget_categories ul li::before {
    content: '\f07b'; /* FontAwesome Folder Icon */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ==========================================================================
   17. ADVANCED COMMENT THREADS
   ========================================================================== */
.comment-list {
    list-style: none;
    margin-top: 2rem;
}

/* নেস্টেড কমেন্ট (রিপ্লাই) */
.comment-list .children {
    list-style: none;
    padding-left: 3rem; /* বাম পাশে জায়গা ছাড়বে */
    border-left: 2px solid #f1f5f9;
}

.comment-body {
    position: relative;
    background: #fff;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

/* ইউজারের ছবি (Avatar) */
.comment-author .avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    float: left;
    margin-right: 15px;
}

.comment-meta {
    margin-left: 65px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.comment-author cite {
    font-style: normal;
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-main);
    display: block;
}

/* রিপ্লাই বাটন */
.reply {
    text-align: right;
    margin-top: 10px;
}

.comment-reply-link {
    font-size: 0.85rem;
    font-weight: 600;
    background: #f1f5f9;
    color: var(--text-main);
    padding: 5px 12px;
    border-radius: 4px;
}

.comment-reply-link:hover {
    background: var(--primary-color);
    color: #fff;
}

/* মোবাইলে রিপ্লাই সোজা দেখাবে */
@media (max-width: 600px) {
    .comment-list .children {
        padding-left: 1rem;
    }
}

/* ==========================================================================
   18. BREADCRUMBS
   ========================================================================== */
.breadcrumbs {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    padding: 10px 0;
}

.breadcrumbs a {
    color: var(--text-muted);
    font-weight: 500;
}

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

.breadcrumbs .sep {
    margin: 0 8px;
    color: #cbd5e1;
}

/* ==========================================================================
   20. SOCIAL SHARE BUTTONS
   ========================================================================== */
.share-box {
    margin: 2rem 0;
    padding: 1.5rem;
    background: #f8fafc;
    border-radius: var(--radius-sm);
    text-align: center;
}

.share-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: 1rem;
    display: block;
}

.share-links {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.share-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #fff;
    font-size: 1rem;
    transition: transform 0.3s ease;
}

.share-link:hover {
    transform: translateY(-3px);
    color: #fff;
}

/* Brand Colors */
.share-facebook { background: #1877f2; }
.share-twitter { background: #1da1f2; }
.share-linkedin { background: #0077b5; }
.share-whatsapp { background: #25d366; }
.share-telegram { background: #0088cc; }


/* ==========================================================================
   21. RELATED POSTS GRID
   ========================================================================== */
.related-posts {
    margin-top: 4rem;
    border-top: 1px solid var(--border-color);
    padding-top: 3rem;
}

.related-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.related-item {
    background: #fff;
    border-radius: var(--radius-sm);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.related-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.related-thumb {
    height: 160px;
    overflow: hidden;
}

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

.related-item:hover .related-thumb img {
    transform: scale(1.1);
}

.related-content {
    padding: 1rem;
}

.related-content h4 {
    font-size: 1.1rem;
    margin: 0;
    line-height: 1.4;
}

.related-content h4 a {
    color: var(--text-main);
}

.related-content h4 a:hover {
    color: var(--primary-color);
}


/* ==========================================================================
   22. 404 ERROR PAGE
   ========================================================================== */
.error-404 {
    padding: 5rem 0;
    text-align: center;
}

.error-code {
    font-size: 8rem;
    font-weight: 900;
    color: var(--primary-color);
    line-height: 1;
    opacity: 0.1;
    margin-bottom: -40px;
    display: block;
}

.error-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    position: relative;
}

.error-text {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 500px;
    margin: 0 auto 2rem;
}

.btn-home {
    background: var(--text-main);
    color: #fff;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-home:hover {
    background: var(--primary-color);
    color: #fff;
}
/* ==========================================================================
   23. ADVERTISEMENT SLOTS (Monetization)
   ========================================================================== */
.ad-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 2rem auto;
    background: #f1f5f9;
    border: 1px dashed var(--border-color);
    border-radius: var(--radius-sm);
    overflow: hidden;
    position: relative;
}

.ad-label {
    position: absolute;
    top: 5px;
    right: 5px;
    font-size: 0.6rem;
    color: #cbd5e1;
    text-transform: uppercase;
}

/* Common Sizes */
.ad-leaderboard { width: 728px; height: 90px; }
.ad-rectangle { width: 300px; height: 250px; }
.ad-responsive { width: 100%; min-height: 100px; }

@media (max-width: 768px) {
    .ad-leaderboard { width: 100%; height: auto; }
}



/* ==========================================================================
   24. SCROLL TO TOP BUTTON
   ========================================================================== */
#scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 999;
}

#scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#scroll-to-top:hover {
    background: var(--primary-hover);
    transform: translateY(-5px);
}

/* ==========================================================================
   25. DARK MODE (THEME SKIN)
   ========================================================================== */
body.dark-mode {
    --bg-body: #0f172a;        /* Dark Slate */
    --bg-card: #1e293b;        /* Lighter Dark */
    --text-main: #f1f5f9;      /* White text */
    --text-muted: #94a3b8;     /* Gray text */
    --border-color: #334155;
    --primary-color: #3b82f6;  /* Brighter Blue for Dark Mode */
}

/* ডার্ক মোডে কিছু স্পেশাল এলিমেন্ট ফিক্স */
body.dark-mode .site-header {
    background-color: rgba(30, 41, 59, 0.9);
}

body.dark-mode .hero-section {
    background: linear-gradient(135deg, #020617 0%, #0f172a 100%);
}

body.dark-mode .tool-card i {
    background: rgba(59, 130, 246, 0.2);
}

body.dark-mode input, 
body.dark-mode textarea, 
body.dark-mode select {
    background: #1e293b;
    border-color: #334155;
    color: #fff;
}

body.dark-mode .entry-content blockquote {
    background: #1e293b;
    color: #cbd5e1;
}

body.dark-mode .author-box,
body.dark-mode .widget,
body.dark-mode .comment-body {
    background: var(--bg-card);
}


/* ==========================================================================
   26. PRELOADER ANIMATION
   ========================================================================== */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-body);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(37, 99, 235, 0.2);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* JS দিয়ে ক্লাস যোগ করলে লোডার সরে যাবে */
body.loaded #preloader {
    opacity: 0;
    visibility: hidden;
}


/* ==========================================================================
   27. ADVANCED MOBILE MENU (SLIDE OUT)
   ========================================================================== */
@media (max-width: 992px) {
    .main-navigation ul {
        position: fixed;
        top: 0;
        left: -300px; /* স্ক্রিনের বাইরে থাকবে */
        width: 280px;
        height: 100vh;
        background: var(--bg-card);
        flex-direction: column;
        padding: 4rem 2rem;
        box-shadow: 5px 0 15px rgba(0,0,0,0.1);
        transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1001;
        display: flex !important; /* আগের display:none ওভাররাইড */
        overflow-y: auto;
    }

    /* মেনু ওপেন হলে */
    .main-navigation.toggled ul {
        left: 0;
    }

    /* ব্যাকগ্রাউন্ড ওভারলে (কালো ছায়া) */
    .menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.5);
        z-index: 1000;
        opacity: 0;
        visibility: hidden;
        transition: 0.3s;
        backdrop-filter: blur(3px);
    }

    .main-navigation.toggled + .menu-overlay {
        opacity: 1;
        visibility: visible;
    }
    
    /* ক্লোজ বাটন */
    .menu-close {
        position: absolute;
        top: 20px;
        right: 20px;
        font-size: 1.5rem;
        cursor: pointer;
        color: var(--text-muted);
    }
}



/* ==========================================================================
   28. PRINT & ACCESSIBILITY
   ========================================================================== */
/* ফোকাস রিং (কিবোর্ড নেভিগেশনের জন্য) */
a:focus, button:focus, input:focus {
    outline: 2px dashed var(--primary-color);
    outline-offset: 4px;
}

/* প্রিন্ট করার সময় অপ্রয়োজনীয় জিনিস লুকানো */
@media print {
    .site-header, 
    .site-footer, 
    .hero-section, 
    .widget-area, 
    .related-posts,
    .share-box,
    .btn-download { 
        display: none !important; 
    }

    body { 
        background: #fff; 
        color: #000; 
        font-size: 12pt;
    }

    .container { width: 100%; max-width: none; margin: 0; padding: 0; }
    
    a::after {
        content: " (" attr(href) ")";
        font-size: 0.8rem;
    }
}


/* ==========================================================================
   29. CUSTOM SCROLLBAR (Premium Look)
   ========================================================================== */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
    border: 2px solid #f1f5f9;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

/* Firefox এর জন্য */
html {
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) #f1f5f9;
}


/* ==========================================================================
   30. TABLE OF CONTENTS (TOC)
   ========================================================================== */
.toc-container {
    background: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 1.5rem;
    margin-bottom: 2rem;
    display: inline-block;
    min-width: 250px;
}

.toc-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
}

.toc-list {
    list-style: none;
    margin: 0;
    padding-left: 10px;
    border-left: 2px solid var(--border-color);
}

.toc-list li {
    margin-bottom: 5px;
}

.toc-list a {
    font-size: 0.95rem;
    color: var(--text-muted);
    text-decoration: none;
}

.toc-list a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}


/* ==========================================================================
   31. COOKIE CONSENT BANNER
   ========================================================================== */
#cookie-notice {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background: #fff;
    padding: 1.5rem;
    border-radius: var(--radius-md);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    transform: translateY(150%);
    transition: transform 0.5s ease;
    border: 1px solid var(--border-color);
    max-width: 1200px;
    margin: 0 auto;
}

#cookie-notice.active {
    transform: translateY(0);
}

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

.cookie-buttons {
    display: flex;
    gap: 10px;
}

.btn-accept {
    background: var(--primary-color);
    color: #fff;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
}


/* ==========================================================================
   32. CSS TOOLTIP
   ========================================================================== */
[data-tooltip] {
    position: relative;
    cursor: help;
}

[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 120%;
    left: 50%;
    transform: translateX(-50%);
    background: #1e293b;
    color: #fff;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: 0.2s;
    pointer-events: none;
    z-index: 10;
}

[data-tooltip]::before {
    content: '';
    position: absolute;
    bottom: 110%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: #1e293b;
    opacity: 0;
    visibility: hidden;
    transition: 0.2s;
}

[data-tooltip]:hover::after,
[data-tooltip]:hover::before {
    opacity: 1;
    visibility: visible;
}



/* ==========================================================================
   33. SEARCH HIGHLIGHT
   ========================================================================== */
mark {
    background-color: #fef08a; /* Yellow-200 */
    color: #854d0e; /* Yellow-900 */
    padding: 2px 4px;
    border-radius: 2px;
}


/* ==========================================================================
   34. STICKY SIDEBAR (For Better Ad Viewability)
   ========================================================================== */
@media (min-width: 992px) {
    .widget-area {
        position: sticky;
        top: 100px; /* হেডার থেকে ১০০ পিক্সেল নিচে আটকে থাকবে */
        height: fit-content;
    }
}

/* ==========================================================================
   35. RESPONSIVE VIDEO EMBEDS
   ========================================================================== */
.entry-content iframe,
.entry-content object,
.entry-content embed,
.video-container iframe {
    max-width: 100%;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-md);
}

/* ভিডিও রেশিও ঠিক রাখার জন্য র‍্যাপার */
.video-responsive {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Ratio */
    height: 0;
    overflow: hidden;
    margin-bottom: 1.5rem;
    border-radius: var(--radius-sm);
}

.video-responsive iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}


/* ==========================================================================
   36. CUSTOM TEXT SELECTION COLOR
   ========================================================================== */
::selection {
    background: var(--primary-color);
    color: #fff;
    text-shadow: none;
}

::-moz-selection {
    background: var(--primary-color);
    color: #fff;
    text-shadow: none;
}

/* ==========================================================================
   37. PASSWORD PROTECTED POST FORM
   ========================================================================== */
.post-password-form {
    background: #f8fafc;
    padding: 2rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    text-align: center;
    max-width: 500px;
    margin: 2rem auto;
}

.post-password-form label {
    display: block;
    margin-bottom: 1rem;
    font-weight: 600;
    color: var(--text-muted);
}

.post-password-form input[type="password"] {
    margin-bottom: 1rem;
    text-align: center;
    letter-spacing: 2px;
}

.post-password-form input[type="submit"] {
    background: var(--text-main);
    color: #fff;
    width: 100%;
    transition: var(--transition);
}

.post-password-form input[type="submit"]:hover {
    background: var(--primary-color);
}


/* ==========================================================================
   38. MODERN IMAGE GALLERY
   ========================================================================== */
.wp-block-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-bottom: 2rem;
}

.wp-block-gallery .blocks-gallery-item {
    margin: 0;
    overflow: hidden;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
    cursor: pointer;
}

.wp-block-gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.wp-block-gallery .blocks-gallery-item:hover img {
    transform: scale(1.1); /* ইমেজে মাউস নিলে জুম হবে */
}

/* ==========================================================================
   39. PULSE ANIMATION (High Conversion)
   ========================================================================== */
@keyframes pulse-green {
    0% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(16, 185, 129, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

/* এই ক্লাসটি আমরা ডাউনলোড বাটনে ব্যবহার করবো */
.btn-pulse {
    animation: pulse-green 2s infinite;
}


/* ==========================================================================
   40. TOP NOTIFICATION BAR
   ========================================================================== */
.top-bar {
    background: #111827; /* Dark background */
    color: #fff;
    padding: 8px 0;
    font-size: 0.85rem;
    text-align: center;
    position: relative;
    z-index: 1001;
}

.top-bar a {
    color: #fff;
    text-decoration: underline;
    font-weight: 600;
}

.top-bar-close {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    opacity: 0.7;
}

.top-bar-close:hover { opacity: 1; }


/* ==========================================================================
   41. AJAX LOAD MORE BUTTON
   ========================================================================== */
.btn-load-more {
    display: block;
    margin: 3rem auto;
    padding: 12px 40px;
    background: #fff;
    border: 1px solid var(--border-color);
    color: var(--text-main);
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
    text-align: center;
    max-width: 250px;
    cursor: pointer;
}

.btn-load-more:hover {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* লোডিং আইকন (যখন লোড হবে) */
.btn-load-more.loading::after {
    content: '';
    display: inline-block;
    width: 12px;
    height: 12px;
    margin-left: 10px;
    border: 2px solid #fff;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

