/*
Theme Name: Brewpy
Theme URI: https://brewpy.com
Author: Anand SINGH
Author URI: https://brewpy.com
Description: Life, softly brewed. A modern, minimalist blog theme for motherhood stories with dark/light mode.
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: brewpy
Tags: blog, one-column, accessibility-ready, custom-colors, custom-menu, featured-images
*/

/* ==========================================================================
   Accessibility
   ========================================================================== */
.skip-link {
    position: absolute;
    top: -100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-accent);
    color: #fff;
    padding: 0.5rem 1.5rem;
    border-radius: 0 0 6px 6px;
    z-index: 100000;
    font-size: 0.85rem;
    font-family: var(--font-heading);
    text-decoration: none;
    transition: top 0.2s ease;
}
.skip-link:focus {
    top: 0;
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

/* ==========================================================================
   Variables
   ========================================================================== */
:root {
    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Merriweather', serif;

    /* Light Theme (Default) */
    --color-bg: #F9F7F2;
    --color-text: #2C3E50;
    --color-text-light: #606f7b;
    --color-text-muted: #8b97a2;
    --color-accent: #D4A373;
    --color-accent-hover: #b88655;
    --color-accent-rgb: 212, 163, 115;
    --color-border: #e2e8f0;
    --color-card-bg: #ffffff;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-hover: 0 8px 24px rgba(0, 0, 0, 0.12);
    /* Dark text on accent-coloured backgrounds — keeps contrast ≥ 6:1 */
    --text-on-accent: #3a1f0a;

    --container-width: 740px;
    --header-height: 80px;
}

[data-theme="dark"] {
    --color-bg: #1A1C20;
    --color-text: #E0E0E0;
    --color-text-light: #A0A0A0;
    --color-text-muted: #7a8490;
    --color-accent: #E2B386;
    --color-accent-hover: #eebb99;
    --color-accent-rgb: 226, 179, 134;
    --color-border: #33363b;
    --color-card-bg: #25282D;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.5);
    --shadow-hover: 0 8px 28px rgba(0, 0, 0, 0.45);
    --text-on-accent: #1a0c04;
}

/* ==========================================================================
   Reset & Base
   ========================================================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-body);
    font-size: 19px;
    /* Optimal reading size */
    line-height: 1.85;
    /* Generous line height for readability */
    transition: background-color 0.3s ease, color 0.3s ease;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    word-spacing: 0.05em;
    letter-spacing: 0.01em;
    /* Prevent text selection */
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Allow selection in inputs, textareas, and article body */
input,
textarea,
[contenteditable="true"],
.entry-content {
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.3;
    color: var(--color-text);
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
    margin-top: 2rem;
}

h3 {
    font-size: 1.5rem;
    margin-top: 1.5rem;
}

a {
    color: var(--color-accent);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--color-accent-hover);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

/* ==========================================================================
   Layout
   ========================================================================== */
body {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
}

/* Tablet and up */
@media (min-width: 768px) {
    body {
        padding-left: 0;
        padding-right: 0;
    }

    .container {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

/* Desktop */
@media (min-width: 1024px) {
    .container {
        padding-left: 4rem !important;
        padding-right: 4rem !important;
    }
}

/* ==========================================================================
   Header - Premium Makeover
   ========================================================================== */
.site-header {
    height: var(--header-height);
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-color: var(--color-bg);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: all 0.3s ease;
}

/* Glassmorphism effect on scroll */
.site-header.scrolled {
    background: rgba(249, 247, 242, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
}

[data-theme="dark"] .site-header.scrolled {
    background: rgba(26, 28, 32, 0.88);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* Gradient Accent Line - Reading Progress Bar */
.header-accent {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    width: 0%;
    /* Starts at 0 width */
    background: linear-gradient(90deg,
            var(--color-accent) 0%,
            var(--color-accent-hover) 50%,
            var(--color-accent) 100%);
    background-size: 200% 100%;
    animation: shimmer 3s ease-in-out infinite;
    z-index: 101;
    /* Ensure it stays on top */
    transition: width 0.1s linear;
    /* Smooth width transition */
}

/* Removed opacity dependency on scroll state */

@keyframes shimmer {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

.site-header .container {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ==========================================================================
   Branding - Logo & Title
   ========================================================================== */
.site-branding {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Logo with Glow Effect */
.custom-logo-link {
    position: relative;
    display: block;
}

.custom-logo-link::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-accent), var(--color-accent-hover));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
    filter: blur(8px);
}

.custom-logo-link:hover::before {
    opacity: 0.5;
}

.custom-logo-link img,
.custom-logo {
    height: 40px !important;
    width: 40px !important;
    max-height: 40px !important;
    max-width: 40px !important;
    border-radius: 50%;
    object-fit: cover;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 2px solid transparent;
}

.custom-logo-link:hover img,
.custom-logo:hover {
    transform: scale(1.08) rotate(3deg);
    border-color: var(--color-accent);
    box-shadow: 0 4px 20px rgba(212, 163, 115, 0.3);
}

[data-theme="dark"] .custom-logo-link:hover img {
    box-shadow: 0 4px 20px rgba(226, 179, 134, 0.3);
}

/* Site Title */
.site-branding-text {
    display: flex;
    flex-direction: column;
}

.site-title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 800;
    margin: 0;
    line-height: 1.2;
}

.site-title a {
    color: var(--color-text);
    position: relative;
    transition: color 0.3s ease;
}

.site-title a:hover {
    color: var(--color-accent);
}

/* Site Description */
.site-description {
    font-size: 0.65rem;
    margin: 0;
    font-family: var(--font-heading);
    font-weight: 500;
    letter-spacing: 0.04em;
    background: linear-gradient(135deg, var(--color-accent), #C48B5C, #b07a4a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.site-branding:hover .site-description {
    opacity: 1;
}

[data-theme="dark"] .site-description {
    background: linear-gradient(135deg, #E2B386, #eebb99, #f0c8a0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ==========================================================================
   Navigation - Enhanced
   ========================================================================== */
.main-navigation ul {
    list-style: none;
    display: flex;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.main-navigation li {
    position: relative;
}

.main-navigation a {
    color: var(--color-text);
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    padding: 0.5rem 0;
    transition: color 0.3s ease;
}

/* Animated underline */
.main-navigation a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--color-accent), var(--color-accent-hover));
    border-radius: 1px;
    transition: width 0.3s ease;
}

.main-navigation a:hover {
    color: var(--color-accent);
}

.main-navigation a:hover::after {
    width: 100%;
}

/* Active state */
.main-navigation .current-menu-item a,
.main-navigation .current_page_item a {
    color: var(--color-accent);
}

.main-navigation .current-menu-item a::after,
.main-navigation .current_page_item a::after {
    width: 100%;
}

/* ==========================================================================
   Header Controls
   ========================================================================== */
.header-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Common button style */
.header-controls button {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--color-text);
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    position: relative;
}

.header-controls button:hover {
    background-color: rgba(212, 163, 115, 0.1);
    color: var(--color-accent);
}

[data-theme="dark"] .header-controls button:hover {
    background-color: rgba(226, 179, 134, 0.15);
}

/* ==========================================================================
   Theme Toggle - Animated Sun/Moon
   ========================================================================== */
.theme-toggle-icon {
    position: relative;
    width: 20px;
    height: 20px;
}

.sun-icon,
.moon-icon {
    position: absolute;
    top: 0;
    left: 0;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Light mode: show sun, hide moon */
.sun-icon {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

.moon-icon {
    opacity: 0;
    transform: rotate(-90deg) scale(0.5);
}

/* Dark mode: show moon, hide sun */
[data-theme="dark"] .sun-icon {
    opacity: 0;
    transform: rotate(90deg) scale(0.5);
}

[data-theme="dark"] .moon-icon {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

.theme-toggle:hover .sun-icon {
    transform: rotate(15deg) scale(1.1);
}

[data-theme="dark"] .theme-toggle:hover .moon-icon {
    transform: rotate(-10deg) scale(1.1);
}

/* ==========================================================================
   Hamburger Menu - Animated
   ========================================================================== */
.header-controls .menu-toggle {
    display: none !important;
    flex-direction: column;
}

.hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 22px;
}

.hamburger-line {
    display: block;
    height: 2px;
    background-color: var(--color-text);
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.hamburger-line:nth-child(1) {
    width: 100%;
}

.hamburger-line:nth-child(2) {
    width: 75%;
}

.hamburger-line:nth-child(3) {
    width: 50%;
}

/* Hover state - all lines same width */
.menu-toggle:hover .hamburger-line {
    width: 100%;
    background-color: var(--color-accent);
}

/* Active state - X animation */
.menu-toggle.active .hamburger-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.menu-toggle.active .hamburger-line:nth-child(3) {
    width: 100%;
    transform: translateY(-7px) rotate(-45deg);
}

/* ==========================================================================
   Responsive Header
   ========================================================================== */

/* Large Mobile (480px+) */
@media (min-width: 480px) {

    .custom-logo-link img,
    .custom-logo {
        height: 48px !important;
        width: 48px !important;
        max-height: 48px !important;
        max-width: 48px !important;
    }

    .site-branding {
        gap: 0.625rem;
    }

    .site-title {
        font-size: 1.3rem;
    }

    .site-description {
        font-size: 0.7rem;
    }

}

/* Tablet (768px+) - Show nav, hide hamburger */
@media (min-width: 768px) {
    .menu-toggle {
        display: none !important;
    }

    .main-navigation {
        display: block !important;
        position: static !important;
        opacity: 1 !important;
        transform: none !important;
        background: transparent !important;
        padding: 0 !important;
    }

    .main-navigation ul {
        display: flex !important;
        flex-direction: row !important;
        gap: 2rem;
    }

    .custom-logo-link img,
    .custom-logo {
        height: 55px !important;
        width: 55px !important;
        max-height: 55px !important;
        max-width: 55px !important;
    }

    .site-branding {
        gap: 0.75rem;
    }

    .site-title {
        font-size: 1.5rem;
    }

    .site-description {
        font-size: 0.8rem;
    }

    .header-controls {
        gap: 0.75rem;
    }
}

/* Desktop (1024px+) */
@media (min-width: 1024px) {

    .custom-logo-link img,
    .custom-logo {
        height: 60px !important;
        width: 60px !important;
        max-height: 60px !important;
        max-width: 60px !important;
    }

    .site-branding {
        gap: 0.875rem;
    }

    .site-title {
        font-size: 1.7rem;
    }

    .site-description {
        font-size: 0.9rem;
    }
}

/* ==========================================================================
   Mobile Menu
   ========================================================================== */
@media (max-width: 768px) {
    :root {
        --header-height: 60px;
    }

    .header-controls .menu-toggle {
        display: flex !important;
    }

    .main-navigation {
        display: none;
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        background: var(--color-bg);
        padding: 0;
        z-index: 99;
        opacity: 0;
        transform: translateX(100%);
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    }

    .main-navigation.toggled {
        display: block;
        opacity: 1;
        transform: translateX(0);
    }

    /* Glassmorphism for mobile menu */
    [data-theme="dark"] .main-navigation.toggled {
        background: rgba(26, 28, 32, 0.98);
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    }

    .main-navigation ul {
        display: flex;
        flex-direction: column;
        gap: 0;
        margin: 0;
        padding: 0;
        list-style: none;
    }

    .main-navigation li {
        border-bottom: 1px solid var(--color-border);
    }

    .main-navigation li:last-child {
        border-bottom: none;
    }

    .main-navigation a {
        display: block;
        padding: 1.25rem 1.5rem;
        font-size: 1.2rem;
        font-weight: 600;
    }

    .main-navigation a::after {
        bottom: 15px;
        height: 3px;
    }

    /* Stagger animation for menu items */
    .main-navigation.toggled li {
        animation: slideInRight 0.4s ease forwards;
        opacity: 0;
    }

    .main-navigation.toggled li:nth-child(1) {
        animation-delay: 0.1s;
    }

    .main-navigation.toggled li:nth-child(2) {
        animation-delay: 0.15s;
    }

    .main-navigation.toggled li:nth-child(3) {
        animation-delay: 0.2s;
    }

    .main-navigation.toggled li:nth-child(4) {
        animation-delay: 0.25s;
    }

    .main-navigation.toggled li:nth-child(5) {
        animation-delay: 0.3s;
    }

    .main-navigation.toggled li:nth-child(6) {
        animation-delay: 0.35s;
    }

    @keyframes slideInRight {
        from {
            opacity: 0;
            transform: translateX(30px);
        }

        to {
            opacity: 1;
            transform: translateX(0);
        }
    }
}

/* ==========================================================================
   Posts / Content
   ========================================================================== */

/* 2-Column Layout Wrapper */
.site-content-wrapper {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    padding-top: 2rem;
    padding-bottom: 3rem;
}

/* Main content area */
.content-area {
    flex: 1;
    min-width: 0;
    /* Prevent flex child overflow */
}

/* ── Responsive content layout — progressive widening ──────────────────── */

/* 1024px – 1279px: two-column layout
   content-area ≈ 980 - 48(pad) - 260(sidebar) - 40(gap) = 632px */
@media (min-width: 1024px) {
    .site-content-wrapper {
        flex-direction: row;
        max-width: 980px;
        gap: 2.5rem;
        padding-left: 1.5rem !important;
        padding-right: 1.5rem !important;
    }

    .content-area {
        flex: 1;
        min-width: 0;
    }

    .sidebar {
        width: 260px;
        flex-shrink: 0;
    }
}

/* 1280px – 1439px
   content-area ≈ 1100 - 64(pad) - 280(sidebar) - 48(gap) = 708px */
@media (min-width: 1280px) {
    .site-content-wrapper {
        max-width: 1100px;
        gap: 3rem;
        padding-left: 2rem !important;
        padding-right: 2rem !important;
    }

    .sidebar {
        width: 280px;
    }
}

/* 1440px – 1679px
   content-area ≈ 1200 - 80(pad) - 300(sidebar) - 56(gap) = 764px */
@media (min-width: 1440px) {
    .site-content-wrapper {
        max-width: 1200px;
        gap: 3.5rem;
        padding-left: 2.5rem !important;
        padding-right: 2.5rem !important;
    }

    .sidebar {
        width: 300px;
    }
}

/* 1680px+: very wide screens
   content-area ≈ 1360 - 96(pad) - 320(sidebar) - 64(gap) = 880px */
@media (min-width: 1680px) {
    .site-content-wrapper {
        max-width: 1360px;
        padding-left: 3rem !important;
        padding-right: 3rem !important;
    }

    .sidebar {
        width: 320px;
    }
}

.site-content {
    padding: 3rem 0;
    min-height: 80vh;
}

.post-card {
    margin-bottom: 2rem;
    padding: 1.25rem;
    background-color: var(--color-card-bg);
    border-radius: 10px;
    box-shadow: var(--shadow-md);
    animation: fadeIn 0.5s ease forwards;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
    border: 1px solid transparent;
}

[data-theme="dark"] .post-card {
    border-color: var(--color-border);
}

.post-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

[data-theme="dark"] .post-card:hover {
    border-color: rgba(226, 179, 134, 0.2);
}

/* Tablet and up: larger card padding */
@media (min-width: 768px) {
    .post-card {
        margin-bottom: 3rem;
        padding: 2rem;
        border-radius: 12px;
    }
}

.post-header {
    margin-bottom: 1.5rem;
    text-align: center;
}

.entry-meta {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    color: var(--color-text-light);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.entry-title {
    font-size: 2.2rem;
    margin-bottom: 1rem;
}

.entry-title a {
    color: var(--color-text);
}

.entry-title a:hover {
    color: var(--color-accent);
}

/* ── Featured image — respects natural aspect ratio ──────────────────────
   Post listing cards : full-width, top-anchored, max-height prevents
                        extremely tall portraits from breaking the list layout.
                        Slight overflow-crop only when image taller than cap.
   Single post        : zero cropping — image scales proportionally to fit
                        within a generous max-height, centered if narrower
                        than the column (portrait photos).
   ────────────────────────────────────────────────────────────────────────── */

/* Shared base */
.post-thumbnail {
    margin-bottom: 2rem;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: var(--shadow-md);
}

/* ── Post listing cards — only on archive/home, not single posts or pages ── */
body:not(.single):not(.page) .post-thumbnail {
    max-height: 360px;
}

body:not(.single):not(.page) .post-thumbnail img {
    width: 100%;
    height: 100%;
    max-height: 360px;
    object-fit: cover;
    object-position: center 25%;
    display: block;
    transition: transform 0.3s ease;
}

body:not(.single):not(.page) .post-thumbnail:hover img {
    transform: scale(1.02);
}

/* ── Single post & page hero image — natural ratio ── */
body.single .post-thumbnail,
body.page .post-thumbnail {
    border-radius: 10px;
    box-shadow: none;
    background: transparent;
}

body.single .post-thumbnail img,
body.page .post-thumbnail img {
    display: block;
    width: 100%;
    height: auto;
    max-height: none;
    object-fit: unset;
    object-position: unset;
    transition: none;
}


.entry-content {
    font-size: 1.1rem;
    line-height: 1.9;
    letter-spacing: 0.01em;
}

.entry-content p {
    margin-bottom: 1.75rem;
}

.entry-content p:last-child {
    margin-bottom: 0;
}

.read-more {
    display: inline-block;
    margin-top: 1.5rem;
    font-family: var(--font-heading);
    font-weight: 600;
    border-bottom: 2px solid var(--color-accent);
}

/* Pagination */
.pagination {
    margin-top: 4rem;
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.page-numbers {
    padding: 0.5rem 1rem;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    color: var(--color-text);
    font-family: var(--font-heading);
}

.page-numbers.current {
    background-color: var(--color-accent);
    border-color: var(--color-accent);
    color: var(--text-on-accent);
}

[data-theme="dark"] .page-numbers.current {
    color: var(--text-on-accent);
}

/* ==========================================================================
   404 & Search Results
   ========================================================================== */
.error-404 .entry-content,
.no-results .entry-content {
    text-align: center;
    padding: 2rem 0;
}

.error-404 .entry-title,
.page-header .page-title {
    margin-bottom: 1rem;
}

.page-header .page-title span {
    color: var(--color-accent);
}

.error-404-search {
    max-width: 400px;
    margin: 2rem auto;
}

.error-404-links {
    margin-top: 2rem;
    text-align: left;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.error-404-links ul {
    list-style: none;
    padding: 0;
}

.error-404-links li {
    padding: 0.4rem 0;
}

.error-404-links a {
    color: var(--color-accent);
    text-decoration: none;
}

.error-404-links a:hover {
    text-decoration: underline;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
    padding: 3rem 0;
    background-color: var(--color-card-bg);
    border-top: 1px solid var(--color-border);
    text-align: center;
    font-family: var(--font-heading);
}

.site-footer p {
    color: var(--color-text-light);
    font-size: 0.9rem;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }

    .entry-title {
        font-size: 1.8rem;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================================================
   Reader-Friendly Enhancements
   ========================================================================== */

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Better text selection — dark text on warm gold keeps contrast ≥ 4.5:1 */
::selection {
    background-color: var(--color-accent);
    color: var(--text-on-accent);
}

/* Blockquotes */
blockquote {
    position: relative;
    margin: 2rem 0;
    padding: 1.5rem 2rem 1.5rem 3.5rem;
    border-left: 4px solid var(--color-accent);
    background-color: var(--color-card-bg);
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: var(--color-text-light);
}

blockquote::before {
    content: '\201C';
    position: absolute;
    left: 0.75rem;
    top: -0.25rem;
    font-size: 4rem;
    font-family: Georgia, serif;
    color: var(--color-accent);
    opacity: 0.45;
    line-height: 1;
    pointer-events: none;
}

blockquote p {
    margin-bottom: 0;
}

/* Lists in content */
.entry-content ul,
.entry-content ol {
    margin: 1.5rem 0;
    padding-left: 1.5rem;
}

.entry-content li {
    margin-bottom: 0.75rem;
    line-height: 1.8;
}

/* Images in content */
.entry-content img {
    margin: 2rem 0;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
}

/* Image captions */
.entry-content figcaption,
.entry-content .wp-caption-text {
    text-align: center;
    font-size: 0.85rem;
    color: var(--color-text-muted);
    font-family: var(--font-heading);
    font-style: italic;
    margin-top: 0.5rem;
    line-height: 1.5;
}

/* Drop cap — first letter of opening paragraph on single posts */
/* .drop-cap span is injected by JS for cross-browser/server reliability */
body.single .entry-content .drop-cap {
    font-family: var(--font-heading);
    font-size: 4rem;
    font-weight: 800;
    float: left;
    line-height: 0.85;
    margin: 0.1em 0.15em 0 0;
    color: var(--color-accent);
}

/* Tables in content */
.entry-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    font-size: 0.95rem;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.entry-content th {
    background-color: var(--color-accent);
    color: var(--text-on-accent);
    font-family: var(--font-heading);
    font-weight: 700;
    text-align: left;
    padding: 0.75rem 1rem;
}

.entry-content td {
    padding: 0.65rem 1rem;
    border-bottom: 1px solid var(--color-border);
    vertical-align: top;
}

.entry-content tr:last-child td {
    border-bottom: none;
}

.entry-content tbody tr:nth-child(even) {
    background-color: var(--color-card-bg);
}

/* ==========================================================================
   Saved Highlights
   ========================================================================== */

/* The highlighted span */
.saved-highlight {
    background-color: rgba(var(--color-accent-rgb), 0.28);
    color: inherit;
    border-radius: 2px;
    padding: 0 2px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.saved-highlight:hover {
    background-color: rgba(var(--color-accent-rgb), 0.5);
}

/* Floating "Save highlight" tooltip */
.highlight-tooltip {
    position: fixed;
    background: var(--color-text);
    color: var(--color-bg);
    font-family: var(--font-heading);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    padding: 0.35rem 0.8rem;
    border-radius: 6px;
    white-space: nowrap;
    transform: translateX(-50%);
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s ease;
    box-shadow: var(--shadow-md);
    cursor: pointer;
}

.highlight-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: var(--color-text);
}

.highlight-tooltip.visible {
    opacity: 1;
    pointer-events: auto;
}

/* Focus states — visible for keyboard navigation, hidden for mouse/touch */
a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 3px;
    border-radius: 3px;
}

a:focus:not(:focus-visible),
button:focus:not(:focus-visible) {
    outline: none;
}

/* Skip to content link (accessibility) */
.skip-link {
    position: absolute;
    top: -100%;
    left: 0;
    background: var(--color-accent);
    color: var(--text-on-accent);
    padding: 0.5rem 1rem;
    z-index: 1000;
}

.skip-link:focus {
    top: 0;
}

/* Horizontal rule */
hr {
    border: none;
    height: 1px;
    background: var(--color-border);
    margin: 3rem 0;
}

/* Code blocks */
code {
    background-color: var(--color-card-bg);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.9em;
    border: 1px solid var(--color-border);
}

pre {
    background-color: var(--color-card-bg);
    padding: 1.5rem;
    border-radius: 8px;
    overflow-x: auto;
    margin: 2rem 0;
    border: 1px solid var(--color-border);
}

pre code {
    background: none;
    border: none;
    padding: 0;
}

/* ==========================================================================
   Sidebar & Widgets
   ========================================================================== */
.sidebar {
    margin-top: 2rem;
}

@media (min-width: 1024px) {
    .sidebar {
        margin-top: 0;
    }
}

.widget {
    background-color: var(--color-card-bg);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-md);
}

.widget-title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--color-accent);
    color: var(--color-text);
}

.widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.widget li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--color-border);
}

.widget li:last-child {
    border-bottom: none;
}

.widget a {
    color: var(--color-text);
    font-family: var(--font-heading);
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.widget a:hover {
    color: var(--color-accent);
}

/* Search Widget - Premium Design */
.widget_search .search-form,
.widget_search form,
.widget_block .wp-block-search,
.sidebar .search-form,
.sidebar form[role="search"] {
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
}

/* Search Input Field */
.widget_search .search-field,
.widget_search input[type="search"],
.widget_search input[type="text"],
.widget_block .wp-block-search__input,
.sidebar input[type="search"],
.sidebar input[name="s"] {
    width: 100% !important;
    padding: 0.875rem 1rem !important;
    border: 2px solid var(--color-border) !important;
    border-radius: 10px !important;
    font-family: var(--font-body) !important;
    font-size: 0.95rem !important;
    background-color: var(--color-card-bg) !important;
    color: var(--color-text) !important;
    transition: all 0.3s ease !important;
    box-sizing: border-box !important;
}

/* Light Theme Input Styling */
:root .widget_search input,
:root .sidebar input[type="search"],
:root .sidebar input[name="s"] {
    background-color: #fff !important;
    border-color: #e0e0e0 !important;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.06) !important;
}

/* Dark Theme Input Styling */
[data-theme="dark"] .widget_search input,
[data-theme="dark"] .sidebar input[type="search"],
[data-theme="dark"] .sidebar input[name="s"] {
    background-color: var(--color-bg) !important;
    border-color: var(--color-border) !important;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.15) !important;
}

.widget_search input::placeholder,
.sidebar input[type="search"]::placeholder,
.sidebar input[name="s"]::placeholder {
    color: var(--color-text-light) !important;
    opacity: 0.6 !important;
}

/* Focus States */
.widget_search input:focus,
.sidebar input[type="search"]:focus,
.sidebar input[name="s"]:focus {
    outline: none !important;
    border-color: var(--color-accent) !important;
}

:root .widget_search input:focus,
:root .sidebar input[type="search"]:focus {
    box-shadow: 0 0 0 3px rgba(212, 163, 115, 0.2) !important;
}

[data-theme="dark"] .widget_search input:focus,
[data-theme="dark"] .sidebar input[type="search"]:focus {
    box-shadow: 0 0 0 3px rgba(226, 179, 134, 0.25) !important;
}

/* Search Button */
.widget_search .search-submit,
.widget_search input[type="submit"],
.widget_search button,
.widget_block .wp-block-search__button,
.sidebar input[type="submit"],
.sidebar button[type="submit"],
.sidebar form[role="search"] button {
    width: 100% !important;
    padding: 0.875rem 1.25rem !important;
    border: none !important;
    border-radius: 10px !important;
    font-family: var(--font-heading) !important;
    font-size: 0.95rem !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    text-transform: none !important;
    letter-spacing: normal !important;
}

/* Light Theme Button */
:root .widget_search .search-submit,
:root .widget_search input[type="submit"],
:root .widget_search button,
:root .sidebar input[type="submit"],
:root .sidebar button[type="submit"] {
    background: linear-gradient(135deg, #c9956b 0%, #b3845f 100%) !important;
    color: #fff !important;
    box-shadow: 0 3px 10px rgba(180, 130, 90, 0.35) !important;
}

/* Dark Theme Button */
[data-theme="dark"] .widget_search .search-submit,
[data-theme="dark"] .widget_search input[type="submit"],
[data-theme="dark"] .widget_search button,
[data-theme="dark"] .sidebar input[type="submit"],
[data-theme="dark"] .sidebar button[type="submit"] {
    background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-hover) 100%) !important;
    color: #fff !important;
    box-shadow: 0 3px 10px rgba(212, 163, 115, 0.3) !important;
}

/* Button Hover */
.widget_search .search-submit:hover,
.widget_search input[type="submit"]:hover,
.widget_search button:hover,
.sidebar input[type="submit"]:hover,
.sidebar button[type="submit"]:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 5px 15px rgba(180, 130, 90, 0.4) !important;
}

[data-theme="dark"] .widget_search .search-submit:hover,
[data-theme="dark"] .sidebar input[type="submit"]:hover,
[data-theme="dark"] .sidebar button[type="submit"]:hover {
    box-shadow: 0 5px 15px rgba(212, 163, 115, 0.4) !important;
}

/* Button Active */
.widget_search .search-submit:active,
.widget_search input[type="submit"]:active,
.sidebar input[type="submit"]:active {
    transform: translateY(0) !important;
}

/* Recent Posts Widget */
.widget_recent_entries li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.widget_recent_entries li::before {
    content: "›";
    color: var(--color-accent);
    font-weight: bold;
    font-size: 1.2rem;
    line-height: 1.4;
}

/* Categories Widget */
.widget_categories li {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.widget_categories .count {
    background-color: var(--color-bg);
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    color: var(--color-text-light);
}

/* Archives Widget */
.widget_archive li {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ==========================================================================
   Comments Section - Enhanced Social UX
   ========================================================================== */
.comments-section {
    margin-top: 3rem;
    padding: 2rem;
    background-color: var(--color-card-bg);
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--color-border);
}

/* Comments Header */
.comments-header {
    margin-bottom: 1.5rem;
}

.comments-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--color-accent);
    margin-bottom: 0;
}

.comments-icon {
    font-size: 1.3rem;
}

/* No Comments State */
.no-comments-yet {
    text-align: center;
    padding: 3rem 2rem;
    background: linear-gradient(135deg, rgba(212, 163, 115, 0.08) 0%, rgba(212, 163, 115, 0.02) 100%);
    border-radius: 12px;
    margin-bottom: 2rem;
}

[data-theme="dark"] .no-comments-yet {
    background: linear-gradient(135deg, rgba(226, 179, 134, 0.08) 0%, rgba(226, 179, 134, 0.02) 100%);
}

.no-comments-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.8;
}

.no-comments-yet p {
    color: var(--color-text-light);
    font-size: 1rem;
    margin: 0;
}

/* Comment List */
.comment-list {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem 0;
}

/* Individual Comment Item */
.comment-item {
    margin-bottom: 0;
    padding: 1.25rem;
    background: var(--color-bg);
    border-radius: 12px;
    margin-top: 1rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid transparent;
}

.comment-item:first-child {
    margin-top: 0;
}

.comment-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    border-color: rgba(212, 163, 115, 0.2);
}

