::selection {
    background: rgba(255, 68, 68, 0.3);
    color: #333;
}

::-moz-selection {
    background: rgba(255, 68, 68, 0.3);
    color: #333;
}

/* Cookie Banner Styles */
.cookie-banner {
    animation: slideInUp 0.3s ease-out;
}

@keyframes slideInUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

.cookie-banner button:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

/* Reading Progress Bar */
.reading-progress {
    box-shadow: 0 0 10px rgba(255, 68, 68, 0.5);
}

/* Weather Widget Animations */
.weather-widget {
    animation: weatherPulse 4s ease-in-out infinite;
}

@keyframes weatherPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.02);
    }
}

/* Live Clock Styles */
.live-clock {
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
    letter-spacing: 1px;
}

/* Enhanced Breaking News Animation */
.breaking-text {
    mask: linear-gradient(90deg, transparent, black 20%, black 80%, transparent);
    -webkit-mask: linear-gradient(90deg, transparent, black 20%, black 80%, transparent);
}

/* Share and Print Button Enhancements */
.share-btn:hover,
.print-btn:hover {
    background: rgba(255, 68, 68, 0.9) !important;
    color: white !important;
    transform: scale(1.1);
}

/* Search Results Enhancements */
.search-result-item {
    position: relative;
    overflow: hidden;
}

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

.search-result-item:hover::before {
    left: 100%;
}

