/**
 * Blog Single Article Hero Section
 * Exact match to screenshot design
 * Version: 3.0
 */

/* ========================================
   CSS Custom Properties (Variables)
   ======================================== */
:root {
    --header-bg: #0d0e1a;
    --header-border: #0B24FB;
    --hero-accent-blue: #0B24FB;
    --hero-accent-glow: rgba(11, 36, 251, 0.4);
    --hero-text-white: #ffffff;
    --hero-text-muted: rgba(255, 255, 255, 0.7);
    --hero-tag-bg: rgba(11, 36, 251, 0.2);
    --hero-tag-border: rgba(11, 36, 251, 0.5);
    --trending-bg: #f8f9fc;
    --trending-number: rgba(11, 36, 251, 0.08);
    --transition-smooth: cubic-bezier(0.4, 0, 0.2, 1);
    --header-height: 91px;
}

/* ========================================
   Reading Progress Bar - ABOVE HEADER
   ======================================== */
.reading-progress-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(13, 14, 26, 0.3);
    z-index: 1002;
    pointer-events: none;
}

.reading-progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #0B24FB 0%, #6366f1 50%, #8b5cf6 100%);
    border-radius: 0 3px 3px 0;
    transition: width 0.15s ease-out;
    box-shadow:
        0 0 10px rgba(11, 36, 251, 0.8),
        0 0 20px rgba(99, 102, 241, 0.6),
        0 0 30px rgba(139, 92, 246, 0.4);
}

/* ========================================
   Body & Content Adjustments (only for blog posts with hero)
   ======================================== */
body.single-post.page-template-page-header-dark #content {
    padding-top: 0 !important;
}

/* ========================================
   HEADER - TRANSPARENT DARK (for homepage, about, our-team, contacts)
   Transparent at top, dark on hover or scroll
   Higher specificity to override page-template-page-header-dark when both present
   ======================================== */

/* Base state - position and transitions */
body.page-template-page-header-dark-transparent #header,
body.page-template-page-header-dark.page-template-page-header-dark-transparent #header {
    position: fixed !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 1000 !important;
    border-bottom: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    box-shadow: none !important;
    transition: background 0.3s ease !important;
}

/* At top (not scrolled) - transparent */
body.page-template-page-header-dark-transparent #header.header-noscrolled,
body.page-template-page-header-dark.page-template-page-header-dark-transparent #header.header-noscrolled {
    background: transparent !important;
    background-color: transparent !important;
}

/* At top + hover - dark */
body.page-template-page-header-dark-transparent #header.header-noscrolled:hover,
body.page-template-page-header-dark.page-template-page-header-dark-transparent #header.header-noscrolled:hover {
    background: #0d0e1a !important;
    background-color: #0d0e1a !important;
}

/* Scrolled - always dark */
body.page-template-page-header-dark-transparent #header.header-scrolled,
body.page-template-page-header-dark.page-template-page-header-dark-transparent #header.header-scrolled {
    background: #0d0e1a !important;
    background-color: #0d0e1a !important;
}

/* Gradient line - base (hidden) */
body.page-template-page-header-dark-transparent #header::after,
body.page-template-page-header-dark.page-template-page-header-dark-transparent #header::after {
    content: '' !important;
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 4px !important;
    z-index: 1 !important;
    transition: background 0.3s ease !important;
}

/* At top (not scrolled) - no gradient */
body.page-template-page-header-dark-transparent #header.header-noscrolled::after,
body.page-template-page-header-dark.page-template-page-header-dark-transparent #header.header-noscrolled::after {
    background: transparent !important;
}

/* At top + hover - show gradient */
body.page-template-page-header-dark-transparent #header.header-noscrolled:hover::after,
body.page-template-page-header-dark.page-template-page-header-dark-transparent #header.header-noscrolled:hover::after {
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(11, 36, 251, 0.3) 15%,
        rgba(11, 36, 251, 0.7) 25%,
        rgb(69, 75, 144) 50%,
        rgba(11, 36, 251, 0.7) 75%,
        rgba(11, 36, 251, 0.3) 85%,
        transparent 100%
    ) !important;
}

/* Scrolled - always show gradient */
body.page-template-page-header-dark-transparent #header.header-scrolled::after,
body.page-template-page-header-dark.page-template-page-header-dark-transparent #header.header-scrolled::after {
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(11, 36, 251, 0.3) 15%,
        rgba(11, 36, 251, 0.7) 25%,
        rgb(69, 75, 144) 50%,
        rgba(11, 36, 251, 0.7) 75%,
        rgba(11, 36, 251, 0.3) 85%,
        transparent 100%
    ) !important;
}

/* TRANSPARENT DARK - Logo white */
body.page-template-page-header-dark-transparent #header-logo,
body.page-template-page-header-dark.page-template-page-header-dark-transparent #header-logo {
    background-image: url('../images/logo.png') !important;
}

