
/* VYRA Media - Dark Theme Layout */
/* Modern, clean dark design with grid-based article presentation */

/* CSS Reset and Base Styles */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 1rem;
    line-height: 1.6;
    -webkit-text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-weight: 400;
    color: #e8e8e8;
    background-color: #000000;
    line-height: 1.6;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

#vyra-app {
    background-color: #000000 !important;
    min-height: 100vh;
}

/* Force dark theme on all elements */
#vyra-app * {
    background-color: inherit;
}

#vyra-app .site-header {
    background: #000000 !important;
}

#vyra-app .site-title {
    color: #ffffff !important;
}

#vyra-app .main-content {
    background-color: #000000 !important;
}

#vyra-app .hero-section {
    background: #000000 !important;
}

#vyra-app .content-blocks {
    background-color: #000000 !important;
}

#vyra-app .vertical-section {
    background-color: #000000 !important;
}

/* Force text colors */
#vyra-app h1, #vyra-app h2, #vyra-app h3, #vyra-app h4, #vyra-app h5, #vyra-app h6 {
    color: #ffffff !important;
}

#vyra-app .hero-section h2 {
    color: #ffffff !important;
}

#vyra-app .carousel-slide .hero-title {
    color: #ffffff !important;
}

#vyra-app .article-card .article-title {
    color: #ffffff !important;
}

#vyra-app .vertical-section h2 {
    color: #ffffff !important;
}

/* Hamburger menu dark theme overrides */
#vyra-app .hamburger-menu {
    background: none !important;
    border: none !important;
}

#vyra-app .hamburger-icon span {
    background: #ffffff !important; /* White hamburger lines for better contrast */
}

#vyra-app .hamburger-menu:focus {
    outline: 2px solid #66b3ff !important;
    outline-offset: 2px !important;
}

/* Override any CSS custom properties that might interfere */
:root {
    --color-background: #000000 !important;
    --color-background-alt: #000000 !important;
    --color-text-primary: #ffffff !important;
    --color-text-secondary: #e8e8e8 !important;
    --color-text-muted: #a0a0a0 !important;
    --color-border: #404040 !important;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: #ffffff;
    letter-spacing: -0.02em;
}

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

p {
    margin-bottom: 1rem;
    color: #d0d0d0;
    font-size: 1rem;
    line-height: 1.7;
}

a {
    color: #66b3ff;
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover, a:focus {
    color: #99ccff;
    text-decoration: underline;
}

/* Layout Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header - Wired Style */
.site-header {
    background: #000000;
    border-bottom: 1px solid #404040;
    padding: 1.5rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
    background-color: rgba(0, 0, 0, 0.98);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3), 0 0 20px rgba(0, 128, 128, 0.3);
}

/* Make header relative for mobile menu positioning */
@media (max-width: 767px) {
    .site-header {
        position: relative;
    }
}

.site-header .header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

/* Header Bottom Section */
.header-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1200px;
}

/* Site Title - Centered */
.site-title {
    font-size: 2rem;
    color: #ffffff;
    margin: 0;
    text-align: center;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.site-title a {
    color: inherit;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    display: inline-block;
}

.site-title a:hover {
    color: #66b3ff;
    transform: scale(1.02);
}

/* Site Logo Image - Enhanced sizing constraints */
.site-logo-image {
    height: 85px !important;
    width: auto !important;
    max-width: 600px !important;
    max-height: 85px !important;
    display: block !important;
    object-fit: contain !important;
    transition: all 0.2s ease;
    /* Additional constraints to prevent oversized logos */
    min-width: 0 !important;
    min-height: 0 !important;
    overflow: hidden !important;
}

.site-title a:hover .site-logo-image {
    transform: scale(1.02);
    filter: brightness(1.1);
}

/* Container constraints to prevent logo overflow */
.site-title {
    max-width: 100%;
    overflow: hidden;
    display: flex;
    justify-content: center;
    /* Additional constraints to prevent logo overflow */
    width: 100%;
    box-sizing: border-box;
}

.site-title a {
    display: inline-block;
    max-width: 100%;
    /* Ensure the link container doesn't expand beyond its parent */
    width: auto;
    max-width: 600px;
    box-sizing: border-box;
}

/* Fallback for loading states */
.site-logo-image:not([src]) {
    height: 85px;
    width: 600px;
    background: #333;
}

.main-nav {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: 0;
}

.main-nav a {
    font-weight: 600;
    padding: 0.5rem 1rem;
    transition: all 0.2s ease;
    color: #e8e8e8;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-decoration: none;
    border-bottom: 2px solid transparent;
}

.main-nav a:hover, .main-nav a:focus {
    color: #66b3ff;
    text-decoration: none;
    border-bottom-color: #66b3ff;
}

.main-nav a.active {
    color: #66b3ff;
    text-decoration: none;
    border-bottom-color: #66b3ff;
    font-weight: 700;
}

/* Header Subscribe Button - Red Style */
.header-subscribe-btn {
    background: #ef4444 !important; /* Bright red color */
    color: #ffffff !important;
    border: none !important;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(239, 68, 68, 0.4);
    display: block; /* Show on desktop by default */
}

.header-subscribe-btn:hover {
    background: #dc2626 !important; /* Darker red on hover */
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(220, 38, 38, 0.5);
}

.header-subscribe-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(220, 38, 38, 0.3);
}

/* Mobile Header Subscribe Button - Red Style */
.mobile-header-subscribe-btn {
    background: #ef4444 !important; /* Bright red color */
    color: #ffffff !important;
    border: none !important;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(239, 68, 68, 0.4);
    display: none; /* Hide on desktop by default */
}

.mobile-header-subscribe-btn:hover {
    background: #dc2626 !important; /* Darker red on hover */
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(220, 38, 38, 0.5);
}