/* Enhanced Modal Styles */
.modal {
    backdrop-filter: blur(5px);
    animation: modalFadeIn 0.3s ease-out;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal-content {
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-50px) scale(0.95);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

/* Theme Switcher Styles */
.theme-switcher {
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.theme-switcher:hover {
    transform: scale(1.1) rotate(15deg);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

/* Enhanced Keyboard Navigation */
.news-item:focus,
.news-item-horizontal:focus {
    outline: 3px solid #ff4444;
    outline-offset: 5px;
    transform: scale(1.02);
    box-shadow: 0 8px 30px rgba(255, 68, 68, 0.3);
}

/* Skip Link Styling */
a[href="#main"] {
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Performance Info Styling */
.perf-info {
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Enhanced Loading States */
.loading-shimmer {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
}

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

/* Error State Styles */
.error-state {
    background: linear-gradient(135deg, #ff6b6b, #ee5a52);
    color: white;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    margin: 2rem 0;
}

.error-state h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.error-state p {
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.error-state button {
    background: white;
    color: #ff6b6b;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.error-state button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* Advanced Hover Effects */
.news-item,
.news-item-horizontal {
    position: relative;
    overflow: hidden;
}

.news-item::after,
.news-item-horizontal::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.news-item:hover::after,
.news-item-horizontal:hover::after {
    left: 100%;
}

/* Improved Typography */
.news-content h3 {
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 0.75rem;
    transition: color 0.3s ease;
}

.news-item:hover .news-content h3 {
    color: #ff4444;
}

/* Enhanced Category Tags */
.category {
    position: relative;
    overflow: hidden;
}

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

.category:hover::before {
    left: 100%;
}

/* Advanced Grid Animations */
.news-grid,
.news-grid-small {
    animation: gridFadeIn 0.8s ease-out;
}

@keyframes gridFadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Staggered Animation for News Items */
.news-item:nth-child(1) { animation-delay: 0.1s; }
.news-item:nth-child(2) { animation-delay: 0.2s; }
.news-item:nth-child(3) { animation-delay: 0.3s; }
.news-item:nth-child(4) { animation-delay: 0.4s; }
.news-item:nth-child(5) { animation-delay: 0.5s; }
.news-item:nth-child(6) { animation-delay: 0.6s; }

/* Enhanced Footer Animations */
.footer-section {
    transition: transform 0.3s ease;
}

.footer-section:hover {
    transform: translateY(-5px);
}

/* Improved Social Links */
.social-links a {
    position: relative;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.social-links a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #ff4444;
    border-radius: 8px;
    transform: scale(0);
    transition: transform 0.3s ease;
    z-index: -1;
}

.social-links a:hover::before {
    transform: scale(1);
}

.social-links a:hover {
    color: white;
    transform: translateY(-2px);
}

/* Advanced Contact Form Styles */
.contact-form {
    position: relative;
}

.contact-form::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #ff4444, #cc0000, #ff4444);
    border-radius: 12px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.contact-form:hover::before {
    opacity: 1;
}

/* Success Page Enhancements */
.success-icon {
    animation: successBounce 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

@keyframes successBounce {
    0% {
        transform: scale(0) rotate(0deg);
    }
    50% {
        transform: scale(1.2) rotate(180deg);
    }
    100% {
        transform: scale(1) rotate(360deg);
    }
}

/* Accessibility Improvements */
.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* Focus Indicators */
*:focus-visible {
    outline: 3px solid #ff4444;
    outline-offset: 2px;
    border-radius: 4px;
}

/* High Contrast Mode Enhancements */
@media (prefers-contrast: high) {
    .news-item,
    .card {
        border: 3px solid #000;
    }

    .category {
        background: #000 !important;
        color: #fff !important;
        border: 2px solid #fff;
    }

    .btn-primary {
        background: #000 !important;
        color: #fff !important;
        border: 3px solid #fff;
    }
}

/* Reduced Motion Preferences */
@media (prefers-reduced-motion: reduce) {
    .breaking-text p {
        animation: none !important;
    }

    .loading::after,
    .progress-bar::after,
    .news-item::after,
    .category::before {
        animation: none !important;
    }

    * {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
}

/* Dark Theme Implementation */
[data-theme="dark"] {
    --bg-primary: #1a1a1a;
    --bg-secondary: #2d2d2d;
    --bg-tertiary: #3d3d3d;
    --text-primary: #ffffff;
    --text-secondary: #cccccc;
    --text-muted: #888888;
    --border-color: #404040;
    --shadow-color: rgba(0, 0, 0, 0.5);
}

[data-theme="dark"] body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
}

[data-theme="dark"] .news-item,
[data-theme="dark"] .card,
[data-theme="dark"] .modal-content,
[data-theme="dark"] .contact-form {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 15px var(--shadow-color);
}

[data-theme="dark"] .bg-gray {
    background-color: var(--bg-tertiary);
}

[data-theme="dark"] .form-group input,
[data-theme="dark"] .form-group textarea {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border-color: var(--border-color);
}

[data-theme="dark"] .form-group input:focus,
[data-theme="dark"] .form-group textarea:focus {
    border-color: #ff4444;
    background: var(--bg-secondary);
}

[data-theme="dark"] .news-content p {
    color: var(--text-secondary);
}

[data-theme="dark"] .date,
[data-theme="dark"] .news-meta {
    color: var(--text-muted);
}

/* Print Optimizations */
@media print {
    @page {
        margin: 2cm;
    }

    .header,
    .footer,
    .nav-toggle,
    .scroll-to-top,
    .notification,
    .cookie-banner,
    .share-btn,
    .print-btn,
    .weather-widget,
    .modal {
        display: none !important;
    }

    .container {
        max-width: none !important;
        padding: 0 !important;
    }

    .news-item,
    .news-item-horizontal,
    .card {
        break-inside: avoid;
        page-break-inside: avoid;
        box-shadow: none !important;
        border: 1px solid #ddd !important;
        margin-bottom: 1rem !important;
    }

    .news-item img,
    .news-item-horizontal img {
        max-height: 200px !important;
        object-fit: contain !important;
    }

    a {
        color: #333 !important;
        text-decoration: none !important;
    }

    a::after {
        content: " (" attr(href) ")";
        font-size: 0.8rem;
        color: #666;
    }

    .section-title {
        border-bottom: 2px solid #333 !important;
        color: #333 !important;
    }

    .category {
        background: #f0f0f0 !important;
        color: #333 !important;
        border: 1px solid #ccc !important;
    }
}

/* Responsive Video Embeds */
.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: #000;
    border-radius: 12px;
}

.video-wrapper iframe,
.video-wrapper object,
.video-wrapper embed {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

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

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

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

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

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

/* Enhanced Micro-interactions */
.news-item img {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.news-item:hover img {
    transform: scale(1.05);
    filter: brightness(1.1);
}

.btn {
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.3s ease;
}

.btn:active::before {
    width: 300px;
    height: 300px;
}

/* Advanced Form Validation Styles */
.form-group.error input,
.form-group.error textarea {
    border-color: #dc3545;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

.form-group.success input,
.form-group.success textarea {
    border-color: #28a745;
    box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.1);
}

.form-group .error-message {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: none;
}

.form-group.error .error-message {
    display: block;
    animation: slideInDown 0.3s ease;
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Enhanced Notifications */
.notification {
    animation: notificationSlideIn 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

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

.notification.removing {
    animation: notificationSlideOut 0.3s ease-in;
}

@keyframes notificationSlideOut {
    to {
        transform: translateX(100%) scale(0.8);
        opacity: 0;
    }
}

/* Advanced Tooltip Styling */
.tooltip {
    --tooltip-bg: #333;
    --tooltip-color: #fff;
}

[data-theme="dark"] .tooltip {
    --tooltip-bg: #fff;
    --tooltip-color: #333;
}

.tooltip::before {
    background: var(--tooltip-bg);
    color: var(--tooltip-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
}

.tooltip::after {
    border-top-color: var(--tooltip-bg);
}

/* Custom Checkbox and Radio Styles */
.custom-checkbox,
.custom-radio {
    position: relative;
    display: inline-block;
    cursor: pointer;
}

.custom-checkbox input,
.custom-radio input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.checkmark,
.radiomark {
    position: absolute;
    top: 0;
    left: 0;
    height: 20px;
    width: 20px;
    background-color: #eee;
    transition: all 0.3s ease;
}

.checkmark {
    border-radius: 4px;
}

.radiomark {
    border-radius: 50%;
}

.custom-checkbox:hover input ~ .checkmark,
.custom-radio:hover input ~ .radiomark {
    background-color: #ccc;
}

.custom-checkbox input:checked ~ .checkmark,
.custom-radio input:checked ~ .radiomark {
    background-color: #ff4444;
}

.checkmark::after,
.radiomark::after {
    content: "";
    position: absolute;
    display: none;
}

.custom-checkbox input:checked ~ .checkmark::after,
.custom-radio input:checked ~ .radiomark::after {
    display: block;
}

.checkmark::after {
    left: 7px;
    top: 3px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 3px 3px 0;
    transform: rotate(45deg);
}

.radiomark::after {
    top: 6px;
    left: 6px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: white;
}

/* Enhanced Mobile Optimizations */
@media (max-width: 768px) {
    .news-item:hover::after,
    .news-item-horizontal:hover::after {
        display: none;
    }

    .share-btn,
    .print-btn {
        opacity: 1 !important;
        position: static !important;
        margin: 0.5rem;
        width: auto !important;
        height: auto !important;
        background: #ff4444 !important;
        color: white !important;
        border-radius: 4px !important;
        padding: 0.5rem 1rem !important;
    }

    .tooltip::before,
    .tooltip::after {
        display: none;
    }

    .modal-content {
        width: 95%;
        margin: 1rem auto;
        max-height: 90vh;
    }
}

/* Final Responsive Breakpoints */
@media (max-width: 480px) {
    .hero {
        padding: 0.5rem 0;
    }

    .breaking-news {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
    }

    .breaking-label {
        text-align: center;
    }

    .news-content {
        padding: 1rem;
    }

    .contact-form {
        padding: 1rem;
    }

    .footer-content {
        gap: 1rem;
    }

    .notification {
        top: 5px;
        right: 5px;
        left: 5px;
        max-width: none;
    }
}

@media (max-width: 320px) {
    .container {
        padding: 0 10px;
    }

    .nav-container {
        padding: 0 10px;
    }

    .news-content h3 {
        font-size: 1rem;
    }

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

    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
}

/* Landscape Mobile Optimizations */
@media (max-height: 500px) and (orientation: landscape) {
    .header {
        position: relative;
    }

    .hero {
        padding: 0.25rem 0;
    }

    .section {
        padding: 1.5rem 0;
    }

    .modal-content {
        max-height: 80vh;
        overflow-y: auto;
    }
}

/* Large Screen Optimizations */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }

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

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

    .footer-content {
        grid-template-columns: 2fr 1fr 1fr 1fr;
    }
}

/* Ultra-wide Screen Support */
@media (min-width: 1920px) {
    .container {
        max-width: 1600px;
    }

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

/* Support for Older Browsers */
@supports not (display: grid) {
    .news-grid,
    .news-grid-small {
        display: flex;
        flex-wrap: wrap;
        gap: 1rem;
    }

    .news-item {
        flex: 1 1 300px;
    }
}

@supports not (backdrop-filter: blur(10px)) {
    .modal {
        background: rgba(0, 0, 0, 0.9);
    }

    .notification {
        background: #333 !important;
    }
}

/* End of Styles *//* 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;
    background-color: #ffffff;
}

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

/* Header Styles */
.header {
    background: #1a1a1a;
    color: white;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar {
    padding: 1rem 0;
}

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

.nav-brand h1 a {
    color: #ff4444;
    text-decoration: none;
    font-size: 1.8rem;
    font-weight: bold;
}

.tagline {
    color: #ccc;
    font-size: 0.9rem;
    font-weight: normal;
    margin-left: 10px;
}

.nav-menu {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 0.5rem 0;
}

.nav-link:hover {
    color: #ff4444;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #ff4444 0%, #cc0000 100%);
    color: white;
    padding: 1rem 0;
}

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

.breaking-news {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.breaking-label {
    background: white;
    color: #ff4444;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    font-weight: bold;
    font-size: 0.9rem;
    white-space: nowrap;
}

.breaking-text {
    flex: 1;
    overflow: hidden;
}

.breaking-text p {
    animation: scroll-text 30s linear infinite;
    white-space: nowrap;
}

@keyframes scroll-text {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

/* Section Styles */
.section {
    padding: 3rem 0;
}

.bg-gray {
    background-color: #f8f9fa;
}

.section-title {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: #333;
    border-bottom: 3px solid #ff4444;
    padding-bottom: 0.5rem;
    display: inline-block;
}

/* News Grid */
.news-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

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

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

.news-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.news-item.featured {
    grid-row: span 2;
}

.news-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.news-item.featured img {
    height: 300px;
}

.news-content {
    padding: 1.5rem;
}

.category {
    background: #ff4444;
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    display: inline-block;
}

.news-content h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: #6c6b6b;
    line-height: 1.4;
}

.news-item.featured .news-content h3 {
    font-size: 1.5rem;
}

.news-content p {
    color: #666;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.news-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: #888;
}

.author {
    font-weight: 500;
}

.date {
    color: #999;
    font-size: 0.8rem;
}

/* Horizontal News Items */
.news-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.news-item-horizontal {
    display: flex;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.news-item-horizontal:hover {
    transform: translateY(-3px);
}

.news-item-horizontal img {
    width: 200px;
    height: 150px;
    object-fit: cover;
    flex-shrink: 0;
}

.news-item-horizontal .news-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Contact Section */
.contact-section {
    background: #f8f9fa;
    padding: 3rem 0;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    margin-top: 2rem;
}

.contact-info h3 {
    color: #333;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.contact-details {
    margin-top: 2rem;
}

.contact-details p {
    margin-bottom: 0.5rem;
    color: #666;
}

.contact-form {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #333;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid #e0e0e0;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #ff4444;
}

.btn-submit {
    background: #ff4444;
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-submit:hover {
    background: #cc0000;
}

/* Footer */
.footer {
    background: #1a1a1a;
    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-section ul li a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #ff4444;
}

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

.social-links a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: #ff4444;
}

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 1rem;
    text-align: center;
    color: #ccc;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: #1a1a1a;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0,0,0,0.05);
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .nav-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .hero {
        padding: 0.5rem 0;
    }

    .breaking-news {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
    }

    .breaking-text p {
        animation: none;
        white-space: normal;
    }

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

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

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

    .news-item-horizontal {
        flex-direction: column;
    }

    .news-item-horizontal img {
        width: 100%;
        height: 200px;
    }

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

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .nav-container {
        padding: 0 15px;
    }

    .hero-content {
        padding: 0 15px;
    }

    .news-content {
        padding: 1rem;
    }

    .contact-form {
        padding: 1.5rem;
    }
}

/* Success Page Specific Styles */
.success-container {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 3rem 0;
}

.success-content {
    background: white;
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    max-width: 500px;
    margin: 0 auto;
}

.success-icon {
    font-size: 4rem;
    color: #28a745;
    margin-bottom: 1rem;
}

.success-content h1 {
    color: #333;
    margin-bottom: 1rem;
    font-size: 2rem;
}

.success-content p {
    color: #666;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.btn-home {
    background: #ff4444;
    color: white;
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 500;
    display: inline-block;
    transition: background-color 0.3s ease;
}

.btn-home:hover {
    background: #cc0000;
}

/* Privacy and Terms Pages */
.content-page {
    padding: 3rem 0;
    min-height: 60vh;
}

.content-page .container {
    max-width: 800px;
}

.content-page h1 {
    color: #333;
    margin-bottom: 2rem;
    font-size: 2.5rem;
    border-bottom: 3px solid #ff4444;
    padding-bottom: 0.5rem;
}

.content-page h2 {
    color: #333;
    margin: 2rem 0 1rem;
    font-size: 1.5rem;
}

.content-page p {
    color: #666;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.content-page ul {
    color: #666;
    line-height: 1.8;
    margin-bottom: 1rem;
    padding-left: 2rem;
}

.content-page li {
    margin-bottom: 0.5rem;
}

.last-updated {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 5px;
    margin-bottom: 2rem;
    font-style: italic;
    color: #666;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Loading animation for images */
img {
    transition: opacity 0.3s ease;
}

img[loading="lazy"] {
    opacity: 0;
    animation: fadeIn 0.5s ease forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* Additional Navigation Styles */
.nav-link.active {
    color: #ff4444;
    border-bottom: 2px solid #ff4444;
}

/* Enhanced Button Styles */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.btn-primary {
    background: #ff4444;
    color: white;
}

.btn-primary:hover {
    background: #cc0000;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 68, 68, 0.3);
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #545b62;
}

.btn-outline {
    background: transparent;
    color: #ff4444;
    border: 2px solid #ff4444;
}

.btn-outline:hover {
    background: #ff4444;
    color: white;
}

/* News Card Enhanced Styles */
.news-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    position: relative;
}

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

.news-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #ff4444, #cc0000);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.news-card:hover::before {
    transform: scaleX(1);
}

/* Typography Enhancements */
.text-gradient {
    background: linear-gradient(135deg, #ff4444 0%, #cc0000 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-shadow {
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Loading States */
.loading {
    position: relative;
    overflow: hidden;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Notification Styles */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    max-width: 350px;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
}

.notification-success {
    background: rgba(40, 167, 69, 0.9);
}

.notification-error {
    background: rgba(220, 53, 69, 0.9);
}

.notification-warning {
    background: rgba(255, 193, 7, 0.9);
    color: #333 !important;
}

.notification-info {
    background: rgba(23, 162, 184, 0.9);
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: #ff4444;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(255, 68, 68, 0.3);
}

.scroll-to-top:hover {
    background: #cc0000;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 68, 68, 0.4);
}

.scroll-to-top.show {
    display: flex;
}

/* Enhanced Form Styles */
.form-floating {
    position: relative;
}

.form-floating input,
.form-floating textarea {
    padding: 1rem 0.75rem 0.5rem 0.75rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}

.form-floating label {
    position: absolute;
    top: 0;
    left: 0.75rem;
    padding: 0 0.25rem;
    background: white;
    color: #666;
    transform: translate(0, 1rem) scale(1);
    transform-origin: left top;
    transition: all 0.3s ease;
    pointer-events: none;
}

.form-floating input:focus + label,
.form-floating input:not(:placeholder-shown) + label,
.form-floating textarea:focus + label,
.form-floating textarea:not(:placeholder-shown) + label {
    transform: translate(0, -0.5rem) scale(0.85);
    color: #ff4444;
}

.form-floating input:focus,
.form-floating textarea:focus {
    border-color: #ff4444;
    box-shadow: 0 0 0 3px rgba(255, 68, 68, 0.1);
}

/* Advanced Grid Layouts */
.masonry-grid {
    column-count: 3;
    column-gap: 2rem;
    column-fill: balance;
}

.masonry-item {
    break-inside: avoid;
    margin-bottom: 2rem;
}

/* Video and Media Styles */
.video-container {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    overflow: hidden;
    border-radius: 12px;
}

.video-container iframe,
.video-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Image Gallery Styles */
.image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}

.image-gallery img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.image-gallery img:hover {
    transform: scale(1.05);
}

/* Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 2rem;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    max-width: 600px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: #f0f0f0;
    color: #333;
}

/* Table Styles */
.table-responsive {
    overflow-x: auto;
    margin: 1rem 0;
}

.table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.table th,
.table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

.table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #333;
}

.table tr:hover {
    background: #f8f9fa;
}

/* Badge and Tag Styles */
.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-primary {
    background: #ff4444;
    color: white;
}

.badge-secondary {
    background: #6c757d;
    color: white;
}

.badge-success {
    background: #28a745;
    color: white;
}

.badge-warning {
    background: #ffc107;
    color: #333;
}

.badge-info {
    background: #17a2b8;
    color: white;
}

/* Progress Bar Styles */
.progress {
    width: 100%;
    height: 8px;
    background: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
    margin: 1rem 0;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #ff4444, #cc0000);
    transition: width 0.6s ease;
    position: relative;
}

.progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: progress-shine 2s infinite;
}

@keyframes progress-shine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Tooltip Styles */
.tooltip {
    position: relative;
    cursor: help;
}

.tooltip::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-size: 0.875rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

.tooltip::after {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: #333;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.tooltip:hover::before,
.tooltip:hover::after {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-5px);
}

/* Accordion Styles */
.accordion {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    margin: 1rem 0;
}

.accordion-item {
    border-bottom: 1px solid #e0e0e0;
}

.accordion-item:last-child {
    border-bottom: none;
}

.accordion-header {
    padding: 1rem 1.5rem;
    background: #f8f9fa;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease;
}

.accordion-header:hover {
    background: #e9ecef;
}

.accordion-header.active {
    background: #ff4444;
    color: white;
}

.accordion-content {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    background: white;
}

.accordion-content.active {
    padding: 1.5rem;
    max-height: 500px;
}

.accordion-icon {
    transition: transform 0.3s ease;
}

.accordion-header.active .accordion-icon {
    transform: rotate(180deg);
}

/* Breadcrumb Styles */
.breadcrumb {
    display: flex;
    align-items: center;
    margin: 1rem 0;
    padding: 0.75rem 1rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.breadcrumb-item {
    color: #666;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-item:hover {
    color: #ff4444;
}

.breadcrumb-item:not(:last-child)::after {
    content: '/';
    margin: 0 0.5rem;
    color: #ccc;
}

.breadcrumb-item.active {
    color: #333;
    font-weight: 500;
}

/* Card Deck Styles */
.card-deck {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

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

.card-header {
    padding: 1.5rem;
    background: #f8f9fa;
    border-bottom: 1px solid #e0e0e0;
}

.card-body {
    padding: 1.5rem;
}

.card-footer {
    padding: 1rem 1.5rem;
    background: #f8f9fa;
    border-top: 1px solid #e0e0e0;
}

/* Enhanced Responsive Design */
@media (max-width: 1200px) {
    .masonry-grid {
        column-count: 2;
    }
}

@media (max-width: 992px) {
    .news-grid {
        grid-template-columns: 1fr 1fr;
    }

    .card-deck {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .masonry-grid {
        column-count: 1;
    }

    .modal-content {
        margin: 1rem;
        padding: 1.5rem;
    }

    .tooltip::before {
        position: fixed;
        bottom: auto;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }

    .table-responsive {
        font-size: 0.875rem;
    }

    .accordion-content {
        max-height: 300px;
    }
}

@media (max-width: 576px) {
    .scroll-to-top {
        width: 45px;
        height: 45px;
        bottom: 20px;
        right: 20px;
    }

    .notification {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }

    .card-deck {
        grid-template-columns: 1fr;
    }
}

/* Print Styles */
@media print {
    .header,
    .footer,
    .nav-toggle,
    .scroll-to-top,
    .notification {
        display: none !important;
    }

    .container {
        max-width: none;
        padding: 0;
    }

    .news-item,
    .card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }

    a {
        color: #333 !important;
        text-decoration: none !important;
    }

    .bg-gray {
        background: white !important;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .header {
        background: #000;
    }

    .btn-primary {
        background: #000;
        border: 2px solid #fff;
    }

    .news-item {
        border: 2px solid #333;
    }
}

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

    .breaking-text p {
        animation: none;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    :root {
        --bg-color: #1a1a1a;
        --text-color: #e0e0e0;
        --card-bg: #2d2d2d;
        --border-color: #404040;
    }

    body {
        background-color: var(--bg-color);
        color: var(--text-color);
    }

    .news-item,
    .card,
    .modal-content {
        background: var(--card-bg);
        color: var(--text-color);
    }

    .form-group input,
    .form-group textarea {
        background: var(--card-bg);
        color: var(--text-color);
        border-color: var(--border-color);
    }

    .bg-gray {
        background-color: #252525;
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Selection Styles */
::selection {
    background: rgba(255, 68, 68, 0.3);
    color: #333;
}

::-moz-selection {
    background: rgba(255, 68, 68, 0.3);
    color: #333;
} h3,
.footer-section h4 {
    margin-bottom: 1rem;
    color: #ff4444;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

