


/* Base Styles - High Performance Dark/Light Mode */
:root {
    --primary: #0d3b6f;
    --secondary: #b8a369;
    --text: #1a1a1a;
    --bg: #ffffff;
    --surface: #f8f9fa;
    --border: #dee2e6;
    --muted: #6c757d;
    
    /* Fonts */
    --font-sans: 'Inter', sans-serif;
    --font-serif: 'Playfair Display', serif;
    --font-arabic: 'Cairo', sans-serif;
}

/* CSS Hover Animations - Clean and Performant */
.category-item a {
    transition: all 0.3s ease;
}
.category-item a:hover {
    background: linear-gradient(90deg, #f8f9fa 0%, #e9ecef 100%) !important;
    transform: translateX(5px);
}

.hashtag-topic a {
    transition: all 0.3s ease;
}
.hashtag-topic a:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.ad-contact-btn {
    transition: all 0.3s ease;
}
.ad-contact-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255,255,255,0.4);
}

.update-item {
    transition: all 0.3s ease;
}
.update-item:hover {
    background: linear-gradient(90deg, #f8f9fa 0%, #e9ecef 50%) !important;
    transform: translateX(5px);
}

.investigation-card {
    transition: all 0.3s ease;
}
.investigation-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.12);
}
.btn:hover{
    background-color: var(--primary);
    border-color: var(--primary);
}
.featured-investigation-card, .featured-investigation-card img{
    transition: all 0.4s ease;
}
.featured-investigation-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 80px rgba(0,0,0,0.15);
}
.investigation-card{
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}
.investigation-image{
        position: relative;
    height: 220px;
    overflow: hidden;
}
.investigation-image img {
    transition: transform 0.4s ease;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.investigation-card:hover .investigation-image img {
    transform: scale(1.05);
}

.featured-investigation-card:hover .investigation-image-container img {
    transform: scale(1.1);
    transition: all ease 0.3s;
}

.btn-investigation {
    transition: all 0.3s ease;
}
.btn-investigation:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgb(213 156 112 / 30%);
}

.btn-view-all {
    transition: all 0.3s ease;
}
.btn-view-all:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(44,62,80,0.4);
}

/* Dark Mode - Enhanced for complete coverage */
body.dark-mode {
    --primary: #4a9eff;
    --primary-dark: #2a6dbd;
    --secondary: #f1c40f;
    --success: #27ae60;
    --info: #3498db;
    --warning: #f39c12;
    --danger: #e74c3c;
    --text: #f8f9fa;
    --text-secondary: #adb5bd;
    --bg: #0d1117;
    --surface: #161b22;
    --surface-hover: #21262d;
    --border: #30363d;
    --border-light: #21262d;
    --muted: #8b949e;
    --link: #58a6ff;
    --link-hover: #79c0ff;
}

/* Universal Theme Application - Enhanced */
body {
    font-family: var(--font-arabic);
    background-color: var(--bg);
    color: var(--text);
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Comprehensive Dark Mode Styling */
body.dark-mode {
    background-color: var(--bg);
    color: var(--text);
}

body.dark-mode .navbar {
    background-color: var(--surface) !important;
    border-bottom: 1px solid var(--border);
}

body.dark-mode .navbar-brand,
body.dark-mode .nav-link {
    color: var(--text) !important;
}

body.dark-mode .nav-link:hover {
    color: var(--primary) !important;
}

body.dark-mode .dropdown-menu {
    background-color: var(--surface);
    border: 1px solid var(--border);
}

body.dark-mode .dropdown-item {
    color: var(--text);
}

body.dark-mode .dropdown-item:hover {
    background-color: var(--surface-hover);
    color: var(--text);
}

/* All elements inherit theme colors automatically */
.card, .footer, .modal-content, .dropdown-menu, .form-control, .btn-outline-secondary {
    background: var(--surface);
    color: var(--text);
    border-color: var(--border);
}
.dark-mode .header{background: var(--surface) !important;}
body.dark-mode .card {
    background-color: var(--surface) !important;
    color: var(--text) !important;
    border: 1px solid var(--border) !important;
}

body.dark-mode .card:hover {
    background-color: var(--surface-hover);
    transform: translateY(-2px);
}

body.dark-mode .text-muted { 
    color: var(--muted) !important; 
}

body.dark-mode .bg-light,
body.dark-mode .bg-white { 
    background-color: var(--surface) !important; 
}

body.dark-mode .border,
body.dark-mode .border-bottom { 
    border-color: var(--border) !important; 
}

body.dark-mode .btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
}

body.dark-mode .btn-outline-primary {
    color: var(--primary);
    border-color: var(--primary);
}

body.dark-mode .btn-outline-primary:hover {
    background-color: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

body.dark-mode .modal-content {
    background-color: var(--surface);
    color: var(--text);
    border: 1px solid var(--border);
}

body.dark-mode .form-control {
    background-color: var(--surface);
    color: var(--text);
    border: 1px solid var(--border);
}

body.dark-mode .form-control:focus {
    background-color: var(--surface);
    color: var(--text);
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(74, 158, 255, 0.25);
}

body.dark-mode .form-control::placeholder {
    color: var(--muted);
}

/* Header */
.light-mode .header {
    background:linear-gradient(135deg, #0f1419 0%, #1a1d29 50%, #2c3e50 100%) ;
    border-bottom: 1px solid var(--border);
}

/* Footer */
/* ========== FOOTER ENHANCEMENT - BEAUTIFUL DESIGN ========== */

/* Enhanced Footer Base */
.footer {
    background:var(--primary);
    position: relative;
    overflow: hidden;
    margin-top: 3rem;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="footerGrid" width="20" height="20" patternUnits="userSpaceOnUse"><path d="M 20 0 L 0 0 0 20" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23footerGrid)"/></svg>');
    opacity: 0.3;
}

.footer .container {
    position: relative;
    z-index: 2;
}

/* Footer Top Glow Effect */
.footer::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        var(--secondary) 25%, 
        #ffd700 50%, 
        var(--secondary) 75%, 
        transparent 100%);
    animation: footerGlow 3s ease-in-out infinite alternate;
}