/* Main Content */
.main-content {
    padding: 2rem 16px;
    min-height: 80vh;
    max-width: 1200px;
    margin: 0 auto;
    background-color: #000000;
}

/* Breadcrumb Navigation */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    font-size: 0.9rem;
    color: #a0a0a0;
    background-color: #000000;
}

.breadcrumb a {
    color: #66b3ff;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb-separator {
    color: #666;
}

/* Home Link in Header */
.home-link {
    color: #e8e8e8;
    text-decoration: none;
}

.home-link:hover {
    color: #66b3ff;
    text-decoration: none;
}

/* Logo Container */
.logo-container {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    margin-left: 8px; /* Move slightly right from content edge */
}

.logo-container a {
    display: block;
    line-height: 0;
    transition: all 0.2s ease;
}

.logo-container a:hover {
    transform: scale(1.05);
}

/* Hamburger Menu Button */
.hamburger-menu {
    display: none; /* Hidden on desktop */
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    margin-right: 1rem;
    flex-shrink: 0;
}

/* Mobile Navigation - Hidden on desktop by default */
.mobile-nav {
    display: none; /* Hidden on desktop */
}

.hamburger-menu:focus {
    outline: 2px solid #66b3ff;
    outline-offset: 2px;
}

.hamburger-icon {
    width: 24px;
    height: 18px;
    position: relative;
    transform: rotate(0deg);
    transition: 0.3s ease-in-out;
    cursor: pointer;
}

.hamburger-icon span {
    display: block;
    position: absolute;
    height: 3px;
    width: 100%;
    background: #e8e8e8;
    border-radius: 2px;
    opacity: 1;
    left: 0;
    transform: rotate(0deg);
    transition: 0.25s ease-in-out;
}

.hamburger-icon span:nth-child(1) {
    top: 0px;
}

.hamburger-icon span:nth-child(2),
.hamburger-icon span:nth-child(3) {
    top: 7px;
}

.hamburger-icon span:nth-child(4) {
    top: 14px;
}

/* Hamburger animation when active */
.hamburger-menu.active .hamburger-icon span:nth-child(1) {
    top: 7px;
    width: 0%;
    left: 50%;
}

.hamburger-menu.active .hamburger-icon span:nth-child(2) {
    transform: rotate(45deg);
}

.hamburger-menu.active .hamburger-icon span:nth-child(3) {
    transform: rotate(-45deg);
}

.hamburger-menu.active .hamburger-icon span:nth-child(4) {
    top: 7px;
    width: 0%;
    left: 50%;
}

/* Hamburger Menu Button */
.hamburger-menu {
    display: none; /* Hidden on desktop */
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    margin-right: 1rem;
    flex-shrink: 0;
}

/* Mobile Navigation - Hidden on desktop by default */
.mobile-nav {
    display: none; /* Hidden on desktop */
}

.hamburger-menu:focus {
    outline: 2px solid #66b3ff;
    outline-offset: 2px;
}

.hamburger-icon {
    width: 24px;
    height: 18px;
    position: relative;
    transform: rotate(0deg);
    transition: 0.3s ease-in-out;
    cursor: pointer;
}

.hamburger-icon span {
    display: block;
    position: absolute;
    height: 3px;
    width: 100%;
    background: #e8e8e8;
    border-radius: 2px;
    opacity: 1;
    left: 0;
    transform: rotate(0deg);
    transition: 0.25s ease-in-out;
}

.hamburger-icon span:nth-child(1) {
    top: 0px;
}

.hamburger-icon span:nth-child(2),
.hamburger-icon span:nth-child(3) {
    top: 7px;
}

.hamburger-icon span:nth-child(4) {
    top: 14px;
}

/* Hamburger animation when active */
.hamburger-menu.active .hamburger-icon span:nth-child(1) {
    top: 7px;
    width: 0%;
    left: 50%;
}

.hamburger-menu.active .hamburger-icon span:nth-child(2) {
    transform: rotate(45deg);
}

.hamburger-menu.active .hamburger-icon span:nth-child(3) {
    transform: rotate(-45deg);
}

.hamburger-menu.active .hamburger-icon span:nth-child(4) {
    top: 7px;
    width: 0%;
    left: 50%;
}

.logo-placeholder {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #66b3ff, #4da6ff);
    color: #1a1a1a;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 18px;
    border-radius: 8px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 2px 8px rgba(102, 179, 255, 0.3);
}

/* Logo Image */
.logo-image {
    width: 60px;
    height: 60px;
    display: block;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(102, 179, 255, 0.3);
    transition: all 0.2s ease;
}

.logo-container a:hover .logo-image {
    box-shadow: 0 4px 12px rgba(102, 179, 255, 0.5);
}

/* Logo text styling removed - now using centered site title */

/* Hero Section - Updated Layout with Reduced Margins - REMOVED: conflicts with carousel layout */

/* Homepage Layout - Two Column Design - MOVED TO END OF FILE FOR HIGHEST PRIORITY */

/* Override grid layout for vertical pages */
.hero-section .hero-article {
    display: block !important; /* Override grid layout */
    grid-template-columns: none !important;
    gap: 0 !important;
}

/* Make hero section full width for vertical pages - REMOVED: conflicts with carousel layout */

.hero-article {
    display: grid;
    grid-template-columns: 70% 30%; /* Give more space to left feature */
    gap: 24px; /* L gutter between featured and rail */
    align-items: start;
}

.hero-article .article-content {
    padding: 0;
    display: flex;
    flex-direction: column;
}

/* Hero featured content - stacks vertically */
.hero-featured {
    display: flex;
    flex-direction: column;
}

/* Vertical Page Specific Styles */
.hero-placeholder {
    text-align: center;
    padding: 4rem 2rem;
    background: #000000;
    border-radius: 12px;
    border: 2px dashed #404040;
}

