/* News Page Responsive Styles */

@media (max-width: 768px) {
    .news-hero {
        padding: 40px 0px 30px 0px;
        margin-top: 60px;
    }

    .hero-content {
        padding: 0 1rem;
    }

    .hero-badge {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
        margin-bottom: 1.5rem;
    }

    .hero-badge svg {
        width: 14px;
        height: 14px;
    }

    .hero-title {
        font-size: clamp(2rem, 6vw, 2.5rem);
        margin-bottom: 1rem;
    }

    .hero-description {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    .hero-stats {
        gap: 1rem;
        padding: 1rem 1.5rem;
        max-width: 280px;
    }

    .stat-number {
        font-size: 1.5rem;
    }

    .stat-label {
        font-size: 0.8rem;
    }

    .stat-divider {
        height: 2rem;
    }

    .news-filter {
        margin-bottom: 2rem;
        border-radius: 12px;
    }

    .news-filter-tabs {
        justify-content: center;
    }

    .news-filter-tab {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }

    .news-filter-content {
        flex-direction: column;
        gap: 1rem;
        margin-bottom: 1rem;
        padding: 0 1rem;
    }

    .news-search-container {
        order: 2;
        width: 100%;
    }

    .news-filter-tabs {
        order: 1;
        width: 100%;
    }

    .search-input-wrapper {
        width: 100%;
    }

    .news-search {
        font-size: 0.95rem;
        padding: 0.9rem 1.2rem;
        padding-right: 2.5rem;
    }

    .news-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .featured-article .article-image {
        height: 200px;
    }

    .featured-article .article-content {
        padding: 1.5rem;
    }

    .article-title {
        font-size: 1.5rem;
    }

    .sidebar-widget {
        padding: 1.5rem;
    }

    .recent-article-image {
        width: 50px;
        height: 50px;
    }

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

    .sponsor-item {
        padding: 0.75rem;
    }
}

@media (max-width: 480px) {
    .news-hero {
        padding: 30px 0px 20px 0px;
        margin-top: 60px;
    }

    .news-filter {
        padding: 1.5rem 0;
        margin-bottom: 1.5rem;
    }

    .news-filter-content {
        flex-direction: column;
        gap: 1rem;
        padding: 0 1rem;
    }

    .news-search-container {
        width: 100%;
    }

    .news-filter-tabs {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .search-input-wrapper {
        width: 100%;
    }

    .news-search {
        padding: 0.8rem 1rem;
        padding-right: 2.5rem;
        font-size: 0.9rem;
    }

    .search-results-info {
        font-size: 0.85rem;
        padding: 0.6rem 0.8rem;
    }

    .news-content {
        padding: 1rem 0;
    }

    .main-articles {
        gap: 1.5rem;
    }

    .featured-article .article-content {
        padding: 1.25rem;
    }

    .regular-article .article-image {
        width: 60px;
        height: 60px;
    }

    .regular-article .article-content {
        font-size: 0.9rem;
    }

    .article-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .sponsors-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .sponsor-item {
        padding: 0.5rem;
    }

    /* Pagination adjustments */
    .pagination {
        margin-top: 2rem;
        padding: 1.5rem 0;
        gap: 0.25rem;
    }

    .pagination a,
    .pagination span {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }

    /* Filter tabs mobile layout */
    .news-filter-tabs {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 0.5rem;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .news-filter-tabs::-webkit-scrollbar {
        display: none;
    }

    .news-filter-tab {
        flex-shrink: 0;
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }

    /* Hero stats mobile */
    .hero-stats {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
        max-width: none;
    }

    .stat-divider {
        width: 100%;
        height: 1px;
    }

    /* Articles mobile adjustments */
    .article-category {
        font-size: 0.75rem;
        padding: 0.3rem 0.8rem;
    }

    .read-more-btn {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }

    /* Sidebar mobile */
    .sidebar-widget {
        padding: 1.25rem;
        margin-bottom: 1rem;
    }

    .widget-title {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }

    .recent-article {
        padding: 0.75rem;
    }

    .recent-article-title {
        font-size: 0.9rem;
    }

    .recent-article-date {
        font-size: 0.75rem;
    }

    /* Error states mobile */
    .no-news,
    .error-message {
        padding: 2rem 1rem;
    }

    .no-news h3,
    .error-message h3 {
        font-size: 1.25rem;
    }

    .no-news p,
    .error-message p {
        font-size: 1rem;
    }

    .retry-btn,
    .show-all-btn {
        padding: 0.6rem 1.5rem;
        font-size: 0.9rem;
    }
}

/* Ultra-small screens */
@media (max-width: 320px) {
    .hero-title {
        font-size: 1.75rem;
    }

    .hero-description {
        font-size: 0.95rem;
    }

    .news-filter-tab {
        padding: 0.4rem 0.8rem;
        font-size: 0.75rem;
    }

    .search-input-wrapper {
        font-size: 0.85rem;
    }

    .featured-article .article-content {
        padding: 1rem;
    }

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

    .regular-article {
        padding: 1rem;
    }

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

/* Landscape tablet adjustments */
@media (min-width: 769px) and (max-width: 1024px) {
    .news-grid {
        grid-template-columns: 1.5fr 1fr;
        gap: 2.5rem;
    }

    .featured-article .article-content {
        padding: 1.75rem;
    }

    .sidebar-widget {
        padding: 1.75rem;
    }

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

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .sponsor-logo {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* FHD Screen Optimization (1920px+) */
@media (min-width: 1920px) {
    /* Container optimization for large screens */
    .container {
        max-width: 1750px;
        margin: 0 auto;
        padding: 0 2rem;
    }

    /* Grid improvements for ultra-wide layouts */
    .news-grid {
        display: grid;
        grid-template-columns: 1fr 380px;
        align-items: start;
    }

    /* Article cards optimization */
    .news-card {
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .news-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 25px 80px rgba(26, 63, 103, 0.15);
    }

    /* Enhanced image loading for high-res displays */
    .article-image img,
    .recent-article-image img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
        transition: all 0.4s ease;
    }

    /* Typography scaling for better readability */
    body {
        font-size: 16px;
        line-height: 1.6;
    }

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

    /* Enhanced button interactions */
    .btn, .read-more-btn, .news-filter-tab {
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .btn:hover, .read-more-btn:hover {
        transform: translateY(-3px);
        box-shadow: 0 10px 30px rgba(26, 63, 103, 0.25);
    }

    /* Improved spacing for better visual hierarchy */
    .section-spacing {
        margin: 4rem 0;
    }

    .content-spacing {
        margin: 3rem 0;
    }

    /* Enhanced sidebar for large screens */
    .sidebar-widget {
        backdrop-filter: blur(10px);
        border: 1px solid rgba(255, 255, 255, 0.2);
    }

    /* Improved loading states */
    .loading-overlay {
        backdrop-filter: blur(8px);
    }

    /* Enhanced error states */
    .error-message,
    .no-news {
        backdrop-filter: blur(10px);
        border: 1px solid rgba(26, 63, 103, 0.1);
    }

    /* Smooth scroll for better UX */
    html {
        scroll-behavior: smooth;
    }

    /* Enhanced focus states for accessibility */
    *:focus {
        outline: 3px solid rgba(26, 63, 103, 0.3);
        outline-offset: 2px;
    }

    /* Optimized animations for 60fps */
    * {
        will-change: auto;
    }

    .news-card,
    .sidebar-widget,
    .pagination a,
    .filter-tag {
        will-change: transform, box-shadow;
    }
}

/* QHD Screen Optimization (2560px+) */
@media (min-width: 2560px) {
    /* Container optimization for QHD screens */
    .container {
        max-width: 2400px;
        margin: 0 auto;
        padding: 0 3rem;
    }

    /* Enhanced article cards for QHD */
    .news-card {
        transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .news-card:hover {
        transform: translateY(-12px);
        box-shadow: 0 30px 100px rgba(26, 63, 103, 0.2);
    }

    /* Ultra-high-res image optimization */
    .article-image img,
    .recent-article-image img {
        image-rendering: auto;
        image-rendering: crisp-edges;
        image-rendering: -webkit-optimize-contrast;
        transition: all 0.5s ease;
    }

    /* Enhanced typography for QHD readability */
    body {
        font-size: 18px;
        line-height: 1.7;
    }

    h1 { font-size: 4.5rem; }
    h2 { font-size: 3.25rem; }
    h3 { font-size: 2.5rem; }
    h4 { font-size: 1.875rem; }
    h5 { font-size: 1.5rem; }
    h6 { font-size: 1.25rem; }

    /* Premium button interactions for QHD */
    .btn, .read-more-btn, .news-filter-tab {
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        transform-style: preserve-3d;
    }

    .btn:hover, .read-more-btn:hover {
        transform: translateY(-4px) scale(1.02);
        box-shadow: 0 15px 40px rgba(26, 63, 103, 0.3);
    }

    /* Enhanced spacing for QHD visual hierarchy */
    .section-spacing {
        margin: 5rem 0;
    }

    .content-spacing {
        margin: 4rem 0;
    }

    /* Premium sidebar effects for QHD */
    .sidebar-widget {
        backdrop-filter: blur(15px);
        border: 2px solid rgba(255, 255, 255, 0.2);
        box-shadow: 0 20px 60px rgba(26, 63, 103, 0.1);
    }

    /* Enhanced loading states for QHD */
    .loading-overlay {
        backdrop-filter: blur(12px);
    }

    /* Premium error states for QHD */
    .error-message,
    .no-news {
        backdrop-filter: blur(15px);
        border: 2px solid rgba(26, 63, 103, 0.15);
        box-shadow: 0 25px 80px rgba(26, 63, 103, 0.1);
    }

    /* Smooth scroll optimization for QHD */
    html {
        scroll-behavior: smooth;
        scroll-padding-top: 100px;
    }

    /* Enhanced accessibility for QHD */
    *:focus {
        outline: 4px solid rgba(26, 63, 103, 0.4);
        outline-offset: 3px;
        border-radius: 8px;
    }

    /* GPU acceleration for 60fps on QHD */
    .news-card,
    .sidebar-widget,
    .pagination a,
    .filter-tag,
    .read-more-btn,
    .news-filter-tab {
        will-change: transform, box-shadow, opacity;
        transform: translateZ(0);
        backface-visibility: hidden;
    }

    /* Enhanced micro-animations for QHD */
    .news-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 50%);
        opacity: 0;
        transition: opacity 0.3s ease;
        pointer-events: none;
        border-radius: inherit;
    }

    .news-card:hover::before {
        opacity: 1;
    }
}