/* Oigus Branding Overrides - Loaded Last to enforce brand integrity */

/* 1. Header Logo Scaling */
.logo img,
.header-section .logo img,
header.header .logo img,
.header-section.shrunk .logo img,
.header-section.shrink .logo img {
    max-height: 60px !important;
    height: auto !important;
    width: auto !important;
    max-width: 100% !important;
    display: block !important;
    margin: 0 auto !important;
    transition: all 0.3s ease !important;
}

/* 2. Header and Navigation Positioning */
.header-section {
    padding: 1.5rem 0 !important;
    position: relative !important;
    z-index: 1005 !important;
    background: #fff !important;
    transition: padding 0.3s ease !important;
}

header.header {
    background: #fff !important;
    z-index: 1004 !important;
    position: relative !important;
    transition: all 0.3s ease !important;
}

/* 3. Shrunk State Logic */
.header-section.shrunk,
.header-section.shrink,
header.header.shrunk,
header.header.shrink {
    box-sizing: border-box !important;
    margin: 0 !important;
}

.header-section.shrunk *,
.header-section.shrink *,
header.header.shrunk *,
header.header.shrink * {
    box-sizing: border-box !important;
}

.header-section.shrunk,
.header-section.shrink {
    padding: 0 !important;
    height: 60px !important;
    min-height: 60px !important;
    max-height: 60px !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1) !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    overflow: hidden !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: #fff !important;
}

.header-section.shrunk .logo img,
.header-section.shrink .logo img {
    max-height: 50px !important;
    height: 50px !important;
    margin: 0 auto !important;
    padding: 0 !important;
}

header.header.shrunk,
header.header.shrink {
    position: fixed !important;
    top: 60px !important;
    left: 0 !important;
    right: 0 !important;
    padding: 0 !important;
    height: 60px !important;
    min-height: 60px !important;
    max-height: 60px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1) !important;
    background: #fff !important;
}

body .header-section.shrunk .container,
body .header-section.shrink .container,
body header.header.shrunk .container,
body header.header.shrink .container {
    padding-left: 0 !important;
    padding-right: 0 !important;
    position: fixed !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    margin: 0 !important;
    height: 60px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    max-width: 1140px !important;
    width: 100% !important;
}

body .header-section.shrunk .row,
body .header-section.shrink .row,
body header.header.shrunk .row,
body header.header.shrink .row {
    width: 100% !important;
    margin: 0 !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
}

/* 4. Topbar Hiding */
.topbar-section.hidden {
    display: none !important;
}

/* 5. Navigation Links */
header.header.shrunk .navbar-nav .nav-link {
    padding: 0.5rem 1rem !important;
    font-size: 14px !important;
}

/* 6. Footer Logo */
.footer img {
    max-height: 80px !important;
    width: auto !important;
}

/* 7. Ensure Body Padding adjusts for fixed header */
body.header-is-shrunk,
body.header-is-shrink {
    padding-top: 120px !important;
}