/* Vertical Page Hero Section */
.hero-article .hero-featured {
    width: 100% !important;
    max-width: 100% !important;
    text-align: center !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 auto !important;
    padding: 2rem 0 !important;
}

/* Override grid layout for vertical pages */
.hero-section .hero-article .hero-featured {
    grid-column: 1 / -1 !important; /* Span full width */
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    padding: 2rem 0 !important;
}

/* Ensure hero content spans full width */
.hero-section .hero-article .hero-featured .article-content {
    width: 100% !important;
    max-width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
}

.hero-article .hero-featured .article-image {
    width: 100%;
    max-width: 800px;
    aspect-ratio: 3/2;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    margin-bottom: 16px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.hero-article .hero-featured .article-content {
    padding: 0 !important;
    text-align: center !important;
    max-width: 800px !important;
    margin: 0 auto !important;
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
}

.hero-article .hero-featured .article-title {
    font-size: 2.25rem !important;
    font-weight: 800 !important;
    line-height: 1.1 !important;
    margin: 0 0 16px 0 !important;
    color: #ffffff !important;
    letter-spacing: -0.03em !important;
    text-align: center !important;
}

.hero-article .hero-featured .article-excerpt {
    font-size: 1.125rem;
    color: #b0b0b0;
    line-height: 1.7;
    margin: 0 0 24px 0;
}

.hero-article .hero-featured .article-meta {
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: center;
}

.hero-article .hero-featured .vertical-tag {
    background: #2563eb;
    color: #ffffff;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    box-shadow: 0 2px 4px rgba(37, 99, 235, 0.3);
}

.hero-article .hero-featured .quality-score {
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
}

.hero-article .hero-featured .quality-score.high {
    background: #4ade80;
    color: white;
}

.hero-article .hero-featured .quality-score.medium {
    background: #fbbf24;
    color: #212529;
}

.hero-article .hero-featured .quality-score.low {
    background: #ef4444;
    color: white;
}

.hero-placeholder h2 {
    color: #a0a0a0;
    margin-bottom: 1rem;
}

.hero-placeholder p {
    color: #c0c0c0;
    font-size: 1.1rem;
}

.articles-section {
    margin-top: 2rem;
}

.articles-section h3 {
    font-size: 1.75rem;
    margin-bottom: 2rem;
    color: #1a1a1a;
    border-bottom: 2px solid #404040;
    padding-bottom: 1rem;
}



/* Responsive Design for Homepage - MOVED TO END OF FILE FOR HIGHEST PRIORITY */

/* Responsive Design for Vertical Pages */
@media (max-width: 768px) {
    .hero-article .hero-featured .article-title {
        font-size: 1.75rem;
    }
    
    .hero-article .hero-featured .article-excerpt {
        font-size: 1rem;
    }
    
    .hero-article .hero-featured .article-content {
        max-width: 100%;
        padding: 0 1rem;
    }
    
    .articles-section h3 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero-article .hero-featured .article-title {
        font-size: 1.5rem;
    }
    
    .hero-article .hero-featured .article-excerpt {
        font-size: 0.9rem;
    }
    
    /* Vertical page hero mobile responsive styles */
    .hero-section {
        padding: 0 8px !important;
    }
    
    .hero-section .hero-carousel {
        padding: 0 8px !important;
    }
    
    .hero-section .carousel-container {
        height: 450px;
    }
    
    .hero-section .carousel-slide .hero-image {
        height: 220px;
    }
    
    .hero-section .carousel-slide .hero-title {
        font-size: 1.5rem;
        -webkit-line-clamp: 2;
        line-clamp: 2;
    }
    
    .articles-section h3 {
        font-size: 1.5rem;
    }
}

.no-content-message,
.error-message {
    text-align: center;
    padding: 4rem 2rem;
    background: #000000;
    border-radius: 12px;
    margin: 2rem 0;
}

.no-content-message h3,
.error-message h3 {
    color: #a0a0a0;
    margin-bottom: 1rem;
}

.no-content-message p,
.error-message p {
    color: #c0c0c0;
    font-size: 1.1rem;
}

.error-message {
    background: #3d1a1a;
    border: 1px solid #5c2a2a;
}

.error-message h3 {
    color: #ff6b6b;
}

.error-message p {
    color: #ff6b6b;
}

.error-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #ef4444;
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.hero-article .article-image {
    width: 100%;
    aspect-ratio: 3/2;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 16px; /* M bottom margin to headline */
}

.hero-article .article-title {
    font-size: 2.25rem;
    font-weight: 800;
    line-height: 1.1;
    margin: 0 0 8px 0; /* 0 top, S bottom to summary */
    color: #ffffff;
    letter-spacing: -0.03em;
}

.hero-article .article-excerpt {
    font-size: 1.125rem;
    color: #b0b0b0;
    line-height: 1.7;
    margin: 0 0 24px 0; /* 0 top, L bottom to rail/next content */
}

.hero-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px; /* Increased spacing between rail cards */
    min-width: 520px; /* Increased to accommodate 500px cards + padding */
}

.sidebar-article {
    display: flex;
    gap: 8px; /* Further reduced gap for 40% column */
    padding: 6px; /* Further reduced padding for 40% column */
    background: #000000; /* Clean dark background */
    border-radius: 12px; /* Full border radius */
    transition: all 0.3s ease;
    border: 1px solid #404040; /* Subtle border */
    min-height: 40px; /* Ultra compact height for minimal cards */
    min-width: auto; /* Remove fixed min-width to fit container */
    max-width: 100%; /* Ensure it fits within its grid column */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3); /* Professional shadow */
    margin-right: 0.5rem; /* Add right margin for additional whitespace */
}

.sidebar-article:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    background: #333333;
}