@keyframes footerGlow {
    0% { opacity: 0.6; transform: scaleX(0.8); }
    100% { opacity: 1; transform: scaleX(1); }
}

/* Footer Sections */
.footer-section {
    padding: 2rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-section:last-child {
    border-bottom: none;
    padding-bottom: 1rem;
}

/* Enhanced Logo Section */
.footer-logo-container {
    text-align: center;
    margin-bottom: 2rem;
}

.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
    text-decoration: none;
    color: white;
}

.footer-logo:hover {
    transform: scale(1.05);
    color: var(--secondary);
    text-decoration: none;
}

.logo-circle-footer {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--secondary) 0%, #ffd700 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-weight: 700;
    font-size: 1.2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    position: relative;
    animation: logoPulse 4s ease-in-out infinite;
}

@keyframes logoPulse {
    0%, 100% { transform: scale(1); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3); }
    50% { transform: scale(1.05); box-shadow: 0 15px 40px rgba(184, 163, 105, 0.4); }
}

.footer-brand-text {
    text-align: left;
}

.footer-brand-name {
    font-size: 1.8rem;
    font-weight: 700;
    font-family: var(--font-arabic);
    margin: 0;
    background: linear-gradient(135deg, white 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-brand-subtitle {
    font-size: 1rem;
    opacity: 0.8;
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
}

/* Footer Navigation */
.footer-nav {
    margin-bottom: 2rem;
}

.footer-nav-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: white;
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-nav-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: linear-gradient(90deg, var(--secondary), #ffd700);
    border-radius: 2px;
}

.footer-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-nav-item {
    margin-bottom: 0.5rem;
    transform: translateX(0);
    transition: all 0.3s ease;
}

.footer-nav-item:hover {
    transform: translateX(10px);
}

.footer-nav-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.3rem 0;
}

.footer-nav-link::before {
    content: '';
    width: 0;
    height: 1px;
    background: var(--secondary);
    position: absolute;
    bottom: 0;
    left: 0;
    transition: width 0.3s ease;
}

.footer-nav-link:hover {
    color: var(--secondary);
    text-decoration: none;
    padding-left: 1rem;
}

.footer-nav-link:hover::before {
    width: 100%;
}

.footer-nav-link i {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.footer-nav-link:hover i {
    opacity: 1;
}

/* Enhanced Social Media */
.footer-social {
    margin-bottom: 2rem;
}

.footer-social-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: white;
    margin-bottom: 1rem;
    text-align: center;
}

.footer-social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.footer-social-link {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 1.2rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
}

.footer-social-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--secondary), #ffd700);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.footer-social-link:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 10px 30px rgba(184, 163, 105, 0.4);
    color: var(--primary);
    text-decoration: none;
}

.footer-social-link:hover::before {
    opacity: 1;
}

/* Facebook */
.footer-social-link[href*="facebook"] {
    color: #1877f2;
}

/* Twitter */
.footer-social-link[href*="twitter"] {
    color: #1da1f2;
}

/* YouTube */
.footer-social-link[href*="youtube"] {
    color: #ff0000;
}

/* Instagram */
.footer-social-link[href*="instagram"] {
    color: #e4405f;
}

/* WhatsApp */
.footer-social-link[href*="whatsapp"] {
    color: #25d366;
}

/* LinkedIn */
.footer-social-link[href*="linkedin"] {
    color: #0077b5;
}

/* Contact Information */
.footer-contact {
    margin-bottom: 2rem;
}

.footer-contact-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: white;
    margin-bottom: 1rem;
}

.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    color: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
}

.footer-contact-item:hover {
    color: var(--secondary);
    transform: translateX(5px);
}

.footer-contact-icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    flex-shrink: 0;
}

.footer-contact-link {
    color: inherit;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.footer-contact-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--secondary);
    transition: width 0.3s ease;
}

.footer-contact-link:hover {
    color: var(--secondary);
    text-decoration: none;
}

.footer-contact-link:hover::after {
    width: 100%;
}

/* Newsletter Section */
.footer-newsletter {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-newsletter-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: white;
    margin-bottom: 0.5rem;
    text-align: center;
}

.footer-newsletter-subtitle {
    color: rgba(255, 255, 255, 0.8);
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.footer-newsletter-form {
    display: flex;
    gap: 0.5rem;
    max-width: 400px;
    margin: 0 auto;
}

.footer-newsletter-input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 0.95rem;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

.footer-newsletter-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.footer-newsletter-input:focus {
    outline: none;
    border-color: var(--secondary);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 2px rgba(184, 163, 105, 0.3);
}

.footer-newsletter-btn {
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, var(--secondary), #ffd700);
    border: none;
    border-radius: 8px;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.footer-newsletter-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(184, 163, 105, 0.4);
    background: linear-gradient(135deg, #ffd700, var(--secondary));
}

/* Footer Bottom */
.footer-bottom {
    background: rgba(0, 0, 0, 0.3);
    padding: 1.5rem 0;
    margin-top: 2rem;
    backdrop-filter: blur(5px);
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-copyright {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    margin: 0;
}

.footer-links {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.footer-bottom-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    position: relative;
}

.footer-bottom-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--secondary);
    transition: width 0.3s ease;
}

.footer-bottom-link:hover {
    color: var(--secondary);
    text-decoration: none;
}

.footer-bottom-link:hover::after {
    width: 100%;
}

/* Statistics Section */
.footer-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    backdrop-filter: blur(10px);
}

.footer-stat-item {
    text-align: center;
    padding: 1rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.footer-stat-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.1);
}

