/**
 * Homepage Styles for Beyond Borders Editorial Theme
 * 
 * @package Beond_Custom
 */

/* ============================================
   CSS VARIABLES
   ============================================ */

:root {
    --navy-deep: #0A1628;
    --navy-primary: #003366;
    --navy-medium: #00274D;
    --navy-light: #1A4D5C;
    --charcoal-dark: #1A1A2E;
    --gold-primary: #C9A961;
    --gold-champagne: #D4AF37;
    --gold-dark: #B8941F;
    --white: #FFFFFF;
    --cream: #FAF8F5;
    --light-gray: #E8E8E8;
    --medium-gray: #6B7280;
    --text-primary: #0A0A0A;
    --text-secondary: #374151;
    --text-tertiary: #6B7280;
    --font-headline: 'Playfair Display', Georgia, serif;
    --font-body: 'Lora', Georgia, serif;
    --font-ui: 'Inter', -apple-system, sans-serif;
}

[data-theme="dark"] {
    --cream: #0A1628;
    --light-gray: #1A4D5C;
    --medium-gray: #9CA3AF;
    --text-primary: #FFFFFF;
    --text-secondary: #E8E8E8;
    --text-tertiary: #9CA3AF;
}

/* ============================================
   HOMEPAGE MAIN
   ============================================ */

.homepage-main {
    background: var(--white);
}

[data-theme="dark"] .homepage-main {
    background: var(--navy-deep);
}

/* ============================================
   HERO SECTION
   ============================================ */

/* Hero Magazine Style */
.homepage-hero,
.hero-magazine {
    max-width: 1600px;
    margin: 0 auto;
    padding: 60px 60px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

@media (max-width: 992px) {
    .homepage-hero,
    .hero-magazine {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 40px 24px;
    }
}

.hero-container {
    display: contents;
}

.hero-layout {
    display: contents;
}

.hero-main-story {
    position: relative;
    height: 700px;
    overflow: hidden;
    border-radius: 8px;
}

.hero-main-story::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse at center, transparent 0%, rgba(10, 22, 40, 0.3) 100%),
        url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMDAiIGhlaWdodD0iMzAwIj48ZmlsdGVyIGlkPSJhIiB4PSIwIiB5PSIwIj48ZmVUdXJidWxlbmNlIGJhc2VGcmVxdWVuY3k9Ii43NSIgc3RpdGNoVGlsZXM9InN0aXRjaCIgdHlwZT0iZnJhY3RhbE5vaXNlIi8+PGZlQ29sb3JNYXRyaXggdHlwZT0ic2F0dXJhdGUiIHZhbHVlcz0iMCIvPjwvZmlsdGVyPjxwYXRoIGQ9Ik0wIDBoMzAwdjMwMEgweiIgZmlsdGVyPSJ1cmwoI2EpIiBvcGFjaXR5PSIuMDUiLz48L3N2Zz4=');
    pointer-events: none;
    z-index: 1;
}

.hero-main-story img,
.hero-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: contrast(1.15) saturate(0.9) brightness(0.95);
    transition: transform 8s ease-out;
}

.hero-main-story:hover img,
.hero-main-story:hover .hero-card-image img {
    transform: scale(1.05);
}

.hero-overlay,
.hero-card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 60px 50px;
    background: linear-gradient(to top, rgba(10, 22, 40, 0.95), rgba(10, 22, 40, 0));
    z-index: 2;
}

.hero-overlay .category,
.hero-category {
    display: inline-block;
    padding: 6px 16px;
    background: var(--gold-champagne);
    color: var(--navy-deep);
    font-family: var(--font-ui);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 20px;
    font-variant: small-caps;
}

