/*
Theme Name: DETheme
Theme URI: https://dakshraj.com/
Author: Dakshraj Enterprise
Author URI: https://dakshraj.com/
Description: Custom WordPress theme for Dakshraj Enterprise Blog. Integrates seamlessly with the main website's header, footer, and hero. 100% SEO optimized with JSON-LD schema, Open Graph, Twitter Cards, and semantic HTML5.
Version: 2.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: detheme
Tags: blog, seo, corporate, custom-header, custom-menu, featured-images
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
*/

/* ============================================
   DAKSHRAJ ENTERPRISE — Premium Design System
   ============================================ */

/* --- Design Tokens --- */
:root {
    /* Primary Palette */
    --primary: #0062E6;
    --primary-light: #4D9AFF;
    --primary-dark: #003FA3;
    --primary-glow: rgba(0, 98, 230, 0.35);

    /* Accent & Secondary */
    --secondary: #0B1628;
    --secondary-light: #132033;
    --accent: #F59E0B;
    --accent-light: #FDE68A;

    /* Surfaces */
    --bg-main: #F8FAFD;
    --bg-card: #FFFFFF;
    --bg-elevated: #FFFFFF;

    /* Typography Tokens */
    --text-main: #374151;
    --text-heading: #0F172A;
    --text-muted: #4B5563; /* Darkened for 100/100 Accessibility Score */
    --text-white-soft: rgba(255, 255, 255, 0.80);

    /* Borders & Dividers */
    --border-light: #E5E7EB;
    --border-subtle: rgba(0, 0, 0, 0.06);

    /* Fonts */
    --font-heading: 'Outfit',
        sans-serif;
    --font-body: 'Inter',
        sans-serif;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-spring: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);

    /* Shadows */
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06),
        0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.07),
        0 2px 4px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.08),
        0 4px 8px rgba(0, 0, 0, 0.04);
    --shadow-xl: 0 20px 50px rgba(0, 0, 0, 0.10),
        0 8px 16px rgba(0, 0, 0, 0.06);
    --shadow-glow: 0 0 30px var(--primary-glow);
    --shadow-glass: 0 8px 32px rgba(0, 0, 0, 0.05);

    /* Radii */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-pill: 50px;

    /* Header Heights */
    --topbar-height: 48px;
    --header-height: 90px;
    --admin-bar-height: 0px;
}

body.admin-bar {
    --admin-bar-height: 32px;
}

@media (max-width: 782px) {
    body.admin-bar {
        --admin-bar-height: 46px;
    }
}

/* --- Content Body Typography Justification --- */
.content-body p,
.content-body li {
    text-align: justify;
}

/* Restore list styles for post content */
.content-body ul {
    list-style-type: disc;
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.content-body ol {
    list-style-type: decimal;
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
}

/* Center-aligned specific overrides */
.hero-section p,
.page-header p,
.cta-premium p,
.cta-premium__text,
.section-header p,
.mv-box p,
.value-card p {
    text-align: center;
}

/* Specific Home Page Hero Subtitle Justification */
.hero-subtitle {
    text-align: justify !important;
}

/* --- Reset --- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    max-width: 100vw;
    overflow-x: hidden;
    position: relative;
    /* Prevent horizontal bounce */
}

body.no-scroll {
    overflow: hidden !important;
    height: 100vh !important;
}

body {
    font-family: var(--font-body);
    color: var(--text-main);
    background-color: var(--bg-main);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--text-heading);
    line-height: 1.2;
    font-weight: 700;
}

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

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

ul {
    list-style: none;
}

/* --- Layout Utilities --- */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.75rem;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

/* --- Badge --- */
.badge {
    display: inline-flex;
    
    gap: 6px;
    padding: 8px 18px;
    background: linear-gradient(135deg, rgba(0, 98, 230, 0.08), rgba(77, 154, 255, 0.08));
    color: var(--primary);
    border-radius: var(--radius-pill);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 18px;
    border: 1px solid rgba(0, 98, 230, 0.12);
}

/* --- Glassmorphism --- */
.glass {
    background: rgba(255, 255, 255, 0.72);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: var(--shadow-glass);
}

/* --- Text Gradient --- */
.text-gradient {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

/* ===========================
   TOPBAR
   =========================== */
.site-topbar {
    background: linear-gradient(90deg, var(--secondary), var(--secondary-light));
    color: var(--text-white-soft);
    font-size: 0.83rem;
    padding: 0;
    height: var(--topbar-height);
    display: flex;
    
    position: relative;
    z-index: 1010;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.topbar-container {
    display: flex;
    justify-content: space-between;
    
}

.topbar-left {
    display: flex;
    gap: 22px;
    
}

.topbar-left a {
    color: var(--text-white-soft);
    display: flex;
    
    gap: 7px;
    font-weight: 500;
    transition: color var(--transition-fast);
}

.topbar-left a:hover {
    color: white;
}

.topbar-left i {
    color: var(--accent);
    font-size: 0.85rem;
}

.topbar-right {
    display: flex;
    
    gap: 14px;
}

.topbar-follow {
    font-weight: 600;
    color: white;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.topbar-socials {
    display: flex;
    gap: 8px;
}

.topbar-socials a {
    color: var(--text-white-soft);
    width: 28px;
    height: 28px;
    display: flex;
    
    justify-content: center;
    border-radius: 50%;
    font-size: 0.8rem;
    transition: all var(--transition-fast);
    background: rgba(255, 255, 255, 0.06);
}

.topbar-socials a:hover {
    color: white;
    background: var(--primary);
    transform: translateY(-2px);
}

/* ===========================
   HEADER / NAVIGATION
   =========================== */
.site-header {
    position: fixed;
    top: calc(var(--admin-bar-height) + var(--topbar-height));
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.04);
    border-bottom: none;
    transition: top 0.3s ease, background 0.3s ease, padding 0.3s ease, box-shadow 0.3s ease;
}

.site-header.scrolled {
    top: var(--admin-bar-height);
    background: rgba(255, 255, 255, 0.92);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    backdrop-filter: blur(20px) saturate(180%);
    box-shadow: 0 10px 40px rgba(0, 20, 60, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
}

.header-container {
    display: flex;
    justify-content: space-between;
    
    height: 90px;
    position: relative;
}

.brand-logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--secondary);
    display: flex;
    
}

.brand-logo .logo-dot {
    color: var(--primary);
}

.nav-menu {
    display: flex;
    gap: 32px;
    
}

.nav-menu a {
    color: var(--text-main);
    font-weight: 600;
    font-size: 1rem;
    position: relative;
    padding: 6px 0;
    letter-spacing: 0.015em;
    transition: color var(--transition-normal);
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    transition: all var(--transition-normal);
    transform: translateX(-50%);
    border-radius: 2px;
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

/* --- Dropdown Menu (Company) --- */
.has-dropdown {
    position: relative;
}

.has-dropdown>a {
    display: flex;
    
    gap: 5px;
}

.has-dropdown>a i {
    font-size: 0.7rem;
    transition: transform var(--transition-fast);
}

.has-dropdown:hover>a i {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 15px);
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    min-width: 250px;
    background: #ffffff;
    box-shadow:
        0 30px 60px rgba(0, 0, 0, 0.08),
        0 8px 24px rgba(0, 0, 0, 0.04),
        0 0 0 1px rgba(0, 0, 0, 0.05) inset;
    border-radius: 16px;
    border: 1px solid var(--border-light);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 9999;
    padding: 10px 8px;
}

/* Hover bridge — invisible area covering the gap */
.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -30px;
    left: 0;
    width: 100%;
    height: 30px;
    background: transparent;
}

.has-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

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

.dropdown-menu ul li a {
    display: flex;
    
    gap: 10px;
    padding: 6px 12px;
    color: var(--text-main);
    font-size: 0.92rem;
    font-weight: 500;
    border-radius: 10px;
    transition: all 0.25s ease;
    white-space: nowrap;
    background: transparent;
}

.dropdown-menu ul li a::after {
    display: none;
}

.dropdown-menu ul li a i {
    width: 34px;
    height: 34px;
    display: flex;
    
    justify-content: center;
    border-radius: 8px;
    background: rgba(0, 98, 230, 0.06);
    border: 1px solid rgba(0, 98, 230, 0.05);
    color: var(--primary);
    font-size: 1rem;
    transition: all 0.25s ease;
    flex-shrink: 0;
}

.dropdown-menu ul li a span {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: -0.01em;
}

.dropdown-menu ul li {
    margin-bottom: 4px;
}

.dropdown-menu ul li a:hover {
    background: rgba(0, 98, 230, 0.03);
    color: var(--primary);
    transform: translateY(-1px);
}

.dropdown-menu ul li a:hover i {
    background: var(--primary);
    color: white;
    transform: scale(1.05);
    box-shadow: 0 4px 10px rgba(0, 98, 230, 0.2);
    border-color: transparent;
}

/* Secondary nav button */
.btn-nav-secondary {
    padding: 10px 20px;
    font-size: 0.85rem;
    border-radius: var(--radius-sm);
}

/* Mega Menu */
.has-mega-menu {
    position: relative;
}

.has-mega-menu>a {
    display: flex;
    
    gap: 5px;
}

.has-mega-menu>a i {
    font-size: 0.7rem;
    transition: transform var(--transition-fast);
}

/* --- Mega Menu (Services) --- */
.has-mega-menu {
    position: static;
}

.has-mega-menu:hover>a i {
    transform: rotate(180deg);
}

.mega-menu {
    position: absolute;
    top: calc(100% - 10px);
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    width: 95vw;
    max-width: 1150px;
    background: #ffffff;
    box-shadow:
        0 40px 100px -10px rgba(0, 0, 0, 0.08),
        0 15px 40px -5px rgba(0, 0, 0, 0.04),
        0 0 0 1px rgba(0, 0, 0, 0.05) inset;
    border-radius: 16px;
    border: 1px solid var(--border-light);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 9999;
}

/* Hover bridge — invisible area covering the gap */
.mega-menu::before {
    content: '';
    position: absolute;
    top: -30px;
    left: 0;
    width: 100%;
    height: 30px;
    background: transparent;
}

.has-mega-menu:hover .mega-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

.mega-menu__inner {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    padding: 0;
    position: relative;
}

.mega-menu__col {
    padding: 20px 10px;
    position: relative;
}

.mega-menu__col:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 36px;
    bottom: 32px;
    right: 0;
    width: 1px;
    background: rgba(0, 0, 0, 0.04);
}

.mega-menu__heading {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-heading);
    margin-bottom: 18px;
    padding-left: 10px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    
    gap: 8px;
}