[data-theme="dark"] .comment-item:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    border-color: rgba(226, 179, 134, 0.15);
}

/* Nested Comments (Replies) */
.comment-item .children {
    list-style: none;
    padding: 0;
    margin: 1rem 0 0 0;
    padding-left: 1.5rem;
    border-left: 3px solid var(--color-accent);
    position: relative;
}

.comment-item .children::before {
    content: '';
    position: absolute;
    left: -3px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--color-accent) 0%, var(--color-accent-hover) 100%);
    border-radius: 2px;
}

.comment-item .children .comment-item {
    background: var(--color-card-bg);
    margin-left: 0;
}

/* Comment Body */
.comment-body {
    position: relative;
}

/* Comment Header - Avatar & Meta */
.comment-header {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    margin-bottom: 0.875rem;
}

.comment-avatar img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid var(--color-accent);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.comment-avatar img:hover {
    transform: scale(1.08);
    box-shadow: 0 0 0 4px rgba(212, 163, 115, 0.2);
}

[data-theme="dark"] .comment-avatar img:hover {
    box-shadow: 0 0 0 4px rgba(226, 179, 134, 0.2);
}

.comment-meta {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.comment-author-name {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    color: var(--color-text);
}

.comment-author-name a {
    color: var(--color-accent);
    text-decoration: none;
    transition: color 0.2s ease;
}

.comment-author-name a:hover {
    color: var(--color-accent-hover);
}

.comment-time {
    font-size: 0.8rem;
    color: var(--color-text-light);
}

/* Comment Text Content */
.comment-text {
    line-height: 1.75;
    margin-bottom: 1rem;
    padding-left: 0;
}

.comment-text p {
    margin-bottom: 0.75rem;
}

.comment-text p:last-child {
    margin-bottom: 0;
}

.comment-awaiting-moderation {
    background: rgba(212, 163, 115, 0.15);
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    font-size: 0.85rem;
    color: var(--color-accent);
    font-style: italic;
    margin-top: 0.75rem;
}

/* Comment Actions Footer */
.comment-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--color-border);
}

