/*
 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.3.0
 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
   ========================================================================== */

.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;
    margin-left: calc(-50vw + 50%) !important;
    margin-right: calc(-50vw + 50%) !important;
    padding-left: calc(50vw - 50%) !important;
    padding-right: calc(50vw - 50%) !important;
    width: 100vw !important;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw !important;
    margin-right: -50vw !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    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;
}

.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: flex;
    align-items: baseline;
    gap: 0.15rem;
}

/* 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 ul {
    gap: 0.5rem;
    margin: 0;
    padding: 0;
}

.site-header-compact .main-navigation a {
    padding: 0.625rem 1rem;
    font-size: 1rem;
    font-weight: 600;
    color: rgba(255,255,255,0.95) !important;
    border-radius: 4px;
    transition: all 0.2s ease;
}

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

/* ==========================================================================
   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;
    left: 50%;
    right: 50%;
    margin-left: -50vw !important;
    margin-right: -50vw !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: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    overflow: hidden;
}

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

.carousel-slide {
    min-width: 100%;
    width: 100%;
    flex: 0 0 100%;
    flex-shrink: 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: 1rem;
}

.carousel-next {
    right: 1rem;
}

/* 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%);
}

