/*
Theme Name: Honey Road
Theme URI: https://honeyroad.com
Author: Honey Road Team
Author URI: https://honeyroad.com
Description: A custom WordPress theme for the Honey Road brand — pure, raw honey straight from the hive.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: honey-road
*/

/* 
   CSS Variables for Design System
*/
:root {
    /* Color Palette */
    --clr-gold: #F5B041;
    --clr-gold-light: #F9E79F;
    --clr-amber: #D68910;
    --clr-amber-dark: #B9770E;
    
    --clr-bg: #FCF9F2;
    --clr-surface: #FFFFFF;
    
    --clr-text-main: #2C3E50;
    --clr-text-light: #566573;
    
    --clr-accent-red: #E74C3C;
    --clr-accent-green: #27AE60;

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

    /* Layout & Spacing */
    --container-width: 1200px;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --shadow-sm: 0 4px 6px rgba(185, 119, 14, 0.05);
    --shadow-md: 0 10px 20px rgba(185, 119, 14, 0.1);
    --shadow-lg: 0 20px 40px rgba(185, 119, 14, 0.15);
    
    --border-radius: 16px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--clr-text-main);
    background-color: var(--clr-bg);
    line-height: 1.6;
    overflow-x: hidden;
}

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

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

h1, h2, h3, h4, .logo {
    font-family: var(--font-heading);
    line-height: 1.2;
}

/* Utility Classes */
.container {
    width: 90%;
    max-width: var(--container-width);
    margin: 0 auto;
}

.section {
    padding: 6rem 0;
}

.bg-light {
    background-color: var(--clr-surface);
}

.text-gradient {
    background: linear-gradient(135deg, var(--clr-amber), var(--clr-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    font-weight: 600;
    font-family: var(--font-heading);
    transition: var(--transition);
    cursor: pointer;
    border: none;
    text-align: center;
}

.btn-small {
    padding: 0.5rem 1.2rem;
    font-size: 0.9rem;
}

.btn-primary {
    background-color: var(--clr-gold);
    color: #fff;
    box-shadow: 0 4px 15px rgba(245, 176, 65, 0.4);
}

.btn-primary:hover {
    background-color: var(--clr-amber);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(214, 137, 16, 0.5);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid #fff;
    color: #fff;
}

.btn-outline:hover {
    background-color: #fff;
    color: var(--clr-amber-dark);
}

/* Navbar forced scrolled state on pages without a hero */
.single-product-page .navbar,
.single-product-page .navbar.scrolled {
    background: var(--clr-bg);
    padding: 0.8rem 0;
    box-shadow: var(--shadow-sm);
    border-bottom: 1px solid rgba(245, 176, 65, 0.2);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

.single-product-page .navbar .logo .logo-light {
    display: none !important;
}

.single-product-page .navbar .logo .logo-dark {
    display: block !important;
}

.single-product-page .navbar .nav-links a:not(.btn) {
    color: var(--clr-text-main);
}

.single-product-page .navbar .hamburger,
.single-product-page .navbar .hamburger::before,
.single-product-page .navbar .hamburger::after {
    background-color: var(--clr-text-main);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.2rem 0;
    z-index: 1000;
    transition: var(--transition);
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.navbar.scrolled {
    background: rgba(252, 249, 242, 0.95);
    padding: 0.8rem 0;
    box-shadow: var(--shadow-sm);
    border-bottom: 1px solid rgba(245, 176, 65, 0.2);
}

.navbar.scrolled .logo,
.navbar.scrolled .nav-links a:not(.btn) {
    color: var(--clr-text-main);
}

.navbar.scrolled .logo span {
    color: var(--clr-amber);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
}

.logo img {
    height: 45px;
    width: auto;
}

.logo .logo-dark {
    display: none;
}

.navbar.scrolled .logo .logo-light {
    display: none;
}

.navbar.scrolled .logo .logo-dark {
    display: block;
}

.logo span {
    color: var(--clr-gold);
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a:not(.btn) {
    color: #fff;
    font-weight: 500;
    position: relative;
}

.nav-links a:not(.btn)::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--clr-gold);
    transition: var(--transition);
}

.nav-links a:not(.btn):hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-links a.active {
    color: var(--clr-gold) !important;
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-close {
    display: none;
    visibility: hidden;
}

.nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 998;
}

.nav-overlay.active {
    display: block;
}

.hamburger {
    display: block;
    width: 24px;
    height: 2px;
    background-color: #fff;
    position: relative;
    transition: var(--transition);
}

.navbar.scrolled .hamburger,
.navbar.scrolled .hamburger::before,
.navbar.scrolled .hamburger::after {
    background-color: var(--clr-text-main);
}

.hamburger::before, .hamburger::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #fff;
    transition: var(--transition);
}

.hamburger::before { top: -8px; }
.hamburger::after { bottom: -8px; }

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding-top: 80px;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.3) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
    color: #fff;
}

