/*
 Theme Name:   GeneratePress Child — Parenting Blog
 Theme URI:    https://example.com/parenting-blog
 Description:  A warm, nurturing child theme for parenting blogs. Built on GeneratePress.
 Author:       Parenting Blog Team
 Author URI:   https://example.com
 Template:     generatepress
 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:  generatepress-child
 Tags:         blog, parenting, family, news, two-columns, right-sidebar, responsive-layout, custom-colors, accessibility-ready
*/

/* ==========================================================================
   1. CSS Custom Properties (Global Tokens)
   ========================================================================== */

:root {
    --clr-primary:       #6B8E7B;
    --clr-primary-dark:  #4A6B5A;
    --clr-primary-light: #8DB09D;
    --clr-secondary:     #E8A87C;
    --clr-secondary-dark:#D4956A;
    --clr-accent:        #D4A574;
    --clr-accent-light:  #EDD9C7;

    --clr-bg-warm:       #FDF8F3;
    --clr-bg-card:       #FFFFFF;
    --clr-bg-soft:       #F5F0EB;

    --clr-text:          #3A3A3A;
    --clr-text-heading:  #2C2C2C;
    --clr-text-muted:    #7A7A7A;

    --clr-border:        #E8DDD4;
    --clr-border-light:  #F0E9E2;

    --ff-body:    -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
    --ff-heading: Georgia, 'Times New Roman', Times, serif;

    --radius-sm:  6px;
    --radius-md:  12px;
    --radius-lg:  20px;
    --radius-full: 9999px;

    --shadow-sm:  0 1px 3px rgba(0,0,0,0.06);
    --shadow-md:  0 4px 12px rgba(0,0,0,0.07);
    --shadow-lg:  0 8px 30px rgba(0,0,0,0.09);
    --shadow-card:0 2px 8px rgba(0,0,0,0.05), 0 0 0 1px var(--clr-border-light);

    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    --trans-fast: 150ms var(--ease);
    --trans-base: 250ms var(--ease);
    --trans-slow: 350ms var(--ease);
}

/* ==========================================================================
   2. Base
   ========================================================================== */

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--ff-body);
    color: var(--clr-text);
    background-color: var(--clr-bg-warm);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

::selection {
    background-color: var(--clr-accent-light);
    color: var(--clr-text-heading);
}

:focus-visible {
    outline: 2px solid var(--clr-secondary);
    outline-offset: 2px;
    border-radius: var(--radius-sm);
}

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--clr-bg-soft); }
::-webkit-scrollbar-thumb { background: var(--clr-border); border-radius: var(--radius-full); }
::-webkit-scrollbar-thumb:hover { background: var(--clr-text-muted); }

/* ==========================================================================
   3. Typography
   ========================================================================== */

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

a {
    color: var(--clr-secondary-dark);
    transition: color var(--trans-fast);
}

a:hover {
    color: var(--clr-primary);
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-thickness: 1px;
}

blockquote {
    margin: 2em 0;
    padding: 1.5em 2em;
    border-left: 4px solid var(--clr-accent);
    background-color: var(--clr-bg-soft);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    font-style: italic;
}

code {
    font-size: 0.9em;
    background: var(--clr-bg-soft);
    padding: 2px 6px;
    border-radius: var(--radius-sm);
    color: var(--clr-primary-dark);
}

pre {
    background: var(--clr-text-heading);
    color: var(--clr-bg-card);
    padding: 1.5em;
    border-radius: var(--radius-md);
    overflow-x: auto;
    margin: 1.5em 0;
}

pre code { background: transparent; color: inherit; padding: 0; }

hr { border: none; border-top: 1px solid var(--clr-border); margin: 2em 0; }

table { width: 100%; border-collapse: collapse; margin: 1.5em 0; }
th, td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--clr-border-light); }
th { font-weight: 600; color: var(--clr-text-heading); background: var(--clr-bg-soft); }

/* ==========================================================================
   4. Header
   ========================================================================== */

.site-header {
    background: var(--clr-bg-card);
    border-bottom: 1px solid var(--clr-border-light);
    box-shadow: var(--shadow-sm);
}

.main-navigation .main-nav ul li a {
    font-weight: 500;
    color: var(--clr-text);
}

