:root {
    /* DefinedSleep Brand Colors */
    --primary: #0B2145;
    --primary-light: #1a3a6b;
    --secondary: #2BB9A8;
    --secondary-dark: #239687;
    --accent: #4CAF82;

    /* CBDforSleep Specific */
    --page-bg: #ffffff;
    --card-bg: #ffffff;
    --data-primary: #4C5BD5;
    --data-secondary: #C4A9F9;

    /* Neutrals */
    --white: #FFFFFF;
    --border: #D5D8E0;
    --text: #111827;
    --text-muted: #6B7280;

    /* Semantic */
    --success: #4CAF82;
    --success-bg: #ffffff;
    --info: #2BB9A8;
    --info-bg: #ffffff;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: var(--text);
    background: var(--page-bg);
}

h1, h2, h3, h4 {
    font-family: 'Plus Jakarta Sans', sans-serif;
}

/* Navigation */
nav {
    background: var(--primary);
    position: sticky;
    top: 0;
    z-index: 9999;
    box-shadow: 0 2px 8px rgba(11, 33, 69, 0.2);
}

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 40px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    color: var(--white);
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 32px;
    list-style: none;
}

.nav-links a {
    color: var(--white);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--secondary);
}

.nav-actions {
    display: flex;
    gap: 16px;
    align-items: center;
}

.btn-subscribe {
    background: var(--secondary);
    color: var(--white);
    padding: 10px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s;
}

.btn-subscribe:hover {
    background: var(--secondary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(43, 185, 168, 0.3);
}

/* Hamburger Menu Button */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.hamburger span {
    width: 24px;
    height: 3px;
    background: var(--white);
    border-radius: 2px;
    transition: all 0.3s;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    padding: 60px 0;
    color: var(--white);
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    margin-bottom: 48px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="2" fill="rgba(255,255,255,0.1)"/></svg>');
    opacity: 0.3;
}

.hero-container {
    max-width: 100%;
    margin: 0;
    padding: 0;
    position: relative;
    z-index: 2;  /* Above gradient overlay */
    text-align: center;
}

.hero-container h1 {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.1;
    margin: 60px 0 24px 0;
    color: var(--text);
}

.hero h1 {
    font-size: 42px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    color: var(--white);
    padding: 0 32px;
}

.hero-body {
    font-size: 18px;
    line-height: 1.7;
    margin-bottom: 40px;
    color: rgba(255, 255, 255, 0.95);
    max-width: 100%;
    padding: 0 32px;
}

.hero-ctas {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    padding: 0 32px;
}

.btn-primary {
    background: var(--secondary);
    color: var(--white);
    padding: 16px 36px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 16px;
    transition: all 0.3s;
    display: inline-block;
}

.btn-primary:hover {
    background: var(--secondary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(43, 185, 168, 0.4);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    padding: 16px 36px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 16px;
    border: 2px solid var(--white);
    transition: all 0.3s;
    display: inline-block;
}

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

.hero-subtext {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    font-style: italic;
    padding: 0 32px;
}

/* Hero gradient overlay for smooth transition to white content */
.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(to bottom,
        rgba(11, 33, 69, 0.7) 0%,    /* Start at 70% instead of 100% */
        rgba(11, 33, 69, 0.55) 25%,  /* 55% opacity - gradual fade */
        rgba(11, 33, 69, 0.35) 50%,  /* 35% opacity - midpoint */
        rgba(11, 33, 69, 0.18) 75%,  /* 18% opacity - fading out */
        rgba(11, 33, 69, 0) 100%     /* Fully transparent at bottom */
    );
    pointer-events: none;
    z-index: 1;
}

/* Main Container */
.main-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 40px;
}

/* Content Wrapper - Two Column Layout */
.content-wrapper {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 48px;
    align-items: start;
    margin-top: 0;
}

.content-wrapper-news .product-sidebar-standalone {
    position: sticky;
    top: 92px;
}

/* Section Header */
.section-header {
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--secondary);
}

.section-header h2 {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary);
    margin: 0;
}

/* Custom text classes for content */
.intro-paragraph {
    font-size: 19px;
    margin-bottom: 32px;
}

.definition-heading {
    margin-bottom: 16px;
    font-size: 24px;
    color: var(--primary);
}