/* ==========================================================================
   Heart Button - Animated SVG
   ========================================================================== */
.heart-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.75rem;
    background: transparent;
    border: 1px solid var(--color-border);
    border-radius: 20px;
    cursor: pointer;
    color: var(--color-text-light);
    font-size: 0.85rem;
    font-family: var(--font-heading);
    font-weight: 500;
    transition: all 0.25s ease;
}

.heart-btn:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
    background: rgba(212, 163, 115, 0.08);
}

[data-theme="dark"] .heart-btn:hover {
    background: rgba(226, 179, 134, 0.1);
}

.heart-btn.hearted {
    color: #e74c3c;
    border-color: #e74c3c;
    background: rgba(231, 76, 60, 0.08);
}

.heart-btn.hearted:hover {
    background: rgba(231, 76, 60, 0.12);
}

.heart-icon {
    transition: transform 0.25s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.heart-btn:hover .heart-icon {
    transform: scale(1.15);
}

.heart-btn.heart-animating .heart-icon {
    animation: heartPop 0.3s ease;
}

@keyframes heartPop {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.3);
    }

    100% {
        transform: scale(1);
    }
}

.heart-btn.hearted .heart-icon {
    color: #e74c3c;
}

.heart-count {
    min-width: 1ch;
}

/* Post Heart Wrapper */
.post-heart-wrapper {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 1.5rem 0;
    padding: 1rem 0;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.post-heart-wrapper .heart-btn {
    padding: 0.6rem 1rem;
    font-size: 0.95rem;
}

.post-heart-wrapper .heart-btn .heart-icon {
    width: 24px;
    height: 24px;
}

.heart-label {
    font-size: 0.9rem;
    color: var(--color-text-light);
    font-family: var(--font-heading);
}

/* Reply Link */
.reply-link a,
.comment-reply-link {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-accent);
    text-decoration: none;
    padding: 0.4rem 0.75rem;
    border-radius: 20px;
    transition: all 0.2s ease;
}