.main-navigation .main-nav ul li a::after {
    content: '';
    display: block;
    width: 0;
    height: 2px;
    background: var(--clr-secondary);
    transition: width var(--trans-base);
    margin-top: 2px;
}

.main-navigation .main-nav ul li a:hover::after,
.main-navigation .main-nav ul li[class*="current-menu-"] > a::after {
    width: 100%;
}

.main-navigation .main-nav ul li a:hover,
.main-navigation .main-nav ul li[class*="current-menu-"] > a {
    color: var(--clr-primary);
    text-decoration: none;
}

.menu-toggle {
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-sm);
    background: var(--clr-bg-card);
    color: var(--clr-primary-dark);
    font-weight: 600;
    cursor: pointer;
}

.menu-toggle:hover {
    background: var(--clr-bg-soft);
    border-color: var(--clr-primary-light);
}

/* ── Site branding ── */
.site-branding .site-title {
    font-family: var(--ff-heading);
    color: var(--clr-primary-dark);
}

.site-branding .site-description {
    color: var(--clr-text-muted);
}

/* ==========================================================================
   5. HOMEPAGE — Hero Section
   ========================================================================== */

.home-hero {
    background: linear-gradient(135deg, var(--clr-primary-dark) 0%, var(--clr-primary) 50%, var(--clr-accent) 100%);
    color: #fff;
    text-align: center;
    padding: clamp(3rem, 6vw, 5rem) 1.5rem;
    position: relative;
    overflow: hidden;
}

.home-hero__inner {
    max-width: 720px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.home-hero__title {
    font-family: var(--ff-heading);
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 700;
    color: #fff;
    margin: 0 0 1rem;
    line-height: 1.2;
}

.home-hero__subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    opacity: 0.92;
    margin: 0 0 2rem;
    line-height: 1.6;
}

.home-hero__cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.home-hero__button--primary {
    display: inline-block;
    padding: 14px 32px;
    background: #fff;
    color: var(--clr-primary-dark);
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 1.05rem;
    text-decoration: none;
    transition: background var(--trans-fast), transform var(--trans-fast);
}

.home-hero__button--primary:hover {
    background: var(--clr-bg-soft);
    transform: translateY(-1px);
    text-decoration: none;
}

.home-hero__button--secondary {
    display: inline-block;
    padding: 14px 32px;
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255,255,255,0.6);
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 1.05rem;
    text-decoration: none;
    transition: border-color var(--trans-fast);
}

.home-hero__button--secondary:hover {
    border-color: #fff;
    color: #fff;
    text-decoration: none;
}

.home-hero__decoration {
    position: absolute;
    bottom: -30px;
    right: -30px;
    width: 180px;
    height: 180px;
    background: rgba(255,255,255,0.06);
    border-radius: 50%;
}

.home-hero__decoration::before {
    content: '';
    position: absolute;
    top: 30px;
    left: -60px;
    width: 120px;
    height: 120px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
}

/* ==========================================================================
   6. HOMEPAGE — Category Quick-Nav Bar
   ========================================================================== */

.home-categories {
    background: var(--clr-bg-card);
    border-bottom: 1px solid var(--clr-border-light);
}

.home-categories__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 14px 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.home-categories__label {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--clr-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
    flex-shrink: 0;
}

.home-categories__nav {
    display: flex;
    gap: 8px;
    flex-wrap: nowrap;
}

.home-categories__link {
    display: inline-block;
    padding: 6px 16px;
    background: var(--clr-bg-soft);
    color: var(--clr-text);
    border-radius: var(--radius-full);
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
    transition: all var(--trans-fast);
}

.home-categories__link:hover {
    background: var(--clr-accent-light);
    color: var(--clr-primary-dark);
    text-decoration: none;
}

/* ==========================================================================
   7. HOMEPAGE — Featured Posts Grid
   ========================================================================== */

.home-featured {
    padding: 3rem 1.5rem;
}

.home-featured__container {
    max-width: 1200px;
    margin: 0 auto;
}

.home-featured__header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.home-featured__title {
    font-family: var(--ff-heading);
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin: 0;
}