/* 8. Mobile Header Layout - Fixed Full Width & Absolute Class Control */
/* TARGET MOBILE/TABLET (0px to 991px) */
@media (max-width: 991px) {
    #wrapper #topbar.topbar-section {
        padding: 0 !important;
        margin: 0 !important;
        height: 48px !important;
        min-height: 48px !important;
        max-height: 48px !important;
        background: #2c3e50 !important;
        display: block !important;
        width: 100% !important;
        position: relative !important;
        overflow: visible !important;
    }

    #topbar .container-fluid,
    #topbar .container {
        padding: 0 !important;
        margin: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        height: 48px !important;
        display: block !important;
    }

    #topbar .row {
        display: flex !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        justify-content: space-between !important;
        margin: 0 !important;
        padding: 0 10px !important;
        height: 48px !important;
        width: 100% !important;
    }

    /* FORCE HIDE ALL DESKTOP ELEMENTS */
    .desktop-header-socials,
    .desktop-header-menu,
    .desktop-header-flags {
        display: none !important;
    }

    /* FORCE SHOW MOBILE ELEMENTS */
    .mobile-header-hamb,
    .mobile-header-flags,
    .mobile-header-search {
        display: flex !important;
        align-items: center !important;
        height: 100% !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    /* 1. Hamburger (Left) */
    .mobile-header-hamb {
        width: 44px !important;
        flex: 0 0 44px !important;
        justify-content: flex-start !important;
    }

    /* 2. Flags (Middle) */
    .mobile-header-flags {
        position: absolute !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        justify-content: center !important;
        flex: none !important;
    }

    /* 3. Search (Right) */
    .mobile-header-search {
        width: 44px !important;
        flex: 0 0 44px !important;
        justify-content: flex-end !important;
    }

    /* Standardize buttons */
    .mobile-menu-btn,
    .mobile-search-btn {
        background: transparent !important;
        border: none !important;
        color: #fff !important;
        width: 44px !important;
        height: 44px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 0 !important;
        margin: 0 !important;
        font-size: 20px !important;
    }

    .language-selector {
        display: flex !important;
        gap: 6px !important;
        align-items: center !important;
        justify-content: center !important;
        margin-left: 0 !important;
    }

    /* Search overlay fix */
    #wrapper .top-search,
    .top-search#collapseExample {
        position: absolute !important;
        top: 48px !important;
        left: 0 !important;
        width: 100% !important;
        background: #fff !important;
        border-bottom: 2px solid #2c3e50 !important;
        z-index: 99999 !important;
    }
}

/* TARGET DESKTOP (992px and up) */
@media (min-width: 992px) {

    /* Hide Mobile elements on desktop */
    .mobile-header-hamb,
    .mobile-header-flags,
    .mobile-header-search {
        display: none !important;
    }

    /* Restore Desktop elements */
    .desktop-header-socials,
    .desktop-header-menu,
    .desktop-header-flags {
        display: flex !important;
        flex: 1 !important;
    }

    /* Left col: Socials */
    .desktop-header-socials {
        justify-content: flex-start !important;
    }

    /* Middle col: Menu */
    .desktop-header-menu {
        justify-content: center !important;
    }

    /* Left col: Flags (Swapped) */
    .desktop-header-flags {
        justify-content: flex-start !important;
        flex: 1 !important;
        max-width: none !important;
    }

    /* Middle col: Menu (1 Row) */
    .desktop-header-menu {
        justify-content: center !important;
        flex: 2 !important;
        max-width: none !important;
    }

    .topmenu-grid {
        display: flex !important;
        flex-wrap: nowrap !important;
        justify-content: center !important;
        align-items: center !important;
        margin: 0 !important;
        padding: 0 !important;
        white-space: nowrap !important;
    }

    .topmenu-grid .list-inline-item {
        margin: 0 10px !important;
    }

    /* Right col: Socials (Swapped) */
    .desktop-header-socials {
        justify-content: flex-end !important;
        flex: 1 !important;
        max-width: none !important;
    }

    /* Make topbar row flex to align equally */
    #topbar .row {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        width: 100% !important;
        margin: 0 !important;
        min-height: 80px !important; /* Increase height for 2 rows */
    }
}

/* 9. Lifestyle Section Image Consistency */
.section .blog-box .post-media img {
    width: 100% !important;
    height: 350px !important;
    object-fit: cover !important;
    border-radius: 4px !important;
}

/* 9. Scroll to Top (.dmtop) Customization */
body .dmtop {
    background-color: #2c3e50 !important;
    border-radius: 4px !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2) !important;
}

body .dmtop:hover {
    background-color: #1a252f !important;
    transform: translateY(-2px) !important;
}

@media (max-width: 576px) {
    body .dmtop {
        width: 35px !important;
        height: 35px !important;
        bottom: 15px !important;
        right: 15px !important;
        background-size: 14px !important;
    }
}

/* 10. Custom Charts & Tables */

/* Stats Bar Chart (for Online Scams) */
.scam-stats-chart {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 8px;
    margin: 30px 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid #ecf0f1;
}

.scam-stat-row {
    margin-bottom: 18px;
}

.scam-stat-label {
    display: flex;
    justify-content: space-between;
    font-weight: 500;
    margin-bottom: 8px;
    font-size: 0.95em;
    color: #2c3e50;
}

.scam-stat-bar-bg {
    background: #e9ecef;
    height: 14px;
    border-radius: 7px;
    overflow: hidden;
}