.hero-overlay h1,
.hero-title {
    font-family: var(--font-headline);
    font-size: 52px;
    line-height: 1.1;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 20px;
    letter-spacing: -1.5px;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.hero-overlay h1 a,
.hero-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.hero-overlay h1 a:hover,
.hero-title a:hover {
    color: var(--gold-champagne);
}

.hero-overlay .author-meta,
.hero-meta {
    font-family: var(--font-ui);
    font-size: 13px;
    color: var(--cream);
    display: flex;
    gap: 12px;
}

.hero-overlay .author-meta .author,
.hero-author {
    color: var(--gold-champagne);
}

/* Hero Secondary Stories */
.hero-secondary {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.secondary-story {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 24px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--light-gray);
}

.secondary-story:last-child {
    border-bottom: none;
}

.secondary-story-image {
    width: 180px;
    height: 120px;
    overflow: hidden;
    border-radius: 4px;
}

.secondary-story-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1), filter 0.6s ease;
    filter: contrast(1.1) saturate(0.95) brightness(0.98);
}

.secondary-story:hover .secondary-story-image img {
    transform: scale(1.08);
    filter: contrast(1.15) saturate(1.05) brightness(1);
}

.secondary-story-content .category {
    font-family: var(--font-ui);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--gold-dark);
    margin-bottom: 8px;
    display: inline-block;
}

.secondary-story h3 {
    font-family: var(--font-headline);
    font-size: 22px;
    line-height: 1.3;
    font-weight: 600;
    margin-bottom: 8px;
}

.secondary-story h3 a {
    color: var(--navy-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

[data-theme="dark"] .secondary-story h3 a {
    color: var(--gold-champagne);
}

.secondary-story h3 a:hover {
    color: var(--gold-dark);
}

.secondary-story .meta {
    font-family: var(--font-ui);
    font-size: 12px;
    color: var(--text-tertiary);
}

/* ============================================
   CATEGORY SHOWCASE SECTION
   ============================================ */

.floating-categories {
    background: var(--white);
    padding: 60px 60px;
    position: relative;
}

[data-theme="dark"] .floating-categories {
    background: var(--navy-deep);
}

.categories-wrapper {
    max-width: 1480px;
    margin: 0 auto;
}

.categories-image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

@media (min-width: 1200px) {
    .categories-image-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .categories-image-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    .floating-categories {
        padding: 50px 24px;
    }
    
    .section-label {
        font-size: 26px;
    }
}

@media (max-width: 480px) {
    .categories-image-grid {
        grid-template-columns: 1fr;
    }
}

.category-image-card {
    position: relative;
    display: block;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 5/3;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

[data-theme="dark"] .category-image-card {
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

.category-image-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

[data-theme="dark"] .category-image-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.category-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.category-image-card:hover .category-image img {
    transform: scale(1.06);
}

.category-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.3) 40%, rgba(0, 0, 0, 0.75) 100%);
    display: flex;
    align-items: flex-end;
    padding: 20px;
    transition: background 0.4s ease;
}

[data-theme="dark"] .category-overlay {
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.4) 40%, rgba(0, 0, 0, 0.8) 100%);
}

.category-image-card:hover .category-overlay {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.1) 0%, rgba(10, 22, 40, 0.5) 40%, rgba(10, 22, 40, 0.88) 100%);
}

.category-overlay-content {
    position: relative;
    z-index: 1;
    width: 100%;
}

.category-overlay-content h3 {
    font-family: var(--font-headline);
    font-size: 20px;
    font-weight: 500;
    color: var(--white);
    line-height: 1.2;
    margin: 0 0 6px 0;
    letter-spacing: -0.3px;
    transition: all 0.3s ease;
}

.category-image-card:hover .category-overlay-content h3 {
    color: var(--gold-champagne);
    transform: translateX(3px);
}

.category-overlay-content .count {
    font-family: var(--font-ui);
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 0.3px;
    margin: 0;
    font-weight: 400;
    display: flex;
    align-items: center;
    gap: 6px;
}

.category-overlay-content .count::before {
    content: '';
    width: 20px;
    height: 1.5px;
    background: var(--gold-champagne);
    transition: width 0.3s ease;
}

.category-image-card:hover .category-overlay-content .count::before {
    width: 32px;
}