.hero h1 {
    font-size: clamp(3rem, 5vw, 4.5rem);
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

/* Section Header */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--clr-amber-dark);
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--clr-text-light);
}

/* Harvest Comparison Grid */
.comparison-grid {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    position: relative;
}

.comparison-card {
    background: var(--clr-surface);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    flex: 1;
    transition: var(--transition);
    max-width: 500px;
    border: 1px solid rgba(245, 176, 65, 0.1);
}

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

.premium-card {
    border: 2px solid var(--clr-gold);
    position: relative;
    transform: scale(1.02);
}

.premium-card:hover {
    transform: scale(1.02) translateY(-5px);
}

.card-image {
    height: 250px;
    position: relative;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--clr-gold);
    color: #fff;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.card-content {
    padding: 2rem;
}

.card-content h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--clr-amber-dark);
}

.feature-list li {
    margin-bottom: 1rem;
    padding-left: 2rem;
    position: relative;
    font-size: 1rem;
    color: var(--clr-text-light);
}

.feature-list.cross li::before {
    content: '\00d7';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--clr-accent-red);
    font-size: 1.5rem;
    font-weight: bold;
    line-height: 1;
}

.feature-list.check li::before {
    content: '\2713';
    position: absolute;
    left: 0;
    top: 2px;
    color: var(--clr-accent-green);
    font-weight: bold;
}

.vs-badge {
    background: var(--clr-amber);
    color: #fff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.2rem;
    box-shadow: var(--shadow-sm);
    z-index: 10;
    flex-shrink: 0;
}

/* Blog Grid */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.blog-card {
    background: var(--clr-surface);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

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

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

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-card:hover .blog-image img {
    transform: scale(1.1);
}

.blog-content {
    padding: 1.8rem;
}

.category {
    display: inline-block;
    color: var(--clr-amber);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.8rem;
}

.blog-content h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--clr-text-main);
}

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

.read-more {
    color: var(--clr-amber-dark);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.read-more span {
    transition: transform 0.3s ease;
}

.read-more:hover span {
    transform: translateX(5px);
}

/* Journal Page Styles */
.journal-hero {
    height: 45vh;
    min-height: 400px;
    display: flex;
    align-items: center;
    position: relative;
    background-size: cover;
    background-position: center;
    padding-top: 80px;
}

.journal-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.journal-hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: #fff;
    width: 100%;
}

.journal-hero-content h1 {
    font-size: clamp(3rem, 5vw, 4rem);
    margin-bottom: 1rem;
}

.journal-hero-content p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
}

/* Journal Grid */
.pt-0 {
    padding-top: 0;
}

.journal-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.journal-card {
    background: var(--clr-surface);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

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

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

.journal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.journal-content {
    padding: 1.8rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.journal-content h3 {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
    color: var(--clr-text-main);
}

.journal-content .excerpt {
    color: var(--clr-text-light);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    line-height: 1.5;
    flex: 1;
}

.journal-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(0,0,0,0.05);
    padding-top: 1rem;
    margin-top: auto;
}

.journal-date {
    font-size: 0.85rem;
    color: #888;
}

/* Shop Page Styles */
.shop-hero {
    height: auto;
    min-height: 350px;
    display: flex;
    align-items: center;
    position: relative;
    background-size: cover;
    background-position: center;
    padding-top: 100px;
    padding-bottom: 3rem;
    overflow: hidden;
}

.shop-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.7) 100%);
}

.shop-hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: #fff;
    max-width: 800px;
    margin: 0 auto;
}

.shop-hero-content h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    margin-bottom: 1.5rem;
}

.shop-disclaimer {
    background: rgba(44, 62, 80, 0.9);
    border: 1px solid rgba(245, 176, 65, 0.4);
    border-radius: var(--border-radius);
    padding: 1.2rem 1.8rem;
    font-size: 0.95rem;
    line-height: 1.7;
    color: #fff;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.shop-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.product-card {
    background: var(--clr-surface);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(245, 176, 65, 0.1);
}

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

.product-image {
    height: 240px;
    overflow: hidden;
    background: #fff;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 1rem;
    transition: transform 0.5s ease;
}

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

.product-content {
    padding: 1.8rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-content h3 {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
    color: var(--clr-text-main);
}

.product-description {
    color: var(--clr-text-light);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex: 1;
}

.product-btn {
    align-self: flex-start;
    font-size: 0.95rem;
}

.product-buttons {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.btn-outline-gold {
    background-color: transparent;
    border: 2px solid var(--clr-gold);
    color: var(--clr-amber-dark);
}

.btn-outline-gold:hover {
    background-color: var(--clr-gold);
    color: #fff;
    transform: translateY(-2px);
}

/* Article Page Styles */
.article-hero {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background-size: cover;
    background-position: center;
    padding-top: 120px;
    padding-bottom: 60px;
}

.article-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.7) 100%);
}

.article-hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: #fff;
    max-width: 800px;
}