.footer-stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--secondary);
    line-height: 1;
    margin-bottom: 0.5rem;
    
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.footer-stat-label {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 1199.98px) {
    .footer-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767.98px) {
    .footer-logo {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .footer-brand-text {
        text-align: center;
    }
    
    .footer-newsletter-form {
        flex-direction: column;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-links {
        justify-content: center;
    }
    
    .footer-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .footer-stat-number {
        font-size: 2rem;
    }
}

@media (max-width: 575.98px) {
    .footer-social-links {
        gap: 0.5rem;
    }
    
    .footer-social-link {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
    
    .footer-newsletter {
        padding: 1.5rem;
    }
}

/* Dark Mode Enhancements */
body.dark-mode .footer {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #2a2a2a 100%);
}

body.dark-mode .footer::after {
    background: linear-gradient(90deg, 
        transparent 0%, 
        var(--primary) 25%, 
        var(--secondary) 50%, 
        var(--primary) 75%, 
        transparent 100%);
}

body.dark-mode .logo-circle-footer {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
}

/* Print Styles */
@media print {
    .footer {
        background: #333 !important;
        color: #000 !important;
    }
    
    .footer::before,
    .footer::after {
        display: none !important;
    }
    
    .footer-social-links,
    .footer-newsletter {
        display: none !important;
    }
}

/* Performance Optimizations */
.footer {
    contain: layout style paint;
    will-change: transform;
}

.footer-social-link,
.footer-nav-item,
.footer-stat-item {
    will-change: transform;
    backface-visibility: hidden;
}

/* Additional Performance and Utility Classes for Featured Articles */

/* High-performance image loading */
.featured-main-image,
.featured-secondary-image, 
.featured-tertiary-image {
    transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

/* Smooth touch interactions for mobile */
@media (hover: none) and (pointer: coarse) {
    .featured-card-hover:active {
        transform: scale(0.98);
        transition: transform 0.1s ease;
    }
    
    .featured-read-more:active {
        transform: scale(0.96);
    }
}

/* Enhanced accessibility */
.featured-card-hover:focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: 3px;
    border-radius: 12px;
}

/* RTL Support Enhancements */
[dir="rtl"] .featured-nav-controls .featured-prev {
    transform: scaleX(-1);
}

[dir="rtl"] .featured-nav-controls .featured-next {
    transform: scaleX(-1);
}

[dir="rtl"] .featured-read-more i {
    margin-right: 8px;
    margin-left: 0;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .featured-overlay {
        background: linear-gradient(
            0deg,
            rgba(0, 0, 0, 0.95) 0%,
            rgba(0, 0, 0, 0.6) 40%,
            rgba(0, 0, 0, 0.2) 70%,
            transparent 100%
        );
    }
    
    .featured-card-hover {
        border-width: 2px !important;
    }
}

/* Reduced data mode optimizations */
@media (prefers-reduced-data: reduce) {
    .featured-main-image,
    .featured-secondary-image,
    .featured-tertiary-image {
        background-image: none !important;
    }
}

/* Container queries for modern browsers */
@container (min-width: 768px) {
    .featured-title {
        font-size: clamp(1.5rem, 4vw, 2.5rem);
    }
}

/* Enhanced loading state */
.featured-image-loading {
    background: linear-gradient(
        90deg,
        rgba(0, 0, 0, 0.1) 25%,
        rgba(0, 0, 0, 0.05) 50%,
        rgba(0, 0, 0, 0.1) 75%
    );
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

/* Micro-interactions */
.featured-meta .badge {
    transform: scale(1);
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.featured-card-hover:hover .featured-meta .badge {
    transform: scale(1.05);
}

/* Typography enhancements */
.featured-title,
.featured-title-secondary,
.featured-title-tertiary {
    font-optical-sizing: auto;
    font-feature-settings: "liga" 1, "kern" 1;
    text-rendering: optimizeLegibility;
}

/* Custom scrollbar for featured section on desktop */
@media (min-width: 768px) {
    .featured-news-grid::-webkit-scrollbar {
        width: 6px;
        height: 6px;
    }
    
    .featured-news-grid::-webkit-scrollbar-track {
        background: var(--surface);
        border-radius: 3px;
    }
    
    .featured-news-grid::-webkit-scrollbar-thumb {
        background: var(--border);
        border-radius: 3px;
    }
    
    .featured-news-grid::-webkit-scrollbar-thumb:hover {
        background: var(--muted);
    }
}

/* Enhanced button states */
.featured-read-more {
    position: relative;
    overflow: hidden;
}

.featured-read-more::before {
    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;
}

.featured-read-more:hover::before {
    left: 100%;
}
/* News badge color coding */

.badge.bg-primary {
    background-color: var(--primary) !important;
    color: white;
}

.badge.bg-secondary {
    background-color: var(--secondary) !important;
    color: var(--text);
}

/* Logo and Base Styles */

.logo-text {
    line-height: 1.2;
}

.logo-name {
    font-size: 1.1rem;
    font-weight: 700;
    font-family: var(--font-arabic);
    margin-bottom: -2px;
}

.logo-subtitle {
    font-size: 0.75rem;
    font-weight: 500;
    opacity: 0.8;
    letter-spacing: 0.5px;
}

.dark-mode .logo-name {
    color: var(--light) !important;
}

.dark-mode .logo-subtitle {
    color: var(--light) !important;
    opacity: 0.7;
}

/* Navigation */
.nav-link {
    color: var(--dark);
    font-weight: 500;
    transition: color 0.3s ease;
}

.dark-mode .nav-link {
    color: var(--dark);
}
.nav-link:hover {
    color: var(--primary);
}
#searchBtn,#languageDropdown,#themeToggle{color: #fff;}

.hover-underline {
    position: relative;
    color:var(--surface)
}

.hover-underline::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary);
    transition: width 0.3s ease;
}

.hover-underline:hover::after {
    width: 100%;
}

/* Utility Classes for Accessibility */
.visually-hidden {
    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;
}

/* Enhanced News Ticker - Professional Arabic News Style */
.news-ticker {
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    width: 100%;
    max-width: 100%;
}

.news-ticker::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.02);
    pointer-events: none;
}

.ticker-container {
    position: relative;
    z-index: 2;
    min-height: 60px;
    padding: 0;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

/* Ticker Label Section */
.ticker-label {
    color: var(--primary);
    padding: 0 24px;
    height: 60px;
    position: relative;
    flex-shrink: 0;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.2);
    z-index: 3;
}

.ticker-label::after {
    content: '';
    position: absolute;
    top: 0;
    right: -15px;
    width: 0;
    height: 0;
    border-left: 15px solid var(--primary);
    border-top: 30px solid transparent;
    border-bottom: 30px solid transparent;
    filter: drop-shadow(2px 0 3px rgba(0, 0, 0, 0.2));
}

.ticker-icon {
    margin-left: 8px;
    font-size: 18px;
    animation: pulse-broadcast 2s infinite;
}

@keyframes pulse-broadcast {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.05); }
}

