/*
Theme Name: BizTech News
Theme URI: https://biztechcommunity.com
Author: BizTech Community
Author URI: https://biztechcommunity.com
Description: Lightning-fast news theme optimized for A+ Lighthouse scores. Modern, clean design inspired by professional news sites.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: biztech-news
Tags: news, blog, two-columns, responsive-layout, accessibility-ready, custom-colors, custom-menu, featured-images, footer-widgets, threaded-comments, translation-ready
*/

/* ===================================================================
   CSS VARIABLES - Performance-first Design System
   =================================================================== */
:root {
    /* Colors */
    --color-primary: #0d8abc;
    /* Darker blue for better contrast ratio */
    --color-primary-accessible: #0a6a93;
    /* WCAG AA compliant blue for buttons (4.53:1 contrast ratio) */
    --color-dark: #222;
    --color-darker: #111;
    --color-text: #444;
    --color-meta: #595959;
    /* Darker for better contrast (4.6:1 ratio) */
    --color-border: #ededed;
    --color-white: #fff;
    --color-black: #000;

    /* Typography */
    --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    --font-heading: Georgia, serif;

    /* Sizes */
    --container-width: 1200px;
    --spacing-unit: 21px;

    /* Responsive breakpoints */
    --breakpoint-mobile: 767px;
    --breakpoint-tablet: 1018px;
}

/* ===================================================================
   RESET & BASE - Minimal, optimized
   =================================================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    font-size: 17px;
    line-height: 1.47;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--color-text);
    background: var(--color-white);
}

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

a {
    color: var(--color-dark);
    text-decoration: none;
    transition: color 0.2s ease;
}

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

/* ===================================================================
   LAYOUT - 12-column grid system
   =================================================================== */
.td-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--spacing-unit);
}

.td-pb-row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 calc(var(--spacing-unit) * -1);
}

.td-pb-span8 {
    flex: 0 0 66.666%;
    padding: 0 var(--spacing-unit);
}

.td-pb-span4 {
    flex: 0 0 33.333%;
    padding: 0 var(--spacing-unit);
}

.td-pb-span12 {
    flex: 0 0 100%;
    padding: 0;
}

/* Mobile: stack columns */
@media (max-width: 767px) {

    .td-pb-span8,
    .td-pb-span4 {
        flex: 0 0 100%;
    }
}

/* ===================================================================
   HEADER - Clean, minimal
   =================================================================== */
.td-header-wrap {
    background: var(--color-white);
    border-bottom: 1px solid var(--color-border);
}

/* Hide old logo text section */
.td-logo-text-wrap {
    display: none;
}

/* Navigation with logo */
.nav-content {
    display: flex;
    align-items: center;
    gap: 30px;
    padding: 15px 0;
}

/* Logo styling */
.site-logo {
    flex-shrink: 0;
}

.site-logo .custom-logo {
    height: 50px;
    width: auto;
    display: block;
    transition: height 0.3s ease;
}

.site-logo a {
    display: block;
    line-height: 0;
}

/* Menu wrapper */
.menu-wrapper {
    flex: 1;
}

/* Header Right Section (Social + Country) */
.header-right-section {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-left: auto;
}

/* Social Media Icons */
.header-social {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-social-icon {
    color: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease;
}

.header-social-icon:hover {
    color: var(--color-white);
}

.header-social-icon svg {
    width: 16px;
    height: 16px;
}

/* Country Selector */
.header-country-selector {
    border-left: 1px solid rgba(255, 255, 255, 0.2);
    padding-left: 20px;
    position: relative;
}

.country-dropdown {
    position: relative;
}

.country-selector-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: none;
    color: var(--color-white);
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 4px;
    transition: background 0.3s ease;
    font-size: 13px;
}

.country-selector-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.country-flag {
    width: 20px;
    height: 15px;
    border-radius: 2px;
    object-fit: cover;
    display: block;
}

.country-selector-btn .dropdown-arrow {
    width: 10px;
    height: 10px;
    opacity: 0.8;
    transition: transform 0.3s ease;
}

.country-selector-btn[aria-expanded="true"] .dropdown-arrow {
    transform: rotate(180deg);
}

/* Dropdown Menu */
.country-dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    min-width: 180px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.country-dropdown:hover .country-dropdown-menu,
.country-dropdown-menu:hover {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.country-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: var(--color-darker);
    text-decoration: none;
    transition: background 0.2s ease;
    font-size: 14px;
    font-weight: 500;
}

.country-option:hover {
    background: var(--color-primary);
    color: var(--color-white);
}

/* DISABLED - Using hamburger menu layout below 1280px instead */
/* @media (min-width: 768px) and (max-width: 1279px) {
    .nav-content {
        flex-direction: column;
        gap: 15px;
    }

    .site-logo {
        order: 1;
        width: 100%;
        text-align: center;
    }

    .site-logo .custom-logo {
        height: 45px;
    }

    .menu-wrapper {
        order: 2;
        width: 100%;
    }

    .menu-wrapper .sf-menu {
        justify-content: center;
    }

    .header-right-section {
        order: 3;
        position: absolute;
        right: 21px;
        top: 15px;
    }
} */

/* DISABLED - Tablet layout (using hamburger menu instead) */
/* @media (min-width: 768px) and (max-width: 1140px) {
    .site-logo .custom-logo {
        height: 42px;
    }
} */

/* DISABLED - Mobile layout conflicts (using hamburger menu instead) */
/* @media (max-width: 767px) {
    .nav-content {
        padding-top: 15px;
        padding-bottom: 0;
        gap: 15px;
        flex-wrap: wrap;
    }

    .site-logo {
        order: 1;
    }

    .header-right-section {
        order: 2;
        margin-left: auto;
        gap: 12px;
    }

    .header-social {
        gap: 10px;
    }

    .header-social-icon svg {
        width: 14px;
        height: 14px;
    }

    .header-country-selector {
        border-left: none;
        padding-left: 0;
    }

    .country-selector-btn {
        padding: 6px 8px;
        font-size: 12px;
    }

    .country-flag {
        width: 18px;
        height: 13px;
    }

    .country-dropdown-menu {
        min-width: 150px;
    }

    .mobile-menu-toggle {
        order: 3;
    }

    .site-logo .custom-logo {
        height: 40px;
    }

    .menu-wrapper {
        order: 4;
        flex-basis: 100%;
        width: 100%;
    }

    .menu-wrapper .sf-menu {
        display: none;
        flex-direction: column;
        background: #1c3f60;
        margin-top: 10px;
        border-radius: 4px;
        overflow: hidden;
    }

    .menu-wrapper .sf-menu.active {
        display: flex;
    }
} */

/* Navigation */
.td-header-menu-wrap {
    background: #1c3f60;
    position: relative;
}

.td-header-menu-wrap .td-container {
    max-width: 100%;
    padding: 0 21px;
}

.sf-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
}

.sf-menu>li {
    position: relative;
}

.sf-menu>li>a {
    display: block;
    padding: 14px 18px;
    color: #ffffff !important;
    /* Force white color to ensure visibility */
    font-size: 12px;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
}

.sf-menu>li>a:hover,
.sf-menu>li.current-menu-item>a {
    color: var(--color-primary);
}

/* Dropdown / Submenu Styles */
.sf-menu .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--color-darker);
    min-width: 200px;
    list-style: none;
    margin: 0;
    padding: 0;
    display: none;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Desktop hover only - disable on mobile/tablet to prevent interference with touch toggle */
/* Only enable hover on desktop (≥1280px) where mouse is primary input */
@media (min-width: 1280px) {
    .sf-menu li:hover>.sub-menu {
        display: block;
    }
}

.sf-menu .sub-menu li {
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sf-menu .sub-menu li:last-child {
    border-bottom: none;
}

.sf-menu .sub-menu a {
    display: block;
    padding: 12px 18px;
    color: #ffffff !important;
    /* Force white color to ensure visibility */
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 600;
    white-space: nowrap;
    transition: color 0.3s ease;
}

.sf-menu .sub-menu a:hover {
    color: var(--color-primary);
}

/* Nested submenus (3rd level) */
.sf-menu .sub-menu .sub-menu {
    top: 0;
    left: 100%;
    margin-left: 0;
}

/* Dropdown indicator (arrow) for menu items with children - DESKTOP ONLY */
/* On mobile/tablet (<1280px), JavaScript adds a clickable button instead */
@media (min-width: 1280px) {
    .sf-menu .menu-item-has-children>a::after {
        content: ' ▼';
        font-size: 8px;
        margin-left: 5px;
        opacity: 0.7;
    }

    .sf-menu .sub-menu .menu-item-has-children>a::after {
        content: ' ▶';
        float: right;
    }
}

/* Mobile menu toggle */
.mobile-menu-toggle {
    display: none;
    background: transparent;
    color: var(--color-white);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    padding: 10px 12px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mobile-menu-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Hamburger Icon */
.hamburger-icon {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 20px;
}

.hamburger-icon span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--color-white);
    transition: all 0.3s ease;
}

.mobile-menu-toggle:hover .hamburger-icon span {
    background-color: rgba(255, 255, 255, 0.8);
}