.article-hero-content .category {
    background: var(--clr-gold);
    color: #fff;
    padding: 0.4rem 1.2rem;
    border-radius: 50px;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    display: inline-block;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
}

.article-hero-content h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.article-meta {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
}

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

.back-link {
    display: inline-block;
    margin-bottom: 2rem;
    color: var(--clr-amber);
    font-weight: 600;
    transition: var(--transition);
}

.back-link:hover {
    color: var(--clr-amber-dark);
    transform: translateX(-5px);
}

.bottom-back-link {
    margin-top: 3rem;
    margin-bottom: 0;
}

.article-body {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--clr-text-light);
}

.article-body a {
    color: var(--clr-gold);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.2s ease;
}

.article-body a:hover {
    color: #B9770E;
}

.article-body p {
    margin-bottom: 1.5rem;
}

.article-body h2 {
    font-family: var(--font-heading);
    color: var(--clr-text-main);
    font-size: 2.2rem;
    margin: 3rem 0 1.5rem;
}

.article-body h3 {
    font-family: var(--font-heading);
    color: var(--clr-text-main);
    font-size: 1.6rem;
    margin: 2.5rem 0 1.2rem;
}

.article-body blockquote {
    border-left: 4px solid var(--clr-gold);
    padding: 1.5rem 2rem;
    margin: 2.5rem 0;
    background: rgba(245, 176, 65, 0.05);
    font-size: 1.3rem;
    font-style: italic;
    color: var(--clr-amber-dark);
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

.article-body img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Footer */
.footer {
    background-color: var(--clr-text-main);
    color: #fff;
    padding: 5rem 0 2rem;
}

.footer-container {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr auto;
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.7);
    margin-top: 1rem;
    max-width: 300px;
}

.footer-links h4, .footer-newsletter h4, .footer-social h4 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: var(--clr-gold-light);
}

.footer-links ul li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--clr-gold);
    padding-left: 5px;
}

.footer-newsletter p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.newsletter-form {
    display: flex;
    gap: 0.5rem;
}

.newsletter-form input {
    flex: 1;
    padding: 0.8rem 1rem;
    border-radius: 50px;
    border: none;
    outline: none;
    font-family: var(--font-body);
}

.newsletter-form .btn {
    border-radius: 50px;
    padding: 0.8rem 1.5rem;
}

.social-link {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
    font-size: 1rem;
}

.social-link:hover {
    color: var(--clr-gold);
}

.social-link svg {
    flex-shrink: 0;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

/* Scroll Animations */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.scroll-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Ensure main content is always visible */
.article-main,
.article-main .article-container,
.article-main .article-body {
    opacity: 1;
    transform: none;
}

/* Ensure hero content is visible even if JS fails */
.hero-content {
    opacity: 1 !important;
    transform: none !important;
}

/* Shop hero content must always be visible */
.shop-hero-content {
    opacity: 1 !important;
    transform: none !important;
}

/* Article hero/title must always be visible (fixes in-app browser reveal bug) */
.article-hero-content {
    opacity: 1 !important;
    transform: none !important;
    visibility: visible !important;
}

/* Category hero/title must always be visible (fixes in-app browser reveal bug) */
.category-archive-hero .journal-hero-content {
    opacity: 1 !important;
    transform: none !important;
    visibility: visible !important;
}

.delay-1 { transition-delay: 0.2s; }
.delay-2 { transition-delay: 0.4s; }

/* Search */
.journal-search-section {
    padding: 2rem 0 1rem;
}

/* Category Filter Pills */
.journal-filter-section {
    padding: 0 0 1.5rem;
}

.category-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    justify-content: center;
    max-width: 900px;
    margin: 0 auto;
}

.category-pill {
    display: inline-block;
    padding: 0.55rem 1.2rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    font-family: var(--font-body);
    color: var(--clr-text-light);
    background: var(--clr-surface);
    border: 1px solid rgba(245, 176, 65, 0.25);
    transition: var(--transition);
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
}

.category-pill:hover {
    background: rgba(245, 176, 65, 0.1);
    color: var(--clr-amber-dark);
    border-color: var(--clr-gold);
}

.category-pill.active {
    background: var(--clr-gold);
    color: #fff;
    border-color: var(--clr-gold);
    box-shadow: 0 3px 10px rgba(245, 176, 65, 0.35);
}

.category-pill.active:hover {
    background: var(--clr-amber);
    border-color: var(--clr-amber);
    color: #fff;
}

.search-container {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    background: var(--clr-surface);
    border-radius: 50px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    border: 1px solid rgba(245, 176, 65, 0.2);
}

.journal-search-input {
    flex: 1;
    padding: 1rem 1.5rem;
    border: none;
    outline: none;
    font-family: var(--font-body);
    font-size: 1rem;
    background: transparent;
    color: var(--clr-text-main);
}

.journal-search-input::placeholder {
    color: #aab7c4;
}