/* TRANSPARENT DARK - Menu items white */
body.page-template-page-header-dark-transparent #main_menu .main_list,
body.page-template-page-header-dark.page-template-page-header-dark-transparent #main_menu .main_list {
    opacity: 1 !important;
}

body.page-template-page-header-dark-transparent #main_menu .main_list a,
body.page-template-page-header-dark-transparent #main_menu .main_list > span,
body.page-template-page-header-dark.page-template-page-header-dark-transparent #main_menu .main_list a,
body.page-template-page-header-dark.page-template-page-header-dark-transparent #main_menu .main_list > span {
    color: #fff !important;
    font-weight: 400 !important;
    font-size: 16px !important;
}

body.page-template-page-header-dark-transparent #main_menu .main_list:hover a,
body.page-template-page-header-dark-transparent #main_menu .main_list:hover > span,
body.page-template-page-header-dark.page-template-page-header-dark-transparent #main_menu .main_list:hover a,
body.page-template-page-header-dark.page-template-page-header-dark-transparent #main_menu .main_list:hover > span {
    color: #fff !important;
}

/* TRANSPARENT DARK - Underline on hover white */
body.page-template-page-header-dark-transparent #main_menu .main_list:before,
body.page-template-page-header-dark.page-template-page-header-dark-transparent #main_menu .main_list:before {
    border-bottom-color: #fff !important;
}

/* TRANSPARENT DARK - Dropdown arrows white */
body.page-template-page-header-dark-transparent #main_menu .main_list .dropdown-arrow,
body.page-template-page-header-dark.page-template-page-header-dark-transparent #main_menu .main_list .dropdown-arrow {
    border-right-color: #fff !important;
    border-bottom-color: #fff !important;
}

/* TRANSPARENT DARK - Contact button white border */
body.page-template-page-header-dark-transparent #header .blue-button-1,
body.page-template-page-header-dark.page-template-page-header-dark-transparent #header .blue-button-1 {
    height: 57px;
    color: #fff !important;
    background: transparent !important;
    border: 1px solid #fff !important;
    border-radius: 30px !important;
    position: relative !important;
    z-index: 100 !important;
}

body.page-template-page-header-dark-transparent #header .blue-button-1:hover,
body.page-template-page-header-dark.page-template-page-header-dark-transparent #header .blue-button-1:hover {
    background: #0B24FB !important;
    border-color: #0B24FB !important;
}

/* TRANSPARENT DARK - Mega menu dark background */
body.page-template-page-header-dark-transparent .main_list .main_list_div,
body.page-template-page-header-dark-transparent .main_list .item_description,
body.page-template-page-header-dark.page-template-page-header-dark-transparent .main_list .main_list_div,
body.page-template-page-header-dark.page-template-page-header-dark-transparent .main_list .item_description {
    background: #0d0e1a !important;
    border-top: none !important;
    border-bottom: none !important;
    top: 93px !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

body.page-template-page-header-dark-transparent .main_list .main_list_div > .main_list_div_wrapper,
body.page-template-page-header-dark.page-template-page-header-dark-transparent .main_list .main_list_div > .main_list_div_wrapper {
    position: relative;
    border: none !important;
}

/* TRANSPARENT DARK - Reset borders inside mega menu */
body.page-template-page-header-dark-transparent .main_list .main_list_div *,
body.page-template-page-header-dark-transparent .main_list .item_description *,
body.page-template-page-header-dark.page-template-page-header-dark-transparent .main_list .main_list_div *,
body.page-template-page-header-dark.page-template-page-header-dark-transparent .main_list .item_description * {
    border-left: none !important;
}

/* TRANSPARENT DARK - Remove old glow effect */
body.page-template-page-header-dark-transparent .main_list .main_list_div > .main_list_div_wrapper::after,
body.page-template-page-header-dark.page-template-page-header-dark-transparent .main_list .main_list_div > .main_list_div_wrapper::after {
    display: none !important;
    content: none !important;
    background: none !important;
    filter: none !important;
    opacity: 0 !important;
    width: 0 !important;
    height: 0 !important;
}

/* TRANSPARENT DARK - Fix item_description background */
body.page-template-page-header-dark-transparent #header #main_menu .item_description,
body.page-template-page-header-dark-transparent #header #main_menu .item_description *,
body.page-template-page-header-dark.page-template-page-header-dark-transparent #header #main_menu .item_description,
body.page-template-page-header-dark.page-template-page-header-dark-transparent #header #main_menu .item_description * {
    background: none !important;
    background-color: transparent !important;
}

/* TRANSPARENT DARK - Remove backgrounds from wrapper inner elements */
body.page-template-page-header-dark-transparent #header .main_list .main_list_div .main_list_intro,
body.page-template-page-header-dark-transparent #header .main_list .main_list_div .main_list_intro > *,
body.page-template-page-header-dark.page-template-page-header-dark-transparent #header .main_list .main_list_div .main_list_intro,
body.page-template-page-header-dark.page-template-page-header-dark-transparent #header .main_list .main_list_div .main_list_intro > * {
    background: none !important;
    background-color: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
}

