/*
Theme Name: NextStep Media Theme
Description: A modern media organization theme with integrated page builder - WCAG 2.1 AA Compliant
Version: 1.0.0
Author: NextStep Media
*/

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    font-size: 16px; /* Base font size for better readability */
}

/* Skip link for accessibility */
.skip-link {
    position: absolute !important;
    left: -9999px !important;
    top: -9999px !important;
    z-index: 999999;
    padding: 8px 16px;
    background: #000000;
    color: #ffffff;
    text-decoration: none;
    font-weight: bold;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    overflow: hidden;
    width: 1px;
    white-space: nowrap;
}

.skip-link:focus {
    position: absolute !important;
    left: 6px !important;
    top: 7px !important;
    z-index: 100000;
    display: block;
    clip: auto !important;
    clip-path: none;
    height: auto !important;
    overflow: visible;
    width: auto !important;
    white-space: normal;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Screen reader text */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute !important;
    width: 1px;
    word-wrap: normal !important;
}

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

/* Focus indicators */
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 3px solid #005fcc; /* High contrast focus indicator */
    outline-offset: 2px;
}

/* Navigation Styles */
.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgb(255 255 255);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

img.custom-logo {
    height: 60px;
    width: 258px;
}

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

.logo h1 {
    font-size: 1.8rem;
    color: #1a1a1a;
}

.logo h1 a {
    color: #1a1a1a;
    text-decoration: none;
}

.logo h1 a:hover,
.logo h1 a:focus {
    color: #007bff;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #007bff;
}

/* Mobile menu button */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: 2px solid #ffffff;
    color: #ffffff;
    padding: 8px 12px;
    cursor: pointer;
    border-radius: 4px;
}

.mobile-menu-toggle:hover,
.mobile-menu-toggle:focus {
    background-color: #ffffff;
    color: #1a1a1a;
}

/* Hero Section */
/* ===== HERO SECTION ===== */
.hero-section {
    position: relative !important;
    min-height: 100vh !important;
    overflow: hidden !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: 100vh !important;
}

/* Hero Background Container */
.hero-background {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 1 !important;
}

/* Base Background Styles */
.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* YouTube Video Background - BULLETPROOF VERSION */
.hero-bg-youtube {
    overflow: hidden !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 1 !important;
}

.hero-bg-youtube .video-wrapper {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    overflow: hidden !important;
    z-index: 1 !important;
}