.ticker-title {
    font-size: 15px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 12px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.ticker-separator {
    width: 2px;
    height: 30px;
    background: rgba(255, 255, 255, 0.3);
    margin-right: 12px;
}

/* Ticker Content Area */
.ticker-content-area {
    flex: 1;
    overflow: hidden;
    position: relative;
    height: 60px;
    background: rgba(255, 255, 255, 0.05);
}

.ticker-track {
    display: block;
    position: relative;
    height: 100%;
    width: 100%;
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}

/* Ticker Items */
.ticker-item {
    display: none;
    align-items: center;
    padding: 0 40px 0 24px;
    color: var(--primary);
    font-size: 14px;
    font-weight: 800;
    line-height: 1.4;
    /* white-space: nowrap; */
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transform: translateX(20px);
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: pointer;
}

.ticker-item.active {
    display: flex;
    opacity: 1;
    transform: translateX(0);
}

.ticker-item:hover {
    color: var(--secondary);
    text-shadow: 0 0 8px rgba(255, 223, 0, 0.3);
}

/* Breaking News Badge */
.breaking-badge {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-left: 12px;
    box-shadow: 0 2px 6px rgba(231, 76, 60, 0.3);
    animation: breaking-pulse 1.5s infinite;
    flex-shrink: 0;
}

@keyframes breaking-pulse {
    0%, 100% { box-shadow: 0 2px 6px rgba(231, 76, 60, 0.3); }
    50% { box-shadow: 0 4px 12px rgba(231, 76, 60, 0.6); }
}

.news-text {
    margin-right: 12px;
    flex: 1;
}

/* Ticker Controls */
.ticker-controls {
    padding: 0 20px;
    gap: 8px;
    flex-shrink: 0;
}

.ticker-control-btn {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.ticker-control-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.ticker-control-btn:active {
    transform: scale(0.95);
}

.ticker-control-btn.active {
    background: var(--primary);
    color: white;
}


/* Responsive Design */
@media (max-width: 768px) {
    .ticker-container {
        min-height: 50px;
    }
    
    .ticker-label {
        padding: 0 16px;
        height: 50px;
    }
    
    .ticker-label::after {
        border-top: 25px solid transparent;
        border-bottom: 25px solid transparent;
    }
    
    .ticker-title {
        font-size: 13px;
        margin: 0 8px;
    }
    
    .ticker-content-area {
        height: 50px;
    }
    
    .ticker-item {
        font-size: 13px;
        padding: 0 20px 0 16px;
    }
    
    .breaking-badge {
        font-size: 10px;
        padding: 3px 8px;
        margin-left: 8px;
    }
    
    .news-text {
        margin-right: 8px;
    }
}

@media (max-width: 576px) {
    .ticker-label {
        padding: 0 12px;
    }
    
    .ticker-title {
        font-size: 12px;
        margin: 0 6px;
    }
    
    .ticker-item {
        font-size: 12px;
        padding: 0 16px 0 12px;
    }
    
    .breaking-badge {
        display: none; /* Hide on very small screens to save space */
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
   
    .ticker-control-btn {
        background: rgba(255, 255, 255, 0.08);
    }
    
    .ticker-control-btn:hover {
        background: rgba(255, 255, 255, 0.16);
    }
}

/* RTL Support */


[dir="rtl"] .ticker-controls {
    order: -1;
}

[dir="rtl"] .breaking-badge {
    margin-right: 12px;
    margin-left: 0;
}

[dir="rtl"] .news-text {
    margin-left: 12px;
    margin-right: 0;
}

/* High Performance Optimizations */
.news-ticker * {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.ticker-track {
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transform-style: preserve-3d;
    -webkit-transform-style: preserve-3d;
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    .ticker-track {
        transition: none;
    }
    
    .ticker-item {
        transition: opacity 0.3s ease;
    }
    
    @keyframes pulse-broadcast {
        0%, 100% { opacity: 1; }
        50% { opacity: 0.8; }
    }
    
    @keyframes breaking-pulse {
        0%, 100% { box-shadow: 0 2px 6px rgba(231, 76, 60, 0.3); }
    }
}

/* Focus States for Accessibility */
.ticker-control-btn:focus {
    outline: 2px solid var(--secondary);
    outline-offset: 2px;
}

.ticker-item:focus {
    outline: 2px solid var(--secondary);
    outline-offset: 2px;
    border-radius: 4px;
}

/* Enhanced Featured Articles Section - High Performance News Layout */
.featured-articles {
    background: linear-gradient(135deg, var(--surface) 0%, var(--bg) 100%);
    position: relative;
    overflow: hidden;
}

.featured-articles::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(0,0,0,0.02)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    pointer-events: none;
    z-index: 0;
}

.featured-news-grid {
    position: relative;
    z-index: 1;
}

/* Featured Navigation Controls */
.featured-nav-controls .btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid var(--primary);
    background: transparent;
    color: var(--primary);
}

.featured-nav-controls .btn:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(13, 59, 111, 0.3);
}

/* Main Featured Article */

.featured-image-container {
    position: relative;
    height: 100%;
    min-height: 350px;
    overflow: hidden;
}

.featured-main-image {
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

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

.featured-overlay {
    background: linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.8) 0%,
        rgba(0, 0, 0, 0.4) 40%,
        rgba(0, 0, 0, 0.1) 70%,
        transparent 100%
    );
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.featured-content {
    z-index: 2;
    background: linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.9) 0%,
        rgba(0, 0, 0, 0.3) 100%
    );
        height: 100%;
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
    flex-direction: column;
}