/* TRANSPARENT DARK - Left side title and description */
body.page-template-page-header-dark-transparent .main_list .main_list_div .main_list_intro,
body.page-template-page-header-dark-transparent .main_list .item_description .main_list_intro {
    color: #fff !important;
    border: none !important;
    padding-right: 40px !important;
    position: relative !important;
    background: none !important;
    background-color: transparent !important;
}

/* TRANSPARENT DARK - item_description full reset */
body.page-template-page-header-dark-transparent .main_list .item_description,
body.page-template-page-header-dark-transparent .main_list .item_description *,
body.page-template-page-header-dark-transparent .main_list .item_description .main_list_div_wrapper,
body.page-template-page-header-dark-transparent .main_list .item_description .main_list_intro,
body.page-template-page-header-dark-transparent .main_list .item_description .main_list_intro h3 {
    background: none !important;
    background-color: transparent !important;
    background-image: none !important;
}

/* TRANSPARENT DARK - Vertical gradient divider */
body.page-template-page-header-dark-transparent .main_list .main_list_div .main_list_intro::after {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    right: 0 !important;
    width: 2px !important;
    height: 100% !important;
    background: linear-gradient(180deg,
        rgb(28, 29, 67) 0%,
        rgb(28, 29, 67) 50%,
        transparent 100%
    ) !important;
}

/* TRANSPARENT DARK - Heading in dropdown */
body.page-template-page-header-dark-transparent .main_list .main_list_div .main_list_intro h3,
body.page-template-page-header-dark-transparent .main_list .item_description .main_list_intro h3 {
    color: #fff !important;
    font-size: 32px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    margin-bottom: 20px !important;
    background: none !important;
}

/* TRANSPARENT DARK - Paragraph in dropdown */
body.page-template-page-header-dark-transparent .main_list .main_list_div .main_list_intro p,
body.page-template-page-header-dark-transparent .main_list .item_description .main_list_intro p {
    color: rgba(255, 255, 255, 0.7) !important;
    font-size: 16px !important;
    line-height: 1.6 !important;
    font-weight: 400 !important;
    background: none !important;
}

/* TRANSPARENT DARK - Right side category lists */
body.page-template-page-header-dark-transparent .main_list .main_list_div .main_list_sublists {
    color: rgba(255, 255, 255, 0.8) !important;
    border: none !important;
}

body.page-template-page-header-dark-transparent .main_list .main_list_div .main_list_sublists ol,
body.page-template-page-header-dark-transparent .main_list .main_list_div .main_list_sublists ul {
    padding-bottom: 30px !important;
    line-height: 32px !important;
    font-weight: 400 !important;
    font-size: 16px !important;
    color: rgba(255, 255, 255, 0.8) !important;
    border: none !important;
}

/* TRANSPARENT DARK - Category list items */
body.page-template-page-header-dark-transparent .main_list .main_list_div .main_list_sublists ol li,
body.page-template-page-header-dark-transparent .main_list .main_list_div .main_list_sublists ul li {
    color: rgba(255, 255, 255, 0.6) !important;
}

/* TRANSPARENT DARK - Category links */
body.page-template-page-header-dark-transparent #main_menu .main_list .main_list_div .main_list_sublists ol li a,
body.page-template-page-header-dark-transparent #main_menu .main_list .main_list_div .main_list_sublists ul li a {
    color: rgba(255, 255, 255, 0.8) !important;
    font-size: 16px !important;
    font-weight: 400 !important;
    line-height: 32px !important;
    transition: color 0.2s ease;
}

body.page-template-page-header-dark-transparent #main_menu .main_list .main_list_div .main_list_sublists ol li a:hover,
body.page-template-page-header-dark-transparent #main_menu .main_list .main_list_div .main_list_sublists ul li a:hover {
    color: #0B24FB !important;
    text-decoration: none !important;
}

/* TRANSPARENT DARK - Menu column titles */
body.page-template-page-header-dark-transparent .main_list .main_list_div .main_list_sublists ol li.menu-column-title strong,
body.page-template-page-header-dark-transparent .main_list .main_list_div .main_list_sublists ul li.menu-column-title strong {
    color: #fff !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}

/* ========================================
   HEADER - SOLID DARK (for blog posts, etc.)
   Always dark background
   ======================================== */
body.page-template-page-header-dark #header,
body.page-template-page-header-dark #header:hover {
    position: fixed !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 1000 !important;
    background: #0d0e1a !important;
    background-color: #0d0e1a !important;
    border-bottom: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    box-shadow: none !important;
}

