/*
Theme Name: SleepAndRelief
Theme URI: https://sleepandrelief.com
Description: Custom Kadence child theme for SleepAndRelief.com — Better Sleep • Pain Relief. Calm teal & blue branding with a trustworthy, modern wellness aesthetic.
Author: SleepAndRelief
Author URI: https://sleepandrelief.com
Template: kadence
Version: 1.0.4
License: GPL v2 or later
Text Domain: sleepandrelief-child
*/

/* =====================================================
   CSS CUSTOM PROPERTIES — RestivaLab Brand
   ===================================================== */
:root {
    /* Primary */
    --rl-teal: #2BB7A9;
    --rl-teal-hover: #1F8F86;
    --rl-teal-light: #EFFFFD;
    --rl-teal-lighter: #F7FBFB;

    /* Accent */
    --rl-blue: #3A7BD5;
    --rl-blue-hover: #2E63B5;
    --rl-blue-light: #EAF1FB;

    /* Neutrals */
    --rl-dark: #1F2D2D;
    --rl-dark-soft: #2A3D3D;
    --rl-bg: #F7FBFB;
    --rl-bg-warm: #F0F8F8;
    --rl-white: #FFFFFF;

    /* Text */
    --rl-text: #1F2D2D;
    --rl-text-light: #6B7C7C;
    --rl-text-muted: #9AABAB;

    /* Borders */
    --rl-border: #E2EEEE;
    --rl-border-dark: #C8DEDE;

    /* Category accent colors */
    --rl-cat-neck:      #2BB7A9;
    --rl-cat-back:      #3A7BD5;
    --rl-cat-anxiety:   #7B6DD5;
    --rl-cat-kids:      #4CAF88;
    --rl-cat-snoring:   #1F8F86;
    --rl-cat-bedding:   #2196C8;
    --rl-cat-mattress:  #1F6FA0;
    --rl-cat-pain:      #D55A3A;
    --rl-cat-recovery:  #4CAF50;
    --rl-cat-posture:   #8B5CF6;

    /* Typography */
    --rl-font-heading: 'Nunito', -apple-system, BlinkMacSystemFont, sans-serif;
    --rl-font-body: 'Nunito', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Spacing & Shape */
    --rl-radius: 12px;
    --rl-radius-sm: 8px;
    --rl-radius-lg: 16px;
    --rl-radius-xl: 20px;
}

/* =====================================================
   GLOBAL TYPOGRAPHY
   ===================================================== */
body {
    font-family: var(--rl-font-body);
    color: var(--rl-text);
    background-color: var(--rl-bg);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--rl-font-heading);
    color: var(--rl-dark);
    font-weight: 700;
}

a {
    color: var(--rl-teal);
    transition: color 0.2s ease;
}
a:hover {
    color: var(--rl-teal-hover);
}

/* =====================================================
   HEADER OVERRIDES
   ===================================================== */
.site-header {
    background: var(--rl-white) !important;
    border-bottom: 3px solid var(--rl-teal);
    box-shadow: 0 2px 12px rgba(43,183,169,0.08);
}

.site-header .site-title,
.site-header .site-title a {
    color: var(--rl-dark) !important;
    font-weight: 800;
    font-size: 22px;
    text-decoration: none;
    letter-spacing: -0.3px;
}

.header-navigation .menu > li > a {
    color: var(--rl-dark) !important;
    font-weight: 600;
    font-size: 15px;
    letter-spacing: 0.2px;
    transition: color 0.2s;
}
.header-navigation .menu > li > a:hover,
.header-navigation .menu > li.current-menu-item > a {
    color: var(--rl-teal) !important;
}

/* Mobile menu */
.mobile-toggle-open-container .menu-toggle-icon {
    color: var(--rl-dark);
}

/* =====================================================
   HERO / HOMEPAGE
   ===================================================== */