.reply-link a:hover,
.comment-reply-link:hover {
    background: rgba(212, 163, 115, 0.12);
    color: var(--color-accent-hover);
}

[data-theme="dark"] .reply-link a:hover,
[data-theme="dark"] .comment-reply-link:hover {
    background: rgba(226, 179, 134, 0.15);
}

/* ==========================================================================
   Comment Form - Enhanced
   ========================================================================== */
.comment-respond {
    margin-top: 2rem;
}

.comment-reply-title {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-icon {
    font-size: 1.2rem;
}

.comment-reply-title small {
    margin-left: auto;
    font-size: 0.85rem;
}

.comment-reply-title small a {
    color: var(--color-text-light);
    font-weight: 500;
    transition: color 0.2s ease;
}

.comment-reply-title small a:hover {
    color: var(--color-accent);
}

/* Form Fields Container */
.comment-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

/* Input Fields */
.comment-form-author,
.comment-form-email,
.comment-form-textarea {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.comment-form label {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--color-text);
}

.comment-form .required {
    color: #e74c3c;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid var(--color-border);
    border-radius: 10px;
    font-family: var(--font-body);
    font-size: 1rem;
    background-color: var(--color-bg);
    color: var(--color-text);
    transition: all 0.3s ease;
}

.comment-form input::placeholder,
.comment-form textarea::placeholder {
    color: var(--color-text-light);
    opacity: 0.6;
}

.comment-form input:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(212, 163, 115, 0.15);
}

[data-theme="dark"] .comment-form input:focus,
[data-theme="dark"] .comment-form textarea:focus {
    box-shadow: 0 0 0 3px rgba(226, 179, 134, 0.2);
}

.comment-form textarea {
    resize: vertical;
    min-height: 140px;
}

/* Submit Button */
.form-submit {
    margin-top: 0.5rem;
}

.form-submit .submit {
    padding: 0.875rem 2rem;
    border: none;
    border-radius: 10px;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

:root .form-submit .submit {
    background: linear-gradient(135deg, #c9956b 0%, #b3845f 100%);
    color: #fff;
    box-shadow: 0 3px 12px rgba(180, 130, 90, 0.35);
}

[data-theme="dark"] .form-submit .submit {
    background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-hover) 100%);
    color: #fff;
    box-shadow: 0 3px 12px rgba(212, 163, 115, 0.3);
}

.form-submit .submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(180, 130, 90, 0.4);
}

[data-theme="dark"] .form-submit .submit:hover {
    box-shadow: 0 6px 20px rgba(212, 163, 115, 0.4);
}

.form-submit .submit:active {
    transform: translateY(0);
}

/* Comments Closed Notice */
.comments-closed-notice {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    text-align: center;
    padding: 2rem;
    background-color: var(--color-bg);
    border-radius: 10px;
    border: 2px dashed var(--color-border);
    margin-top: 1.5rem;
}

.comments-closed-notice .notice-icon {
    font-size: 1.5rem;
}

.comments-closed-notice p {
    color: var(--color-text-light);
    margin: 0;
    font-size: 0.95rem;
}

/* ==========================================================================
   Comments - Mobile Responsive
   ========================================================================== */
@media (max-width: 768px) {
    .comments-section {
        padding: 1.25rem;
        margin-top: 2rem;
        border-radius: 12px;
    }

    .comments-title {
        font-size: 1.25rem;
        gap: 0.5rem;
    }

    .comments-icon {
        font-size: 1.1rem;
    }

    .comment-item {
        padding: 1rem;
        border-radius: 10px;
    }

    .comment-header {
        gap: 0.75rem;
    }

    .comment-avatar img {
        width: 40px;
        height: 40px;
    }

    .comment-author-name {
        font-size: 0.95rem;
    }

    .comment-time {
        font-size: 0.75rem;
    }

    .comment-text {
        font-size: 0.95rem;
        line-height: 1.7;
    }

    .comment-actions {
        gap: 0.75rem;
        flex-wrap: wrap;
    }

    .heart-btn {
        padding: 0.35rem 0.6rem;
        font-size: 0.8rem;
    }

    .comment-item .children {
        padding-left: 1rem;
        margin-top: 0.75rem;
    }

    .post-heart-wrapper {
        margin: 1rem 0;
        padding: 0.875rem 0;
    }

    .post-heart-wrapper .heart-btn {
        padding: 0.5rem 0.875rem;
        font-size: 0.9rem;
    }

    .comment-reply-title {
        font-size: 1.15rem;
    }

    .form-submit .submit {
        padding: 0.75rem 1.5rem;
    }

    .no-comments-yet {
        padding: 2rem 1.5rem;
    }

    .no-comments-icon {
        font-size: 2.5rem;
    }
}

@media (max-width: 480px) {
    .comments-section {
        padding: 1rem;
    }

    .comment-item {
        padding: 0.875rem;
    }

    .comment-avatar img {
        width: 36px;
        height: 36px;
    }

    .comment-header {
        gap: 0.625rem;
    }

    .comment-item .children {
        padding-left: 0.75rem;
        border-left-width: 2px;
    }

    .comment-actions {
        padding-top: 0.625rem;
    }

    .heart-btn {
        padding: 0.3rem 0.5rem;
        gap: 0.3rem;
    }

    .heart-btn .heart-icon {
        width: 16px;
        height: 16px;
    }

    .reply-link a,
    .comment-reply-link {
        padding: 0.35rem 0.6rem;
        font-size: 0.8rem;
    }

    .comments-closed-notice {
        flex-direction: column;
        padding: 1.5rem;
        gap: 0.5rem;
    }
}

/* ==========================================================================
   Email Subscription Widget
   ========================================================================== */
.email-subscribe-widget {
    padding: 1.5rem;
    background: var(--color-card-bg);
    border-radius: 12px;
    border: 1px solid var(--color-border);
}