.mega-menu__heading i {
    font-size: 0.95rem;
    color: var(--primary);
    display: flex;
    
    justify-content: center;
}

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

.mega-menu__col ul li {
    margin-bottom: 2px;
}

.mega-menu__col ul li a {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 6px 8px;
    font-size: 0.9rem;
    color: var(--text-main);
    border-radius: 10px;
    transition: all 0.25s ease;
    font-weight: 500;
    position: relative;
    overflow: hidden;
    z-index: 1;
    text-decoration: none;
    background: transparent;
}

.mega-menu__col ul li a::after {
    display: none;
}

.mega-menu__col ul li a:hover {
    color: var(--primary);
    transform: translateY(-1px);
    background: rgba(0, 98, 230, 0.03);
}

.mega-menu__col ul li a:hover .mega-menu__icon {
    background: var(--primary);
    color: white;
    transform: scale(1.05);
    box-shadow: 0 4px 10px rgba(0, 98, 230, 0.2);
    border-color: transparent;
}

/* Icon circle */
.mega-menu__icon {
    display: flex;
    
    justify-content: center;
    width: 34px;
    height: 34px;
    min-width: 34px;
    border-radius: 8px;
    background: rgba(0, 98, 230, 0.06);
    border: 1px solid rgba(0, 98, 230, 0.05);
    color: var(--primary);
    font-size: 1rem;
    transition: all 0.25s ease;
    margin-top: 0;
}

/* Text group */
.mega-menu__text {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.mega-menu__title {
    font-weight: 700;
    font-size: 0.88rem;
    color: var(--text-heading);
    line-height: 1.2;
    font-family: var(--font-heading);
    letter-spacing: -0.01em;
    transition: color 0.25s ease;
    margin-bottom: 1px;
    display: block;
    white-space: nowrap;
}

.mega-menu__col ul li a:hover .mega-menu__title {
    color: var(--primary);
}

.mega-menu__desc {
    font-size: 0.76rem;
    color: var(--text-muted);
    font-weight: 400;
    line-height: 1.3;
    letter-spacing: 0;
    opacity: 0.95;
    margin-top: 1px;
}

/* Bottom accent line */
.mega-menu__inner::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 40px;
    right: 40px;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--primary), var(--primary-light), transparent);
    border-radius: 4px 4px 0 0;
    opacity: 0.8;
}


/* Breadcrumbs Pill (inside page-header) */
.breadcrumbs-pill {
    display: inline-flex;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50px;
    padding: 6px 18px;
    margin-bottom: 24px;
    position: relative;
    z-index: 10;
}

.breadcrumbs-pill__list {
    display: flex;
    
    gap: 10px;
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.85rem;
}

.breadcrumbs-pill__item {
    display: flex;
    
    gap: 10px;
}

.breadcrumbs-pill__item:not(:last-child)::after {
    content: '\f054';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 0.6rem;
    color: rgba(255, 255, 255, 0.4);
}

.breadcrumbs-pill__link {
    color: rgba(255, 255, 255, 0.6);
    font-weight: 500;
    transition: color var(--transition-fast);
}

.breadcrumbs-pill__link:hover {
    color: #fff;
}

.breadcrumbs-pill__item--active span, 

/* ===========================
   BUTTONS
   =========================== */
.btn {
    display: inline-flex;
    
    justify-content: center;
    gap: 8px;
    padding: 13px 30px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-family: var(--font-heading);
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-normal);
    border: none;
    font-size: 0.95rem;
    letter-spacing: 0.01em;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    box-shadow: 0 4px 16px var(--primary-glow);
}

.btn-primary:hover {
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 28px var(--primary-glow);
}

.btn-outline {
    background: transparent;
    color: var(--text-heading);
    border: 1.5px solid var(--border-light);
}

.btn-outline:hover {
    background: white;
    border-color: var(--primary-light);
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-lg {
    padding: 16px 38px;
    font-size: 1.05rem;
    border-radius: var(--radius-md);
}

/* Header Analysis Button Enhancement */
.header-actions .btn-primary {
    border-radius: 50px;
    padding: 12px 28px;
    font-size: 0.95rem;
    box-shadow: 0 6px 20px var(--primary-glow);
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    transition: all var(--transition-normal);
}

.header-actions .btn-primary:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 25px var(--primary-glow);
}

/* Header Actions */
.header-actions {
    display: flex;
    
    gap: 15px;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--secondary);
    cursor: pointer;
}

/* ===========================
   MAIN SITE STRUCTURE
   =========================== */
.site-main {
    margin-top: calc(90px + var(--topbar-height));
    min-height: calc(100vh - (90px + var(--topbar-height)) - 400px);
}

.bg-light {
    background: var(--bg-main);
}

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

/* Generic 2-Column Grid */
.grid-2-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    
}

/* Services Archive */
.services-archive {
    padding: 80px 0;
}

/* About Story */
.about-story {
    padding: 80px 0;
}

/* Mission / Vision Boxes */
.mission-vision {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 30px;
}

.mv-box {
    background: var(--bg-main);
    border-radius: var(--radius-md);
    padding: 28px;
    border: 1px solid var(--border-light);
    text-align: center;
}

/* Values Grid */
.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.value-card {
    background: white;
    border-radius: var(--radius-md);
    padding: 40px 30px;
    text-align: center;
    border: 1px solid var(--border-light);
    transition: all var(--transition-normal);
}

.value-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

/* ===========================
   PAGE HEADERS (Inner Pages)
   =========================== */
.page-header {
    margin-top: calc(-1 * (90px + var(--topbar-height)));
    padding-top: calc(90px + var(--topbar-height) + 80px);
    padding-bottom: 120px;
    background: var(--secondary);
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(0, 98, 230, 0.15), transparent 60%),
        radial-gradient(ellipse at 80% 20%, rgba(77, 154, 255, 0.10), transparent 50%),
        radial-gradient(ellipse at 60% 80%, rgba(245, 158, 11, 0.06), transparent 50%);
    pointer-events: none;
}

.page-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(77, 154, 255, 0.3), rgba(245, 158, 11, 0.2), transparent);
}

.page-header h1 {
    font-size: 3.2rem;
    margin-bottom: 18px;
    color: white;
    position: relative;
    z-index: 1;
    letter-spacing: -0.02em;
}

.page-header p {
    font-size: 1.1rem;
    color: var(--text-white-soft);
    max-width: 580px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    line-height: 1.7;
}

.page-header .badge {
    background: rgba(255, 255, 255, 0.08);
    color: white;
    border-color: rgba(255, 255, 255, 0.15);
    position: relative;
    z-index: 1;
}

/* ===========================
   FOOTER
   =========================== */
.site-footer {
    background: linear-gradient(180deg, var(--secondary) 0%, #060b14 100%);
    color: rgba(255, 255, 255, 0.7);
    padding: 100px 0 0 0;
    position: relative;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary), var(--primary-light), transparent);
    opacity: 0.8;
}

.site-footer::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 1000px;
    height: 1000px;
    background: radial-gradient(circle, rgba(0, 98, 230, 0.04) 0%, transparent 60%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 80px;
    margin-bottom: 30px;
    position: relative;
    z-index: 1;
}

.footer-logo {
    color: white;
}

.footer-desc {
    margin-bottom: 24px;
    font-size: 0.92rem;
    line-height: 1.7;
}

.social-links {
    display: flex;
    gap: 10px;
}

.social-links a {
    display: flex;
    
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.7);
    transition: all var(--transition-normal);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.social-links a:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px var(--primary-glow);
    border-color: transparent;
}

.footer-heading {
    color: white;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 24px;
    position: relative;
    padding-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 32px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    border-radius: 3px;
}

.footer-heading--hidden {
    color: transparent;
    -webkit-user-select: none;
    user-select: none;
}

.footer-heading--hidden::after {
    display: none;
}

.footer-links {
    padding: 0;
    margin: 0;
    list-style: none;
}

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

.footer-links a {
    color: rgba(255, 255, 255, 0.65);
    transition: all var(--transition-normal);
    font-size: 0.95rem;
    display: inline-flex;
    
    gap: 0;
}

.footer-links a::before {
    content: '';
    width: 0;
    height: 1px;
    background: var(--primary-light);
    transition: width var(--transition-fast);
    margin-right: 0;
}

.footer-links a:hover {
    color: white;
    transform: translateX(6px);
}

.footer-links a:hover::before {
    width: 14px;
    margin-right: 8px;
}

.footer-contact li {
    display: flex;
    gap: 12px;
    margin-bottom: 10px;
    align-items: flex-start;
    font-size: 0.92rem;
}

.footer-contact i {
    color: var(--primary-light);
    margin-top: 4px;
    font-size: 0.9rem;
}

.footer-contact a {
    color: rgba(255, 255, 255, 0.65);
}

.footer-contact a:hover {
    color: white;
}

.footer-bottom-wrapper {
    background: rgba(0, 0, 0, 0.25);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-bottom {
    padding: 16px 0;
    font-size: 0.85rem;
    display: flex;
    justify-content: space-between;
    
}

.footer-bottom-links {
    display: flex;
    
    gap: 8px;
}

.footer-bottom-links a {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.83rem;
    transition: color var(--transition-fast);
}

.footer-bottom-links a:hover {
    color: white;
}

.footer-divider {
    color: rgba(255, 255, 255, 0.2);
    font-size: 0.75rem;
}

/* ===========================
   ANIMATIONS
   =========================== */
.fade-in-up {
    opacity: 0;
    transform: translateY(35px);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(3deg);
    }
}

@keyframes float-reverse {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(20px) rotate(-3deg);
    }
}

@keyframes gradient-shift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

@keyframes glow-pulse {

    0%,
    100% {
        box-shadow: 0 0 20px var(--primary-glow);
    }

    50% {
        box-shadow: 0 0 40px var(--primary-glow), 0 0 60px rgba(0, 98, 230, 0.15);
    }
}

@keyframes shimmer {
    0% {
        left: -100%;
    }

    100% {
        left: 100%;
    }
}

/* ===========================
   RESPONSIVE — Tablet
   =========================== */