.rl-hero {
    background: linear-gradient(135deg, #0D4F4A 0%, #1A7A8A 50%, #2BB7A9 100%);
    padding: 80px 0 70px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.rl-hero::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: var(--rl-blue);
    opacity: 0.07;
    border-radius: 50%;
}
.rl-hero::after {
    content: '';
    position: absolute;
    bottom: -20%;
    left: -8%;
    width: 400px;
    height: 400px;
    background: var(--rl-teal-light);
    opacity: 0.05;
    border-radius: 50%;
}
.rl-hero h1 {
    color: var(--rl-white);
    font-size: clamp(30px, 5vw, 50px);
    line-height: 1.2;
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
}
.rl-hero h1 .rl-highlight {
    color: #7FEDD8;
}
.rl-hero p {
    color: rgba(255,255,255,0.8);
    font-size: 18px;
    max-width: 580px;
    margin: 0 auto 32px;
    position: relative;
    z-index: 1;
}
.rl-hero-cta-group {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}
.rl-hero-search {
    max-width: 520px;
    margin: 32px auto 0;
    position: relative;
    z-index: 1;
}
.rl-hero-search input {
    width: 100%;
    padding: 16px 64px 16px 24px;
    border: 2px solid rgba(255,255,255,0.25);
    border-radius: 50px;
    background: rgba(255,255,255,0.12);
    color: white;
    font-size: 16px;
    backdrop-filter: blur(10px);
    font-family: var(--rl-font-body);
}
.rl-hero-search input::placeholder { color: rgba(255,255,255,0.55); }
.rl-hero-search button {
    position: absolute;
    right: 6px;
    top: 6px;
    bottom: 6px;
    padding: 0 22px;
    background: var(--rl-teal);
    color: white;
    border: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s;
    font-family: var(--rl-font-body);
}
.rl-hero-search button:hover { background: var(--rl-teal-hover); }

/* =====================================================
   CATEGORY / TOPIC NAV PILLS
   ===================================================== */
.rl-topic-nav {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 28px 20px;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}
.rl-topic-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
    color: white;
    letter-spacing: 0.2px;
    border: 2px solid transparent;
}
.rl-topic-pill:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.18);
    color: white;
}
.rl-topic-pill.neck      { background: var(--rl-cat-neck); }
.rl-topic-pill.back      { background: var(--rl-cat-back); }
.rl-topic-pill.anxiety   { background: var(--rl-cat-anxiety); }
.rl-topic-pill.kids      { background: var(--rl-cat-kids); }
.rl-topic-pill.snoring   { background: var(--rl-cat-snoring); }
.rl-topic-pill.bedding   { background: var(--rl-cat-bedding); }
.rl-topic-pill.mattress  { background: var(--rl-cat-mattress); }
.rl-topic-pill.pain      { background: var(--rl-cat-pain); }
.rl-topic-pill.recovery  { background: var(--rl-cat-recovery); }
.rl-topic-pill.posture   { background: var(--rl-cat-posture); }

/* =====================================================
   ARTICLE CARDS (Archive / Homepage Grid)
   ===================================================== */
.rl-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
    padding: 24px 0;
    max-width: 1200px;
    margin: 0 auto;
}

.rl-article-card {
    background: var(--rl-white);
    border-radius: var(--rl-radius-lg);
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(43,183,169,0.06);
    border: 1px solid var(--rl-border);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
}
.rl-article-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 28px rgba(43,183,169,0.14);
    color: inherit;
    border-color: var(--rl-teal);
}

.rl-card-image {
    aspect-ratio: 16/10;
    overflow: hidden;
    position: relative;
}
.rl-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.rl-article-card:hover .rl-card-image img {
    transform: scale(1.05);
}

.rl-card-image-placeholder {
    background: linear-gradient(135deg, var(--rl-teal-light), var(--rl-bg-warm));
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
}

.rl-card-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: white;
}