.search-container .search-btn {
    border-radius: 0;
    padding: 1rem 2rem;
    box-shadow: none;
}

.search-container .search-btn:hover {
    transform: none;
    background-color: var(--clr-amber);
}

/* Responsive Video */
.responsive-video {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: #000;
    border-radius: var(--border-radius);
    margin: 2.5rem 0;
    box-shadow: var(--shadow-sm);
}

.responsive-video iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Responsive Design */
@media (max-width: 992px) {
    .comparison-grid {
        flex-direction: column;
    }
    
    .vs-badge {
        margin: 1rem 0;
    }
    
    .premium-card {
        transform: none;
    }
    .premium-card:hover {
        transform: translateY(-5px);
    }
    
    .footer-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .journal-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .shop-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero {
        background-attachment: scroll;
    }

    .hero h1 {
        font-size: 2.5rem;
    }
    
    .mobile-toggle {
        display: block;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background-color: var(--clr-bg);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transition: var(--transition);
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
        z-index: 999;
    }
    
    .nav-links.active {
        right: 0;
    }

    .mobile-close {
        display: block;
        visibility: visible;
        position: absolute;
        top: 2rem;
        right: 2rem;
        background: none;
        border: none;
        font-size: 2rem;
        font-weight: 300;
        color: #2C3E50;
        cursor: pointer;
        line-height: 1;
        padding: 0;
        width: 40px;
        height: 40px;
        text-align: center;
        z-index: 1001;
    }

    .mobile-close:hover {
        color: #D68910;
    }

    .nav-links a:not(.btn) {
        color: var(--clr-text-main);
        font-size: 1.2rem;
    }
    
    .hamburger.active {
        background-color: transparent;
    }
    
    .hamburger.active::before {
        top: 0;
        transform: rotate(45deg);
        background-color: var(--clr-text-main);
    }
    
    .hamburger.active::after {
        bottom: 0;
        transform: rotate(-45deg);
        background-color: var(--clr-text-main);
    }
    
    .section {
        padding: 4rem 0;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .journal-grid {
        grid-template-columns: 1fr;
    }
    
    .shop-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .newsletter-form input,
    .newsletter-form .btn {
        width: 100%;
        border-radius: 50px;
    }
    
    .article-hero-content h1 {
        font-size: 2rem;
    }
    
    .article-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .shop-hero {
        height: auto;
        min-height: auto;
        padding-top: 120px;
        padding-bottom: 2.5rem;
    }
    
    .shop-hero-content h1 {
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }
    
    .shop-disclaimer {
        padding: 0.9rem 1rem;
        font-size: 0.8rem;
        line-height: 1.5;
        background: rgba(44, 62, 80, 0.95);
        color: #fff;
    }
    
    .search-container {
        flex-direction: column;
        border-radius: var(--border-radius);
    }
    
    .journal-search-input {
        border-radius: var(--border-radius);
        padding: 0.9rem 1.2rem;
    }
    
    .search-container .search-btn {
        border-radius: var(--border-radius);
        padding: 0.9rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .container {
        width: 92%;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .card-content {
        padding: 1.5rem;
    }
    
    .blog-content,
    .journal-content,
    .product-content {
        padding: 1.4rem;
    }
}

/* WordPress Core Styles */
.alignleft {
    float: left;
    margin-right: 1.5rem;
    margin-bottom: 1rem;
}

.alignright {
    float: right;
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 1rem;
}

.wp-caption {
    max-width: 100%;
    margin-bottom: 1.5rem;
}

.wp-caption-text {
    font-size: 0.85rem;
    color: var(--clr-text-light);
    text-align: center;
    padding-top: 0.5rem;
}

.sticky {
    border-left: 4px solid var(--clr-gold);
}

.gallery-caption {
    font-size: 0.85rem;
}

.bypostauthor {
    border-left: 3px solid var(--clr-gold);
}

/* WordPress Pagination */
.navigation.pagination {
    margin-top: 3rem;
    text-align: center;
}

.navigation.pagination .nav-links {
    position: static;
    display: inline-flex;
    gap: 0.5rem;
    width: auto;
    height: auto;
    background: none;
    flex-direction: row;
    justify-content: center;
    box-shadow: none;
}

.navigation.pagination .nav-links a,
.navigation.pagination .nav-links span {
    display: inline-block;
    padding: 0.6rem 1rem;
    border-radius: 8px;
    font-weight: 500;
    color: var(--clr-text-main);
    background: var(--clr-surface);
    border: 1px solid rgba(245, 176, 65, 0.2);
    transition: var(--transition);
}

.navigation.pagination .nav-links a:hover {
    background: var(--clr-gold);
    color: #fff;
    border-color: var(--clr-gold);
}

.navigation.pagination .nav-links .current {
    background: var(--clr-gold);
    color: #fff;
    border-color: var(--clr-gold);
}

/* Reading Progress Circle */
.reading-progress {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    width: 50px;
    height: 50px;
    z-index: 900;
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
}

.reading-progress.visible {
    opacity: 1;
    transform: scale(1);
}

.reading-progress svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.reading-progress-bg {
    fill: none;
    stroke: rgba(185, 119, 14, 0.15);
    stroke-width: 3;
}

.reading-progress-fill {
    fill: none;
    stroke: var(--clr-gold);
    stroke-width: 3;
    stroke-linecap: round;
    transition: stroke-dasharray 0.1s ease;
}

.reading-progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 0.65rem;
    font-weight: 600;
    font-family: var(--font-heading);
    color: var(--clr-amber-dark);
}

/* Single Product Page */
.affiliate-disclosure-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    background: rgba(249, 231, 159, 0.25);
    border: 1px solid rgba(245, 176, 65, 0.25);
    border-radius: var(--border-radius);
    padding: 1.2rem 2rem;
    margin-bottom: 2.5rem;
    font-size: 1rem;
    color: var(--clr-text-main);
    text-align: center;
}

.affiliate-disclosure-banner .disclosure-icon {
    font-size: 1.4rem;
    flex-shrink: 0;
}

.affiliate-disclosure-banner p {
    margin: 0;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* 50/50 Two-Column Layout */
.product-single-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3.5rem;
    align-items: start;
    margin-top: 2rem;
}

/* Left Column: Image & Thumbnails */
.product-single-image {
    position: sticky;
    top: 100px;
}

.product-main-image {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(245, 176, 65, 0.1);
    background: #fff;
}

.product-main-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

.product-thumbnails {
    display: flex;
    gap: 0.8rem;
    margin-top: 1.2rem;
    flex-wrap: wrap;
}

.product-thumb {
    width: 72px;
    height: 72px;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
    padding: 0;
    background: #fff;
    box-shadow: var(--shadow-sm);
}

.product-thumb:hover,
.product-thumb.active {
    border-color: var(--clr-gold);
    box-shadow: 0 3px 12px rgba(245, 176, 65, 0.35);
}

.product-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Right Column: Product Details */
.product-single-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.product-single-title {
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--clr-text-main);
    line-height: 1.2;
}