/* CBD Definition Section with Image */
.cbd-definition-container {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 48px;
    align-items: start;
    margin: 32px 0;
}

.cbd-definition-content {
    /* Text content on the left */
}

.cbd-definition-image {
    /* Image container on the right */
    background: #ffffff;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(213, 216, 224, 0.3);
}

.cbd-definition-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
}

.image-caption {
    font-size: 13px;
    color: var(--text-muted);
    text-align: center;
    margin-top: 12px;
    font-style: italic;
    margin-bottom: 0;
}

.intro-text {
    font-size: 18px;
    line-height: 1.7;
    color: var(--text);
    margin-bottom: 48px;
    background: transparent;
    padding: 0;
    border-radius: 0;
    border-left: none;
}

/* Takeaway Cards */
.takeaways-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    margin: 40px 0;
    justify-content: center;
}

.takeaway-card {
    flex: 0 0 calc(33.333% - 22px);
    max-width: calc(33.333% - 22px);
    background: #fafbfc;  /* Subtle gray tint */
    border: none;
    border-top: 3px solid var(--secondary);  /* Teal accent border */
    border-radius: 12px;
    padding: 28px 24px;  /* Increased top padding */
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);  /* Stronger shadow */
}

.takeaway-card:hover {
    transform: translateY(-4px);  /* More lift */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);  /* Stronger hover shadow */
    border-top-color: var(--accent);  /* Change to green on hover */
}

.takeaway-icon {
    width: 60px;  /* Larger */
    height: 60px;
    background: linear-gradient(135deg, var(--secondary) 0%, var(--accent) 100%);  /* Teal to green gradient */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;  /* More space below */
    box-shadow: 0 4px 12px rgba(43, 185, 168, 0.25);  /* Glow effect */
}

/* Style the Lucide SVG icons */
.takeaway-icon svg {
    width: 30px;
    height: 30px;
    stroke: white;
    stroke-width: 2;
}

.takeaway-card h4 {
    font-size: 19px;  /* Slightly larger */
    font-weight: 700;  /* Bolder */
    margin-bottom: 14px;
    color: var(--primary);
    line-height: 1.3;
}

.takeaway-card p {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text);  /* Darker text */
    margin: 0;
}

