:root {
        --primary-color: #1E1E1E;
        --secondary-color: #5A3D22;
        --accent-color: #C68A4A;
        --text-dark: #141414;
        --text-medium: #404040;
        --text-light: #6A6A6A;
        --light-bg: #F9F3EE;
        --white: #FFFFFF;
        --black: #000000;
        --btn-primary: #C68A4A;
        --btn-primary-hover: #A6703A;
        --btn-secondary: #0A2A66;
        --btn-secondary-hover: #081F4D;
        --primary-font: 'Poppins', sans-serif;
        --secondary-font: 'Playfair Display', serif;
        --section-padding: 120px 0;
        --section-padding-md: 80px 0;
        --section-padding-sm: 60px 0;
        --transition: all 0.4s ease-in-out;
        --shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
        --shadow-hover: 0 12px 32px rgba(0, 0, 0, 0.15);
        --border-radius: 14px;
    }

    /* Font Import */
    @import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&family=Playfair+Display:wght@400;700&display=swap');
    @import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css');

    /* Base Styles */
    * {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
    }

    body {
        font-family: var(--primary-font);
        color: var(--text-medium);
        line-height: 1.8;
        overflow-x: hidden;
        background-color: var(--light-bg);
    }

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

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

    img {
        max-width: 100%;
        height: auto;
        object-fit: cover;
    }

    .btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 12px 32px;
        border-radius: 50px;
        font-weight: 600;
        text-transform: uppercase;
        transition: var(--transition);
        border: none;
        font-size: 0.95rem;
        position: relative;
        overflow: hidden;
        z-index: 1;
        letter-spacing: 0.6px;
    }

    .btn-primary {
        background-color: var(--btn-primary);
        color: var(--white);
        box-shadow: var(--shadow);
    }

    .btn-primary:hover {
        background-color: var(--btn-primary-hover);
        transform: translateY(-3px);
        box-shadow: var(--shadow-hover);
    }

    .container {
        width: 100%;
        padding-right: 15px;
        padding-left: 15px;
        margin-right: auto;
        margin-left: auto;
    }

    @media (min-width: 576px) {
        .container {
            max-width: 540px;
        }
    }

    @media (min-width: 768px) {
        .container {
            max-width: 720px;
        }
    }

    @media (min-width: 992px) {
        .container {
            max-width: 960px;
        }
    }

    @media (min-width: 1200px) {
        .container {
            max-width: 1140px;
        }
    }

    @media (min-width: 1400px) {
        .container {
            max-width: 1320px;
        }
    }

    @media (min-width: 1920px) {
        .container {
            max-width: 1600px;
        }
    }

    /* ========== Hero Section ========== */
    .blog-hero {
        position: relative;
        height: 60vh;
        min-height: 400px;
        display: flex;
        align-items: center;
        /*background: linear-gradient(rgba(10, 42, 102, 0.9), rgba(10, 42, 102, 0.6)),*/
        /*    url('<?php the_post_thumbnail_url('full'); ?>') no-repeat center/cover;*/
        /*color: var(--white);*/
        text-align: center;
        overflow: hidden;
        box-shadow: inset 0 0 200px rgba(0, 0, 0, 0.3);
    }

    .blog-hero::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: radial-gradient(circle, rgba(198, 138, 74, 0.1) 0%, rgba(10, 42, 102, 0.2) 100%);
    }

    .blog-hero .hero-content {
        max-width: 900px;
        margin: 0 auto;
        padding: 0 20px;
        position: relative;
        z-index: 2;
    }

    .blog-hero h1 {
        font-size: clamp(2rem, 4vw, 4rem);
        margin-bottom: 1.5rem;
        text-transform: capitalize;
        letter-spacing: 1px;
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
        line-height: 1.2;
        color: white;
    }

    .blog-hero .meta-info {
        font-size: 1.1rem;
        opacity: 0.95;
        text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
        display: flex;
        justify-content: center;
        gap: 20px;
        flex-wrap: wrap;
        margin-bottom: 2rem;
    }

    .blog-hero .meta-info span {
        display: flex;
        align-items: center;
        gap: 8px;
        font-weight: 500;
    }

    .blog-hero .meta-info i {
        color: var(--accent-color);
    }

    .blog-hero .btn-scroll {
        position: absolute;
        bottom: 40px;
        left: 50%;
        transform: translateX(-50%);
        color: var(--white);
        font-size: 1.5rem;
        animation: bounce 2s infinite;
    }

    @keyframes bounce {

        0%,
        20%,
        50%,
        80%,
        100% {
            transform: translateY(0) translateX(-50%);
        }

        40% {
            transform: translateY(-20px) translateX(-50%);
        }

        60% {
            transform: translateY(-10px) translateX(-50%);
        }
    }

    @media (max-width: 768px) {
        .blog-hero {
            height: 60vh;
            min-height: 500px;
            margin-bottom: 60px;
        }

        .blog-hero h1 {
            font-size: 2.5rem;
        }

        .meta-info {
            flex-direction: column;
            gap: 10px;
        }
    }

    .blog-content-area {
        padding: var(--section-padding);
        background: var(--white);
    }

    .content-grid {
        display: grid;
        grid-template-columns: 8fr 4fr;
        gap: 3rem;
    }

    .main-content {
        font-size: 1.1rem;
        color: var(--text-medium);
        line-height: 1.8;
    }

    .main-content>* {
        margin-bottom: 1.5rem;
    }

    .main-content h2 {
        font-size: 2rem;
        margin: 2.5rem 0 1.5rem;
        color: var(--secondary-color);
        position: relative;
        padding-bottom: 10px;
    }

    .main-content h2::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 80px;
        height: 3px;
        background: var(--accent-color);
    }

    .main-content h3 {
        font-size: 1.6rem;
        margin: 2rem 0 1rem;
        color: var(--text-dark);
    }

    .main-content img {
        border-radius: var(--border-radius);
        margin: 1.5rem 0;
        box-shadow: var(--shadow);
    }

    .main-content figcaption {
        font-size: 0.9rem;
        color: var(--text-light);
        text-align: center;
        margin-bottom: 1.5rem;
        font-style: italic;
    }

    .main-content blockquote {
        border-left: 4px solid var(--accent-color);
        padding: 20px 30px;
        background: var(--light-bg);
        font-style: italic;
        margin: 2rem 0;
        position: relative;
    }

    .main-content blockquote::before {
        content: '\201C';
        font-family: Georgia, serif;
        font-size: 4rem;
        color: var(--accent-color);
        position: absolute;
        left: 10px;
        top: 10px;
        opacity: 0.3;
    }

    .main-content blockquote p {
        position: relative;
        z-index: 1;
        padding-left: 30px;
    }

    .sidebar {
        padding: 0;
    }

    .sidebar-widget {
        margin-bottom: 2.5rem;
        background: var(--white);
        border-radius: var(--border-radius);
        box-shadow: var(--shadow);
        padding: 1.5rem;
        position: sticky;
        top: 100px;
    }

    .sidebar-widget:first-child {
        top: 20px;
    }

    .sidebar-widget h3 {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
        color: var(--secondary-color);
        position: relative;
        padding-bottom: 10px;
    }

    .sidebar-widget h3::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 50px;
        height: 3px;
        background: var(--accent-color);
    }

    .sidebar-search {
        display: flex;
        background: var(--light-bg);
        border-radius: var(--border-radius);
        overflow: hidden;
        margin-bottom: 1.5rem;
    }

    .sidebar-search input {
        flex-grow: 1;
        padding: 12px 15px;
        border: none;
        font-size: 1rem;
        color: var(--text-dark);
        background: var(--light-bg);
    }

    .sidebar-search button {
        background: var(--accent-color);
        color: var(--white);
        border: none;
        padding: 0 20px;
        cursor: pointer;
        transition: var(--transition);
    }

    .sidebar-search button:hover {
        background: var(--btn-primary-hover);
    }

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

    .sidebar-categories li {
        margin-bottom: 0.8rem;
        font-size: 1rem;
        color: var(--text-medium);
        transition: var(--transition);
        padding: 8px 0;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }

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

    .sidebar-categories li:hover {
        color: var(--accent-color);
        padding-left: 5px;
    }

    .sidebar-latest-posts .post {
        display: flex;
        gap: 1rem;
        margin-bottom: 1.2rem;
        padding-bottom: 1.2rem;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }

    .sidebar-latest-posts .post:last-child {
        margin-bottom: 0;
        padding-bottom: 0;
        border-bottom: none;
    }

    .sidebar-latest-posts img {
        width: 80px;
        height: 80px;
        border-radius: var(--border-radius);
        object-fit: cover;
    }

    .sidebar-latest-posts h4 {
        font-size: 1rem;
        margin-bottom: 0.5rem;
        line-height: 1.4;
    }

    .sidebar-latest-posts h4 a:hover {
        color: var(--accent-color);
    }

    .sidebar-latest-posts .post-date {
        font-size: 0.85rem;
        color: var(--text-light);
    }

    .sidebar-emergency {
        background: linear-gradient(135deg, #B00020, #FF1744);
        /* red shades */
        color: var(--white);
        padding: 2rem;
        border-radius: var(--border-radius);
        text-align: center;
        box-shadow: 0 8px 20px rgba(176, 0, 32, 0.3);
        border: 1px solid rgba(255, 255, 255, 0.1);
        position: relative;
        overflow: hidden;
    }

    /* Subtle radial highlight effect */
    .sidebar-emergency::before {
        content: '';
        position: absolute;
        top: -50%;
        left: -50%;
        width: 200%;
        height: 200%;
        background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
        transform: rotate(30deg);
    }

    /* Heading with icon */
    .sidebar-emergency h3 {
        color: var(--white);
        position: relative;
        z-index: 1;
        font-size: 1.8rem;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
    }

    /* Optional underline or highlight under title */
    .sidebar-emergency h3::after {
        content: "";
        display: block;
        height: 3px;
        width: 40px;
        margin: 10px auto 0;
        background: #FFD700;
        /* Gold or accent */
    }

    /* Paragraph */
    .sidebar-emergency p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
        position: relative;
        z-index: 1;
        opacity: 0.9;
    }

    /* Button */
    .sidebar-emergency .btn {
        background: #FFD700;
        /* Gold on red for contrast */
        color: #B00020;
        width: 100%;
        position: relative;
        z-index: 1;
        font-weight: 600;
        transition: background 0.3s ease;
    }

    .sidebar-emergency .btn:hover {
        background: #FFC107;
        color: #fff;
    }

    /* ========== Key Highlights ========== */
    .key-highlights {
        padding: var(--section-padding);
        background: var(--light-bg);
        position: relative;
        overflow: hidden;
    }

    .key-highlights::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100" fill="none" stroke="%23C68A4A" stroke-width="0.5" stroke-opacity="0.1"><path d="M0 0 L100 100 M100 0 L0 100"/></svg>');
        z-index: 0;
        opacity: 0.3;
    }

    .section-header {
        text-align: center;
        margin-bottom: 3rem;
    }

    .section-header h2 {
        font-size: 2.5rem;
        color: var(--secondary-color);
        position: relative;
        display: inline-block;
        margin-bottom: 1.5rem;
    }

    .section-header h2::after {
        content: '';
        position: absolute;
        bottom: -10px;
        left: 50%;
        transform: translateX(-50%);
        width: 80px;
        height: 3px;
        background: var(--accent-color);
    }

    .highlights-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
        gap: 2.5rem;
        position: relative;
        z-index: 1;
    }

    .highlight-card {
        background: var(--white);
        border-radius: var(--border-radius);
        box-shadow: var(--shadow);
        transition: var(--transition);
        padding: 2.5rem 2rem;
        text-align: center;
        position: relative;
        overflow: hidden;
        border: 1px solid rgba(0, 0, 0, 0.05);
    }

    .highlight-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 5px;
        background: linear-gradient(90deg, var(--accent-color), var(--secondary-color));
    }

    .highlight-card:hover {
        transform: translateY(-10px);
        box-shadow: var(--shadow-hover);
    }

    .highlight-icon {
        font-size: 2.5rem;
        color: var(--accent-color);
        margin-bottom: 1.5rem;
    }

    .highlight-card h3 {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
        color: var(--secondary-color);
    }

    .highlight-card ul {
        list-style: none;
        font-size: 1rem;
        color: var(--text-medium);
        text-align: left;
    }

    .highlight-card li {
        margin-bottom: 0.8rem;
        position: relative;
        padding-left: 2rem;
    }

    .highlight-card li::before {
        content: '\f058';
        font-family: 'Font Awesome 6 Free';
        font-weight: 900;
        position: absolute;
        left: 0;
        color: var(--accent-color);
        font-size: 1.2rem;
    }

    /* ========== Related Posts ========== */
    .related-posts {
        padding: var(--section-padding);
        background: var(--white);
    }

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

    .related-card {
        background: var(--white);
        border-radius: var(--border-radius);
        box-shadow: var(--shadow);
        transition: var(--transition);
        overflow: hidden;
        position: relative;
        border: 1px solid rgba(0, 0, 0, 0.05);
    }

    .related-card:hover {
        transform: translateY(-10px);
        box-shadow: var(--shadow-hover);
    }

    .related-image {
        height: 220px;
        overflow: hidden;
    }

    .related-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: var(--transition);
        opacity: 1 !important;
    }

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

    .related-content {
        padding: 1.8rem;
        position: relative;
    }

    .related-content h3 {
        font-size: 1.4rem;
        margin-bottom: 0.8rem;
        line-height: 1.4;
    }

    .related-content h3 a:hover {
        color: var(--accent-color);
    }

    .related-content p {
        font-size: 0.95rem;
        color: var(--text-light);
        margin-bottom: 1.5rem;
    }

    .related-meta {
        display: flex;
        align-items: center;
        gap: 15px;
        font-size: 0.85rem;
        color: var(--text-light);
        margin-bottom: 1rem;
    }

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

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

    .read-more {
        color: var(--accent-color);
        font-weight: 600;
        display: inline-flex;
        align-items: center;
        gap: 5px;
        transition: var(--transition);
    }

    .read-more i {
        transition: var(--transition);
    }

    .read-more:hover {
        gap: 10px;
    }

    /* ========== CTA Section ========== */
    .cta-section {
        padding: 70px;
        background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
            url('/wp-content/themes/backbonemedicity/assets/img/backbone/back-bone-cta-bg.webp') no-repeat center/cover fixed;
        color: var(--white);
        text-align: center;
        background-attachment: fixed;
        position: relative;
        overflow: hidden;
    }

    .cta-section::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: radial-gradient(circle, rgba(198, 138, 74, 0.15) 0%, rgba(10, 42, 102, 0.25) 100%);
    }

    .cta-content {
        position: relative;
        z-index: 2;
        max-width: 800px;
        margin: 0 auto;
    }

    .cta-content h2 {
        font-size: 2.8rem;
        margin-bottom: 1.5rem;
        text-transform: capitalize;
        letter-spacing: 0.5px;
        line-height: 1.3;
    }

    .cta-content p {
        font-size: 1.2rem;
        margin-bottom: 2.5rem;
        opacity: 0.9;
        line-height: 1.6;
    }

    .cta-btns {
        display: flex;
        justify-content: center;
        gap: 20px;
        flex-wrap: wrap;
    }

    .btn-secondary {
        background: var(--white);
        color: var(--secondary-color);
        box-shadow: var(--shadow);
    }

    .btn-secondary:hover {
        background: var(--light-bg);
        color: var(--secondary-color);
        transform: translateY(-3px);
        box-shadow: var(--shadow-hover);
    }

    .btn-tertiary {
        background: transparent;
        color: var(--white);
        border: 2px solid var(--white);
    }

    .btn-tertiary:hover {
        background: rgba(255, 255, 255, 0.1);
        transform: translateY(-3px);
        box-shadow: var(--shadow-hover);
    }

    .sidebar-widget-l2 h3::after {
        left: 44%;
    }

    /* ========== Responsive Styles ========== */
    @media (max-width: 1199px) {
        .blog-hero {
            min-height: 550px;
        }
    }

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

        .sidebar-widget {
            position: static;
        }

        .highlights-grid,
        .related-grid {
            grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        }

        .cta-content h2 {
            font-size: 2.5rem;
        }
    }

    @media (max-width: 767px) {
        .blog-hero {
            height: 50vh;
            min-height: 450px;
        }

        .blog-hero h1 {
            font-size: 2.2rem;
        }

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

        .highlight-card,
        .related-card {
            padding: 1.8rem 1.5rem;
        }

        .cta-content h2 {
            font-size: 2rem;
        }

        .cta-content p {
            font-size: 1rem;
        }

        .cta-btns {
            flex-direction: column;
            gap: 15px;
        }

        .cta-btns .btn {
            width: 100%;
        }
    }

    @media (max-width: 575px) {
        .blog-hero {
            height: 400px;
        }

        .blog-hero h1 {
            font-size: 2rem;
        }

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

    /* Lazy Loading Animation */
    img[loading="lazy"] {
        opacity: 0;
        transition: opacity 0.6s ease;
    }

    img[loading="lazy"].loaded {
        opacity: 1;
    }