.rl-card-body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.rl-card-meta {
    font-size: 12px;
    color: var(--rl-text-muted);
    margin-bottom: 8px;
    display: flex;
    gap: 12px;
}
.rl-card-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--rl-dark);
    margin: 0 0 8px;
    line-height: 1.35;
}
.rl-card-excerpt {
    font-size: 14px;
    color: var(--rl-text-light);
    line-height: 1.6;
    flex: 1;
}
.rl-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    border-top: 1px solid var(--rl-border);
    font-size: 13px;
}
.rl-card-readmore {
    color: var(--rl-teal);
    font-weight: 600;
    text-decoration: none;
}
.rl-article-card:hover .rl-card-readmore {
    color: var(--rl-teal-hover);
}
.rl-card-readtime {
    color: var(--rl-text-muted);
}

/* =====================================================
   SINGLE ARTICLE STYLES
   ===================================================== */
.rl-breadcrumbs {
    font-size: 13px;
    color: var(--rl-text-muted);
    margin: 12px 0 20px;
    line-height: 1.5;
}
.rl-breadcrumbs a {
    color: var(--rl-teal);
    text-decoration: none;
}
.rl-breadcrumbs a:hover {
    color: var(--rl-teal-hover);
    text-decoration: underline;
}

.rl-affiliate-disclosure {
    background: var(--rl-teal-light);
    border: 1px solid var(--rl-border);
    border-left: 4px solid var(--rl-teal);
    border-radius: var(--rl-radius-sm);
    padding: 14px 20px;
    margin: 0 0 24px;
    font-size: 13px;
    color: var(--rl-text-light);
    line-height: 1.5;
}
.rl-affiliate-disclosure strong {
    color: var(--rl-dark);
}

.rl-medical-disclaimer {
    background: #FFF8E1;
    border: 1px solid #FFE082;
    border-left: 4px solid #F9A825;
    border-radius: var(--rl-radius-sm);
    padding: 14px 20px;
    margin: 0 0 24px;
    font-size: 13px;
    color: #5D4037;
    line-height: 1.5;
}
.rl-medical-disclaimer strong {
    color: #4E342E;
}

/* Table of Contents */
.rl-toc {
    background: var(--rl-bg-warm);
    border: 1px solid var(--rl-border);
    border-radius: var(--rl-radius);
    padding: 20px 24px;
    margin: 24px 0;
}
.rl-toc-title {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--rl-text-light);
    margin: 0 0 12px;
}
.rl-toc ol {
    margin: 0;
    padding-left: 20px;
}
.rl-toc li {
    margin-bottom: 6px;
    font-size: 14px;
}
.rl-toc a {
    color: var(--rl-teal);
    text-decoration: none;
}
.rl-toc a:hover {
    color: var(--rl-teal-hover);
    text-decoration: underline;
}

/* Quick Answer Box */
.rl-quick-answer {
    background: var(--rl-teal-light);
    border-left: 4px solid var(--rl-teal);
    border-radius: var(--rl-radius-sm);
    padding: 18px 22px;
    margin: 24px 0;
}
.rl-quick-answer strong {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--rl-teal-hover);
    margin-bottom: 6px;
}
.rl-quick-answer p {
    margin: 0;
    font-size: 16px;
    color: var(--rl-dark);
}