.category-image-card:hover .category-overlay-content .count {
    color: rgba(255, 255, 255, 0.9);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.category-card {
    background: var(--cream);
    border: 1px solid var(--light-gray);
    border-radius: 6px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 16px;
    min-height: 90px;
    text-decoration: none;
    color: inherit;
}

[data-theme="dark"] .category-card {
    background: var(--navy-medium);
    border-color: rgba(201, 169, 97, 0.15);
}

.category-card:hover {
    border-color: var(--gold-champagne);
    transform: translateX(8px);
    box-shadow: -4px 0 0 var(--gold-champagne);
}

.category-icon {
    width: 44px;
    height: 44px;
    background: var(--white);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 22px;
    transition: all 0.3s ease;
}

[data-theme="dark"] .category-icon {
    background: var(--navy-deep);
}

.category-card:hover .category-icon {
    background: var(--gold-champagne);
}

.category-info {
    flex: 1;
}

.category-name {
    font-family: var(--font-headline);
    font-size: 17px;
    font-weight: 600;
    color: var(--navy-primary);
    line-height: 1.3;
    margin: 0 0 4px 0;
}

[data-theme="dark"] .category-name {
    color: var(--white);
}

.category-count {
    font-family: var(--font-ui);
    font-size: 12px;
    color: var(--text-tertiary);
}

.category-card:hover .category-count {
    color: var(--gold-dark);
}

/* ============================================
   FEATURED GRID SECTION
   ============================================ */

.featured-grid-section {
    max-width: 1600px;
    margin: 0 auto;
    padding: 80px 60px;
}

.featured-grid-container {
    position: relative;
}

.section-heading {
    font-family: var(--font-headline);
    font-size: 42px;
    font-weight: 600;
    color: var(--navy-primary);
    letter-spacing: -1px;
    margin-bottom: 40px;
}

[data-theme="dark"] .section-heading {
    color: var(--gold-champagne);
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

/* ============================================
   ARTICLE CARDS (Reusable)
   ============================================ */

.article-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
}

[data-theme="dark"] .article-card {
    background: var(--faq-card-bg);
}

.article-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.article-card-image {
    height: 200px;
    overflow: hidden;
}

.article-card.card-featured .article-card-image {
    height: 280px;
}

.article-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1), filter 0.6s ease;
    filter: contrast(1.1) saturate(0.95) brightness(0.97);
}

.article-card:hover .article-card-image img {
    transform: scale(1.12);
    filter: contrast(1.15) saturate(1.05) brightness(1);
}

.article-card-content {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.article-category {
    font-family: var(--font-ui);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--gold-dark);
    margin-bottom: 12px;
    display: inline-block;
    text-decoration: none;
}

.article-title {
    font-family: var(--font-headline);
    font-size: 20px;
    line-height: 1.3;
    font-weight: 600;
    margin-bottom: 12px;
    flex: 1;
}

