/*
Theme Name: Bharat Notice
Theme URI: https://bharatnotice.com
Author: Bharat Notice Team
Author URI: https://bharatnotice.com
Description: Custom Sarkari Job Portal theme replicating the Bharat Notice design. Features a gold/maroon color scheme, category color grid, marquee ticker, category sections, SEO content area, and a responsive layout with mobile hamburger menu.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: bharatnotice
Tags: job-portal, sarkari, two-columns, right-sidebar, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* ==========================================================================
   1. CSS Reset & Base
   ========================================================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --maroon: #612625;
    --maroon-dark: #4a1c1b;
    --maroon-light: #7a3332;
    --gold: #edbd79;
    --gold-light: #f5d4a0;
    --gold-dark: #d9a45e;
    --orange: #d3681f;
    --orange-light: #e5812f;
    --bg: #f0f0f0;
    --white: #ffffff;
    --text: #333333;
    --text-light: #666666;
    --border: #e0e0e0;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 4px 16px rgba(0, 0, 0, 0.15);
    --radius: 6px;
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.6;
    font-size: 15px;
    overflow-x: hidden;
}

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

a:hover {
    color: var(--orange);
    text-decoration: underline;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul,
ol {
    list-style: none;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* ==========================================================================
   2. Site Header
   ========================================================================== */
.site-header {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 50%, var(--gold) 100%);
    padding: 20px 0;
    border-bottom: 4px solid var(--maroon);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
    text-align: center;
}

.site-logo {
    flex: 0 0 auto;
}

.site-logo a {
    display: block;
}

.site-logo img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--maroon);
    box-shadow: 0 2px 10px rgba(97, 38, 37, 0.4);
    background: var(--white);
    padding: 4px;
    transition: var(--transition);
}

.site-logo img:hover {
    transform: scale(1.05);
    border-color: var(--orange);
}

.site-title-wrap {
    flex: 1 1 auto;
}

.site-title {
    font-size: 2.8rem;
    color: var(--maroon);
    font-weight: 800;
    letter-spacing: 1px;
    margin-bottom: 5px;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.6);
}

.site-title a {
    color: var(--maroon);
}

.site-title a:hover {
    text-decoration: none;
    color: var(--maroon-dark);
}

.site-tagline {
    font-size: 1.15rem;
    color: var(--maroon-dark);
    font-weight: 600;
    font-style: italic;
    text-shadow: 1px 1px 1px rgba(255, 255, 255, 0.5);
}

.site-tagline .bi {
    color: var(--orange);
    margin-right: 5px;
}

/* ==========================================================================
   3. Navigation
   ========================================================================== */