/* Mobile & Tablet hamburger menu (below 1280px) */
@media (max-width: 1279px) {

    /* Navigation bar background */
    .td-header-menu-wrap,
    .main-navigation {
        background: #1c3f60 !important;
        padding: 0 !important;
        position: relative !important;
    }

    /* Container - allow wrapping for menu dropdown */
    .td-header-menu-wrap .td-container {
        max-width: 100% !important;
        padding: 0 !important;
    }

    /* Nav content container - WRAP TO ALLOW DROPDOWN */
    .nav-content {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: wrap !important;
        align-items: center !important;
        padding: 0 !important;
        margin: 0 !important;
        width: 100% !important;
    }

    /* First row: Hamburger | Logo | Language (FULL WIDTH BAR) */

    /* Hamburger button - LEFT */
    .mobile-menu-toggle {
        display: block !important;
        order: 1 !important;
        flex: 0 0 auto !important;
        margin: 12px 0 12px 21px !important;
        background: rgba(255, 255, 255, 0.1);
        color: var(--color-white);
        border: 1px solid rgba(255, 255, 255, 0.3);
        border-radius: 4px;
        padding: 10px 12px;
        cursor: pointer;
        transition: all 0.3s ease;
    }

    /* Logo - CENTER-LEFT */
    .site-logo {
        flex: 1 1 auto !important;
        order: 2 !important;
        padding: 12px 0 12px 15px !important;
        margin: 0 !important;
    }

    .site-logo .custom-logo {
        height: auto !important;
        max-height: 35px !important;
        width: clamp(100px, 30vw, 180px) !important;
        /* Responsive width based on viewport */
    }

    .mobile-menu-toggle:hover,
    .mobile-menu-toggle:focus {
        background: rgba(255, 255, 255, 0.15);
        border-color: rgba(255, 255, 255, 0.5);
    }

    /* Language selector - RIGHT END */
    .header-right-section {
        flex: 0 0 auto !important;
        order: 3 !important;
        padding: 12px 21px 12px 0 !important;
        margin: 0 !important;
        position: static !important;
    }

    .country-dropdown {
        margin: 0 !important;
    }

    /* Menu wrapper - SECOND ROW, FULL WIDTH DROPDOWN */
    .menu-wrapper {
        order: 4 !important;
        flex: 0 0 100% !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        display: none !important;
    }

    /* When menu is active, show it */
    .menu-wrapper.active {
        display: block !important;
    }

    /* Main menu - always show when wrapper is active */
    .sf-menu,
    .tdb-menu {
        display: flex !important;
        flex-direction: column;
        width: 100%;
        background: #1c3f60;
        margin: 0;
        padding: 0;
        list-style: none;
    }

    /* Menu items - full width stacked */
    .sf-menu>li,
    .tdb-menu>li {
        width: 100%;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        margin: 0;
    }

    .sf-menu>li:first-child,
    .tdb-menu>li:first-child {
        border-top: none;
    }

    /* Menu items with children */
    .sf-menu>li.menu-item-has-children,
    .tdb-menu>li.menu-item-has-children,
    .tdb-menu>li.tdb-menu-item {
        position: relative;
        display: flex;
        flex-wrap: wrap;
        align-items: center;
    }

    /* Parent menu links */
    .sf-menu .menu-item-has-children>a,
    .tdb-menu .menu-item-has-children>a,
    .tdb-menu .tdb-menu-item>a {
        flex: 1;
        pointer-events: auto;
    }

    /* Top level menu links */
    .sf-menu>li>a,
    .tdb-menu>li>a {
        display: block;
        padding: 15px 20px;
        color: var(--color-white);
        font-size: 13px;
        text-transform: uppercase;
        font-weight: 600;
        letter-spacing: 0.5px;
    }

    .sf-menu>li>a:hover,
    .tdb-menu>li>a:hover {
        background: rgba(255, 255, 255, 0.05);
        color: var(--color-primary);
    }

    /* Submenu dropdown styles - stacked */
    .sf-menu .sub-menu,
    .tdb-menu .sub-menu,
    .tdb-menu ul {
        position: static;
        box-shadow: none;
        background: rgba(255, 255, 255, 0.05);
        display: none !important;
        width: 100%;
        flex-basis: 100%;
        order: 999;
        margin: 0 !important;
        padding: 0 !important;
        list-style: none;
    }

    /* Show submenu when parent has active class */
    .sf-menu li.menu-item-has-children.active>.sub-menu,
    .sf-menu li.menu-item-has-children.tdb-hover>.sub-menu,
    .sf-menu li.menu-item-has-children.sfHover>.sub-menu,
    .tdb-menu li.menu-item-has-children.active>.sub-menu,
    .tdb-menu li.menu-item-has-children.tdb-hover>.sub-menu,
    .tdb-menu li.menu-item-has-children.sfHover>.sub-menu,
    .tdb-menu li.tdb-menu-item.active>ul,
    .tdb-menu li.tdb-menu-item.tdb-hover>ul,
    .tdb-menu li.tdb-menu-item.sfHover>ul {
        display: block !important;
    }

    /* Submenu items */
    .sf-menu .sub-menu li,
    .tdb-menu .sub-menu li {
        display: block;
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        margin: 0;
        padding: 0;
    }

    .sf-menu .sub-menu li:last-child,
    .tdb-menu .sub-menu li:last-child {
        border-bottom: none;
    }

    /* Submenu links */
    .sf-menu .sub-menu a,
    .tdb-menu .sub-menu a {
        display: block;
        padding: 12px 20px 12px 36px;
        color: rgba(255, 255, 255, 0.9) !important;
        font-size: 11px;
        text-transform: uppercase;
        font-weight: 600;
        white-space: normal !important;
        word-wrap: break-word;
        line-height: 1.4;
        transition: background 0.3s ease, color 0.3s ease;
    }

    .sf-menu .sub-menu a:hover,
    .tdb-menu .sub-menu a:hover {
        color: var(--color-primary) !important;
        background: rgba(255, 255, 255, 0.08);
    }

    /* Nested submenus (3rd level) - more indent */
    .sf-menu .sub-menu .sub-menu a,
    .tdb-menu .sub-menu .sub-menu a {
        padding-left: 54px;
    }

    /* SUBMENU TOGGLE BUTTON - positioned next to the link */
    .submenu-toggle-btn {
        background: transparent;
        border: none;
        color: rgba(255, 255, 255, 0.8);
        cursor: pointer;
        font-size: 12px;
        padding: 14px 12px;
        margin: 0;
        transition: transform 0.3s ease, color 0.3s ease;
        -webkit-tap-highlight-color: transparent;
        user-select: none;
        outline: none;
        min-width: 40px;
        text-align: center;
    }

    .submenu-toggle-btn:hover,
    .submenu-toggle-btn:focus {
        color: var(--color-primary);
        background: rgba(255, 255, 255, 0.05);
    }

    /* Rotate button when menu is open */
    .menu-item-has-children.tdb-hover .submenu-toggle-btn,
    .menu-item-has-children.sfHover .submenu-toggle-btn,
    .menu-item-has-children.active .submenu-toggle-btn {
        transform: rotate(180deg);
        color: var(--color-primary);
    }
}

/* Desktop - hide hamburger menu */
@media (min-width: 1280px) {
    .mobile-menu-toggle {
        display: none !important;
    }
}

/* Mobile specific fixes */
@media (max-width: 767px) {

    /* Smaller logo on mobile to fit in one line */
    .td-logo-text a {
        font-size: 24px !important;
        line-height: 1.2;
    }

    /* Smaller hamburger button on mobile */
    .mobile-menu-toggle {
        padding: 6px 12px !important;
        font-size: 11px !important;
    }

    .mobile-menu-toggle::before {
        font-size: 13px !important;
        margin-right: 4px !important;
    }

    /* Compact country selector on mobile */
    .country-selector-btn {
        padding: 6px 10px !important;
    }
}

/* Very small screens - Single line header: hamburger | logo | flag */
@media (max-width: 410px) {
    .nav-content {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        padding: 8px 10px !important;
        gap: 10px !important;
        flex-wrap: wrap !important;
    }

    /* Hamburger menu - LEFT (order: 1) */
    .mobile-menu-toggle {
        order: 1 !important;
        flex: 0 0 auto !important;
        padding: 8px 10px !important;
        margin: 0 !important;
        background: rgba(255, 255, 255, 0.1) !important;
        border-radius: 4px !important;
        border: 1px solid rgba(255, 255, 255, 0.3) !important;
    }

    .hamburger-icon {
        width: 18px !important;
        gap: 3px !important;
    }

    .hamburger-icon span {
        height: 2px !important;
    }

    /* Logo - CENTER-LEFT (order: 2) - shrinks with viewport */
    .site-logo {
        order: 2 !important;
        flex: 1 1 auto !important;
        padding: 0 !important;
        margin: 0 !important;
        text-align: left !important;
    }

    .site-logo .custom-logo {
        height: auto !important;
        /* Shrink logo based on viewport: min 70px at 320px, max 120px at 410px */
        width: clamp(70px, calc(20vw + 6px), 120px) !important;
        max-width: 120px !important;
        display: block !important;
    }

    /* Country selector - RIGHT (order: 3) */
    .header-right-section {
        order: 3 !important;
        flex: 0 0 auto !important;
        padding: 0 !important;
        margin: 0 !important;
        margin-left: auto !important;
        position: static !important;
    }

    .country-selector-btn {
        padding: 6px 8px !important;
        min-width: 40px !important;
    }

    .country-selector-btn .country-flag {
        width: 16px !important;
        height: 12px !important;
    }

    .country-selector-btn .dropdown-arrow {
        width: 8px !important;
        height: 8px !important;
    }

    /* Menu wrapper - full width dropdown below on second row */
    .menu-wrapper {
        order: 4 !important;
        flex: 0 0 100% !important;
        width: 100% !important;
    }
}

/* Tablet specific fixes */
@media (min-width: 768px) and (max-width: 1279px) {

    /* Medium logo size on tablet */
    .td-logo-text a {
        font-size: 36px;
    }
}