.sidebar-article .article-image {
    width: 50px; /* Further reduced width for 40% column */
    height: 50px; /* Further reduced height for 40% column */
    object-fit: cover;
    border-radius: 8px; /* Smaller border radius */
    flex-shrink: 0; /* Prevent image from shrinking */
}

.sidebar-article .article-title {
    font-size: 0.8rem; /* Further reduced font for 40% column */
    font-weight: 700;
    line-height: 1.2; /* Tighter line height for compact sidebar */
    margin: 0;
    color: #e8e8e8;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* Allow only 2 lines for 40% column */
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-clamp: 2;
    flex: 1; /* Take remaining space */
}

/* Content Blocks - Column Layout (Sections as Rows) */
.content-blocks {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px; /* Match hero section left/right margins */
    display: flex;
    flex-direction: column;
    gap: 2rem; /* Gap between section rows */
    background-color: #000000;
}

.vertical-section {
    margin-bottom: 0; /* Remove bottom margin since we're using gap */
    width: 100%; /* Full width for each section row */
    min-width: auto; /* Remove min-width constraint */
    max-width: none; /* Remove max-width constraint */
    background-color: #000000;
}

.vertical-section h2 {
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 2rem;
    color: #ffffff;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    position: relative;
}

.vertical-section h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #66b3ff, #80ccff);
    border-radius: 2px;
}

/* Articles Grid - Square Card Layout */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 1.5rem;
}

.article-card {
    background: #0a0a0a;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    border: 1px solid #404040;
    display: flex;
    flex-direction: column;
}

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

.article-card .article-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
    border-radius: 0;
}

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

.article-card .article-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.article-card .article-title {
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 0.75rem;
    color: #ffffff;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-clamp: 3;
}

.article-card .article-excerpt {
    font-size: 1rem;
    color: #b0b0b0;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-clamp: 3;
}

/* Article cards now only show image and headline - meta info removed for cleaner design */

/* Clickable Article Card Links */
.article-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: all 0.3s ease;
}

.article-card-link:hover {
    text-decoration: none;
    color: inherit;
}

.article-card-link:focus {
    outline: 2px solid #0066cc;
    outline-offset: 2px;
}