.article-title a {
    color: var(--navy-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

[data-theme="dark"] .article-title a {
    color: var(--gold-champagne);
}

.article-title a:hover {
    color: var(--gold-dark);
}

.article-excerpt {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.article-meta {
    font-family: var(--font-ui);
    font-size: 12px;
    color: var(--text-tertiary);
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.article-author {
    display: flex;
    align-items: center;
    gap: 6px;
}

.article-author img {
    border-radius: 50%;
}

.article-author a {
    color: var(--gold-primary);
    text-decoration: none;
    font-weight: 500;
}

.article-reading-time::before {
    content: '•';
    margin-right: 8px;
    color: var(--light-gray);
}

/* ============================================
   TRENDING SECTION
   ============================================ */

.trending-section {
    background: var(--cream);
    padding: 80px 180px;
    position: relative;
}

[data-theme="dark"] .trending-section {
    background: var(--navy-deep);
}

.trending-container {
    max-width: 1600px;
    margin: 0 auto;
    position: relative;
}

.trending-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 80px;
}

/* Left: Featured Trending */
.trending-featured {
    position: relative;
}

.trending-heading {
    font-family: var(--font-headline);
    font-size: 48px;
    font-weight: 400;
    letter-spacing: -0.5px;
    color: var(--navy-primary);
    margin: 0 0 40px 0;
}

[data-theme="dark"] .trending-heading {
    color: var(--gold-champagne);
}

.trending-card {
    display: block;
    background: transparent;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
}

.trending-image {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    width: 100%;
}

.trending-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}

.trending-content {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    /* width: 50%; */
    padding: 0px 5px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: linear-gradient(90deg, transparent 0%, rgb(10 22 40 / 51%) -15%, rgb(10 22 40 / 51%) 100%);
}

[data-theme="light"] .trending-content {
    background: linear-gradient(90deg, transparent 0%, rgba(250, 248, 245, 0.75) 20%, rgba(250, 248, 245, 0.95) 100%);
}

.trending-category {
    font-family: var(--font-ui);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--gold-champagne);
    margin-bottom: 16px;
    display: block;
}

.trending-title {
    font-family: var(--font-headline);
    font-size: 36px;
    line-height: 1.2;
    font-weight: 400;
    margin: 0 0 16px 0;
    letter-spacing: -0.5px;
}

.trending-title a {
    color: var(--navy-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

[data-theme="dark"] .trending-title a {
    color: var(--gold-champagne);
}

.trending-title a:hover {
    color: var(--navy-primary);
}

[data-theme="dark"] .trending-title a:hover {
    color: #ffffff;
}

.trending-excerpt {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

[data-theme="dark"] .trending-excerpt {
    color: rgba(255, 255, 255, 0.75);
}

.trending-meta {
    font-family: var(--font-ui);
    font-size: 13px;
    color: var(--text-tertiary);
    display: flex;
    align-items: center;
    gap: 8px;
}

[data-theme="dark"] .trending-meta {
    color: rgba(255, 255, 255, 0.6);
}

.trending-meta .author-name {
    color: var(--gold-dark);
    font-weight: 500;
    font-size: 14px;
    margin-bottom: 0;
}

[data-theme="dark"] .trending-meta .author-name {
    color: var(--gold-champagne);
}

.trending-meta .meta-separator {
    color: var(--text-tertiary);
}

[data-theme="dark"] .trending-meta .meta-separator {
    color: rgba(255, 255, 255, 0.3);
}

/* Right: Most Read Sidebar */
.most-read-sidebar {
    position: relative;
    align-self: end;
}

.most-read-heading {
    font-family: var(--font-headline);
    font-size: 36px;
    font-weight: 400;
    letter-spacing: -0.5px;
    color: var(--navy-primary);
    margin: 0 0 8px 0;
}

[data-theme="dark"] .most-read-heading {
    color: var(--gold-champagne);
}

.most-read-subtitle {
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0 0 32px 0;
}

[data-theme="dark"] .most-read-subtitle {
    color: rgba(255, 255, 255, 0.5);
}

.most-read-list {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.most-read-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    border-bottom: 1px solid var(--light-gray);
    padding-bottom: 28px;
}

[data-theme="dark"] .most-read-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.most-read-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.most-read-number {
    font-family: var(--font-headline);
    font-size: 42px;
    font-weight: 400;
    color: var(--gold-dark);
    line-height: 1;
    opacity: 0.7;
    flex-shrink: 0;
}

[data-theme="dark"] .most-read-number {
    color: var(--gold-champagne);
}

.most-read-content {
    flex: 1;
    padding-top: 4px;
}

.most-read-title {
    font-family: var(--font-headline);
    font-size: 18px;
    line-height: 1.3;
    font-weight: 400;
    margin: 0 0 8px 0;
    letter-spacing: -0.3px;
}

.most-read-title a {
    color: var(--navy-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

[data-theme="dark"] .most-read-title a {
    color: var(--gold-champagne);
}

.most-read-title a:hover {
    color: var(--gold-dark);
}

[data-theme="dark"] .most-read-title a:hover {
    color: var(--gold-primary);
}

.most-read-meta {
    font-family: var(--font-ui);
    font-size: 12px;
    color: var(--text-tertiary);
    display: flex;
    align-items: center;
    gap: 6px;
}

[data-theme="dark"] .most-read-meta {
    color: rgba(255, 255, 255, 0.45);
}

.most-read-meta .author-name {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 0;
}

[data-theme="dark"] .most-read-meta .author-name {
    color: rgba(255, 255, 255, 0.6);
}

.most-read-meta .meta-separator {
    color: var(--text-tertiary);
}

[data-theme="dark"] .most-read-meta .meta-separator {
    color: rgba(255, 255, 255, 0.25);
}

@media (max-width: 968px) {
    .trending-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    
    .trending-heading {
        font-size: 36px;
        text-align: center;
    }
    
    .trending-title {
        font-size: 28px;
    }
    
    .trending-excerpt {
        font-size: 15px;
    }
    
    .trending-category {
        font-size: 10px;
    }
    
    .trending-meta {
        font-size: 12px;
    }
    
    .most-read-heading {
        font-size: 28px;
        text-align: center;
    }
    
    .most-read-subtitle {
        font-size: 13px;
        text-align: center;
    }
}

.trending-meta {
    font-family: var(--font-ui);
    font-size: 11px;
    color: var(--text-tertiary);
}

/* ============================================
   MASONRY GRID
   ============================================ */

/* Masonry-style Grid */
.masonry-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 280px;
    gap: 24px;
}

.masonry-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
}

.masonry-item.large {
    grid-row: span 2;
}

.masonry-item.wide {
    grid-column: span 2;
}

.masonry-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1), filter 0.7s ease;
    filter: contrast(1.15) saturate(0.9) brightness(0.92);
}

.masonry-item:hover img {
    transform: scale(1.1);
    filter: contrast(1.2) saturate(1) brightness(0.95);
}

.masonry-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px 32px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85), transparent);
}