/* Gradient line under header */
body.page-template-page-header-dark #header::after {
    content: '' !important;
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 4px !important;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(11, 36, 251, 0.3) 15%,
        rgba(11, 36, 251, 0.7) 25%,
        rgb(69, 75, 144) 50%,
        rgba(11, 36, 251, 0.7) 75%,
        rgba(11, 36, 251, 0.3) 85%,
        transparent 100%
    ) !important;
    z-index: 1 !important;
}

/* Logo - white */
body.page-template-page-header-dark #header-logo {
    background-image: url('../images/logo.png') !important;
}

/* Menu items - white */
body.page-template-page-header-dark #main_menu .main_list {
    opacity: 1 !important;
}

body.page-template-page-header-dark #main_menu .main_list a,
body.page-template-page-header-dark #main_menu .main_list > span {
    color: #fff !important;
    font-weight: 400 !important;
    font-size: 16px !important;
}

body.page-template-page-header-dark #main_menu .main_list:hover a,
body.page-template-page-header-dark #main_menu .main_list:hover > span {
    color: #fff !important;
}

/* Underline on hover - white */
body.page-template-page-header-dark #main_menu .main_list:before {
    border-bottom-color: #fff !important;
}

/* Dropdown arrows ˅ - white */
body.page-template-page-header-dark #main_menu .main_list .dropdown-arrow {
    border-right-color: #fff !important;
    border-bottom-color: #fff !important;
}

/* Contact button - white border */
body.page-template-page-header-dark #header .blue-button-1 {
    color: #fff !important;
    background: transparent !important;
    border: 1px solid #fff !important;
    border-radius: 30px !important;
    position: relative !important;
    z-index: 100 !important;
}

body.page-template-page-header-dark #header .blue-button-1:hover {
    background: #0B24FB !important;
    border-color: #0B24FB !important;
}

/* ========================================
   MEGA MENU - Dark Theme
   ======================================== */
body.page-template-page-header-dark .main_list .main_list_div,
body.page-template-page-header-dark .main_list .item_description {
    background: #0d0e1a !important;
    border-top: none !important;
    border-bottom: none !important;
    top: 93px !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

body.page-template-page-header-dark .main_list .main_list_div > .main_list_div_wrapper {
    position: relative;
    border: none !important;
}

/* Reset all borders inside mega menu */
body.page-template-page-header-dark .main_list .main_list_div *,
body.page-template-page-header-dark .main_list .item_description * {
    border-left: none !important;
}

/* Remove old glow effect */
body.page-template-page-header-dark .main_list .main_list_div > .main_list_div_wrapper::after,
body.page-template-page-header-dark-transparent .main_list .main_list_div > .main_list_div_wrapper::after {
    display: none !important;
    content: none !important;
    background: none !important;
    filter: none !important;
    opacity: 0 !important;
    width: 0 !important;
    height: 0 !important;
}

/* Fix: Remove background from item_description (the problematic block) */
body.page-template-page-header-dark #header #main_menu .item_description,
body.page-template-page-header-dark-transparent #header #main_menu .item_description,
body.page-template-page-header-dark #header #main_menu .item_description *,
body.page-template-page-header-dark-transparent #header #main_menu .item_description * {
    background: none !important;
    background-color: transparent !important;
}

/* Remove backgrounds from wrapper inner elements, but NOT the main_list_div itself */
body.page-template-page-header-dark #header .main_list .main_list_div .main_list_intro,
body.page-template-page-header-dark-transparent #header .main_list .main_list_div .main_list_intro,
body.page-template-page-header-dark #header .main_list .main_list_div .main_list_intro > *,
body.page-template-page-header-dark-transparent #header .main_list .main_list_div .main_list_intro > * {
    background: none !important;
    background-color: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
}

/* Left side - title and description (both main_list_div and item_description) */
body.page-template-page-header-dark .main_list .main_list_div .main_list_intro,
body.page-template-page-header-dark-transparent .main_list .main_list_div .main_list_intro,
body.page-template-page-header-dark .main_list .item_description .main_list_intro,
body.page-template-page-header-dark-transparent .main_list .item_description .main_list_intro {
    color: #fff !important;
    border: none !important;
    padding-right: 40px !important;
    position: relative !important;
    background: none !important;
    background-color: transparent !important;
}

/* item_description - full reset for dark theme */
body.page-template-page-header-dark .main_list .item_description,
body.page-template-page-header-dark-transparent .main_list .item_description,
body.page-template-page-header-dark .main_list .item_description *,
body.page-template-page-header-dark-transparent .main_list .item_description *,
body.page-template-page-header-dark .main_list .item_description .main_list_div_wrapper,
body.page-template-page-header-dark-transparent .main_list .item_description .main_list_div_wrapper,
body.page-template-page-header-dark .main_list .item_description .main_list_intro,
body.page-template-page-header-dark-transparent .main_list .item_description .main_list_intro,
body.page-template-page-header-dark .main_list .item_description .main_list_intro h3,
body.page-template-page-header-dark-transparent .main_list .item_description .main_list_intro h3 {
    background: none !important;
    background-color: transparent !important;
    background-image: none !important;
}