.hero-bg-youtube .video-wrapper iframe,
.hero-bg-youtube iframe {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    min-width: 100vw !important;
    min-height: 100vh !important;
    max-width: none !important;
    max-height: none !important;
    border: none !important;
    pointer-events: none !important;
    display: block !important;
    object-fit: cover !important;
    z-index: 1 !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* More specific selectors to override any external CSS */
section.hero-section .hero-bg-youtube iframe,
.hero-section .hero-background .hero-bg-youtube iframe,
.hero-section .hero-background .hero-bg-youtube .video-wrapper iframe {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    min-width: 100vw !important;
    min-height: 100vh !important;
    border: none !important;
    z-index: 1 !important;
}

/* Local Video Background */
.hero-bg-video {
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vw;
    height: 56.25vw; /* 16:9 aspect ratio */
    min-height: 100vh;
    min-width: 177.78vh; /* 16:9 aspect ratio */
    transform: translate(-50%, -50%);
    object-fit: cover;
    pointer-events: none;
}

/* Image Background */
.hero-bg-image {
    background-attachment: fixed;
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
}

/* Color Background */
.hero-bg-color {
    /* Background color set inline */
}

/* Hero Overlay */
.hero-overlay {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 2 !important;
}

/* Hero Content Container - ENHANCED CENTERING */
.hero-container {
    position: relative !important;
    z-index: 3 !important;
    width: 100% !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 0 2rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 100vh !important;
}

.hero-content {
    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;
    justify-content: center !important;
}

.hero-title {
    font-size: clamp(2.5rem, 8vw, 4rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: clamp(1.1rem, 3vw, 1.4rem);
    line-height: 1.6;
    margin-bottom: 2.5rem;
    opacity: 0.95;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.hero-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    background: #007cba;
    color: white;
    border-radius: 50px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(0, 124, 186, 0.3);
}

.hero-button:hover,
.hero-button:focus {
    background: #005a87;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 124, 186, 0.4);
    border-color: rgba(255, 255, 255, 0.3);
    outline: none;
}

/* CTA Button - Generic call-to-action button style */
.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    background: #007cba;
    color: white;
    border-radius: 50px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(0, 124, 186, 0.3);
}

.cta-button:hover,
.cta-button:focus {
    background: #005a87;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 124, 186, 0.4);
    border-color: rgba(255, 255, 255, 0.3);
    outline: none;
}

/* About Section */
.about {
    padding: 5rem 0;
    background: #f8f9fa;
}

.about h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #212529;
    line-height: 1.2;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

.about-text p {
    font-size: 1.125rem; /* 18px for better readability */
    line-height: 1.6;
    color: #495057; /* Improved contrast */
    margin-bottom: 1.5rem;
}

/* About description wrapper for rich text content */
.about-description {
    margin-bottom: 2rem;
}

.about-description h3,
.about-description h4,
.about-description h5,
.about-description h6 {
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    color: #333;
}

.about-description p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.about-description ul,
.about-description ol {
    margin-bottom: 1rem;
    padding-left: 2rem;
}

.about-description li {
    margin-bottom: 0.5rem;
}

.about-description a {
    color: #007cba;
    text-decoration: underline;
}

.about-description a:hover,
.about-description a:focus {
    color: #005a87;
    text-decoration: none;
}

.about-description strong {
    font-weight: 700;
}

.about-description em {
    font-style: italic;
}

.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.stat-item {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.stat-item:hover,
.stat-item:focus {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    outline: 2px solid #007cba;
    outline-offset: 2px;
}

.stat-item i {
    font-size: 3rem;
    color: #007cba;
    margin-bottom: 1rem;
    display: block;
}

.stat-item h3 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 0.5rem;
}

.stat-item p {
    color: #666;
    font-weight: 500;
    margin: 0;
}

/* About footer content styling */
.about-footer-content {
    margin-top: 3rem;
    padding: 2rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-left: 4px solid #007cba;
}

.about-footer-content h3,
.about-footer-content h4 {
    color: #333;
    margin-bottom: 1rem;
}

.about-footer-content p {
    margin-bottom: 1rem;
    line-height: 1.6;
    color: #555;
}

.about-footer-content ul,
.about-footer-content ol {
    padding-left: 2rem;
    margin-bottom: 1rem;
}

.about-footer-content a {
    color: #007cba;
    text-decoration: underline;
}

.about-footer-content a:hover,
.about-footer-content a:focus {
    color: #005a87;
    text-decoration: none;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .hero-container {
        padding: 0 1.5rem !important;
        min-height: 100vh !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    .hero-content {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
        width: 100% !important;
    }
    
    .hero-title {
        margin-bottom: 1rem;
    }
    
    .hero-subtitle {
        margin-bottom: 2rem;
    }
    
    .hero-button {
        padding: 0.9rem 2rem;
        font-size: 1rem;
    }
    
    /* Fix video backgrounds on mobile */
    .video-wrapper iframe,
    .hero-video {
        width: 100vw;
        height: 56.25vw;
        min-height: 100vh;
        min-width: 177.78vh;
    }
    
    /* Disable fixed background on mobile for better performance */
    .hero-bg-image {
        background-attachment: scroll;
    }
    
    .stats {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .stat-item {
        padding: 1.5rem;
    }
    
    .stat-item h3 {
        font-size: 2rem;
    }
    
    .about-footer-content {
        padding: 1.5rem;
        margin-top: 2rem;
    }
}

@media (max-width: 480px) {
    .hero-container {
        padding: 0 1rem !important;
        min-height: 100vh !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    .hero-content {
        padding: 1rem !important;
        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;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .stat-item i {
        font-size: 2.5rem;
    }
    
    .stat-item h3 {
        font-size: 1.8rem;
    }
}

/* Accessibility Enhancements */
@media (prefers-reduced-motion: reduce) {
    .hero-button,
    .stat-item {
        transition: none;
    }
    
    .hero-button:hover,
    .stat-item:hover {
        transform: none;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .stat-item {
        border: 2px solid;
    }
    
    .hero-button {
        border: 2px solid;
    }
}

/* Print styles */
@media print {
    .hero-bg-youtube,
    .hero-bg-video,
    .hero-bg-image {
        display: none;
    }
    
    .hero-section {
        background: white !important;
        color: black !important;
        min-height: auto;
    }
    
    .hero-overlay {
        display: none;
    }
}

/* Brands Section */
.brands {
    padding: 6rem 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(59, 130, 246, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(147, 51, 234, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(236, 72, 153, 0.05) 0%, transparent 70%),
        linear-gradient(135deg, #0f172a 0%, #1e293b 25%, #334155 50%, #475569 75%, #64748b 100%);
    position: relative;
    overflow: hidden;
}

.brands::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.02) 50%, transparent 70%),
        linear-gradient(-45deg, transparent 30%, rgba(255, 255, 255, 0.02) 50%, transparent 70%);
    animation: brandSectionShimmer 20s ease-in-out infinite;
}

@keyframes brandSectionShimmer {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.6; }
}

.brands h2 {
    text-align: center;
    font-size: 2.8rem;
    background: linear-gradient(135deg, #ffffff, #e2e8f0, #60a5fa);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: -0.5px;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    position: relative;
}

.brands h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 4px;
    background: linear-gradient(90deg, transparent, rgba(96, 165, 250, 0.8), transparent);
    border-radius: 2px;
}

.brands-subtitle {
    text-align: center;
    font-size: 1.3rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.7));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 4.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 500;
    line-height: 1.6;
    letter-spacing: 0.3px;
}

.brands-category {
    margin-bottom: 5rem;
    position: relative;
}

.category-title {
    text-align: center;
    font-size: 2rem;
    background: linear-gradient(135deg, #ffffff, #cbd5e1);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 3rem;
    font-weight: 700;
    position: relative;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.category-title::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    z-index: -1;
}

.category-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, 
        rgba(59, 130, 246, 0.6), 
        rgba(147, 51, 234, 0.6), 
        rgba(236, 72, 153, 0.6)
    );
    border-radius: 3px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Brands Grid Layouts - Flexible for any number of items with proper centering */
.newspapers-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.newspapers-row .brand-item {
    flex: 0 0 calc(20% - 24px); /* 5 items per row with gap consideration */
    min-width: 200px;
    max-width: 220px;
}

.radio-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    max-width: 900px;
    margin: 0 auto;
}

.radio-row .brand-item {
    flex: 0 0 calc(33.333% - 27px); /* 3 items per row with gap consideration */
    min-width: 250px;
    max-width: 280px;
}

.websites-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
}