.subscribe-description {
    color: var(--color-text-light);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.subscribe-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.subscribe-input {
    padding: 0.875rem 1rem;
    border: 2px solid var(--color-border);
    border-radius: 10px;
    background: var(--color-bg);
    color: var(--color-text);
    font-size: 0.95rem;
    font-family: var(--font-body);
    transition: all 0.3s ease;
    width: 100%;
    box-sizing: border-box;
}

.subscribe-input::placeholder {
    color: var(--color-text-light);
    opacity: 0.6;
}

.subscribe-input:focus {
    outline: none;
    border-color: var(--color-accent);
}

:root .subscribe-input:focus {
    box-shadow: 0 0 0 3px rgba(212, 163, 115, 0.2);
}

[data-theme="dark"] .subscribe-input:focus {
    box-shadow: 0 0 0 3px rgba(226, 179, 134, 0.25);
}

.subscribe-button {
    padding: 0.875rem 1.5rem;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    font-family: var(--font-heading);
    width: 100%;
}

:root .subscribe-button {
    background: linear-gradient(135deg, #c9956b 0%, #b3845f 100%);
    color: var(--text-on-accent);
    box-shadow: 0 3px 10px rgba(180, 130, 90, 0.35);
}

[data-theme="dark"] .subscribe-button {
    background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-hover) 100%);
    color: var(--text-on-accent);
    box-shadow: 0 3px 10px rgba(212, 163, 115, 0.3);
}

.subscribe-button:hover {
    transform: translateY(-2px);
}

:root .subscribe-button:hover {
    box-shadow: 0 5px 15px rgba(180, 130, 90, 0.4);
}

[data-theme="dark"] .subscribe-button:hover {
    box-shadow: 0 5px 15px rgba(212, 163, 115, 0.4);
}

.subscribe-button:active {
    transform: translateY(0);
}

.subscribe-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.subscribe-message {
    padding: 0.75rem;
    border-radius: 8px;
    font-size: 0.9rem;
    text-align: center;
    background: rgba(139, 92, 246, 0.1);
    font-family: var(--font-body);
}

/* ==========================================================================
   Hindi Typography - Enhanced Reader-Friendly Styles
   ========================================================================== */

/* Hindi font for all text content when in Hindi mode */
[data-language="hi"] body {
    word-spacing: 0.1em;
}

[data-language="hi"] .entry-title {
    line-height: 1.4;
    font-weight: 700;
}

[data-language="hi"] .entry-content p {
    font-size: 1.1rem;
    line-height: 2.1;
    letter-spacing: 0.02em;
}

/* Hindi excerpt on listing pages */
[data-language="hi"] .entry-content>p:first-child {
    font-size: 1rem;
}

/* Hindi widget titles */
[data-language="hi"] .widget-title,
[data-language="hi"] .site-title {
    font-family: 'Noto Serif Devanagari', var(--font-heading);
}

/* Mobile Hindi typography */
@media (max-width: 768px) {
    [data-language="hi"] .entry-title {
        font-size: 1.6rem;
        line-height: 1.5;
    }

    [data-language="hi"] .entry-content p {
        font-size: 1rem;
        line-height: 1.9;
    }
}

/* Hindi blockquotes */
[data-language="hi"] blockquote {
    font-family: 'Noto Serif Devanagari', var(--font-body);
    font-style: normal;
    line-height: 2;
}

/* ==========================================================================
   Per-Post Language Badge (Single Post View) - Animated Toggle
   ========================================================================== */
.language-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.75rem;
    padding: 0.4rem 0.5rem;
    background: var(--color-card-bg);
    border: 1px solid var(--color-border);
    border-radius: 25px;
    font-size: 0.85rem;
    font-family: var(--font-heading);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.3s ease, transform 0.2s ease;
}

.language-badge:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    transform: translateY(-1px);
}

.language-badge .badge-label {
    font-size: 1rem;
    transition: transform 0.3s ease;
}

.language-badge:hover .badge-label {
    transform: rotate(20deg);
}

/* Toggle container for smooth sliding effect */
.language-badge .lang-options {
    display: flex;
    align-items: center;
    background: var(--color-bg);
    border-radius: 20px;
    padding: 0.15rem;
    position: relative;
}

.language-badge .lang-option {
    color: var(--color-text-light);
    text-decoration: none;
    padding: 0.35rem 0.6rem;
    border-radius: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 500;
    position: relative;
    z-index: 1;
}

.language-badge .lang-option:hover {
    color: var(--color-accent);
    transform: scale(1.05);
}

/* Active state with pill background */
.language-badge .lang-option.active {
    color: #fff;
    font-weight: 700;
    background: var(--color-accent);
    box-shadow: 0 2px 6px rgba(212, 163, 115, 0.4);
}

[data-theme="dark"] .language-badge .lang-option.active {
    box-shadow: 0 2px 6px rgba(226, 179, 134, 0.3);
}

/* Click ripple effect */
.language-badge .lang-option:active {
    transform: scale(0.95);
}

.language-badge .lang-separator {
    color: var(--color-border);
    opacity: 0.5;
    margin: 0 0.1rem;
}

/* ==========================================================================
   Language Fallback Notice
   ========================================================================== */
.language-fallback-notice {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    margin: 1.5rem 0;
    border-left: 4px solid var(--color-accent);
    border-radius: 0 8px 8px 0;
    font-size: 0.95rem;
}

:root .language-fallback-notice {
    background: linear-gradient(135deg, rgba(212, 163, 115, 0.1) 0%, rgba(212, 163, 115, 0.05) 100%);
}

[data-theme="dark"] .language-fallback-notice {
    background: linear-gradient(135deg, rgba(226, 179, 134, 0.1) 0%, rgba(226, 179, 134, 0.05) 100%);
}

.language-fallback-notice .notice-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
}