.home-featured__view-all {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--clr-secondary-dark);
    text-decoration: none;
}

.home-featured__view-all:hover {
    color: var(--clr-primary);
    text-decoration: underline;
}

.home-featured__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 600px) {
    .home-featured__grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.home-featured__card {
    background: var(--clr-bg-card);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: transform var(--trans-base), box-shadow var(--trans-base);
}

.home-featured__card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.home-featured__image {
    display: block;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background: var(--clr-bg-soft);
}

.home-featured__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--trans-slow);
}

.home-featured__card:hover .home-featured__image img {
    transform: scale(1.05);
}

.home-featured__content {
    padding: 1.25rem;
}

.home-featured__category {
    display: inline-block;
    background: var(--clr-accent-light);
    color: var(--clr-primary-dark);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 3px 10px;
    border-radius: var(--radius-full);
    margin-bottom: 0.5rem;
}

.home-featured__card-title {
    font-family: var(--ff-heading);
    font-size: 1.1rem;
    margin: 0 0 0.5rem;
    line-height: 1.3;
}

.home-featured__card-title a {
    color: var(--clr-text-heading);
    text-decoration: none;
}

.home-featured__card-title a:hover {
    color: var(--clr-primary);
}

.home-featured__meta {
    font-size: 0.8rem;
    color: var(--clr-text-muted);
}

/* ==========================================================================
   8. HOMEPAGE — "Latest" heading
   ========================================================================== */

.home-latest-heading {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem 0.5rem;
}

.home-latest-heading h2 {
    font-family: var(--ff-heading);
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin: 0;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--clr-accent);
}

/* ==========================================================================
   9. HOMEPAGE — Trust Bar
   ========================================================================== */

.home-trust {
    background: var(--clr-bg-soft);
    margin: 2rem 0;
    padding: 2.5rem 1.5rem;
}

.home-trust__inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    text-align: center;
}

@media (min-width: 600px) {
    .home-trust__inner {
        grid-template-columns: repeat(3, 1fr);
    }
}

.home-trust__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.home-trust__icon {
    font-size: 1.8rem;
    color: var(--clr-secondary);
    line-height: 1;
}

.home-trust__text {
    font-weight: 600;
    color: var(--clr-text-heading);
    font-size: 0.95rem;
}

/* ==========================================================================
   10. Post Cards (Blog / Archive — style GP's native elements)
   ========================================================================== */

/* ── Card category badge (injected via generate_before_entry_title) ── */
.card-category-badge {
    display: block;
    margin-bottom: 0.5rem;
}

.card-category-badge a {
    display: inline-block;
    background: var(--clr-accent-light);
    color: var(--clr-primary-dark);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 3px 10px;
    border-radius: var(--radius-full);
    text-decoration: none;
    transition: all var(--trans-fast);
}

.card-category-badge a:hover {
    background: var(--clr-secondary);
    color: #fff;
    text-decoration: none;
}

/* ── Article wrapper ── */
.inside-article {
    background: var(--clr-bg-card);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
    transition: transform var(--trans-base), box-shadow var(--trans-base);
    overflow: hidden;
}

.inside-article:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

/* ── Featured image inside article ── */
.inside-article .post-image {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--clr-bg-soft);
}

.inside-article .post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--trans-slow);
}

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

/* ── Entry title ── */
.entry-title a {
    color: var(--clr-text-heading);
    text-decoration: none;
    transition: color var(--trans-fast);
}

.entry-title a:hover {
    color: var(--clr-primary);
}

/* ── Entry meta ── */
.entry-meta {
    font-size: 0.85rem;
    color: var(--clr-text-muted);
}

.entry-meta a { color: var(--clr-text-muted); }
.entry-meta a:hover { color: var(--clr-primary); }

/* ── Read more ── */
.read-more-wrap { margin-top: auto; padding-top: 0.75rem; }

a.read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--clr-primary-dark);
    text-decoration: none;
    transition: color var(--trans-fast);
}

a.read-more:hover {
    color: var(--clr-secondary-dark);
    text-decoration: none;
}

.reading-time {
    font-size: 0.85rem;
    color: var(--clr-text-muted);
}

/* ==========================================================================
   11. Single Post
   ========================================================================== */