/* Vertical gradient divider between left and right blocks */
body.page-template-page-header-dark .main_list .main_list_div .main_list_intro::after,
body.page-template-page-header-dark-transparent .main_list .main_list_div .main_list_intro::after {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    right: 0 !important;
    width: 2px !important;
    height: 100% !important;
    background: linear-gradient(180deg,
        rgb(28, 29, 67) 0%,
        rgb(28, 29, 67) 50%,
        transparent 100%
    ) !important;
}

body.page-template-page-header-dark .main_list .main_list_div .main_list_intro h3,
body.page-template-page-header-dark-transparent .main_list .main_list_div .main_list_intro h3,
body.page-template-page-header-dark .main_list .item_description .main_list_intro h3,
body.page-template-page-header-dark-transparent .main_list .item_description .main_list_intro h3,
body.page-template-page-header-dark:not(.header-scrolled-body) .main_list .main_list_div .main_list_intro h3 {
    color: #fff !important;
    font-size: 32px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    margin-bottom: 20px !important;
    background: none !important;
}

body.page-template-page-header-dark .main_list .main_list_div .main_list_intro p,
body.page-template-page-header-dark-transparent .main_list .main_list_div .main_list_intro p,
body.page-template-page-header-dark .main_list .item_description .main_list_intro p,
body.page-template-page-header-dark-transparent .main_list .item_description .main_list_intro p,
body.page-template-page-header-dark:not(.header-scrolled-body) .main_list .main_list_div .main_list_intro p {
    color: rgba(255, 255, 255, 0.7) !important;
    font-size: 16px !important;
    line-height: 1.6 !important;
    font-weight: 400 !important;
    background: none !important;
}

/* Right side - category lists */
body.page-template-page-header-dark .main_list .main_list_div .main_list_sublists,
body.page-template-page-header-dark-transparent .main_list .main_list_div .main_list_sublists,
body.page-template-page-header-dark:not(.header-scrolled-body) .main_list .main_list_div .main_list_sublists {
    color: rgba(255, 255, 255, 0.8) !important;
    border: none !important;
}

body.page-template-page-header-dark .main_list .main_list_div .main_list_sublists ol,
body.page-template-page-header-dark-transparent .main_list .main_list_div .main_list_sublists ol,
body.page-template-page-header-dark .main_list .main_list_div .main_list_sublists ul,
body.page-template-page-header-dark-transparent .main_list .main_list_div .main_list_sublists ul,
body.page-template-page-header-dark:not(.header-scrolled-body) .main_list .main_list_div .main_list_sublists ol,
body.page-template-page-header-dark:not(.header-scrolled-body) .main_list .main_list_div .main_list_sublists ul {
    padding-bottom: 30px !important;
    line-height: 32px !important;
    font-weight: 400 !important;
    font-size: 16px !important;
    color: rgba(255, 255, 255, 0.8) !important;
    border: none !important;
}

/* Category list items */
body.page-template-page-header-dark .main_list .main_list_div .main_list_sublists ol li,
body.page-template-page-header-dark-transparent .main_list .main_list_div .main_list_sublists ol li,
body.page-template-page-header-dark .main_list .main_list_div .main_list_sublists ul li,
body.page-template-page-header-dark-transparent .main_list .main_list_div .main_list_sublists ul li,
body.page-template-page-header-dark:not(.header-scrolled-body) .main_list .main_list_div .main_list_sublists ol li,
body.page-template-page-header-dark:not(.header-scrolled-body) .main_list .main_list_div .main_list_sublists ul li {
    color: rgba(255, 255, 255, 0.6) !important;
}

/* Category links */
body.page-template-page-header-dark #main_menu .main_list .main_list_div .main_list_sublists ol li a,
body.page-template-page-header-dark-transparent #main_menu .main_list .main_list_div .main_list_sublists ol li a,
body.page-template-page-header-dark #main_menu .main_list .main_list_div .main_list_sublists ul li a,
body.page-template-page-header-dark-transparent #main_menu .main_list .main_list_div .main_list_sublists ul li a,
body.page-template-page-header-dark:not(.header-scrolled-body) #main_menu .main_list .main_list_div .main_list_sublists ol a,
body.page-template-page-header-dark:not(.header-scrolled-body) #main_menu .main_list .main_list_div .main_list_sublists ul a {
    color: rgba(255, 255, 255, 0.8) !important;
    font-size: 16px !important;
    font-weight: 400 !important;
    line-height: 32px !important;
    transition: color 0.2s ease;
}