.language-fallback-notice .notice-text {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.language-fallback-notice .notice-hindi {
    font-family: 'Noto Serif Devanagari', var(--font-body);
    color: var(--color-text);
    font-weight: 500;
}

.language-fallback-notice .notice-english {
    color: var(--color-text-light);
    font-size: 0.85rem;
    font-style: italic;
}

/* ==========================================================================
   Language Indicator (Post Listings)
   ========================================================================== */
.lang-indicator {
    display: inline-flex;
    align-items: center;
    margin-left: 0.5rem;
    padding: 0.15rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-family: var(--font-heading);
    color: var(--color-accent);
    white-space: nowrap;
}

:root .lang-indicator {
    background: rgba(212, 163, 115, 0.15);
}

[data-theme="dark"] .lang-indicator {
    background: rgba(226, 179, 134, 0.15);
}

/* ==========================================================================
   Mobile Responsiveness for Language Elements
   ========================================================================== */
@media (max-width: 768px) {
    .language-badge {
        margin-top: 0.5rem;
        padding: 0.35rem 0.6rem;
        font-size: 0.8rem;
    }

    .language-badge .badge-label {
        font-size: 0.9rem;
    }

    .language-fallback-notice {
        padding: 0.85rem 1rem;
        margin: 1rem 0;
        font-size: 0.9rem;
    }

    .language-fallback-notice .notice-icon {
        font-size: 1.1rem;
    }

    .lang-indicator {
        font-size: 0.7rem;
        padding: 0.1rem 0.4rem;
    }
}

@media (max-width: 480px) {
    .language-fallback-notice {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
        border-left: none;
        border-top: 3px solid var(--color-accent);
        border-radius: 0 0 8px 8px;
    }
}

/* ==========================================================================
   Breadcrumb Navigation - SEO & UX Enhancement
   ========================================================================== */
.breadcrumbs {
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
    color: var(--color-text-muted);
}

.breadcrumbs ol {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.breadcrumbs li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.breadcrumbs li:not(:last-child)::after {
    content: '›';
    color: var(--color-border);
    font-weight: 500;
}

.breadcrumbs a {
    color: var(--color-text-muted);
    text-decoration: none;
    transition: color 0.2s ease;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
}

.breadcrumbs a:hover {
    color: var(--color-accent);
    background: rgba(var(--color-accent-rgb, 212, 163, 115), 0.1);
}

.breadcrumbs li:last-child span {
    color: var(--color-text);
    font-weight: 500;
    max-width: 250px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ==========================================================================
   Reading Time Badge
   ========================================================================== */
.reading-time {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    color: var(--color-text-muted);
    font-size: 0.875rem;
}

.reading-time::before {
    content: '⏱';
    font-size: 0.9em;
}

/* ==========================================================================
   Social Share Buttons - Sleek & Engaging
   ========================================================================== */
.social-share {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin: 2rem 0;
    padding: 1.25rem;
    background: var(--color-card-bg);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.share-label {
    font-weight: 600;
    color: var(--color-text);
    font-size: 0.95rem;
}

.share-buttons {
    display: flex;
    gap: 0.5rem;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    transition: all 0.25s ease;
    color: white;
    text-decoration: none;
}

.share-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.share-btn:active {
    transform: translateY(-1px);
}

/* Platform-specific colors */
.share-twitter {
    background: linear-gradient(135deg, #1da1f2, #0d8ecf);
}

.share-facebook {
    background: linear-gradient(135deg, #1877f2, #0d65d9);
}

.share-whatsapp {
    background: linear-gradient(135deg, #25d366, #128c7e);
}

.share-linkedin {
    background: linear-gradient(135deg, #0077b5, #005e93);
}

.share-pinterest {
    background: linear-gradient(135deg, #e60023, #bd001f);
}

.share-copy {
    background: var(--color-text-muted);
    border: 1px solid var(--color-border);
    color: var(--color-bg);
}

.share-copy:hover {
    background: var(--color-accent);
}

.share-copy.copied {
    background: #10b981;
    animation: copyPulse 0.3s ease;
}

.share-copy.copied::after {
    content: '✓';
    position: absolute;
    font-size: 0.8rem;
}

@keyframes copyPulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

/* Dark mode adjustments */
[data-theme="dark"] .social-share {
    background: var(--color-card-bg);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .share-copy {
    background: rgba(255, 255, 255, 0.1);
    color: var(--color-text);
}

/* Responsive */
@media (max-width: 768px) {
    .breadcrumbs {
        margin-bottom: 1rem;
        font-size: 0.8rem;
    }

    .breadcrumbs li:last-child span {
        max-width: 180px;
    }

    .social-share {
        flex-direction: column;
        align-items: flex-start;
        padding: 1rem;
        gap: 0.5rem;
    }

    .share-buttons {
        width: 100%;
        justify-content: flex-start;
    }

    .share-btn {
        width: 36px;
        height: 36px;
        border-radius: 8px;
    }
}

@media (max-width: 480px) {
    .breadcrumbs ol {
        gap: 0.3rem;
    }

    .breadcrumbs li:last-child span {
        max-width: 120px;
        font-size: 0.8rem;
    }

    .share-buttons {
        flex-wrap: wrap;
    }
}

/* ==========================================================================
   Buy Me a Coffee – Sidebar Widget Card
   ========================================================================== */
.widget-bmc {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(212, 163, 115, 0.25);
    background: linear-gradient(
        150deg,
        var(--color-card-bg) 0%,
        rgba(212, 163, 115, 0.07) 100%
    );
}

[data-theme="dark"] .widget-bmc {
    border-color: rgba(226, 179, 134, 0.2);
    background: linear-gradient(
        150deg,
        var(--color-card-bg) 0%,
        rgba(226, 179, 134, 0.08) 100%
    );
}

/* top accent stripe */
.widget-bmc::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--color-accent), var(--color-accent-hover));
    border-radius: 12px 12px 0 0;
}

.bmc-card-inner {
    text-align: center;
}

.bmc-icon {
    font-size: 2.25rem;
    display: block;
    margin-bottom: 0.6rem;
    line-height: 1;
}

.bmc-title {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 0.4rem;
}

.bmc-desc {
    font-family: var(--font-heading);
    font-size: 0.82rem;
    color: var(--color-text-light);
    line-height: 1.55;
    margin-bottom: 1.1rem;
}

.bmc-button {
    display: block;
    width: 100%;
    padding: 0.8rem 1rem;
    background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-hover) 100%);
    color: #fff !important;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 3px 12px rgba(212, 163, 115, 0.3);
}

.bmc-button:hover {
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 163, 115, 0.45);
}

[data-theme="dark"] .bmc-button {
    box-shadow: 0 3px 12px rgba(226, 179, 134, 0.25);
}

[data-theme="dark"] .bmc-button:hover {
    box-shadow: 0 6px 20px rgba(226, 179, 134, 0.4);
}

/* ==========================================================================
   Mobile Menu — Drawer Panel
   ========================================================================== */

/* Hidden on desktop */
.mobile-menu-extras,
.mobile-bmc-wrap,
.mobile-nav-section-label,
.mobile-bmc-eyebrow {
    display: none;
}

@media (max-width: 767px) {

    /* Full-height scrollable nav panel */
    .main-navigation {
        height: calc(100vh - var(--header-height)) !important;
        overflow-y: auto !important;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
        scrollbar-color: var(--color-border) transparent;
    }

    .main-navigation::-webkit-scrollbar { width: 4px; }
    .main-navigation::-webkit-scrollbar-track { background: transparent; }
    .main-navigation::-webkit-scrollbar-thumb {
        background-color: var(--color-border);
        border-radius: 2px;
    }

    /* Panel background — deep warm espresso for better depth */
    [data-theme="dark"] .main-navigation.toggled {
        background: rgba(13, 9, 5, 0.99);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
    }

    [data-theme="light"] .main-navigation.toggled,
    :root:not([data-theme="dark"]) .main-navigation.toggled {
        background: rgba(248, 244, 238, 0.99);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
    }

    /* ── Warm candlelight glow — radial warmth from the top ── */
    .main-navigation.toggled::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 220px;
        background: radial-gradient(ellipse at 50% 0%, rgba(226, 179, 134, 0.13) 0%, transparent 72%);
        pointer-events: none;
        z-index: 0;
    }

    .main-navigation.toggled > * {
        position: relative;
        z-index: 1;
    }

    /* Warm-tinted scrollbar */
    .main-navigation::-webkit-scrollbar { width: 3px; }
    .main-navigation::-webkit-scrollbar-thumb {
        background: rgba(226, 179, 134, 0.28);
        border-radius: 2px;
    }

    /* ── "NAVIGATE" section label with ornamental rule ── */
    .mobile-nav-section-label {
        display: flex;
        align-items: center;
        gap: 0.75rem;
        padding: 1.5rem 1.5rem 0.65rem;
        font-family: var(--font-heading);
        font-size: 0.56rem;
        font-weight: 800;
        letter-spacing: 3.5px;
        text-transform: uppercase;
        color: var(--color-accent);
        opacity: 0.85;
    }

    .mobile-nav-section-label::after {
        content: '';
        flex: 1;
        height: 1px;
        background: linear-gradient(to right, rgba(226, 179, 134, 0.35), transparent);
        border-radius: 1px;
    }

    /* ── Primary nav items — clean rows ── */
    #primary-menu {
        padding: 0;
        margin: 0;
        border-top: 1px solid var(--color-border);
    }

    #primary-menu > li {
        border-bottom: 1px solid var(--color-border);
        position: relative;
    }

    #primary-menu > li > a {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        padding: 1.05rem 1.5rem !important;
        font-family: var(--font-heading) !important;
        font-size: 0.95rem !important;
        font-weight: 600 !important;
        color: var(--color-text) !important;
        letter-spacing: 0.1px;
        transition: color 0.2s ease, background 0.2s ease, padding-left 0.2s ease !important;
        text-decoration: none !important;
    }

    #primary-menu > li > a:hover {
        color: var(--color-accent) !important;
        background: rgba(212, 163, 115, 0.07) !important;
        padding-left: 1.75rem !important;
    }

    /* Override desktop animated underline → chevron arrow */
    #primary-menu > li > a::after {
        content: '›' !important;
        position: static !important;
        width: auto !important;
        height: auto !important;
        background: transparent !important;
        font-size: 1.3rem !important;
        font-weight: 300 !important;
        line-height: 1 !important;
        opacity: 0.3 !important;
        flex-shrink: 0;
        transform: none !important;
        transition: opacity 0.15s ease, transform 0.15s ease !important;
    }

    #primary-menu > li > a:hover::after {
        opacity: 0.7 !important;
        transform: translateX(4px) !important;
    }

    /* Active/current page — warm left accent bar */
    #primary-menu .current-menu-item > a,
    #primary-menu .current_page_item > a {
        color: var(--color-accent) !important;
        border-left: 3px solid var(--color-accent);
        padding-left: calc(1.5rem - 3px) !important;
    }

    /* ── About Me — styled as a regular nav row with a person indicator ── */
    #primary-menu > li:last-child {
        border-bottom: 1px solid var(--color-border);
    }

    #primary-menu > li:last-child > a {
        gap: 0.6rem !important;
    }

    /* Small filled circle avatar icon before the label */
    #primary-menu > li:last-child > a::before {
        content: '';
        display: inline-block;
        width: 22px;
        height: 22px;
        border-radius: 50%;
        background: var(--color-accent);
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M12 12c2.7 0 4.8-2.1 4.8-4.8S14.7 2.4 12 2.4 7.2 4.5 7.2 7.2 9.3 12 12 12zm0 2.4c-3.2 0-9.6 1.6-9.6 4.8v2.4h19.2v-2.4c0-3.2-6.4-4.8-9.6-4.8z'/%3E%3C/svg%3E");
        background-size: 14px 14px;
        background-repeat: no-repeat;
        background-position: center;
        flex-shrink: 0;
        opacity: 0.9;
    }

    /* Keep the chevron on the right — reset position from ::before */
    #primary-menu > li:last-child > a::after {
        content: '›' !important;
        position: static !important;
        width: auto !important;
        height: auto !important;
        background: none !important;
        margin-left: auto;
    }

    /* ── BMC wrapper — mobile only ── */
    .mobile-bmc-wrap {
        display: block;
        padding: 0 1.25rem 1.25rem;
    }

    .mobile-bmc-eyebrow {
        display: block;
        font-family: var(--font-heading);
        font-size: 0.68rem;
        font-weight: 500;
        font-style: italic;
        color: var(--color-text-light);
        text-align: center;
        margin: 0 0 0.55rem;
        letter-spacing: 0.2px;
        opacity: 0.8;
    }

    .mobile-bmc-btn {
        display: flex !important;
        align-items: center;
        gap: 0.75rem;
        width: 100%;
        padding: 0.6rem 1.2rem;
        background: linear-gradient(135deg, #FFD700 0%, #FF9500 60%, #FF6B00 100%);
        border-radius: 14px;
        text-decoration: none;
        box-shadow: 0 4px 18px rgba(255, 150, 0, 0.35);
        transition: transform 0.2s ease, box-shadow 0.2s ease;
        border: none;
    }

    .mobile-bmc-btn:hover,
    .mobile-bmc-btn:focus {
        transform: translateY(-2px);
        box-shadow: 0 7px 24px rgba(255, 150, 0, 0.5);
        color: inherit;
    }

    .bmc-icon {
        font-size: 1.4rem;
        flex-shrink: 0;
        line-height: 1;
    }

    .bmc-text {
        display: flex;
        flex-direction: column;
        gap: 0.1rem;
    }

    .bmc-label {
        font-family: var(--font-heading);
        font-size: 0.6rem;
        font-weight: 800;
        letter-spacing: 2px;
        text-transform: uppercase;
        color: rgba(90, 45, 0, 0.8);
        line-height: 1;
    }

    .bmc-title {
        font-family: var(--font-heading);
        font-size: 1.05rem;
        font-weight: 700;
        color: var(--text-on-accent);
        line-height: 1.2;
    }

    /* Extras panel */
    .mobile-menu-extras {
        display: flex;
        flex-direction: column;
        gap: 1.1rem;
        padding: 1.25rem 1.25rem 2.5rem;
        border-top: 1px solid var(--color-border);
    }

    /* ── Search ── */
    .mobile-search-wrap {
        margin-bottom: 0;
    }

    .mobile-search-form { width: 100%; }

    .mobile-search-inner {
        display: flex;
        align-items: center;
        background: var(--color-card-bg);
        border: 1.5px solid var(--color-border);
        border-radius: 50px;
        padding: 0 0.4rem 0 0.9rem;
        transition: border-color 0.2s, box-shadow 0.2s;
        overflow: hidden;
    }

    .mobile-search-inner:focus-within {
        border-color: var(--color-accent);
        box-shadow: 0 0 0 3px rgba(212, 163, 115, 0.15);
    }

    .mobile-search-icon {
        color: var(--color-text-light);
        flex-shrink: 0;
        margin-right: 0.5rem;
    }

    .mobile-search-field {
        flex: 1;
        min-width: 0;
        -webkit-appearance: none;
        appearance: none;
        border: none;
        background: transparent !important;
        color: var(--color-text);
        font-family: var(--font-heading);
        font-size: 0.88rem;
        padding: 0.75rem 0;
        outline: none;
    }

    .mobile-search-field::placeholder { color: var(--color-text-light); }
    .mobile-search-field::-webkit-search-cancel-button,
    .mobile-search-field::-webkit-search-decoration { -webkit-appearance: none; appearance: none; }

    .mobile-search-submit {
        flex-shrink: 0;
        width: 32px;
        height: 32px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: var(--color-accent);
        border: none;
        border-radius: 50%;
        color: var(--text-on-accent);
        cursor: pointer;
        transition: background 0.2s, transform 0.15s;
        margin: 0.25rem 0;
    }

    .mobile-search-submit:hover { transform: scale(1.08); }
    [data-theme="dark"] .mobile-search-submit { color: var(--text-on-accent); }

    /* ── Text Size row ── */
    .mobile-font-size-row {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0.55rem 0.75rem;
        background: var(--color-card-bg);
        border: 1px solid var(--color-border);
        border-radius: 10px;
        margin-bottom: 0;
    }

    .mobile-section-title--inline {
        margin: 0;
        opacity: 1;
        font-size: 0.65rem;
        letter-spacing: 1.5px;
    }

    .mobile-font-btns {
        display: flex;
        gap: 0.35rem;
    }

    /* ── Section headings ── */
    .mobile-section-title {
        font-family: var(--font-heading);
        font-size: 0.6rem;
        font-weight: 800;
        text-transform: uppercase;
        letter-spacing: 2.5px;
        color: var(--color-accent);
        opacity: 0.75;
        margin: 0 0 0.5rem;
        padding-bottom: 0;
        border-bottom: none;
    }

    /* ── Top Posts (numbered) ── */
    .mobile-posts-list {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .mobile-posts-list li { border-bottom: 1px solid var(--color-border); }
    .mobile-posts-list li:last-child { border-bottom: none; }

    .mobile-posts-list a {
        display: flex;
        align-items: center;
        gap: 0.75rem;
        padding: 0.6rem 0;
        color: var(--color-text);
        text-decoration: none;
        transition: color 0.2s;
    }

    .mobile-posts-list a:hover { color: var(--color-accent); }

    .mobile-post-num {
        flex-shrink: 0;
        width: 22px;
        height: 22px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: var(--color-accent);
        color: var(--text-on-accent);
        font-family: var(--font-heading);
        font-size: 0.7rem;
        font-weight: 700;
        border-radius: 50%;
        line-height: 1;
        box-shadow: 0 1px 6px rgba(226, 179, 134, 0.3);
    }

    [data-theme="dark"] .mobile-post-num { color: var(--text-on-accent); }

    .mobile-post-title {
        font-family: var(--font-heading);
        font-size: 0.86rem;
        line-height: 1.4;
    }

    .mobile-section-title--categories {
        margin-top: 0.9rem;
    }

    /* ── Categories tag cloud ── */
    .mobile-categories-list {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: wrap !important;
        gap: 0.45rem;
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .mobile-categories-list li {
        display: inline-flex !important;
        width: auto !important;
        border-bottom: none !important;
        padding: 0 !important;
    }

    /* Suppress any nested subcategory lists */
    .mobile-categories-list ul {
        display: none !important;
    }

    .mobile-categories-list a {
        display: inline-block;
        padding: 0.28rem 0.75rem;
        background: var(--color-card-bg);
        border: 1px solid var(--color-border);
        border-radius: 20px;
        font-family: var(--font-heading);
        font-size: 0.77rem;
        font-weight: 500;
        color: var(--color-text);
        text-decoration: none;
        white-space: nowrap;
        transition: all 0.2s ease;
    }

    .mobile-categories-list a:hover,
    .mobile-categories-list a:focus {
        background: var(--color-accent);
        border-color: var(--color-accent);
        color: var(--text-on-accent);
        transform: translateY(-1px);
        box-shadow: 0 3px 10px rgba(226, 179, 134, 0.3);
    }

    [data-theme="dark"] .mobile-categories-list a:hover,
    [data-theme="dark"] .mobile-categories-list a:focus { color: var(--text-on-accent); }

    /* ── Discover card — card depth & warmth ── */
    .mobile-discover-block {
        background: var(--color-card-bg);
        border: 1px solid var(--color-border);
        border-radius: 14px;
        padding: 1.1rem;
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
        /* Subtle inner glow on the top edge */
        box-shadow: inset 0 1px 0 rgba(226, 179, 134, 0.12);
    }

    /* ── Entrance stagger animations ── */
    .main-navigation.toggled .mobile-nav-section-label {
        animation: slideInRight 0.35s cubic-bezier(0.22, 1, 0.36, 1) 0.05s both;
    }

    .main-navigation.toggled #primary-menu {
        animation: slideInRight 0.38s cubic-bezier(0.22, 1, 0.36, 1) 0.1s both;
    }

    .main-navigation.toggled .mobile-bmc-wrap {
        animation: slideInRight 0.38s cubic-bezier(0.22, 1, 0.36, 1) 0.18s both;
    }

    .main-navigation.toggled .mobile-menu-extras {
        animation: slideInRight 0.42s cubic-bezier(0.22, 1, 0.36, 1) 0.25s both;
    }
}

/* ==========================================================================
   Single Post – Optimal Reading Line Width
   ========================================================================== */
.single .entry-content {
    max-width: 68ch;
    margin-left: auto;
    margin-right: auto;
}

/* ==========================================================================
   Font Size Accessibility Controls (A– / A+)
   ========================================================================== */
.font-size-controls {
    display: flex;
    align-items: center;
    gap: 0.2rem;
}

.font-size-btn {
    background: none;
    border: 1px solid var(--color-border);
    cursor: pointer;
    color: var(--color-text);
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 600;
    transition: all 0.2s ease;
    line-height: 1;
}

.font-size-btn sup {
    font-size: 0.6rem;
    vertical-align: super;
    line-height: 0;
}

.font-size-btn:hover {
    background-color: rgba(212, 163, 115, 0.12);
    border-color: var(--color-accent);
    color: var(--color-accent);
}

[data-theme="dark"] .font-size-btn:hover {
    background-color: rgba(226, 179, 134, 0.15);
}

/* Active/applied state */
.font-size-btn:active {
    transform: scale(0.92);
}

/* Hide on small screens to save header space */
@media (max-width: 480px) {
    .font-size-controls {
        display: none;
    }
}

/* Font size levels applied to body */
body[data-font-size="small"]  { font-size: 17px; }
body[data-font-size="medium"] { font-size: 19px; }
body[data-font-size="large"]  { font-size: 21px; }
body[data-font-size="xlarge"] { font-size: 23px; }


/* ==========================================================================
   Floating WhatsApp Button (Mobile, Single Posts)
   ========================================================================== */
.floating-whatsapp {
    display: none; /* mobile only */
}

@media (max-width: 767px) {
    .floating-whatsapp {
        display: flex;
        align-items: center;
        justify-content: center;
        position: fixed;
        bottom: max(1.5rem, calc(1rem + env(safe-area-inset-bottom, 0px)));
        right: max(1.5rem, calc(1rem + env(safe-area-inset-right, 0px)));
        width: 52px;
        height: 52px;
        border-radius: 50%;
        background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
        color: #fff;
        text-decoration: none;
        z-index: 200;
        box-shadow: 0 4px 16px rgba(37, 211, 102, 0.45);
        transition: transform 0.25s ease, box-shadow 0.25s ease;
        animation: fadeInUp 0.4s ease 0.5s both;
    }

    .floating-whatsapp:hover {
        transform: translateY(-3px) scale(1.05);
        box-shadow: 0 8px 24px rgba(37, 211, 102, 0.55);
        color: #fff;
    }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   Post Navigation (Enhanced Prev / Next)
   ========================================================================== */
.post-navigation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin: 2.5rem 0;
    padding: 0;
}

/* Single item spans full width */
.post-navigation:has(.post-nav-prev):not(:has(.post-nav-next)) {
    grid-template-columns: 1fr;
}
.post-navigation:has(.post-nav-next):not(:has(.post-nav-prev)) {
    grid-template-columns: 1fr;
    justify-items: end;
}

.post-nav-link {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 1rem;
    background: var(--color-card-bg);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.25s ease;
    min-width: 0;
}

.post-nav-link:hover {
    border-color: var(--color-accent);
    box-shadow: 0 4px 16px rgba(212, 163, 115, 0.18);
    transform: translateY(-2px);
    color: inherit;
}

[data-theme="dark"] .post-nav-link:hover {
    box-shadow: 0 4px 16px rgba(226, 179, 134, 0.15);
}

.post-nav-next {
    flex-direction: row-reverse;
    text-align: right;
}

.post-nav-thumb {
    flex-shrink: 0;
}

.post-nav-thumb img {
    width: 68px;
    height: 68px;
    object-fit: cover;
    border-radius: 8px;
    margin: 0;
    box-shadow: none;
}

.post-nav-info {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    min-width: 0;
}

.post-nav-label {
    font-family: var(--font-heading);
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--color-accent);
}