.product-rating-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.product-stars {
    display: flex;
    gap: 3px;
}

.star {
    font-size: 1.5rem;
    line-height: 1;
}

.star-filled {
    color: #F5B041;
}

.star-empty {
    color: #e0e0e0;
}

.product-badge {
    display: inline-block;
    background: rgba(245, 176, 65, 0.12);
    color: var(--clr-amber-dark);
    padding: 0.35rem 1rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    border: 1px solid rgba(245, 176, 65, 0.3);
}

/* Why We Love It */
.product-why-section h3,
.product-features-section h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--clr-text-main);
    margin-bottom: 0.6rem;
}

.product-why-section p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--clr-text-light);
}

/* Key Features List */
.product-features-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.product-features-list li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 0.9rem;
    font-size: 1.05rem;
    color: var(--clr-text-light);
    line-height: 1.6;
}

.product-features-list li::before {
    content: '✅';
    position: absolute;
    left: 0;
    top: 2px;
    font-size: 0.9rem;
}

/* Amazon CTA Button — Large & Prominent */
.product-single-btn.btn.btn-primary {
    display: block;
    width: 100%;
    text-align: center;
    font-size: 1.2rem;
    font-weight: 700;
    padding: 1.2rem 2rem;
    margin-top: 1rem;
    border-radius: 50px;
    background-color: var(--clr-gold);
    color: #fff;
    box-shadow: 0 6px 20px rgba(245, 176, 65, 0.45);
    transition: var(--transition);
}

.product-single-btn.btn.btn-primary:hover {
    background-color: var(--clr-amber);
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(214, 137, 16, 0.55);
    color: #fff;
}

.product-single-disclosure {
    font-size: 0.85rem;
    color: #999;
    margin-top: 0.5rem;
    text-align: center;
}

/* Pros & Cons — Side by Side */
.product-pros-cons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 4rem;
}

.pros-card {
    background: rgba(39, 174, 96, 0.06);
    border: 1px solid rgba(39, 174, 96, 0.2);
    border-radius: var(--border-radius);
    padding: 2rem;
}

.cons-card {
    background: rgba(231, 76, 60, 0.05);
    border: 1px solid rgba(231, 76, 60, 0.2);
    border-radius: var(--border-radius);
    padding: 2rem;
}

.pros-card h3,
.cons-card h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.2rem;
    color: var(--clr-text-main);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pros-card ul,
.cons-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pros-card ul li,
.cons-card ul li {
    position: relative;
    padding-left: 1.6rem;
    margin-bottom: 0.9rem;
    font-size: 1rem;
    color: var(--clr-text-light);
    line-height: 1.6;
}

.pros-card ul li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--clr-accent-green);
    font-weight: bold;
    font-size: 1.4rem;
    line-height: 1.2;
}