body.page-template-page-header-dark #main_menu .main_list .main_list_div .main_list_sublists ol li a:hover,
body.page-template-page-header-dark-transparent #main_menu .main_list .main_list_div .main_list_sublists ol li a:hover,
body.page-template-page-header-dark #main_menu .main_list .main_list_div .main_list_sublists ul li a:hover,
body.page-template-page-header-dark-transparent #main_menu .main_list .main_list_div .main_list_sublists ul li a:hover,
body.page-template-page-header-dark:not(.header-scrolled-body) #main_menu .main_list .main_list_div .main_list_sublists ol a:hover,
body.page-template-page-header-dark:not(.header-scrolled-body) #main_menu .main_list .main_list_div .main_list_sublists ul a:hover {
    color: #0B24FB !important;
    text-decoration: none !important;
}

/* Menu column titles (Top Articles, Latest, Categories) */
.main_list .main_list_div .main_list_sublists ol li.menu-column-title,
.main_list .main_list_div .main_list_sublists ul li.menu-column-title {
    margin-bottom: 10px !important;
    padding-bottom: 8px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15) !important;
}

body.page-template-page-header-dark .main_list .main_list_div .main_list_sublists ol li.menu-column-title strong,
body.page-template-page-header-dark-transparent .main_list .main_list_div .main_list_sublists ol li.menu-column-title strong,
body.page-template-page-header-dark .main_list .main_list_div .main_list_sublists ul li.menu-column-title strong,
body.page-template-page-header-dark-transparent .main_list .main_list_div .main_list_sublists ul li.menu-column-title strong {
    color: #fff !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}

body.page-template-page-header-light .main_list .main_list_div .main_list_sublists ol li.menu-column-title,
body.page-template-page-header-light .main_list .main_list_div .main_list_sublists ul li.menu-column-title {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1) !important;
}

body.page-template-page-header-light .main_list .main_list_div .main_list_sublists ol li.menu-column-title strong,
body.page-template-page-header-light .main_list .main_list_div .main_list_sublists ul li.menu-column-title strong {
    color: #212121 !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}

/* ========================================
   LIGHT THEME HEADER STYLES
   Same UI/UX as dark theme, but with inverted colors
   ======================================== */

/* Gradient line under header - LIGHT THEME */
body.page-template-page-header-light #header::after {
    content: '' !important;
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 4px !important;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(11, 36, 251, 0.2) 15%,
        rgba(11, 36, 251, 0.5) 25%,
        rgba(11, 36, 251, 0.7) 50%,
        rgba(11, 36, 251, 0.5) 75%,
        rgba(11, 36, 251, 0.2) 85%,
        transparent 100%
    ) !important;
    z-index: 1 !important;
}

/* Dropdown arrows ˅ - LIGHT THEME (dark color) */
body.page-template-page-header-light #main_menu .main_list .dropdown-arrow {
    border-right-color: #212121 !important;
    border-bottom-color: #212121 !important;
}

/* Menu items opacity - LIGHT THEME */
body.page-template-page-header-light #main_menu .main_list {
    opacity: 1 !important;
}

/* Vertical gradient divider in dropdown - LIGHT THEME */
body.page-template-page-header-light .main_list .main_list_div .main_list_intro::after {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    right: 0 !important;
    width: 2px !important;
    height: 100% !important;
    background: linear-gradient(180deg,
        rgba(11, 36, 251, 0.3) 0%,
        rgba(11, 36, 251, 0.1) 50%,
        transparent 100%
    ) !important;
}

/* ========================================
   Pages with transparent header - content starts from top
   ======================================== */
body.page-template-page-header-dark-transparent #content {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

/* Contact page - form starts under header */
body.page-template-page-header-dark-transparent.page #footer-contact-form {
    margin-top: 0;
    padding-top: calc(var(--header-height) + 40px);
    background: #0d0e1a;
}

/* Hero section on transparent header pages */
body.page-template-page-header-dark-transparent .hero-section {
    margin-top: 0;
    padding-top: calc(var(--header-height) + 40px);
}

/* ========================================
   Hero Section with Background Image - UNDER HEADER (no gap)
   ======================================== */
.blog-hero-section {
    position: relative;
    min-height: auto;
    margin-top: 0;
    padding-top: calc(var(--header-height) + 30px);
    padding-bottom: 30px;
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}

/* Dark gradient overlay */
.blog-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        180deg,
        rgba(13, 14, 26, 0.7) 0%,
        rgba(13, 14, 26, 0.75) 30%,
        rgba(13, 14, 26, 0.85) 70%,
        rgba(13, 14, 26, 0.95) 100%
    );
    z-index: 1;
}

/* Subtle glow effect */
.blog-hero-section::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: radial-gradient(ellipse 80% 50% at 50% 100%, rgba(11, 36, 251, 0.15), transparent);
    pointer-events: none;
    z-index: 2;
}

.blog-hero-section .container {
    position: relative;
    z-index: 3;
    max-width: 1350px !important;
    padding: 0 20px !important;
    margin: 0 auto;
}

/* Wrapper for hero content - aligns with article text */
.blog-hero-content-wrapper {
    width: 870px;
    margin-left: -250px;
}