.post-nav-cat {
    font-family: var(--font-heading);
    font-size: 0.72rem;
    color: var(--color-text-light);
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.post-nav-title {
    font-family: var(--font-heading);
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--color-text);
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (max-width: 600px) {
    .post-navigation {
        grid-template-columns: 1fr;
    }

    .post-nav-next {
        flex-direction: row;
        text-align: left;
    }

    .post-nav-thumb img {
        width: 56px;
        height: 56px;
    }
}

/* ==========================================================================
   Related Posts Section
   ========================================================================== */
.related-posts {
    margin: 2.5rem 0;
    padding: 1.75rem;
    background: var(--color-card-bg);
    border-radius: 16px;
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-md);
}

.related-posts-title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-text);
    margin: 0 0 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--color-accent);
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.related-post-card {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    border-radius: 10px;
    overflow: hidden;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.related-post-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    border-color: rgba(212, 163, 115, 0.4);
}

[data-theme="dark"] .related-post-card:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    border-color: rgba(226, 179, 134, 0.25);
}

.related-post-thumb {
    display: block;
    overflow: hidden;
    aspect-ratio: 16 / 9;
}

.related-post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
    margin: 0;
    box-shadow: none;
    transition: transform 0.35s ease;
}

.related-post-card:hover .related-post-thumb img {
    transform: scale(1.04);
}