.featured-title {
    
    line-height: 1.2;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.featured-excerpt {
    line-height: 1.6;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.featured-read-more {
    background: linear-gradient(135deg, var(--primary) 0%, #1e5091 100%);
    border: none;
    border-radius: 50px;
    padding: 12px 30px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(13, 59, 111, 0.3);
}

.featured-read-more:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(13, 59, 111, 0.4);
    background: linear-gradient(135deg, #1e5091 0%, var(--primary) 100%);
}

/* Secondary Featured Articles */
.featured-secondary-card {
    height: calc(50% - 6px);
    min-height: 236px;
}

.featured-card-hover {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 12px !important;
    overflow: hidden;
    border: 1px solid var(--border) !important;
}

.featured-card-hover:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1) !important;
    border-color: var(--primary) !important;
}

.featured-secondary-image-container {
    overflow: hidden;
    border-radius: 12px 0 0 12px;
    height: 236px;}
.featured-secondary-image {
    object-fit: cover;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.featured-card-hover:hover .featured-secondary-image {
    transform: scale(1.1);
}

.featured-title-secondary {
    
    line-height: 1.3;
    color: var(--text);
    transition: color 0.3s ease;
}

.featured-card-hover:hover .featured-title-secondary {
    color: var(--primary);
}

/* Tertiary Featured Articles */
.featured-tertiary-card {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.featured-tertiary-image-container {
    height: 200px;
    overflow: hidden;
    border-radius: 12px 12px 0 0;
}

.featured-tertiary-image {
    height: 200px;
    object-fit: cover;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.featured-card-hover:hover .featured-tertiary-image {
    transform: scale(1.08);
}

.featured-title-tertiary {
    
    line-height: 1.3;
    color: var(--text);
    transition: color 0.3s ease;
}

.featured-card-hover:hover .featured-title-tertiary {
    color: var(--primary);
}

.featured-excerpt-tertiary {
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Badge Styling */
.featured-meta .badge,
.featured-meta-secondary .badge,
.featured-meta-tertiary .badge {
    font-weight: 600;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    font-size: 0.75rem;
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Time and Meta Information */
.featured-time,
.featured-time-secondary,
.featured-time-tertiary {
    font-size: 0.85rem;
    opacity: 0.9;
}

.text-white-75 {
    color: rgba(255, 255, 255, 0.75) !important;
}

/* Responsive Design - Mobile First */
@media (max-width: 768px) {
    .featured-articles {
        padding: 2rem 0 !important;
    }
    
    .featured-main-card {
        min-height: 400px;
        margin-bottom: 1rem;
    }
    
    .featured-image-container {
        min-height: 400px;
    }
    
    .featured-content {
        padding: 1.5rem !important;
    }
    
    .featured-title {
        font-size: 1.5rem !important;
    }
    
    .featured-secondary-card {
        min-height: 229px;
        margin-bottom: 0.75rem;
    }
    .featured-title-secondary{
        font-size: 1rem;
    }
    .featured-tertiary-image-container {
        height: 160px;
    }
    
    .featured-tertiary-image {
        height: 160px;
    }
    
    .featured-nav-controls {
        display: none !important;
    }
}

@media (max-width: 576px) {
    .featured-main-card {
        min-height: 350px;
    }
    
    .featured-image-container {
        min-height: 350px;
    }
    
    .featured-content {
        padding: 1rem !important;
    }
    
    .featured-title {
        font-size: 1.3rem !important;
    }
    
    .featured-read-more {
        padding: 10px 24px;
        font-size: 0.9rem;
    }
}

/* Dark Mode Support */
body.dark-mode .featured-articles {
    background: linear-gradient(135deg, var(--surface) 0%, var(--bg) 100%);
}

body.dark-mode .featured-card-hover {
    background-color: var(--surface) !important;
    border-color: var(--border) !important;
}

body.dark-mode .featured-card-hover:hover {
    background-color: var(--surface-hover) !important;
    border-color: var(--primary) !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3) !important;
}

/* Performance Optimizations */
.featured-main-image,
.featured-secondary-image,
.featured-tertiary-image {
    contain: layout style paint;
    content-visibility: auto;
}

/* Smooth Animations */
@media (prefers-reduced-motion: reduce) {
    .featured-main-image,
    .featured-secondary-image,
    .featured-tertiary-image,
    .featured-card-hover,
    .featured-read-more {
        transition: none !important;
        transform: none !important;
    }
}

/* Loading State */
.featured-main-image[loading="eager"],
.featured-secondary-image[loading="lazy"],
.featured-tertiary-image[loading="lazy"] {
    background: linear-gradient(90deg, var(--border) 25%, transparent 50%, var(--border) 75%);
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
}

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

/* Focus States for Accessibility */
.featured-card-hover:focus-within,
.featured-read-more:focus {
    outline: 3px solid var(--primary);
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .featured-articles {
        background: white !important;
        color: black !important;
    }
    
    .featured-nav-controls {
        display: none !important;
    }
}

.indicator {
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    width: 16px;
    border-radius: 4px;
    background-color: white;
}

/* Article Cards */
.article-card {
    transition: all 0.3s ease;
    border-color: var(--border-color);
    height: 100%;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    border-color: var(--secondary);
}

.article-image {
    height: 200px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.article-card:hover .article-image {
    transform: scale(1.05);
}
.title-aside{
    background: var(--primary); 
    color: white;
     padding: 12px 16px; 
     border-radius: 8px;
      margin: -0.5rem -0.5rem 1rem -0.5rem;
    }
/* Category Items */
.category-item a {
    color: var(--dark);
    transition: all 0.2s ease;
}
.category-item a .badge{
    background-color: var(--secondary);
    color: white;
    border-radius: 4px;
    font-size: 0.75rem;
}
.dark-mode .category-item a {
    color: var(--dark);
}

.category-item:hover a {
    padding-left: 8px;
    color: var(--secondary);
}

/* Video Features */
.video-thumbnail {
    position: relative;
    overflow: hidden;
}

.video-thumbnail::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0);
    transition: background-color 0.3s ease;
    z-index: 1;
}

.video-thumbnail:hover::before {
    background-color: rgba(0, 0, 0, 0.2);
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
    cursor: pointer;
}

.video-thumbnail:hover .play-button {
    opacity: 1;
}

.play-icon {
    width: 60px;
    height: 60px;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.play-icon i {
    font-size: 30px;
    color: var(--primary);
}

.play-icon-small {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 24px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
}

.video-item:hover .play-icon-small {
    opacity: 1;
}

.video-duration {
    position: absolute;
    bottom: 4px;
    right: 4px;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    font-size: 10px;
    padding: 1px 4px;
    border-radius: 2px;
    z-index: 2;
}

.video-item {
    transition: background-color 0.3s ease;
    cursor: pointer;
}

.video-item:hover {
    background-color: var(--light);
}

.dark-mode .video-item:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

/* Newsletter */
.newsletter-bg {
    background-image: url('../images/newsletter-bg.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.8;
}

/* Button Hover Effects */
.btn-hover {
    transition: all 0.2s ease;
}

.btn-hover:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Social Icons */
.social-icon {
    transition: all 0.3s ease;
        width: 30px;
    height: 30px;
    background: #606870;
    display: flex
;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
}

.social-icon:hover {
    transform: scale(1.1);
    color: var(--secondary) !important;
}

/* Footer */


.hover-secondary:hover {
    color: var(--secondary) !important;
}

/* Theme Toggle */
#themeToggle {
    position: relative;
}

/* Utility Classes */
.object-cover {
    object-fit: cover;
}

.smaller {
    font-size: 0.75rem;
}

/* Bootstrap Overrides */
.btn-primary {
    background-color: var(--secondary);
    border-color: var(--secondary);
}

.btn-primary:hover, .btn-primary:focus {
    background-color: var(--primary);
    border-color: var(--primary);
}

.btn-secondary {
    background-color: var(--secondary);
    border-color: var(--secondary);
}

.btn-secondary:hover, .btn-secondary:focus {
    background-color: var(--secondary-light);
    border-color: var(--secondary-light);
}

.text-primary {
    color: var(--primary) !important;
}

.text-secondary {
    color: var(--secondary) !important;
}

.bg-primary {
    background-color: var(--primary) !important;
}

.bg-secondary {
    background-color: var(--secondary) !important;
}
/* Dark Mode Overrides */
.dark-mode .card {
    background-color: #1e1e1e;
    border-color: #2d2d2d;
}

.dark-mode .bg-light {
    background-color: #1e1e1e !important;
}

.dark-mode .text-muted {
    color: #adb5bd !important;
}

.dark-mode .border-bottom {
    border-color: #2d2d2d !important;
}

.dark-mode .form-control {
    background-color: #2d2d2d;
    border-color: #3d3d3d;
    color: #f8f9fa;
}

.dark-mode .form-control::placeholder {
    color: #adb5bd;
}

/* Professional Sections */
.professional-sections {
    margin: 3rem 0;
}

.section-nav {
    border-bottom: 2px solid var(--border);
    padding-bottom: 1rem;
}

.section-tabs .btn {
    border-radius: 25px;
    padding: 0.5rem 1.2rem;
    font-weight: 500;
    transition: all 0.2s ease;
    border: 2px solid transparent;
}

.section-tabs .btn:not(.active) {
    color: var(--muted);
    background: transparent;
}

.section-tabs .btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 2px 8px rgba(13, 59, 111, 0.2);
}

.section-tabs .btn:hover:not(.active) {
    background: var(--surface);
    color: var(--text);
    border-color: var(--border);
}

/* Section Content */
.section-content {
    animation: fadeIn 0.3s ease;
    margin-top: 2rem;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
.hashtag-topic a{transition: all ease 0.2s;}
/* Reports Section - Basic Styles */
.report-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}
.list-group-item span{
     width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}
.reports-list .report-item:hover {
    background: var(--surface);
    border-radius: 8px;
    padding: 0.75rem;
    margin: -0.25rem -0.75rem 0.75rem -0.75rem;
    transition: all 0.2s ease;
}

/* REPORTS SECTION - SIMPLIFIED */
.featured-report {
    margin-bottom: 3rem;
}

.featured-report .card {
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.featured-report .card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.featured-report .object-cover {
    object-fit: cover;
}

.reports-grid h4 {
    
    font-weight: 700;
    color: var(--text);
    margin-bottom: 1.5rem;
}

.reports-grid .card {
    border-radius: 12px;
    transition: all 0.3s ease;
    border: 1px solid var(--border);
    background: var(--bg);
}

.reports-grid .card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0,0,0,0.1);
    border-color: var(--primary);
}

.report-category {
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.3rem 0.8rem;
    border-radius: 16px;
}

.report-item h6 {
    font-weight: 700;
    font-size: 1rem;
    line-height: 1.4;
}

/* Simplified line clamp utility */
/* Simplified line clamp utility */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-clamp: 2;
}

/* ARTICLES SECTION ENHANCEMENT */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.article-card {
    background: var(--surface);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
    height: 100%;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
    border-color: var(--primary);
}

.article-image {
    height: 220px;
    width: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.article-content {
    padding: 1.5rem;
}

.article-category {
    background: linear-gradient(135deg, var(--info, #17a2b8), var(--primary));
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 16px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 1rem;
}

.article-title {
    
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 0.75rem;
    color: var(--text);
}

.article-excerpt {
    color: var(--muted);
    line-height: 1.6;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.article-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--muted);
}

/* STUDIES SECTION ENHANCEMENT */
.studies-hero {
    background: linear-gradient(135deg, var(--surface), var(--bg));
    border-radius: 20px;
    padding: 2.5rem;
    border: 1px solid var(--border);
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    margin-bottom: 2rem;
}

.study-header {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.study-icon-large {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    flex-shrink: 0;
}

.study-meta-header {
    flex-grow: 1;
}

.study-badge {
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 0.75rem;
}

.study-main-title {
    
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--text);
    margin: 0;
}

.study-description {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--muted);
    margin-bottom: 2rem;
}

.study-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: rgba(255,255,255,0.03);
    border-radius: 16px;
    border: 1px solid var(--border);
}

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

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 0.5rem;
    
}

.stat-label {
    font-size: 0.9rem;
    color: var(--muted);
    font-weight: 500;
}

.study-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.study-metadata {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--muted);
    font-size: 0.9rem;
}