/* ── Drop cap ── */
.single .entry-content > p:first-of-type::first-letter {
    float: left;
    font-family: var(--ff-heading);
    font-size: 4.5rem;
    font-weight: 700;
    line-height: 0.85;
    padding-right: 0.5rem;
    padding-top: 4px;
    color: var(--clr-primary);
}

/* ── Featured image ── */
.single .featured-image {
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 1.5rem;
}

/* ── Tags ── */
.single .tags-links {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--clr-border-light);
}

.single .tags-links a {
    display: inline-block;
    background: var(--clr-bg-soft);
    color: var(--clr-text-muted);
    font-size: 0.75rem;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    text-decoration: none;
    transition: all var(--trans-fast);
}

.single .tags-links a:hover {
    background: var(--clr-accent-light);
    color: var(--clr-primary-dark);
}

/* ── Entry content images ── */
.entry-content img {
    border-radius: var(--radius-md);
    max-width: 100%;
    height: auto;
}

.single .entry-content ul li::marker { color: var(--clr-secondary); }

/* ==========================================================================
   12. Author Box
   ========================================================================== */

.author-box {
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem;
    margin: 2rem 0;
    background: var(--clr-bg-soft);
    border-radius: var(--radius-md);
    border: 1px solid var(--clr-border-light);
}

.author-box .avatar {
    border-radius: var(--radius-full);
    width: 80px;
    height: 80px;
    flex-shrink: 0;
}

.author-box .author-title {
    font-weight: 600;
    font-size: 1.15rem;
    margin-bottom: 0.25rem;
}

.author-box .author-description {
    font-size: 0.95rem;
    color: var(--clr-text-muted);
}

@media (max-width: 480px) {
    .author-box {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

/* ==========================================================================
   13. Related Posts
   ========================================================================== */

.related-posts {
    margin: 2.5rem 0;
}

.related-posts__title {
    font-family: var(--ff-heading);
    font-size: 1.4rem;
    margin-bottom: 1.25rem;
}

.related-posts__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 600px) {
    .related-posts__grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.related-posts__card {
    background: var(--clr-bg-card);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: transform var(--trans-base);
}

.related-posts__card:hover {
    transform: translateY(-2px);
}

.related-posts__image {
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--clr-bg-soft);
}

.related-posts__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.related-posts__card-title {
    font-family: var(--ff-heading);
    font-size: 0.95rem;
    margin: 0;
    padding: 0.75rem 1rem;
    line-height: 1.3;
}

.related-posts__card-title a {
    color: var(--clr-text-heading);
    text-decoration: none;
}

.related-posts__card-title a:hover {
    color: var(--clr-primary);
}

/* ==========================================================================
   14. Sidebar
   ========================================================================== */

.sidebar .widget {
    background: var(--clr-bg-card);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.sidebar .widget-title {
    font-family: var(--ff-heading);
    font-size: 1.2rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--clr-accent);
}

/* ── Widget lists ── */
.sidebar .widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar .widget ul li {
    padding: 6px 0;
    border-bottom: 1px solid var(--clr-border-light);
    margin: 0;
}

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

.sidebar .widget ul li a {
    color: var(--clr-text);
    transition: color var(--trans-fast);
}

.sidebar .widget ul li a:hover {
    color: var(--clr-secondary-dark);
    text-decoration: none;
}

/* ── Search ── */
.widget_search .search-form { display: flex; }

.widget_search .search-field {
    flex: 1;
    padding: 10px 16px;
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-sm) 0 0 var(--radius-sm);
    font-family: var(--ff-body);
}

.widget_search .search-field:focus {
    border-color: var(--clr-secondary);
    outline: none;
}

.widget_search .search-submit {
    padding: 10px 16px;
    background: var(--clr-primary);
    color: #fff;
    border: none;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-weight: 600;
    cursor: pointer;
    transition: background var(--trans-fast);
}

.widget_search .search-submit:hover {
    background: var(--clr-primary-dark);
}

/* ==========================================================================
   15. Newsletter Bar (site-wide CTA)
   ========================================================================== */

