/*
Theme Name: Annapurna Bhandar WB - Bootstrap Clean
Theme URI: https://annapurnabhandarwb.com
Author: Annapurna Bhandar Team
Author URI: https://annapurnabhandarwb.com
Description: A clean, mobile-first Bootstrap theme optimized for West Bengal government schemes, Google Discover, and dual-language (English + Bengali) content.
Version: 1.0.0
License: GPL v2 or later
Text Domain: annapurna-wb
Tags: blog, news, government-schemes, bootstrap, mobile-friendly, custom-background, custom-logo, featured-images, footer-widgets, left-sidebar, right-sidebar, translation-ready
*/

/* ===== Base Styles ===== */
:root {
    --primary-color: #1a5f4b;
    --secondary-color: #ff8c42;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
    --light-bg: #f8f9fa;
    --dark-text: #212529;
    --white: #ffffff;
}

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

body {
    font-family: 'Segoe UI', system-ui, -apple-system, 'Helvetica Neue', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--dark-text);
    background-color: var(--light-bg);
    overflow-x: hidden;
}

/* Bengali Font Support */
body.bengali-mode,
[lang="bn"] {
    font-family: 'Hind Siliguri', 'Noto Sans Bengali', 'Segoe UI', system-ui, sans-serif;
}

/* ===== Typography ===== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

h1 {
    font-size: 1.8rem;
}
h2 {
    font-size: 1.6rem;
    border-left: 4px solid var(--secondary-color);
    padding-left: 15px;
    margin-top: 2rem;
}
h3 {
    font-size: 1.4rem;
}
h4 {
    font-size: 1.2rem;
}

/* ===== Header Navigation ===== */
.navbar {
    background: linear-gradient(135deg, var(--primary-color) 0%, #0d3b2f 100%);
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    padding: 0.8rem 1rem;
}

.navbar-brand {
    font-weight: 800;
    font-size: 1.4rem;
    color: var(--white) !important;
}

.navbar-brand small {
    font-size: 0.7rem;
    display: block;
    opacity: 0.8;
}

.nav-link {
    color: rgba(255,255,255,0.9) !important;
    font-weight: 500;
    transition: all 0.3s ease;
}

.nav-link:hover {
    color: var(--secondary-color) !important;
    transform: translateY(-2px);
}

/* Language Toggle */
.lang-toggle {
    background: rgba(255,255,255,0.2);
    border-radius: 30px;
    padding: 5px 12px;
    margin-left: 15px;
}

.lang-toggle a {
    color: var(--white);
    text-decoration: none;
    font-size: 0.85rem;
    padding: 0 5px;
}

.lang-toggle a.active {
    background: var(--secondary-color);
    padding: 3px 10px;
    border-radius: 20px;
}

/* ===== Hero Section ===== */
.hero-section {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6d9 100%);
    padding: 3rem 1rem;
    border-radius: 0 0 20px 20px;
    margin-bottom: 2rem;
    text-align: center;
}

.hero-section h1 {
    color: var(--primary-color);
    font-size: 2rem;
}

.hero-section .bengali-subtitle {
    font-size: 1.2rem;
    color: #2c5f2d;
    margin-top: 1rem;
}

/* ===== Scheme Cards ===== */
.scheme-card {
    background: var(--white);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    border: 1px solid #e0e0e0;
}

.scheme-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.scheme-card h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.scheme-card .badge-update {
    background: var(--warning-color);
    color: #000;
    font-size: 0.7rem;
    padding: 3px 10px;
    border-radius: 20px;
    display: inline-block;
    margin-bottom: 10px;
}

.scheme-card .btn-scheme {
    background: var(--primary-color);
    color: var(--white);
    padding: 8px 20px;
    border-radius: 30px;
    text-decoration: none;
    display: inline-block;
    margin-top: 1rem;
    transition: all 0.3s;
}

.scheme-card .btn-scheme:hover {
    background: var(--secondary-color);
    transform: scale(1.05);
}

/* ===== Content Area ===== */
.content-area {
    background: var(--white);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    margin-bottom: 2rem;
}

/* Update Box */
.update-box {
    background: #fff3cd;
    border-left: 4px solid var(--warning-color);
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin: 1.5rem 0;
}

.update-box h4 {
    margin: 0 0 0.5rem 0;
    color: #856404;
}

/* ===== Tables ===== */
.wp-table {
    width: 100%;
    background: var(--white);
    border-collapse: collapse;
    margin: 1.5rem 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.wp-table th {
    background: var(--primary-color);
    color: var(--white);
    padding: 12px;
    text-align: left;
}

.wp-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #eee;
}

.wp-table tr:hover {
    background: #f5f5f5;
}

/* ===== FAQ Section ===== */
.faq-item {
    background: #f9f9f9;
    margin-bottom: 1rem;
    border-radius: 8px;
    overflow: hidden;
}

.faq-question {
    background: var(--light-bg);
    padding: 1rem 1.5rem;
    font-weight: 600;
    cursor: pointer;
    margin: 0;
    transition: all 0.3s;
    border-left: 3px solid transparent;
}

.faq-question:hover {
    background: #e9ecef;
    border-left-color: var(--secondary-color);
}

.faq-answer {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.faq-item.open .faq-answer {
    padding: 1rem 1.5rem;
    max-height: 500px;
}

/* ===== Disclaimer Box ===== */
.disclaimer-box {
    background: #f8d7da;
    border-left: 4px solid var(--danger-color);
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin: 2rem 0;
    font-size: 0.9rem;
}

.disclaimer-box strong {
    color: #721c24;
}

/* ===== Sidebar ===== */
.sidebar-widget {
    background: var(--white);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.sidebar-widget h3 {
    font-size: 1.2rem;
    border-bottom: 2px solid var(--secondary-color);
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

.sidebar-widget ul {
    list-style: none;
    padding: 0;
}

.sidebar-widget li {
    margin-bottom: 0.75rem;
}

.sidebar-widget a {
    color: var(--dark-text);
    text-decoration: none;
    transition: all 0.3s;
}

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

/* ===== Footer ===== */
.footer {
    background: #1a1a2e;
    color: #ccc;
    padding: 3rem 0 1rem 0;
    margin-top: 3rem;
}

.footer a {
    color: var(--secondary-color);
    text-decoration: none;
}

.footer a:hover {
    color: var(--white);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    margin-top: 2rem;
    border-top: 1px solid #333;
    font-size: 0.8rem;
}

/* ===== Breadcrumbs ===== */
.breadcrumbs {
    background: #e9ecef;
    padding: 0.8rem 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-size: 0.85rem;
}

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

/* ===== Mobile Responsive ===== */
@media (max-width: 768px) {
    h1 { font-size: 1.5rem; }
    h2 { font-size: 1.3rem; }
    .hero-section { padding: 2rem 1rem; }
    .content-area { padding: 1.5rem; }
    .scheme-card { padding: 1rem; }
    
    .wp-table {
        display: block;
        overflow-x: auto;
    }
    
    .navbar-brand {
        font-size: 1.1rem;
    }
    
    .lang-toggle {
        margin-left: 0;
        margin-top: 10px;
    }
}

/* ===== Print Styles ===== */
@media print {
    .navbar, .footer, .sidebar, .breadcrumbs, .disclaimer-box {
        display: none;
    }
    .content-area {
        padding: 0;
        box-shadow: none;
    }
}

/* ===== Loading Animation ===== */
.loader {
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}