@media (max-width: 992px) {
    .site-topbar {
        display: block;
        padding: 8px 0;
        --topbar-height: 48px; /* Thinner for mobile */
    }

    .topbar-right,
    .topbar-left a[href^="mailto:"] {
        display: none;
    }

    .topbar-left {
        justify-content: center;
        width: 100%;
        flex-wrap: nowrap; /* Prevent wrapping for a cleaner 'perfect' look */
        gap: 12px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none; /* Hide scrollbar for clean UI */
    }

    .topbar-left::-webkit-scrollbar {
        display: none;
    }

    .topbar-left a {
        font-size: 0.78rem;
        font-weight: 600;
        letter-spacing: 0.01em;
        
        white-space: nowrap;
        padding: 4px 10px;
        background: rgba(255, 255, 255, 0.05);
        border-radius: 6px;
        border: 1px solid rgba(255, 255, 255, 0.08);
    }

    .topbar-left a i {
        font-size: 0.9rem;
    }

    .topbar-left a:active {
        background: var(--primary);
        border-color: transparent;
    }

    .brand-logo {
        font-size: 1.4rem;
    }

    .header-container {
        height: 80px;
        gap: 10px;
    }

    .site-header {
        top: var(--topbar-height, 40px);
    }

    .site-header.scrolled {
        top: 0;
    }

    .site-main {
        margin-top: calc(90px + var(--topbar-height, 48px));
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #ffffff;
        flex-direction: column;
        padding: 12px 20px 30px 20px; /* Highly compact padding */
        box-shadow: 0 40px 80px rgba(0, 30, 80, 0.15);
        gap: 0;
        align-items: flex-start;
        border-top: 1px solid rgba(0, 98, 230, 0.05);
        height: auto;
        min-height: calc(100dvh - 80px);
        max-height: calc(100dvh - 80px);
        overflow-y: auto;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
        z-index: 2000;
        scrollbar-width: none; /* Hide scrollbar for a cleaner 'no scroll' look */
    }

    .nav-menu::-webkit-scrollbar {
        display: none;
    }

    .nav-menu.active {
        display: flex;
        animation: slideDown 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    }

    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }

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

    /* Top Level Menu Items */
    .nav-menu>li {
        width: 100%;
        margin-bottom: 4px;
        border-bottom: none;
    }

    .nav-menu>li:last-child,
    .nav-menu>li.mobile-seo-audit {
        margin-bottom: 0;
    }

    .nav-menu>li>a {
        padding: 10px 14px; /* Reduced from 14px */
        font-size: 1rem; /* Slightly smaller for space */
        font-weight: 600;
        color: var(--secondary);
        width: 100%;
        display: flex;
        justify-content: space-between;
        
        border-radius: 12px;
        background: transparent;
        transition: all 0.3s ease;
        letter-spacing: 0.01em;
    }

    .nav-menu>li>a::after {
        display: none;
    }

    .nav-menu>li>a:active,
    .nav-menu>li.active>a {
        background: rgba(0, 98, 230, 0.04);
        color: var(--primary);
    }

    .nav-menu>li.has-dropdown>a i,
    .nav-menu>li.has-mega-menu>a i {
        font-size: 0.85rem;
        color: var(--text-muted);
        transition: all 0.3s ease;
        width: 32px;
        height: 32px;
        display: flex;
        
        justify-content: center;
        background: rgba(0, 0, 0, 0.03);
        border-radius: 50%;
        margin-right: -4px;
    }

    .nav-menu>li.active>a i {
        transform: rotate(180deg);
        color: var(--primary);
        background: rgba(0, 98, 230, 0.1);
    }

    .nav-menu>li>a.active {
        color: var(--primary);
    }

    /* Fixed CTA at bottom of menu */
    .mobile-seo-audit {
        display: block !important;
        width: 100%;
        margin-top: 15px; /* Reduced from 30px */
    }

    .mobile-seo-audit .btn {
        width: 100%;
        justify-content: center;
        color: white !important;
        padding: 14px; /* Reduced from 16px */
        font-size: 1rem;
        box-shadow: 0 8px 25px rgba(0, 98, 230, 0.25);
        border-radius: 12px;
        background: linear-gradient(135deg, var(--primary), var(--primary-dark));
        border: none;
    }

    /* Mobile Social Media Icons */
    .mobile-socials {
        display: flex !important;
        flex-direction: column;
        
        width: 100%;
        margin-top: 15px; /* Reduced from 25px */
        padding-top: 15px; /* Reduced from 25px */
        border-top: 1px solid rgba(0, 0, 0, 0.05);
    }

    .mobile-socials-title {
        font-size: 0.75rem; /* Smaller labels */
        font-weight: 700;
        color: var(--text-muted);
        text-transform: uppercase;
        letter-spacing: 1.5px;
        margin-bottom: 10px; /* Reduced from 16px */
    }

    .mobile-socials .topbar-socials {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        justify-content: center;
        width: 100%;
        max-width: 100%;
        padding: 0 10px;
    }

    .mobile-socials .topbar-socials a {
        width: 38px;
        height: 38px;
        border-radius: 50%;
        background: linear-gradient(135deg, rgba(0, 98, 230, 0.05), rgba(0, 98, 230, 0.08));
        color: var(--primary);
        display: flex;
        
        justify-content: center;
        font-size: 1.05rem;
        transition: all 0.3s ease;
        border: 1px solid rgba(0, 98, 230, 0.12);
    }

    .mobile-socials .topbar-socials a:hover {
        background: linear-gradient(135deg, var(--primary), var(--primary-dark));
        color: white;
        transform: translateY(-3px);
        box-shadow: 0 8px 20px rgba(0, 98, 230, 0.25);
        border-color: transparent;
    }

    .header-actions .btn-primary {
        display: none;
    }

    /* Dropdown Menus (Company & Services) */
    .has-dropdown,
    .has-mega-menu {
        width: 100%;
        flex-direction: column;
    }

    .has-dropdown>a,
    .has-mega-menu>a {
        width: 100%;
        justify-content: space-between;
    }

    /* Smooth accordion logic - explicit visibility rules needed to override desktop hover states! */
    .dropdown-menu,
    .mega-menu {
        position: static;
        width: 100%;
        min-width: 100%;
        box-shadow: none;
        border: none;
        border-radius: 0;
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
        background: transparent;
        transform: none !important;

        display: block;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: max-height 0.4s ease, opacity 0.4s ease, visibility 0.4s, margin 0.4s ease;
        padding: 0;
        margin-top: 0;
    }

    /* Only show when explicit .active class added via our JS, override desktop hover state */
    .has-dropdown.active .dropdown-menu,
    .has-mega-menu.active .mega-menu,
    .has-dropdown.active:hover .dropdown-menu,
    .has-mega-menu.active:hover .mega-menu {
        max-height: 2000px;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        margin-bottom: 16px;
    }

    /* Disable desktop hover interactions on mobile outright */
    .has-dropdown:hover .dropdown-menu,
    .has-mega-menu:hover .mega-menu {
        transform: none !important;
        /* Let .active logic handle visibility so taps don't bug out */
    }

    /* Hide secondary CTA on mobile */
    .btn-nav-secondary {
        display: none;
    }

    /* Submenu item styling - uniform structure for both Company & Services */
    .dropdown-menu ul,
    .mega-menu__col ul {
        padding-left: 14px;
        border-left: 2px solid rgba(0, 98, 230, 0.1);
        margin-left: 8px;
    }

    .dropdown-menu ul li a,
    .mega-menu__col ul li a {
        display: flex;
        /* Ensure it is flex like on desktop */
        padding: 10px 14px;
        font-size: 0.92rem;
        gap: 10px;
        border-radius: 8px;
        background: transparent;
        box-shadow: none;
        border: none;
        
        margin-bottom: 2px;
        color: var(--text-main);
        font-weight: 500;
        transition: all 0.2s ease;
    }

    .dropdown-menu ul li a:hover,
    .mega-menu__col ul li a:hover {
        background: rgba(0, 98, 230, 0.05);
        color: var(--primary);
    }

    .mega-menu__col:not(:last-child)::after {
        display: none;
    }

    .mega-menu__inner {
        display: flex;
        flex-direction: column;
        padding: 0;
        gap: 0;
    }

    .mega-menu__inner::after {
        display: none;
    }

    .mega-menu__col {
        padding: 0 0 16px 0;
        border-right: none;
    }

    .mega-menu__col:last-child {
        padding-bottom: 0;
    }

    .mega-menu__heading {
        font-size: 0.8rem;
        margin-bottom: 12px;
        margin-top: 4px;
        gap: 8px;
        color: var(--primary);
        background: linear-gradient(135deg, rgba(0, 98, 230, 0.05), rgba(0, 98, 230, 0.01));
        padding: 12px 14px;
        border-radius: 8px;
        border: 1px solid rgba(0, 98, 230, 0.06);
        letter-spacing: 1px;
    }

    .mega-menu__heading i {
        width: auto;
        height: auto;
        font-size: 0.85rem;
        background: transparent;
        color: var(--primary);
    }

    /* Standardizing the Icons for both Company and Services */
    /* Target only the span with mega-menu__icon, not the 'i' inside it! */
    .mega-menu__icon {
        width: 32px !important;
        height: 32px !important;
        min-width: 32px !important;
        font-size: 0.85rem;
        border-radius: 8px;
        background: rgba(0, 98, 230, 0.08) !important;
        color: var(--primary) !important;
        box-shadow: none !important;
        margin-top: 0 !important;
        transform: none !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    /* Stripping desktop styling from the 'i' tag inside Company dropdown specifically for mobile */
    .dropdown-menu ul li a i {
        width: auto !important;
        height: auto !important;
        background: transparent !important;
        color: inherit !important;
        font-size: inherit !important;
    }

    /* Standardize Title across both  */
    .mega-menu__title {
        font-size: 0.92rem !important;
        /* Match Company dropdown strictly */
        font-weight: 500;
        white-space: normal;
        color: var(--text-main);
        margin: 0 !important;
        padding: 0 !important;
    }

    .mega-menu__text {
        display: flex;
        flex-direction: row;
        
        margin: 0;
    }

    .mega-menu__desc {
        display: none !important;
    }

    /* Hide Hover Desktop States */
    .mega-menu__col ul li a:hover .mega-menu__icon,
    .dropdown-menu ul li a:hover .mega-menu__icon {
        transform: none !important;
        box-shadow: none !important;
        background: rgba(0, 98, 230, 0.08) !important;
        color: var(--primary) !important;
    }

    .mobile-menu-toggle {
        display: block;
    }

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

    .page-header {
        margin-top: calc(-1 * (90px + var(--topbar-height)));
        padding-top: calc(100px + var(--topbar-height));
        padding-bottom: 90px;
    }

    .page-header h1 {
        font-size: 2.5rem;
    }

    .breadcrumbs {
        padding: 10px 0;
    }

    .breadcrumbs__list {
        font-size: 0.8rem;
    }
}