.newsletter-bar {
    background: linear-gradient(135deg, var(--clr-primary-dark), var(--clr-primary));
    color: #fff;
    padding: 3.5rem 1.5rem;
    text-align: center;
}

.newsletter-bar__inner {
    max-width: 600px;
    margin: 0 auto;
}

.newsletter-bar__title {
    font-family: var(--ff-heading);
    font-size: clamp(1.4rem, 3vw, 2rem);
    color: #fff;
    margin: 0 0 0.5rem;
}

.newsletter-bar__text {
    font-size: 1.1rem;
    margin: 0 0 1.5rem;
    opacity: 0.9;
}

.newsletter-bar__form {
    display: flex;
    gap: 0.5rem;
    max-width: 480px;
    margin: 0 auto;
}

.newsletter-bar__form input[type="email"] {
    flex: 1;
    padding: 14px 20px;
    border: 2px solid transparent;
    border-radius: var(--radius-full);
    font-family: var(--ff-body);
    font-size: 1rem;
    color: var(--clr-text);
}

.newsletter-bar__form input[type="email"]:focus {
    border-color: var(--clr-secondary);
    outline: none;
}

.newsletter-bar__form input[type="submit"] {
    padding: 14px 28px;
    background: var(--clr-secondary);
    color: #fff;
    border: none;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    white-space: nowrap;
    transition: background var(--trans-fast);
}

.newsletter-bar__form input[type="submit"]:hover {
    background: var(--clr-secondary-dark);
}

@media (max-width: 480px) {
    .newsletter-bar__form {
        flex-direction: column;
    }
    .newsletter-bar__form input[type="submit"] {
        width: 100%;
    }
}

/* ==========================================================================
   16. Comments
   ========================================================================== */

.comments-area {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--clr-border-light);
}

.comments-title { font-family: var(--ff-heading); font-size: 1.4rem; }

.comment-list { list-style: none; padding: 0; margin: 0; }

.comment-body {
    padding: 1.5rem;
    margin-bottom: 1rem;
    background: var(--clr-bg-card);
    border-radius: var(--radius-md);
    border: 1px solid var(--clr-border-light);
}

.comment-author { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.5rem; }
.comment-author img.avatar { border-radius: var(--radius-full); width: 48px; height: 48px; }
.comment-author cite { font-style: normal; font-weight: 600; }
.comment-meta { font-size: 0.85rem; color: var(--clr-text-muted); }
.comment-meta a { color: var(--clr-text-muted); }
.reply a { font-weight: 600; font-size: 0.85rem; color: var(--clr-primary); }
.reply a:hover { color: var(--clr-primary-dark); }

.comment-respond {
    margin-top: 2rem;
    padding: 1.5rem;
    background: var(--clr-bg-card);
    border-radius: var(--radius-md);
    border: 1px solid var(--clr-border-light);
}

.comment-form-comment textarea,
.comment-form-author input,
.comment-form-email input,
.comment-form-url input {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-sm);
    font-family: var(--ff-body);
    box-sizing: border-box;
    transition: border-color var(--trans-fast);
}

.comment-form-comment textarea:focus,
.comment-form-author input:focus,
.comment-form-email input:focus,
.comment-form-url input:focus {
    border-color: var(--clr-secondary);
    outline: none;
}

/* ==========================================================================
   17. Pagination
   ========================================================================== */

.page-numbers {
    display: inline-flex;
    gap: 4px;
    flex-wrap: wrap;
    justify-content: center;
    list-style: none;
    padding: 0;
}

.page-numbers li { margin: 0; }

.page-numbers a,
.page-numbers span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    font-weight: 600;
    border-radius: var(--radius-sm);
    border: 1px solid var(--clr-border-light);
    background: var(--clr-bg-card);
    color: var(--clr-text);
    text-decoration: none;
    transition: all var(--trans-fast);
}

.page-numbers a:hover {
    background: var(--clr-bg-soft);
    border-color: var(--clr-secondary);
}

.page-numbers .current {
    background: var(--clr-primary);
    color: #fff;
    border-color: var(--clr-primary);
}

/* ==========================================================================
   18. Footer
   ========================================================================== */

.site-footer {
    background: var(--clr-bg-soft);
    border-top: 1px solid var(--clr-border-light);
}