.scam-stat-bar {
    height: 100%;
    background: #FF9F00;
    /* Brand Color */
    border-radius: 7px;
    display: block;
    width: 0;
    /* Animated via inline or JS */
    transition: width 1s ease-in-out;
}

.scam-stat-value {
    font-weight: bold;
    color: #333;
}

/* Comparison Table (for Tax Law) */
.tax-comparison-table {
    width: 100%;
    margin: 30px 0;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid #ecf0f1;
    background: white;
}

.tax-comparison-table th,
.tax-comparison-table td {
    padding: 16px 20px;
    text-align: left;
    border-bottom: 1px solid #ecf0f1;
    vertical-align: middle;
}

.tax-comparison-table th {
    background: #2c3e50;
    color: white;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85em;
    letter-spacing: 1px;
}

.tax-comparison-table th:first-child {
    border-top-left-radius: 8px;
}

.tax-comparison-table th:last-child {
    border-top-right-radius: 8px;
}

.tax-comparison-table tr:last-child td {
    border-bottom: none;
}

.tax-comparison-table tr:hover td {
    background-color: #f8f9fa;
}

/* AI Listening Chart (Bar Chart) */
.ai-listening-chart {
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    margin: 30px 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid #ecf0f1;
}

.ai-bar-group {
    margin-bottom: 20px;
}

.ai-bar-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-weight: 500;
    color: #2c3e50;
}

.ai-bar-bg {
    background: #ecf0f1;
    height: 20px;
    border-radius: 10px;
    overflow: hidden;
}

.ai-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #3498db, #8e44ad);
    width: 0;
    /* Animate this inline */
    transition: width 1.5s ease-out;
}

/* Jurisdiction Flowchart */
.jurisdiction-flowchart {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin: 40px 0;
    font-family: 'Consolas', monospace;
}