.cons-card ul li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--clr-accent-red);
    font-weight: bold;
    font-size: 1.4rem;
    line-height: 1.2;
}

/* Additional Content */
.product-single-additional {
    margin-top: 3rem;
    padding-top: 3rem;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.product-single-additional h2 {
    font-size: 1.8rem;
    color: var(--clr-amber-dark);
    margin-bottom: 1.5rem;
}

/* Responsive */
@media (max-width: 768px) {
    .product-single-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .product-single-image {
        position: static;
    }

    .product-single-title {
        font-size: 1.8rem;
    }

    .product-pros-cons {
        grid-template-columns: 1fr;
    }

    .affiliate-disclosure-banner {
        flex-direction: column;
        gap: 0.5rem;
        padding: 1rem 1.2rem;
    }

    .product-single-btn {
        font-size: 1.1rem;
        padding: 1rem 1.5rem;
    }
}

/* Screen Reader Text (Accessibility) */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}

.screen-reader-text:focus {
    background-color: #f1f1f1;
    border-radius: 3px;
    box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
    clip: auto !important;
    clip-path: none;
    color: #21759b;
    display: block;
    font-size: 0.875rem;
    font-weight: 700;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}


/* ============================================================
   Category Archive Pages
   ============================================================ */

/* Hero banner — slightly shorter for category pages */
.category-archive-hero.journal-hero {
    height: auto;
    min-height: 280px;
    max-height: 360px;
}

/* Override body.category class bleed on category archive pages */
body.category {
    display: block;
    color: var(--clr-text-main);
    font-size: inherit;
    font-weight: inherit;
    text-transform: none;
    letter-spacing: normal;
    margin-bottom: 0;
}

/* Category description block */
.category-archive .category-description {
    text-align: center;
    max-width: 820px;
    margin: 0 auto 2rem;
    color: var(--clr-text-light);
    font-size: 1.05rem;
    line-height: 1.7;
    text-transform: none;
    letter-spacing: normal;
    font-weight: 400;
}

.category-archive .category-description p {
    margin: 0;
    color: var(--clr-text-light);
    text-transform: none;
    letter-spacing: normal;
    font-weight: 400;
}

/* Search section spacing and centering within category archive */
.category-archive .journal-search-section {
    padding: 0 0 2.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Tag pills on category archive cards */
.category-archive .journal-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 0.8rem;
}

.category-archive .journal-card-tags a {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--clr-amber-dark);
    background: rgba(245, 176, 65, 0.12);
    border: 1px solid rgba(245, 176, 65, 0.25);
    text-decoration: none;
    transition: var(--transition);
    white-space: nowrap;
}

.category-archive .journal-card-tags a:hover {
    background: var(--clr-gold);
    color: #fff;
    border-color: var(--clr-gold);
}

/* Category archive pagination spacing */
.category-archive .navigation.pagination {
    margin-top: 3rem;
    margin-bottom: 1rem;
}

/* Responsive — Tablet */
@media (max-width: 992px) {
    .category-archive-hero.journal-hero {
        min-height: 220px;
        max-height: 300px;
    }
}

/* Responsive — Mobile */
@media (max-width: 768px) {
    .category-archive-hero.journal-hero {
        min-height: 300px;
        max-height: 340px;
        margin-bottom: 1.5rem;
    }

    .category-archive .category-description {
        font-size: 0.95rem;
        padding: 0 0.5rem;
    }

    .category-archive .journal-card-tags {
        gap: 0.35rem;
    }

    .category-archive .journal-card-tags a {
        font-size: 0.7rem;
        padding: 0.2rem 0.6rem;
    }
}


/* ============================================================
   Homepage Topic Cards
   ============================================================ */

.topic-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.topic-card {
    background: var(--clr-surface);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    border: 1px solid rgba(245, 176, 65, 0.1);
}

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

.topic-card-image {
    height: 200px;
    overflow: hidden;
}