.article-card-link:focus .article-card {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

/* Ensure article cards maintain their hover effects when wrapped in links */
.article-card-link:hover .article-card {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.article-card-link:hover .article-card .article-image {
    transform: scale(1.05);
}

/* Hero Section Clickable Links */
.hero-article-link {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: all 0.3s ease;
}

.hero-article-link:hover {
    text-decoration: none;
    color: inherit;
}

.hero-article-link:focus {
    outline: 2px solid #0066cc;
    outline-offset: 2px;
}

.hero-article-link:hover .hero-featured {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

/* Sidebar Article Clickable Links */
.sidebar-article-link {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: all 0.3s ease;
}

.sidebar-article-link:hover {
    text-decoration: none;
    color: inherit;
}

.sidebar-article-link:focus {
    outline: 2px solid #0066cc;
    outline-offset: 2px;
}

.sidebar-article-link:hover .sidebar-article {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.sidebar-article-link:hover .sidebar-article .article-image {
    transform: scale(1.05);
}

/* Article Page Styles */
.article-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 0;
    background-color: #000000;
}

.breadcrumb {
    margin-bottom: 2rem;
    padding: 1rem 0;
    border-bottom: 1px solid #404040;
    font-size: 0.9rem;
    color: #a0a0a0;
    background-color: #000000;
}

.breadcrumb a {
    color: #66b3ff;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb-separator {
    margin: 0 0.5rem;
    color: #666;
}

.article-hero {
    margin-bottom: 3rem;
    text-align: center;
    background-color: #000000;
}

.article-hero-image {
    width: 100%;
    max-width: 600px;
    height: auto;
    border-radius: 12px;
    margin-bottom: 2rem;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.article-headline {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.2;
    color: #ffffff;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.article-meta {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 3rem;
    padding: 1rem 0;
    border-top: 1px solid #404040;
    border-bottom: 1px solid #404040;
    font-size: 0.9rem;
    color: #a0a0a0;
    background-color: #000000;
}

.article-vertical {
    background: #66b3ff;
    color: #1a1a1a;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
}

.article-date, .article-word-count {
    color: #a0a0a0;
}

.article-body {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #d0d0d0;
    margin-bottom: 3rem;
    background-color: #000000;
}

/* Article body headers scaling */
.article-body h1 {
    font-size: 2.25rem;
    font-weight: 800;
    line-height: 1.2;
    color: #ffffff;
    margin: 2rem 0 1.5rem 0;
}

.article-body h2 {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.3;
    color: #ffffff;
    margin: 1.75rem 0 1.25rem 0;
}

.article-body h3 {
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.4;
    color: #e8e8e8;
    margin: 1.5rem 0 1rem 0;
}

.article-body h4 {
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.4;
    color: #e8e8e8;
    margin: 1.25rem 0 0.75rem 0;
}

.article-body h5 {
    font-size: 1.125rem;
    font-weight: 600;
    line-height: 1.4;
    color: #e8e8e8;
    margin: 1rem 0 0.5rem 0;
}

.article-body h6 {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
    color: #e8e8e8;
    margin: 1rem 0 0.5rem 0;
}

.article-body p {
    margin-bottom: 1.5rem;
}

.article-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    padding: 2rem 0;
    border-top: 1px solid #404040;
    background-color: #000000;
}

.share-button {
    background: #0a0a0a;
    border: 1px solid #404040;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9rem;
    color: #a0a0a0;
}

.share-button:hover {
    background: #333333;
    border-color: #66b3ff;
    color: #66b3ff;
}

.related-articles {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 1px solid #404040;
    background-color: #000000;
}

.related-articles h3 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1.5rem;
    color: #e8e8e8;
}

.related-article-card {
    background: #0a0a0a;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    border: 1px solid #404040;
}

.related-article-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

/* Header Controls and Update Indicators */
.header-controls {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 0.5rem;
    margin: 0;
    flex: 0 0 auto;
}

/* Header spacer to push hamburger menu to the right */
.header-spacer {
    flex: 1;
}

/* Header Subscribe Button */
.subscribe-btn-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.subscribe-btn-header:hover {
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.subscribe-btn-header:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(102, 126, 234, 0.3);
}

.subscribe-btn-header:focus {
    outline: 2px solid #66b3ff;
    outline-offset: 2px;
}

.content-status {
    font-size: 0.8rem;
    color: #a0a0a0;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    background: #404040;
    transition: all 0.3s ease;
}

.content-status.active {
    color: #4ade80;
    background: #1a3d1a;
}

.last-updated {
    font-size: 0.75rem;
    color: #808080;
    font-style: italic;
}

.last-updated.active {
    color: #e8e8e8;
}

/* Loading Skeletons and Error States */
.skeleton {
    background: linear-gradient(90deg, #404040 25%, #333333 50%, #404040 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

.skeleton-image {
    width: 100%;
    height: 200px;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.skeleton-title {
    width: 80%;
    height: 1.5rem;
    border-radius: 4px;
    margin-bottom: 0.5rem;
}

.skeleton-text {
    width: 100%;
    height: 1rem;
    border-radius: 4px;
    margin-bottom: 0.5rem;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.error {
    background: #3d1a1a;
    color: #ff6b6b;
    padding: 1rem;
    border: 1px solid #5c2a2a;
    border-radius: 8px;
    margin: 1rem 0;
    text-align: center;
}

.no-content {
    text-align: center;
    padding: 2rem;
    color: #a0a0a0;
    font-style: italic;
}

/* Update Notifications */
.update-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    background: #000000;
    border: 2px solid #66b3ff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    animation: slideInRight 0.3s ease-out;
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    min-width: 300px;
}

.notification-icon {
    font-size: 1.2rem;
}

.notification-text {
    flex: 1;
    color: #e8e8e8;
    font-weight: 500;
}

.notification-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #a0a0a0;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.notification-close:hover {
    background: #404040;
    color: #e8e8e8;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Footer */
.site-footer {
    background: #000000;
    color: #e8e8e8;
    padding: 3rem 0;
    margin-top: 4rem;
    text-align: center;
    border-top: 1px solid #404040;
}

.site-footer .footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

.site-footer p {
    color: #a0a0a0;
    margin-bottom: 0;
}

/* Loading States */
.loading-skeleton {
    background: linear-gradient(90deg, #404040 25%, #333333 50%, #404040 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.skeleton {
    border-radius: 4px;
    margin-bottom: 1rem;
}

.skeleton-image {
    height: 200px;
    background: #404040;
}

.skeleton-title {
    height: 24px;
    background: #404040;
    width: 80%;
}

.skeleton-text {
    height: 16px;
    background: #404040;
    width: 100%;
}

.skeleton-text:nth-child(3) {
    width: 60%;
}

/* Responsive Design - Professional Spacing Implementation */

/* Tablet (768–1199px) */
@media (max-width: 1199px) and (min-width: 768px) {
    /* .hero-section padding removed - conflicts with carousel layout */
    
    .main-content {
        padding: 2rem 12px; /* Match hero section margins */
    }
    
    .content-blocks {
        padding: 0 12px; /* Match hero section margins */
    }
    
    .site-header .header-content,
    .site-footer .footer-content {
        padding: 0 12px; /* Match hero section margins */
    }
    
    /* Tablet article card improvements */
    .article-card .article-title {
        font-size: 1.1rem;
        line-height: 1.3;
        -webkit-line-clamp: 3;
        line-clamp: 3;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    
    .article-card .article-excerpt {
        font-size: 0.95rem;
        line-height: 1.5;
        -webkit-line-clamp: 3;
        line-clamp: 3;
    }
    
    .article-card .article-image {
        height: 190px;
    }
    
    /* Tablet article page header scaling */
    .article-headline {
        font-size: 2rem;
        line-height: 1.25;
    }
    
    .article-body h1 {
        font-size: 2rem;
        margin: 1.75rem 0 1.25rem 0;
    }
    
    .article-body h2 {
        font-size: 1.5rem;
        margin: 1.5rem 0 1rem 0;
    }
    
    .article-body h3 {
        font-size: 1.5rem;
        margin: 1.25rem 0 0.75rem 0;
    }
    
    .article-body h4 {
        font-size: 1.25rem;
        margin: 1rem 0 0.5rem 0;
    }
    
    .article-body h5 {
        font-size: 1.125rem;
        margin: 0.75rem 0 0.5rem 0;
    }
    
    .article-body h6 {
        font-size: 1rem;
        margin: 0.75rem 0 0.5rem 0;
    }
    
    .article-body {
        font-size: 1.05rem;
        line-height: 1.75;
    }
    
    .hero-article {
        grid-template-columns: 70% 30%;
        gap: 24px;
    }
    
    .hero-article .article-image {
        margin-bottom: 12px; /* Reduce to S spacing */
    }
    
    .hero-sidebar {
        gap: 12px; /* Reduce to S spacing */
    }
}

/* Tablet narrow (960px breakpoint for rail positioning) */
@media (max-width: 959px) and (min-width: 768px) {
    .hero-article {
        grid-template-columns: 1fr; /* Rail sits under featured block */
        gap: 24px;
    }
    
    .hero-article .article-content {
        flex-direction: column; /* Ensure content stacks vertically */
    }
    
    .hero-sidebar {
        flex-direction: row;
        gap: 20px; /* Match desktop spacing */
        min-width: auto; /* Allow flexible width on tablet */
    }
    
    .sidebar-article {
        min-height: 90px; /* Slightly smaller for tablet */
        min-width: 350px; /* Proportional width for tablet */
    }
    
    .sidebar-article .article-image {
        width: 90px; /* Slightly smaller for tablet */
        height: 90px;
    }
}

/* Mobile (<768px) */
@media (max-width: 767px) {
    /* .hero-section padding removed - conflicts with carousel layout */
    
    .main-content {
        padding: 0.5rem 8px; /* Match hero section margins */
    }
    
    .content-blocks {
        padding: 0 8px; /* Match hero section margins */
        flex-direction: column; /* Stack vertically on mobile */
        gap: 0.5rem; /* Reduced gap for mobile */
    }
    
    .vertical-section {
        max-width: 100%; /* Full width on mobile */
        min-width: auto; /* Remove min-width constraint on mobile */
    }
    
    .site-header .header-content,
    .site-footer .footer-content {
        padding: 0 8px; /* Match hero section margins */
    }
    
    
    .hero-article {
        grid-template-columns: 1fr;
        gap: 16px;
        text-align: left;
    }
    
    .hero-article .article-image {
        margin-bottom: 16px;
    }
    
    .hero-article .article-title {
        font-size: 18px; /* 16px–20px as specified */
        margin: 0 0 12px 0; /* Reduce bottom margin to S */
    }
    
    .hero-article .article-excerpt {
        font-size: 13px; /* 12–14px as specified */
        margin: 0 0 12px 0; /* Reduce bottom margin to S */
    }
    
    .hero-sidebar {
        gap: 16px; /* M spacing between rail cards */
    }
    
    .sidebar-article {
        padding: 12px 16px; /* Adjusted padding for mobile */
        border-radius: 12px; /* Full border radius */
        min-height: 40px; /* Consistent with desktop height */
        min-width: 350px; /* Increased width for better title display */
    }
    
    .sidebar-article .article-image {
        width: 80px; /* Smaller for mobile */
        height: 80px;
    }
    
    .sidebar-article .article-title {
        font-size: 1rem; /* Slightly smaller for mobile */
        -webkit-line-clamp: 3; /* Fewer lines on mobile */
        line-clamp: 3;
    }
}

/* General responsive adjustments */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
    
    .articles-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .main-nav {
        gap: 1rem;
    }
    
    .main-nav a {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .site-header h1 {
        font-size: 1.5rem;
    }
    
    .hero-article .article-title {
        font-size: 1.5rem;
    }
    
    .vertical-section h2 {
        font-size: 1.5rem;
    }
}

/* ===== HOMEPAGE LAYOUT RULES - HIGHEST PRIORITY ===== */
/* These rules must come last to override all other conflicting styles */

/* Homepage Layout - Large continuous hero section */
.homepage .hero-section-full {
    width: 100% !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 0 16px !important;
    background: transparent;
    border-bottom: 1px solid #dee2e6;
    position: relative;
}

/* Hero Section Header */
.hero-section-header {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 16px 0 16px;
    text-align: center;
}

.hero-section-header h2 {
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 2rem;
    color: #ffffff;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    position: relative;
}

.hero-section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #66b3ff, #80ccff);
    border-radius: 2px;
}

/* Hero Carousel */
.hero-carousel {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
    overflow: hidden;
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 600px;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.carousel-slide.active {
    opacity: 1;
}

.carousel-slide .hero-article-link {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.carousel-slide .hero-article-link:hover {
    transform: translateY(-4px);
    text-decoration: none;
    color: inherit;
}

.carousel-slide .hero-image {
    width: 100%;
    max-width: 100%;
    height: 350px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    display: block;
}

.carousel-slide .hero-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 2;
}

.carousel-slide .hero-title {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.2;
    color: #ffffff;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-clamp: 3;
    min-height: 3.6rem; /* Ensure minimum height for 3 lines */
}

/* Carousel Controls */
.carousel-controls {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding-left: 16px; /* 16px (hero-carousel padding) + 4px (closer to border) */
    padding-right: 36px; /* 16px (hero-carousel padding) + 20px (desired spacing) */
    pointer-events: none;
    z-index: 20;
    box-sizing: border-box;
}

.carousel-prev,
.carousel-next {
    background: rgba(42, 42, 42, 0.9);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 24px;
    font-weight: bold;
    color: #e8e8e8;
    cursor: pointer;
    transition: all 0.3s ease;
    pointer-events: all;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-prev:hover,
.carousel-next:hover {
    background: rgba(42, 42, 42, 1);
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.carousel-prev {
    margin: 0;
}

.carousel-next {
    margin: 0;
}

/* Carousel Indicators */
.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 2rem;
    padding-bottom: 2rem;
}

.carousel-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: none;
    background: rgba(232, 232, 232, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-indicator.active {
    background: #66b3ff;
    transform: scale(1.2);
}

.carousel-indicator:hover {
    background: rgba(102, 179, 255, 0.7);
    transform: scale(1.1);
}

/* Vertical pages now use the same hero-carousel structure as homepage for perfect alignment */

/* Vertical Page Hero Section - matches homepage layout - HIGHEST PRIORITY */
.hero-section {
    width: 100% !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 0 16px !important;
    background: #000000 !important;
    box-sizing: border-box !important;
    display: block !important;
    position: relative !important;
}

/* Ensure vertical page hero carousel has same styling as homepage */
.hero-section .hero-carousel {
    width: 100% !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 0 16px !important;
    overflow: hidden;
}

.hero-section .carousel-container {
    position: relative !important;
    width: 100% !important;
    height: 600px !important;
    margin: 0 auto !important;
    display: block !important;
}

.hero-section .carousel-slide {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    opacity: 0;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    transition: opacity 0.5s ease-in-out;
    justify-content: center !important;
}

.hero-section .carousel-slide.active {
    opacity: 1;
}

.hero-section .carousel-slide .hero-article-link {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.hero-section .carousel-slide .hero-article-link:hover {
    transform: translateY(-4px);
    text-decoration: none;
    color: inherit;
}

.hero-section .carousel-slide .hero-image {
    width: 100%;
    max-width: 100%;
    height: 350px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    display: block;
}

.hero-section .carousel-slide .hero-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 2;
}

.hero-section .carousel-slide .hero-title {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.2;
    color: #ffffff;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.hero-section .carousel-slide .hero-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.hero-section .carousel-slide .vertical-tag {
    background: #2563eb;
    color: #ffffff;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(37, 99, 235, 0.3);
}

/* Hero article full layout */
.hero-article-full {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-sizing: border-box;
}

.hero-article-full .hero-article-link {
    text-decoration: none;
    color: inherit;
    display: block;
    width: 100%;
    transition: all 0.3s ease;
}

.hero-article-full .hero-article-link:hover {
    transform: translateY(-4px);
    text-decoration: none;
    color: inherit;
}

.hero-image {
    width: 100%;
    max-width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 2rem;
    display: block;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 3rem 2rem;
    position: relative;
    z-index: 2;
}

.hero-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.vertical-tag {
    background: #2563eb;
    color: #ffffff;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: 0 2px 4px rgba(37, 99, 235, 0.3);
}

.quality-score {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.quality-score.high {
    background: #4ade80;
    color: white;
}

.quality-score.medium {
    background: #fbbf24;
    color: #212529;
}

.quality-score.low {
    background: #ef4444;
    color: white;
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.1;
    color: #ffffff;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.hero-excerpt {
    font-size: 1.25rem;
    color: #b0b0b0;
    line-height: 1.7;
    margin: 0;
}


/* Vertical sections below sidebar */
.homepage .content-blocks {
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 0 16px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 2rem !important;
}

/* Responsive Design for Homepage */
@media (max-width: 1024px) {
    .homepage .hero-section-full {
        max-width: 1200px !important;
        margin: 0 auto !important;
        padding: 0 12px !important;
    }
    
    .hero-section-header {
        padding: 2rem 12px 0 12px;
    }
    
    .hero-carousel {
        padding: 0 12px;
    }
    
    .carousel-controls {
        padding-left: 16px; /* 12px (hero-carousel padding) + 4px (closer to border) */
        padding-right: 32px; /* 12px (hero-carousel padding) + 20px (desired spacing) */
    }
    
    .carousel-container {
        height: 500px;
    }
    
    .carousel-slide .hero-image {
        height: 280px;
    }
    
    .carousel-slide .hero-title {
        font-size: 2rem;
        -webkit-line-clamp: 2;
        line-clamp: 2;
    }
    
    /* Vertical page hero responsive styles */
    .hero-section {
        padding: 0 12px !important;
    }
    
    .hero-section .hero-carousel {
        padding: 0 12px !important;
    }
    
    .hero-section .carousel-container {
        height: 500px;
    }
    
    .hero-section .carousel-slide .hero-image {
        height: 280px;
    }
    
    .hero-section .carousel-slide .hero-title {
        font-size: 1.75rem;
        -webkit-line-clamp: 3;
        line-clamp: 3;
        line-height: 1.3;
        padding: 0 1rem;
    }
    
    .hero-article-full {
        padding: 0;
    }
    
    .hero-content {
        padding: 2rem 1rem;
    }
    
    .hero-image {
        height: 300px;
        width: 100%;
        max-width: 100%;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
}

@media (max-width: 768px) {
    .homepage .hero-section-full {
        max-width: 1200px !important;
        margin: 0 auto !important;
        padding: 0 8px !important;
    }
    
    .hero-section-header {
        padding: 2rem 8px 0 8px;
    }
    
    .hero-section-header h2 {
        font-size: 1.5rem;
    }
    
    .hero-carousel {
        padding: 0 8px;
    }
    
    .carousel-container {
        height: 450px;
    }
    
    .carousel-slide .hero-image {
        height: 220px;
    }
    
    .carousel-slide .hero-title {
        font-size: 1.75rem;
        -webkit-line-clamp: 3;
        line-clamp: 3;
        line-height: 1.3;
        padding: 0 1rem;
    }
    
    .carousel-prev,
    .carousel-next {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    
    .carousel-controls {
        padding-left: 12px; /* 8px (hero-carousel padding) + 4px (closer to border) */
        padding-right: 18px; /* 8px (hero-carousel padding) + 10px (desired spacing) */
    }
    
    .carousel-prev,
    .carousel-next {
        margin: 0;
    }
    
    .hero-article-full {
        padding: 0;
    }
    
    .hero-content {
        padding: 1rem 0.5rem;
    }
    
    .carousel-slide .hero-content {
        padding: 0 0.5rem;
    }
    
    .hero-image {
        height: 250px;
        width: 100%;
        max-width: 100%;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-excerpt {
        font-size: 1.1rem;
    }
    
}

/* Mobile spacing adjustments for vertical pages */
@media (max-width: 767px) {
    .main-content {
        padding: 1.5rem 8px;
    }
    
    .content-blocks {
        gap: 1.5rem;
    }
    
    .articles-section {
        margin-top: 2rem;
    }
    
    /* Mobile hero title improvements */
    .carousel-slide .hero-title {
        font-size: 1.5rem;
        line-height: 1.4;
        -webkit-line-clamp: 4;
        line-clamp: 4;
        padding: 0 0.5rem;
        margin-bottom: 0.5rem;
    }
    
    .hero-section .carousel-slide .hero-title {
        font-size: 1.5rem;
        line-height: 1.4;
        -webkit-line-clamp: 4;
        line-clamp: 4;
        padding: 0 0.5rem;
        margin-bottom: 0.5rem;
    }
    
    /* Mobile hero content improvements */
    .carousel-slide .hero-content {
        padding: 0 0.5rem;
        max-width: 100%;
    }
    
    .hero-section .carousel-slide .hero-content {
        padding: 0 0.5rem;
        max-width: 100%;
    }
    
    /* Mobile hero meta improvements */
    .carousel-slide .hero-meta {
        margin-bottom: 0.75rem;
        padding: 0 0.5rem;
    }
    
    .hero-section .carousel-slide .hero-meta {
        margin-bottom: 0.75rem;
        padding: 0 0.5rem;
    }
    
    /* Mobile article card improvements */
    .article-card {
        margin-bottom: 1.5rem;
    }
    
    .article-card .article-content {
        padding: 1rem;
    }
    
    .article-card .article-title {
        font-size: 1rem;
        line-height: 1.3;
        margin-bottom: 0.75rem;
        -webkit-line-clamp: 3;
        line-clamp: 3;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    
    .article-card .article-excerpt {
        font-size: 0.9rem;
        line-height: 1.5;
        margin-bottom: 1rem;
        -webkit-line-clamp: 3;
        line-clamp: 3;
    }
    
    .article-card .article-meta {
        font-size: 0.8rem;
    }
    
    .article-card .article-image {
        height: 180px;
    }
    
    /* Mobile article page header scaling */
    .article-headline {
        font-size: 1.75rem;
        line-height: 1.3;
        margin-bottom: 1rem;
    }
    
    .article-body h1 {
        font-size: 1.75rem;
        margin: 1.5rem 0 1rem 0;
    }
    
    .article-body h2 {
        font-size: 1.5rem;
        margin: 1.25rem 0 0.75rem 0;
    }
    
    .article-body h3 {
        font-size: 1.5rem;
        margin: 1rem 0 0.5rem 0;
    }
    
    .article-body h4 {
        font-size: 1.125rem;
        margin: 0.75rem 0 0.5rem 0;
    }
    
    .article-body h5 {
        font-size: 1rem;
        margin: 0.5rem 0 0.25rem 0;
    }
    
    .article-body h6 {
        font-size: 0.9rem;
        margin: 0.5rem 0 0.25rem 0;
    }
    
    .article-body {
        font-size: 1rem;
        line-height: 1.7;
    }
}

/* ===== MOBILE HAMBURGER NAVIGATION - HIGHEST PRIORITY ===== */
/* These styles must come last to override all other conflicting styles */

@media (max-width: 767px) {
    /* Hide regular navigation and show hamburger on mobile */
    .main-nav {
        display: none !important; /* Hide regular navigation on mobile */
    }
    
    .hamburger-menu {
        display: block !important; /* Show hamburger button on mobile */
    }
    
    /* Subscribe button visibility on mobile */
    .header-subscribe-btn {
        display: none !important; /* Hide desktop subscribe button on mobile */
    }
    
    .mobile-header-subscribe-btn {
        display: block !important; /* Show mobile subscribe button on mobile */
    }
    
    /* Mobile navigation dropdown */
    .mobile-nav {
        display: none; /* Hidden by default */
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #000000;
        border-top: 1px solid #404040;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
        z-index: 1000;
    }
    
    .mobile-nav.active {
        display: block !important; /* Show when hamburger is clicked */
    }
    
    .mobile-nav a {
        display: block;
        padding: 1rem 1.5rem;
        color: #e8e8e8;
        text-decoration: none;
        border-bottom: 1px solid #404040;
        font-weight: 600;
        transition: all 0.2s ease;
    }
    
    .mobile-nav a:hover,
    .mobile-nav a:focus {
        background-color: #333333;
        color: #66b3ff;
    }
    
    .mobile-nav a.active {
        background-color: #66b3ff;
        color: #1a1a1a;
    }
    
    .mobile-nav a:last-child {
        border-bottom: none;
    }
    
    /* Ensure header is positioned correctly for mobile menu */
    .site-header {
        position: relative !important;
    }
    
    /* Update header-bottom layout for mobile */
    .header-bottom {
        justify-content: space-between !important;
        align-items: center !important;
    }
    
    .logo-container {
        margin-left: 4px !important; /* Move slightly right on mobile */
    }
    
    /* Mobile logo sizing - Enhanced constraints */
    .site-logo-image {
        height: 55px !important; /* Proportionally scaled for mobile */
        max-width: 360px !important;
        max-height: 55px !important;
        object-fit: contain !important;
    }
    
    .logo-image {
        width: auto !important; /* Auto-size for mobile */
        height: 45px !important; /* Proportional mobile size */
        max-width: 45px !important;
    }
    
    .logo-placeholder {
        width: 45px;
        height: 45px;
        font-size: 14px;
    }
    
    /* Mobile hamburger navigation */
    .main-nav {
        display: none !important; /* Hide regular navigation on mobile */
    }
    
    .hamburger-menu {
        display: block !important; /* Show hamburger button on mobile */
    }
    
    /* Mobile navigation dropdown */
    .mobile-nav {
        display: none; /* Hidden by default */
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #000000;
        border-top: 1px solid #404040;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
        z-index: 1000;
    }
    
    .mobile-nav.active {
        display: block !important; /* Show when hamburger is clicked */
    }
    
    .mobile-nav a {
        display: block;
        padding: 1rem 1.5rem;
        color: #e8e8e8;
        text-decoration: none;
        border-bottom: 1px solid #404040;
        font-weight: 600;
        transition: all 0.2s ease;
    }
    
    .mobile-nav a:hover,
    .mobile-nav a:focus {
        background-color: #333333;
        color: #66b3ff;
    }
    
    .mobile-nav a.active {
        background-color: #66b3ff;
        color: #1a1a1a;
    }
    
    .mobile-nav a:last-child {
        border-bottom: none;
    }
}