/* Product Box */
.rl-product-box {
    border: 2px solid var(--rl-border);
    border-radius: var(--rl-radius-lg);
    padding: 24px;
    margin: 28px 0;
    background: var(--rl-white);
    box-shadow: 0 2px 8px rgba(43,183,169,0.06);
}
.rl-product-box:hover {
    border-color: var(--rl-teal);
}
.rl-product-box-header {
    display: flex;
    gap: 20px;
    margin-bottom: 16px;
    align-items: flex-start;
}
.rl-product-box-image {
    width: 100px;
    height: 100px;
    object-fit: contain;
    border-radius: var(--rl-radius-sm);
    flex-shrink: 0;
    background: var(--rl-bg);
    padding: 8px;
}
.rl-product-box-title {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 6px;
    color: var(--rl-dark);
}
.rl-product-rating {
    font-size: 13px;
    color: var(--rl-text-light);
}
.rl-product-rating .stars {
    color: #F9A825;
}
.rl-product-pros-cons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin: 16px 0;
}
.rl-pros h4, .rl-cons h4 {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 8px;
}
.rl-pros h4 { color: #2E7D32; }
.rl-cons h4 { color: #C62828; }
.rl-pros ul, .rl-cons ul {
    margin: 0;
    padding-left: 16px;
    font-size: 13px;
    color: var(--rl-text-light);
}
.rl-pros li, .rl-cons li { margin-bottom: 4px; }

/* =====================================================
   SIDEBAR WIDGETS
   ===================================================== */
.rl-sidebar-widget {
    background: var(--rl-white);
    border: 1px solid var(--rl-border);
    border-radius: var(--rl-radius);
    padding: 20px;
    margin-bottom: 24px;
}
.rl-sidebar-widget h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--rl-dark);
    margin: 0 0 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--rl-teal-light);
}

/* Popular posts */
.rl-popular-post {
    display: flex;
    gap: 12px;
    margin-bottom: 14px;
    align-items: flex-start;
}
.rl-popular-post:last-child { margin-bottom: 0; }
.rl-popular-post-thumb {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: var(--rl-radius-sm);
    flex-shrink: 0;
    background: var(--rl-teal-light);
}
.rl-popular-post-title {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;
}
.rl-popular-post-title a {
    color: var(--rl-dark);
    text-decoration: none;
}
.rl-popular-post-title a:hover { color: var(--rl-teal); }

/* =====================================================
   FOOTER
   ===================================================== */
.site-footer {
    background: var(--rl-dark) !important;
    color: rgba(255,255,255,0.7);
}
.site-footer a {
    color: #7FEDD8;
}
.site-footer a:hover {
    color: var(--rl-teal);
}
.rl-footer-tagline {
    text-align: center;
    padding: 20px 0 0;
    font-size: 13px;
    color: rgba(255,255,255,0.35);
    border-top: 1px solid rgba(255,255,255,0.08);
    margin-top: 20px;
}

/* =====================================================
   BUTTONS
   ===================================================== */
.rl-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 30px;
    background: var(--rl-teal);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
    font-family: var(--rl-font-body);
}
.rl-btn-primary:hover {
    background: var(--rl-teal-hover);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(43,183,169,0.3);
    color: white;
}

.rl-btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 26px;
    background: rgba(255,255,255,0.15);
    color: white;
    border: 2px solid rgba(255,255,255,0.4);
    border-radius: 50px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
    font-family: var(--rl-font-body);
    backdrop-filter: blur(4px);
}
.rl-btn-secondary:hover {
    background: rgba(255,255,255,0.25);
    border-color: rgba(255,255,255,0.7);
    color: white;
}

.rl-btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    background: transparent;
    color: var(--rl-teal);
    border: 2px solid var(--rl-teal);
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
}
.rl-btn-outline:hover {
    background: var(--rl-teal);
    color: white;
}

/* Amazon Buy button */
.rl-btn-amazon {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 13px 28px;
    background: #FF9900;
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
    font-family: var(--rl-font-body);
}
.rl-btn-amazon:hover {
    background: #E68900;
    transform: translateY(-1px);
    color: white;
}

/* =====================================================
   CTA / NEWSLETTER SECTION
   ===================================================== */