.topic-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.topic-card-content {
    padding: 1.8rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.topic-card-content h3 {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
    color: var(--clr-text-main);
    font-family: var(--font-heading);
}

.topic-card-content p {
    color: var(--clr-text-light);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex: 1;
}

.topic-card-link {
    color: var(--clr-amber-dark);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
    margin-top: auto;
}

.topic-card:hover .topic-card-link {
    color: var(--clr-amber);
}

.topic-card:hover .topic-card-link span {
    transform: translateX(5px);
}

.topic-card-link span {
    transition: transform 0.3s ease;
}

/* Responsive — Tablet */
@media (max-width: 992px) {
    .topic-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Responsive — Mobile */
@media (max-width: 768px) {
    .topic-grid {
        grid-template-columns: 1fr;
    }

    .topic-card-image {
        height: 180px;
    }
}


/* ============================================================
   Footer Update
   ============================================================ */

/* Override the default footer grid for the new 4-column layout */
.footer-container {
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
}

/* Helpful links column shares footer-links styles */
.footer-helpful h4 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: var(--clr-gold-light);
}

/* Social links row inside newsletter column */
.footer-social-links {
    display: flex;
    gap: 1.2rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

/* Responsive — Tablet: 2 columns */
@media (max-width: 992px) {
    .footer-container {
        grid-template-columns: 1fr 1fr;
        gap: 2.5rem;
    }
}

/* Responsive — Mobile: 1 column */
@media (max-width: 768px) {
    .footer-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}


/* ============================================================
   Article Body Lists (single posts)
   ============================================================ */

.article-body ul {
    list-style: disc;
    padding-left: 1.5rem;
    margin: 1rem 0 1.5rem;
}

.article-body ol {
    list-style: decimal;
    padding-left: 1.5rem;
    margin: 1rem 0 1.5rem;
}

.article-body li {
    margin-bottom: 0.5rem;
    line-height: 1.7;
}

.article-body ul ul {
    list-style: circle;
    margin: 0.5rem 0;
}

.article-body ol ol {
    list-style: lower-alpha;
    margin: 0.5rem 0;
}


/* ============================================================
   Single Post Related Posts
   ============================================================ */

.related-posts {
    background: var(--clr-bg);
}

.related-posts .section-header {
    margin-bottom: 2.5rem;
}

.related-posts .section-header h2 {
    font-size: 2rem;
    color: var(--clr-text-main);
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    overflow: visible;
}

.related-post-card {
    background: var(--clr-surface);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(245, 176, 65, 0.1);
    min-width: 0;
}

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

.related-post-image {
    display: block;
    height: 180px;
    overflow: hidden;
}

.related-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.related-post-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.related-post-content h3 {
    font-size: 1.15rem;
    margin-bottom: 0.6rem;
    color: var(--clr-text-main);
    font-family: var(--font-heading);
    line-height: 1.3;
}

.related-post-content h3 a {
    color: inherit;
    text-decoration: none;
}

.related-post-content h3 a:hover {
    color: var(--clr-amber-dark);
}

.related-post-content p {
    color: var(--clr-text-light);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    flex: 1;
}

.related-post-content .read-more {
    font-size: 0.9rem;
    margin-top: auto;
}

/* Responsive — Tablet */
@media (max-width: 992px) {
    .related-posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Responsive — Mobile */
@media (max-width: 768px) {
    .related-posts-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .related-post-card {
        min-width: 0;
        max-width: 100%;
        overflow: hidden;
    }

    .related-post-image {
        height: 170px;
    }

    .related-post-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

    .related-post-content {
        padding: 1.2rem;
    }

    .related-post-content h3 {
        font-size: 1.1rem;
        line-height: 1.35;
    }

    .related-post-content p {
        font-size: 0.88rem;
        line-height: 1.55;
        margin-bottom: 0.8rem;
    }

    .related-posts .section-header h2 {
        font-size: 1.6rem;
    }

    .related-posts.section {
        padding: 3rem 0;
    }
}


/* ============================================================
   Tag Archive Pages
   ============================================================ */

/* Offset for fixed navbar since there is no hero on tag pages */
.tag-archive.section {
    padding-top: 8rem;
}

/* Tag intro header */
.tag-archive .tag-archive-header {
    text-align: center;
    max-width: 820px;
    margin: 0 auto 3rem;
}

.tag-archive .tag-archive-header h1 {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    color: var(--clr-text-main);
    margin-bottom: 0.8rem;
}

.tag-archive .tag-archive-description {
    color: var(--clr-text-light);
    font-size: 1.05rem;
    line-height: 1.7;
    margin: 0;
}

/* Reuse category tag pill styling on tag archive cards */
.tag-archive .journal-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 0.8rem;
}

.tag-archive .journal-card-tags a {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--clr-amber-dark);
    background: rgba(245, 176, 65, 0.12);
    border: 1px solid rgba(245, 176, 65, 0.25);
    text-decoration: none;
    transition: var(--transition);
    white-space: nowrap;
}

.tag-archive .journal-card-tags a:hover {
    background: var(--clr-gold);
    color: #fff;
    border-color: var(--clr-gold);
}

/* Responsive — Mobile */
@media (max-width: 768px) {
    .tag-archive.section {
        padding-top: 6.5rem;
    }

    .tag-archive .tag-archive-description {
        font-size: 0.95rem;
        padding: 0 0.5rem;
    }
}


/* ============================================================
   Mobile Category Archive Override
   ============================================================ */
@media (max-width: 768px) {
    .category-archive .category-description,
    .category-archive .category-description p {
        color: var(--clr-text-light, #5f6b73) !important;
        text-transform: none !important;
        letter-spacing: normal !important;
        font-size: 0.95rem !important;
        line-height: 1.65 !important;
        font-weight: 400 !important;
        text-align: center !important;
        max-width: 100% !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    .category-archive .journal-search-section {
        max-width: 100% !important;
        margin-left: auto !important;
        margin-right: auto !important;
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .category-archive .search-container,
    .category-archive form {
        max-width: 100%;
    }

    .category-archive .journal-card-tags {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 0.4rem !important;
        margin-bottom: 0.8rem !important;
    }

    .category-archive .journal-card-tags a {
        display: inline-block !important;
        padding: 0.25rem 0.65rem !important;
        border-radius: 999px !important;
        font-size: 0.7rem !important;
        line-height: 1.2 !important;
        font-weight: 600 !important;
        text-transform: uppercase !important;
        letter-spacing: 0.04em !important;
        color: var(--clr-amber-dark, #b86b00) !important;
        background: rgba(245, 176, 65, 0.12) !important;
        border: 1px solid rgba(245, 176, 65, 0.25) !important;
        text-decoration: none !important;
        white-space: normal !important;
    }

    .category-archive .journal-content h2,
    .category-archive .journal-content h3 {
        word-break: normal;
        overflow-wrap: break-word;
    }
}


/* ============================================================
   Mobile Single Post Fixes (article lists + related posts)
   ============================================================ */
@media (max-width: 768px) {

    /* --- Problem A: article body list markers clipped on mobile --- */
    .article-body ol,
    .article-body ul {
        padding-left: 1.6rem;
        margin-left: 0;
        list-style-position: outside;
        overflow: visible;
    }

    .article-body li {
        padding-left: 0.25rem;
        margin-bottom: 0.75rem;
        line-height: 1.7;
    }

    /* --- Problem B: Keep Reading related posts on mobile --- */
    .related-posts.section {
        padding: 2.5rem 0;
    }

    .related-posts .container {
        width: 100%;
        padding-left: 1rem;
        padding-right: 1rem;
        box-sizing: border-box;
    }

    .related-posts-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
        max-width: 100%;
        overflow: visible;
    }

    .related-post-card {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        overflow: hidden;
        border-radius: 16px;
    }

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

    .related-post-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

    .related-post-content {
        padding: 1rem;
    }

    .related-post-content h3 {
        font-size: 1.1rem;
        line-height: 1.35;
        margin-bottom: 0.55rem;
    }

    .related-post-content p {
        font-size: 0.9rem;
        line-height: 1.55;
        margin-bottom: 0.8rem;
    }

    .related-posts .section-header h2 {
        font-size: 1.6rem;
        line-height: 1.25;
    }
}


/* ============================================================
   Search Archive Pages
   ============================================================ */

/* Offset for fixed navbar since there is no hero on search pages */
.search-archive.section {
    padding-top: 8rem;
}

/* Search intro header */
.search-archive .search-archive-header {
    text-align: center;
    max-width: 820px;
    margin: 0 auto 2rem;
}

.search-archive .search-archive-header h1 {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    color: var(--clr-text-main);
    margin-bottom: 0;
    word-break: normal;
    overflow-wrap: break-word;
}

/* Center the search form on search pages */
.search-archive .journal-search-section {
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 0 2.5rem;
}

/* Reuse tag pill styling on search result cards */
.search-archive .journal-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 0.8rem;
}

.search-archive .journal-card-tags a {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--clr-amber-dark);
    background: rgba(245, 176, 65, 0.12);
    border: 1px solid rgba(245, 176, 65, 0.25);
    text-decoration: none;
    transition: var(--transition);
    white-space: nowrap;
}

.search-archive .journal-card-tags a:hover {
    background: var(--clr-gold);
    color: #fff;
    border-color: var(--clr-gold);
}

/* Responsive — Mobile */
@media (max-width: 768px) {
    .search-archive.section {
        padding-top: 6.5rem;
    }

    .search-archive .journal-search-section {
        max-width: 100%;
        padding-left: 1rem;
        padding-right: 1rem;
    }
}


/* ============================================================
   Newsletter Flash Notice
   ============================================================ */

/* Give the anchored newsletter section breathing room from the navbar */
#newsletter {
    scroll-margin-top: 100px;
}

.newsletter-notice {
    margin-bottom: 1rem;
    padding: 0.85rem 1.1rem;
    border-radius: 12px;
    border: 1px solid transparent;
    font-size: 0.9rem;
    line-height: 1.5;
    background: #fff;
    color: var(--clr-text-main);
}

/* Success — subtle green */
.newsletter-notice--success {
    background: rgba(39, 174, 96, 0.12);
    border-color: rgba(39, 174, 96, 0.45);
    color: #1e7e46;
}

/* Info — subtle blue */
.newsletter-notice--info {
    background: rgba(52, 152, 219, 0.12);
    border-color: rgba(52, 152, 219, 0.45);
    color: #2471a3;
}

/* Error — subtle red */
.newsletter-notice--error {
    background: rgba(231, 76, 60, 0.12);
    border-color: rgba(231, 76, 60, 0.45);
    color: #b83227;
}

/* Responsive */
@media (max-width: 768px) {
    .newsletter-notice {
        font-size: 0.88rem;
        padding: 0.75rem 1rem;
    }
}