/* Trial Cards */
.trial-card {
    background: var(--white);
    border: none;
    border-radius: 12px;
    padding: 48px;
    margin-bottom: 48px;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.trial-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.trial-year {
    display: inline-block;
    background: var(--secondary);
    color: var(--white);
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 20px;
}

.trial-card h3 {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 16px;
    line-height: 1.3;
}

.trial-subtitle {
    font-size: 16px;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.pros-cons {
    /* Simple vertical layout - no grid */
    margin: 32px 0;
}

.pros, .cons {
    /* Remove all box styling - clean and minimal */
    margin-bottom: 32px;
}

.pros h6, .cons h6 {
    font-size: 14px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pros p, .cons p {
    font-size: 16px;
    line-height: 1.7;
    color: var(--text);
    margin: 0;
}

.takeaway-box {
    background: #ffffff;
    border-left: 4px solid var(--secondary);
    padding: 24px;
    margin-top: 24px;
    border-radius: 8px;
}

.takeaway-box h6 {
    font-size: 16px;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 10px;
}

.takeaway-box p {
    font-size: 16px;
    line-height: 1.7;
    margin: 0;
}

/* Button Secondary */
.btn-secondary {
    display: block;
    text-align: center;
    background: var(--secondary);
    color: var(--white);
    padding: 14px 28px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-secondary:hover {
    background: var(--secondary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(43, 185, 168, 0.3);
}

/* FAQ Section */
.faq-section {
    background: transparent;
    border-radius: 0;
    padding: 0;
    margin-bottom: 24px;
    border-bottom: 1px solid rgba(213, 216, 224, 0.3);
    padding-bottom: 24px;
}

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

.faq-question {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 16px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color 0.2s;
    padding: 16px 0;
}

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

.faq-question::after {
    content: '+';
    font-size: 28px;
    font-weight: 400;
    color: var(--secondary);
    transition: transform 0.3s;
}

.faq-question.active::after {
    content: '−';
}

.faq-answer {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, opacity 0.3s ease-out;
    opacity: 0;
}

.faq-answer.active {
    max-height: 2000px;
    opacity: 1;
    margin-bottom: 16px;
}

.faq-answer p {
    margin-bottom: 16px;
}

/* Molecule Images */
.molecule-img {
    max-width: 300px;
    margin: 20px 0;
    display: block;
}

/* Clinical Trials CTA Section */
.cta-section {
    background: #ffffff;
    border-radius: 16px;
    padding: 64px 48px;
    text-align: center;
    margin: 96px 0;
}

.cta-section h2 {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 20px;
}

.cta-section p {
    font-size: 17px;
    line-height: 1.7;
    color: var(--text-muted);
    margin-bottom: 32px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.btn-cta {
    display: inline-block;
    background: var(--primary);
    color: var(--white);
    padding: 16px 40px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 16px;
    transition: all 0.3s;
}

.btn-cta:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(11, 33, 69, 0.2);
}

/* Footer */
footer {
    background: var(--white);
    border-top: 1px solid rgba(213, 216, 224, 0.5);
    padding: 48px 40px 24px;
    margin-top: 80px;
}

.footer-container {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-brand h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 12px;
}

.footer-brand p {
    font-size: 14px;
    line-height: 1.7;
    color: var(--text-muted);
}

.footer-links h4 {
    font-size: 13px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-links ul {
    list-style: none;
}

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

.footer-links a {
    font-size: 14px;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

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

.footer-bottom {
    border-top: 1px solid rgba(213, 216, 224, 0.3);
    padding-top: 24px;
    text-align: center;
}

.footer-bottom p {
    font-size: 13px;
    color: var(--text-muted);
}

.fda-disclaimer {
    margin-top: 16px !important;
    font-size: 12px !important;
    font-style: italic;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

/* Subscribe Section */
.subscribe-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: var(--white);
    padding: 48px 40px;
    margin-top: 48px;
}

.subscribe-container {
    max-width: 640px;
    margin: 0 auto;
    text-align: center;
}

.subscribe-container h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--white);
}

.subscribe-container p {
    font-size: 17px;
    margin-bottom: 24px;
    opacity: 0.95;
}

.subscribe-container .btn-primary {
    background: var(--secondary);
    color: var(--white);
}

.subscribe-container .btn-primary:hover {
    background: var(--secondary-dark);
}

.klaviyo-embed-placeholder:empty {
    display: none;
}

/* Legal pages (Privacy, Terms) */
.legal-page {
    max-width: 720px;
    margin: 0 auto;
    padding: 40px 0 80px;
}
.legal-page h1 {
    font-size: 32px;
    color: var(--primary);
    margin-bottom: 24px;
}
.legal-page h2 {
    font-size: 22px;
    color: var(--primary);
    margin-top: 32px;
    margin-bottom: 12px;
}
.legal-page p {
    margin-bottom: 16px;
    line-height: 1.7;
}

/* Product ad below article (blog-post, trial-detail) */
.product-ad-below-article {
    padding-top: 0;
}
.product-ad-below-article .product-sidebar-inline {
    max-width: 400px;
    margin: 0 auto 48px;
}

/* Blog Sidebar Styles */
.blog-sidebar {
    position: sticky;
    top: 92px; /* Nav height + padding */
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    padding: 0;
    align-self: start;
    z-index: 1;
}

/* Custom scrollbar for sidebar */
.blog-sidebar::-webkit-scrollbar {
    width: 6px;
}

.blog-sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.blog-sidebar::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 3px;
}

.blog-sidebar::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

.sidebar-header {
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--secondary);
    padding-top: 0;
}

.sidebar-header h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
    margin: 0;
}

.sidebar-content {
    display: flex;
    flex-direction: column;
    padding-top: 0;
}

.sidebar-loading {
    padding: 20px 0;
}

.sidebar-posts {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.sidebar-post {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(213, 216, 224, 0.3);
}

.sidebar-post:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.sidebar-post-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.sidebar-post-image {
    width: 100%;
    height: 180px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
}

.sidebar-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.sidebar-post:hover .sidebar-post-image img {
    transform: scale(1.05);
}

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

.sidebar-post-category {
    display: inline-block;
    background: var(--secondary);
    color: var(--white);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

.sidebar-post-title {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.4;
    margin: 0 0 8px 0;
    color: var(--primary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sidebar-post-meta {
    font-size: 12px;
    color: var(--text-muted);
    margin: 0;
}

/* Product Recommendation Card */
.sidebar-product-card {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(11, 33, 69, 0.15);
    border: 2px solid var(--secondary);
    margin: 24px 0;
}

.sidebar-product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(11, 33, 69, 0.25);
    border-color: var(--accent);
}

.sidebar-product-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.sidebar-product-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar-product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 16px;
    transition: transform 0.3s;
}

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

.sidebar-product-content {
    padding: 20px;
    background: var(--white);
}

.sidebar-product-badge {
    display: inline-block;
    background: var(--secondary);
    color: var(--white);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.sidebar-product-title {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 10px 0;
    color: var(--primary);
}

.sidebar-product-description {
    font-size: 13px;
    line-height: 1.6;
    color: var(--text);
    margin: 0 0 12px 0;
}

.sidebar-product-features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.product-feature {
    font-size: 11px;
    color: var(--success);
    font-weight: 600;
    background: rgba(76, 175, 130, 0.1);
    padding: 4px 8px;
    border-radius: 4px;
}

.sidebar-product-cta {
    text-align: center;
    padding-top: 12px;
    border-top: 1px solid var(--border);
}

.product-cta-text {
    font-size: 13px;
    font-weight: 700;
    color: var(--secondary);
    transition: color 0.3s;
}

.sidebar-product-card:hover .product-cta-text {
    color: var(--accent);
}

/* Responsive */
@media (max-width: 1200px) {
    .content-wrapper {
        grid-template-columns: 1fr 320px;
        gap: 32px;
    }
}

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

    .hero {
        margin-bottom: 32px;
    }

    .blog-sidebar {
        position: static;
        max-height: none;
        margin-top: 48px;
        padding: 32px 0;
        border-top: 2px solid var(--secondary);
    }

    .sidebar-posts {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 24px;
    }
    .main-container {
        padding: 40px 24px;
    }

    .hamburger {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 72px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 72px);
        background: var(--primary);
        flex-direction: column;
        padding: 40px;
        gap: 24px;
        transition: left 0.3s ease;
        z-index: 9998;
    }

    .nav-links.active {
        left: 0;
    }

    .nav-links a {
        font-size: 18px;
        padding: 12px 0;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }

    .hero h1 {
        font-size: 38px;
        padding: 0 24px;
    }

    .hero-body {
        padding: 0 24px;
    }

    .hero-ctas {
        flex-direction: column;
        align-items: center;
        padding: 0 24px;
    }

    .hero-subtext {
        padding: 0 24px;
    }

    .btn-primary, .btn-outline {
        width: 100%;
        max-width: 300px;
    }

    .takeaway-card {
        flex: 0 0 calc(50% - 16px);
        max-width: calc(50% - 16px);
    }

    /* CBD definition - stack vertically on tablet */
    .cbd-definition-container {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .cbd-definition-image {
        max-width: 500px;
        margin: 0 auto;
    }

    .footer-container {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }

    .cta-section {
        padding: 48px 32px;
        margin: 64px 0;
    }

    .cta-section h2 {
        font-size: 26px;
    }

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

@media (max-width: 768px) {
    .nav-container,
    .hero-container,
    .main-container {
        padding-left: 20px;
        padding-right: 20px;
    }

    .main-container {
        padding: 32px 20px;
    }

    .breadcrumb-container {
        padding: 20px 20px 0;
    }

    .hero {
        padding: 60px 0;
        margin-bottom: 32px;
    }

    .hero h1 {
        font-size: 30px;
        padding: 0 20px;
    }

    .hero-body {
        font-size: 16px;
        padding: 0 20px;
    }

    .hero-ctas {
        padding: 0 20px;
    }

    .hero-subtext {
        padding: 0 20px;
    }

    .btn-primary, .btn-outline {
        padding: 14px 28px;
        font-size: 15px;
    }

    .takeaway-card {
        flex: 0 0 100%;
        max-width: 100%;
    }

    /* CBD definition - tighter spacing on mobile */
    .cbd-definition-container {
        gap: 24px;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .cta-section {
        padding: 40px 24px;
        margin: 48px 0;
    }

    .cta-section h2 {
        font-size: 22px;
    }

    .blog-sidebar {
        margin-top: 32px;
        padding: 24px 0;
    }

    .sidebar-product-card {
        margin: 20px 0;
    }

    .sidebar-product-image {
        height: 160px;
    }

    .sidebar-product-content {
        padding: 16px;
    }

    .sidebar-product-title {
        font-size: 16px;
    }

    .sidebar-product-description {
        font-size: 12px;
    }
}

    .cta-section p {
        font-size: 16px;
    }

    /* Stack trial cards vertically on mobile */
    .trial-list-card {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 20px;
    }

    .trial-list-card .read-more {
        justify-content: center;
        align-items: center;
        flex-direction: row;
        margin-top: 16px;
    }

    .trial-list-card .read-more .pdf-icon {
        height: 40px;
        width: 40px;
    }

    .trial-badge {
        margin-bottom: 12px;
    }

    .trial-content {
        order: 1;
    }

    .trial-list-card .read-more {
        order: 2;
    }
}

/* Mobile Smartphones (480px and below) */
@media (max-width: 480px) {
    /* Navigation */
    .nav-container {
        padding: 0 16px;
    }

    .logo {
        font-size: 20px;
    }

    .btn-subscribe {
        padding: 12px 20px;
        font-size: 14px;
    }

    /* Hero Section */
    .hero-container {
        padding: 0 16px;
    }

    .hero {
        padding: 48px 0;
    }

    .hero h1 {
        font-size: 28px;
        padding: 0 16px;
    }

    .hero-body {
        font-size: 15px;
        padding: 0 16px;
    }

    .btn-primary, .btn-outline {
        padding: 16px 24px;
        font-size: 15px;
        width: 100%;
    }

    .hero-ctas {
        gap: 16px;
        padding: 0 16px;
    }

    .hero-subtext {
        padding: 0 16px;
    }

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

    /* Main Container */
    .main-container {
        padding: 32px 16px;
    }

    .section-header h2 {
        font-size: 24px;
    }

    /* CBD Definition */
    .cbd-definition-container {
        gap: 20px;
    }

    .cbd-definition-image {
        padding: 12px;
    }

    /* Takeaway Cards */
    .takeaway-card {
        padding: 24px 20px;
    }

    .takeaway-card h4 {
        font-size: 17px;
    }

    .takeaway-card p {
        font-size: 14px;
    }

    .takeaway-icon {
        width: 52px;
        height: 52px;
        margin-bottom: 20px;
    }

    .takeaway-icon svg {
        width: 26px;
        height: 26px;
    }

    /* Trial Cards */
    .trial-card {
        padding: 24px 16px;
    }

    .trial-card h3 {
        font-size: 20px;
    }

    .trial-list-card {
        padding: 16px;
    }

    .trial-list-card h3 {
        font-size: 18px;
    }

    .trial-list-card {
        padding: 16px;
    }

    .trial-list-card .read-more .pdf-icon {
        height: 36px;
        width: 36px;
    }

    .trial-meta {
        font-size: 13px;
        gap: 12px;
    }

    .key-finding {
        font-size: 14px;
    }

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

    .breadcrumb {
        font-size: 12px;
    }

    /* Trial Detail Pages */
    .trial-header h1 {
        font-size: 24px;
    }

    .trial-quick-stats {
        gap: 16px;
        padding: 20px;
    }

    .stat-value {
        font-size: 18px;
    }

    /* Featured Blog Section */
    .featured-blog-section {
        padding: 24px 0;
    }

    .featured-blog-container {
        padding: 0 16px;
        gap: 0;
    }

    .featured-article img {
        height: 250px;
    }

    .featured-article h2 {
        font-size: 20px;
    }

    .featured-overlay {
        padding: 20px 16px;
    }

    .side-article {
        padding: 12px;
    }

    .side-article h3 {
        font-size: 14px;
    }

    .side-article p {
        font-size: 11px;
    }

    .side-article img,
    .side-article-placeholder {
        height: 160px;
    }

    /* Footer */
    footer {
        padding: 40px 16px 20px;
    }

    .footer-container {
        gap: 32px;
    }

    .footer-brand h3 {
        font-size: 20px;
    }

    .footer-brand p {
        font-size: 13px;
    }

    /* CTA Section */
    .cta-section {
        padding: 32px 20px;
        margin: 40px 0;
    }

    .cta-section h2 {
        font-size: 20px;
    }

    .cta-section p {
        font-size: 15px;
    }

    .btn-cta {
        padding: 14px 32px;
        font-size: 15px;
    }

    /* FAQ Section */
    .faq-question {
        font-size: 17px;
        padding: 12px 0;
        min-height: 48px;
    }

    .faq-question::after {
        font-size: 24px;
    }

    .faq-answer {
        font-size: 15px;
    }

    /* Touch Target Compliance */
    .nav-links a {
        padding: 14px 0;
    }

    .btn-subscribe,
    .btn-primary,
    .btn-outline,
    .btn-secondary,
    .btn-cta {
        min-height: 48px;
    }

    /* Clinical Trials - Mobile Fixes */
    .trials-listing {
        padding: 24px 16px;
        margin: 48px 0;
    }

    .trials-grid {
        gap: 16px;
        margin-top: 32px;
    }

    .trial-list-card h3 {
        font-size: 16px;
        line-height: 1.3;
    }

    .key-finding {
        font-size: 13px;
        line-height: 1.5;
    }
}

/* Small Mobile Phones (375px and below) */
@media (max-width: 375px) {
    .nav-container {
        padding: 0 12px;
    }

    .hero-container {
        padding: 0 12px;
    }

    .hero h1 {
        font-size: 24px;
    }

    .hero-body {
        font-size: 14px;
    }

    .main-container {
        padding: 24px 12px;
    }

    .section-header h2 {
        font-size: 22px;
    }

    .article-container {
        padding: 0 12px 24px;
    }

    .article-card {
        padding: 16px 12px;
    }

    .article-title {
        font-size: 22px;
    }

    /* Clinical Trials - Extra Small Mobile */
    .trials-listing {
        padding: 20px 12px;
    }

    .trial-list-card h3 {
        font-size: 15px;
    }

    .key-finding {
        font-size: 12px;
    }
}

/* ============================================
   CLINICAL TRIALS - HOME PAGE LISTING
   ============================================ */

.trials-listing {
    background: #ffffff;
    border-radius: 16px;
    padding: 40px 32px;
    margin: 64px 0;
}

.trials-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 48px;
    margin-bottom: 32px;
}

.trial-list-card {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 24px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
    border-left: 4px solid var(--secondary);
    cursor: pointer;
    text-decoration: none;
    color: inherit;

    /* Horizontal layout with 3 columns */
    display: grid;
    grid-template-columns: 140px 1fr 100px;
    gap: 24px;
    align-items: stretch;
}

/* Responsive adjustments for trial cards */
@media (max-width: 768px) {
    .trial-list-card {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .trial-list-card .read-more {
        justify-content: center;
        align-items: center;
        flex-direction: row;
        margin-top: 16px;
        order: 2;
    }

    .trial-list-card .read-more .pdf-icon {
        height: 48px;
        width: 48px;
    }

    .trial-badge {
        order: 0;
        margin-bottom: 12px;
    }

    .trial-content {
        order: 1;
    }
}

.trial-list-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(11, 33, 69, 0.15), 0 4px 12px rgba(43, 185, 168, 0.2);
    border-left-color: var(--accent);
    background: #ffffff;
}

/* Left sidebar - Badge, type, rigor */
.trial-badge {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

.trial-badge span:first-child {
    background: var(--secondary);
    color: var(--white);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 700;
}

/* Middle content area */
.trial-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.trial-list-card h3 {
    font-size: 20px;
    line-height: 1.4;
    margin: 0;
    color: var(--primary);
    font-weight: 700;
}

.trial-meta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    font-size: 14px;
    color: var(--text-muted);
}

.trial-meta-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

.key-finding {
    font-size: 15px;
    line-height: 1.6;
    color: var(--success);
    font-weight: 500;
    margin: 0;
}

/* Right arrow/button */
.trial-list-card .read-more {
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: stretch;
    gap: 8px;
    color: var(--secondary);
    font-size: 14px;
    font-weight: 600;
    flex-direction: column;
    min-height: 100%;
}

.trial-list-card .read-more .pdf-icon {
    color: var(--secondary);
    transition: all 0.3s ease;
    flex-shrink: 0;
    height: calc(50% - 10px);
    width: auto;
    max-width: 100%;
}

.trial-list-card:hover .read-more .pdf-icon {
    color: var(--accent);
    transform: scale(1.05);
}

/* ============================================
   TRIAL DETAIL PAGE
   ============================================ */

/* Breadcrumb Navigation */
.breadcrumb-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 24px 40px 0;
    background: var(--white);
    width: 100%;
    box-shadow: none;
    border: none;
    position: relative;
    z-index: 1;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-muted);
    background: transparent;
    padding: 16px 0;
    box-shadow: none;
    border: none;
    position: relative;
    z-index: 1;
}

.breadcrumb a {
    color: var(--secondary);
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumb a:hover {
    color: var(--secondary-dark);
    text-decoration: underline;
}

.breadcrumb .separator {
    color: var(--border);
}

/* Trial Detail Header */
.trial-header {
    margin-bottom: 48px;
}

.trial-header-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 16px;
}

.trial-badges {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.badge {
    background: var(--card-bg);
    color: var(--primary);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.trial-header h1 {
    font-size: 36px;
    font-weight: 700;
    color: var(--primary);
    line-height: 1.3;
    margin-bottom: 32px;
}

.trial-quick-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
    background: var(--page-bg);
    padding: 24px;
    border-radius: 12px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.stat-label {
    font-size: 13px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.stat-value {
    font-size: 20px;
    color: var(--primary);
    font-weight: 700;
}

/* Key Finding Callout Box */
.key-finding-box {
    background: #ffffff;
    border-left: 4px solid var(--success);
    padding: 24px;
    margin: 48px 0;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    color: var(--primary);
    box-shadow: 0 4px 12px rgba(76, 175, 130, 0.1);
}

/* Trial Sections */
.trial-section {
    margin-bottom: 48px;
}

.trial-section h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--secondary);
}

.method-details {
    background: var(--page-bg);
    padding: 24px;
    border-radius: 8px;
    margin-bottom: 24px;
}

.method-item {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 15px;
}

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

.method-item strong {
    min-width: 160px;
    color: var(--secondary);
    font-weight: 700;
}

/* Trial Navigation */
.trial-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    margin-top: 80px;
    padding: 40px;
    border-radius: 16px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    position: relative;
    z-index: 1;
}

.trial-nav-link {
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-decoration: none;
    padding: 24px;
    border-radius: 12px;
    background: #f8f9fa;
    border-left: 4px solid var(--secondary);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    flex: 1;
    max-width: 300px;
    cursor: pointer;
    color: inherit;
}

.trial-nav-link:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(11, 33, 69, 0.15), 0 4px 12px rgba(43, 185, 168, 0.2);
    border-left-color: var(--accent);
    background: #ffffff;
}

.trial-nav-link.prev {
    align-items: flex-start;
}

.trial-nav-link.next {
    align-items: flex-end;
}

.nav-label {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.trial-nav-link .nav-title {
    font-size: 15px;
    color: var(--primary);
    font-weight: 700;
}

/* Loading State */
.loading-state {
    text-align: center;
    padding: 80px 20px;
}

.loading-state p,
.error-state p {
    font-size: 17px;
    color: var(--text-muted);
}

.loading-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid var(--border);
    border-top-color: var(--secondary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 24px;
}

/* Error State */
.error-state {
    text-align: center;
    padding: 80px 20px;
}

.error-state h2 {
    font-size: 32px;
    color: var(--primary);
    margin-bottom: 16px;
}

.error-state p {
    font-size: 18px;
    color: var(--text-muted);
    margin-bottom: 32px;
}

/* ============================================
   RESPONSIVE - TRIALS
   ============================================ */

@media (max-width: 968px) {
    .trials-listing {
        padding: 48px 24px;
    }

    .trials-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 20px;
    }

    .trial-header h1 {
        font-size: 28px;
    }

    .trial-navigation {
        flex-direction: column;
        gap: 16px;
        padding: 24px 20px;
        margin-top: 48px;
    }

    .trial-nav-link {
        max-width: 100%;
        width: 100%;
    }

    .trial-nav-link.prev,
    .trial-nav-link.next {
        align-items: flex-start;
    }

    .trial-quick-stats {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .trials-listing {
        padding: 32px 20px;
        margin: 64px 0;
    }

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

    .trial-list-card {
        padding: 24px;
    }

    .breadcrumb-container {
        padding: 20px 20px 0;
    }

    .trial-header h1 {
        font-size: 24px;
    }

    .trial-header-meta {
        flex-direction: column;
        align-items: flex-start;
    }

    .trial-section h2 {
        font-size: 24px;
    }

    .method-item {
        flex-direction: column;
        gap: 8px;
    }

    .method-item strong {
        min-width: auto;
    }
}

/* ========================================
   Featured Blog Section
   ======================================== */

/* Featured Blog Section */
.featured-blog-section {
    background: #f8f9fa;
    padding: 40px 0;
    border-bottom: 1px solid var(--border);
}

.featured-blog-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 40px;
    display: grid;
    grid-template-columns: 2.0fr 0.2fr;
    gap: 70px;
}

/* Loading Skeleton */
.featured-skeleton {
    display: grid;
    grid-template-columns: 63% 37%;
    gap: 24px;
}

.skeleton-large,
.skeleton-small {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 16px;
}

.skeleton-large {
    height: 320px;
}

.skeleton-small-group {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.skeleton-small {
    height: 140px;
    border-radius: 16px;
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Content container - Media-style hero grid */
.featured-content {
    display: grid;
    grid-template-columns: 1.8fr 1.2fr;
    gap: 32px;
}

/* Featured Article - Large (Media-style with overlay) */
.featured-article {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s;
    width: 100%;
}

.featured-article:hover {
    transform: scale(1.02);
}

.featured-article img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    display: block;
}

.featured-placeholder {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
}

.featured-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(11, 33, 69, 0.95) 0%, rgba(11, 33, 69, 0.6) 40%, transparent 80%);
    padding: 40px 32px;
    color: var(--white);
}