.rl-newsletter-cta {
    background: linear-gradient(135deg, var(--rl-teal-hover), var(--rl-dark));
    border-radius: var(--rl-radius-xl);
    padding: 48px;
    text-align: center;
    margin: 48px auto;
    max-width: 1000px;
    color: white;
    position: relative;
    overflow: hidden;
}
.rl-newsletter-cta::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: var(--rl-teal);
    opacity: 0.1;
    border-radius: 50%;
}
.rl-newsletter-cta h2 {
    color: white;
    font-size: 28px;
    margin: 0 0 8px;
    position: relative;
}
.rl-newsletter-cta p {
    color: rgba(255,255,255,0.75);
    margin: 0 0 24px;
    position: relative;
}
.rl-newsletter-form {
    display: flex;
    max-width: 480px;
    margin: 0 auto;
    gap: 8px;
    position: relative;
}
.rl-newsletter-form input[type="email"] {
    flex: 1;
    padding: 14px 20px;
    border: 2px solid rgba(255,255,255,0.25);
    border-radius: 50px;
    background: rgba(255,255,255,0.12);
    color: white;
    font-size: 15px;
    font-family: var(--rl-font-body);
}
.rl-newsletter-form input::placeholder { color: rgba(255,255,255,0.5); }
.rl-newsletter-form button {
    padding: 14px 24px;
    background: var(--rl-teal);
    color: white;
    border: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    transition: background 0.2s;
    font-family: var(--rl-font-body);
    white-space: nowrap;
}
.rl-newsletter-form button:hover { background: white; color: var(--rl-teal-hover); }

/* =====================================================
   CATEGORY HUB SECTION
   ===================================================== */
.rl-category-hub {
    padding: 60px 20px;
    background: var(--rl-bg);
}
.rl-category-hub-inner {
    max-width: 1200px;
    margin: 0 auto;
}
.rl-section-header {
    text-align: center;
    margin-bottom: 40px;
}
.rl-section-header h2 {
    font-size: clamp(24px, 3.5vw, 36px);
    color: var(--rl-dark);
    margin: 0 0 10px;
}
.rl-section-header p {
    color: var(--rl-text-light);
    font-size: 17px;
    max-width: 560px;
    margin: 0 auto;
}
.rl-section-eyebrow {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--rl-teal);
    margin-bottom: 8px;
}

.rl-hub-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}
.rl-hub-card {
    background: var(--rl-white);
    border: 1px solid var(--rl-border);
    border-radius: var(--rl-radius-lg);
    padding: 24px;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: relative;
    overflow: hidden;
}
.rl-hub-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--card-accent, var(--rl-teal));
}
.rl-hub-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(43,183,169,0.12);
    border-color: var(--rl-teal);
    color: inherit;
}
.rl-hub-card-icon {
    font-size: 28px;
    line-height: 1;
}
.rl-hub-card-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--rl-dark);
    margin: 0;
}
.rl-hub-card-desc {
    font-size: 13px;
    color: var(--rl-text-light);
    margin: 0;
    line-height: 1.5;
}
.rl-hub-card-cta {
    font-size: 13px;
    font-weight: 600;
    color: var(--rl-teal);
    margin-top: auto;
}

/* =====================================================
   HOW IT WORKS / TRUST SECTION
   ===================================================== */
.rl-how-section {
    background: var(--rl-white);
    padding: 60px 20px;
}
.rl-steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 32px;
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 0 0;
}
.rl-step {
    text-align: center;
}
.rl-step-num {
    width: 48px;
    height: 48px;
    background: var(--rl-teal-light);
    color: var(--rl-teal-hover);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 800;
    margin: 0 auto 14px;
    border: 2px solid var(--rl-teal);
}
.rl-step h3 {
    font-size: 16px;
    margin: 0 0 8px;
}
.rl-step p {
    font-size: 14px;
    color: var(--rl-text-light);
    margin: 0;
    line-height: 1.5;
}

/* Trust signals row */
.rl-trust-row {
    display: flex;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
    padding: 32px 20px;
    background: var(--rl-bg-warm);
    border-top: 1px solid var(--rl-border);
    border-bottom: 1px solid var(--rl-border);
}
.rl-trust-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--rl-text-light);
    font-weight: 500;
}
.rl-trust-icon {
    font-size: 20px;
}

/* =====================================================
   KADENCE OVERRIDES — Full Width Content
   ===================================================== */