/* Studies Sidebar */
.studies-sidebar {
    background: var(--surface);
    border-radius: 16px;
    padding: 1.5rem;
    border: 1px solid var(--border);
    height: fit-content;
}

.study-item {
    padding: 1rem 0;
    transition: all 0.3s ease;
    border-radius: 8px;
}

.study-item:hover {
    background: var(--bg);
    padding: 1rem;
    margin: 0 -1rem;
}

.study-item h6 {
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.study-item p {
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

/* STATEMENTS SECTION ENHANCEMENT */
.statements-timeline {
    position: relative;
    padding-left: 3rem;
    max-width: 100%;
}

.statements-timeline::before {
    content: '';
    position: absolute;
    left: 1.5rem;
    top: 30px;
    bottom: 30px;
    width: 3px;
    background: linear-gradient(to bottom, var(--primary), var(--secondary));
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
    display: flex;
    align-items: flex-start;
    gap: 2rem;
}

.timeline-date {
    position: absolute;
    left: -3rem;
    top: 0;
}

.date-circle {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    line-height: 1.1;
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
    position: relative;
    z-index: 2;
    border: 3px solid white;
}

.timeline-content {
    flex-grow: 1;
    margin-top: 0;
}

.statement-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.statement-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-color: var(--primary);
}

.statement-content {
    padding: 2rem;
}

.statement-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}
/* test menu */