/* Make article cards clickable - add hover effect */
.td_module_1,
.td_module_2,
.td_module_3,
.td_module_4,
.td_module_5,
.td_module_6,
.td_module_7,
.td_module_8,
.td_module_9,
.td_module_10,
.td_module_11,
.td_module_12,
.td_module_13,
.td_module_14,
.td_module_15,
.td_module_16,
.td_module_17,
.td_module_hero,
.td_module_small,
.td_module_carousel,
.related-article-card {
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.td_module_1:hover,
.td_module_2:hover,
.td_module_3:hover,
.td_module_4:hover,
.td_module_5:hover,
.td_module_6:hover,
.td_module_7:hover,
.td_module_8:hover,
.td_module_9:hover,
.td_module_10:hover,
.td_module_11:hover,
.td_module_12:hover,
.td_module_13:hover,
.td_module_14:hover,
.td_module_15:hover,
.td_module_16:hover,
.td_module_17:hover,
.td_module_hero:hover,
.td_module_small:hover {
    transform: translateY(-2px);
}

/* ===================================================================
   POST MODULE - List View (Homepage)
   =================================================================== */
.td_module_15 {
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 1px dashed var(--color-border);
}

.td_module_15:last-child {
    border-bottom: none;
}

.td-module-image {
    margin-bottom: var(--spacing-unit);
    position: relative;
    overflow: hidden;
}

.td-module-image img {
    width: 100%;
    transition: transform 0.3s ease;
}

.td-module-image:hover img {
    transform: scale(1.05);
}

.td-post-category {
    display: inline-block;
    background: linear-gradient(135deg, #1c3f60 0%, #0d8abc 100%);
    color: var(--color-white);
    padding: 3px 6px;
    font-size: 10px;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
    border-radius: 2px;
    transition: transform 0.2s ease;
}

.td-post-category:hover {
    background: linear-gradient(135deg, #0d8abc 0%, #1c3f60 100%);
    color: var(--color-white);
    transform: translateY(-1px);
}

.entry-title {
    font-size: 34px;
    line-height: 1.2;
    margin: 0 0 14px 0;
    font-weight: 700;
    font-family: var(--font-heading);
}

.entry-title a {
    color: var(--color-darker);
}

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

.td-module-meta-info {
    font-size: 12px;
    color: var(--color-meta);
    margin-bottom: 14px;
}

.td-module-meta-info a {
    color: var(--color-meta);
    text-decoration: underline;
    text-decoration-color: rgba(0, 0, 0, 0.2);
}

.td-module-meta-info a:hover {
    color: var(--color-primary);
    text-decoration-color: var(--color-primary);
}

.updated-label {
    color: #1c3f60;
    font-weight: 600;
    font-style: italic;
}

.td-post-read-time {
    /*display: inline-flex;*/
    align-items: center;
    gap: 4px;
}

.td-post-read-time i {
    font-size: 11px;
}

.td-post-author-name,
.td-post-date,
.td-post-comments {
    margin-right: 14px;
}

.td-excerpt {
    color: var(--color-text);
    line-height: 1.6;
    margin: 0;
}

/* ===================================================================
   POST MODULE - Grid View (Archives)
   =================================================================== */
.td-block-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

@media (max-width: 767px) {
    .td-block-row {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 768px) and (max-width: 1018px) {
    .td-block-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

.td_module_1 .entry-title {
    font-size: 22px;
    margin-bottom: 10px;
}

.td_module_1 .td-module-meta-info {
    font-size: 11px;
}

/* ===================================================================
   SINGLE POST
   =================================================================== */
.post {
    margin-bottom: 30px;
}

/* Single post article padding */
@media (min-width: 1200px) {
    .single .td-pb-span12 {
        padding-left: 80px;
        padding-right: 80px;
    }
}

@media (max-width: 1199px) and (min-width: 768px) {
    .single .td-pb-span12 {
        padding-left: 40px;
        padding-right: 40px;
    }
}

@media (max-width: 767px) {
    .single .td-pb-span12 {
        padding-left: 20px;
        padding-right: 20px;
    }
}

.td-post-header {
    margin-bottom: 30px;
}

.td-post-title .entry-title {
    font-size: 29px;
    margin-bottom: 14px;
}

.td-post-featured-image {
    margin-bottom: 30px;
}

.td-post-content {
    font-size: 17px;
    line-height: 1.7;
    color: var(--color-text);
}

.td-post-content p {
    margin: 0 0 21px 0;
}

.td-post-content h2 {
    font-size: 28px;
    margin: 40px 0 21px 0;
    font-weight: 700;
    color: var(--color-darker);
}

.td-post-content h3 {
    font-size: 24px;
    margin: 30px 0 21px 0;
    font-weight: 700;
    color: var(--color-darker);
}

.td-post-content img {
    margin: 21px 0;
    max-width: 100% !important;
    height: auto !important;
}

/* Links in post content - custom blue with underline */
.td-post-content a {
    color: #2C40D0;
    text-decoration: underline;
    text-decoration-color: #2C40D0;
    transition: all 0.3s ease;
}

.td-post-content a:hover {
    color: #1e2d8f;
    text-decoration-color: #1e2d8f;
}

/* Hide duplicate author box if Newspaper theme is showing one */
.author-box-wrap {
    display: none !important;
}

/* ===================================================================
   SINGLE POST ONLY - Article Title and Headings Color #111111
   =================================================================== */

/* Article title (H1) on single post pages only */
.single .entry-title,
.single .entry-title * {
    color: #111111 !important;
}

.single .entry-title a,
.single .entry-title a * {
    color: #111111 !important;
}

.single .entry-title a:hover,
.single .entry-title a:hover * {
    color: var(--color-primary) !important;
}

/* H2 and H3 headings on single post pages only - handles ALL nested patterns */
.single .td-post-content h2,
.single .td-post-content h2 *,
.single .td-post-content h3,
.single .td-post-content h3 * {
    color: #111111 !important;
}

/* Anchor links within headings */
.single .td-post-content h2 a,
.single .td-post-content h2 a *,
.single .td-post-content h3 a,
.single .td-post-content h3 a * {
    color: #111111 !important;
    text-decoration: none;
}

.single .td-post-content h2 a:hover,
.single .td-post-content h2 a:hover *,
.single .td-post-content h3 a:hover,
.single .td-post-content h3 a:hover * {
    color: var(--color-primary) !important;
    text-decoration: underline;
}

/* Prevent WordPress figure/caption elements from breaking layout */
.td-post-content figure,
.td-post-content .wp-caption {
    max-width: 100% !important;
    width: auto !important;
}

.td-post-content figure img,
.td-post-content .wp-caption img {
    width: 100% !important;
    height: auto !important;
}

/* ===================================================================
   TABLES - Responsive Styling
   =================================================================== */

/* Standard table styling */
.td-post-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    font-size: 15px;
}

.td-post-content table thead {
    background: #f8f9fa;
}

.td-post-content table th {
    padding: 14px 16px;
    text-align: left;
    font-weight: 700;
    color: var(--color-darker);
    border-bottom: 2px solid var(--color-border);
}

.td-post-content table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--color-border);
    color: var(--color-text);
}

.td-post-content table tr:last-child td {
    border-bottom: none;
}

.td-post-content table tr:hover {
    background: #f8f9fa;
}

/* Sticky table - horizontal scroll with fixed sticky-column */
/* Supports both .sticky-table wrapper and .t-scroll wrapper */
.td-post-content .sticky-table,
.td-post-content .t-scroll {
    position: relative;
    overflow-x: auto;
    overflow-y: hidden;
    /* Prevent vertical scrolling of container */
    -webkit-overflow-scrolling: touch;
    margin: 30px 0;
    width: 100%;
    /* Default: stay within container (mobile) */
    margin-left: 0;
    margin-right: 0;
    padding: 0;
    max-width: 100%;
    display: block;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    box-sizing: border-box;
}

@media (min-width: 768px) and (max-width: 1199px) {

    .td-post-content .sticky-table,
    .td-post-content .t-scroll {
        width: calc(100% + 80px);
        /* Account for 40px padding on each side */
        margin-left: -40px;
        margin-right: -40px;
        padding: 0 40px;
    }
}

@media (min-width: 1200px) {

    .td-post-content .sticky-table,
    .td-post-content .t-scroll {
        width: calc(100% + 160px);
        /* Account for 80px padding on each side */
        margin-left: -80px;
        margin-right: -80px;
        padding: 0 80px;
    }
}

.td-post-content .t-scroll table,
.td-post-content .sticky-table table {
    margin: 0;
    width: auto;
    /* Table takes natural width based on content */
    table-layout: auto;
    border: none;
    /* Remove border from table since container has it */
}

/* Sticky column - stays fixed while rest scrolls */
/* Supports both .sticky-column and .column-sticky classes */
.td-post-content .sticky-table table th.sticky-column,
.td-post-content .sticky-table table td.sticky-column,
.td-post-content .t-scroll table th.column-sticky,
.td-post-content .t-scroll table td.column-sticky,
.td-post-content table.sticky-table th.column-sticky,
.td-post-content table.sticky-table td.column-sticky {
    position: sticky;
    left: 0;
    background: var(--color-white);
    z-index: 2;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
    min-width: 120px;
    /* Ensure sticky column has minimum width */
}

/* Sticky column in header */
.td-post-content .sticky-table table thead th.sticky-column,
.td-post-content .t-scroll table thead th.column-sticky,
.td-post-content table.sticky-table thead th.column-sticky {
    background: #f8f9fa;
    z-index: 3;
}

/* Hover effect for sticky column */
.td-post-content .sticky-table table tr:hover td.sticky-column,
.td-post-content .sticky-table table tr:hover th.sticky-column,
.td-post-content .t-scroll table tr:hover td.column-sticky,
.td-post-content .t-scroll table tr:hover th.column-sticky,
.td-post-content table.sticky-table tr:hover td.column-sticky,
.td-post-content table.sticky-table tr:hover th.column-sticky {
    background: #f8f9fa;
}

/* Mobile adjustments */
@media (max-width: 767px) {

    /* Prevent horizontal page overflow on mobile */
    html,
    body {
        overflow-x: hidden !important;
        max-width: 100vw !important;
    }

    .td-post-content table {
        font-size: 14px;
    }

    .td-post-content table th,
    .td-post-content table td {
        padding: 10px 12px;
    }

    .td-post-content .sticky-table table th.sticky-column,
    .td-post-content .sticky-table table td.sticky-column,
    .td-post-content .t-scroll table th.column-sticky,
    .td-post-content .t-scroll table td.column-sticky,
    .td-post-content table.sticky-table th.column-sticky,
    .td-post-content table.sticky-table td.column-sticky {
        min-width: 100px;
        /* Smaller sticky column on mobile */
        font-size: 13px;
    }

    /* Add scroll indicator on mobile */
    .td-post-content .sticky-table::after,
    .td-post-content .t-scroll::after {
        content: '← Scroll horizontally →';
        display: block;
        text-align: center;
        font-size: 12px;
        color: #999;
        margin-top: 8px;
        font-style: italic;
    }

    /* Force all content elements to stay within viewport on mobile */
    .td-pb-span12,
    .td-post-content,
    .table-of-contents,
    .td-post-content ul,
    .su-spoiler-title,
    .author-bio-box,
    .editorial-standards,
    .ymyl-disclaimer,
    .nav-post-content,
    .related-article-content {
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
    }

    /* Adjust container padding on mobile */
    .td-pb-span12 {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }

    /* Footer newsletter elements */
    .footer-newsletter-input,
    .footer-newsletter-btn {
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
}

/* ===================================================================
   POST NAVIGATION (Prev/Next)
   =================================================================== */
.td-post-next-prev {
    margin: 50px 0 40px 0;
    border-top: 2px solid var(--color-border);
    padding-top: 40px;
}

.post-navigation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

/* Individual Navigation Items */
.nav-previous,
.nav-next {
    position: relative;
}

.nav-link {
    display: flex;
    flex-direction: column;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    text-decoration: none;
}

.nav-link:hover {
    border-color: var(--color-primary);
    box-shadow: 0 4px 16px rgba(13, 138, 188, 0.3);
    transform: translateY(-2px);
}

.nav-link:focus {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

/* Thumbnail */
.nav-thumbnail {
    position: relative;
    overflow: hidden;
    height: 240px;
}

.nav-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
}

.nav-link:hover .nav-thumbnail img {
    transform: scale(1.05);
}

/* Overlay Arrow */
.nav-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(77, 178, 236, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nav-link:hover .nav-overlay {
    opacity: 1;
}

.nav-overlay i {
    font-size: 40px;
    color: var(--color-white);
}

/* Content Area */
.nav-post-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.nav-label {
    font-size: 12px;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--color-meta);
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-label i {
    font-size: 10px;
}

.nav-title {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
    color: var(--color-darker);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.nav-link:hover .nav-title {
    color: var(--color-primary);
}

/* Alignment for Previous (Left) */
.nav-previous .nav-post-content {
    text-align: left;
}

/* Alignment for Next (Right) */
.nav-next .nav-post-content {
    text-align: right;
}

.nav-next .nav-label {
    justify-content: flex-end;
}

/* Fallback for posts without thumbnails */
.nav-link:not(:has(.nav-thumbnail)) .nav-post-content {
    padding: 30px 20px;
    min-height: 120px;
    justify-content: center;
}

/* Responsive */
@media (max-width: 767px) {
    .post-navigation {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .nav-thumbnail {
        height: 200px;
    }

    .nav-post-content {
        padding: 16px;
    }

    .nav-title {
        font-size: 15px;
    }

    /* On mobile, align both to left for consistency */
    .nav-next .nav-post-content {
        text-align: left;
    }

    .nav-next .nav-label {
        justify-content: flex-start;
    }
}

/* Author Box */
.author-box-wrap {
    background: #f7f7f7;
    padding: 30px;
    margin: 40px 0;
    border-left: 3px solid var(--color-primary);
}

.author-box-title {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 20px;
    color: var(--color-darker);
}

.author-box {
    display: flex;
    gap: 20px;
}

.author-box-avatar {
    flex-shrink: 0;
}

.author-box-avatar img {
    border-radius: 50%;
    width: 80px;
    height: 80px;
}

.author-box-name {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 10px;
}

.author-box-description {
    font-size: 14px;
    line-height: 1.6;
    color: var(--color-text);
}

/* ===================================================================
   RELATED ARTICLES
   =================================================================== */
.related-articles-section {
    margin: 60px 0;
    padding: 40px 0;
    border-top: 2px solid var(--color-border);
    border-bottom: 2px solid var(--color-border);
}

.related-articles-header {
    text-align: center;
    margin-bottom: 40px;
}

.related-articles-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--color-darker);
    margin: 0 0 10px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.related-articles-title i {
    color: var(--color-primary);
    font-size: 24px;
}

.related-articles-subtitle {
    font-size: 15px;
    color: var(--color-meta);
    margin: 0;
}

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

.related-article-card {
    background: var(--color-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.related-article-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.related-article-thumbnail {
    position: relative;
    overflow: hidden;
}

.related-article-thumbnail img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.related-article-card:hover .related-article-thumbnail img {
    transform: scale(1.05);
}

.related-article-category {
    position: absolute;
    top: 12px;
    left: 12px;
    background: linear-gradient(135deg, #1c3f60 0%, #0d8abc 100%);
    color: var(--color-white);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: transform 0.2s ease;
}

.related-article-category a {
    color: var(--color-white);
    text-decoration: none;
}

.related-article-card:hover .related-article-category {
    transform: translateY(-2px);
}

.related-article-content {
    padding: 20px;
}

.related-article-title {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
    margin: 0 0 12px 0;
}

.related-article-title a {
    color: var(--color-darker);
    transition: color 0.2s ease;
}

.related-article-title a:hover {
    color: var(--color-primary);
}

.related-article-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 12px;
    color: var(--color-meta);
}

.related-article-meta i {
    margin-right: 4px;
}

/* Responsive */
@media (max-width: 1024px) {
    .related-articles-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
}

@media (max-width: 767px) {
    .related-articles-section {
        margin: 40px 0;
        padding: 30px 0;
    }

    .related-articles-header {
        margin-bottom: 30px;
    }

    .related-articles-title {
        font-size: 24px;
    }

    .related-articles-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .related-article-thumbnail img {
        height: 180px;
    }
}

/* ===================================================================
   SIDEBAR
   =================================================================== */
.td-main-sidebar {
    padding-left: 10px;
}

.widget {
    margin-bottom: 40px;
}

.block-title {
    background: var(--color-black);
    color: var(--color-white);
    font-size: 12px;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.5px;
    padding: 10px 16px;
    margin: 0 0 21px 0;
}

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

.widget li {
    padding: 10px 0;
    border-bottom: 1px solid var(--color-border);
}

.widget li:last-child {
    border-bottom: none;
}

/* ===================================================================
   FRONT PAGE / HOMEPAGE SECTIONS
   =================================================================== */

/* Homepage section spacing */
.homepage-section {
    margin-bottom: 40px;
}

.homepage-section:first-child {
    margin-top: 40px;
}

@media (max-width: 767px) {
    .homepage-section {
        margin-bottom: 40px;
        margin-top: 30px;
    }

    .homepage-section:first-child {
        margin-top: 25px;
    }

    /* Add subtle separator between sections */
    .homepage-section:not(:last-child):not(.featured-section)::after {
        content: '';
        display: block;
        width: 60px;
        height: 3px;
        background: linear-gradient(to right, var(--color-primary), transparent);
        margin: 40px auto 0;
    }
}

/* Section titles */
.section-title {
    font-family: var(--font-heading);
    font-size: 36px;
    font-weight: 800;
    color: var(--color-darker);
    margin: 0 0 30px 0;
    line-height: 1;
    display: flex;
    align-items: center;
    gap: 20px;
}

.section-title::after {
    content: '';
    flex: 1;
    height: 2px;
    background: var(--color-border);
}

@media (max-width: 1018px) {
    .section-title {
        font-size: 32px;
    }
}

@media (max-width: 767px) {
    .section-title {
        font-size: 24px;
        margin-bottom: 20px;
        gap: 10px;
        font-weight: 700;
    }

    .section-title::after {
        height: 3px;
        background: linear-gradient(to right, var(--color-primary), transparent);
    }
}

/* Featured section (dark background) */
.featured-section {
    background: linear-gradient(135deg, #1c3f60 0%, #0d8abc 100%);
    padding: 60px 24px;
    margin-left: -24px;
    margin-right: -24px;
    margin-bottom: 40px;
}

.featured-section .section-title-light {
    color: var(--color-white);
}

.featured-section .section-title-light::after {
    background: rgba(255, 255, 255, 0.2);
}

@media (max-width: 1200px) {
    .featured-section {
        padding: 50px 21px;
        margin-left: -21px;
        margin-right: -21px;
    }
}

@media (max-width: 767px) {
    .featured-section {
        padding: 40px 14px;
        margin-left: -14px;
        margin-right: -14px;
    }
}

/* Finance & Business side-by-side sections */
.td-pb-span6 {
    flex: 0 0 50%;
    padding: 0 var(--spacing-unit);
}

@media (max-width: 1200px) {
    .td-pb-span6 {
        margin-top: 30px;
    }
}

@media (max-width: 767px) {
    .td-pb-span6 {
        flex: 0 0 100%;
    }
}

/* List view for Finance/Business sections */
.finance-posts .td_module_15,
.business-posts .td_module_15 {
    display: flex;
    gap: 20px;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--color-border);
}

.finance-posts .td_module_15:last-child,
.business-posts .td_module_15:last-child {
    border-bottom: none;
}

.finance-posts .td-module-image,
.business-posts .td-module-image {
    flex-shrink: 0;
    width: 200px;
    margin-bottom: 0;
}

@media (max-width: 767px) {

    .finance-posts .td_module_15,
    .business-posts .td_module_15 {
        flex-direction: column;
        gap: 14px;
    }

    .finance-posts .td-module-image,
    .business-posts .td-module-image {
        width: 100%;
    }
}

.finance-posts .item-details,
.business-posts .item-details {
    flex: 1;
}

.finance-posts .entry-title,
.business-posts .entry-title {
    font-size: 18px;
    margin-bottom: 10px;
}

/* ===================================================================
   FOOTER
   =================================================================== */
.td-footer-wrap {
    background: #222;
    color: #999;
    padding: 40px 0 20px;
    margin-top: 60px;
}

.td-footer-container {
    text-align: center;
}

.td-sub-footer-menu {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.td-sub-footer-menu a {
    color: #999;
    font-size: 12px;
}

.td-sub-footer-menu a:hover {
    color: var(--color-primary);
}

.td-sub-footer-copy {
    font-size: 12px;
    color: #777;
}

/* ===================================================================
   BREADCRUMBS
   =================================================================== */
.td-breadcrumbs {
    font-size: 11px;
    color: #595959;
    padding: 14px 0;
    border-bottom: 1px solid var(--color-border);
    margin-bottom: 30px;
}

.td-breadcrumbs a {
    color: #595959;
    text-decoration: underline;
    text-decoration-color: rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

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

/* ===================================================================
   UTILITIES
   =================================================================== */
.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
}

.alignleft {
    float: left;
    margin: 0 21px 21px 0;
}

.alignright {
    float: right;
    margin: 0 0 21px 21px;
}

.aligncenter {
    display: block;
    margin: 21px auto;
}

/* ===================================================================
   PERFORMANCE OPTIMIZATIONS
   =================================================================== */

/* Prevent layout shift */
img[width][height] {
    height: auto;
}

/* Smooth scroll */
html {
    scroll-behavior: smooth;
}

/* Font loading optimization */
@supports (font-display: swap) {
    * {
        font-display: swap;
    }
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ===================================================================
   HERO LAYOUT - Latest News Section
   =================================================================== */

/* Hero grid container (1 large 50% + 4 small 2x2 grid 50%) */
.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5px;
    margin-bottom: 0;
}

@media (max-width: 767px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* Hero main (large featured post - left, 50%) */
.hero-main {
    position: relative;
    height: 100%;
}

.td_module_hero {
    position: relative;
    height: 100%;
    overflow: hidden;
}

.td_module_hero .td-module-image {
    position: relative;
    overflow: hidden;
    height: 100%;
    margin-bottom: 0;
}

.td_module_hero .td-module-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 50%, rgba(0, 0, 0, 0) 100%);
    z-index: 1;
}

.td_module_hero .td-module-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    min-height: 500px;
}

@media (max-width: 767px) {
    .td_module_hero .td-module-image img {
        min-height: 300px;
    }
}

.td_module_hero .td-module-image:hover img {
    transform: scale(1.05);
}

.td_module_hero .item-details {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px;
    z-index: 2;
}

.td_module_hero .td-post-category {
    background: linear-gradient(135deg, #1c3f60 0%, #0d8abc 100%);
    margin-bottom: 12px;
}

.td_module_hero .entry-title {
    font-size: 28px;
    line-height: 1.2;
    margin-bottom: 12px;
}

.td_module_hero .entry-title a {
    color: var(--color-white);
}

.td_module_hero .entry-title a:hover {
    color: var(--color-primary);
}

@media (max-width: 1018px) {
    .td_module_hero .entry-title {
        font-size: 24px;
    }
}

@media (max-width: 767px) {
    .td_module_hero {
        border-radius: 12px;
        overflow: hidden;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    }

    .td_module_hero .entry-title {
        font-size: 22px;
    }

    .td_module_hero .item-details {
        padding: 24px;
    }
}

.td_module_hero .td-module-meta-info,
.td_module_hero .td-module-meta-info a {
    color: rgba(255, 255, 255, 0.9);
}

.td_module_hero .td-excerpt {
    font-size: 14px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.95);
    margin-top: 10px;
}

/* Hero sidebar (4 small posts - right, 2x2 grid, 50%) */
.hero-sidebar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 5px;
}

@media (max-width: 767px) {
    .hero-sidebar {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        gap: 15px;
    }

    /* Add card style to small posts on mobile */
    .td_module_small {
        border-radius: 12px;
        overflow: hidden;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        background: var(--color-white);
        height: 240px;
    }

    .td_module_small .td-module-image {
        height: 100%;
    }

    .td_module_small .td-module-image img {
        height: 100%;
        object-fit: cover;
    }
}

.td_module_small {
    position: relative;
    overflow: hidden;
    height: 100%;
}

.td_module_small .td-module-image {
    position: relative;
    overflow: hidden;
    height: 100%;
    margin-bottom: 0;
}

.td_module_small .td-module-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    min-height: 240px;
}

@media (max-width: 767px) {
    .td_module_small .td-module-image img {
        min-height: 200px;
    }
}

.td_module_small .td-module-image:hover img {
    transform: scale(1.05);
}

.td_module_small .td-module-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.3) 60%, rgba(0, 0, 0, 0) 100%);
    z-index: 1;
}

.td_module_small .td-module-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    min-height: 240px;
}