.footer-widgets .inside-footer-widgets {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .footer-widgets .inside-footer-widgets {
        grid-template-columns: repeat(3, 1fr);
    }
}

.footer-widgets .widget-title {
    font-family: var(--ff-heading);
    font-size: 1.15rem;
    margin-bottom: 1rem;
}

.footer-widgets .widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-widgets .widget ul li { padding: 4px 0; margin: 0; }

.footer-widgets .widget ul li a {
    color: var(--clr-text-muted);
    font-size: 0.95rem;
    transition: color var(--trans-fast);
}

.footer-widgets .widget ul li a:hover {
    color: var(--clr-secondary-dark);
    text-decoration: none;
}

.site-info {
    background: var(--clr-primary-dark);
    color: #fff;
    text-align: center;
    padding: 1.25rem;
    font-size: 0.85rem;
}

.site-info a { color: var(--clr-accent-light); }
.site-info a:hover { color: var(--clr-secondary); }

/* ==========================================================================
   19. Buttons
   ========================================================================== */

button:not(.menu-toggle),
.gp-button,
input[type="submit"],
.wp-block-button__link {
    font-family: var(--ff-body);
    font-weight: 600;
    padding: 12px 24px;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background var(--trans-fast);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

button:not(.menu-toggle),
input[type="submit"],
.wp-block-button__link:not(.is-style-outline .wp-block-button__link) {
    background: var(--clr-primary);
    color: #fff;
}

button:not(.menu-toggle):hover,
input[type="submit"]:hover,
.wp-block-button__link:not(.is-style-outline .wp-block-button__link):hover {
    background: var(--clr-primary-dark);
}

/* ==========================================================================
   20. Sticky Post Badge
   ========================================================================== */

.sticky { position: relative; }

.sticky::before {
    content: 'Featured';
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    z-index: 10;
    background: var(--clr-secondary);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 4px 12px;
    border-radius: var(--radius-full);
}

/* ==========================================================================
   21. 404 Page
   ========================================================================== */

.error404 .site-main {
    max-width: 600px;
    margin: 3rem auto;
    text-align: center;
}

.error404 .entry-title {
    font-size: clamp(3rem, 8vw, 6rem);
    color: var(--clr-primary);
}

.error404 .search-form {
    display: flex;
    max-width: 400px;
    margin: 2rem auto 0;
}

.error404 .search-field {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-sm) 0 0 var(--radius-sm);
    font-family: var(--ff-body);
}

.error404 .search-submit {
    padding: 12px 20px;
    background: var(--clr-primary);
    color: #fff;
    border: none;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-weight: 600;
    cursor: pointer;
}

/* ==========================================================================
   22. WP Core Alignment
   ========================================================================== */

.alignnone { margin: 0.75rem 1.5rem 1.5rem 0; }
.aligncenter { display: block; margin: 0.75rem auto; }
.alignright { float: right; margin: 0.75rem 0 1.5rem 1.5rem; }
.alignleft { float: left; margin: 0.75rem 1.5rem 1.5rem 0; }

.wp-caption { max-width: 100%; margin-bottom: 1.5rem; }
.wp-caption img { border-radius: var(--radius-md) var(--radius-md) 0 0; }
.wp-caption-text {
    font-size: 0.85rem;
    color: var(--clr-text-muted);
    text-align: center;
    padding: 0.5rem 0.75rem;
    background: var(--clr-bg-soft);
    border-radius: 0 0 var(--radius-md) var(--radius-md);
}

.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 0.75rem; margin-bottom: 1.5rem; }
.gallery-item img { border-radius: var(--radius-sm); }

/* ==========================================================================
   23. Print Styles
   ========================================================================== */

@media print {
    body { background: #fff; color: #000; font-size: 12pt; }
    .site-header, .site-footer, .sidebar, .newsletter-bar, .comments-area,
    .home-hero, .home-categories, .home-trust, .related-posts { display: none; }
    a { color: #000; text-decoration: underline; }
    .single .entry-content > p:first-of-type::first-letter { float: none; font-size: inherit; padding: 0; color: inherit; }
}

/* ==========================================================================
   24. Reduced Motion
   ========================================================================== */

@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;
    }
}