.home .site-container .site-inner-wrap,
.page .site-container .site-inner-wrap {
    display: block;
}
.home .content-wrap,
.page .content-wrap {
    max-width: 100%;
    width: 100%;
    float: none;
}
.home #primary,
.page #primary {
    width: 100%;
    max-width: 100%;
    float: none;
}
.home #secondary,
.home .widget-area {
    display: none;
}

.single-post .entry-content-wrap {
    max-width: 820px;
    margin: 0 auto;
}

/* Hero breaks out of content container */
.rl-hero {
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    width: 100vw;
}

/* Topic nav and card grid centered */
.rl-topic-nav {
    padding: 28px 20px;
}

.rl-card-grid {
    padding: 24px 20px;
}

.wp-site-blocks .alignfull {
    max-width: none;
}

/* Kadence button overrides */
.wp-block-button__link,
.kb-button {
    border-radius: 50px !important;
}
.wp-block-button__link:not(.has-background) {
    background: var(--rl-teal) !important;
}
.wp-block-button__link:hover {
    background: var(--rl-teal-hover) !important;
}

/* =====================================================
   SCROLL TO TOP BUTTON
   ===================================================== */
.rl-scroll-top {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 48px;
    height: 48px;
    background: var(--rl-teal);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s, transform 0.3s, background 0.2s;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(43,183,169,0.3);
}
.rl-scroll-top.visible {
    opacity: 1;
    transform: translateY(0);
}
.rl-scroll-top:hover {
    background: var(--rl-teal-hover);
}

/* =====================================================
   READING PROGRESS BAR
   ===================================================== */
.rl-reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--rl-teal), var(--rl-blue));
    z-index: 9999;
    transition: width 0.1s linear;
}

/* =====================================================
   HIDE POST TAGS & FIX NAV
   ===================================================== */
.single-post .post-tags,
.single-post .entry-tags,
.single-post .tags-links,
.single-post .entry-meta .tag-links,
.single-post .wp-block-post-terms,
.single-post .entry-footer .cat-links + .tags-links,
.single-post footer.entry-footer .tags-links {
    display: none !important;
}
.single-post .entry-content-wrap .post-tags,
.single-post .entry-content-wrap .entry-tags,
.single-post .kadence-entry-tag-wrap {
    display: none !important;
}

/* Hide theme-generated post navigation / similar posts */
.single-post .post-navigation,
.single-post nav.post-navigation,
.single-post .navigation.post-navigation,
.single-post .post-navigation-wrap,
.single-post .entry-related,
.single-post .similar-posts,
.single-post .related-posts,
.single-post .kadence-related-posts,
.single-post .kt-related-posts {
    display: none !important;
}

/* =====================================================
   SINGLE POST READING WIDTH
   ===================================================== */
.single-post .content-container.site-container {
    max-width: 1100px;
}
.single-post .entry-content {
    font-size: 17px;
    line-height: 1.75;
}
.single-post .entry-content h2 {
    font-size: 24px;
    margin-top: 36px;
    color: var(--rl-dark);
}
.single-post .entry-content h3 {
    font-size: 20px;
    margin-top: 28px;
}

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 768px) {
    .rl-hero { padding: 48px 20px 40px; }
    .rl-hero h1 { font-size: 28px; }
    .rl-hero p { font-size: 16px; }
    .rl-card-grid { grid-template-columns: 1fr; gap: 16px; }
    .rl-topic-nav { gap: 8px; }
    .rl-topic-pill { padding: 8px 14px; font-size: 13px; }
    .rl-newsletter-cta { padding: 32px 20px; }
    .rl-newsletter-form { flex-direction: column; }
    .rl-hub-grid { grid-template-columns: 1fr 1fr; }
    .rl-product-pros-cons { grid-template-columns: 1fr; }
    .single-post .entry-content { font-size: 16px; }
    .rl-trust-row { gap: 20px; }
    .rl-hero-cta-group { flex-direction: column; align-items: center; }
}
@media (max-width: 480px) {
    .rl-hub-grid { grid-template-columns: 1fr; }
}