.main-navigation {
    background: linear-gradient(180deg, var(--maroon) 0%, var(--maroon-dark) 100%);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    position: sticky;
    top: 0;
    z-index: 999;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.nav-menu {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    margin: 0 auto;
}

.nav-menu li {
    position: relative;
}

.nav-menu > li > a {
    display: block;
    color: var(--white);
    font-size: 0.95rem;
    font-weight: 600;
    padding: 15px 18px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.nav-menu > li:first-child > a {
    border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-menu > li > a:hover,
.nav-menu > li.current-menu-item > a {
    background: var(--orange);
    color: var(--white);
    text-decoration: none;
}

.nav-menu .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--maroon-dark);
    min-width: 220px;
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    z-index: 1000;
}

.nav-menu li:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-menu .sub-menu a {
    display: block;
    color: var(--white);
    padding: 12px 18px;
    font-size: 0.9rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-menu .sub-menu a:hover {
    background: var(--orange);
    color: var(--white);
    text-decoration: none;
}

/* Hamburger Menu Button */
.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 12px 15px;
    transition: var(--transition);
}

.menu-toggle:hover {
    color: var(--gold);
}

/* ==========================================================================
   4. Homepage Search Bar
   ========================================================================== */
.search-section {
    background: var(--white);
    padding: 25px 0;
    border-bottom: 3px solid var(--maroon);
}

.search-box {
    display: flex;
    max-width: 700px;
    margin: 0 auto;
    border: 3px solid var(--maroon);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.search-box input[type="search"] {
    flex: 1;
    border: none;
    padding: 14px 20px;
    font-size: 1rem;
    outline: none;
    background: var(--white);
    color: var(--text);
}

.search-box input[type="search"]::placeholder {
    color: var(--text-light);
}

.search-box button,
.search-box input[type="submit"] {
    background: linear-gradient(180deg, var(--maroon) 0%, var(--maroon-dark) 100%);
    color: var(--white);
    border: none;
    padding: 14px 28px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.search-box button:hover,
.search-box input[type="submit"]:hover {
    background: linear-gradient(180deg, var(--orange) 0%, #b8561a 100%);
}

.search-box .bi {
    margin-right: 5px;
}

/* ==========================================================================
   5. Info Section - Color Grid, Marquee, Social
   ========================================================================== */
.info-section {
    background: var(--bg);
    padding: 20px 0;
}

.color-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.color-grid-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 18px 10px;
    border-radius: 8px;
    color: var(--white);
    font-weight: 700;
    font-size: 1rem;
    transition: var(--transition);
    box-shadow: var(--shadow);
    text-decoration: none;
    min-height: 90px;
}

.color-grid-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
    text-decoration: none;
    color: var(--white);
}

.color-grid-item .bi {
    font-size: 1.6rem;
    margin-bottom: 6px;
}

.color-grid-item span {
    font-size: 0.9rem;
}

.cg-maroon   { background: linear-gradient(135deg, var(--maroon), var(--maroon-light)); }
.cg-orange   { background: linear-gradient(135deg, var(--orange), var(--orange-light)); }
.cg-green    { background: linear-gradient(135deg, #2e7d32, #4caf50); }
.cg-blue     { background: linear-gradient(135deg, #1565c0, #42a5f5); }
.cg-purple   { background: linear-gradient(135deg, #6a1b9a, #9c27b0); }
.cg-teal     { background: linear-gradient(135deg, #00695c, #26a69a); }
.cg-red      { background: linear-gradient(135deg, #c62828, #ef5350); }
.cg-indigo   { background: linear-gradient(135deg, #283593, #5c6bc0); }

/* Marquee Ticker */
.marquee-section {
    background: var(--white);
    border: 2px solid var(--maroon);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    box-shadow: var(--shadow);
}

.marquee-label {
    background: linear-gradient(180deg, var(--maroon) 0%, var(--maroon-dark) 100%);
    color: var(--white);
    padding: 10px 18px;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.marquee-label .bi {
    font-size: 1.1rem;
    color: var(--gold);
}

.marquee-content {
    flex: 1;
    overflow: hidden;
    padding: 0 10px;
}

.marquee-track {
    display: inline-flex;
    white-space: nowrap;
    animation: marquee-scroll 40s linear infinite;
}

.marquee-track:hover {
    animation-play-state: paused;
}

.marquee-track a {
    color: var(--text);
    font-size: 0.9rem;
    font-weight: 600;
    padding: 10px 25px;
    display: inline-flex;
    align-items: center;
    border-right: 1px solid var(--border);
}

.marquee-track a:hover {
    color: var(--maroon);
    text-decoration: none;
}

.marquee-track a::before {
    content: "\F28A";
    font-family: "bootstrap-icons";
    color: var(--orange);
    margin-right: 6px;
    font-size: 0.8rem;
}

@keyframes marquee-scroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Social Buttons */
.social-row {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.social-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    border-radius: 20px;
    color: var(--white);
    font-size: 0.85rem;
    font-weight: 600;
    transition: var(--transition);
    text-decoration: none;
}

.social-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
    text-decoration: none;
    color: var(--white);
}

.social-btn .bi {
    font-size: 1.1rem;
}

.social-telegram { background: #0088cc; }
.social-whatsapp { background: #25d366; }
.social-youtube  { background: #ff0000; }
.social-facebook { background: #1877f2; }
.social-twitter  { background: #1da1f2; }
.social-instagram{ background: linear-gradient(135deg, #833ab4, #fd1d1d, #fcb045); }

/* ==========================================================================
   6. Category Sections
   ========================================================================== */
.main-content {
    padding: 25px 0;
}

.category-sections {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.cat-section {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.cat-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    color: var(--white);
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cat-section-header .bi {
    margin-right: 8px;
    font-size: 1.2rem;
}

.cat-section-header a {
    color: var(--white);
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 14px;
    border-radius: 15px;
    transition: var(--transition);
}

.cat-section-header a:hover {
    background: rgba(0, 0, 0, 0.25);
}

.cat-section-body {
    padding: 10px 0;
}

.cat-post-list {
    list-style: none;
}

.cat-post-list li {
    border-bottom: 1px dashed var(--border);
}

.cat-post-list li:last-child {
    border-bottom: none;
}

.cat-post-list li a {
    display: flex;
    align-items: center;
    padding: 10px 20px;
    color: var(--text);
    font-size: 0.92rem;
    font-weight: 500;
    transition: var(--transition);
}

.cat-post-list li a:hover {
    background: var(--bg);
    color: var(--maroon);
    text-decoration: none;
    padding-left: 26px;
}

.cat-post-list li a::before {
    content: "\F28B";
    font-family: "bootstrap-icons";
    color: var(--orange);
    margin-right: 10px;
    font-size: 0.8rem;
    flex-shrink: 0;
}

.cat-post-list .post-date {
    margin-left: auto;
    font-size: 0.78rem;
    color: var(--text-light);
    white-space: nowrap;
    padding-left: 10px;
}

.cat-section-header.bg-maroon  { background: linear-gradient(135deg, var(--maroon), var(--maroon-light)); }
.cat-section-header.bg-orange  { background: linear-gradient(135deg, var(--orange), var(--orange-light)); }
.cat-section-header.bg-green   { background: linear-gradient(135deg, #2e7d32, #4caf50); }
.cat-section-header.bg-blue    { background: linear-gradient(135deg, #1565c0, #42a5f5); }
.cat-section-header.bg-purple  { background: linear-gradient(135deg, #6a1b9a, #9c27b0); }
.cat-section-header.bg-teal    { background: linear-gradient(135deg, #00695c, #26a69a); }
.cat-section-header.bg-red     { background: linear-gradient(135deg, #c62828, #ef5350); }
.cat-section-header.bg-indigo  { background: linear-gradient(135deg, #283593, #5c6bc0); }

/* ==========================================================================
   7. SEO Content Section
   ========================================================================== */
.seo-content {
    background: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    margin-top: 25px;
}

.seo-content h2 {
    color: var(--maroon);
    font-size: 1.5rem;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 3px solid var(--gold);
    display: inline-block;
}

.seo-content h3 {
    color: var(--maroon);
    font-size: 1.2rem;
    margin: 20px 0 10px;
}

.seo-content p {
    color: var(--text);
    margin-bottom: 12px;
    line-height: 1.8;
}

.seo-content ul {
    list-style: none;
    padding-left: 5px;
    margin-bottom: 15px;
}

.seo-content ul li {
    padding: 5px 0 5px 25px;
    position: relative;
}

.seo-content ul li::before {
    content: "\F26E";
    font-family: "bootstrap-icons";
    color: var(--orange);
    position: absolute;
    left: 0;
    top: 5px;
}

/* ==========================================================================
   8. Layout - Content + Sidebar
   ========================================================================== */
.content-wrapper {
    display: flex;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 25px 15px;
}

.content-area {
    flex: 1;
    min-width: 0;
}

.sidebar-area {
    flex: 0 0 300px;
}

/* ==========================================================================
   9. Single Post
   ========================================================================== */
.breadcrumb {
    background: var(--white);
    padding: 12px 20px;
    border-radius: 6px;
    box-shadow: var(--shadow);
    margin-bottom: 20px;
    font-size: 0.88rem;
}

.breadcrumb a {
    color: var(--maroon);
    font-weight: 600;
}

.breadcrumb .bi {
    font-size: 0.75rem;
    margin: 0 6px;
    color: var(--text-light);
}

.breadcrumb .current {
    color: var(--text-light);
}

.post-card {
    background: var(--white);
    border-radius: 8px;
    box-shadow: var(--shadow);
    overflow: hidden;
    margin-bottom: 25px;
}

.post-card-header {
    padding: 25px 30px 15px;
    border-bottom: 2px solid var(--gold);
}

.post-card-header h1 {
    color: var(--maroon);
    font-size: 1.7rem;
    margin-bottom: 10px;
    line-height: 1.4;
}

.post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    font-size: 0.82rem;
    color: var(--text-light);
}

.post-meta span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.post-meta .bi {
    color: var(--orange);
}

.post-card-body {
    padding: 25px 30px;
}

.post-card-body p {
    margin-bottom: 15px;
    line-height: 1.8;
}

.post-card-body h2,
.post-card-body h3,
.post-card-body h4 {
    color: var(--maroon);
    margin: 20px 0 10px;
}

.post-card-body ul,
.post-card-body ol {
    margin: 0 0 15px 20px;
}

.post-card-body ul li,
.post-card-body ol li {
    list-style: disc;
    margin-bottom: 5px;
}

.post-card-body ol li {
    list-style: decimal;
}

.post-card-body img {
    border-radius: 6px;
    margin: 15px 0;
}

.post-card-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0;
}

.post-card-body table th,
.post-card-body table td {
    border: 1px solid var(--border);
    padding: 10px 12px;
    text-align: left;
}

.post-card-body table th {
    background: var(--maroon);
    color: var(--white);
}

.post-card-body table tr:nth-child(even) td {
    background: var(--bg);
}

.post-card-body a {
    color: var(--orange);
    font-weight: 600;
}

.post-thumbnail-wrap {
    text-align: center;
    margin-bottom: 20px;
}

.post-thumbnail-wrap img {
    max-height: 400px;
    width: auto;
    margin: 0 auto;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

/* Share Buttons */
.share-section {
    background: var(--bg);
    padding: 20px 30px;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.share-label {
    font-weight: 700;
    color: var(--maroon);
    margin-right: 5px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    color: var(--white);
    font-size: 1.1rem;
    transition: var(--transition);
}

.share-btn:hover {
    transform: translateY(-3px);
    color: var(--white);
    text-decoration: none;
    box-shadow: var(--shadow-hover);
}

.share-whatsapp { background: #25d366; }
.share-telegram { background: #0088cc; }
.share-facebook { background: #1877f2; }
.share-twitter  { background: #1da1f2; }
.share-linkedin { background: #0a66c2; }
.share-copy     { background: var(--maroon); cursor: pointer; border: none; }

/* Related Posts */
.related-posts {
    background: var(--white);
    border-radius: 8px;
    box-shadow: var(--shadow);
    padding: 25px 30px;
}

.related-posts h2 {
    color: var(--maroon);
    font-size: 1.3rem;
    margin-bottom: 18px;
    padding-bottom: 10px;
    border-bottom: 3px solid var(--gold);
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.related-item {
    background: var(--bg);
    border-radius: 6px;
    overflow: hidden;
    transition: var(--transition);
    border-left: 3px solid var(--orange);
}

.related-item:hover {
    background: var(--gold-light);
    transform: translateY(-2px);
}

.related-item a {
    display: block;
    padding: 12px 15px;
    color: var(--text);
    font-size: 0.88rem;
    font-weight: 600;
    line-height: 1.5;
}

.related-item a:hover {
    color: var(--maroon);
    text-decoration: none;
}

.related-item .post-date {
    display: block;
    font-size: 0.75rem;
    color: var(--text-light);
    font-weight: 400;
    margin-top: 5px;
}

/* ==========================================================================
   10. Archive / Category / Search Pages
   ========================================================================== */
.page-header-box {
    background: linear-gradient(135deg, var(--maroon), var(--maroon-light));
    color: var(--white);
    padding: 20px 30px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    margin-bottom: 20px;
}

.page-header-box h1 {
    font-size: 1.6rem;
    color: var(--white);
}

.page-header-box .bi {
    margin-right: 8px;
    color: var(--gold);
}

.page-header-box p {
    margin-top: 5px;
    font-size: 0.9rem;
    opacity: 0.9;
}

.archive-post-list {
    background: var(--white);
    border-radius: 8px;
    box-shadow: var(--shadow);
    overflow: hidden;
    margin-bottom: 20px;
}

.archive-post-list .cat-post-list li a {
    padding: 14px 20px;
}

/* Pagination */
.pagination-wrapper {
    display: flex;
    justify-content: center;
    margin: 25px 0;
}

.pagination {
    display: flex;
    gap: 6px;
    list-style: none;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: 6px;
    background: var(--white);
    color: var(--maroon);
    font-weight: 600;
    font-size: 0.9rem;
    border: 1px solid var(--border);
    transition: var(--transition);
}

.pagination a:hover,
.pagination .current {
    background: var(--maroon);
    color: var(--white);
    border-color: var(--maroon);
    text-decoration: none;
}

.pagination .dots {
    border: none;
    background: transparent;
}

/* ==========================================================================
   11. Sidebar
   ========================================================================== */
.sidebar-area .sidebar-inner {
    min-height: 200px;
}

.sidebar-area .widget {
    background: var(--white);
    border-radius: 8px;
    box-shadow: var(--shadow);
    padding: 20px;
    margin-bottom: 20px;
}

.sidebar-area .widget-title {
    color: var(--white);
    background: linear-gradient(135deg, var(--maroon), var(--maroon-light));
    padding: 10px 15px;
    margin: -20px -20px 15px;
    border-radius: 8px 8px 0 0;
    font-size: 1rem;
    font-weight: 700;
}

.sidebar-area ul {
    list-style: none;
}

.sidebar-area ul li {
    border-bottom: 1px dashed var(--border);
}

.sidebar-area ul li a {
    display: block;
    padding: 8px 5px;
    color: var(--text);
    font-size: 0.88rem;
}

.sidebar-area ul li a:hover {
    color: var(--maroon);
    text-decoration: none;
    padding-left: 10px;
}

/* ==========================================================================
   12. Footer
   ========================================================================== */
.site-footer {
    background: linear-gradient(180deg, var(--maroon-dark) 0%, #3a1514 100%);
    color: #e0c0b0;
    padding: 40px 0 0;
    margin-top: 30px;
    border-top: 4px solid var(--gold);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    padding-bottom: 30px;
}

.footer-col h3 {
    color: var(--gold);
    font-size: 1.2rem;
    margin-bottom: 18px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(237, 189, 121, 0.3);
    display: inline-block;
}

.footer-col h3 .bi {
    margin-right: 8px;
}

.footer-col p {
    font-size: 0.88rem;
    line-height: 1.8;
    margin-bottom: 10px;
    color: #d4b8a8;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 8px;
}

.footer-col ul li a {
    color: #e0c0b0;
    font-size: 0.88rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
}

.footer-col ul li a:hover {
    color: var(--gold);
    text-decoration: none;
    padding-left: 5px;
}

.footer-col ul li a::before {
    content: "\F28B";
    font-family: "bootstrap-icons";
    font-size: 0.7rem;
    color: var(--orange);
}

.footer-logo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid var(--gold);
    margin-bottom: 15px;
    padding: 3px;
    background: var(--white);
}

.footer-social {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: var(--gold);
    font-size: 1rem;
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--orange);
    color: var(--white);
    transform: translateY(-2px);
}

.footer-bottom {
    background: rgba(0, 0, 0, 0.3);
    padding: 18px 0;
    text-align: center;
    font-size: 0.85rem;
    color: #c0a090;
}

.footer-bottom a {
    color: var(--gold);
}

.footer-bottom p {
    margin: 3px 0;
}

/* ==========================================================================
   13. 404 Page
   ========================================================================== */
.error-404 {
    text-align: center;
    padding: 60px 20px;
    background: var(--white);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.error-404 .error-code {
    font-size: 6rem;
    font-weight: 800;
    color: var(--maroon);
    line-height: 1;
    margin-bottom: 10px;
    text-shadow: 3px 3px 0 var(--gold);
}

.error-404 .error-title {
    font-size: 1.5rem;
    color: var(--maroon);
    margin-bottom: 15px;
}

.error-404 .error-text {
    font-size: 1rem;
    color: var(--text-light);
    margin-bottom: 25px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.error-404 .btn-home {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(180deg, var(--maroon), var(--maroon-dark));
    color: var(--white);
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}

.error-404 .btn-home:hover {
    background: var(--orange);
    color: var(--white);
    text-decoration: none;
    transform: translateY(-2px);
}

.error-404-search {
    max-width: 500px;
    margin: 0 auto 25px;
}

/* ==========================================================================
   14. Utility & Misc
   ========================================================================== */
.text-center { text-align: center; }
.mt-20 { margin-top: 20px; }
.mb-20 { margin-bottom: 20px; }

.alert-info {
    background: #fff3cd;
    border-left: 4px solid var(--orange);
    padding: 12px 18px;
    border-radius: 4px;
    margin-bottom: 15px;
    color: #856404;
}

.no-posts {
    padding: 30px;
    text-align: center;
    color: var(--text-light);
    font-size: 1rem;
}

.no-posts .bi {
    font-size: 3rem;
    color: var(--gold);
    display: block;
    margin-bottom: 15px;
}

/* Back to top button */
.back-to-top {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--maroon);
    color: var(--white);
    border: none;
    font-size: 1.3rem;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
    z-index: 998;
    transition: var(--transition);
}

.back-to-top:hover {
    background: var(--orange);
    transform: translateY(-3px);
}

.back-to-top.visible {
    display: flex;
}

/* ==========================================================================
   15. Responsive
   ========================================================================== */
@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .content-wrapper {
        flex-direction: column;
    }

    .sidebar-area {
        flex: none;
        width: 100%;
    }

    .site-title {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .nav-container {
        flex-direction: column;
        align-items: stretch;
    }

    .nav-menu {
        display: none;
        flex-direction: column;
        width: 100%;
        padding: 0;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu > li {
        width: 100%;
    }

    .nav-menu > li > a {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        border-left: none;
        padding: 14px 20px;
        text-align: left;
    }

    .nav-menu .sub-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        display: none;
        background: rgba(0, 0, 0, 0.2);
    }

    .nav-menu li:hover > .sub-menu {
        display: block;
    }

    .color-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .site-title {
        font-size: 1.8rem;
    }

    .site-logo img {
        width: 90px;
        height: 90px;
    }

    .header-inner {
        gap: 15px;
    }

    .post-card-header,
    .post-card-body,
    .related-posts,
    .share-section {
        padding-left: 18px;
        padding-right: 18px;
    }

    .post-card-header h1 {
        font-size: 1.35rem;
    }

    .related-grid {
        grid-template-columns: 1fr;
    }

    .marquee-label {
        font-size: 0.8rem;
        padding: 10px 12px;
    }

    .search-box {
        flex-direction: column;
        border-radius: 8px;
    }

    .search-box input[type="search"] {
        border-bottom: 2px solid var(--maroon);
    }

    .error-404 .error-code {
        font-size: 4rem;
    }
}

@media (max-width: 480px) {
    .color-grid {
        grid-template-columns: 1fr;
    }

    .social-row {
        gap: 6px;
    }

    .social-btn {
        padding: 6px 12px;
        font-size: 0.78rem;
    }

    .site-tagline {
        font-size: 0.95rem;
    }

    .container {
        padding: 0 10px;
    }
}

/* Print Styles */
@media print {
    .main-navigation,
    .search-section,
    .info-section,
    .site-footer,
    .share-section,
    .back-to-top {
        display: none !important;
    }

    body {
        background: white;
    }

    .post-card {
        box-shadow: none;
    }
}

/* === BN TABLE STYLES === */
.bn-table, .post-content table, .post-card-body table {
  width: 100% !important;
  border-collapse: collapse !important;
  border-spacing: 0 !important;
  margin: 20px 0 !important;
  font-size: 15px;
  background: #fff;
  border: 2px solid #000 !important;
}
.bn-table th, .bn-table td,
.post-content table th, .post-content table td,
.post-card-body table th, .post-card-body table td {
  border: 1px solid #000 !important;
  padding: 10px 12px !important;
  vertical-align: top !important;
  text-align: left !important;
  line-height: 1.6 !important;
}
.bn-table th,
.post-content table th,
.post-card-body table th {
  background: #5c1802 !important;
  color: #fff !important;
  font-weight: bold !important;
  text-align: center !important;
  font-size: 15px !important;
}
.bn-table th h2,
.post-content table th h2,
.post-card-body table th h2 {
  margin: 0 0 4px 0 !important;
  font-size: 18px !important;
  color: #fff !important;
}
.bn-table td ul, .bn-table td ol,
.post-content table td ul, .post-content table td ol,
.post-card-body table td ul, .post-card-body table td ol {
  margin: 5px 0 !important;
  padding-left: 22px !important;
  list-style: disc !important;
}
.bn-table td ul li, .bn-table td ol li,
.post-content table td ul li, .post-content table td ol li,
.post-card-body table td ul li, .post-card-body table td ol li {
  margin-bottom: 4px !important;
  line-height: 1.5 !important;
}

/* === BN POST HEADER BOX === */
.bn-post-header-box {
  margin-bottom: 20px;
  font-size: 16px;
  background: #fff;
  padding: 22px 25px;
  border-radius: 8px;
  border: 1px solid #e6e6e6;
  border-left: 4px solid #612625;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.bn-post-header-box .bn-row {
  display: grid;
  grid-template-columns: 170px 1fr;
  column-gap: 10px;
  margin-bottom: 10px;
  align-items: start;
}
.bn-post-header-box .bn-label {
  font-weight: bold;
  color: #d00;
  line-height: 1.4;
}
.bn-post-header-box .bn-value {
  color: #003399;
  font-size: 15px;
  line-height: 1.5;
  word-break: break-word;
}
.bn-post-header-box .bn-row:first-child .bn-value {
  font-size: 25px;
  font-weight: 700;
  line-height: 1.35;
  color: #000;
}

/* === POST LAYOUT === */
.post-wrap {
  display: flex;
  gap: 20px;
}
.post-main {
  flex: 1;
  min-width: 0;
  max-width: 780px;
}
.post-sidebar {
  width: 300px;
  flex-shrink: 0;
}
@media (max-width: 992px) {
  .post-wrap { flex-direction: column; }
  .post-sidebar { width: 100%; display: none; }
}

/* === POST CONTENT === */
.post-content, .post-card-body {
  line-height: 1.8;
  color: #333;
  background: #fff;
  padding: 28px 30px;
  border-radius: 8px;
  border: 1px solid #e8e8e8;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  word-wrap: break-word;
  overflow-wrap: break-word;
}
.post-content img, .post-card-body img {
  max-width: 100% !important;
  height: auto !important;
  border-radius: 4px;
}
.post-content h2, .post-card-body h2 {
  color: #612625;
  margin-top: 1.4em;
  line-height: 1.35;
}
.post-content a, .post-card-body a {
  color: #612625;
}

/* === SHARE === */
.share-section {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid #eee;
  text-align: center;
}
.share-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
}
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px 16px;
  border-radius: 25px;
  color: #fff !important;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  white-space: nowrap;
}
.share-whatsapp { background: #25d366; }
.share-telegram { background: #0088cc; }
.share-copy { background: #555; }

/* === POST BREADCRUMB === */
.post-breadcrumb {
  font-size: 12px;
  color: #888;
  margin-bottom: 12px;
  padding: 8px 14px;
  background: #f7f3ee;
  border-radius: 5px;
  border: 1px solid #ece4da;
}
.post-breadcrumb a {
  color: #612625;
  text-decoration: none;
  font-weight: 500;
}

/* === POST FEATURED WRAP === */
.post-featured-wrap {
  margin: 15px 0;
}
.post-featured-wrap img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  display: block;
}

/* === SEARCH BAR === */
.homepage-search-bar {
    background: #fff;
    border-bottom: 2px solid #612625;
    padding: 12px 0;
}
.homepage-search-form {
    display: flex;
    max-width: 700px;
    margin: 0 auto;
}
.homepage-search-input {
    flex: 1;
    padding: 12px 16px;
    font-size: 16px;
    border: 2px solid #612625;
    border-right: none;
    border-radius: 6px 0 0 6px;
    outline: none;
}
.homepage-search-input:focus {
    border-color: #d3681f;
}
.homepage-search-btn {
    padding: 12px 24px;
    background: #612625;
    color: #fff;
    border: 2px solid #612625;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    border-radius: 0 6px 6px 0;
    transition: background 0.2s;
}
.homepage-search-btn:hover {
    background: #d3681f;
    border-color: #d3681f;
}

/* Fix WordPress default search form in header */
.search-section .search-box form {
    display: flex;
    max-width: 700px;
    margin: 0 auto;
}
.search-section .search-box input[type="search"],
.search-section .search-box input[type="text"] {
    flex: 1;
    padding: 12px 16px;
    font-size: 16px;
    border: 2px solid #612625;
    border-right: none;
    border-radius: 6px 0 0 6px;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}
.search-section .search-box input[type="search"]:focus,
.search-section .search-box input[type="text"]:focus {
    border-color: #d3681f;
}
.search-section .search-box button,
.search-section .search-box input[type="submit"] {
    padding: 12px 24px;
    background: #612625;
    color: #fff;
    border: 2px solid #612625;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    border-radius: 0 6px 6px 0;
    transition: background 0.2s;
    white-space: nowrap;
}
.search-section .search-box button:hover,
.search-section .search-box input[type="submit"]:hover {
    background: #d3681f;
    border-color: #d3681f;
}

/* Mobile search */
.nav-bar-mobile { display: none; align-items: center; padding: 8px 0; }
.menu-toggle { background: none; border: none; color: #fff; font-size: 22px; cursor: pointer; padding: 6px 10px; border-radius: 4px; }
.search-toggle { background: none; border: none; color: #fff; font-size: 20px; cursor: pointer; padding: 6px 10px; border-radius: 4px; margin-left: auto; }
.mobile-search-expand { display: none; padding: 0 15px 8px; background: #612625; }
.mobile-search-expand.show { display: flex; }
.mobile-search-input { flex: 1; padding: 8px 12px; border: none; border-radius: 4px 0 0 4px; font-size: 14px; outline: none; }
.mobile-search-btn { padding: 8px 14px; background: #edbd79; color: #612625; border: none; font-weight: 700; cursor: pointer; border-radius: 0 4px 4px 0; font-size: 14px; }

@media (max-width: 768px) {
    .nav-bar-mobile { display: flex; }
    .nav-inner { display: none; flex-direction: column; width: 100%; }
    .nav-inner.show { display: flex; }
    .homepage-search-bar { display: none; }
}


/* === SEARCH FORM FIX === */
.search-section { background: #fff; border-bottom: 2px solid #612625; padding: 12px 0; }
.search-section .container { max-width: 1100px; margin: 0 auto; padding: 0 15px; }
.search-section .search-box { max-width: 700px; margin: 0 auto; }
.search-section .search-form {
    display: flex !important;
    width: 100%;
    margin: 0;
}
.search-section .search-form label {
    display: none !important;
}
.search-section .search-form .search-field {
    flex: 1;
    padding: 12px 16px;
    font-size: 16px;
    border: 2px solid #612625;
    border-right: none;
    border-radius: 6px 0 0 6px;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    margin: 0;
}
.search-section .search-form .search-field:focus {
    border-color: #d3681f;
}
.search-section .search-form .search-submit {
    padding: 12px 24px;
    background: #612625;
    color: #fff;
    border: 2px solid #612625;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    border-radius: 0 6px 6px 0;
    transition: background 0.2s;
    white-space: nowrap;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 6px;
}
.search-section .search-form .search-submit:hover {
    background: #d3681f;
    border-color: #d3681f;
}
