/*
Theme Name: YouthBlazer
Theme URI:
Author: Caleb Holland
Author URI:
Description: A bright, kid-friendly, author-focused WordPress theme for Caleb Holland — a 12-year-old author, youth trailblazer, and reading advocate.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: youthblazer
Tags: custom-logo, custom-menu, featured-images, blog, education
*/

/* ==========================================================================
   CSS Custom Properties — Kid-Friendly Colour Palette
   ========================================================================== */
:root {
    /* Bold teal-green — primary brand colour, adventurous and vibrant */
    --yb-primary: #1B998B;
    /* Warm golden-orange — accent for CTAs and highlights, energetic and fun */
    --yb-secondary: #F4A024;
    /* Bright coral-red — supporting pop colour for emphasis */
    --yb-accent: #E84855;
    /* Pale cream — warm, inviting light background */
    --yb-bg-light: #FFF9F0;
    /* Deep slate — dark background for contrast sections */
    --yb-bg-dark: #2D3142;
    /* Near-black — main body text, easy to read */
    --yb-text-primary: #2D2D2D;
    /* White — text on dark backgrounds */
    --yb-text-light: #FFFFFF;
    /* Subtle warm grey — borders and dividers */
    --yb-border: #E0D8CE;
}

/* ==========================================================================
   Reset & Base
   ========================================================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Nunito Sans', sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--yb-text-primary);
    background-color: var(--yb-bg-light);
    -webkit-font-smoothing: antialiased;
}

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

a {
    color: var(--yb-primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--yb-accent);
}

ul, ol {
    list-style: none;
}

/* ==========================================================================
   Typography
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    line-height: 1.3;
    color: var(--yb-text-primary);
    margin-bottom: 0.5em;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.1rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1em;
}

blockquote {
    border-left: 4px solid var(--yb-secondary);
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    background: rgba(244, 160, 36, 0.08);
    border-radius: 0 8px 8px 0;
    font-style: italic;
    font-size: 1.1rem;
}

/* ==========================================================================
   Layout
   ========================================================================== */
.yb-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.yb-section {
    padding: 3rem 0;
}

.yb-section--alt {
    background-color: #FFFFFF;
}

.yb-section--dark {
    background-color: var(--yb-bg-dark);
    color: var(--yb-text-light);
}

.yb-section--dark h2,
.yb-section--dark h3 {
    color: var(--yb-text-light);
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.yb-btn {
    display: inline-block;
    padding: 14px 28px;
    font-size: 1rem;
    font-weight: 700;
    font-family: 'Nunito', sans-serif;
    color: var(--yb-text-light);
    background-color: var(--yb-primary);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.2s ease, transform 0.1s ease;
    min-height: 44px;
    min-width: 44px;
    text-align: center;
}

.yb-btn:hover {
    background-color: #167E73;
    color: var(--yb-text-light);
    transform: translateY(-1px);
}

.yb-btn--secondary {
    background-color: var(--yb-secondary);
}

.yb-btn--secondary:hover {
    background-color: #D88D1F;
    color: var(--yb-text-light);
}

.yb-btn--accent {
    background-color: var(--yb-accent);
}

.yb-btn--accent:hover {
    background-color: #C93B47;
    color: var(--yb-text-light);
}

.yb-btn-group {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1.5rem;
}

/* ==========================================================================
   Header
   ========================================================================== */
.yb-header {
    background-color: #FFFFFF;
    border-bottom: 2px solid var(--yb-border);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.yb-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.yb-header__logo img {
    max-height: 50px;
    width: auto;
}

.yb-header__logo .site-title {
    font-family: 'Nunito', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--yb-primary);
}

.yb-header__logo .site-title a {
    color: inherit;
    text-decoration: none;
}

/* Navigation */
.yb-nav ul {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.yb-nav ul li a {
    display: block;
    padding: 0.5rem 0.75rem;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--yb-text-primary);
    border-radius: 6px;
    transition: background-color 0.2s ease, color 0.2s ease;
    min-height: 44px;
    display: flex;
    align-items: center;
}

.yb-nav ul li a:hover,
.yb-nav ul li.current-menu-item a,
.yb-nav ul li.current_page_item a {
    background-color: var(--yb-primary);
    color: var(--yb-text-light);
}

/* Hamburger */
.yb-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    min-height: 44px;
    min-width: 44px;
}