.masonry-content .category {
    font-family: var(--font-ui);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--gold-champagne);
    margin-bottom: 12px;
    display: inline-block;
}

.masonry-content h3 {
    font-family: var(--font-headline);
    font-size: 24px;
    line-height: 1.25;
    font-weight: 600;
    color: var(--white);
}

.masonry-content h3 a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.masonry-content h3 a:hover {
    color: var(--gold-champagne);
}

.masonry-item.large .masonry-content h3 {
    font-size: 32px;
}

/* ============================================
   LATEST NEWS SECTION
   ============================================ */

.latest-news-section {
    background: var(--cream);
    padding: 80px 185px;
}

[data-theme="dark"] .latest-news-section {
    background: var(--navy-deep);
}

.latest-news-wrapper {
    max-width: 1600px;
    margin: 0 auto;
}

.section-header-modern {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 48px;
}

.section-header-modern.center {
    justify-content: center;
    text-align: center;
}

.section-header-modern h2 {
    font-family: var(--font-headline);
    font-size: 48px;
    font-weight: 600;
    color: var(--navy-primary);
    letter-spacing: -1.2px;
    line-height: 1.15;
}

[data-theme="dark"] .section-header-modern h2 {
    color: var(--gold-champagne);
}

.view-all-link {
    font-family: var(--font-ui);
    font-size: 13px;
    font-weight: 600;
    color: var(--gold-dark);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.4s ease;
    padding: 8px 16px;
    border: 1px solid transparent;
    border-radius: 4px;
    position: relative;
}

.view-all-link::before {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 16px;
    width: 0;
    height: 1px;
    background: var(--gold-champagne);
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.view-all-link:hover {
    gap: 12px;
    color: var(--navy-primary);
    border-color: rgba(201, 169, 97, 0.3);
    background: rgba(201, 169, 97, 0.05);
}

.view-all-link:hover::before {
    width: calc(100% - 32px);
}

[data-theme="dark"] .view-all-link:hover {
    color: var(--gold-champagne);
    background: rgba(201, 169, 97, 0.1);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

.news-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

[data-theme="dark"] .news-card {
    background: var(--faq-card-bg);
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.news-card-image {
    height: 200px;
    overflow: hidden;
}

.news-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1), filter 0.6s ease;
    filter: contrast(1.1) saturate(0.95) brightness(0.97);
}

.news-card:hover .news-card-image img {
    transform: scale(1.12);
    filter: contrast(1.15) saturate(1.05) brightness(1);
}

.news-card-content {
    padding: 24px;
}

.news-card-content .category {
    font-family: var(--font-ui);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--gold-dark);
    margin-bottom: 12px;
    display: inline-block;
}

[data-theme="dark"] .news-card-content .category {
    color: #ffffff;
}