@media (max-width: 767px) {
    .td_module_small .td-module-image img {
        min-height: 200px;
    }
}

.td_module_small .td-module-image:hover img {
    transform: scale(1.05);
}

.td_module_small .item-details {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 16px;
    z-index: 2;
}

.td_module_small .td-post-category {
    background: linear-gradient(135deg, #1c3f60 0%, #0d8abc 100%);
    margin-bottom: 8px;
    font-size: 9px;
    padding: 2px 5px;
}

.td_module_small .entry-title {
    font-size: 14px;
    line-height: 1.3;
    margin-bottom: 6px;
}

.td_module_small .entry-title a {
    color: var(--color-white);
}

.td_module_small .entry-title a:hover {
    color: var(--color-primary);
}

.td_module_small .td-module-meta-info {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.85);
}

.td_module_small .td-module-meta-info a {
    color: rgba(255, 255, 255, 0.85);
}

/* ===================================================================
   CAROUSEL SLIDER - Below Hero Section
   =================================================================== */

.carousel-section {
    margin-top: 5px;
    margin-bottom: 60px;
}

.carousel-container {
    position: relative;
    overflow: hidden;
}

.carousel-wrapper {
    overflow: hidden;
    cursor: grab;
}

.carousel-wrapper:active {
    cursor: grabbing;
}