.yb-menu-toggle__bar {
    display: block;
    width: 28px;
    height: 3px;
    background-color: var(--yb-text-primary);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.yb-menu-toggle__bar + .yb-menu-toggle__bar {
    margin-top: 6px;
}

.yb-menu-toggle[aria-expanded="true"] .yb-menu-toggle__bar:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.yb-menu-toggle[aria-expanded="true"] .yb-menu-toggle__bar:nth-child(2) {
    opacity: 0;
}

.yb-menu-toggle[aria-expanded="true"] .yb-menu-toggle__bar:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.yb-hero {
    position: relative;
    background-color: var(--yb-bg-dark);
    color: var(--yb-text-light);
    padding: 4rem 0;
    min-height: 400px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.yb-hero__image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 15%;
}

.yb-hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.25) 100%);
    z-index: 1;
}

.yb-hero__content {
    position: relative;
    z-index: 2;
    max-width: 700px;
}

.yb-hero h1 {
    color: var(--yb-text-light);
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.yb-hero h2 {
    color: var(--yb-text-light);
}

.yb-hero p {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 1rem;
    text-shadow: 0 1px 4px rgba(0,0,0,0.2);
}

.yb-hero .yb-btn {
    margin-top: 0.5rem;
}

/* Image placeholder */
.yb-image-placeholder {
    background-color: var(--yb-border);
    color: var(--yb-text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
    border-radius: 8px;
    min-height: 200px;
    font-style: italic;
    font-size: 0.9rem;
}

/* ==========================================================================
   Cards
   ========================================================================== */
.yb-card {
    background: #FFFFFF;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.yb-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.yb-card__image {
    width: 100%;
    aspect-ratio: 16 / 9;
    max-height: 220px;
    object-fit: cover;
    object-position: center 15%;
}

.yb-card__image-placeholder {
    width: 100%;
    aspect-ratio: 16 / 9;
    max-height: 220px;
    background-color: var(--yb-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-style: italic;
    color: #999;
    font-size: 0.85rem;
}

.yb-card__body {
    padding: 1.25rem;
}

.yb-card__title {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.yb-card__excerpt {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.75rem;
}

.yb-card__meta {
    font-size: 0.8rem;
    color: #999;
}

.yb-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--yb-border);
}

.yb-card__link {
    display: inline-block;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--yb-primary);
}

/* ==========================================================================
   Grids
   ========================================================================== */
.yb-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: 1fr;
}

.yb-grid--2 { grid-template-columns: 1fr; }
.yb-grid--3 { grid-template-columns: 1fr; }
.yb-grid--4 { grid-template-columns: 1fr; }

/* ==========================================================================
   Feature Blocks (used on home page sections)
   ========================================================================== */
.yb-feature {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
    text-align: center;
}

.yb-feature__image {
    width: 100%;
    max-width: 400px;
    border-radius: 12px;
    overflow: hidden;
}

.yb-feature__image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    object-position: center 15%;
    border-radius: 12px;
}

.yb-feature__content {
    max-width: 600px;
}

/* ==========================================================================
   Visual List / Icon Cards (Reading Initiative, Fun Facts)
   ========================================================================== */
.yb-visual-list {
    display: grid;
    gap: 1rem;
    grid-template-columns: 1fr;
}

.yb-visual-item {
    background: #FFFFFF;
    border-radius: 10px;
    padding: 1.25rem 1.5rem;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
    border-left: 4px solid var(--yb-primary);
    font-weight: 600;
    font-size: 1rem;
    transition: transform 0.2s ease;
}

.yb-visual-item:hover {
    transform: translateX(4px);
}

.yb-visual-item--accent {
    border-left-color: var(--yb-secondary);
}

/* Quote callout */
.yb-quote-callout {
    background: linear-gradient(135deg, var(--yb-primary), #14796F);
    color: var(--yb-text-light);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    font-size: 1.25rem;
    font-weight: 700;
    font-style: italic;
    margin: 2rem 0;
}

/* Compact hero for inner pages */
.yb-hero--compact {
    min-height: 280px;
    padding: 3rem 0;
}

.yb-blog-intro {
    max-width: 700px;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--yb-border);
}

/* ==========================================================================
   Blog / Archive
   ========================================================================== */
.yb-blog-layout {
    display: grid;
    gap: 2rem;
    grid-template-columns: 1fr;
}

.yb-blog-layout--sidebar {
    grid-template-columns: 1fr;
}

.yb-post-list {
    display: grid;
    gap: 1.5rem;
}

/* Pagination */
.yb-pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.yb-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    font-weight: 600;
    background: #FFFFFF;
    color: var(--yb-text-primary);
    border: 2px solid var(--yb-border);
    transition: background-color 0.2s ease, color 0.2s ease;
}

.yb-pagination .page-numbers.current,
.yb-pagination .page-numbers:hover {
    background-color: var(--yb-primary);
    color: var(--yb-text-light);
    border-color: var(--yb-primary);
}

/* ==========================================================================
   Sidebar
   ========================================================================== */
.yb-sidebar .widget {
    background: #FFFFFF;
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.yb-sidebar .widget-title {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--yb-secondary);
}