/* --- Perfect Fit for Extra Narrow Devices (320px - 360px) --- */
@media (max-width: 360px) {
    .brand-logo img {
        width: 150px !important;
        height: auto !important;
    }

    .header-container {
        padding: 0 16px;
    }

    .nav-menu {
        padding-left: 16px;
        padding-right: 16px;
    }

    .topbar-left a {
        font-size: 0.72rem;
        padding: 4px 6px;
        gap: 5px;
    }
}

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

    .header-actions .btn {
        display: none;
    }

    .section-header h2 {
        font-size: 2rem;
    }

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

    .page-header {
        margin-top: calc(-1 * (90px + var(--topbar-height)));
        padding-top: calc(85px + var(--topbar-height));
        padding-bottom: 80px;
    }

    .page-header h1 {
        font-size: 2rem;
    }

    .grid-2-cols {
        grid-template-columns: 1fr;
        gap: 40px;
    }

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

    .mission-vision {
        grid-template-columns: 1fr;
    }
}

/* --- 404 Error Sections --- */
.error-404-section {
    padding: 100px 0;
    background: var(--bg-main);
    text-align: center;
}

.error-404__icon {
    margin-bottom: 30px;
}

.error-404__icon i {
    font-size: 5rem;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0.2;
}

/* ===================================================================
   HOMEPAGE NEW SECTIONS CSS
   =================================================================== */

/* --- Trust Bar --- */
.trust-bar {
    padding: 30px 0;
    background: #ffffff;
    border-bottom: 1px solid var(--border-light);
    overflow: hidden;
}

.trust-content {
    display: flex;
    
    justify-content: center;
    gap: 40px;
}

.trust-label {
    font-weight: 600;
    color: var(--text-muted);
    font-size: 0.95rem;
    white-space: nowrap;
}

.trust-logos {
    display: flex;
    gap: 30px;
    
    opacity: 0.6;
    filter: grayscale(100%);
    transition: all var(--transition-normal);
}

.trust-logos i {
    font-size: 1.8rem;
    color: var(--secondary);
    transition: all var(--transition-fast);
}

.trust-logos i:hover {
    color: var(--primary);
    transform: scale(1.1);
}

.trust-bar:hover .trust-logos {
    opacity: 1;
    filter: grayscale(0%);
}

/* --- About Split Section --- */
.about-split {
    padding: 100px 0;
    position: relative;
    background: var(--bg-main);
}

.about-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    
}

.about-content h2 {
    font-size: 2.6rem;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.about-content p {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 20px;
}

.about-visual {
    position: relative;
    padding-left: 40px;
}

.about-visual::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 20px;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    border-radius: var(--radius-xl);
    z-index: 0;
    opacity: 0.1;
    transform: rotate(3deg);
}

.about-card {
    background: white;
    padding: 40px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    position: relative;
    z-index: 1;
    border: 1px solid var(--border-light);
}

.about-card h3 {
    font-size: 1.8rem;
    margin-bottom: 16px;
    color: var(--secondary);
}

/* --- Services Full Grid --- */
.services-full-section {
    padding: 100px 0;
    background: white;
    position: relative;
}

.services-full-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-top: 50px;
}

.services-full-grid>.service-card {
    flex: 0 1 calc(33.333% - 20px);
    max-width: calc(33.333% - 20px);
}

@media (max-width: 991px) {
    .services-full-grid>.service-card {
        flex: 0 1 calc(50% - 15px);
        max-width: calc(50% - 15px);
    }
}

@media (max-width: 768px) {
    .services-full-grid>.service-card {
        flex: 0 1 100%;
        max-width: 100%;
    }
}

/* Reuses .service-card from existing styles but inside a 3-col grid */

/* --- Why Feature List Section --- */
.why-feature-section {
    padding: 100px 0;
    background: var(--secondary);
    color: white;
    position: relative;
    overflow: hidden;
}

.why-feature-section .section-header h2 {
    color: white;
}

.why-feature-section .section-header p {
    color: var(--text-white-soft);
}

.why-list-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px 60px;
    margin-top: 50px;
}

.feature-item {
    display: flex;
    gap: 20px;
    background: rgba(255, 255, 255, 0.03);
    padding: 30px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all var(--transition-normal);
}

.feature-item:hover {
    background: rgba(255, 255, 255, 0.06);
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.feature-icon {
    width: 60px;
    height: 60px;
    min-width: 60px;
    background: linear-gradient(135deg, rgba(0, 98, 230, 0.2), rgba(77, 154, 255, 0.1));
    border-radius: var(--radius-sm);
    display: flex;
    
    justify-content: center;
    font-size: 1.6rem;
    color: var(--primary-light);
}

.feature-item:hover .feature-icon {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    box-shadow: 0 0 20px var(--primary-glow);
}

.feature-text h3 {
    color: white;
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.feature-text p {
    color: var(--text-white-soft);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* --- Inbound Split --- */
.inbound-section {
    padding: 100px 0;
    background: white;
}

.inbound-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    
}

.inbound-visual {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.inbound-visual img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.8s ease;
}

.inbound-visual:hover img {
    transform: scale(1.05);
}

.inbound-content h2 {
    font-size: 2.6rem;
    margin-bottom: 24px;
}

.inbound-list {
    margin-top: 30px;
}

.inbound-list li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
    font-size: 1.05rem;
    color: var(--text-main);
}

.inbound-list i {
    color: var(--primary);
    font-size: 1.2rem;
    margin-top: 4px;
}

/* --- FAQ Section --- */
.faq-section {
    padding: 100px 0;
    background: var(--bg-main);
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    border-radius: var(--radius-md);
    margin-bottom: 16px;
    border: 1px solid var(--border-light);
    overflow: hidden;
    transition: all var(--transition-normal);
}

.faq-item.active {
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
}

.faq-question {
    width: 100%;
    text-align: left;
    padding: 24px 30px;
    background: none;
    border: none;
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-heading);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    
    transition: color var(--transition-fast);
}

.faq-question:hover {
    color: var(--primary);
}

.faq-item.active .faq-question {
    color: var(--primary);
}

.faq-icon {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--bg-main);
    display: flex;
    
    justify-content: center;
    color: var(--primary);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
    background: var(--primary);
    color: white;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0, 1, 0, 1);
}

.faq-item.active .faq-answer {
    max-height: 500px;
    transition: max-height 0.4s ease-in-out;
}

.faq-answer-inner {
    padding: 0 30px 24px;
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.7;
    text-align: justify;
}

/* Fallback for native HTML5 accordions */
details p {
    text-align: justify;
    line-height: 1.7;
}

/* ===========================
   RESPONSIVE OVERRIDES
   =========================== */
@media (max-width: 992px) {

    .about-grid,
    .inbound-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

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

    .why-list-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .services-full-grid {
        grid-template-columns: 1fr;
    }

    .trust-content {
        flex-direction: column;
        gap: 20px;
    }

    .trust-logos {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* ===================================================================
   SEO PAGE STYLES
   =================================================================== */

/* Process Timeline (Roadmap) */
.seo-roadmap-section {
    padding: 100px 0;
    background: var(--secondary);
    position: relative;
}

.timeline-container {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 0;
}

.timeline-container::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50px;
    width: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.timeline-item {
    position: relative;
    margin-bottom: 60px;
    padding-left: 120px;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-icon {
    position: absolute;
    left: 20px;
    top: 5px;
    width: 64px;
    height: 64px;
    background: white;
    border: 4px solid var(--primary);
    border-radius: 50%;
    display: flex;
    
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary);
    z-index: 2;
    box-shadow: 0 10px 25px rgba(29, 78, 216, 0.15);
}

.timeline-content {
    background: white;
    padding: 30px;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
}

.timeline-content h3 {
    font-size: 1.4rem;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.timeline-content p {
    color: var(--text-muted);
    margin: 0;
    line-height: 1.6;
}

/* SEO Cards Grid */
.seo-pillars-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.seo-card {
    background: white;
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.seo-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.seo-card .icon-wrapper {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, rgba(29, 78, 216, 0.1) 0%, rgba(30, 64, 175, 0.05) 100%);
    border-radius: 20px;
    display: flex;
    
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 2rem;
    color: var(--primary);
    transition: all 0.3s ease;
}

.seo-card:hover .icon-wrapper {
    background: var(--primary);
    color: white;
    transform: scale(1.1);
}

.seo-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.seo-card p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.6;
}

/* SEO Activities 4-col Grid */
.seo-activities-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin-top: 50px;
}

.activity-card {
    background: white;
    padding: 30px 25px;
    border-radius: 16px;
    border: 1px solid var(--border-light);
    transition: all 0.3s ease;
}

.activity-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
}

.activity-card i {
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 20px;
}

.activity-card h3 {
    font-size: 1.2rem;
    margin-bottom: 12px;
}

.activity-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin: 0;
}