.carousel-wrapper.dragging {
    cursor: grabbing;
}

.carousel-wrapper.dragging .carousel-track {
    transition: none;
}

.carousel-track {
    display: flex;
    gap: 5px;
    transition: transform 0.4s ease-in-out;
    user-select: none;
}

.carousel-item {
    flex: 0 0 calc(25% - 4px);
    min-width: calc(25% - 4px);
}

@media (max-width: 1018px) {
    .carousel-item {
        flex: 0 0 calc(33.333% - 4px);
        min-width: calc(33.333% - 4px);
    }
}

@media (max-width: 767px) {
    .carousel-item {
        flex: 0 0 calc(100% - 0px);
        min-width: calc(100% - 0px);
    }

    .carousel-section {
        margin-bottom: 40px;
        margin-top: 20px;
    }

    .td_module_carousel {
        border-radius: 12px !important;
        overflow: hidden !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    }

    .td_module_carousel .td-module-image {
        border-radius: 12px;
        overflow: hidden;
    }

    .td_module_carousel .td-module-image img {
        height: 220px;
        border-radius: 12px;
    }

    .td_module_carousel .item-details {
        padding: 18px;
        bottom: 15px;
    }

    .td_module_carousel .entry-title {
        font-size: 14px;
    }
}

.td_module_carousel {
    position: relative;
    height: 100%;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.td_module_carousel:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.td_module_carousel .td-module-image {
    position: relative;
    overflow: hidden;
    height: 100%;
    margin-bottom: 0;
}

.td_module_carousel .td-module-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgb(255 255 255 / 15%) 0%, rgba(0, 0, 0, 0.3) 60%, rgba(0, 0, 0, 0) 100%);
    z-index: 1;
}

.td_module_carousel .td-module-image img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.td_module_carousel .td-module-image:hover img {
    transform: scale(1.05);
}

.td_module_carousel .item-details {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    padding: 16px;
    z-index: 2;
}

.td_module_carousel .td-post-category {
    background: linear-gradient(135deg, #1c3f60 0%, #0d8abc 100%);
    margin-bottom: 8px;
    font-size: 9px;
    padding: 3px 6px;
}

.td_module_carousel .entry-title {
    font-size: 15px;
    line-height: 1.3;
    margin-bottom: 6px;
}

.td_module_carousel .entry-title a {
    color: var(--color-white);
}

.td_module_carousel .entry-title a:hover {
    color: var(--color-primary);
}

.td_module_carousel .td-module-meta-info {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.9);
}

.td_module_carousel .td-module-meta-info a {
    color: rgba(255, 255, 255, 0.9);
}

/* Carousel Navigation Buttons */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.6);
    color: var(--color-white);
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    font-size: 28px;
    cursor: pointer;
    z-index: 10;
    transition: background 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.carousel-btn:hover {
    background: var(--color-primary);
}

.carousel-prev {
    left: -15px;
}

.carousel-next {
    right: -15px;
}

@media (max-width: 767px) {
    .carousel-prev {
        left: 5px;
    }

    .carousel-next {
        right: 5px;
    }

    .carousel-btn {
        width: 35px;
        height: 35px;
        font-size: 22px;
    }
}

/* Hide buttons when not needed */
.carousel-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* ===================================================================
   HORIZONTAL CARD LAYOUT - Finance & Business Sections
   =================================================================== */

.td_module_horizontal {
    display: flex;
    gap: 20px;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--color-border);
}

.td_module_horizontal:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.td_module_horizontal .td-module-image {
    flex-shrink: 0;
    width: 180px;
    margin-bottom: 0;
    position: relative;
    overflow: hidden;
}

@media (max-width: 767px) {
    .td_module_horizontal {
        flex-direction: column;
        gap: 14px;
    }

    .td_module_horizontal .td-module-image {
        width: 100%;
    }
}

.td_module_horizontal .td-module-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.td_module_horizontal .td-module-image:hover img {
    transform: scale(1.05);
}

.td_module_horizontal .item-details {
    flex: 1;
}

.td_module_horizontal .entry-title {
    font-size: 16px;
    line-height: 1.4;
    margin-bottom: 8px;
}

.td_module_horizontal .td-module-meta-info {
    font-size: 11px;
}

/* ===================================================================
   STATIC CONTENT SECTIONS - Our Mission & Priorities
   =================================================================== */

.static-section {
    background: #f9f9f9;
    padding: 40px 24px;
    margin-left: -24px;
    margin-right: -24px;
}

.static-section .section-title {
    margin-bottom: 24px;
}

.mission-content,
.priorities-content {
    max-width: 800px;
    margin: 0 auto;
}

.mission-content p,
.priorities-content p {
    font-size: 16px;
    line-height: 1.7;
    color: var(--color-text);
    margin-bottom: 21px;
}

.mission-content p:last-child,
.priorities-content>p:last-child {
    margin-bottom: 0;
}

.priorities-list {
    list-style: none;
    padding: 0;
    margin: 21px 0;
}

.priorities-list li {
    font-size: 16px;
    line-height: 1.7;
    color: var(--color-text);
    margin-bottom: 14px;
    padding-left: 0;
}

.priorities-list li strong {
    color: var(--color-darker);
}

.content-priorities-section {
    background: var(--color-white);
}

@media (max-width: 767px) {
    .static-section {
        padding: 30px 14px;
        margin-left: -14px;
        margin-right: -14px;
    }

    .mission-content p,
    .priorities-content p,
    .priorities-list li {
        font-size: 15px;
    }
}

/* ===================================================================
   FEATURED SECTION ENHANCEMENTS (Crypto & Stocks)
   =================================================================== */

/* Override grid styles for featured section */
.featured-section .td_module_1 .entry-title a,
.featured-section .td-post-category,
.featured-section .td-module-meta-info,
.featured-section .td-module-meta-info a {
    color: var(--color-white);
}

.featured-section .td_module_1 .entry-title a:hover {
    color: var(--color-primary);
}

.featured-section .td-post-category {
    background: rgba(255, 255, 255, 0.2);
}

.featured-section .td-post-category:hover {
    background: var(--color-primary);
}

/* ===================================================================
   EDITOR'S PICKS SECTION
   =================================================================== */

.editors-picks-section {
    background: #f9f9f9;
    padding: 60px 0;
}

.editors-picks-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

@media (max-width: 767px) {
    .editors-picks-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .editors-picks-section {
        padding: 40px 0;
    }
}