.yb-sidebar .widget ul li {
    padding: 0.4rem 0;
    border-bottom: 1px solid var(--yb-border);
}

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

.yb-sidebar .widget ul li a {
    color: var(--yb-text-primary);
    font-weight: 500;
}

.yb-sidebar .widget ul li a:hover {
    color: var(--yb-primary);
}

/* Search widget */
.yb-sidebar .search-form {
    display: flex;
    gap: 0.5rem;
}

.yb-sidebar .search-field {
    flex: 1;
    padding: 0.5rem 0.75rem;
    border: 2px solid var(--yb-border);
    border-radius: 6px;
    font-size: 0.9rem;
    min-height: 44px;
}

.yb-sidebar .search-submit {
    padding: 0.5rem 1rem;
    background: var(--yb-primary);
    color: var(--yb-text-light);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    min-height: 44px;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.yb-footer {
    background-color: var(--yb-bg-dark);
    color: var(--yb-text-light);
    padding: 3rem 0 1.5rem;
}

.yb-footer__grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: 1fr;
    margin-bottom: 2rem;
}

.yb-footer h4 {
    color: var(--yb-secondary);
    margin-bottom: 1rem;
    font-size: 1rem;
}

.yb-footer ul li {
    margin-bottom: 0.5rem;
}

.yb-footer ul li a {
    color: var(--yb-text-light);
    opacity: 0.85;
    transition: opacity 0.2s ease;
    font-size: 0.95rem;
}

.yb-footer ul li a:hover {
    opacity: 1;
    color: var(--yb-secondary);
}

.yb-footer__email a {
    color: var(--yb-secondary);
    font-weight: 600;
}

.yb-footer__social {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
}

.yb-footer__social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: var(--yb-text-light);
    transition: background-color 0.2s ease;
}

.yb-footer__social a:hover {
    background-color: var(--yb-secondary);
}

.yb-footer__social svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.yb-footer__copyright {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    font-size: 0.85rem;
    opacity: 0.7;
}

/* ==========================================================================
   Comments
   ========================================================================== */
.yb-comments {
    margin-top: 3rem;
}

.yb-comments .comment-list {
    margin-bottom: 2rem;
}