@media (max-width: 992px) {
    .seo-pillars-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

@media (max-width: 768px) {
    .timeline-container::before {
        left: 30px;
    }

    .timeline-icon {
        left: 0;
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }

    .timeline-item {
        padding-left: 80px;
    }

    .seo-pillars-grid,
    .seo-activities-grid {
        grid-template-columns: 1fr;
    }
}


/* ===================================================================
   HOME PAGE STYLES
   =================================================================== */

/* ===========================
   CLOUDFLARE TURNSTILE
   =========================== */
.cf-turnstile {
    width: 100%;
    display: flex;
    justify-content: center;
    
    margin-bottom: 25px;
    min-height: 65px;
    /* Prevent layout shifts */
    overflow: hidden;
    border-radius: var(--radius-sm);
}

.cf-turnstile iframe {
    max-width: 100% !important;
}

/* Gradient Text */
.text-gradient {
    background: linear-gradient(135deg, var(--primary) 0%, #7C3AED 50%, var(--accent) 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    animation: gradient-shift 4s ease infinite;
}

/* Hero Section */
.hero-section {
    position: relative;
    margin-top: calc(-1 * (90px + var(--topbar-height)));
    padding: 140px 0 60px;
    background: linear-gradient(170deg, #F8FAFD 0%, #EEF2FF 40%, #F0F9FF 100%);
    overflow: hidden;
}

.hero-bg-shapes {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.45;
}

.shape-1 {
    width: 500px;
    height: 500px;
    background: var(--primary-light);
    top: -150px;
    right: -100px;
    animation: float 8s ease-in-out infinite;
}

.shape-2 {
    width: 350px;
    height: 350px;
    background: var(--accent);
    bottom: -50px;
    left: -80px;
    animation: float-reverse 10s ease-in-out infinite;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 24px;
    line-height: 1.08;
    letter-spacing: -0.03em;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 90%;
    line-height: 1.8;
}

.hero-actions-container {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-card {
    padding: 36px;
    border-radius: var(--radius-xl);
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: var(--shadow-lg);
}

.stats-row {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    
    text-align: center;
    padding: 24px 20px;
    background: white;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.stat-item:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
}

.stat-item:hover::before {
    opacity: 1;
}

.stat-num {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
    margin-bottom: 6px;
}

.stat-label {
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.88rem;
}

/* --- Services Section --- */
.bg-light {
    background: linear-gradient(180deg, #F8FAFD 0%, #F1F5F9 100%);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 28px;
}

.service-card {
    padding: 36px 28px;
    border-radius: var(--radius-lg);
    transition: all var(--transition-normal);
    position: relative;
    z-index: 1;
    background: white;
    border: 1px solid var(--border-light);
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-normal);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: transparent;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card .icon-wrapper {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, rgba(0, 98, 230, 0.08), rgba(77, 154, 255, 0.08));
    color: var(--primary);
    border-radius: var(--radius-md);
    display: flex;
    
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 22px;
    transition: all var(--transition-normal);
}

.service-card:hover .icon-wrapper {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    transform: scale(1.05);
    box-shadow: 0 6px 20px var(--primary-glow);
}

.service-card h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
    letter-spacing: -0.01em;
}

.service-card p {
    color: var(--text-muted);
    margin-bottom: 22px;
    font-size: 0.92rem;
    line-height: 1.7;
}

.service-link {
    display: inline-flex;
    
    gap: 8px;
    font-weight: 600;
    font-size: 0.92rem;
    color: var(--primary);
    transition: all var(--transition-fast);
}

.service-link:hover {
    gap: 12px;
}

.service-link i {
    transition: transform var(--transition-fast);
    font-size: 0.85rem;
}

.service-card:hover .service-link i {
    transform: translateX(4px);
}

/* ===========================
   PREMIUM CTA SECTION
   =========================== */
.cta-premium {
    padding: 100px 0;
}

.cta-premium__box {
    background: linear-gradient(135deg, #0B1628 0%, var(--primary-dark) 50%, #0B1628 100%);
    background-size: 200% 200%;
    animation: gradient-shift 8s ease infinite;
    border-radius: var(--radius-xl);
    padding: 72px 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.cta-premium__shape {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.cta-premium__shape--1 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(0, 98, 230, 0.25) 0%, transparent 70%);
    top: -80px;
    right: -40px;
    animation: float 7s ease-in-out infinite;
}

.cta-premium__shape--2 {
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.15) 0%, transparent 70%);
    bottom: -60px;
    left: -20px;
    animation: float-reverse 9s ease-in-out infinite;
}

.cta-premium__shape--3 {
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(77, 154, 255, 0.12) 0%, transparent 70%);
    top: 50%;
    left: 15%;
    animation: float 11s ease-in-out infinite;
}

.cta-premium__content {
    position: relative;
    z-index: 2;
}

.cta-premium__badge {
    display: inline-flex;
    
    gap: 8px;
    padding: 8px 20px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--accent-light);
    border-radius: var(--radius-pill);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 24px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.cta-premium__badge i {
    color: var(--accent);
    font-size: 0.85rem;
}

.cta-premium__heading {
    font-size: 2.8rem;
    color: white;
    margin-bottom: 18px;
    letter-spacing: -0.02em;
    line-height: 1.15;
}

.cta-premium__text {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 36px;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

.cta-premium__btn {
    background: white;
    color: var(--primary-dark);
    font-size: 1.05rem;
    padding: 16px 40px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    transition: all var(--transition-normal);
}

.cta-premium__btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    color: var(--primary);
}

.cta-premium__btn i {
    transition: transform var(--transition-fast);
    font-size: 0.9rem;
}

.cta-premium__btn:hover i {
    transform: translateX(4px);
}

/* ===========================
   WHY CHOOSE US (Homepage)
   =========================== */
.why-choose-section {
    padding: 100px 0;
    background: white;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

.why-card {
    text-align: center;
    padding: 40px 24px;
    border-radius: var(--radius-lg);
    transition: all var(--transition-normal);
    background: var(--bg-main);
    border: 1px solid transparent;
}

.why-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(0, 98, 230, 0.08);
}

.why-card__icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    border-radius: var(--radius-md);
    display: flex;
    
    justify-content: center;
    font-size: 1.6rem;
    background: linear-gradient(135deg, rgba(0, 98, 230, 0.08), rgba(77, 154, 255, 0.08));
    color: var(--primary);
    transition: all var(--transition-normal);
}

.why-card:hover .why-card__icon {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    box-shadow: 0 6px 20px var(--primary-glow);
}

.why-card__number {
    font-family: var(--font-heading);
    font-size: 2.75rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
    margin-bottom: 8px;
}

.why-card__label {
    font-size: 0.95rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* ===========================
   SERVICES ARCHIVE PAGE
   =========================== */
.services-archive {
    padding: 100px 0;
    background: var(--bg-main);
}

.services-archive .services-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.services-archive .service-card {
    padding: 40px 30px;
}

.services-archive .service-card .icon-wrapper {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
    margin-bottom: 24px;
}

/* ===========================
   ABOUT PAGE
   =========================== */
.about-story {
    padding: 100px 0;
}

.grid-2-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    
}

.mv-box {
    padding: 28px;
    border-radius: var(--radius-md);
    background: white;
    border: 1px solid var(--border-light);
    transition: all var(--transition-normal);
}

.mv-box:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.mission-vision {
    display: flex;
    gap: 24px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 28px;
}

.value-card {
    padding: 40px;
    border-radius: var(--radius-lg);
    background: white;
    border: 1px solid var(--border-light);
    transition: all var(--transition-normal);
}

.value-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

/* ===========================
   SERVICE DETAIL PAGES
   =========================== */
.service-details {
    padding: 100px 0;
    background: var(--bg-main);
}

.service-features li {
    margin-bottom: 16px;
    display: flex;
    
    gap: 12px;
    font-weight: 500;
    font-size: 1rem;
}

.service-features i {
    color: var(--accent);
    font-size: 0.9rem;
}

/* ===========================
   TESTIMONIALS
   =========================== */
.testimonial-card {
    background: white;
    border-radius: var(--radius-xl);
    padding: 36px;
    border: 1px solid var(--border-light);
    transition: all var(--transition-normal);
}

.testimonial-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

/* ===========================
   BLOG CARDS
   =========================== */
.blog-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition-normal);
    border: 1px solid var(--border-light);
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.blog-card:hover h3 a {
    color: var(--primary) !important;
}

/* ===========================
   RESPONSIVE — Hero
   =========================== */

@media (max-width: 992px) {
    .hero-section {
        margin-top: -120px;
        padding-top: 180px;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-subtitle {
        margin: 0 auto 40px auto;
    }

    .hero-actions-container {
        justify-content: center;
    }

    .stats-row {
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
    }

    .stat-item {
        flex: 1;
        min-width: 150px;
    }

    .grid-2-cols {
        grid-template-columns: 1fr;
    }

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

    .mega-menu__inner {
        grid-template-columns: repeat(2, 1fr);
        gap: 0;
    }

    .cta-premium__heading {
        font-size: 2.2rem;
    }

    .cta-premium__box {
        padding: 50px 30px;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-actions-container {
        flex-direction: column;
        
    }

    .stats-row {
        flex-direction: column;
    }

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

    .mega-menu {
        width: 100%;
        left: 0;
        transform: translateX(0) translateY(10px);
    }

    .has-mega-menu:hover .mega-menu {
        transform: translateX(0) translateY(0);
    }

    .mega-menu__inner {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .why-card {
        padding: 28px 16px;
    }

    .why-card__number {
        font-size: 2.2rem;
    }

    .cta-premium__heading {
        font-size: 1.8rem;
    }

    .cta-premium__box {
        padding: 40px 24px;
    }

    .cta-premium__btn {
        padding: 14px 30px;
        font-size: 0.95rem;
    }
}

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

/* Footer Responsive Styles */
@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 60px;
    }
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 50px;
        text-align: center;
    }

    .footer-col {
        display: flex;
        flex-direction: column;
        
    }

    .social-links {
        justify-content: center;
    }

    .footer-heading::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-contact ul {
        display: flex;
        flex-direction: column;
        
    }

    .footer-contact li {
        justify-content: center;
        text-align: center;
    }

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

    .footer-bottom-links {
        flex-wrap: wrap;
        justify-content: center;
    }
}

.mega-menu__desc {
    text-align: justify;
}

/* ===========================
   GLOBAL TEXT JUSTIFY
   =========================== */
p,
li,
ol,
ul {
    text-align: justify;
}

/* Exclude Hero, CTA, Section Headers, and centered content */
.hero-section p,
.hero-section li,
.hero-content p,
.page-header p,
.page-header li,
.cta-premium p,
.cta-premium li,
.section-header p,
.footer-bottom p,
.text-center p,
.text-center li {
    text-align: center;
}

/* Keep nav and footer items left-aligned */
.footer-links li,
.footer-contact li,
.dropdown-menu li,
.mega-menu__col li {
    text-align: left;
}

/* Turnstile & Form Container Mobile Fix */
@media (max-width: 576px) {
    .contact-form.glass {
        padding: 20px !important;
    }

    .cf-turnstile {
        overflow: visible;
        max-width: 100%;
    }

    .cf-turnstile iframe {
        max-width: 100% !important;
        width: 100% !important;
    }
}

/* ===========================
   CASE STUDIES PAGE
   =========================== */

/* Section intro header */
.cs-section {
    padding: 100px 0 120px;
    background: var(--bg-main);
    position: relative;
}

.cs-section .section-header {
    margin-bottom: 50px;
}

.cs-section .section-header p {
    max-width: 640px;
    margin: 0 auto;
    color: var(--text-muted);
    font-size: 1.05rem;
}

/* Summary stats bar */
.cs-stats-bar {
    display: flex;
    justify-content: center;
    gap: 50px;
    flex-wrap: wrap;
    margin-bottom: 60px;
    padding: 30px 0;
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
}

.cs-stats-bar__item {
    text-align: center;
}

.cs-stats-bar__value {
    font-size: 2.2rem;
    font-weight: 800;
    font-family: var(--font-heading);
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.cs-stats-bar__label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin-top: 4px;
}

/* Grid for all cards */
.cs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 32px;
}