.article-category {
    display: inline-block;
    background: var(--secondary);
    color: var(--white);
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.featured-article h2 {
    font-size: 26px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 8px;
    color: var(--white);
}

.article-meta {
    font-size: 13px;
    opacity: 0.9;
    margin: 0;
}

/* Side Articles */
.side-articles {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-left: 0;
    width: 100%;
    height: 110%;
}

.side-article {
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    background: var(--white);
    padding: 12px;
    border-radius: 8px;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 14px;
    /* min-height: 100px; */
    width: 100%;
    margin-left: 0;
}

.side-article a {
    display: flex;
    align-items: center;
    gap: 20px;
    text-decoration: none;
    color: inherit;
    width: 100%;
}

.side-article:hover {
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.side-article img {
    width: 180px;
    height: 100px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}

.side-article-placeholder {
    width: 180px;
    height: 100px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    border-radius: 6px;
    flex-shrink: 0;
}

.side-article-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
}

.side-article h3 {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 6px;
    margin-top: 0;
    color: var(--text);
}

.side-article p {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.4;
    margin: 0;
}

.side-article .article-category {
    display: inline-block;
    background: var(--white);
    color: teal;
    margin-bottom: 6px;
    padding: 4px 8px;
    font-size: 10px;
    border-radius: 4px;
}

/* Responsive Design - Featured Blogs */
@media (max-width: 968px) {
    .featured-blog-container,
    .featured-skeleton,
    .featured-content {
        grid-template-columns: 1fr;
    }

    .featured-article img {
        height: 350px;
    }

    .featured-article h2 {
        font-size: 28px;
    }
}

@media (max-width: 768px) {
    .featured-blog-section {
        padding: 32px 0;
    }

    .featured-blog-container {
        padding: 0 20px;
    }

    .featured-article img,
    .featured-placeholder {
        height: 300px;
    }

    .featured-article h2 {
        font-size: 24px;
    }

    .featured-overlay {
        padding: 24px 20px;
    }

    .side-article {
        flex-direction: column;
        align-items: flex-start;
        min-height: auto;
    }

    .side-article a {
        flex-direction: column;
        align-items: flex-start;
    }

    .side-article img,
    .side-article-placeholder {
        width: 100%;
        height: 200px;
    }
}