.related-post-info {
    padding: 0.75rem 0.875rem 0.875rem;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.related-post-cat {
    font-family: var(--font-heading);
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-accent);
}

.related-post-title {
    font-family: var(--font-heading);
    font-size: 0.88rem;
    font-weight: 600;
    line-height: 1.4;
    margin: 0;
}

.related-post-title a {
    color: var(--color-text);
    text-decoration: none;
    transition: color 0.2s ease;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-post-title a:hover {
    color: var(--color-accent);
}

.related-post-date {
    font-family: var(--font-heading);
    font-size: 0.72rem;
    color: var(--color-text-light);
    margin-top: 0.1rem;
}

/* Responsive: 2-col on tablet, 1-col stacked on mobile */
@media (max-width: 768px) {
    .related-posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .related-posts {
        padding: 1.25rem;
    }

    .related-posts-grid {
        grid-template-columns: 1fr;
    }

    .related-post-card {
        flex-direction: row;
        align-items: stretch;
    }

    .related-post-thumb {
        width: 100px;
        flex-shrink: 0;
        aspect-ratio: unset;
    }

    .related-post-thumb img {
        height: 100%;
        min-height: 80px;
    }
}

/* ==========================================================================
   Inline Newsletter CTA (Mid-Article)
   ========================================================================== */
.inline-newsletter-cta {
    margin: 2rem 0;
    padding: 1.5rem;
    border-radius: 14px;
    border: 1px solid rgba(212, 163, 115, 0.3);
    background: linear-gradient(
        135deg,
        var(--color-card-bg) 0%,
        rgba(212, 163, 115, 0.06) 100%
    );
    position: relative;
    overflow: hidden;
}

[data-theme="dark"] .inline-newsletter-cta {
    border-color: rgba(226, 179, 134, 0.2);
    background: linear-gradient(
        135deg,
        var(--color-card-bg) 0%,
        rgba(226, 179, 134, 0.07) 100%
    );
}

/* left accent stripe */
.inline-newsletter-cta::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, var(--color-accent), var(--color-accent-hover));
    border-radius: 4px 0 0 4px;
}

.inline-newsletter-inner {
    padding-left: 0.5rem;
}

.inline-newsletter-title {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-text);
    margin: 0 0 0.35rem;
}

.inline-newsletter-desc {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    color: var(--color-text-light);
    line-height: 1.5;
    margin: 0 0 1rem;
}

.inline-newsletter-form {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.inline-newsletter-input {
    flex: 1;
    min-width: 180px;
    padding: 0.75rem 1rem;
    border: 1.5px solid var(--color-border);
    border-radius: 8px;
    background: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-heading);
    font-size: 0.9rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.inline-newsletter-input::placeholder {
    color: var(--color-text-light);
    opacity: 0.6;
}

.inline-newsletter-input:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(212, 163, 115, 0.15);
}

[data-theme="dark"] .inline-newsletter-input:focus {
    box-shadow: 0 0 0 3px rgba(226, 179, 134, 0.2);
}

.inline-newsletter-btn {
    padding: 0.75rem 1.25rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
    transition: all 0.25s ease;
}

:root .inline-newsletter-btn {
    background: linear-gradient(135deg, #c9956b 0%, #b3845f 100%);
    color: var(--text-on-accent);
    box-shadow: 0 3px 10px rgba(180, 130, 90, 0.3);
}

[data-theme="dark"] .inline-newsletter-btn {
    background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-hover) 100%);
    color: var(--text-on-accent);
    box-shadow: 0 3px 10px rgba(226, 179, 134, 0.25);
}

.inline-newsletter-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(180, 130, 90, 0.4);
}

@media (max-width: 480px) {
    .inline-newsletter-form {
        flex-direction: column;
    }

    .inline-newsletter-input,
    .inline-newsletter-btn {
        width: 100%;
    }
}

/* ==========================================================================
   Button Text Contrast Fix
   --color-accent in dark mode (#E2B386) is a pale golden — white text on it
   has ~1.7:1 contrast (far below AA 4.5:1). Use near-dark text instead.
   Light mode (#D4A373) is also borderline. Consistent dark-on-warm text.
   ========================================================================== */

/* Shared dark text for accent-background buttons — uses CSS variable so it
   automatically adjusts between light (#3a1f0a) and dark (#1a0c04) themes */
.bmc-button,
.subscribe-button,
.inline-newsletter-btn,
.page-numbers.current,
.mobile-search-submit {
    color: var(--text-on-accent) !important;
}

/* Hover/focus states – variable handles both themes */
.bmc-button:hover,
.bmc-button:focus,
.subscribe-button:hover,
.subscribe-button:focus {
    color: var(--text-on-accent) !important;
}

/* ==========================================================================
   Hide duplicate BMC card on mobile (it's already in the hamburger menu)
   ========================================================================== */
@media (max-width: 767px) {
    .widget-bmc {
        display: none;
    }
}

/* ==========================================================================
   Sticky Sidebar (Desktop)
   ========================================================================== */
@media (min-width: 1024px) {
    .sidebar {
        position: sticky;
        top: calc(var(--header-height) + 1.5rem);
        align-self: flex-start;
        max-height: calc(100vh - var(--header-height) - 3rem);
        overflow-y: auto;
        scrollbar-width: thin;
        scrollbar-color: var(--color-border) transparent;
    }

    .sidebar::-webkit-scrollbar {
        width: 4px;
    }

    .sidebar::-webkit-scrollbar-track {
        background: transparent;
    }

    .sidebar::-webkit-scrollbar-thumb {
        background: var(--color-border);
        border-radius: 4px;
    }
}

/* ==========================================================================
   Author Bio Box (Single Posts)
   ========================================================================== */
.author-bio-box {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    padding: 1.5rem;
    margin: 2.5rem 0;
    background: var(--color-card-bg);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    box-shadow: var(--shadow-md);
}

.author-avatar-img {
    width: 88px !important;
    height: 88px !important;
    border-radius: 50% !important;
    object-fit: cover;
    flex-shrink: 0;
    border: 3px solid var(--color-accent);
    margin: 0 !important;
    box-shadow: none !important;
}

.author-bio-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 0;
}

.author-bio-label {
    font-family: var(--font-heading);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--color-accent);
}

.author-bio-name {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--color-text);
    margin: 0;
}

.author-bio-desc {
    font-size: 0.88rem;
    color: var(--color-text-light);
    line-height: 1.6;
    margin: 0.25rem 0 0.5rem;
}

.author-bio-link {
    font-family: var(--font-heading);
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--color-accent);
    text-decoration: none;
    transition: color 0.2s;
}

.author-bio-link:hover {
    color: var(--color-accent-hover);
}

@media (max-width: 480px) {
    .author-bio-box {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .author-bio-label {
        text-align: center;
    }
}

/* ==========================================================================
   Category Color Coding
   (WordPress adds category-{slug} classes to post articles via post_class())
   ========================================================================== */

/* Healthcare & Insurance → teal */
article.category-healthcare-insurance .entry-meta a[rel~="category"],
article.category-healthcare-insurance .related-post-cat,
article.category-healthcare-insurance .post-nav-cat {
    color: #3dbdb5;
}

/* Toddler's Life → coral */
article.category-toddlers-life .entry-meta a[rel~="category"],
article.category-toddlers-life .related-post-cat,
article.category-toddlers-life .post-nav-cat {
    color: #e0735a;
}

/* Expat Life in France → sky blue */
article.category-expat-life-in-france .entry-meta a[rel~="category"],
article.category-expat-life-in-france .related-post-cat,
article.category-expat-life-in-france .post-nav-cat {
    color: #5b9bd5;
}

/* 7-12 Month Baby → sage green */
article.category-7-12-month-baby .entry-meta a[rel~="category"],
article.category-7-12-month-baby .related-post-cat,
article.category-7-12-month-baby .post-nav-cat {
    color: #6baa6b;
}

/* Pregnancy → rose */
article.category-pregnancy .entry-meta a[rel~="category"],
article.category-pregnancy .related-post-cat,
article.category-pregnancy .post-nav-cat {
    color: #d4728e;
}

/* ==========================================================================
   Content Protection – Print Prevention & Image Overlay
   ========================================================================== */

/* Block all printing */
@media print {
    body {
        display: none !important;
        visibility: hidden !important;
    }
}

/* Disable pointer events on images — blocks right-click-save on desktop */
.post-thumbnail img,
.entry-content img,
.related-post-thumb img,
.post-nav-thumb img,
.author-avatar-img {
    pointer-events: none;
    -webkit-user-drag: none;
}

/* Transparent overlay on image containers — captures touch-hold on mobile
   before the long-press context menu fires on the image itself */
.post-thumbnail,
.entry-content figure,
.related-post-thumb,
.post-nav-thumb,
.author-bio-avatar {
    position: relative;
}

.post-thumbnail::after,
.entry-content figure::after,
.related-post-thumb::after,
.post-nav-thumb::after,
.author-bio-avatar::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
}

/* ==========================================================================
   prefers-reduced-motion – Accessibility
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}