.news-card-content h3 {
    font-family: var(--font-headline);
    font-size: 20px;
    line-height: 1.3;
    font-weight: 600;
    margin-bottom: 12px;
}

.news-card-content h3 a {
    color: var(--navy-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

[data-theme="dark"] .news-card-content h3 a {
    color: var(--gold-champagne);
}

.news-card-content h3 a:hover {
    color: var(--gold-dark);
}

.news-card-meta {
    font-family: var(--font-ui);
    font-size: 12px;
    color: var(--text-tertiary);
}

[data-theme="dark"] .news-card-meta {
    color: #ffffff;
}

/* ============================================
   STATS PANEL SECTION
   ============================================ */

.stats-panel {
    padding: 80px 60px;
    position: relative;
}

.stats-container {
    max-width: 1600px;
    margin: 0 auto;
    text-align: center;
}

.stats-heading {
    font-family: var(--font-headline);
    font-size: 48px;
    font-weight: 600;
    color: var(--navy-primary);
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.stats-description {
    font-size: 18px;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 48px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 48px;
}

.stat-item {
    text-align: center;
}

.stat-value {
    font-family: var(--font-headline);
    font-size: 64px;
    font-weight: 700;
    color: var(--navy-primary);
    line-height: 1;
    margin-bottom: 12px;
    text-align: center;
}

.stat-suffix {
    font-size: 0.7em;
    color: var(--gold-champagne);
}

.stat-label {
    font-family: var(--font-ui);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-tertiary);
    text-align: center;
}

/* ============================================
   AUTHORS SECTION
   ============================================ */

.authors-section {
    margin: 0 auto;
    padding: 80px 190px;
    background: linear-gradient(360deg, var(--navy-primary) 0%, var(--navy-deep) 100%);
}

.authors-container {
    position: relative;
}

/* Featured Authors Section */
.featured-authors-section {
    margin: 0 auto;
    padding: 80px 190px;
    background: linear-gradient(360deg, var(--navy-primary) 0%, var(--navy-deep) 100%);
    position: relative;
}

.authors-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 48px;
}

.author-card {
    text-align: center;
    padding: 40px 32px;
    background: var(--cream);
    border-radius: 8px;
    transition: transform 0.3s ease;
}

[data-theme="dark"] .author-card {
    background: var(--faq-card-bg);
}

.author-card:hover {
    transform: translateY(-8px);
}

.author-card-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin: 0 auto 24px;
    border: 4px solid var(--gold-champagne);
    overflow: hidden;
}

.author-card-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: contrast(1.1) saturate(0.9);
    transition: filter 0.4s ease;
}

.author-card:hover .author-card-avatar img {
    filter: contrast(1.15) saturate(1.05);
}

.author-card h3 {
    font-family: var(--font-headline);
    font-size: 24px;
    font-weight: 600;
    color: var(--navy-primary);
    margin-bottom: 8px;
}

[data-theme="dark"] .author-card h3 {
    color: var(--gold-champagne);
}

.author-card .title {
    font-family: var(--font-ui);
    font-size: 13px;
    color: var(--gold-dark);
    margin-bottom: 16px;
}

.author-card .bio {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.author-card .articles-count {
    font-family: var(--font-ui);
    font-size: 12px;
    color: var(--text-tertiary);
}

.authors-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

.author-card {
    text-align: center;
    padding: 32px 24px;
    background: var(--cream);
    border-radius: 8px;
    transition: transform 0.3s ease;
}

[data-theme="dark"] .author-card {
    background: var(--navy-medium);
}

.author-card:hover {
    transform: translateY(-8px);
}

.author-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin: 0 auto 20px;
    border: 4px solid var(--gold-champagne);
    overflow: hidden;
}

.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-name {
    font-family: var(--font-headline);
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
}