.flow-step {
    background: #fff;
    border: 2px solid #2c3e50;
    padding: 15px 25px;
    border-radius: 5px;
    text-align: center;
    position: relative;
    width: 250px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.flow-step::after {
    content: "↓";
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 20px;
    color: #2c3e50;
    font-weight: bold;
}

.flow-step:last-child::after {
    display: none;
}

.flow-step.decision {
    background: #f1c40f;
    border-color: #f39c12;
    transform: rotate(-2deg);
}

.flow-step.outcome {
    background: #2ecc71;
    border-color: #27ae60;
    color: white;
    font-weight: bold;
}

/* Court System Pyramid */
.court-pyramid {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 40px 0;
    gap: 5px;
}

.court-level {
    text-align: center;
    color: white;
    font-weight: bold;
    padding: 15px;
    clip-path: polygon(10% 0, 90% 0, 100% 100%, 0% 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.court-level:hover {
    transform: scale(1.05);
}

.court-level.supreme {
    width: 150px;
    background: #c0392b;
    z-index: 3;
}

.court-level.circuit {
    width: 250px;
    background: #e67e22;
    z-index: 2;
}

.court-level.county {
    width: 350px;
    background: #f1c40f;
    z-index: 1;
    color: #2c3e50;
}

/* ==========================================
   PREMIUM ENHANCEMENTS & MODERN AESTHETICS
   ========================================== */

/* 1. Theme Variables & Base Dark Mode Settings */
body.dark-mode {
    background-color: #121214 !important;
    color: #e4e4e7 !important;
}

body.dark-mode #wrapper {
    background-color: #121214 !important;
}

body.dark-mode .section,
body.dark-mode section {
    background-color: #121214 !important;
}

/* 2. Text styling overrides */
body.dark-mode h1, 
body.dark-mode h2, 
body.dark-mode h3, 
body.dark-mode h4, 
body.dark-mode h5, 
body.dark-mode h6,
body.dark-mode .blog-title-area h3,
body.dark-mode .post-title a,
body.dark-mode .widget-title {
    color: #f4f4f5 !important;
}

body.dark-mode p,
body.dark-mode .pp,
body.dark-mode .blog-content p,
body.dark-mode .blog-content li,
body.dark-mode .lead {
    color: #d4d4d8 !important;
}

body.dark-mode a {
    color: #ff9f00;
}
body.dark-mode a:hover {
    color: #e08b00 !important;
}

/* Header & Nav overrides */
body.dark-mode .header-section,
body.dark-mode header.header {
    background: #18181b !important;
}

body.dark-mode .topbar-section {
    background: #09090b !important;
    border-bottom: 1px solid #27272a !important;
}

body.dark-mode .navbar-inverse .navbar-nav .nav-link {
    color: #e4e4e7 !important;
}
body.dark-mode .navbar-inverse .navbar-nav .nav-link:hover,
body.dark-mode .navbar-inverse .navbar-nav .nav-link:focus {
    color: #ff9f00 !important;
}

/* Cards & Layout Boxes */
body.dark-mode .blog-box,
body.dark-mode .page-wrapper,
body.dark-mode .widget,
body.dark-mode .service-box,
body.dark-mode .card,
body.dark-mode .card-block,
body.dark-mode .tabcontent {
    background-color: #18181b !important;
    border-color: #27272a !important;
    color: #d4d4d8 !important;
}

body.dark-mode .widget ul li,
body.dark-mode .widget .link-widget ul li {
    border-bottom: 1px solid #27272a !important;
}

body.dark-mode .widget .link-widget ul li a,
body.dark-mode .widget .link-widget ul li a span {
    color: #cbd5e1 !important;
}

body.dark-mode .widget .link-widget ul li a:hover {
    color: #ff9f00 !important;
}

/* Inputs & Form styling */
body.dark-mode .form-control,
body.dark-mode input[type="text"],
body.dark-mode input[type="email"],
body.dark-mode textarea {
    background-color: #27272a !important;
    border: 1px solid #3f3f46 !important;
    color: #ffffff !important;
}

body.dark-mode .form-control:focus {
    border-color: #ff9f00 !important;
    box-shadow: 0 0 5px rgba(255, 159, 0, 0.4) !important;
}

/* Lists and Lists items */
body.dark-mode .list-group-item {
    background-color: #18181b !important;
    border-color: #27272a !important;
    color: #e4e4e7 !important;
}
body.dark-mode .list-group-item:hover {
    background-color: #27272a !important;
}

body.dark-mode .list-group-item h5,
body.dark-mode .list-group-item-heading {
    color: #f4f4f5 !important;
}

body.dark-mode blockquote,
body.dark-mode .blockquote {
    background-color: #27272a !important;
    border-left-color: #ff9f00 !important;
    color: #d4d4d8 !important;
}

body.dark-mode .breadcrumb {
    background-color: #18181b !important;
}
body.dark-mode .breadcrumb-item,
body.dark-mode .breadcrumb-item.active {
    color: #a1a1aa !important;
}

/* Visual elements overrides (charts, pyarmids, tables) */
body.dark-mode .scam-stats-chart,
body.dark-mode .ai-listening-chart,
body.dark-mode .employment-visual {
    background-color: #1e1e24 !important;
    border-color: #2d2d30 !important;
}

body.dark-mode .scam-stat-label,
body.dark-mode .ai-bar-label,
body.dark-mode .visual-label {
    color: #f4f4f5 !important;
}

body.dark-mode .scam-stat-bar-bg,
body.dark-mode .ai-bar-bg,
body.dark-mode .bar-container {
    background-color: #2d2d30 !important;
}

body.dark-mode .tax-comparison-table {
    background-color: #18181b !important;
    border-color: #27272a !important;
}
body.dark-mode .tax-comparison-table th {
    background-color: #2c3e50 !important;
}
body.dark-mode .tax-comparison-table td {
    border-bottom-color: #27272a !important;
    color: #cbd5e1 !important;
}
body.dark-mode .tax-comparison-table tr:hover td {
    background-color: #27272a !important;
}

body.dark-mode .flow-step {
    background-color: #18181b !important;
    border-color: #3f3f46 !important;
    color: #ffffff !important;
}
body.dark-mode .flow-step::after {
    color: #ff9f00 !important;
}

body.dark-mode .flow-step.decision {
    background-color: #d97706 !important;
    border-color: #b45309 !important;
}

/* Glassmorphic Sticky Header Override */
.header-section.shrunk,
.header-section.shrink,
header.header.shrunk,
header.header.shrink {
    background: rgba(255, 255, 255, 0.85) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05) !important;
}

body.dark-mode .header-section.shrunk,
body.dark-mode .header-section.shrink,
body.dark-mode header.header.shrunk,
body.dark-mode header.header.shrink {
    background: rgba(24, 24, 27, 0.85) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
}

/* Theme Toggle Button */
.theme-toggle-btn {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    padding: 6px 10px;
    margin-left: 10px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    transition: all 0.3s ease;
    vertical-align: middle;
}
.theme-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: rotate(15deg) scale(1.1);
}
.theme-toggle-btn:focus {
    outline: none;
}