/* ---- Hero Card (first card, full width) ---- */
.cs-card--hero {
    grid-column: 1 / -1;
    background: linear-gradient(135deg, #0B1628 0%, #0a2540 40%, #0d3b66 100%);
    border-radius: var(--radius-xl);
    overflow: hidden;
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 30px 80px rgba(11, 22, 40, 0.25);
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.4s ease;
}

.cs-card--hero:hover {
    transform: translateY(-6px);
    box-shadow: 0 40px 100px rgba(11, 22, 40, 0.35);
}

.cs-card--hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 80%, rgba(0, 98, 230, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(77, 154, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.cs-card--hero .cs-card__body {
    padding: 50px;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.cs-card--hero .cs-card__title {
    color: white;
    font-size: 2rem;
    margin-bottom: 15px;
    line-height: 1.3;
}

.cs-card--hero .cs-card__desc {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 30px;
}

.cs-card--hero .cs-card__metrics {
    border-color: rgba(255, 255, 255, 0.1);
}

.cs-card--hero .cs-metric__value {
    font-size: 2.8rem;
}

.cs-card--hero .cs-metric__label {
    color: rgba(255, 255, 255, 0.5);
}

.cs-card--hero .cs-card__visual {
    display: flex;
    
    justify-content: center;
    padding: 50px;
    position: relative;
    z-index: 1;
}

.cs-card--hero .cs-card__visual-inner {
    width: 100%;
    height: 100%;
    min-height: 280px;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, rgba(0, 98, 230, 0.12), rgba(77, 154, 255, 0.06));
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    
    justify-content: center;
    gap: 25px;
    padding: 30px;
}

.cs-card--hero .cs-card__visual-inner i {
    font-size: 4rem;
    color: var(--primary-light);
    opacity: 0.7;
}

.cs-card--hero .cs-card__visual-inner span {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.cs-card--hero .btn-cs {
    background: white;
    color: var(--secondary);
    border: none;
}

.cs-card--hero .btn-cs:hover {
    background: var(--primary-light);
    color: white;
    box-shadow: 0 8px 30px rgba(77, 154, 255, 0.3);
}

/* ---- Standard Cards ---- */
.cs-card {
    background: white;
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        box-shadow 0.4s ease,
        border-color 0.3s ease;
    display: flex;
    flex-direction: column;
    position: relative;
}

.cs-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1), 0 8px 20px rgba(0, 0, 0, 0.06);
    border-color: rgba(0, 98, 230, 0.15);
}

/* Accent bar */
.cs-card__accent {
    height: 4px;
    width: 100%;
    flex-shrink: 0;
}

/* Card body */
.cs-card__body {
    padding: 35px 30px 30px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* Tags */
.cs-card__tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.cs-tag {
    display: inline-flex;
    
    gap: 5px;
    padding: 5px 14px;
    border-radius: var(--radius-pill);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    line-height: 1.4;
}

/* Tag color variants */
.cs-tag--blue {
    background: rgba(0, 98, 230, 0.1);
    color: #0062E6;
}

.cs-tag--teal {
    background: rgba(13, 177, 197, 0.1);
    color: #0db1c5;
}

.cs-tag--amber {
    background: rgba(245, 158, 11, 0.1);
    color: #d97706;
}

.cs-tag--red {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
}

.cs-tag--purple {
    background: rgba(139, 92, 246, 0.1);
    color: #7c3aed;
}

.cs-tag--emerald {
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
}

.cs-tag--sky {
    background: rgba(56, 189, 248, 0.1);
    color: #0284c7;
}

.cs-tag--indigo {
    background: rgba(99, 102, 241, 0.1);
    color: #4f46e5;
}

.cs-tag--pink {
    background: rgba(236, 72, 153, 0.1);
    color: #db2777;
}

.cs-tag--gold {
    background: rgba(234, 179, 8, 0.1);
    color: #b45309;
}

/* Title */
.cs-card__title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-heading);
    margin-bottom: 12px;
    line-height: 1.35;
    letter-spacing: -0.01em;
}

/* Description */
.cs-card__desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.75;
    margin-bottom: 25px;
    flex: 1;
}

/* Metrics row */
.cs-card__metrics {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    padding-top: 22px;
    border-top: 1px solid var(--border-light);
    margin-bottom: 25px;
}

.cs-metric {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.cs-metric__value {
    font-size: 2rem;
    font-weight: 800;
    font-family: var(--font-heading);
    line-height: 1.1;
}

/* Standardized metric value colors */
.cs-metric__value--up {
    color: #10b981;
}

.cs-metric__value--down {
    color: #10b981;
}

.cs-metric__value--money {
    color: #f59e0b;
}

.cs-metric__value--primary {
    color: var(--primary);
}

.cs-metric__value--purple {
    color: #8b5cf6;
}

.cs-metric__value--red {
    color: #ef4444;
}

.cs-metric__value--sky {
    color: #0ea5e9;
}

.cs-metric__label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* CTA Button */
.btn-cs {
    display: flex;
    
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px 24px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.92rem;
    letter-spacing: 0.02em;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    margin-top: auto;
}

.btn-cs:hover {
    background: var(--primary-dark);
    color: white;
    box-shadow: 0 8px 25px rgba(0, 98, 230, 0.3);
    transform: translateY(-2px);
}

.btn-cs i {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.btn-cs:hover i {
    transform: translateX(4px);
}

/* Category Filter Tabs (optional future) */
.cs-filters {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
    .cs-card--hero {
        grid-template-columns: 1fr;
    }

    .cs-card--hero .cs-card__visual {
        padding: 0 40px 40px;
    }

    .cs-card--hero .cs-card__visual-inner {
        min-height: 180px;
    }
}

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

    .cs-card--hero .cs-card__body {
        padding: 30px 25px;
    }

    .cs-card--hero .cs-card__title {
        font-size: 1.6rem;
    }

    .cs-card--hero .cs-metric__value {
        font-size: 2.2rem;
    }

    .cs-card--hero .cs-card__visual {
        padding: 0 25px 30px;
    }

    .cs-card__body {
        padding: 28px 22px 24px;
    }

    .cs-card__title {
        font-size: 1.3rem;
    }

    .cs-stats-bar {
        gap: 25px;
    }

    .cs-stats-bar__value {
        font-size: 1.6rem;
    }

    .cs-section {
        padding: 60px 0 80px;
    }
}

/* ===================================================================
   BLOG GRID & CARD BASICS
   =================================================================== */
.blog-grid {
    display: grid;
    gap: 32px;
}

.blog-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-sm);
    position: relative;
    text-decoration: none;
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-light);
}

/* Breadcrumbs Pill (Inner Pages Hero) */
.breadcrumbs-pill {
    display: inline-flex;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50px;
    padding: 6px 18px;
    margin-bottom: 24px;
    position: relative;
    z-index: 10;
}

.breadcrumbs-pill__list {
    display: flex;
    
    gap: 10px;
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.85rem;
}

.breadcrumbs-pill__item {
    display: flex;
    
    gap: 10px;
}

.breadcrumbs-pill__item:not(:last-child)::after {
    content: '\f054';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 0.6rem;
    color: rgba(255, 255, 255, 0.4);
}

.breadcrumbs-pill__link {
    color: rgba(255, 255, 255, 0.6);
    font-weight: 500;
    transition: color var(--transition-fast);
}

.breadcrumbs-pill__link:hover {
    color: #fff;
}



/* BLOG CARDS & PAGINATION (WP) */
.blog-grid {
    display: grid;
    gap: 32px;
}

.blog-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-sm);
    position: relative;
    text-decoration: none;
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-light);
}
.blog-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-card:hover .blog-card__image {
    transform: scale(1.05);
}

.blog-card__placeholder {
    background: linear-gradient(135deg, rgba(0, 98, 230, 0.1), rgba(0, 98, 230, 0.05));
    display: flex;
    
    justify-content: center;
    color: var(--primary);
    font-size: 3rem;
    opacity: 0.5;
}

.blog-card__content {
    padding: 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.blog-card__category {
    display: inline-block;
    align-self: flex-start;
    padding: 6px 14px;
    background: rgba(0, 98, 230, 0.08);
    color: var(--primary);
    border-radius: var(--radius-pill);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    transition: all var(--transition-fast);
}

.blog-card__category:hover {
    background: var(--primary);
    color: white;
}

.blog-card__title {
    font-size: 1.4rem;
    margin-bottom: 15px;
    line-height: 1.4;
    font-weight: 700;
}

.blog-card__title a {
    color: var(--text-heading);
    transition: color var(--transition-fast);
}

.blog-card:hover .blog-card__title a,
.blog-card__title a:hover {
    color: var(--primary);
}

.blog-card__excerpt {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 25px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-grow: 1;
}

.blog-card__meta {
    display: flex;
    flex-wrap: wrap;
    
    justify-content: space-between;
    gap: 15px;
    padding-top: 20px;
    border-top: 1px solid var(--border-light);
    margin-top: auto;
}

.blog-card__author {
    display: flex;
    
    gap: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-heading);
}

.blog-card__avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
}

.blog-card__details {
    display: flex;
    
    gap: 15px;
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
}

.blog-card__details i {
    margin-right: 5px;
    color: var(--primary-light);
}

.blog-card__readmore {
    display: flex;
    
    justify-content: center;
    gap: 8px;
    padding: 15px;
    background: rgba(0, 98, 230, 0.03);
    color: var(--primary);
    font-weight: 600;
    font-size: 0.95rem;
    border-top: 1px solid var(--border-light);
    transition: all var(--transition-fast);
}

.blog-card__readmore:hover {
    background: var(--primary);
    color: white;
}

.blog-pagination {
    margin-top: 60px;
    margin-bottom: 20px;
    width: 100%;
}

.blog-pagination .nav-links {
    display: flex;
    justify-content: center;
    
    flex-wrap: wrap;
    gap: 10px;
}

.blog-pagination .page-numbers {
    display: inline-flex;
    
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    color: var(--text-heading);
    font-weight: 600;
    font-size: 0.95rem;
    transition: all var(--transition-fast);
    text-decoration: none;
}

.blog-pagination .page-numbers:hover,
.blog-pagination .page-numbers:focus {
    background: rgba(0, 98, 230, 0.05);
    color: var(--primary);
    border-color: var(--primary-light);
}

.blog-pagination .page-numbers.current,
.blog-pagination .page-numbers.current:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(0, 98, 230, 0.2);
}

.blog-pagination .page-numbers i {
    font-size: 0.8rem;
}

.blog-pagination .screen-reader-text {
    display: none;
}

.blog-empty {
    text-align: center;
    padding: 80px 20px;
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
}

.blog-empty i {
    font-size: 4rem;
    color: var(--primary-light);
    margin-bottom: 20px;
    opacity: 0.5;
}