.websites-row .brand-item {
    flex: 0 0 calc(11.111% - 22px); /* 9 items per row with gap consideration */
    min-width: 200px;
    max-width: 220px;
}

/* Brand Item Base Styles */
.brand-item {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    text-align: center;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.1),
        0 4px 16px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    min-height: 220px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.brand-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg, 
        transparent, 
        rgba(255, 255, 255, 0.2), 
        transparent
    );
    transition: left 0.6s ease;
}

.brand-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(59, 130, 246, 0.1) 0%,
        rgba(147, 51, 234, 0.1) 50%,
        rgba(236, 72, 153, 0.1) 100%
    );
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}

.brand-item:hover::before,
.brand-item.hovered::before {
    left: 100%;
}

.brand-item:hover::after,
.brand-item.hovered::after {
    opacity: 1;
}

.brand-item:hover,
.brand-item.hovered {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.15),
        0 15px 30px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
    border-color: rgba(255, 255, 255, 0.3);
}

.brand-item a {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

/* Brand Logo Styles */
.brand-logo {
    width: 90%;
    height: 130px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.brand-logo::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        45deg,
        rgba(59, 130, 246, 0.1),
        rgba(147, 51, 234, 0.1)
    );
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 15px;
}

.brand-logo:hover::before {
    opacity: 1;
}

