/*
 Theme Name:   C-17 Pilot Theme
 Theme URI:    https://c17pilot.com
 Description:  Child theme of FoxDog Universal for C-17 Pilot
 Author:       FoxDog Media
 Author URI:   https://foxdogmedia.com
 Template:     foxdog-universal-v1.4.1
 Version:      1.4.1
 License:      GNU General Public License v2 or later
 License URI:  http://www.gnu.org/licenses/gpl-2.0.html
 Text Domain:  c17pilot
*/

/* ==========================================================================
   TYPOGRAPHY - Work Sans (Simple Flying Style)
   ========================================================================== */

body,
.site-title,
.entry-title,
h1, h2, h3, h4, h5, h6,
.tile-title,
.hero-title,
.section-title,
.main-navigation a,
.cat-pill {
    font-family: 'Work Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Heading weights */
h1, .entry-title, .hero-title {
    font-weight: 800;
    letter-spacing: -0.02em;
}

h2, .section-title {
    font-weight: 700;
    letter-spacing: -0.01em;
}

h3, h4, .tile-title {
    font-weight: 600;
}

/* Navigation typography */
.main-navigation a {
    font-weight: 600;
    font-size: 0.9375rem;
    letter-spacing: 0.01em;
}

/* Body text */
body {
    font-weight: 400;
    line-height: 1.7;
}

/* Strong emphasis */
strong, b {
    font-weight: 600;
}


/* ==========================================================================
   Full-Width Header Reset
   ========================================================================== */

body {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

#page.site {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.site-main {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

.site-main > .container {
    padding-top: 0 !important;
    margin-top: 0 !important;
    padding-left: 1rem;
    padding-right: 1rem;
}

.site-header-compact + .site-main,
.site-header-compact + main,
.site-header + .site-main {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* ==========================================================================
   Compact Header with Dark Background
   ========================================================================== */

#page.site {
    padding: 0 !important;
    margin: 0 !important;
}

.site-header-compact {
    background: linear-gradient(135deg, #1e3a5f 0%, #0d1b2a 100%);
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    padding: 0 !important;
    margin: 0 !important;
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: calc(-50vw + 50%) !important;
    position: relative;
    box-sizing: border-box;
}

.site-header-compact .container {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    max-width: 1200px;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 1rem !important;
    padding-right: 1rem !important;
}

.site-header-compact .header-inner {
    padding: 0.5rem 0 !important;
    margin: 0 !important;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-header-compact .site-branding {
    padding: 0 !important;
    margin: 0 !important;
}

.site-header-compact .site-title-logo {
    font-size: 1.5rem;
    margin: 0;
    padding: 0.5rem 0;
}

.site-header-compact .site-title-logo a {
    text-decoration: none;
    display: inline-flex;
    align-items: baseline;
    gap: 0.15rem;
    flex-wrap: nowrap;
    white-space: nowrap;
}

/* C-17 in bold white */
.site-header-compact .site-title-logo .logo-part-1 {
    color: #ffffff !important;
    font-weight: 800;
    font-size: 1.6rem;
    letter-spacing: -0.5px;
}

/* Pilot in light blue - same size as C-17 */
.site-header-compact .site-title-logo .logo-part-2 {
    color: #60a5fa !important;
    font-weight: 600;
    font-size: 1.6rem;
    letter-spacing: -0.5px;
}

.site-header-compact .site-title-logo .logo-accent {
    display: none;
}

.site-header-compact .site-description {
    display: none;
}

/* ==========================================================================
   Header Layout with Search
   ========================================================================== */

.header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* ==========================================================================
   Navigation - Light Text on Dark Header
   ========================================================================== */

.site-header-compact .main-navigation {
    display: flex;
    align-items: center;
}

.site-header-compact .main-navigation ul {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.25rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-header-compact .main-navigation li {
    display: inline-block;
    margin: 0;
    padding: 0;
}

.site-header-compact .main-navigation a {
    display: inline-block;
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: rgba(255,255,255,0.95) !important;
    border-radius: 4px;
    transition: all 0.2s ease;
    white-space: nowrap;
    line-height: 1.2;
}

.site-header-compact .main-navigation a:hover {
    color: #ffffff !important;
    background: rgba(255,255,255,0.15);
}

.site-header-compact .mobile-menu-toggle {
    color: white;
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    padding: 0.5rem;
    cursor: pointer;
    line-height: 1;
}

/* Mobile Header Layout */
@media (max-width: 768px) {
    .site-header-compact .mobile-menu-toggle {
        display: block;
        order: 2;
    }

    .site-header-compact .site-branding {
        order: 1;
        flex: 1;
    }

    .site-header-compact .header-right {
        display: none !important;
    }

    .site-header-compact .header-inner {
        padding: 0.75rem 0 !important;
    }
}

/* ==========================================================================
   Search in Header - Amazon/Walmart Style
   ========================================================================== */

.header-search {
    flex: 1;
    max-width: 280px;
    margin: 0 1rem;
}

.search-form {
    display: flex;
    align-items: stretch;
    background: #f3f4f6;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid transparent;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-form:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.1);
}

.search-field {
    flex: 1;
    border: none;
    background: transparent;
    padding: 0.4rem 0.75rem;
    font-size: 0.875rem;
    outline: none;
    min-width: 0;
}

.search-field::placeholder {
    color: #9ca3af;
}

.search-submit {
    background: var(--accent, #1a73e8);
    border: none;
    padding: 0.4rem 0.6rem;
    cursor: pointer;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.search-submit:hover {
    background: var(--accent-hover, #0d5bba);
}

/* ==========================================================================
   Hero Carousel
   ========================================================================== */

.hero-carousel {
    position: relative;
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: calc(-50vw + 50%) !important;
    margin-right: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #334155 0%, #1e293b 100%);
    padding-top: 1.5rem;
    box-sizing: border-box;
    overflow: hidden;
}

.carousel-container {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0;
    overflow: hidden;
}

.carousel-track {
    display: flex;
    flex-wrap: nowrap;
    transition: transform 0.5s ease;
    width: 100%;
    gap: 0;
}

.carousel-slide {
    min-width: 100%;
    width: 100%;
    flex: 0 0 100%;
    flex-shrink: 0;
    margin: 0;
    padding: 0;
}

/* ==========================================================================
   Hero Section - Full Width Enhanced
   ========================================================================== */

.hero-compact {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    align-items: center;
    background: transparent;
    border-radius: 8px;
    overflow: hidden;
    box-sizing: border-box;
    max-width: 900px;
    margin: 0 auto;
}

/* Carousel Navigation Arrows */
.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.15);
    border: none;
    color: white;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 10;
}

.carousel-arrow:hover {
    background: rgba(255,255,255,0.25);
}

.carousel-prev {
    left: 20px;
}

.carousel-next {
    right: 20px;
}

/* Carousel Dots */
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 0;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.4);
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
}

.carousel-dot:hover {
    background: rgba(255,255,255,0.6);
}

.carousel-dot.active {
    background: white;
    transform: scale(1.2);
}

@media (max-width: 1200px) {
    .carousel-container {
        padding: 0 1rem;
    }
}

@media (max-width: 768px) {
    .carousel-arrow {
        width: 36px;
        height: 36px;
    }

    .carousel-prev {
        left: 0.5rem;
    }

    .carousel-next {
        right: 0.5rem;
    }
}

.hero-image {
    aspect-ratio: 16/9;
    overflow: hidden;
    position: relative;
    max-height: 280px;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-content {
    padding: 1.25rem 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: white;
}

.hero-category {
    display: inline-block;
    background: rgba(255,255,255,0.15);
    color: #60a5fa;
    padding: 0.35rem 0.875rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
    width: fit-content;
    border: 1px solid rgba(96, 165, 250, 0.3);
}

.hero-title {
    font-size: 1.625rem;
    line-height: 1.2;
    margin: 0 0 0.5rem;
    font-weight: 800;
}

.hero-title a {
    color: white;
    text-decoration: none;
}

.hero-title a:hover {
    color: #60a5fa;
}

.hero-excerpt {
    font-size: 0.875rem;
    line-height: 1.5;
    color: rgba(255,255,255,0.8);
    margin: 0 0 0.75rem;
}

.hero-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.75rem;
    color: rgba(255,255,255,0.6);
    margin-bottom: 0.75rem;
}

.hero-cta {
    display: inline-block;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    padding: 0.6rem 1.25rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.85rem;
    text-decoration: none;
    transition: all 0.2s ease;
    width: fit-content;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.hero-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.5);
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
}

/* ==========================================================================
   Category Banner - Uniform Blue Pills
   ========================================================================== */

.category-banner {
    display: flex;
    flex-wrap: wrap;
    gap: 0.625rem;
    justify-content: center;
    padding: 1rem 0;
    margin-bottom: 1.5rem;
    background: #f8fafc;
    border-radius: 8px;
}

.cat-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1.25rem;
    border-radius: 999px;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    background: linear-gradient(135deg, #1e3a5f 0%, #0d1b2a 100%);
    color: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}

.cat-pill:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    background: linear-gradient(135deg, #2d4a6f 0%, #1e3a5f 100%);
    color: white;
}

/* ==========================================================================
   Recent Articles Grid
   ========================================================================== */

.recent-grid {
    margin-bottom: 1rem;
}

.section-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
    padding-bottom: 0.25rem;
    border-bottom: 2px solid var(--accent, #1a73e8);
    display: inline-block;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
}

.article-tile {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.article-tile:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.tile-image {
    display: block;
    aspect-ratio: 16/10;
    overflow: hidden;
}

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

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

.tile-content {
    padding: 0.5rem 0.75rem;
}

.tile-title {
    font-size: 1.1rem;
    line-height: 1.2;
    margin: 0 0 0.25rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #111827;
}

.tile-title a {
    color: inherit;
    text-decoration: none;
}

.tile-title a:hover {
    color: var(--accent, #1a73e8);
}

.tile-meta {
    display: flex;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: var(--text-secondary, #6b7280);
}

/* ==========================================================================
   Category Sections
   ========================================================================== */

.category-section {
    margin-bottom: 1rem;
    padding: 0.5rem 1rem 0;
    border-top: 1px solid #e5e7eb;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.view-all-link {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--accent, #1a73e8);
    text-decoration: none;
}

.view-all-link:hover {
    text-decoration: underline;
}

/* Responsive grids based on post count */
.articles-grid-1 {
    grid-template-columns: 1fr;
    max-width: 300px;
}

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

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

/* ==========================================================================
   Posts List (for pagination pages)
   ========================================================================== */

.posts-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

/* ==========================================================================
   Mobile Responsive
   ========================================================================== */

@media (max-width: 1024px) {
    .articles-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

@media (max-width: 768px) {
    .header-search {
        display: none;
    }

    .header-right {
        display: none;
    }

    .hero-compact {
        grid-template-columns: 1fr;
    }

    .hero-content {
        padding: 1.25rem;
    }

    .hero-title {
        font-size: 1.25rem;
    }

    .hero-excerpt {
        font-size: 0.875rem;
    }

    .articles-grid {
        grid-template-columns: 1fr;
    }

    .posts-list {
        grid-template-columns: 1fr;
    }

    .category-banner {
        gap: 0.5rem;
    }

    .cat-pill {
        padding: 0.4rem 1rem;
        font-size: 0.8rem;
    }
}

/* ==========================================================================
   Footer Styling - Smaller Fonts
   ========================================================================== */

.site-footer {
    font-size: 0.875rem;
}

.site-footer .footer-widgets {
    font-size: 0.875rem;
}

.site-footer .widget-title,
.site-footer h3,
.site-footer h4 {
    font-size: 1rem !important;
    margin-bottom: 0.75rem;
}

.site-footer .widget ul li,
.site-footer .widget p,
.site-footer a {
    font-size: 0.8125rem;
    line-height: 1.6;
}

.site-footer .widget ul li {
    margin-bottom: 0.35rem;
}

.site-footer .footer-bottom,
.site-footer .site-info {
    font-size: 0.75rem;
}

/* ==========================================================================
   Featured Image - Controlled Size
   ========================================================================== */

.single .featured-image,
.single-post .featured-image {
    max-height: 200px;
    overflow: hidden;
    margin-bottom: 1.5rem;
    border-radius: 8px;
}

.single .featured-image img,
.single-post .featured-image img {
    width: 100%;
    height: 200px !important;
    max-height: 200px !important;
    object-fit: cover;
    object-position: center;
}

/* ==========================================================================
   Article Typography - CNN/News Site Best Practices
   ========================================================================== */

/* Article Container */
.single .entry-content,
.single .post-content,
article.post .entry-content {
    max-width: 720px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 1.0625rem;
    line-height: 1.75;
    color: #1a1a1a;
}

/* Hide duplicate H1s inside content - theme provides the title */
.single .entry-content h1,
article.post .entry-content h1 {
    display: none;
}

/* Article Title - H1 - Large, Bold, High Contrast */
.single .entry-title,
.single h1.entry-title,
article h1 {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.03em;
    color: #0a0a0a;
    margin-bottom: 1rem;
}

/* Article H2 - Clear Section Headers */
.single .entry-content h2,
article.post .entry-content h2 {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 1.625rem;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.02em;
    color: #1a1a1a;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e5e7eb;
}

/* Article H3 - Subsection Headers */
.single .entry-content h3,
article.post .entry-content h3 {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.3;
    color: #1a1a1a;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

/* Article H4 */
.single .entry-content h4,
article.post .entry-content h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #374151;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

/* Paragraphs - Optimized for Reading */
.single .entry-content p,
article.post .entry-content p {
    margin-bottom: 1.5rem;
    color: #1f2937;
}

/* First paragraph after title - Larger intro */
.single .entry-content > p:first-of-type {
    font-size: 1.1875rem;
    line-height: 1.7;
    color: #374151;
}

/* Links in Content - Clear, Accessible */
.single .entry-content a,
article.post .entry-content a {
    color: #1a73e8;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
    transition: color 0.15s ease;
}

.single .entry-content a:hover,
article.post .entry-content a:hover {
    color: #0d5bba;
    text-decoration-thickness: 2px;
}

/* Lists - Clean, Scannable */
.single .entry-content ul,
.single .entry-content ol,
article.post .entry-content ul,
article.post .entry-content ol {
    margin: 1.5rem 0;
    padding-left: 1.5rem;
}

.single .entry-content li,
article.post .entry-content li {
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

.single .entry-content ul li::marker {
    color: #1a73e8;
}

/* Blockquotes - Stand Out */
.single .entry-content blockquote,
article.post .entry-content blockquote {
    margin: 2rem 0;
    padding: 1.5rem 1.5rem 1.5rem 2rem;
    border-left: 4px solid #1a73e8;
    background: #f8fafc;
    font-size: 1.125rem;
    font-style: italic;
    color: #374151;
}

/* Images in Articles */
.single .entry-content img,
article.post .entry-content img {
    border-radius: 8px;
    margin: 1.5rem auto;
    display: block;
}

.single .entry-content figure,
article.post .entry-content figure {
    margin: 2rem 0;
}

.single .entry-content figcaption,
article.post .entry-content figcaption {
    font-size: 0.875rem;
    color: #6b7280;
    text-align: center;
    margin-top: 0.75rem;
    font-style: italic;
}

/* Tables - Clean, Readable */
.single .entry-content table,
article.post .entry-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    font-size: 0.9375rem;
}

.single .entry-content th,
article.post .entry-content th {
    background: #1e3a5f;
    color: white;
    font-weight: 600;
    text-align: left;
    padding: 0.875rem 1rem;
}

.single .entry-content td,
article.post .entry-content td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.single .entry-content tr:hover td,
article.post .entry-content tr:hover td {
    background: #f8fafc;
}

/* Strong/Bold Text */
.single .entry-content strong,
article.post .entry-content strong {
    font-weight: 600;
    color: #111827;
}

/* Author Byline */
.entry-meta,
.post-meta,
.byline-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.entry-meta .author,
.post-meta .author {
    font-weight: 600;
    color: #374151;
}

.entry-meta .posted-on,
.post-meta .posted-on {
    color: #6b7280;
}

/* Read Time Indicator */
.read-time {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.8125rem;
    color: #6b7280;
}

.read-time::before {
    content: "•";
    margin-right: 0.5rem;
}

/* Related Articles Section */
.related-posts,
.related-articles {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid #e5e7eb;
}

.related-posts h2,
.related-articles h2 {
    font-size: 1.25rem !important;
    font-weight: 700;
    margin-bottom: 1rem !important;
    margin-top: 0 !important;
    border-bottom: none !important;
    padding-bottom: 0 !important;
}

.related-posts ul,
.related-articles ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.related-posts li,
.related-articles li {
    margin-bottom: 0.75rem;
    padding-left: 0;
}

.related-posts a,
.related-articles a {
    color: #1a73e8;
    font-weight: 500;
}

/* Horizontal Rules */
.single .entry-content hr,
article.post .entry-content hr {
    border: none;
    height: 1px;
    background: #e5e7eb;
    margin: 2.5rem 0;
}

/* FAQ Styling */
.single .entry-content p strong:first-child,
article.post .entry-content p strong:first-child {
    display: block;
    margin-bottom: 0.25rem;
}

/* Mobile Article Typography */
@media (max-width: 768px) {
    .single .entry-title,
    .single h1.entry-title,
    article h1 {
        font-size: 1.75rem;
        line-height: 1.2;
    }

    .single .entry-content h2,
    article.post .entry-content h2 {
        font-size: 1.375rem;
    }

    .single .entry-content h3,
    article.post .entry-content h3 {
        font-size: 1.125rem;
    }

    .single .entry-content,
    article.post .entry-content {
        font-size: 1rem;
        line-height: 1.7;
    }

    .single .entry-content > p:first-of-type {
        font-size: 1.0625rem;
    }
}

/* ==========================================================================
   Article Layout with Sidebar
   ========================================================================== */

.article-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 2.5rem;
    max-width: 1100px;
    margin: 0 auto;
}

.article-content {
    min-width: 0;
}

/* Sidebar Styles */
.article-sidebar {
    position: sticky;
    top: 1.5rem;
    align-self: start;
}

.sidebar-widget {
    background: #f8fafc;
    border-radius: 10px;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
    border: 1px solid #e5e7eb;
}

.sidebar-widget-title {
    font-size: 0.9375rem;
    font-weight: 700;
    color: #1e3a5f;
    margin: 0 0 1rem;
    padding-bottom: 0.625rem;
    border-bottom: 2px solid #1e3a5f;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Sidebar Post List with Thumbnails */
.sidebar-post-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-post-item {
    display: flex;
    gap: 0.75rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid #e5e7eb;
}

.sidebar-post-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.sidebar-post-item:first-child {
    padding-top: 0;
}

.sidebar-post-thumb {
    flex-shrink: 0;
    width: 70px;
    height: 50px;
    border-radius: 4px;
    overflow: hidden;
}

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

.sidebar-post-info {
    flex: 1;
    min-width: 0;
}

.sidebar-post-title {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1.35;
    color: #1a1a1a;
    text-decoration: none;
    margin-bottom: 0.25rem;
}

.sidebar-post-title:hover {
    color: #1a73e8;
}

.sidebar-post-date {
    font-size: 0.6875rem;
    color: #6b7280;
}

/* Simple Post List (no thumbnails) */
.sidebar-post-list-simple {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-post-list-simple li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #e5e7eb;
}

.sidebar-post-list-simple li:last-child {
    border-bottom: none;
}

.sidebar-post-list-simple a {
    font-size: 0.8125rem;
    color: #374151;
    text-decoration: none;
    line-height: 1.4;
    display: block;
}

.sidebar-post-list-simple a:hover {
    color: #1a73e8;
}

/* Sidebar Categories */
.sidebar-categories {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-categories li {
    margin-bottom: 0;
}

.sidebar-categories a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    font-size: 0.8125rem;
    color: #374151;
    text-decoration: none;
    border-bottom: 1px solid #e5e7eb;
}

.sidebar-categories li:last-child a {
    border-bottom: none;
}

.sidebar-categories a:hover {
    color: #1a73e8;
}

.sidebar-categories .cat-count {
    background: #e5e7eb;
    color: #6b7280;
    font-size: 0.6875rem;
    font-weight: 600;
    padding: 0.125rem 0.5rem;
    border-radius: 10px;
}

/* Mobile: Stack sidebar below content */
@media (max-width: 900px) {
    .article-layout {
        grid-template-columns: 1fr;
    }

    .article-sidebar {
        position: static;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}

@media (max-width: 600px) {
    .article-sidebar {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   STICKY NAVIGATION (Simple Flying Style)
   ========================================================================== */

.site-header-compact {
    position: sticky !important;
    top: 0;
    z-index: 1000;
    transition: box-shadow 0.3s ease;
}

.site-header-compact.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

/* Add space for sticky header */
.nav-spacer {
    height: 60px;
}

/* Ensure body doesn't jump when header becomes sticky */
body.has-sticky-header {
    scroll-padding-top: 70px;
}


/* ==========================================================================
   CATEGORY BADGES & READING TIME (Simple Flying Style)
   ========================================================================== */

/* Category badge on image */
.tile-image {
    position: relative;
}

.tile-category-badge {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    background: linear-gradient(135deg, #1e3a5f 0%, #2d4a6f 100%);
    color: white;
    padding: 0.25rem 0.625rem;
    border-radius: 3px;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* Meta separator */
.tile-separator {
    color: #9ca3af;
    font-size: 0.75rem;
}

/* Reading time styling */
.tile-read-time,
.hero-read-time {
    color: #6b7280;
    font-size: 0.75rem;
    font-weight: 500;
}

.hero-read-time {
    color: rgba(255,255,255,0.7);
}

/* Updated tile meta layout */
.tile-meta {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    flex-wrap: wrap;
}

.tile-meta time,
.tile-meta .tile-author {
    font-size: 0.75rem;
    color: #6b7280;
}

/* Hover effect for badge */
.article-tile:hover .tile-category-badge {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
}


/* New layout: Featured image after header, same width as content */
.article-content article .featured-image {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    left: auto !important;
    right: auto !important;
    position: relative !important;
    margin-top: 1.5rem;
    margin-bottom: 2rem;
    border-radius: 8px;
    overflow: hidden;
}

.article-content article .featured-image img {
    width: 100% !important;
    height: auto !important;
    border-radius: 8px;
    display: block;
}

/* Entry header styling */
.article-content article .entry-header {
    margin-bottom: 0;
}

.article-content article .entry-title {
    font-size: 2.25rem;
    line-height: 1.2;
    margin-bottom: 0.75rem;
}

/* Fix: Dark text on active nav item */
.main-navigation .current-menu-item a,
.main-navigation .current-menu-item a:hover {
    color: #1a1a2e !important;
}

/* Compact shop page - reduce whitespace */
.page-id-3200 .site-main { padding-top: 20px !important; padding-bottom: 20px !important; }
.page-id-3200 .container { padding-top: 0 !important; padding-bottom: 0 !important; }
.page-id-3200 .content-width { padding: 0 !important; margin-bottom: 20px !important; }
.page-id-3200 .entry-header { display: none; }
.page-id-3200 .entry-content { margin-top: 0 !important; padding-top: 0 !important; }

/* Shop hero fixes */
.page-id-3200 .shop-hero { max-width: 100%; width: calc(100% + 40px); margin-left: -20px; margin-right: -20px; padding: 35px 40px; }
.page-id-3200 .shop-hero, .page-id-3200 .shop-hero h2, .page-id-3200 .shop-hero p { color: #ffffff !important; }

/* Force 2-column product grid */
.page-id-3200 .product-grid { display: grid !important; grid-template-columns: repeat(2, 1fr) !important; gap: 20px !important; }

/* Hide category counts in footer */
.site-footer .cat-count,
.site-footer .category-count,
.footer-categories .count,
.site-footer li a::after { display: none !important; }

/* Footer description smaller */
.site-footer .site-description { font-size: 0.85rem !important; line-height: 1.5 !important; }

/* Gift banner dark background */
.page-id-3200 .gift-banner { background: linear-gradient(135deg, #232f3e 0%, #37475a 100%) !important; color: #fff !important; }
.page-id-3200 .gift-banner h3 { color: #fff !important; }
.page-id-3200 .gift-banner p { color: rgba(255,255,255,0.9) !important; }

/* Make shop page wider */
.page-id-3200 .content-width { max-width: 1000px !important; }
.page-id-3200 .entry-content { max-width: 100% !important; }

/* Gift banner proper styling */
.page-id-3200 .gift-banner {
    background: linear-gradient(135deg, #232f3e 0%, #37475a 100%) !important;
    border-radius: 16px !important;
    padding: 50px 40px !important;
    text-align: center !important;
    margin-top: 30px !important;
}
.page-id-3200 .gift-banner h3 {
    color: #fff !important;
    font-size: 1.6rem !important;
    margin-bottom: 15px !important;
}
.page-id-3200 .gift-banner p {
    color: rgba(255,255,255,0.9) !important;
    max-width: 550px !important;
    margin: 0 auto 25px !important;
}

/* Hide affiliate disclosure and trusted reviews in footer */
.site-footer .affiliate-disclosure,
.site-footer span:contains('Amazon Associate'),
.footer-bottom span { display: none !important; }
.footer-badges { display: none !important; }

/* Hide affiliate and trust badges completely */
.affiliate-notice, .trust-badges, .trust-badge { display: none !important; visibility: hidden !important; }

/* =====================================================
   ADSENSE AD ZONE STYLING
   Based on Raptive Best Practices
   ===================================================== */

/* Base Ad Zone Styling */
.ad-zone {
    display: block;
    text-align: center;
    margin: 0 auto;
    overflow: hidden;
    min-height: 90px;
    background: transparent;
}
/* Ensure AdSense fills the zone */
body:not(.fd-adsense-ux) .ad-zone ins.adsbygoogle,
body:not(.fd-adsense-ux) .ad-zone .adsbygoogle {
    display: block !important;
    margin: 0 auto;
}

/* After Featured Image Ad */
.ad-zone-after-featured {
    margin: 24px 0 32px 0;
    padding: 16px 0;
    border-top: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
    min-height: 280px;
    max-width: 728px;
}

/* In-Content Ads */
.ad-zone-in-content {
    margin: 28px auto;
    padding: 20px 0;
    min-height: 280px;
    max-width: 100%;
    clear: both;
}

/* Visual separator for in-content ads */
.ad-zone-in-content::before {
    content: '';
    display: block;
    width: 60px;
    height: 1px;
    background: #d1d5db;
    margin: 0 auto 16px auto;
}

.ad-zone-in-content::after {
    content: '';
    display: block;
    width: 60px;
    height: 1px;
    background: #d1d5db;
    margin: 16px auto 0 auto;
}

/* After Content Ad */
.ad-zone-after-content {
    margin: 32px 0;
    padding: 24px 0;
    border-top: 1px solid #e5e7eb;
    min-height: 280px;
    max-width: 728px;
}

/* Sidebar Ads */
.ad-zone-sidebar {
    margin-bottom: 24px;
    min-height: 250px;
    max-width: 300px;
}

/* Sticky Sidebar Container */
.sidebar-sticky-container {
    position: sticky;
    top: 100px;
}

/* Sticky Sidebar Ad */
.ad-zone-sidebar-sticky {
    margin-bottom: 24px;
    min-height: 600px;
    max-width: 300px;
}

/* Sticky Footer Ad */
.ad-zone-sticky-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: #fff;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    padding: 8px;
    min-height: 90px;
    max-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sticky-footer-close {
    position: absolute;
    top: 4px;
    right: 8px;
    background: #f3f4f6;
    border: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    color: #6b7280;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.sticky-footer-close:hover {
    background: #e5e7eb;
    color: #374151;
}

/* Add padding to body to prevent content overlap with sticky footer */
body.has-sticky-footer {
    padding-bottom: 110px;
}

/* =====================================================
   RESPONSIVE AD ADJUSTMENTS
   ===================================================== */

/* Tablet */
@media (max-width: 1024px) {
    .ad-zone-after-featured,
    .ad-zone-after-content {
        max-width: 100%;
    }
    
    /* Hide sidebar sticky on tablet */
    .sidebar-sticky-container {
        position: static;
    }
    
    .ad-zone-sidebar-sticky {
        min-height: 250px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .ad-zone {
        min-height: 250px;
    }
    
    .ad-zone-after-featured {
        margin: 16px 0 24px 0;
        padding: 12px 0;
    }
    
    .ad-zone-in-content {
        margin: 20px auto;
        padding: 16px 0;
    }
    
    /* Hide sidebar ads on mobile */
    .ad-zone-sidebar,
    .ad-zone-sidebar-sticky {
        display: none;
    }
    
    /* Sticky footer adjusts for mobile */
    .ad-zone-sticky-footer {
        min-height: 50px;
        max-height: 60px;
        padding: 4px;
    }
    
    body.has-sticky-footer {
        padding-bottom: 70px;
    }
}
/* =====================================================
   UNFILLED AD HANDLING
   ===================================================== *//* Hide unfilled ad zones */
body:not(.fd-adsense-ux) .ad-zone:empty,
body:not(.fd-adsense-ux) .ad-zone ins.adsbygoogle[data-ad-status="unfilled"] {
    min-height: 0;
    padding: 0;
    margin: 0;
    border: none;
}

body:not(.fd-adsense-ux) .ad-zone ins.adsbygoogle[data-ad-status="unfilled"]::before,
body:not(.fd-adsense-ux) .ad-zone ins.adsbygoogle[data-ad-status="unfilled"]::after {
    display: none;
}
/* Ensure proper spacing when ads load */
body:not(.fd-adsense-ux) .ad-zone ins.adsbygoogle[data-ad-status="filled"] {
    margin: 0 auto;
}
/* =====================================================
   HERO CAROUSEL - BLOCK ALL ADS
   ===================================================== */
body:not(.fd-adsense-ux) .hero-carousel ins.adsbygoogle,
body:not(.fd-adsense-ux) .hero-carousel .adsbygoogle,
body:not(.fd-adsense-ux) .hero-carousel [data-ad-slot],
body:not(.fd-adsense-ux) .hero-carousel .google-auto-placed,
body:not(.fd-adsense-ux) .carousel-container ins.adsbygoogle,
body:not(.fd-adsense-ux) .carousel-container .adsbygoogle,
body:not(.fd-adsense-ux) .carousel-track ins.adsbygoogle,
body:not(.fd-adsense-ux) .carousel-track .adsbygoogle,
body:not(.fd-adsense-ux) .carousel-slide ins.adsbygoogle,
body:not(.fd-adsense-ux) .carousel-slide .adsbygoogle {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    min-height: 0 !important;
    max-height: 0 !important;
    overflow: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}
/* Also block in dynamic content banner */
body:not(.fd-adsense-ux) .dynamic-content-banner ins.adsbygoogle,
body:not(.fd-adsense-ux) .dynamic-content-banner .adsbygoogle {
    display: none !important;
}

/* =====================================================
   IMPROVED MOBILE AD HANDLING
   ===================================================== */

/* Mobile: Better sticky footer sizing for AdSense */
@media (max-width: 768px) {
    .ad-zone-sticky-footer {
        min-height: 50px;
        max-height: 90px; /* AdSense needs at least 90px */
        padding: 4px 8px;
    }

    body.has-sticky-footer {
        padding-bottom: 100px;
    }

    /* In-content ads: prevent overflow on mobile */
    .ad-zone-in-content {
        width: 100%;
        max-width: 100vw;
        margin-left: 0;
        margin-right: 0;
        overflow-x: hidden;
    }

body:not(.fd-adsense-ux) .ad-zone-in-content ins.adsbygoogle,
body:not(.fd-adsense-ux) .ad-zone-in-content .adsbygoogle {
        max-width: 100% !important;
        width: 100% !important;
    }

    /* After featured ad: full width on mobile */
    .ad-zone-after-featured {
        margin: 16px -16px 24px -16px;
        padding: 12px 16px;
        width: calc(100% + 32px);
        border-radius: 0;
    }
/* =========================================================
       AGGRESSIVE TOP-OF-SCREEN AD CONTROL (Mobile)
       Prevents giant square ads from dominating mobile viewport
       ========================================================= *//* Hide Google Auto Ads anchor/vignette that appear at top */
body:not(.fd-adsense-ux) > ins.adsbygoogle:first-of-type,
body:not(.fd-adsense-ux) .nav-spacer + ins.adsbygoogle,
body:not(.fd-adsense-ux) .nav-spacer + div > ins.adsbygoogle:first-child,
body:not(.fd-adsense-ux) .site-header-compact + ins.adsbygoogle,
body:not(.fd-adsense-ux) header + ins.adsbygoogle {
        display: none !important;
    }
/* Limit any ad appearing in the first 300px of viewport */
body:not(.fd-adsense-ux) ins.adsbygoogle[style*="top: 0"],
body:not(.fd-adsense-ux) ins.adsbygoogle[style*="top:0"],
body:not(.fd-adsense-ux) div[style*="position: fixed"][style*="top: 0"] ins.adsbygoogle {
        display: none !important;
    }
/* Target Google's auto-inserted anchor ads */
body:not(.fd-adsense-ux) ins.adsbygoogle[data-anchor-status],
body:not(.fd-adsense-ux) ins.adsbygoogle[data-ad-format="auto"][style*="height: 250"],
body:not(.fd-adsense-ux) ins.adsbygoogle[data-ad-format="auto"][style*="height: 280"],
body:not(.fd-adsense-ux) ins.adsbygoogle[data-ad-format="auto"][style*="height: 300"] {
        max-height: 150px !important;
        overflow: hidden !important;
    }
/* Limit large rectangle ads (300x250, 336x280) on mobile */
body:not(.fd-adsense-ux) ins.adsbygoogle[style*="width: 300px"],
body:not(.fd-adsense-ux) ins.adsbygoogle[style*="width: 336px"],
body:not(.fd-adsense-ux) ins.adsbygoogle[style*="width:300px"],
body:not(.fd-adsense-ux) ins.adsbygoogle[style*="width:336px"] {
        max-height: 200px !important;
        margin-top: 15px !important;
        margin-bottom: 15px !important;
    }
/* Prevent ads from appearing before main content */
body:not(.fd-adsense-ux) .hero-carousel + ins.adsbygoogle,
body:not(.fd-adsense-ux) main > ins.adsbygoogle:first-child,
body:not(.fd-adsense-ux) .category-banner + ins.adsbygoogle {
        display: none !important;
    }
/* Global mobile ad size limits */
body:not(.fd-adsense-ux) ins.adsbygoogle,
body:not(.fd-adsense-ux) .adsbygoogle {
        max-height: 300px !important;
        overflow: hidden;
    }
/* Hide oversized sticky/anchor ads */
body:not(.fd-adsense-ux) .adsbygoogle[style*="position: fixed"],
body:not(.fd-adsense-ux) ins.adsbygoogle[style*="position: fixed"] {
        max-height: 90px !important;
    }
/* Limit only 2 ads max in article content on mobile */
body:not(.fd-adsense-ux) .entry-content ins.adsbygoogle:nth-of-type(n+3) {
        display: none !important;
    }
}

/* Prevent horizontal scroll from ads */
.entry-content,
.article-content {
    overflow-x: hidden;
}
/* Ensure ads don't break layout */
body:not(.fd-adsense-ux) ins.adsbygoogle {
    max-width: 100% !important;
}

/* =====================================================
   FIX: Ensure ad zones are visible for Auto Ads
   ===================================================== */

/* In-content ad zones should always maintain space */
.ad-zone-in-content {
    min-height: 280px !important;
    display: block !important;
    visibility: visible !important;
    background: #f9fafb;
    border-radius: 8px;
    position: relative;
}

/* Small Advertisement label for UX */
.ad-zone-in-content::before {
    content: 'Advertisement';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 10px;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Override the empty hiding rule for in-content */
.ad-zone-in-content:empty,
.entry-content .ad-zone-in-content:empty {
    min-height: 280px !important;
    display: block !important;
}

/* After featured and after content zones */
.ad-zone-after-featured,
.ad-zone-after-content {
    min-height: 250px !important;
    display: block !important;
    background: #f9fafb;
    border-radius: 8px;
}

/* Mobile: smaller ad zones */
@media (max-width: 768px) {
    .ad-zone-in-content,
    .ad-zone-after-featured,
    .ad-zone-after-content {
        min-height: 250px !important;
    }
}

/* =====================================================
   MOBILE STICKY BOTTOM BANNER
   ===================================================== */

.mobile-sticky-banner {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9998;
    background: linear-gradient(135deg, #1e3a5f 0%, #0d1b2a 100%);
    color: white;
    padding: 12px 16px;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.3);
    text-align: center;
}

.mobile-sticky-banner a {
    color: #60a5fa;
    text-decoration: none;
    font-weight: 600;
}

.mobile-sticky-banner a:hover {
    color: white;
    text-decoration: underline;
}

.mobile-sticky-banner-text {
    font-size: 0.875rem;
    margin: 0;
}

.mobile-sticky-banner-cta {
    display: inline-block;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white !important;
    padding: 8px 20px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.875rem;
    text-decoration: none !important;
    margin-top: 8px;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.4);
}

.mobile-sticky-banner-close {
    position: absolute;
    top: 8px;
    right: 12px;
    background: rgba(255,255,255,0.2);
    border: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    color: white;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.mobile-sticky-banner-close:hover {
    background: rgba(255,255,255,0.3);
}

/* Show banner only on mobile */
@media (max-width: 768px) {
    .mobile-sticky-banner {
        display: block;
    }

    /* Add padding to body to prevent content overlap */
    body.has-mobile-banner {
        padding-bottom: 80px;
    }
}

/* Hide when closed via JS */
.mobile-sticky-banner.hidden {
    display: none !important;
}

/* =====================================================
   MOBILE MENU OPEN STATE
   ===================================================== */

@media (max-width: 768px) {
    .main-navigation {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: linear-gradient(135deg, #1e3a5f 0%, #0d1b2a 100%);
        padding: 1rem;
        box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    }

    .main-navigation.mobile-menu-open {
        display: block;
    }

    .main-navigation ul {
        flex-direction: column;
        gap: 0;
    }

    .main-navigation li {
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }

    .main-navigation li:last-child {
        border-bottom: none;
    }

    .main-navigation a {
        display: block;
        padding: 0.875rem 0 !important;
        font-size: 1rem !important;
    }
}

/* =====================================================
   MOBILE HEADER FIX - Complete Rewrite
   ===================================================== */

/* Hamburger button styling */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 40px;
    height: 40px;
}

.mobile-menu-toggle .hamburger-line {
    display: block;
    width: 24px;
    height: 2px;
    background: white;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Mobile navigation - hidden by default */
.mobile-navigation {
    display: none;
    background: linear-gradient(135deg, #0d1b2a 0%, #1e3a5f 100%);
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.mobile-navigation.open {
    display: block;
    max-height: 500px;
    padding: 1rem 0;
}

.mobile-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-navigation li {
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.mobile-navigation li:last-child {
    border-bottom: none;
}

.mobile-navigation a {
    display: block;
    padding: 0.875rem 1rem;
    color: rgba(255,255,255,0.9) !important;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    transition: background 0.2s ease;
}

.mobile-navigation a:hover {
    background: rgba(255,255,255,0.1);
    color: white !important;
}

/* Hamburger animation when open */
.mobile-menu-toggle.open .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.open .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.open .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile breakpoint */
@media (max-width: 968px) {
    /* Show hamburger, hide desktop nav */
    .mobile-menu-toggle {
        display: flex;
    }

    .header-right {
        display: none !important;
    }

    .desktop-nav {
        display: none !important;
    }

    /* Header layout */
    .site-header-compact .header-inner {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0.5rem 0;
    }

    /* Logo sizing */
    .site-header-compact .site-branding {
        flex: 0 0 auto;
    }

    .site-header-compact .site-title-logo {
        font-size: 1.25rem;
        margin: 0;
        padding: 0;
        white-space: nowrap;
    }

    .site-header-compact .site-title-logo a {
        display: inline-flex;
        align-items: baseline;
        gap: 0.25rem;
        flex-wrap: nowrap;
        white-space: nowrap;
    }

    .site-header-compact .site-title-logo .logo-part-1,
    .site-header-compact .site-title-logo .logo-part-2 {
        font-size: 1.25rem;
        display: inline;
        white-space: nowrap;
    }
}

/* Even smaller screens */
@media (max-width: 400px) {
    .site-header-compact .site-title-logo,
    .site-header-compact .site-title-logo .logo-part-1,
    .site-header-compact .site-title-logo .logo-part-2 {
        font-size: 1.1rem;
    }
}

/* ==========================================================
   MOBILE SHOP PAGE FIXES
   ========================================================== */
@media screen and (max-width: 768px) {
    /* Single column product grid on mobile */
    .page-id-3200 .product-grid,
    .product-grid {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }
    
    /* Product cards - horizontal layout */
    .product-card {
        flex-direction: row !important;
        text-align: left !important;
        padding: 15px !important;
        gap: 12px !important;
    }
    
    .product-card img {
        width: 80px !important;
        height: 80px !important;
        min-width: 80px !important;
        margin: 0 !important;
    }
    
    .product-card .info {
        flex: 1 !important;
    }
    
    .product-card h3 {
        font-size: 0.95rem !important;
        line-height: 1.3 !important;
    }
    
    .product-card .price {
        font-size: 1rem !important;
    }
    
    .product-card .desc {
        font-size: 0.8rem !important;
        line-height: 1.4 !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
    }
    
    .product-card .btn {
        padding: 6px 14px !important;
        font-size: 0.8rem !important;
    }
    
    /* Shop hero mobile */
    .shop-hero {
        flex-direction: column !important;
        text-align: center !important;
        padding: 25px 20px !important;
    }
    
    .shop-hero img {
        max-width: 150px !important;
        margin: 0 auto 15px !important;
    }
    
    .shop-hero h2 {
        font-size: 1.3rem !important;
    }
    
    .shop-hero p {
        font-size: 0.9rem !important;
    }
    
    /* Gift banner mobile */
    .gift-banner {
        padding: 30px 20px !important;
    }
    
    .gift-banner h3 {
        font-size: 1.2rem !important;
    }
    
    .gift-banner p {
        font-size: 0.9rem !important;
    }
}

@media screen and (max-width: 480px) {
    .product-card img {
        width: 70px !important;
        height: 70px !important;
        min-width: 70px !important;
    }
    
    .product-card h3 {
        font-size: 0.9rem !important;
    }
    
    .product-card .desc {
        -webkit-line-clamp: 1 !important;
    }
}

/* ==========================================================
   COMPREHENSIVE MOBILE FIXES - C17 PILOT
   ========================================================== */
@media screen and (max-width: 768px) {
    /* HEADER FIXES - Logo and Hamburger */
    .site-header-compact .container {
        padding: 0 15px !important;
    }

    .site-header-compact .header-inner {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        width: 100% !important;
        padding: 10px 0 !important;
    }

    /* Logo - FORCE single row on mobile */
    .site-header-compact .site-branding {
        flex: 0 0 auto !important;
        margin-right: auto !important;
        max-width: none !important;
        overflow: visible !important;
    }

    .site-header-compact .site-title-logo,
    .site-title-logo,
    h1.site-title-logo,
    p.site-title-logo {
        font-size: 1.3rem !important;
        margin: 0 !important;
        padding: 0 !important;
        white-space: nowrap !important;
        display: block !important;
        overflow: visible !important;
    }

    .site-header-compact .site-title-logo a,
    .site-title-logo a {
        display: inline-flex !important;
        align-items: baseline !important;
        gap: 4px !important;
        flex-wrap: nowrap !important;
        white-space: nowrap !important;
    }

    .site-header-compact .site-title-logo .logo-part-1,
    .site-header-compact .site-title-logo .logo-part-2,
    .site-title-logo .logo-part-1,
    .site-title-logo .logo-part-2,
    .logo-part-1,
    .logo-part-2 {
        font-size: 1.3rem !important;
        display: inline !important;
        white-space: nowrap !important;
    }

    /* Hide desktop nav on mobile */
    .header-right {
        display: none !important;
    }

    /* HAMBURGER MENU - Make visible and properly styled */
    .mobile-menu-toggle {
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 5px !important;
        width: 44px !important;
        height: 44px !important;
        padding: 10px !important;
        background: rgba(255,255,255,0.1) !important;
        border: none !important;
        border-radius: 6px !important;
        cursor: pointer !important;
        flex-shrink: 0 !important;
    }

    .mobile-menu-toggle .hamburger-line {
        display: block !important;
        width: 22px !important;
        height: 2px !important;
        background: #ffffff !important;
        border-radius: 2px !important;
    }

    /* MOBILE NAVIGATION - Menu styling */
    .mobile-navigation {
        display: none;
        background: linear-gradient(135deg, #0d1b2a 0%, #1e3a5f 100%) !important;
        width: 100% !important;
    }

    .mobile-navigation.open {
        display: block !important;
        padding: 10px 0 !important;
    }

    .mobile-navigation ul {
        list-style: none !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .mobile-navigation li {
        border-bottom: 1px solid rgba(255,255,255,0.1) !important;
    }

    .mobile-navigation li:last-child {
        border-bottom: none !important;
    }

    /* FIX: Menu items - single line, no 2 rows */
    .mobile-navigation a {
        display: block !important;
        padding: 12px 15px !important;
        color: rgba(255,255,255,0.95) !important;
        text-decoration: none !important;
        font-size: 1rem !important;
        font-weight: 600 !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        line-height: 1.2 !important;
    }

    .mobile-navigation a:hover {
        background: rgba(255,255,255,0.1) !important;
        color: white !important;
    }

    /* CAROUSEL - Constrain images on mobile, hide adjacent slides */
    .hero-carousel {
        width: 100% !important;
        max-width: 100vw !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        overflow: hidden !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .carousel-container {
        max-width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
        overflow: hidden !important;
    }

    .carousel-track {
        width: 100% !important;
        gap: 0 !important;
    }

    .carousel-slide {
        min-width: 100% !important;
        max-width: 100% !important;
        width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
        overflow: hidden !important;
        flex: 0 0 100% !important;
    }

    /* Arrows closer to edges */
    .carousel-arrow {
        width: 32px !important;
        height: 32px !important;
    }

    .carousel-prev {
        left: 8px !important;
    }

    .carousel-next {
        right: 8px !important;
    }

    .hero-compact {
        grid-template-columns: 1fr !important;
        max-width: 100% !important;
        padding: 15px !important;
        gap: 0 !important;
    }

    .hero-image {
        max-width: 100% !important;
        max-height: 200px !important;
        overflow: hidden !important;
    }

    .hero-image img {
        width: 100% !important;
        height: auto !important;
        max-height: 200px !important;
        object-fit: cover !important;
    }

    .hero-content {
        padding: 15px !important;
    }

    .hero-title {
        font-size: 1.2rem !important;
        line-height: 1.3 !important;
    }

    .hero-excerpt {
        font-size: 0.875rem !important;
        line-height: 1.4 !important;
    }

    /* Article grids - single column on mobile */
    .article-grid,
    .posts-grid,
    .category-grid,
    .articles-grid {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }

    /* Article cards - horizontal layout */
    .article-card,
    .post-card,
    .article-tile {
        display: flex !important;
        flex-direction: row !important;
        gap: 12px !important;
        padding: 12px !important;
    }

    .article-card img,
    .post-card img,
    .article-tile .tile-image {
        width: 100px !important;
        height: 75px !important;
        min-width: 100px !important;
        max-width: 100px !important;
        object-fit: cover !important;
        border-radius: 6px !important;
        flex-shrink: 0 !important;
    }

    .article-tile .tile-image img {
        width: 100% !important;
        height: 100% !important;
    }

    .article-card .card-content,
    .post-card .card-content,
    .article-tile .tile-content {
        flex: 1 !important;
        min-width: 0 !important;
    }

    .article-card h3,
    .post-card h3,
    .tile-title {
        font-size: 0.9rem !important;
        line-height: 1.3 !important;
        margin-bottom: 4px !important;
    }

    .article-card .meta,
    .post-card .meta,
    .tile-meta {
        font-size: 0.75rem !important;
    }

    /* Section headers */
    .section-header h2,
    .category-section h2,
    .section-title {
        font-size: 1.1rem !important;
    }

    /* Sidebar - hide on mobile */
    .sidebar,
    .widget-area,
    .article-sidebar {
        display: none !important;
    }

    /* Content area full width */
    .content-area,
    .site-main {
        width: 100% !important;
        padding: 0 15px !important;
    }

    /* Single post content */
    .single .entry-content {
        font-size: 1rem !important;
        line-height: 1.7 !important;
    }

    .single .entry-title {
        font-size: 1.4rem !important;
        line-height: 1.3 !important;
    }

    /* Footer mobile */
    .site-footer {
        padding: 30px 15px !important;
    }

    .footer-columns {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
/* Remove anchor ads crowding content */
body:not(.fd-adsense-ux) .anchor-ad,
body:not(.fd-adsense-ux) [data-anchor] {
        display: none !important;
    }

    /* Hide category badges on images in mobile */
    .tile-category-badge,
    .hero-category,
    .category-badge {
        display: none !important;
    }
}

@media screen and (max-width: 480px) {
    .site-title-logo,
    .site-title-logo .logo-part-1,
    .site-title-logo .logo-part-2 {
        font-size: 1.15rem !important;
    }

    .hero-title {
        font-size: 1.1rem !important;
    }

    .article-card img,
    .post-card img,
    .article-tile .tile-image {
        width: 80px !important;
        height: 60px !important;
        min-width: 80px !important;
        max-width: 80px !important;
    }

    .article-card h3,
    .post-card h3,
    .tile-title {
        font-size: 0.85rem !important;
    }

    .mobile-navigation a {
        font-size: 0.9rem !important;
        padding: 10px 15px !important;
    }
}

/* ==========================================================================
   Category Archive Layout - News Site Style with Visual Interest
   ========================================================================== */

/* Center the container and add max-width for better readability */
.category .site-main .container {
    max-width: 1400px;
    margin: 0 auto;
}

/* Featured article style - first article is larger and spans 2 columns */
.category .articles-grid .article-card:first-child {
    grid-column: span 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-3xl);
}

.category .articles-grid .article-card:first-child .article-image-wrapper {
    aspect-ratio: 16/11;
}

.category .articles-grid .article-card:first-child .article-title {
    font-size: 2rem;
    font-weight: 800;
}

.category .articles-grid .article-card:first-child .article-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: var(--spacing-3xl);
}

/* Improved grid with better centering */
.category .articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--spacing-3xl);
    margin: 0 auto;
    justify-content: center;
}

/* Add subtle variation to card heights for visual interest */
.category .articles-grid .article-card:nth-child(3n+2) .article-image-wrapper {
    aspect-ratio: 16/9;
}

.category .articles-grid .article-card:nth-child(3n+3) .article-image-wrapper {
    aspect-ratio: 16/11;
}

/* Highlight every 5th article with accent color */
.category .articles-grid .article-card:nth-child(5n) {
    border: 2px solid var(--primary-color);
    background: linear-gradient(135deg, var(--background) 0%, rgba(var(--primary-rgb), 0.05) 100%);
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .category .articles-grid .article-card:first-child {
        grid-column: span 1;
        display: block;
    }
    
    .category .articles-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: var(--spacing-2xl);
    }
}

@media (max-width: 768px) {
    .category .articles-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }
}