.blog-empty h2 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.blog-empty p {
    color: var(--text-muted);
    margin-bottom: 30px;
    font-size: 1.1rem;
}

/* ===========================
   BLOG CONTENT + SIDEBAR LAYOUT
   =========================== */
.blog-listing,
.single-post,
.archive {
    padding: 80px 0;
    background: var(--bg-main);
}
section.blog-listing .container,
section.single-post .container {
    max-width: 1320px;
}

.blog-content-wrapper {
    display: flex;
    flex-direction: row;
    gap: 36px;
    align-items: flex-start;
    width: 100%;
}

.blog-main-content {
    flex: 1 1 0%;
    min-width: 0;
    max-width: calc(100% - 336px);
}

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

.single-post .blog-content-wrapper .related-posts .blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

.single-post .blog-content-wrapper .related-posts .blog-card {
    max-width: 400px;
    width: 100%;
}

.related-posts {
    margin-top: 50px;
    padding-top: 40px;
    border-top: 1px solid var(--border-light);
}

.related-posts__heading {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-heading);
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 12px;
}

.related-posts__heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--primary);
    border-radius: 3px;
}

.single-post .related-posts .blog-card__title {
    font-size: 1.15rem;
    line-height: 1.4;
    margin-bottom: 12px;
}

.single-post .related-posts .blog-card__excerpt {
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 15px;
}

/* ===========================
   SIDEBAR
   =========================== */
.blog-sidebar {
    width: 300px;
    min-width: 300px;
    flex-shrink: 0;
    position: sticky;
    top: 120px;
}

.sidebar-widget {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--transition-normal);
}

.sidebar-widget:hover {
    box-shadow: var(--shadow-md);
}

.sidebar-widget:last-child {
    margin-bottom: 0;
}

.widget-title {
    display: inline-flex;
    
    gap: 8px;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-heading);
    padding: 8px 20px;
    background: linear-gradient(135deg, rgba(0, 98, 230, 0.06), rgba(77, 154, 255, 0.06));
    border: 1px solid rgba(0, 98, 230, 0.1);
    border-radius: var(--radius-pill);
    margin-bottom: 18px;
    letter-spacing: 0.02em;
}

.widget-title i {
    color: var(--primary);
    font-size: 0.85rem;
}

.sidebar-search-form {
    display: flex;
    gap: 0;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid var(--border-light);
    transition: border-color var(--transition-fast);
}

.sidebar-search-form:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 98, 230, 0.08);
}

.sidebar-search-input {
    flex: 1;
    min-width: 0;
    border: none;
    padding: 12px 16px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--text-main);
    background: var(--bg-main);
    outline: none;
}

.sidebar-search-input::placeholder {
    color: var(--text-muted);
}

.sidebar-search-btn {
    flex-shrink: 0;
    padding: 12px 18px;
    border: none;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all var(--transition-fast);
}

.sidebar-search-btn:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
}

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

.sidebar-posts-list li {
    padding: 12px 0;
    border-bottom: 1px solid var(--border-subtle);
}

.sidebar-posts-list li:first-child {
    padding-top: 0;
}

.sidebar-posts-list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.sidebar-posts-list li a {
    color: var(--text-heading);
    font-weight: 600;
    font-size: 0.88rem;
    line-height: 1.45;
    display: block;
    transition: color var(--transition-fast);
    font-family: var(--font-heading);
}

.sidebar-posts-list li a:hover {
    color: var(--primary);
}

.sidebar-archive-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-archive-list li {
    padding: 8px 0;
    border-bottom: 1px solid var(--border-subtle);
}

.sidebar-archive-list li:first-child {
    padding-top: 0;
}

.sidebar-archive-list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.sidebar-archive-list li a {
    color: var(--text-main);
    font-size: 0.88rem;
    font-weight: 500;
    display: flex;
    
    gap: 8px;
    transition: color var(--transition-fast);
}

.sidebar-archive-list li a::before {
    content: '\f073';
    font-family: 'Font Awesome 6 Free';
    font-weight: 400;
    font-size: 0.75rem;
    color: var(--primary);
    opacity: 0.5;
}

.sidebar-archive-list li a:hover {
    color: var(--primary);
}

.sidebar-category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-category-list li {
    padding: 8px 0;
    border-bottom: 1px solid var(--border-subtle);
}

.sidebar-category-list li:first-child {
    padding-top: 0;
}

.sidebar-category-list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.sidebar-category-list li a {
    color: var(--text-main);
    font-size: 0.88rem;
    font-weight: 500;
    transition: color var(--transition-fast);
}

.sidebar-category-list li a::before {
    content: '\f07b';
    font-family: 'Font Awesome 6 Free';
    font-weight: 400;
    font-size: 0.75rem;
    color: var(--primary);
    opacity: 0.5;
    margin-right: 8px;
}

.sidebar-category-list li a:hover {
    color: var(--primary);
}

.sidebar-category-list .children {
    list-style: none;
    padding: 0 0 0 16px;
    margin: 4px 0 0 0;
}

.sidebar-category-list .children li {
    padding: 6px 0;
}

.sidebar-comments-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-comments-list li {
    padding: 10px 0;
    border-bottom: 1px solid var(--border-subtle);
    font-size: 0.85rem;
    line-height: 1.5;
    color: var(--text-muted);
}

.sidebar-comments-list li:first-child {
    padding-top: 0;
}

.sidebar-comments-list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.sidebar-comments-list .comment-author-name {
    font-weight: 700;
    color: var(--text-heading);
}

.sidebar-comments-list li a {
    color: var(--primary);
    font-weight: 600;
    transition: color var(--transition-fast);
}

.sidebar-comments-list li a:hover {
    color: var(--primary-dark);
}

/* ============================================
   SINGLE POST — PREMIUM ARTICLE STYLES
   ============================================ */
.single-post__hero-meta {
    display: flex;
    
    justify-content: center;
    gap: 12px;
    margin-top: 24px;
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.92rem;
    font-weight: 500;
}

.single-post__hero-meta i {
    margin-right: 6px;
    font-size: 0.85rem;
    opacity: 0.7;
}

.meta-sep {
    opacity: 0.4;
}

.single-post__featured-image+.single-post__content.content-body>p:first-child>img:first-child,
.single-post__featured-image+.single-post__content.content-body>figure:first-child,
.single-post__featured-image+.single-post__content.content-body>.wp-block-image:first-child {
    display: none;
}

.single-post__featured-image {
    margin-bottom: 36px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.single-post__img {
    width: 100%;
    height: auto;
    display: block;
}

.single-post__content.content-body {
    font-size: 1.08rem;
    line-height: 1.85;
    color: var(--text-main);
    text-align: left;
}

.single-post__content.content-body p {
    margin-bottom: 1.5em;
    font-size: 1.08rem;
    line-height: 1.85;
}

.single-post__content.content-body h2 {
    font-family: var(--font-heading);
    font-size: 1.7rem;
    font-weight: 800;
    color: var(--text-heading);
    margin: 2.5em 0 0.8em 0;
    padding-bottom: 12px;
    border-bottom: 2px solid rgba(0, 98, 230, 0.08);
    letter-spacing: -0.01em;
    line-height: 1.3;
}

.single-post__content.content-body h3 {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-heading);
    margin: 2em 0 0.7em 0;
    line-height: 1.35;
}

.single-post__content.content-body h4 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-heading);
    margin: 1.8em 0 0.6em 0;
    line-height: 1.4;
}

/* Author Bio */
.author-bio {
    display: flex;
    
    gap: 32px;
    padding: 40px;
    background: white;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    margin: 60px 0;
    box-shadow: var(--shadow-sm);
}

.author-bio__avatar img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--bg-main);
    box-shadow: var(--shadow-md);
}

.author-bio__name {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-heading);
    margin-bottom: 8px;
}

.author-bio__desc {
    color: var(--text-muted);
    line-height: 1.6;
    font-size: 0.95rem;
    margin: 0;
}

/* Tags */
.single-post__tags {
    display: flex;
    flex-wrap: wrap;
    
    gap: 12px;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid var(--border-light);
}

.tags-label {
    font-weight: 700;
    font-size: 0.92rem;
    color: var(--text-heading);
}

.tag-pill {
    padding: 6px 16px;
    background: var(--bg-main);
    color: var(--text-main);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.25s ease;
    border: 1px solid var(--border-light);
}

.tag-pill:hover {
    background: var(--primary);
    color: white !important;
    border-color: var(--primary);
    transform: translateY(-1px);
}

/* Post Navigation (Prev/Next) */
.post-navigation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 60px 0;
    padding: 40px 0;
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
}

.post-nav__label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    color: var(--text-muted);
    display: block;
    margin-bottom: 8px;
}

.post-nav__title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-heading);
    text-decoration: none;
    transition: color 0.2s;
    line-height: 1.4;
    display: block;
}

.post-nav__title:hover {
    color: var(--primary);
}

.post-nav__next {
    text-align: right;
}

/* Comments Section Styling */
.comments-area {
    margin-top: 60px;
}

.comments-title {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 40px;
    color: var(--text-heading);
}

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

.comment-list .comment {
    margin-bottom: 30px;
    padding: 24px;
    background: white;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
}

.comment-list .children {
    margin-left: 40px;
    margin-top: 20px;
}

.comment-author .avatar {
    border-radius: 50%;
    margin-right: 15px;
    float: left;
}

.comment-metadata {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 15px;
}

.comment-content {
    font-size: 1rem;
    line-height: 1.6;
    clear: both;
}

.reply {
    margin-top: 15px;
}

.comment-reply-link {
    font-weight: 700;
    color: var(--primary);
    font-size: 0.85rem;
}

/* Comment Form */
#respond {
    margin-top: 60px;
    background: #f8fafc;
    padding: 40px;
    border-radius: var(--radius-xl);
}

#reply-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 24px;
}

.comment-form p {
    margin-bottom: 20px;
}

.comment-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.9rem;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    background: white;
    font-family: var(--font-body);
}

.form-submit input[type="submit"] {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border: none;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
}

.form-submit input[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px var(--primary-glow);
}

.single-post__content.content-body>h2:first-child,
.single-post__content.content-body>h3:first-child {
    margin-top: 0;
}

.single-post__content.content-body ul li::marker {
    color: var(--primary);
}

.single-post__content.content-body blockquote {
    margin: 2em 0;
    padding: 20px 28px;
    border-left: 4px solid var(--primary);
    background: linear-gradient(135deg, rgba(0, 98, 230, 0.03), rgba(77, 154, 255, 0.03));
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-style: italic;
    font-size: 1.1rem;
    color: var(--text-heading);
}