/* Mobile flags centering fix to handle inline icon spacing */
@media (max-width: 991px) {
    .mobile-header-search {
        display: flex !important;
        align-items: center !important;
        justify-content: flex-end !important;
        gap: 5px !important;
        width: auto !important;
        flex: 0 0 auto !important;
    }
}

/* Reading Progress Bar */
.reading-progress-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: transparent;
    z-index: 10000;
    pointer-events: none;
}
.reading-progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #ff9f00, #ff5e62);
    transition: width 0.1s ease-out;
}

/* Social Share Widget */
.oigus-share-widget {
    display: flex;
    gap: 10px;
    align-items: center;
    margin: 20px 0;
    padding: 12px 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #ecf0f1;
}
body.dark-mode .oigus-share-widget {
    background: #1f1f23;
    border-color: #2d2d30;
}
.oigus-share-label {
    font-weight: 600;
    color: #2c3e50;
    margin-right: 10px;
    font-size: 0.9rem;
}
body.dark-mode .oigus-share-label {
    color: #e2e8f0;
}
.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    color: #fff !important;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}
.share-btn:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}
.share-btn.btn-facebook { background: #3b5998; }
.share-btn.btn-linkedin { background: #0077b5; }
.share-btn.btn-twitter { background: #1da1f2; }
.share-btn.btn-copy { 
    background: #2c3e50; 
    position: relative;
}
body.dark-mode .share-btn.btn-copy {
    background: #4a5568;
}

/* Toast Notification */
.oigus-toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: #2c3e50;
    color: #fff;
    padding: 10px 20px;
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    z-index: 100000;
    font-size: 0.9rem;
    font-weight: 500;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.oigus-toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* TL;DR Key Takeaways Card */
.tldr-takeaways-card {
    background: linear-gradient(135deg, #fdfbf7, #f5f7fa);
    border-left: 5px solid #ff9f00;
    border-radius: 8px;
    padding: 20px;
    margin: 25px 0;
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
}
body.dark-mode .tldr-takeaways-card {
    background: linear-gradient(135deg, #1e1e24, #19191d);
    border-left-color: #ff9f00;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}
.tldr-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 12px;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
body.dark-mode .tldr-title {
    color: #ff9f00;
}
.tldr-list {
    margin: 0;
    padding-left: 20px;
    list-style-type: square;
}
.tldr-list li {
    margin-bottom: 8px;
    font-size: 0.95rem;
    line-height: 1.5;
    color: #4f5e71;
}
body.dark-mode .tldr-list li {
    color: #cbd5e1;
}

/* Improved Scroll to Top button overrides */
body .dmtop {
    background: linear-gradient(135deg, #2c3e50, #1a252f) !important;
    border: 1px solid rgba(255,255,255,0.1) !important;
    border-radius: 50% !important;
    width: 45px !important;
    height: 45px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #fff !important;
    font-size: 0 !important;
    text-indent: 0 !important;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15) !important;
}
body .dmtop::before {
    content: "\f106" !important;
    font-family: "FontAwesome" !important;
    font-size: 20px !important;
    color: #fff !important;
    line-height: 1 !important;
    display: inline-block !important;
}
body.dark-mode .dmtop {
    background: #ffffff !important;
    border: none !important;
}
body.dark-mode .dmtop::before {
    color: #18181b !important;
}
body .dmtop:hover {
    transform: translateY(-5px) scale(1.05) !important;
    box-shadow: 0 6px 20px rgba(0,0,0,0.25) !important;
}

/* Dark Mode overrides for white backgrounds */
body.dark-mode .blog-list .blog-meta.big-meta h4,
body.dark-mode .blog-custom-build .blog-meta {
    background-color: #18181b !important;
    border-color: #27272a !important;
}

/* ==========================================
   DARK MODE FOOTER — Premium Design
   ========================================== */

/* Footer base */
body.dark-mode .footer,
body.dark-mode footer.footer {
    background: #0d0d10 !important;
    border-top: 1px solid transparent !important;
    background-image: linear-gradient(#0d0d10, #0d0d10),
                      linear-gradient(90deg, transparent 0%, #ff9f00 30%, #ff5e62 70%, transparent 100%) !important;
    background-origin: border-box !important;
    background-clip: padding-box, border-box !important;
    position: relative !important;
}

/* Glowing top border accent */
body.dark-mode .footer::before {
    content: '' !important;
    display: block !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 2px !important;
    background: linear-gradient(90deg, transparent 0%, #ff9f00 30%, #ff5e62 70%, transparent 100%) !important;
}

/* Widget titles */
body.dark-mode .footer .widget-title,
body.dark-mode .footer h2.widget-title {
    color: #f0f0f0 !important;
    border-bottom: 1px solid rgba(255, 159, 0, 0.25) !important;
    padding-bottom: 0.5rem !important;
}

/* All text */
body.dark-mode .footer h5,
body.dark-mode .footer p,
body.dark-mode .footer small,
body.dark-mode .footer .blog-list-widget small {
    color: rgba(210, 210, 220, 0.85) !important;
}

/* Links */
body.dark-mode .footer a,
body.dark-mode .footer ul li a {
    color: #c5c5d0 !important;
    transition: color 0.2s ease !important;
}
body.dark-mode .footer a:hover,
body.dark-mode .footer ul li a:hover {
    color: #ff9f00 !important;
}

/* Category list separators */
body.dark-mode .footer .link-widget ul li {
    border-bottom: 1px solid rgba(255,255,255,0.06) !important;
    padding: 0.3rem 0 !important;
}

/* Recent/Popular post widget thumbnails */
body.dark-mode .footer .blog-list-widget img {
    background: #1c1c22 !important;
    border: 1px solid rgba(255,255,255,0.08) !important;
    border-radius: 3px !important;
    padding: 3px !important;
}

/* Post list items */
body.dark-mode .footer .list-group-item {
    background-color: transparent !important;
    border-color: rgba(255,255,255,0.06) !important;
}
body.dark-mode .footer .list-group-item:hover {
    background-color: rgba(255,255,255,0.03) !important;
}

/* Star ratings */
body.dark-mode .footer .fa-star {
    color: #ff9f00 !important;
}

/* HR divider */
body.dark-mode .footer hr.invis1 {
    border-color: rgba(255,255,255,0.06) !important;
}

/* Social icons */
body.dark-mode .footer .social a {
    color: #aaa !important;
    transition: color 0.2s ease, transform 0.2s ease !important;
}
body.dark-mode .footer .social a:hover {
    color: #ff9f00 !important;
    transform: translateY(-2px) !important;
}

/* Footer search form */
body.dark-mode .footer .search-form .form-control,
body.dark-mode .footer .form-control {
    background-color: #1a1a22 !important;
    color: #e0e0e8 !important;
    border-color: rgba(255,255,255,0.12) !important;
    border-radius: 3px 0 0 3px !important;
}
body.dark-mode .footer .search-form .form-control::placeholder,
body.dark-mode .footer .form-control::placeholder {
    color: rgba(180,180,200,0.4) !important;
}
body.dark-mode .footer .search-form .form-control:focus {
    border-color: #ff9f00 !important;
    box-shadow: 0 0 0 2px rgba(255,159,0,0.15) !important;
}
body.dark-mode .footer .search-form .btn:hover,
body.dark-mode .footer .search-form .btn:focus,
body.dark-mode .footer .search-form .btn {
    background: linear-gradient(135deg, #ff9f00, #e08b00) !important;
    border-color: #ff9f00 !important;
    color: #fff !important;
}

/* Copyright bar */
body.dark-mode .footer .copyright,
body.dark-mode .footer .copyright a {
    color: rgba(150,150,165,0.7) !important;
}
body.dark-mode .footer .copyright a:hover {
    color: #ff9f00 !important;
}