.menu {
  filter: url("#shadowed-goo");
}

.menu-item, .menu-open-button {
  background: var(--primary);
  border-radius: 100%;
  width: 25px;
  height: 25px;
  margin-left: -40px;
  position: absolute;
  color: white;
  text-align: center;
  line-height: 26px;
  transform: translate3d(0, 0, 0);
  transition: transform ease-out 200ms;
}

.menu-open {
  display: none;
}

.hamburger {
  width: 12px;
    height: 3px;
    background: white;
    display: block;
    position: absolute;
    top: 53%;
    left: 74%;
    margin-left: -12.5px;
    margin-top: -2.5px;
    transition: transform 200ms;
}

.hamburger-1 {
  transform: translate3d(0, -8px, 0);
}

.hamburger-2 {
  transform: translate3d(0, 0, 0);
}

.hamburger-3 {
  transform: translate3d(0, 8px, 0);
}

.menu-open:checked + .menu-open-button .hamburger-1 {
  transform: translate3d(0, 0, 0) rotate(45deg);
}
.menu-open:checked + .menu-open-button .hamburger-2 {
  transform: translate3d(0, 0, 0) scale(0.1, 1);
}
.menu-open:checked + .menu-open-button .hamburger-3 {
  transform: translate3d(0, 0, 0) rotate(-45deg);
}

.menu {
  box-sizing: border-box;

}

.menu-item:hover {
  background: white;
  color: #ffc107;
}
.menu-item:nth-child(3) {
  transition-duration: 180ms;
}
.menu-item:nth-child(4) {
  transition-duration: 180ms;
}
.menu-item:nth-child(5) {
  transition-duration: 180ms;
}
.menu-item:nth-child(6) {
  transition-duration: 180ms;
}

.menu-open-button {
  z-index: 2;
  transition-timing-function: cubic-bezier(0.175, 0.885, 0.32, 1.275);
  transition-duration: 400ms;
  transform: scale(1.1, 1.1) translate3d(0, 0, 0);
  cursor: pointer;
}

.menu-open-button:hover {
  transform: scale(1.2, 1.2) translate3d(0, 0, 0);
}

.menu-open:checked + .menu-open-button {
  transition-timing-function: linear;
  transition-duration: 200ms;
  transform: scale(0.8, 0.8) translate3d(0, 0, 0);
}

.menu-open:checked ~ .menu-item {
  transition-timing-function: cubic-bezier(0.165, 0.84, 0.44, 1);
}
.menu-open:checked ~ .menu-item:nth-child(3) {
  transition-duration: 170ms;
  transform: translate3d(-26px, 0, 0);
}
.menu-open:checked ~ .menu-item:nth-child(4) {
  transition-duration: 250ms;
  transform: translate3d(-54px, 0, 0);
}
.menu-open:checked ~ .menu-item:nth-child(5) {
  transition-duration: 330ms;
  transform: translate3d(-80px, 0, 0);
}
.menu-open:checked ~ .menu-item:nth-child(6) {
  transition-duration: 410ms;
  transform: translate3d(-106px, 0, 0);
}

.statement-badge {
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
}

.statement-title {
    
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1.3;
    margin: 0;
    color: var(--text);
}

.statement-text {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text);
    margin-bottom: 1.5rem;
}

/* Enhanced Featured Videos Section - High Performance UI/UX */
.featured-videos-section {
    margin-top: 3rem !important;
}