/* Responsive adjustments */
@media screen and (max-width: 1500px) {
    .blog-hero-content-wrapper {
        margin-left: -200px;
    }
}

@media screen and (max-width: 1250px) {
    .blog-hero-content-wrapper {
        width: 100%;
        margin-left: 0;
        padding: 0 20px;
    }
}

/* Align hero content with article text (870px max-width) */
.blog-hero-section .container .blog-hero-breadcrumbs,
.blog-hero-section .container .blog-hero-tags,
.blog-hero-section .container .blog-hero-title,
.blog-hero-section .container .blog-hero-author {
    max-width: 870px;
}

/* ========================================
   Breadcrumbs
   ======================================== */
.blog-hero-breadcrumbs {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 8px;
    margin-bottom: 28px;
    font-size: 14px;
    font-weight: 400;
    white-space: nowrap;
}

.blog-hero-breadcrumbs a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: color 0.2s ease;
}

.blog-hero-breadcrumbs a:hover {
    color: #fff;
}

.blog-hero-breadcrumbs .separator {
    color: rgba(255, 255, 255, 0.4);
    font-size: 14px;
    margin: 0 4px;
}

.blog-hero-breadcrumbs .current {
    color: #fff;
    font-weight: 500;
}

/* ========================================
   Category Tags
   ======================================== */
.blog-hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 24px;
}

.blog-hero-tag {
    display: inline-flex;
    align-items: center;
    padding: 10px 22px;
    background: var(--hero-accent-blue);
    border: none;
    border-radius: 20px;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.2s ease;
}

.blog-hero-tag:hover {
    background: #0a1fd4;
    transform: translateY(-1px);
}

/* ========================================
   Hero Title
   ======================================== */
.blog-hero-title {
    margin: 0 0 32px 0;
    padding: 0;
    font-size: 48px;
    font-weight: 700;
    line-height: 1.15;
    color: #fff;
    letter-spacing: -0.5px;
    max-width: 800px;
}

/* ========================================
   Author Info
   ======================================== */
.blog-hero-author {
    display: flex;
    align-items: center;
    gap: 14px;
}

.blog-hero-author-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    border: none;
}

.blog-hero-author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-hero-author-info {
    display: flex;
    align-items: center;
    gap: 0;
}

.blog-hero-author-name {
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    padding-right: 12px;
    border-right: 1px solid rgba(255, 255, 255, 0.3);
    margin-right: 12px;
}

.blog-hero-author-name:hover {
    color: var(--hero-accent-blue);
}

.blog-hero-author-date {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    font-weight: 400;
}

/* ========================================
   Article Meta (Difficulty & Reading Time)
   ======================================== */
.blog-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.blog-hero-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.blog-hero-meta-icon {
    color: rgba(255, 255, 255, 0.5);
    flex-shrink: 0;
}

.blog-hero-meta-label {
    color: rgba(255, 255, 255, 0.6);
    font-size: 13px;
    font-weight: 400;
}

.blog-hero-meta-value {
    color: #fff;
    font-size: 13px;
    font-weight: 600;
}

/* ========================================
   Trending Reads Section
   ======================================== */
.trending-reads-section {
    background: var(--trending-bg);
    padding: 0;
    border-top: 1px solid #e8e8ee;
}

.trending-reads-wrapper {
    display: flex;
    align-items: stretch;
}

.trending-reads-title {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    padding: 30px 40px 30px 0;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: #64748b;
    margin: 0;
    white-space: nowrap;
}