.single-post__content.content-body blockquote p:last-child {
    margin-bottom: 0;
}

.single-post__content.content-body img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    margin: 1.5em 0;
    display: block;
}

.single-post__content.content-body .wp-caption {
    max-width: 100%;
    margin: 1.5em 0;
}

.single-post__content.content-body .wp-caption-text {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-align: center;
    margin-top: 8px;
    font-style: italic;
}

.single-post__content.content-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5em 0;
    font-size: 0.95rem;
}

.single-post__content.content-body th,
.single-post__content.content-body td {
    padding: 12px 16px;
    border: 1px solid var(--border-light);
    text-align: left;
}

.single-post__content.content-body th {
    background: linear-gradient(135deg, rgba(0, 98, 230, 0.06), rgba(77, 154, 255, 0.04));
    font-weight: 700;
    color: var(--text-heading);
}

.single-post__content.content-body tr:nth-child(even) td {
    background: rgba(0, 0, 0, 0.015);
}

.single-post__content.content-body code {
    background: rgba(0, 98, 230, 0.06);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.9em;
    color: var(--primary-dark);
}

.single-post__content.content-body pre {
    background: #0B1628;
    color: #e0e0e0;
    padding: 20px 24px;
    border-radius: var(--radius-md);
    overflow-x: auto;
    margin: 1.5em 0;
    font-size: 0.9rem;
    line-height: 1.6;
}

.single-post__content.content-body pre code {
    background: none;
    padding: 0;
    color: inherit;
    font-size: inherit;
}

.single-post__content.content-body a {
    color: var(--primary);
    text-decoration: underline;
    text-decoration-color: rgba(0, 98, 230, 0.3);
    text-underline-offset: 3px;
    transition: color var(--transition-fast), text-decoration-color var(--transition-fast);
}

.single-post__content.content-body a:hover {
    color: var(--primary-dark);
    text-decoration-color: var(--primary);
}

.single-post__tags {
    display: flex;
    flex-wrap: wrap;
    
    gap: 10px;
    margin-top: 36px;
    padding-top: 24px;
    border-top: 1px solid var(--border-subtle);
}

.tags-label {
    font-weight: 700;
    font-size: 0.88rem;
    color: var(--text-heading);
}

.tags-label i {
    color: var(--primary);
    margin-right: 4px;
}

.tag-pill {
    display: inline-block;
    padding: 5px 14px;
    background: linear-gradient(135deg, rgba(0, 98, 230, 0.06), rgba(77, 154, 255, 0.06));
    color: var(--primary);
    border: 1px solid rgba(0, 98, 230, 0.1);
    border-radius: var(--radius-pill);
    font-size: 0.8rem;
    font-weight: 600;
    transition: all var(--transition-fast);
}

.tag-pill:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.author-bio {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    padding: 28px;
    margin-top: 40px;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.author-bio__img {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(0, 98, 230, 0.1);
}

.author-bio__name {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-heading);
    margin-bottom: 6px;
}

.author-bio__desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.65;
}

.post-navigation {
    display: flex;
    gap: 20px;
    margin-top: 40px;
    padding: 28px;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.post-nav__prev,
.post-nav__next {
    flex: 1;
}

.post-nav__next {
    text-align: right;
}

.post-nav__label {
    display: block;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary);
    margin-bottom: 8px;
}

.post-nav__title {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-heading);
    line-height: 1.45;
    transition: color var(--transition-fast);
}

.post-nav__title:hover {
    color: var(--primary);
}

/* --- Comments Section --- */
.comments-section {
    margin-top: 50px;
    padding: 32px;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.comments-section .comment-reply-title,
.comments-section h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-heading);
    margin-bottom: 20px;
}

.comments-section .comment-form label {
    display: block;
    font-weight: 600;
    font-size: 0.88rem;
    color: var(--text-heading);
    margin-bottom: 6px;
}

.comments-section .comment-form input[type="text"],
.comments-section .comment-form input[type="email"],
.comments-section .comment-form input[type="url"],
.comments-section .comment-form textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--text-main);
    background: var(--bg-main);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
    margin-bottom: 16px;
}

.comments-section .comment-form input:focus,
.comments-section .comment-form textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 98, 230, 0.08);
}

.comments-section .comment-form textarea {
    min-height: 150px;
    resize: vertical;
}

.comments-section .comment-form-cookies-consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 24px;
}

.comments-section .comment-form-cookies-consent input[type="checkbox"] {
    margin-top: 4px;
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.comments-section .comment-form-cookies-consent label {
    margin-bottom: 0;
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--text-muted);
    cursor: pointer;
    line-height: 1.5;
}

.comments-section .form-submit input[type="submit"] {
    display: inline-flex;
    
    gap: 8px;
    padding: 12px 28px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    border: none;
    border-radius: var(--radius-pill);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.comments-section .form-submit input[type="submit"]:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.comments-section .comment-list {
    list-style: none;
    padding: 0;
    margin: 0 0 32px 0;
}

.comments-section .comment {
    padding: 20px 0;
    border-bottom: 1px solid var(--border-subtle);
}

.comments-section .comment:last-child {
    border-bottom: none;
}

.comments-section .comment-author img {
    border-radius: 50%;
    margin-right: 12px;
}

.comments-section .comment-meta {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.comments-section .comment-content p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-main);
}

.page-links {
    display: flex;
    
    gap: 8px;
    margin-top: 2em;
    padding-top: 1em;
    border-top: 1px solid var(--border-subtle);
}

.page-links__label {
    font-weight: 700;
    color: var(--text-heading);
    margin-right: 4px;
}

.page-links__number {
    display: inline-flex;
    
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(0, 98, 230, 0.06);
    color: var(--primary);
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.9rem;
}

@media (max-width: 1100px) {
    .blog-listing .container,
    .single-post .container {
        max-width: 100%;
    }

    .blog-sidebar {
        width: 260px;
        min-width: 260px;
    }

    .blog-main-content {
        max-width: calc(100% - 296px);
    }

    .blog-content-wrapper {
        gap: 28px;
    }

    .blog-content-wrapper .blog-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 992px) {
    .blog-content-wrapper {
        flex-direction: column;
    }

    .blog-main-content {
        max-width: 100%;
    }

    .blog-sidebar {
        width: 100%;
        min-width: 100%;
        position: static;
        max-height: none;
        overflow-y: visible;
    }

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

    .blog-sidebar {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }

    .sidebar-widget {
        margin-bottom: 0;
    }
}

@media (max-width: 600px) {
    .blog-content-wrapper .blog-grid {
        grid-template-columns: 1fr;
    }

    .blog-sidebar {
        grid-template-columns: 1fr;
    }
}

/* WordPress Admin Bar Fixes are now handled via :root variables above */
#wpadminbar {
    z-index: 99999 !important;
}

/* ============================================
   BLOG CARD IMAGES
   ============================================ */
.blog-card__image-link {
    display: block;
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
    background: linear-gradient(135deg, #f0f4f8 0%, #e2e8f0 100%);
}

.blog-card__image-link img,
.blog-card__image-link .blog-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.blog-card:hover .blog-card__image-link img,
.blog-card:hover .blog-card__image-link .blog-card__image {
    transform: scale(1.05);
}

.blog-card__placeholder {
    display: flex;
    
    justify-content: center;
    background: #0B1628 !important;
    color: rgba(255, 255, 255, 0.25);
    font-size: 3rem;
}

.single-post__featured-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 32px;
}

.single-post__featured-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius-lg);
}

/* ============================================
   CUSTOM SHARE BUTTONS
   ============================================ */
.custom-share-buttons {
    display: flex;
    flex-wrap: wrap;
    
    gap: 12px;
    margin: 40px 0 10px 0;
    padding: 12px 24px;
    background: transparent;
    border-radius: 50px;
    border: 3px solid var(--primary);
    width: max-content;
    max-width: 100%;
}

.custom-share-buttons .share-label {
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-heading);
    margin-right: 4px;
    font-family: var(--font-heading, sans-serif);
}

.custom-share-buttons .share-btn {
    display: inline-flex;
    
    justify-content: center;
    gap: 8px;
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    font-family: var(--font-body, sans-serif);
    text-decoration: none;
    transition: all 0.25s ease;
    border: none;
    cursor: pointer;
    line-height: 1.2;
}

.custom-share-buttons .share-btn i {
    font-size: 0.95rem;
}

.custom-share-buttons .share-btn:hover {
    color: #ffffff !important;
}

.custom-share-buttons .more-btn:hover {
    color: #050505 !important;
}

.custom-share-buttons .fb-btn {
    background-color: #1877F2;
    color: #ffffff !important;
}

.custom-share-buttons .fb-btn:hover {
    background-color: #166FE5;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(24, 119, 242, 0.35);
}

.custom-share-buttons .x-btn {
    background-color: #000000;
    color: #ffffff !important;
}

.custom-share-buttons .x-btn:hover {
    background-color: #333333;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}

.custom-share-buttons .li-btn {
    background-color: #0A66C2;
    color: #ffffff !important;
}

.custom-share-buttons .li-btn:hover {
    background-color: #08529C;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(10, 102, 194, 0.35);
}

.custom-share-buttons .more-btn {
    background-color: #E4E6EB;
    color: #050505 !important;
}

.custom-share-buttons .more-btn:hover {
    background-color: #D8DADF;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

@media (max-width: 768px) {
    .custom-share-buttons {
        border-radius: var(--radius-lg);
        padding: 16px;
        width: 100%;
        gap: 10px;
        border-width: 2px;
        justify-content: center;
    }

    .custom-share-buttons .share-label {
        width: 100%;
        text-align: center;
        margin-bottom: 4px;
        margin-right: 0;
        font-size: 0.9rem;
    }

    .custom-share-buttons .share-btn {
        padding: 10px 14px;
        font-size: 0.82rem;
        gap: 6px;
    }
}

@media (max-width: 480px) {
    .custom-share-buttons {
        border-radius: var(--radius-md);
        padding: 14px;
        gap: 8px;
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        border-width: 2px;
    }

    .custom-share-buttons .share-label {
        grid-column: 1 / -1;
        text-align: center;
        margin-bottom: 4px;
        font-size: 0.85rem;
    }

    .custom-share-buttons .share-btn {
        padding: 10px;
        font-size: 0;
        gap: 0;
        border-radius: var(--radius-sm);
        justify-content: center;
        width: 100%;
    }

    .custom-share-buttons .share-btn i {
        font-size: 1.1rem;
    }
}