/* Featured Video Card */
.featured-video-card {
    background: var(--surface);
    border: 1px solid var(--border);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: scale(1);
    will-change: transform, box-shadow;
}

.featured-video-card:hover {
    transform: scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

body.dark-mode .featured-video-card:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Video Thumbnail */
.video-thumbnail-main {
    transition: transform 0.3s ease;
}

.featured-video-card:hover .video-thumbnail-main {
    transform: scale(1.05);
}

/* Video Overlay */
.video-overlay {
    background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,0.7) 100%);
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.featured-video-card:hover .video-overlay {
    opacity: 1;
}

/* Play Button Main */
.play-button-main {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.play-button-main:hover {
    transform: scale(1.1);
}

.play-button-circle {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.play-button-circle:hover {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.1);
}

.play-button-circle i {
    font-size: 2rem;
    color: var(--primary);
    margin-left: 4px;
}

/* Video Info Overlay */
.video-info-overlay {
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0) 100%);
    backdrop-filter: blur(5px);
}

.video-category {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.video-duration .bi-clock {
    font-size: 0.75rem;
}

.video-title {
    line-height: 1.3;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.video-details {
    opacity: 0.9;
    font-size: 0.85rem;
}

/* Video Playlist */
.video-playlist {
    max-height: 400px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--primary) var(--surface);
}

.video-playlist::-webkit-scrollbar {
    width: 4px;
}

.video-playlist::-webkit-scrollbar-track {
    background: var(--surface);
    border-radius: 2px;
}

.video-playlist::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 2px;
}

/* Video List Items */
.video-list-item {
    background: var(--surface);
    border: 1px solid var(--border);
    transition: all 0.2s ease;
    cursor: pointer;
}

.video-list-item:hover {
    background: var(--surface-hover);
    border-color: var(--primary);
    transform: translateX(5px);
}

.video-item-hover {
    transition: all 0.2s ease;
}

.video-list-item:hover .video-item-hover {
    padding-left: 1rem !important;
}

/* Video Thumbnails */
.video-thumb-container {
    width: 120px;
    height: 68px;
    position: relative;
    overflow: hidden;
    border-radius: 6px;
}

.video-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.video-list-item:hover .video-thumb {
    transform: scale(1.05);
}

/* Mini Play Icon */
.play-icon-mini {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 24px;
    height: 24px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.8;
    transition: all 0.2s ease;
}

.video-list-item:hover .play-icon-mini {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
    background: rgba(255, 255, 255, 1);
}

.play-icon-mini i {
    font-size: 0.7rem;
    color: var(--primary);
    margin-left: 1px;
}

/* Duration Badge */
.duration-badge {
    position: absolute;
    bottom: 4px;
    right: 4px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 3px;
    font-weight: 500;
}

/* Video Content */
.video-content {
    min-height: 0;
}

.video-list-title {
    font-size: 0.9rem;
    line-height: 1.3;
    color: var(--text);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s ease;
}

.video-list-item:hover .video-list-title {
    color: var(--primary);
}

.video-meta-small {
    font-size: 0.75rem;
    opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 991.98px) {
    .featured-video-card {
        margin-bottom: 2rem;
    }
    
    .play-button-circle {
        width: 60px;
        height: 60px;
    }
    
    .play-button-circle i {
        font-size: 1.5rem;
    }
    
    .video-thumb-container {
        width: 100px;
        height: 56px;
    }
}

@media (max-width: 767.98px) {
    .video-info-overlay {
        padding: 1rem !important;
    }
    
    .video-title {
        font-size: 1.1rem !important;
    }
    
    .video-list-item:hover {
        transform: none;
    }
    
    .video-list-item:hover .video-item-hover {
        padding-left: 0.75rem !important;
    }
}

/* Performance Optimizations */
.video-thumbnail-main,
.video-thumb {
    will-change: transform;
    backface-visibility: hidden;
}

.play-button-main,
.play-icon-mini {
    will-change: transform;
}

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

.featured-videos-section[data-aos="fade-up"] {
    animation: fadeInUp 0.8s ease-out;
}

/* Loading placeholder for images */
.video-thumb[data-src] {
    background: linear-gradient(90deg, var(--surface) 25%, var(--border) 50%, var(--surface) 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

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

/* Dark mode specific adjustments */
body.dark-mode .video-overlay {
    background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,0.9) 100%);
}

body.dark-mode .video-info-overlay {
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0) 100%);
}

body.dark-mode .play-button-circle {
    background: rgba(255, 255, 255, 0.95);
}

body.dark-mode .video-list-item {
    background: var(--surface);
    border-color: var(--border);
}

body.dark-mode .video-list-item:hover {
    background: var(--surface-hover);
    border-color: var(--primary);
}

/* PERFORMANCE OPTIMIZATIONS */
.professional-sections {
    contain: layout style paint;
}

.card, .report-item, .article-card, .statement-card {
    will-change: transform, box-shadow;
    backface-visibility: hidden;
    transform: translateZ(0);
}

.section-content {
    transform: translateZ(0);
}

/* ACCESSIBILITY ENHANCEMENTS */
.section-tabs {
    display: flex
;
    gap: 0.5rem;
    flex-wrap: wrap;
}
.tab-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    background: transparent;
    color: var(--muted);
    border-radius: 12px;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}
.tab-btn.active {
    background: var(--primary);
    color: white;
    box-shadow: 0 6px 20px rgba(13, 59, 111, 0.3);
    transition: all 0.3s ease;
}
.tab-btn:hover {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
        transition: all 0.3s ease;

}
.tab-btn:focus,
.btn-download:focus,
.btn-view:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.card:focus-within {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* PRINT STYLES */
@media print {
    .professional-sections .card {
        box-shadow: none !important;
        border: 1px solid #000 !important;
    }
    
    .stats-overview {
        background: #f5f5f5 !important;
        color: #000 !important;
    }
}