.yb-comments .comment {
    background: #FFFFFF;
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 1rem;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.yb-comments .comment .children {
    margin-left: 1.5rem;
    margin-top: 1rem;
}

.yb-comments .comment-author {
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.yb-comments .comment-metadata {
    font-size: 0.8rem;
    color: #999;
    margin-bottom: 0.75rem;
}

.yb-comments .comment-respond {
    background: #FFFFFF;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.yb-comments .comment-respond label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.yb-comments .comment-respond input[type="text"],
.yb-comments .comment-respond input[type="email"],
.yb-comments .comment-respond input[type="url"],
.yb-comments .comment-respond textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--yb-border);
    border-radius: 6px;
    font-size: 0.95rem;
    margin-bottom: 1rem;
    font-family: inherit;
    min-height: 44px;
}

.yb-comments .comment-respond textarea {
    min-height: 120px;
    resize: vertical;
}

.yb-comments .form-submit input[type="submit"] {
    padding: 14px 28px;
    background: var(--yb-primary);
    color: var(--yb-text-light);
    border: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    min-height: 44px;
    transition: background-color 0.2s ease;
}

.yb-comments .form-submit input[type="submit"]:hover {
    background-color: #167E73;
}

/* ==========================================================================
   Media & Press
   ========================================================================== */
.yb-media-section {
    background: #FFFFFF;
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.yb-media-section h3 {
    color: var(--yb-primary);
    margin-bottom: 0.75rem;
}

/* ==========================================================================
   Contact
   ========================================================================== */
.yb-contact-intro {
    margin-bottom: 2rem;
    font-size: 1.05rem;
}

.yb-contact-form-area {
    background: #FFFFFF;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    margin-bottom: 2rem;
}

.yb-contact-form-placeholder {
    background: #FFFFFF;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    border: 2px dashed var(--yb-border);
    margin: 1.5rem 0;
}

/* Contact Form 7 styling */
.yb-contact-form-area .wpcf7-form label {
    display: block;
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
    color: var(--yb-text-primary);
}

.yb-contact-form-area .wpcf7-form-control:not([type="submit"]) {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--yb-border);
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'Nunito Sans', sans-serif;
    min-height: 44px;
    margin-bottom: 1.25rem;
    transition: border-color 0.2s ease;
    background: var(--yb-bg-light);
}

.yb-contact-form-area .wpcf7-form-control:not([type="submit"]):focus {
    outline: none;
    border-color: var(--yb-primary);
    box-shadow: 0 0 0 3px rgba(27, 153, 139, 0.15);
}

.yb-contact-form-area .wpcf7-form textarea {
    min-height: 150px;
    resize: vertical;
}

.yb-contact-form-area .wpcf7-form input[type="submit"] {
    display: inline-block;
    padding: 14px 36px;
    font-size: 1rem;
    font-weight: 700;
    font-family: 'Nunito', sans-serif;
    color: var(--yb-text-light);
    background-color: var(--yb-primary);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    min-height: 44px;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

.yb-contact-form-area .wpcf7-form input[type="submit"]:hover {
    background-color: #167E73;
    transform: translateY(-1px);
}

.yb-contact-form-area .wpcf7-not-valid-tip {
    color: var(--yb-accent);
    font-size: 0.85rem;
    margin-top: -1rem;
    margin-bottom: 1rem;
}

.yb-contact-form-area .wpcf7-response-output {
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1rem;
    font-size: 0.95rem;
}

.yb-contact-email {
    font-size: 1.15rem;
    margin: 1.5rem 0;
}

.yb-contact-email a {
    color: var(--yb-primary);
    font-weight: 700;
}

/* ==========================================================================
   404 & Search
   ========================================================================== */
.yb-404,
.yb-search-results {
    text-align: center;
    padding: 4rem 0;
}

.yb-404 h1 {
    font-size: 5rem;
    color: var(--yb-secondary);
}

.yb-search-form {
    display: flex;
    gap: 0.5rem;
    max-width: 500px;
    margin: 1.5rem auto;
}

.yb-search-form .search-field {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 2px solid var(--yb-border);
    border-radius: 8px;
    font-size: 1rem;
    min-height: 44px;
}

.yb-search-form .search-submit {
    padding: 0.75rem 1.5rem;
    background: var(--yb-primary);
    color: var(--yb-text-light);
    border: none;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    min-height: 44px;
}

/* Nomination form placeholder */
#nomination-form {
    background: #FFFFFF;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    border: 2px dashed var(--yb-border);
    margin: 1.5rem 0;
    font-style: italic;
    color: #666;
}

/* ==========================================================================
   WordPress Generated Classes
   ========================================================================== */
.alignleft {
    float: left;
    margin-right: 1.5rem;
    margin-bottom: 1rem;
}

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

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

.wp-caption {
    max-width: 100%;
}

.wp-caption-text {
    font-size: 0.85rem;
    color: #666;
    text-align: center;
    padding: 0.5rem 0;
}

.gallery {
    display: grid;
    gap: 0.5rem;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    margin-bottom: 1.5rem;
}

.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute;
    height: 1px;
    width: 1px;
    overflow: hidden;
    word-wrap: normal;
}

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

/* ==========================================================================
   Responsive — Tablet (768px+)
   ========================================================================== */
@media (min-width: 768px) {
    .yb-grid--2 { grid-template-columns: repeat(2, 1fr); }
    .yb-grid--3 { grid-template-columns: repeat(2, 1fr); }
    .yb-grid--4 { grid-template-columns: repeat(2, 1fr); }

    .yb-visual-list {
        grid-template-columns: repeat(2, 1fr);
    }

    .yb-feature {
        flex-direction: row;
        text-align: left;
    }

    .yb-feature--reverse {
        flex-direction: row-reverse;
    }

    .yb-feature__image {
        flex: 0 0 45%;
    }

    .yb-feature__content {
        flex: 1;
    }

    .yb-footer__grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .yb-blog-layout--sidebar {
        grid-template-columns: 2fr 1fr;
    }

    h1 { font-size: 3rem; }
    h2 { font-size: 2.25rem; }

    .yb-hero {
        padding: 5rem 0;
        min-height: 480px;
    }

    .yb-hero h1 {
        font-size: 3rem;
    }
}

/* ==========================================================================
   Responsive — Desktop (1024px+)
   ========================================================================== */
@media (min-width: 1024px) {
    .yb-grid--3 { grid-template-columns: repeat(3, 1fr); }
    .yb-grid--4 { grid-template-columns: repeat(4, 1fr); }

    .yb-visual-list {
        grid-template-columns: repeat(3, 1fr);
    }

    .yb-hero {
        padding: 6rem 0;
        min-height: 520px;
    }

    .yb-hero h1 {
        font-size: 3.5rem;
    }
}

/* ==========================================================================
   Mobile Navigation
   ========================================================================== */
@media (max-width: 767px) {
    .yb-menu-toggle {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .yb-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #FFFFFF;
        border-bottom: 2px solid var(--yb-border);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }

    .yb-nav.is-open {
        display: block;
    }

    .yb-nav ul {
        flex-direction: column;
        padding: 1rem;
    }

    .yb-nav ul li a {
        padding: 0.75rem 1rem;
        border-radius: 8px;
    }
}