/* Adjust horizontal cards in editor's picks */
.editors-picks-grid .td_module_horizontal {
    background: var(--color-white);
    padding: 20px;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.editors-picks-grid .td_module_horizontal:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

/* ===================================================================
   NEWSLETTER SIGNUP SECTION
   =================================================================== */

.newsletter-section {
    background: linear-gradient(135deg, #1c3f60 0%, #2a5a82 100%);
    padding: 60px 0;
    margin-top: 40px;
    margin-bottom: 40px;
}

@media (max-width: 767px) {
    .newsletter-section {
        padding: 40px 0;
    }
}

.newsletter-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    padding: 0 20px;
}

.newsletter-title {
    font-size: 36px;
    font-weight: 800;
    color: var(--color-white);
    margin: 0 0 16px 0;
    line-height: 1.2;
}

@media (max-width: 767px) {
    .newsletter-title {
        font-size: 28px;
    }
}

.newsletter-description {
    font-size: 18px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 30px;
}

@media (max-width: 767px) {
    .newsletter-description {
        font-size: 16px;
    }
}

.newsletter-form-wrapper {
    max-width: 600px;
    margin: 0 auto;
}

.newsletter-input-group {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
}

@media (max-width: 767px) {
    .newsletter-input-group {
        flex-direction: column;
        gap: 12px;
    }
}

.newsletter-email-input {
    flex: 1;
    padding: 16px 20px;
    font-size: 16px;
    border: none;
    border-radius: 4px;
    outline: none;
    font-family: var(--font-body);
}

.newsletter-email-input:focus {
    box-shadow: 0 0 0 3px rgba(77, 178, 236, 0.3);
}

.newsletter-submit-btn {
    padding: 16px 32px;
    background: var(--color-primary-accessible);
    color: var(--color-white);
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
    font-family: var(--font-body);
    white-space: nowrap;
}

.newsletter-submit-btn:hover {
    background: #095580;
    transform: translateY(-2px);
}

.newsletter-submit-btn:focus {
    outline: 3px solid #095580;
    outline-offset: 2px;
}

.newsletter-submit-btn:active {
    transform: translateY(0);
}

@media (max-width: 767px) {
    .newsletter-submit-btn {
        width: 100%;
        padding: 16px;
    }
}

.newsletter-privacy {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

/* ===================================================================
   CONSISTENT WIDTH ALIGNMENT FOR ALL SECTIONS
   =================================================================== */

/* Ensure all homepage sections have consistent container width */
.homepage-section .td-pb-span12 {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0;
}

/* Override for full-width sections (dark backgrounds) */
.featured-section .td-pb-span12,
.newsletter-section .td-pb-span12 {
    max-width: 100%;
    padding: 0;
}

/* But keep content within max-width */
.featured-section .td-block-row {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 21px;
}

/* Section title consistent spacing */
.homepage-section .section-title {
    padding-left: 0;
    padding-right: 0;
}

/* Technology section - ensure grid alignment */
.homepage-section .td-block-row {
    width: 100%;
}

/* Responsive padding for screens 768px - 1200px */
@media (max-width: 1200px) and (min-width: 768px) {
    .homepage-section .td-pb-span12 {
        padding: 0 21px;
    }

    .featured-section .td-block-row {
        padding: 0 21px;
    }

    .td-container {
        padding: 0 21px;
    }

    .td-pb-row {
        margin: 0 -21px;
    }
}

/* Mobile padding for screens below 768px */
@media (max-width: 767px) {
    .homepage-section .td-pb-span12 {
        padding: 0 14px;
    }

    .featured-section .td-block-row {
        padding: 0 14px;
    }

    /* Ensure all homepage sections have consistent padding */
    .td-container {
        padding: 0 14px;
    }

    .td-pb-row {
        margin: 0 -14px;
    }
}

/* ===================================================================
   FOOTER
   =================================================================== */

/* Main Footer */
.site-footer {
    background: #1a1a1a;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    line-height: 1.6;
}

.footer-main {
    background: #1a1a1a;
    padding: 60px 0 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

@media (max-width: 767px) {
    .footer-main {
        padding: 40px 0 30px;
    }
}

/* Footer Container */
.footer-main .td-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 21px;
}

@media (max-width: 767px) {
    .footer-main .td-container {
        padding: 0 14px;
    }
}

/* Footer Widgets Grid */
.footer-widgets {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

@media (max-width: 1018px) {
    .footer-widgets {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

@media (max-width: 767px) {
    .footer-widgets {
        grid-template-columns: 1fr;
        gap: 35px;
    }
}

/* Footer Widget Title */
.footer-widget-title {
    color: var(--color-white);
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 20px;
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* About Column */
.footer-about-text {
    margin-bottom: 20px;
    line-height: 1.7;
}

/* Footer Links */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
    display: inline-block;
}

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

/* Social Media Icons */
.footer-social {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.footer-social-icon {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.footer-social-icon svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.footer-social-icon:hover {
    color: var(--color-primary);
    transform: translateY(-2px);
}

/* Footer Newsletter */
.footer-newsletter-text {
    margin-bottom: 15px;
    line-height: 1.6;
}

.footer-newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-newsletter-input {
    padding: 12px 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    color: var(--color-white);
    font-size: 14px;
    font-family: var(--font-body);
    outline: none;
    transition: all 0.3s ease;
}

.footer-newsletter-input:focus {
    border-color: var(--color-primary);
    background: rgba(255, 255, 255, 0.08);
}

.footer-newsletter-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.footer-newsletter-btn {
    padding: 12px 20px;
    background: var(--color-primary-accessible);
    color: var(--color-white);
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--font-body);
}

.footer-newsletter-btn:hover {
    background: #095580;
    transform: translateY(-2px);
}

.footer-newsletter-btn:focus {
    outline: 3px solid #095580;
    outline-offset: 2px;
}

.footer-newsletter-btn:active {
    transform: translateY(0);
}

/* Bottom Footer */
.footer-bottom {
    background: #0f0f0f;
    padding: 25px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

@media (max-width: 767px) {
    .footer-bottom {
        padding: 20px 0;
    }
}

.footer-bottom .td-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 21px;
}

@media (max-width: 767px) {
    .footer-bottom .td-container {
        padding: 0 14px;
    }
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

@media (max-width: 767px) {
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
}

.footer-copyright {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
}

.footer-copyright a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: underline;
    text-decoration-color: rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

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

/* Footer Bottom Menu */
.footer-bottom-menu {
    font-size: 13px;
}

.footer-menu-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 20px;
}

@media (max-width: 767px) {
    .footer-menu-links {
        flex-direction: column;
        gap: 10px;
    }
}

.footer-menu-links li {
    margin: 0;
}

.footer-menu-links a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-menu-links a:hover {
    color: var(--color-primary);
}

/* ===================================================================
   FOOTER - MOBILE RESPONSIVE (767px and below)
   =================================================================== */
@media (max-width: 767px) {

    /* Footer main padding */
    .footer-main {
        padding: 40px 0 30px;
    }

    /* Footer widgets - 2 column grid for Categories and Quick Links */
    .footer-widgets {
        display: grid;
        grid-template-columns: 1fr 1fr;
        /* Two equal columns */
        gap: 30px 20px;
        text-align: center;
        /* Center align all content */
    }

    /* About section - full width, first row */
    .footer-about {
        grid-column: 1 / -1;
        /* Span both columns */
        order: 1;
    }

    /* Categories - left column, second row */
    .footer-categories {
        order: 2;
    }

    /* Quick Links - right column, second row */
    .footer-links-widget {
        order: 3;
    }

    /* Newsletter - full width, third row */
    .footer-newsletter {
        grid-column: 1 / -1;
        /* Span both columns */
        order: 4;
    }

    /* Center align all footer widget titles */
    .footer-widget-title {
        text-align: center;
        font-size: 15px;
        margin-bottom: 15px;
    }

    /* Center align about text */
    .footer-about-text {
        text-align: center;
        max-width: 100%;
        margin: 0 auto 20px;
    }

    /* Center align footer links */
    .footer-links {
        text-align: center;
    }

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

    /* Center align social icons */
    .footer-social {
        justify-content: center;
    }

    /* Newsletter form */
    .footer-newsletter-text {
        text-align: center;
        max-width: 100%;
        margin: 0 auto 15px;
    }

    .footer-newsletter-form {
        max-width: 100%;
        margin: 0 auto;
    }

    /* Footer bottom - stack on mobile */
    .footer-bottom {
        padding: 20px 0;
    }

    .footer-bottom-content {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .footer-copyright {
        text-align: center;
    }

    .footer-menu-links {
        flex-direction: column;
        gap: 10px;
    }

    .footer-menu-links li::after {
        display: none;
        /* Remove separator dots on mobile */
    }
}

/* Extra small mobile - single column (only for very tiny screens) */
@media (max-width: 360px) {
    .footer-widgets {
        grid-template-columns: 1fr;
        /* Single column on very small screens */
        gap: 25px;
    }

    /* All widgets full width */
    .footer-about,
    .footer-categories,
    .footer-links-widget,
    .footer-newsletter {
        grid-column: 1;
    }

    .footer-categories {
        order: 2;
    }

    .footer-links-widget {
        order: 3;
    }
}

/* Optimize spacing for iPhone sizes (361px - 480px) */
@media (min-width: 361px) and (max-width: 480px) {
    .footer-widgets {
        gap: 25px 15px;
        /* Tighter horizontal gap for smaller screens */
    }

    .footer-widget-title {
        font-size: 14px;
    }

    .footer-links li {
        font-size: 13px;
    }
}

/* ===================================================================
   CATEGORY PAGES - ENHANCED LAYOUT
   =================================================================== */

/* Category Header Banner */
.category-header-banner {
    background: linear-gradient(135deg, var(--color-primary) 0%, #1e293b 100%);
    padding: 60px 40px;
    margin-bottom: 40px;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    width: 100%;
}

.category-header-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="rgba(255,255,255,0.05)"/></svg>');
    background-size: 100px 100px;
    opacity: 0.1;
}

.category-header-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.category-icon {
    font-size: 48px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 16px;
}

.category-title {
    font-size: 42px;
    font-weight: 700;
    color: var(--color-white);
    margin: 0 0 12px 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.category-description {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.85);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Override category-description when used in author box */
.author-box-wrap .category-description,
.author-box .category-description,
article .author-box-wrap .category-description,
.post .author-box-wrap .category-description {
    font-size: 14px !important;
    color: #555 !important;
    max-width: 100% !important;
    margin: 0 !important;
    text-align: left !important;
}

.category-header-widgets {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 3;
}

.live-ticker {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 8px 16px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ticker-label {
    color: var(--color-white);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.ticker-animation {
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(1.2);
    }
}

/* Featured Post */
.category-featured-post {
    margin-bottom: 40px;
    background: var(--color-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.category-featured-post:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.featured-image-wrapper {
    position: relative;
    overflow: hidden;
}

.featured-image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.category-featured-post:hover .featured-image {
    transform: scale(1.05);
}

.featured-badge-overlay {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 2;
}

.featured-content {
    padding: 32px 32px 0px 32px;
}

.featured-title {
    font-size: 32px;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 16px 0;
}

.featured-title a {
    color: var(--color-text);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.featured-excerpt {
    font-size: 16px;
    line-height: 1.7;
    color: var(--color-text-light);
    margin-bottom: 20px;
}

.featured-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    font-size: 14px;
    color: var(--color-text-light);
}

.featured-meta .read-time {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Grid Posts */
.category-grid-posts {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.grid-post-card {
    background: var(--color-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.grid-post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.grid-card-image {
    position: relative;
    overflow: hidden;
}

.grid-card-image img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.grid-post-card:hover .grid-thumbnail {
    transform: scale(1.1);
}

.grid-card-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
}

.grid-card-content {
    padding: 24px;
}

.grid-card-title {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
    margin: 0 0 12px 0;
}

.grid-card-title a {
    color: var(--color-text);
    text-decoration: none;
    transition: color 0.3s ease;
}

.grid-card-title a:hover {
    color: var(--color-primary);
}

.grid-card-excerpt {
    font-size: 14px;
    line-height: 1.6;
    color: var(--color-text-light);
    margin-bottom: 16px;
}

.grid-card-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    font-size: 12px;
    color: var(--color-text-light);
}

.grid-card-meta>span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.grid-card-meta i {
    opacity: 0.7;
}

/* Trending Posts Sidebar Widget */
.trending-posts-widget {
    background: var(--color-white);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.trending-posts-widget .widget-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 20px 0;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--color-border);
}

.trending-posts-widget .widget-title i {
    color: #f97316;
}

.trending-posts-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.trending-post-item {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--color-border);
}

.trending-post-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.trending-number {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--color-primary), #3b82f6);
    color: var(--color-white);
    font-weight: 700;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
}

.trending-post-content {
    flex: 1;
}

.trending-post-title {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    margin: 0 0 6px 0;
}

.trending-post-title a {
    color: var(--color-text);
    text-decoration: none;
    transition: color 0.3s ease;
}

.trending-post-title a:hover {
    color: var(--color-primary);
}

.trending-post-meta {
    font-size: 12px;
    color: var(--color-text-light);
}

/* No Posts Found */
.no-posts-found {
    text-align: center;
    padding: 60px 20px;
    background: var(--color-white);
    border-radius: 12px;
}

.no-posts-found i {
    font-size: 64px;
    color: var(--color-border);
    margin-bottom: 16px;
}

.no-posts-found p {
    font-size: 16px;
    color: var(--color-text-light);
    margin: 0;
}

/* ===================================================================
   CATEGORY-SPECIFIC THEMING
   =================================================================== */

/* Finance & Investment Category */
.category-finance .category-header-banner {
    background: linear-gradient(135deg, #1e3a8a 0%, #0f172a 100%);
}

.category-finance .category-header-banner::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 100"><path d="M0,50 Q50,20 100,50 T200,50" fill="none" stroke="rgba(245,158,11,0.2)" stroke-width="2"/></svg>');
    opacity: 0.3;
}

.category-finance .category-icon {
    color: #f59e0b;
}

.category-finance .td-post-category,
.category-finance .grid-card-badge .td-post-category {
    background: linear-gradient(135deg, #1e3a8a, #3b82f6);
    color: var(--color-white);
    border: 2px solid #f59e0b;
}

.category-finance .trending-number {
    background: linear-gradient(135deg, #1e3a8a, #3b82f6);
}

.category-finance .featured-title {
    font-family: Georgia, serif;
}

/* Technology Category */
.category-technology .category-header-banner {
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
}

.category-technology .category-header-banner::before {
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><rect x="10" y="10" width="30" height="30" fill="rgba(255,255,255,0.05)"/><rect x="60" y="10" width="30" height="30" fill="rgba(255,255,255,0.05)"/><rect x="10" y="60" width="30" height="30" fill="rgba(255,255,255,0.05)"/><rect x="60" y="60" width="30" height="30" fill="rgba(255,255,255,0.05)"/></svg>');
    background-size: 50px 50px;
}

.category-technology .category-icon {
    color: #8b5cf6;
    animation: techGlow 3s infinite alternate;
}

@keyframes techGlow {
    from {
        text-shadow: 0 0 10px rgba(139, 92, 246, 0.5);
    }

    to {
        text-shadow: 0 0 20px rgba(139, 92, 246, 0.8);
    }
}

.category-technology .td-post-category,
.category-technology .grid-card-badge .td-post-category {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    color: var(--color-white);
}

.category-technology .trending-number {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
}

.category-technology .grid-post-card,
.category-technology .category-featured-post {
    border: 1px solid rgba(139, 92, 246, 0.1);
}

/* Crypto & NFT Category */
.category-crypto-nft .category-header-banner {
    background: linear-gradient(135deg, #059669 0%, #0f766e 100%);
}

.category-crypto-nft .category-header-banner::before {
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><polygon points="50,10 90,30 90,70 50,90 10,70 10,30" fill="none" stroke="rgba(16,185,129,0.2)" stroke-width="2"/></svg>');
    background-size: 80px 80px;
}

.category-crypto-nft .category-icon {
    color: #10b981;
    animation: cryptoSpin 10s linear infinite;
}

@keyframes cryptoSpin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.category-crypto-nft .td-post-category,
.category-crypto-nft .grid-card-badge .td-post-category {
    background: linear-gradient(135deg, #10b981, #059669);
    color: var(--color-white);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
}

.category-crypto-nft .trending-number {
    background: linear-gradient(135deg, #10b981, #059669);
}

.category-crypto-nft .grid-post-card,
.category-crypto-nft .category-featured-post {
    background: rgba(16, 185, 129, 0.02);
    backdrop-filter: blur(10px);
}

.category-crypto-nft .live-ticker {
    background: rgba(16, 185, 129, 0.2);
}

/* Business & Leadership Category */
.category-business .category-header-banner {
    background: linear-gradient(135deg, #374151 0%, #1f2937 100%);
}

.category-business .category-icon {
    color: #2563eb;
}

.category-business .td-post-category,
.category-business .grid-card-badge .td-post-category {
    background: linear-gradient(135deg, #2563eb, #1e40af);
    color: var(--color-white);
}

.category-business .trending-number {
    background: linear-gradient(135deg, #2563eb, #1e40af);
}

.category-business .featured-title,
.category-business .grid-card-title {
    font-family: 'Georgia', serif;
}

/* Insurance Category */
.category-insurance .category-header-banner {
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
}

.category-insurance .category-icon {
    color: #059669;
}

.category-insurance .td-post-category,
.category-insurance .grid-card-badge .td-post-category {
    background: linear-gradient(135deg, #0284c7, #059669);
    color: var(--color-white);
}

.category-insurance .trending-number {
    background: linear-gradient(135deg, #0284c7, #059669);
}

.category-insurance .grid-post-card,
.category-insurance .category-featured-post {
    border-left: 4px solid #0284c7;
}

/* Stocks & Trading Category */
.category-stocks-trading .category-header-banner {
    background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
}

.category-stocks-trading .category-icon {
    color: #f59e0b;
}

.category-stocks-trading .td-post-category,
.category-stocks-trading .grid-card-badge .td-post-category {
    background: linear-gradient(135deg, #dc2626, #f59e0b);
    color: var(--color-white);
}

.category-stocks-trading .trending-number {
    background: linear-gradient(135deg, #dc2626, #f59e0b);
}

.category-stocks-trading .live-ticker {
    background: rgba(220, 38, 38, 0.2);
}

/* ===================================================================
   CATEGORY PAGE RESPONSIVE
   =================================================================== */

@media (max-width: 1024px) {
    .category-grid-posts {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .category-title {
        font-size: 36px;
    }

    .featured-title {
        font-size: 28px;
    }
}

@media (max-width: 768px) {
    .category-header-banner {
        padding: 40px 24px;
        margin-bottom: 24px;
    }

    .category-icon {
        font-size: 36px;
    }

    .category-title {
        font-size: 28px;
    }

    .category-description {
        font-size: 16px;
    }

    .category-grid-posts {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .featured-content {
        padding: 24px;
    }

    .featured-title {
        font-size: 24px;
    }

    .featured-excerpt {
        font-size: 15px;
    }

    .category-header-widgets {
        position: static;
        margin-top: 20px;
        text-align: center;
    }

    .live-ticker {
        display: inline-flex;
    }

    .grid-card-image img {
        height: 200px;
    }

    .trending-posts-widget {
        margin-top: 24px;
    }
}

@media (max-width: 480px) {
    .category-header-banner {
        padding: 32px 20px;
    }

    .category-title {
        font-size: 24px;
    }

    .featured-meta {
        gap: 12px;
    }

    .featured-meta>span {
        font-size: 13px;
    }

    .grid-card-content {
        padding: 20px;
    }

    .grid-card-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}

/* Category Page - Full Width Alignment */
.category-page.td-pb-row {
    margin-left: 0;
    margin-right: 0;
}

.category-page .td-pb-span8,
.category-page .td-pb-span4 {
    padding-left: var(--spacing-unit);
    padding-right: var(--spacing-unit);
}

/* ===================================================================
   AUTHOR PAGE - Redesigned with Round Avatar
   =================================================================== */

/* Author Header Wrapper - Horizontal Layout */
.author-header-wrapper {
    display: flex;
    align-items: center;
    gap: 30px;
    position: relative;
    z-index: 2;
}

/* Round Author Avatar */
.author-avatar-circle {
    flex-shrink: 0;
}

.author-avatar-img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    display: block;
    object-fit: cover;
    background: rgba(255, 255, 255, 0.1);
}

/* Author Info Content */
.author-info-content {
    flex: 1;
    text-align: left;
}

.author-page .author-title {
    text-align: left;
    margin-bottom: 12px;
    font-size: 32px;
}

.author-page .author-description,
.author-page .author-description.category-description,
.author-page .category-description {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.85) !important;
    max-width: 600px;
    margin: 0 0 16px 0;
    line-height: 1.6;
    text-align: left;
}

/* Author Meta Row (Stats + Website) */
.author-meta-row {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
    margin-top: 16px;
}

.author-stat {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.15);
    padding: 10px 18px;
    border-radius: 8px;
    backdrop-filter: blur(10px);
}

.stat-icon {
    font-size: 20px;
    line-height: 1;
}

.stat-text {
    color: rgba(255, 255, 255, 0.95);
    font-size: 15px;
    line-height: 1;
}

.stat-text strong {
    color: #fff;
    font-weight: 700;
}

.author-website-link a {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    background: rgba(255, 255, 255, 0.1);
    padding: 10px 18px;
    border-radius: 8px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.author-website-link a:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.website-icon {
    font-size: 18px;
    line-height: 1;
}

.website-text {
    font-size: 14px;
    font-weight: 500;
}

/* Mobile Responsive - Author Page */
@media (max-width: 767px) {
    .author-header-wrapper {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .author-avatar-img {
        width: 100px;
        height: 100px;
        border-width: 3px;
    }

    .author-info-content {
        text-align: center;
    }

    .author-page .author-title {
        text-align: center;
        font-size: 26px;
    }

    .author-page .author-description {
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }

    .author-meta-row {
        justify-content: center;
        gap: 12px;
    }

    .author-stat,
    .author-website-link a {
        padding: 8px 14px;
        font-size: 14px;
    }

    .stat-icon,
    .website-icon {
        font-size: 16px;
    }

    .stat-text {
        font-size: 14px;
    }

    .website-text {
        font-size: 13px;
    }
}

/* Tablet Responsive - Author Page */
@media (max-width: 1018px) and (min-width: 768px) {
    .author-avatar-img {
        width: 100px;
        height: 100px;
    }

    .author-page .author-title {
        font-size: 28px;
    }

    .author-header-wrapper {
        gap: 24px;
    }
}

/* ===================================================================
   PAGE TEMPLATE STYLES (About Us, Contact, etc.)
   =================================================================== */

.page-content {
    background: #fff;
    padding: 40px 0;
}

.page-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 3px solid var(--color-primary);
}

.page-title {
    font-size: 36px;
    font-weight: 700;
    color: var(--color-heading);
    margin: 0;
    line-height: 1.3;
}

.page-content-wrapper {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
}

.page-content-wrapper h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--color-heading);
    margin: 30px 0 20px 0;
    line-height: 1.4;
}

.page-content-wrapper h3 {
    font-size: 22px;
    font-weight: 600;
    color: var(--color-heading);
    margin: 25px 0 15px 0;
}

.page-content-wrapper p {
    margin: 0 0 20px 0;
    line-height: 1.8;
}

.page-content-wrapper ul,
.page-content-wrapper ol {
    margin: 0 0 25px 0;
    padding-left: 30px;
}

.page-content-wrapper li {
    margin-bottom: 12px;
    line-height: 1.7;
}

.page-content-wrapper a {
    color: #1c3f60;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.page-content-wrapper a:hover {
    color: #0d8abc;
}

.page-content-wrapper strong {
    font-weight: 600;
    color: var(--color-heading);
}

/* Page responsive */
@media (max-width: 767px) {
    .page-content {
        padding: 20px 0;
    }

    .page-title {
        font-size: 28px;
    }

    .page-content-wrapper h2 {
        font-size: 22px;
    }

    .page-content-wrapper h3 {
        font-size: 18px;
    }

    .page-content-wrapper {
        font-size: 15px;
    }
}


/* ===================================================================
   SVG ICON STYLING (Replaces Font Awesome)
   =================================================================== */

/* Ensure SVG icons inherit color and align properly */
svg {
    display: inline-block;
    vertical-align: middle;
    fill: currentColor;
}

/* Icon spacing adjustments */
.author-expertise svg,
.author-articles-count svg {
    margin-right: 4px;
}


/* ===================================================================
   TABLE OF CONTENTS (TOC) - Simple Always Visible
   =================================================================== */

.table-of-contents {
    background: #f8f9fa;
    border: 2px solid var(--color-primary);
    border-radius: 8px;
    padding: 20px;
    margin: 30px 0;
}

.toc-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--color-dark);
    margin-bottom: 15px;
}

/* TOC List */
.toc-list {
    margin: 0;
    padding-left: 20px;
    list-style: decimal;
}

.toc-item,
.toc-item-sub {
    margin: 8px 0;
}

.toc-item a {
    color: var(--color-text);
    text-decoration: none;
    font-size: 15px;
    line-height: 1.6;
    transition: color 0.3s ease;
    display: inline;
    /* Change from block to inline to keep number and text on same line */
}

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

/* Sub-items (H3) */
.toc-item-sub {
    margin-left: 20px;
    list-style-type: lower-alpha;
}

.toc-item-sub a {
    font-size: 14px;
    color: var(--color-meta);
}

.toc-item-sub a:hover {
    color: var(--color-primary);
}

/* Mobile responsive */
@media (max-width: 767px) {
    .table-of-contents {
        padding: 15px;
        margin: 20px 0;
    }

    .toc-title {
        font-size: 16px;
    }

    .toc-item a {
        font-size: 14px;
    }

    .toc-item-sub a {
        font-size: 13px;
    }
}

/* ===================================================================
   FAQ ACCORDION (HTML5 Details/Summary)
   =================================================================== */

.faq-accordion {
    margin: 40px 0;
    max-width: 100%;
}

.faq-accordion details {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    margin-bottom: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.faq-accordion details:hover {
    border-color: var(--color-primary);
    box-shadow: 0 4px 12px rgba(13, 138, 188, 0.12);
    transform: translateY(-2px);
}

.faq-accordion details[open] {
    border-color: var(--color-primary);
    background: linear-gradient(to bottom, #f8fcff 0%, #ffffff 100%);
}

.faq-accordion summary {
    position: relative;
    padding: 20px 60px 20px 24px;
    cursor: pointer;
    user-select: none;
    list-style: none;
    transition: all 0.3s ease;
    background: transparent;
}

/* Remove default marker */
.faq-accordion summary::-webkit-details-marker {
    display: none;
}

.faq-accordion summary::marker {
    display: none;
}

.faq-accordion summary:hover {
    background: #f8f9fa;
}

.faq-accordion details[open] summary {
    background: linear-gradient(135deg, rgba(13, 138, 188, 0.05) 0%, rgba(13, 138, 188, 0.02) 100%);
    border-bottom: 1px solid #e5e7eb;
}

/* Question heading inside summary */
.faq-accordion summary h3 {
    margin: 0;
    font-size: 17px;
    font-weight: 600;
    color: var(--color-dark);
    line-height: 1.5;
    transition: color 0.3s ease;
    display: inline;
}

.faq-accordion summary:hover h3 {
    color: var(--color-primary);
}

.faq-accordion details[open] summary h3 {
    color: var(--color-primary);
}

/* Custom chevron icon */
.faq-accordion summary::after {
    content: '';
    position: absolute;
    right: 24px;
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
    width: 10px;
    height: 10px;
    border-right: 2.5px solid var(--color-primary);
    border-bottom: 2.5px solid var(--color-primary);
    transition: all 0.3s ease;
}

/* Rotate chevron when open */
.faq-accordion details[open] summary::after {
    transform: translateY(-50%) rotate(225deg);
}

/* Answer content */
.faq-accordion details p {
    padding: 24px 24px 20px 24px;
    margin: 0;
    color: var(--color-text);
    font-size: 15px;
    line-height: 1.8;
    animation: fadeIn 0.4s ease;
}

/* Fade-in animation for answer */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Number badge (optional - add data-number to details element) */
.faq-accordion details[data-number]::before {
    content: attr(data-number);
    position: absolute;
    left: 24px;
    top: 20px;
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--color-primary), #0a6a93);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    z-index: 1;
}

.faq-accordion details[data-number] summary {
    padding-left: 68px;
}

/* Mobile responsive */
@media (max-width: 767px) {
    .faq-accordion {
        margin: 30px 0;
    }

    .faq-accordion details {
        border-radius: 10px;
        margin-bottom: 12px;
    }

    .faq-accordion summary {
        padding: 16px 50px 16px 20px;
    }

    .faq-accordion summary h3 {
        font-size: 15px;
    }

    .faq-accordion summary::after {
        right: 20px;
        width: 9px;
        height: 9px;
        border-width: 2px;
    }

    .faq-accordion details p {
        padding: 20px 20px 16px 20px;
        font-size: 14px;
        line-height: 1.7;
    }

    .faq-accordion details[data-number]::before {
        left: 20px;
        top: 16px;
        width: 28px;
        height: 28px;
        font-size: 12px;
    }

    .faq-accordion details[data-number] summary {
        padding-left: 60px;
    }
}

/* ===================================================================
   FAQ ACCORDION / SPOILERS (Shortcodes Ultimate Compatibility)
   =================================================================== */

.su-accordion {
    margin: 30px 0;
}

.su-spoiler {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    margin-bottom: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.su-spoiler:hover {
    border-color: var(--color-primary);
    box-shadow: 0 2px 8px rgba(13, 138, 188, 0.1);
}

.su-spoiler-title {
    position: relative;
    padding: 18px 50px 18px 20px;
    font-size: 16px;
    font-weight: 600;
    color: var(--color-dark);
    cursor: pointer;
    user-select: none;
    transition: all 0.3s ease;
    line-height: 1.5;
}

.su-spoiler-title:hover {
    background: #f8f9fa;
    color: var(--color-primary);
}

/* Chevron icon */
.su-spoiler-icon {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    transition: transform 0.3s ease;
}

.su-spoiler-icon::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(45deg);
    width: 8px;
    height: 8px;
    border-right: 2px solid var(--color-primary);
    border-bottom: 2px solid var(--color-primary);
    transition: all 0.3s ease;
}

/* Rotate chevron when open */
.su-spoiler:not(.su-spoiler-closed) .su-spoiler-icon::before {
    transform: translate(-50%, -50%) rotate(225deg);
}

.su-spoiler-content {
    padding: 0 20px 20px 20px;
    color: var(--color-text);
    font-size: 15px;
    line-height: 1.7;
    transition: all 0.3s ease;
}

/* Closed state */
.su-spoiler-closed .su-spoiler-content {
    display: none;
    padding: 0 20px;
}

/* Better styling for paragraphs inside FAQ content */
.su-spoiler-content p {
    margin: 0 0 12px 0;
}

.su-spoiler-content p:last-child {
    margin-bottom: 0;
}

/* Mobile responsive */
@media (max-width: 767px) {
    .su-spoiler-title {
        padding: 15px 45px 15px 16px;
        font-size: 15px;
    }

    .su-spoiler-content {
        padding: 0 16px 16px 16px;
        font-size: 14px;
    }

    .su-spoiler-icon {
        right: 16px;
    }
}