.author-name a {
    color: var(--navy-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

[data-theme="dark"] .author-name a {
    color: var(--gold-champagne);
}

.author-name a:hover {
    color: var(--gold-dark);
}

.author-bio {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.author-meta {
    font-family: var(--font-ui);
    font-size: 12px;
    color: var(--text-tertiary);
}

/* ============================================
   RESPONSIVE BREAKPOINTS
   ============================================ */

@media (max-width: 1200px) {
    .latest-news-section {
        padding: 60px 40px;
    }
    
    .hero-layout {
        grid-template-columns: 1fr;
    }

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

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

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

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

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

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

@media (max-width: 768px) {
    .homepage-hero,
    .floating-categories,
    .featured-grid-section,
    .trending-section,
    .latest-news-section,
    .stats-panel,
    .authors-section {
        padding: 40px 24px;
    }
    
    .stat-item {
        text-align: center;
    }

    .hero-main-story {
        height: 500px;
    }

    .hero-title,
    .hero-overlay h1 {
        font-size: 36px;
    }
    
    .hero-overlay,
    .hero-card-content {
        padding: 40px 30px;
    }
    
    .secondary-story {
        grid-template-columns: 140px 1fr;
        gap: 16px;
        padding-bottom: 20px;
    }
    
    .secondary-story-image {
        width: 140px;
        height: 100px;
    }
    
    .secondary-story h3 {
        font-size: 18px;
    }

    .section-heading {
        font-size: 32px;
    }
    
    .masonry-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 200px;
        gap: 16px;
    }
    
    .masonry-item.large,
    .masonry-item.wide {
        grid-row: span 1;
        grid-column: span 1;
    }

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

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

    .section-header,
    .section-header-modern {
        flex-direction: column;
        align-items: center;
        gap: 20px;
        margin-bottom: 32px;
        text-align: center;
    }
    
    .section-header-modern h2 {
        font-size: 32px;
        letter-spacing: -0.8px;
    }
}

@media (max-width: 640px) {
    .homepage-hero,
    .floating-categories,
    .featured-grid-section,
    .trending-section,
    .latest-news-section,
    .stats-panel,
    .authors-section {
        padding: 30px 20px;
    }
    
    .stat-item {
        text-align: center;
    }
    
    .categories-grid,
    .featured-grid,
    .latest-news-grid,
    .news-grid,
    .authors-grid {
        grid-template-columns: 1fr;
    }
    
    .masonry-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: 250px;
        gap: 20px;
    }

    .hero-main-story {
        height: 400px;
    }

    .hero-title,
    .hero-overlay h1 {
        font-size: 28px;
    }
    
    .hero-overlay,
    .hero-card-content {
        padding: 30px 24px;
    }
    
    .secondary-story {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .secondary-story-image {
        width: 100%;
        height: 200px;
    }
    
    .section-heading {
        font-size: 28px;
    }
    
    .section-header-modern h2 {
        font-size: 28px;
        letter-spacing: -0.7px;
        text-align: center;
    }
    
    .trending-heading {
        font-size: 28px;
        text-align: center;
    }
    
    .most-read-heading {
        font-size: 24px;
        text-align: center;
    }
    
    .most-read-subtitle {
        font-size: 12px;
        text-align: center;
    }

    .stats-heading {
        font-size: 36px;
    }
    
    .masonry-content h3 {
        font-size: 20px;
    }
    
    .masonry-item.large .masonry-content h3 {
        font-size: 26px;
    }
    
    .trending-title {
        font-size: 24px;
    }
    
    .trending-excerpt {
        font-size: 14px;
        line-height: 1.6;
        display: none;
    }
    
    .trending-category {
        font-size: 9px;
        margin-bottom: 12px;
    }
    
    .trending-meta {
        font-size: 11px;
    }
    
    .news-card-content h3 {
        font-size: 18px;
    }
    
    .news-card-content .category {
        font-size: 9px;
        letter-spacing: 1px;
    }
    
    .news-card-meta {
        font-size: 11px;
    }
    
    .news-card-image {
        height: 180px;
    }
    
    .news-card-content {
        padding: 20px;
    }

    .stat-value {
        font-size: 48px;
    }
}

@media (max-width: 480px) {
    .homepage-hero,
    .floating-categories,
    .featured-grid-section,
    .trending-section,
    .latest-news-section,
    .stats-panel,
    .authors-section {
        padding: 24px 16px;
    }
    
    .stat-item {
        text-align: center;
    }
    
    .hero-main-story {
        height: 350px;
    }
    
    .hero-title,
    .hero-overlay h1 {
        font-size: 24px;
        line-height: 1.2;
    }
    
    .hero-overlay,
    .hero-card-content {
        padding: 24px 20px;
    }
    
    .hero-overlay .category,
    .hero-category {
        font-size: 9px;
        padding: 5px 12px;
        margin-bottom: 12px;
    }
    
    .hero-secondary {
        gap: 20px;
    }
    
    .secondary-story-image {
        height: 180px;
    }
    
    .secondary-story h3 {
        font-size: 16px;
    }
    
    .section-heading {
        font-size: 24px;
    }
    
    .section-header-modern h2 {
        font-size: 24px;
        letter-spacing: -0.6px;
        text-align: center;
    }
    
    .trending-heading {
        font-size: 24px;
        text-align: center;
        margin-bottom: 24px;
    }
    
    .most-read-heading {
        font-size: 20px;
        text-align: center;
    }
    
    .most-read-subtitle {
        font-size: 12px;
        text-align: center;
        margin-bottom: 24px;
    }
    
    .section-header-modern {
        margin-bottom: 24px;
    }
    
    .masonry-grid {
        grid-auto-rows: 220px;
        gap: 16px;
    }
    
    .masonry-content {
        padding: 16px;
    }
    
    .masonry-content h3 {
        font-size: 16px;
    }
    
    .masonry-item.large .masonry-content h3 {
        font-size: 20px;
    }
    
    .trending-title {
        font-size: 20px;
    }
    
    .trending-excerpt {
        font-size: 14px;
        line-height: 1.5;
        margin-bottom: 16px;
        display: none;
    }
    
    .trending-category {
        font-size: 9px;
        margin-bottom: 10px;
    }
    
    .trending-meta {
        font-size: 11px;
    }
    
    .news-card-content h3 {
        font-size: 16px;
    }
    
    .news-card-content .category {
        font-size: 9px;
    }
    
    .news-card-meta {
        font-size: 11px;
    }
    
    .news-card-image {
        height: 160px;
    }
    
    .news-card-content {
        padding: 18px;
    }
    
    .article-card-content {
        padding: 16px;
    }
    
    .article-title {
        font-size: 18px;
    }
    
    .stat-value {
        font-size: 42px;
    }
    
    .stats-heading {
        font-size: 32px;
    }
}

@media (max-width: 375px) {
    .homepage-hero,
    .floating-categories,
    .featured-grid-section,
    .trending-section,
    .latest-news-section,
    .stats-panel,
    .authors-section {
        padding: 20px 12px;
    }
    
    .stat-item {
        text-align: center;
    }
    
    .hero-main-story {
        height: 300px;
    }
    
    .hero-title,
    .hero-overlay h1 {
        font-size: 22px;
    }
    
    .section-heading {
        font-size: 22px;
    }
    
    .section-header-modern h2 {
        font-size: 22px;
        letter-spacing: -0.5px;
        text-align: center;
    }
    
    .trending-heading {
        font-size: 22px;
        text-align: center;
    }
    
    .most-read-heading {
        font-size: 18px;
        text-align: center;
    }
    
    .most-read-subtitle {
        font-size: 11px;
        text-align: center;
    }
    
    .masonry-grid {
        grid-auto-rows: 200px;
    }
    
    .masonry-content h3 {
        font-size: 14px;
    }
    
    .masonry-item.large .masonry-content h3 {
        font-size: 18px;
    }
    
    .trending-title {
        font-size: 18px;
    }
    
    .trending-excerpt {
        font-size: 13px;
        line-height: 1.5;
        display: none;
    }
    
    .trending-category {
        font-size: 9px;
        letter-spacing: 1.5px;
    }
    
    .trending-meta {
        font-size: 10px;
    }
    
    .news-card-content h3 {
        font-size: 15px;
        line-height: 1.25;
    }
    
    .news-card-content .category {
        font-size: 8px;
        margin-bottom: 10px;
    }
    
    .news-card-meta {
        font-size: 10px;
    }
    
    .news-card-image {
        height: 150px;
    }
    
    .news-card-content {
        padding: 16px;
    }