.trending-reads-list {
    display: flex;
    align-items: stretch;
    list-style: none;
    margin: 0;
    padding: 0;
    overflow-x: auto;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.trending-reads-list::-webkit-scrollbar {
    display: none;
}

.trending-reads-item {
    flex: 0 0 auto;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 30px 28px;
    min-width: 260px;
    max-width: 300px;
    border-left: 1px solid #e0e0e0;
    transition: background 0.2s ease;
}

.trending-reads-item:hover {
    background: rgba(11, 36, 251, 0.02);
}

.trending-reads-number {
    flex-shrink: 0;
    font-size: 42px;
    font-weight: 700;
    line-height: 1;
    color: rgba(11, 36, 251, 0.1);
    font-family: 'Montserrat', sans-serif;
}

.trending-reads-content {
    display: flex;
    flex-direction: column;
    padding-top: 5px;
}

.trending-reads-link {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
    color: #212121;
    text-decoration: none;
    transition: color 0.2s ease;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.trending-reads-link:hover {
    color: var(--hero-accent-blue);
}

/* ========================================
   Responsive Design
   ======================================== */
@media screen and (max-width: 1200px) {
    .trending-reads-item {
        min-width: 240px;
        max-width: 270px;
    }
}

@media screen and (max-width: 992px) {
    :root {
        --header-height: 70px;
    }

    .blog-hero-section {
        min-height: auto;
        padding-top: calc(var(--header-height) + 25px);
        padding-bottom: 25px;
    }

    .blog-hero-title {
        font-size: 36px;
        margin-bottom: 28px;
    }

    .blog-hero-breadcrumbs {
        font-size: 13px;
        margin-bottom: 20px;
        flex-wrap: wrap;
        white-space: normal;
    }

    .blog-hero-tags {
        gap: 8px;
        margin-bottom: 18px;
    }

    .blog-hero-tag {
        padding: 8px 16px;
        font-size: 11px;
    }

    .trending-reads-wrapper {
        flex-direction: column;
    }

    .trending-reads-title {
        padding: 20px;
        border-bottom: 1px solid #e0e0e0;
    }

    .trending-reads-item {
        padding: 20px 24px;
        min-width: 250px;
    }

    .trending-reads-item:first-child {
        border-left: none;
    }

    .trending-reads-number {
        font-size: 36px;
    }

    .reading-progress-container {
        top: var(--header-height);
    }

    body.page-template-page-header-dark .main_list .main_list_div,
    body.page-template-page-header-dark-transparent .main_list .main_list_div,
    body.page-template-page-header-dark .main_list .item_description,
    body.page-template-page-header-dark-transparent .main_list .item_description {
        top: 72px !important;
    }

    /* Mobile header - ALWAYS DARK */
    body.page-template-page-header-dark #header,
    body.page-template-page-header-dark #header:hover,
    body.page-template-page-header-dark #header.mob-header-active,
    body.page-template-page-header-dark #header.header-scrolled,
    body.page-template-page-header-dark #header,
    body.page-template-page-header-dark #header.mob-header-active {
        background: #0d0e1a !important;
        background-color: #0d0e1a !important;
    }

    /* Mobile burger - white */
    body.page-template-page-header-dark #header-burger span,
    body.page-template-page-header-dark #header-burger span {
        background: #fff !important;
    }

    /* Mobile menu - dark background */
    body.page-template-page-header-dark #header #mobile_menu > li .sub-menu,
    body.page-template-page-header-dark #header #mobile_menu > li .sub-menu {
        background: #0d0e1a !important;
    }

    /* Mobile menu items - white text */
    body.page-template-page-header-dark #header #mobile_menu > li > a,
    body.page-template-page-header-dark #header #mobile_menu > li > span,
    body.page-template-page-header-dark #header #mobile_menu > li.menu-item-has-children .sub-menu-title,
    body.page-template-page-header-dark #header #mobile_menu #header-menu-bottom span,
    body.page-template-page-header-dark #header #mobile_menu > li .sub-menu li a {
        color: #fff !important;
    }

    /* Mobile menu arrows - white */
    body.page-template-page-header-dark #header #mobile_menu > li:after,
    body.page-template-page-header-dark #header #mobile_menu > li.menu-item-has-children .sub-menu-title:before {
        border-top-color: #fff !important;
        border-right-color: #fff !important;
    }
}

@media screen and (max-width: 576px) {
    .blog-hero-section {
        min-height: auto;
        padding-top: calc(var(--header-height) + 20px);
        padding-bottom: 20px;
    }

    .blog-hero-title {
        font-size: 28px;
        line-height: 1.2;
    }

    .blog-hero-author {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .blog-hero-author-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .blog-hero-author-name {
        border-right: none;
        padding-right: 0;
        margin-right: 0;
    }

    .blog-hero-author-avatar {
        width: 40px;
        height: 40px;
    }

    .trending-reads-item {
        min-width: 220px;
        gap: 10px;
    }

    .trending-reads-number {
        font-size: 32px;
    }

    .trending-reads-link {
        font-size: 13px;
    }
}

/* ========================================
   Animations
   ======================================== */
.blog-hero-breadcrumbs,
.blog-hero-tags,
.blog-hero-title,
.blog-hero-author {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
}

.blog-hero-breadcrumbs { animation-delay: 0.1s; }
.blog-hero-tags { animation-delay: 0.15s; }
.blog-hero-title { animation-delay: 0.25s; }
.blog-hero-author { animation-delay: 0.35s; }

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

.trending-reads-item {
    opacity: 0;
    transform: translateX(-10px);
    animation: fadeInRight 0.4s ease forwards;
}

.trending-reads-item:nth-child(1) { animation-delay: 0.05s; }
.trending-reads-item:nth-child(2) { animation-delay: 0.1s; }
.trending-reads-item:nth-child(3) { animation-delay: 0.15s; }
.trending-reads-item:nth-child(4) { animation-delay: 0.2s; }
.trending-reads-item:nth-child(5) { animation-delay: 0.25s; }

@keyframes fadeInRight {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ========================================
   Hide old elements
   ======================================== */
body.page-template-page-header-dark #post-header {
    display: none !important;
}

body.page-template-page-header-dark #post-top-articles {
    display: none !important;
}