.brand-logo img {
    width: 85%;
    height: 85%;
    object-fit: contain;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
    z-index: 1;
    position: relative;
}

.brand-logo:hover {
    transform: translateY(-8px) rotateY(5deg);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.2);
}

.brand-logo:hover img {
    transform: scale(1.1) rotateY(-5deg);
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.2));
}

/* Ensure images load properly */
.brand-logo img[src=""] {
    display: none;
}

.brand-logo img:not([src]),
.brand-logo img[src=""] {
    display: none;
}

.brand-item:hover .brand-logo img,
.brand-item.hovered .brand-logo img {
    transform: scale(1.1) rotateY(-5deg);
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.2));
}

/* Logo Placeholder */
.logo-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(147, 51, 234, 0.1));
    color: rgba(255, 255, 255, 0.7);
    font-size: 3rem;
    transition: all 0.4s ease;
    border-radius: 15px;
    position: relative;
    z-index: 1;
}

.logo-placeholder:hover {
    color: rgba(255, 255, 255, 0.9);
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(147, 51, 234, 0.2));
    transform: scale(1.05);
}

/* Brand Name Styles */
.brand-name {
    font-size: 1.2rem;
    font-weight: 700;
    background: linear-gradient(135deg, #ffffff, #e2e8f0);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 0;
    line-height: 1.3;
    transition: all 0.3s ease;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    letter-spacing: 0.5px;
}

.brand-item:hover .brand-name,
.brand-item.hovered .brand-name {
    background: linear-gradient(135deg, #ffffff, #60a5fa);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transform: translateY(-2px);
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Specific Brand Type Styles */
.newspaper-item {
    background: linear-gradient(145deg, rgba(34, 197, 94, 0.1), rgba(22, 163, 74, 0.05));
    border-color: rgba(34, 197, 94, 0.2);
}

.newspaper-item::after {
    background: linear-gradient(
        135deg,
        rgba(34, 197, 94, 0.15) 0%,
        rgba(22, 163, 74, 0.1) 50%,
        rgba(16, 185, 129, 0.15) 100%
    );
}

.newspaper-item:hover,
.newspaper-item.hovered {
    border-color: rgba(34, 197, 94, 0.4);
    box-shadow: 
        0 25px 50px rgba(34, 197, 94, 0.15),
        0 15px 30px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.radio-item {
    background: linear-gradient(145deg, rgba(239, 68, 68, 0.1), rgba(220, 38, 38, 0.05));
    border-color: rgba(239, 68, 68, 0.2);
    min-height: 240px;
}

.radio-item::after {
    background: linear-gradient(
        135deg,
        rgba(239, 68, 68, 0.15) 0%,
        rgba(220, 38, 38, 0.1) 50%,
        rgba(248, 113, 113, 0.15) 100%
    );
}

.radio-item:hover,
.radio-item.hovered {
    border-color: rgba(239, 68, 68, 0.4);
    box-shadow: 
        0 25px 50px rgba(239, 68, 68, 0.15),
        0 15px 30px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.radio-frequency {
    font-size: 0.95rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.6));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 0.75rem 0 0;
    font-weight: 600;
    font-style: normal;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    display: inline-block;
    letter-spacing: 0.5px;
}

.radio-item:hover .radio-frequency,
.radio-item.hovered .radio-frequency {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.website-item {
    background: linear-gradient(145deg, rgba(147, 51, 234, 0.1), rgba(126, 34, 206, 0.05));
    border-color: rgba(147, 51, 234, 0.2);
    min-height: 200px;
}

.website-item::after {
    background: linear-gradient(
        135deg,
        rgba(147, 51, 234, 0.15) 0%,
        rgba(126, 34, 206, 0.1) 50%,
        rgba(168, 85, 247, 0.15) 100%
    );
}

.website-item:hover,
.website-item.hovered {
    border-color: rgba(147, 51, 234, 0.4);
    box-shadow: 
        0 25px 50px rgba(147, 51, 234, 0.15),
        0 15px 30px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.website-item .brand-name {
    font-size: 1.1rem;
}

.brand-description {
    font-size: 0.9rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.5));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.5;
    margin-top: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: all 0.3s ease;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.website-item:hover .brand-description,
.website-item.hovered .brand-description {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .newspapers-row .brand-item {
        flex: 0 0 calc(25% - 23px); /* 4 items per row */
        min-width: 180px;
    }
    
    .websites-row .brand-item {
        flex: 0 0 calc(16.666% - 21px); /* 6 items per row */
        min-width: 160px;
    }
}

@media (max-width: 768px) {
    .brands {
        padding: 3rem 0;
    }
    
    .brands h2 {
        font-size: 2rem;
    }
    
    .category-title {
        font-size: 1.5rem;
    }
    
    .newspapers-row,
    .radio-row,
    .websites-row {
        gap: 1.5rem;
    }
    
    .newspapers-row .brand-item {
        flex: 0 0 calc(50% - 12px); /* 2 items per row */
        min-width: 150px;
    }
    
    .radio-row .brand-item {
        flex: 0 0 calc(50% - 12px); /* 2 items per row */
        min-width: 150px;
    }
    
    .websites-row .brand-item {
        flex: 0 0 calc(33.333% - 10px); /* 3 items per row */
        min-width: 150px;
    }
    
    .brand-item {
        padding: 1.5rem 1rem;
        min-height: 160px;
    }
    
    .brand-logo {
        width: 60px;
        height: 60px;
    }
    
    .brand-name {
        font-size: 1rem;
    }
    
    .website-item .brand-name {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .newspapers-row .brand-item,
    .radio-row .brand-item {
        flex: 0 0 calc(50% - 8px); /* 2 items per row */
        min-width: 120px;
    }
    
    .websites-row .brand-item {
        flex: 0 0 calc(33.333% - 8px); /* 3 items per row */
        min-width: 100px;
    }
    
    .brand-item {
        min-height: 140px;
        padding: 1rem 0.5rem;
    }
    
    .brands-subtitle {
        font-size: 1rem;
        margin-bottom: 3rem;
    }
}

/* Animation Enhancements */
@keyframes brandFloat {
    0%, 100% { 
        transform: translateY(0) rotate(0deg); 
        filter: blur(0);
    }
    25% { 
        transform: translateY(-3px) rotate(0.5deg); 
        filter: blur(0);
    }
    50% { 
        transform: translateY(-8px) rotate(0deg); 
        filter: blur(0);
    }
    75% { 
        transform: translateY(-3px) rotate(-0.5deg); 
        filter: blur(0);
    }
}

@keyframes brandPulse {
    0%, 100% { 
        box-shadow: 
            0 8px 32px rgba(0, 0, 0, 0.1),
            0 4px 16px rgba(0, 0, 0, 0.08),
            inset 0 1px 0 rgba(255, 255, 255, 0.3);
    }
    50% { 
        box-shadow: 
            0 12px 40px rgba(0, 0, 0, 0.15),
            0 6px 20px rgba(0, 0, 0, 0.1),
            inset 0 1px 0 rgba(255, 255, 255, 0.4);
    }
}

@keyframes brandGlow {
    0%, 100% { 
        border-color: rgba(255, 255, 255, 0.2);
    }
    50% { 
        border-color: rgba(255, 255, 255, 0.4);
    }
}

.brand-item:nth-child(6n+1) {
    animation: brandFloat 8s ease-in-out infinite, brandPulse 4s ease-in-out infinite;
    animation-delay: 0s, 0s;
}

.brand-item:nth-child(6n+2) {
    animation: brandFloat 8s ease-in-out infinite, brandGlow 6s ease-in-out infinite;
    animation-delay: 1.3s, 0.5s;
}

.brand-item:nth-child(6n+3) {
    animation: brandFloat 8s ease-in-out infinite, brandPulse 4s ease-in-out infinite;
    animation-delay: 2.6s, 1s;
}

.brand-item:nth-child(6n+4) {
    animation: brandFloat 8s ease-in-out infinite, brandGlow 6s ease-in-out infinite;
    animation-delay: 4s, 1.5s;
}

.brand-item:nth-child(6n+5) {
    animation: brandFloat 8s ease-in-out infinite, brandPulse 4s ease-in-out infinite;
    animation-delay: 5.3s, 2s;
}

.brand-item:nth-child(6n+6) {
    animation: brandFloat 8s ease-in-out infinite, brandGlow 6s ease-in-out infinite;
    animation-delay: 6.6s, 2.5s;
}

/* Disable animations for users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
    .brand-item,
    .brand-logo img,
    .logo-placeholder {
        animation: none !important;
        transition: none !important;
    }
    
    .brand-item:hover,
    .brand-item.hovered {
        transform: none !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .brand-item {
        border: 2px solid #000;
    }
    
    .brand-item:hover,
    .brand-item.hovered {
        border-color: #0056b3;
        background: #fff !important;
    }
}

/* News Section */
.news {
    padding: 5rem 0;
    background: #f8f9fa;
}

.news h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #212529;
    line-height: 1.2;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
}

.news-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 2px solid transparent;
}

.news-card:hover,
.news-card:focus-within {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    border-color: #0056b3;
}

.news-image {
    height: 200px;
    background: linear-gradient(45deg, #0056b3, #003d82);
    background-size: cover;
    background-position: center;
}

.news-content {
    padding: 2rem;
}

.news-content h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #212529;
    line-height: 1.3;
}

.news-content h3 a {
    color: #212529;
    text-decoration: none;
}

.news-content h3 a:hover,
.news-content h3 a:focus {
    color: #0056b3;
    text-decoration: underline;
    text-decoration-thickness: 2px;
}

.news-content p {
    color: #495057;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    line-height: 1.5;
}

.read-more {
    color: #0056b3;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.read-more:hover,
.read-more:focus {
    color: #003d82;
    text-decoration: underline;
    text-decoration-thickness: 2px;
}

/* Contact Section */
.contact {
    padding: 5rem 0;
    background: white;
}

.contact h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #212529;
    line-height: 1.2;
}

.contact-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: #6c757d;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.contact-form-title {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: #212529;
    text-align: center;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Stacked Layout */
.contact-info-stacked {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
    justify-items: center;
    text-align: center;
}

.contact-form-stacked {
    max-width: 600px;
    margin: 0 auto;
}

/* Info Only Layout */
.contact-info-only {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    max-width: 800px;
    margin: 0 auto;
    justify-items: center;
    text-align: center;
}

/* Form Only Layout */
.contact-form-only {
    max-width: 500px;
    margin: 0 auto;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.contact-info-stacked .info-item,
.contact-info-only .info-item {
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
}

.info-item i {
    font-size: 1.5rem;
    color: #0056b3;
    width: 30px;
    flex-shrink: 0;
}

.contact-info-stacked .info-item i,
.contact-info-only .info-item i {
    font-size: 2rem;
    width: auto;
}

.info-item p {
    color: #495057;
    font-size: 1.1rem;
    line-height: 1.5;
    margin: 0;
}

.info-item a {
    color: #495057;
    text-decoration: none;
    transition: color 0.3s ease;
}

.info-item a:hover,
.info-item a:focus {
    color: #0056b3;
    text-decoration: underline;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-form label {
    font-weight: bold;
    color: #212529;
    margin-bottom: 0.5rem;
    display: block;
}

.contact-form input,
.contact-form textarea {
    padding: 12px 16px;
    border: 2px solid #ced4da;
    border-radius: 5px;
    font-size: 1rem;
    line-height: 1.5;
    transition: border-color 0.3s ease;
    width: 100%;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: #0056b3;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 86, 179, 0.1);
}

.contact-form textarea {
    min-height: 120px;
    resize: vertical;
}

.submit-button {
    background: #0056b3;
    color: white;
    padding: 16px 32px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: bold;
    transition: all 0.3s ease;
    min-height: 44px;
    min-width: 44px;
}

.submit-button:hover,
.submit-button:focus {
    background: #003d82;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.submit-button:disabled {
    background: #6c757d;
    cursor: not-allowed;
    transform: none;
}

/* Footer */
footer {
    background: #212529;
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-logo h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: white;
}

.footer-logo p {
    color: #dee2e6;
    font-size: 1.1rem;
    line-height: 1.5;
}

.footer-links h3 {
    margin-bottom: 1rem;
    color: white;
    font-size: 1.2rem;
}

.footer-links ul,
.footer-menu {
    list-style: none;
}

.footer-links ul li,
.footer-menu li {
    margin-bottom: 0.5rem;
}

.footer-links ul li a,
.footer-menu li a {
    color: #dee2e6;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.1rem;
    line-height: 1.5;
}

.footer-links ul li a:hover,
.footer-links ul li a:focus,
.footer-menu li a:hover,
.footer-menu li a:focus {
    color: white;
    text-decoration: underline;
    text-decoration-thickness: 2px;
}

.social-links h3 {
    margin-bottom: 1rem;
    color: white;
    font-size: 1.2rem;
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icons a {
    color: #dee2e6;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    padding: 8px;
    border-radius: 4px;
    min-height: 44px;
    min-width: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-icons a:hover,
.social-icons a:focus {
    color: white;
    background-color: #0056b3;
    transform: translateY(-2px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #495057;
    color: #dee2e6;
    font-size: 1.1rem;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .nav-links {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
        width: 100%;
        background: #1a1a1a;
        padding: 1rem 0;
        display: none;
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .brand-grid {
        grid-template-columns: 1fr;
    }
    
    .stats {
        grid-template-columns: 1fr;
    }
    
    .video-wrapper iframe {
        height: 177.77vw; /* Adjust for mobile */
        width: 100vw;
        min-height: 100vh;
        min-width: 56.25vh;
    }
    
    .hero-bg-image {
        background-attachment: scroll; /* Better performance on mobile */
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-container {
        padding: 0 1rem;
    }
    
    .hero-title {
        margin-bottom: 0.8rem;
    }
    
    .hero-subtitle {
        margin-bottom: 1.8rem;
    }
    
    .hero-button {
        padding: 0.8rem 1.8rem;
        font-size: 0.95rem;
    }
    
    .about h2,
    .brands h2,
    .news h2,
    .contact h2 {
        font-size: 2rem;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .news-card {
        min-width: auto;
    }
}

/* Contact form styling with accessibility */
.form-field {
    position: relative;
    margin-bottom: 1.5rem;
}

.form-field.error input,
.form-field.error textarea {
    border-color: #dc3545;
    background-color: #fff5f5;
}

.error-message {
    display: block;
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.5rem;
    min-height: 1.2rem;
}

.required {
    color: #dc3545;
    font-weight: bold;
}

.contact-message {
    padding: 1rem;
    margin-bottom: 2rem;
    border-radius: 5px;
    font-weight: bold;
}

.contact-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.contact-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* High contrast toggle button */
.high-contrast-toggle {
    position: fixed;
    top: 100px;
    right: 20px;
    z-index: 9999;
    background: #ffffff;
    color: #000000;
    border: 2px solid #000000;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.high-contrast-toggle:hover,
.high-contrast-toggle:focus {
    background: #000000;
    color: #ffffff;
}

/* High contrast mode styles */
.high-contrast .main-nav {
    background: #000000 !important;
    border-bottom: 3px solid #ffffff;
}

.high-contrast .nav-links li a {
    color: #ffffff !important;
    border: 2px solid transparent;
}

.high-contrast .nav-links li a:hover,
.high-contrast .nav-links li a:focus {
    background: #ffffff !important;
    color: #000000 !important;
    border-color: #ffffff;
}

.high-contrast .cta-button {
    background: #000000 !important;
    color: #ffffff !important;
    border: 3px solid #ffffff !important;
}

.high-contrast .cta-button:hover,
.high-contrast .cta-button:focus {
    background: #ffffff !important;
    color: #000000 !important;
}

.high-contrast .brand-card:hover,
.high-contrast .brand-card:focus-within {
    background: #000000 !important;
    color: #ffffff !important;
    border: 3px solid #ffffff !important;
}

.high-contrast .news-card:hover,
.high-contrast .news-card:focus-within {
    border: 3px solid #000000 !important;
}

.high-contrast .contact-form input:focus,
.high-contrast .contact-form textarea:focus {
    border-color: #000000 !important;
    box-shadow: 0 0 0 3px #ffffff !important;
}

.high-contrast .submit-button {
    background: #000000 !important;
    color: #ffffff !important;
    border: 3px solid #ffffff !important;
}

.high-contrast .submit-button:hover,
.high-contrast .submit-button:focus {
    background: #ffffff !important;
    color: #000000 !important;
}

/* Mouse vs keyboard focus indicators */
.using-mouse *:focus {
    outline: none;
}

.using-mouse .skip-link:focus {
    outline: 3px solid #005fcc;
    outline-offset: 2px;
}

/* Additional accessibility improvements */
.stat-item:focus,
.brand-card:focus {
    outline: 3px solid #005fcc;
    outline-offset: 2px;
}

.news-card:focus-within {
    outline: 3px solid #005fcc;
    outline-offset: 2px;
}

/* Enhanced button states */
.cta-button.focused,
.submit-button.focused,
.read-more.focused {
    box-shadow: 0 0 0 3px rgba(0, 86, 179, 0.5);
}

/* Loading state for submit button */
.submit-button:disabled {
    position: relative;
    color: transparent;
}

.submit-button:disabled::after {
    content: 'Sending...';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #ffffff;
}

/* Responsive accessibility improvements */
@media (max-width: 768px) {
    .high-contrast-toggle {
        top: 80px;
        right: 10px;
        font-size: 11px;
        padding: 6px 10px;
    }
    
    .skip-link:focus {
        left: 10px !important;
        top: 10px !important;
        padding: 12px 16px;
    }
    
    .contact-form input,
    .contact-form textarea {
        min-height: 44px; /* Ensure minimum touch target size */
    }
}

/* Print styles for accessibility */
@media print {
    .high-contrast-toggle,
    .mobile-menu-toggle,
    .skip-link {
        display: none !important;
    }
    
    .nav-links {
        display: block !important;
    }
    
    a[href]:after {
        content: " (" attr(href) ")";
        font-size: 0.8em;
        color: #666;
    }
    
    a[href^="#"]:after,
    a[href^="javascript:"]:after {
        content: "";
    }
} 



.high-contrast-toggle {
   display: none !important;
}