/* BrainSAIT Futuristic Design System */
:root {
    --background: #0a0a0a;
    --foreground: #f9fafb;
    --card: #0f0f0f;
    --card-foreground: #f9fafb;
    --primary: #FF6F00;
    --primary-hover: #F56200;
    --primary-foreground: #ffffff;
    --secondary: #0D1B2A;
    --secondary-hover: #1e3a52;
    --secondary-foreground: #ffffff;
    --accent: #00D4FF;
    --accent-secondary: #7C3AED;
    --muted: #1a1a1a;
    --muted-foreground: #a3a3a3;
    --border: #262626;
    --neural-blue: #0066FF;
    --signal-teal: #00FFFF;
    --midnight-blue: #0D1B2A;
    --neural-gray: #1a1a1a;
    --breaking-news-bg: linear-gradient(135deg, #ff4757, #ff3838);
    --cyber-glow: 0 0 30px rgba(0, 212, 255, 0.3);
    --neural-glow: 0 0 20px rgba(255, 111, 0, 0.4);
    --font-sans: "Inter", system-ui, -apple-system, sans-serif;
    --font-arabic: "Noto Naskh Arabic", sans-serif;
    --radius: 0.75rem;
    --header-height-mobile: 4.5rem;
    --header-height-desktop: 5rem;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: var(--background);
    color: var(--foreground);
    font-family: var(--font-arabic), var(--font-sans);
    line-height: 1.6;
    min-height: 100vh;
    position: relative; /* For sidebar padding adjustments */
    overflow-x: hidden;
}

/* Futuristic Grid Background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(0, 212, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 212, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
    z-index: -1;
}

/* Enhanced Navigation */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 212, 255, 0.2);
    height: var(--header-height-desktop);
    transition: all 0.3s ease;
}

.navbar {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.brand-logo {
    width: 40px;
    height: 40px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.brain-icon {
    width: 32px;
    height: 32px;
    position: relative;
    filter: drop-shadow(var(--neural-glow));
}

.brain-left {
    position: absolute;
    left: 0;
    width: 16px;
    height: 32px;
    background: linear-gradient(135deg, var(--neural-blue), var(--accent));
    border-radius: 16px 0 0 16px;
    border-right: 2px solid var(--signal-teal);
}

.brain-right {
    position: absolute;
    right: 0;
    width: 16px;
    height: 32px;
    background: linear-gradient(135deg, var(--primary), var(--accent-secondary));
    border-radius: 0 16px 16px 0;
}

.brain-circuits {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 8px 16px, var(--signal-teal) 1px, transparent 1px),
        radial-gradient(circle at 24px 16px, var(--signal-teal) 1px, transparent 1px);
    animation: pulse-circuits 2s ease-in-out infinite;
}

@keyframes pulse-circuits {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

.brand-text {
    font-size: 1.75rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.025em;
}

.navbar-links {
    /* Desktop: display: flex; (set in media query) */
    /* Mobile: display: flex; flex-direction: column (set in media query for mobile sidebar) */
    display: none; /* Hidden by default, shown by media queries */
    list-style: none;
    padding: 0; margin: 0;
}

.navbar-links a {
    color: var(--foreground);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
    transition: all 0.3s ease;
    position: relative;
}

.navbar-links a:hover,
.navbar-links a:focus-visible {
    color: var(--accent);
    background: rgba(0, 212, 255, 0.1);
    box-shadow: var(--cyber-glow);
    outline: none; /* Custom focus styling */
}

.nav-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Enhanced Language Toggle */
.language-toggle {
    position: relative;
    background: linear-gradient(135deg, var(--primary), var(--accent-secondary));
    border-radius: 30px;
    padding: 0.25rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    box-shadow: var(--neural-glow);
    transition: all 0.3s ease;
}

.language-toggle:hover {
    box-shadow: 0 0 40px rgba(255, 111, 0, 0.6);
}

.lang-option {
    padding: 0.5rem 1rem;
    border-radius: 25px;
    color: white;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
    font-size: 0.875rem;
    background: none;
    border: none;
    cursor: pointer;
}
.lang-option:focus-visible {
    border: none;
    cursor: pointer;
}

.lang-option:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.5);
    outline-offset: 2px;
}

.lang-option.active {
    background: rgba(255, 255, 255, 0.95);
    color: var(--primary);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.mobile-menu-btn {
    /* display: block; -- Will be controlled by media queries */
    display: none; /* Hidden by default, shown only if needed by a design not implementing always-visible sidebar */
    background: none;
    border: none;
    color: var(--foreground);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: var(--radius);
}

.mobile-menu-btn:hover,
.mobile-menu-btn:focus-visible {
    background: rgba(0, 212, 255, 0.1);
    outline: none;
}

.hamburger-icon {
    width: 24px;
    height: 3px;
    background: var(--accent);
    position: relative;
    transition: all 0.3s ease;
}

.hamburger-icon::before,
.hamburger-icon::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 3px;
    background: var(--accent);
    transition: all 0.3s ease;
}

.hamburger-icon::before { top: -8px; }
.hamburger-icon::after { top: 8px; }

/* Active state for hamburger icon (transform to X) */
.mobile-menu-btn.active .hamburger-icon {
    background: transparent;
}

.mobile-menu-btn.active .hamburger-icon::before {
    transform: translateY(8px) rotate(45deg);
    background: var(--accent);
}

.mobile-menu-btn.active .hamburger-icon::after {
    transform: translateY(-8px) rotate(-45deg);
    background: var(--accent);
}

.mobile-menu-btn {
    /* display: block !important; -- This was for the old toggle, removing */
    background: none;
    border: none;
    color: var(--foreground);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: var(--radius);
    transition: background-color 0.3s ease; /* Only transition background */
    z-index: 1001; /* Higher than mobile menu */
    position: relative;
}

.mobile-menu-btn:hover,
.mobile-menu-btn:focus-visible {
    background: rgba(0, 212, 255, 0.1);
    outline: none;
}

.hamburger-icon {
    width: 24px;
    height: 3px;
    background: var(--accent);
    /* position: relative; already set */
    transition: all 0.3s ease;
    display: block;
}

.hamburger-icon::before,
.hamburger-icon::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 3px;
    background: var(--accent);
    /* transition: all 0.3s ease; already set */
    display: block;
}

.hamburger-icon::before { 
    top: -8px; 
}

.hamburger-icon::after { 
    top: 8px; 
}

/* Breaking News Enhancement */
.breaking-news {
    background: var(--breaking-news-bg);
    color: white;
    padding: 2rem 0; 
    margin-top: 5rem;
    position: relative;
    overflow: hidden;
}

.breaking-news::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    animation: shine 3s infinite;
}

.breaking-news::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(255, 111, 0, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
}

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

.breaking-news-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    text-align: center;
    position: relative;
    z-index: 2;
}

.breaking-news-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1.5rem;
    border-radius: 30px;
    margin-bottom: 1.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    animation: pulse-badge 2s infinite;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

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

.breaking-news h2 {
    font-size: 1.75rem; /* Mobile first */
    margin-bottom: 1rem;
    font-weight: 800;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.breaking-news-container p { /* More specific to avoid affecting other p tags if any */
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.audio-button {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.95);
    color: var(--primary);
    padding: 1.25rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

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

.audio-button:hover::before {
    left: 100%;
}

.audio-button:hover,
.audio-button:focus-visible {
    transform: translateY(-5px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
    color: var(--accent);
    outline: none;
}

.audio-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: soundwave 1.5s ease-in-out infinite;
    position: relative;
}

.audio-icon::after {
    content: '▶';
    color: white;
    font-size: 12px;
    margin-left: 2px;
}

@keyframes soundwave {
    0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 111, 0, 0.4); }
    50% { transform: scale(1.1); box-shadow: 0 0 0 10px rgba(255, 111, 0, 0); }
}

/* Language Content Management */
.lang-content {
    display: none;
}

.lang-content.active {
    display: block;
}

/* Hero Section with Cyberpunk Aesthetic */
.hero {
    padding: 6rem 0; /* Mobile First Spacing */
    position: relative;
    overflow: hidden;
    background: radial-gradient(ellipse at center, rgba(13, 27, 42, 0.8) 0%, var(--background) 70%);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(0, 102, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255, 111, 0, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(0, 255, 255, 0.05) 0%, transparent 50%);
    animation: hero-bg-pulse 4s ease-in-out infinite;
}

@keyframes hero-bg-pulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

.hero-content {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 2rem;
    text-align: center;
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 50px;
    padding: 0.75rem 1.5rem;
    margin-bottom: 2rem;
    font-weight: 600;
    color: var(--accent);
    animation: hero-badge-glow 2s ease-in-out infinite;
}

@keyframes hero-badge-glow {
    0%, 100% { box-shadow: 0 0 20px rgba(0, 212, 255, 0.3); }
    50% { box-shadow: 0 0 30px rgba(0, 212, 255, 0.6); }
}

.hero h1 {
    font-size: 2.5rem; /* Mobile first */
    font-weight: 800;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--primary), var(--accent), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
    animation: hero-title-glow 3s ease-in-out infinite;
}

@keyframes hero-title-glow {
    0%, 100% { filter: drop-shadow(0 0 10px rgba(255, 111, 0, 0.3)); }
    50% { filter: drop-shadow(0 0 20px rgba(255, 111, 0, 0.6)); }
}

.hero .tagline {
    font-size: 1.75rem;
    margin-bottom: 2rem;
    color: var(--accent);
    font-weight: 600;
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

.hero-description {
    font-size: 1.3rem;
    margin-bottom: 3rem;
    opacity: 0.9;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: linear-gradient(135deg, var(--primary), var(--accent-secondary));
    color: white;
    padding: 1.25rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(255, 111, 0, 0.4);
    position: relative;
    overflow: hidden;
}

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

.cta-button:hover::before {
    left: 100%;
}

.cta-button:hover,
.cta-button:focus-visible {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 20px 40px rgba(255, 111, 0, 0.6);
    outline: none;
}

/* Enhanced Sections */
.section {
    padding: 6rem 0; /* Mobile First Spacing */
    position: relative;
} 

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-title {
    font-size: 2rem; /* Mobile first */
    text-align: center;
    margin-bottom: 3rem; /* Mobile First Spacing */
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 2px;
}

/* About Section */
.about {
    background: rgba(15, 15, 15, 0.8);
    position: relative;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 30% 20%, rgba(0, 102, 255, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 70% 80%, rgba(255, 111, 0, 0.05) 0%, transparent 50%);
}

.about-content {
    position: relative;
    z-index: 2;
}

.about-section-description {
    text-align: center;
    font-size: 1.3rem;
    margin-bottom: 3rem; /* Mobile First Spacing */
    color: var(--muted-foreground);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr; /* Mobile first */
    gap: 1.5rem; /* Mobile gap */
}

.about-item {
    background: linear-gradient(135deg, rgba(0, 102, 255, 0.1), rgba(255, 111, 0, 0.1));
    border: 1px solid rgba(0, 212, 255, 0.2);
    padding: 2.5rem;
    border-radius: 20px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

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

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

.about-item:hover,
.about-item:focus-within { /* if items are not focusable themselves, but contain focusable elements */
    transform: translateY(-10px);
    box-shadow: var(--cyber-glow);
    border-color: var(--accent);
    outline: none;
}

.about-item h3 {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    color: var(--accent);
    font-weight: 700;
}

.about-item p {
    line-height: 1.7;
    color: var(--foreground);
}

/* IANA Link Styling */
.iana-link {
    color: var(--accent) !important;
    transition: color 0.3s ease;
}

.iana-link:hover,
.iana-link:focus-visible {
    color: var(--primary) !important;
    outline: none;
}

/* Services Section */
.services {
    background: var(--background);    
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr; /* Mobile first */
    gap: 1.5rem; /* Mobile gap */
}

/* Service Link Styling */
.service-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.service-link:hover,
.service-link:focus-visible {
    text-decoration: none;
    color: inherit;
    outline: none;
}

.service-card {
    background: linear-gradient(135deg, rgba(13, 27, 42, 0.9), rgba(26, 26, 26, 0.9));
    border: 1px solid rgba(0, 212, 255, 0.2);
    padding: 2.5rem;
    border-radius: 20px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 50% 50%, rgba(255, 111, 0, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.service-card:hover,
.service-card:focus-within {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 
        var(--cyber-glow),
        0 0 50px rgba(255, 111, 0, 0.2);
    border-color: var(--primary);
    outline: none;
}

.service-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    display: block;
    filter: drop-shadow(0 0 10px rgba(0, 212, 255, 0.5));
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--accent);
    font-weight: 700;
}

.service-card p {
    line-height: 1.7;
    color: var(--muted-foreground);
}

/* Leadership Section */
.leadership {
    background: linear-gradient(135deg, rgba(13, 27, 42, 0.6), rgba(10, 10, 10, 0.8));
    position: relative;
}

.leadership::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(124, 58, 237, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(0, 212, 255, 0.1) 0%, transparent 50%);
}

.leader-profile {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 2;
    padding: 0 2rem; /* Added padding for mobile */
}

.leader-avatar {
    width: 180px;
    height: 180px;
    margin: 0 auto 2rem;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--accent);
    box-shadow: 
        var(--cyber-glow),
        0 0 40px rgba(255, 111, 0, 0.3);
    position: relative;
}

.leader-avatar::before {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    background: linear-gradient(45deg, var(--primary), var(--accent), var(--accent-secondary));
    border-radius: 50%;
    z-index: -1;
    animation: rotate-border 3s linear infinite;
}

@keyframes rotate-border {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Leader Image Styling */
.leader-image {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.leader-name {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--accent), var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
}

.leader-title {
    font-size: 1.3rem;
    color: var(--accent);
    margin-bottom: 2rem;
    font-weight: 600;
}

.leader-bio {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 2.5rem;
    color: var(--muted-foreground);
}

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

.leader-social-link {
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--primary), var(--accent-secondary));
    color: white;
    text-decoration: none;
    border-radius: 30px;
    transition: all 0.3s ease;
    font-weight: 600;
    position: relative;
    overflow: hidden;
}

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

.leader-social-link:hover::before {
    left: 100%;
}

.leader-social-link:hover,
.leader-social-link:focus-visible {
    transform: translateY(-5px);
    box-shadow: var(--neural-glow);
    outline: none;
}

/* News Section with Timeline */
.news {
    background: var(--background);
}

.news-timeline {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    padding: 0 2rem; /* Added padding for mobile */
}

.news-timeline::before { /* Hidden on mobile by default */
    display: none;
}

.news-item {
    background: linear-gradient(135deg, rgba(13, 27, 42, 0.8), rgba(26, 26, 26, 0.8));
    border: 1px solid rgba(0, 212, 255, 0.2);
    padding: 2rem; /* Mobile padding */
    border-radius: 20px;
    margin-bottom: 2rem; /* Mobile margin */
    margin-left: 0; /* Mobile default */
    position: relative;
    transition: all 0.3s ease;
}

.news-item::before { /* Hidden on mobile by default */
    display: none;
}

.news-item:hover,
.news-item:focus-within {
    transform: translateX(1rem);
    box-shadow: var(--cyber-glow);
    border-color: var(--accent);
    outline: none;
}

.news-date {
    color: var(--accent);
    font-weight: 700;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.news-item h3 {
    font-size: 1.6rem;
    margin-bottom: 1rem;
    color: var(--primary);
    font-weight: 700;
}

.news-item p {
    line-height: 1.7;
    color: var(--muted-foreground);
}

/* Footer Enhancement */
.footer {
    background: linear-gradient(135deg, var(--midnight-blue), var(--neural-gray));
    border-top: 1px solid rgba(0, 212, 255, 0.2);
    padding: 4rem 0 2rem;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 10% 20%, rgba(255, 111, 0, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 90% 80%, rgba(0, 212, 255, 0.1) 0%, transparent 50%);
}

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

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

.footer-company-info .logo {
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.5rem;
}

.footer-grid h4 {
    color: var(--accent);
    margin-bottom: 1.5rem;
    font-weight: 700;
    font-size: 1.2rem;
}

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

.footer-grid ul li {
    margin-bottom: 0.75rem;
}

.footer-grid ul li a {
    color: var(--muted-foreground);
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 0.25rem 0;
    display: block;
}

.footer-grid ul li a:hover,
.footer-grid ul li a:focus-visible {
    color: var(--accent);
    padding-left: 0.5rem;
    outline: none;
}

.footer-copyright {
    text-align: center;
    color: var(--muted-foreground);
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 212, 255, 0.2);
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Design - Tablet and Desktop */
@media (min-width: 768px) {
    .navbar-links {
        display: flex !important; /* Ensure it's flex for desktop */
        position: static;
        flex-direction: row;
        background: none;
        backdrop-filter: none;
        width: auto;
        height: auto;
        padding: 0;
        border: none;
        box-shadow: none;
        animation: none;
        gap: 2rem;
        align-items: center;
    }

    .hero {
        padding: 8rem 0; 
    }

    .section {
        padding: 8rem 0; 
    }

    .section-title {
        font-size: 3rem;
        margin-bottom: 5rem; 
    }

    .hero h1 {
        font-size: 4rem;
    }
    
    .breaking-news h2 {
        font-size: 2.5rem;
    }

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

    .about-grid {
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
        gap: 2.5rem; /* Increased gap for desktop */
    }

    .about-section-description {
        margin-bottom: 5rem; 
    }

    .news-item {
        padding: 3rem; 
        margin-bottom: 3rem; 
    }

    /* News Timeline for Desktop */
    .news-timeline::before {
        display: block;
        content: '';
        position: absolute;
        left: 2rem;
        top: 0;
        bottom: 0;
        width: 2px;
        background: linear-gradient(to bottom, var(--primary), var(--accent));
    }
    .news-item {
        margin-left: 4rem;
    }
    .news-item::before {
        display: block;
        content: '';
        position: absolute;
        left: -3rem;
        top: 50%;
        transform: translateY(-50%);
        width: 1rem;
        height: 1rem;
        background: var(--primary);
        border-radius: 50%;
        box-shadow: 0 0 20px var(--primary);
    }

    [dir="rtl"] .news-timeline::before {
        left: auto;
        right: 2rem;
    }
    [dir="rtl"] .news-item {
        margin-left: 0;
        margin-right: 4rem;
    }
    [dir="rtl"] .news-item::before {
        left: auto;
        right: -3rem;
    }

    body {
        padding-left: 0 !important; /* Reset mobile sidebar padding */
        padding-right: 0 !important;
    }

    .mobile-menu-btn {
        display: none !important; /* Ensure hamburger is hidden on desktop */
    }
}

/* Mobile specific adjustments */
@media (max-width: 767px) {
    .hero { padding: 6rem 0; }
     .section { padding: 5rem 0; }
     .news-item { padding: 2rem; margin-bottom: 2rem; 
    }
    
    .leader-social-links {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .navbar { 
        padding: 0 1rem; 
        height: var(--header-height-mobile);
    }
    
    .container { 
        padding: 0 1rem; 
    }
    
    .mobile-menu-btn {
        display: none !important; /* Hide hamburger on mobile as sidebar is always visible */
    }

    /* New Mobile Sidebar Styles */
    .navbar-links {
        display: flex !important; /* Always visible on mobile */
        flex-direction: column;
        position: fixed;
        top: var(--header-height-mobile);
        left: 0;
        bottom: 0;
        width: 70px; /* Width of the sidebar */
        background: rgba(15, 15, 15, 0.85); /* Dark, transparent background */
        backdrop-filter: blur(15px);
        padding: 1rem 0;
        border-right: 1px solid rgba(0, 212, 255, 0.2);
        z-index: 998; /* Below header, above content */
        align-items: center;
        gap: 0.5rem; /* Smaller gap for small buttons */
        overflow-y: auto; /* In case of many links */
        transition: background-color 0.3s ease, backdrop-filter 0.3s ease;
    }

    .navbar-links li {
        width: 100%;
        text-align: center;
    }

    .navbar-links a {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 50px; /* Button width */
        height: 50px; /* Button height */
        padding: 0.5rem;
        margin: 0.25rem auto; /* Centering the button */
        border-radius: var(--radius);
        font-size: 0.7rem; /* Smaller font for short text/icons */
        color: var(--muted-foreground);
        text-decoration: none;
        transition: all 0.2s ease-in-out;
        line-height: 1.2; /* Adjust for small text */
    }

    .navbar-links a:hover,
    .navbar-links a:focus-visible {
        background: rgba(0, 212, 255, 0.2);
        color: var(--accent);
        transform: scale(1.1);
        box-shadow: var(--cyber-glow);
    }
    
    .navbar-links.mobile-active a {
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }
    
    /* Breaking news mobile adjustments */
    .breaking-news {
        padding: 1.5rem 0;
        margin-top: var(--header-height-mobile); /* Match header height */
    }
    
    .breaking-news-container {
        padding: 0 1rem;
    }
    
    .audio-button {
        padding: 1rem 2rem;
        font-size: 1rem;
        gap: 0.75rem;
    }
    
    /* Hero mobile adjustments */
    .hero-content {
        padding: 0 1rem;
    }
    
    .hero-badge {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }
    
    .hero .tagline {
        font-size: 1.5rem;
    }
    
    .hero-description {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }
    
    .cta-button {
        padding: 1rem 2rem;
        font-size: 1.1rem;
        gap: 0.5rem;
    }

    /* Adjust body padding for the fixed sidebar */
    body {
        padding-left: 70px; /* Width of the sidebar */
    }

    [dir="rtl"] body {
        padding-left: 0;
        padding-right: 70px; /* Width of the sidebar for RTL */
    }

    [dir="rtl"] .navbar-links { /* Mobile sidebar RTL */
        left: auto;
        right: 0;
        border-right: none;
        border-left: 1px solid rgba(0, 212, 255, 0.2);
    }
}

/* Ensure mobile menu is hidden by default */
@media (max-width: 767px) {
    .navbar-links.mobile-active {
        display: flex !important;
        /* top: 4.5rem; -- This class is no longer used for the new sidebar */
    }
}

/* Ensure mobile menu is hidden on desktop */
@media (min-width: 768px) {
    /* Resetting styles for .navbar-links that were applied for mobile sidebar */
    .navbar-links.mobile-active {
        display: flex !important;
        /* position: static; -- This is default for .navbar-links in desktop */
        flex-direction: row;
        background: none;
        backdrop-filter: none;
        padding: 0;
        border: none;
        box-shadow: none;
        animation: none;
        gap: 2rem;
    }
    /* Ensure .navbar-links (even if .mobile-active was somehow added) behaves as desktop nav */
    .navbar-links.mobile-active {
        position: static; /* Ensure it's not absolute */
    }
    
    .navbar-links.mobile-active li {
        width: auto;
        margin-bottom: 0;
    }
    
    .navbar-links.mobile-active a {
        padding: 0.5rem 1rem;
        width: auto;
        font-size: inherit;
        border-radius: var(--radius);
        color: var(--foreground); 
    }
    
    .navbar-links.mobile-active a:hover,
    .navbar-links.mobile-active a:focus-visible {
        transform: none;
        background: rgba(0, 212, 255, 0.1); /* Restore desktop hover */
        color: var(--accent);
    }

    .header {
        height: var(--header-height-desktop);
    }
}

/* RTL Support */
[dir="rtl"] .footer-grid ul li a:hover,
[dir="rtl"] .footer-grid ul li a:focus-visible {
    padding-left: 0;
    padding-right: 0.5rem;
}

/* Ensure news item hover transform is correct for RTL */
[dir="rtl"] .news-item:hover,
[dir="rtl"] .news-item:focus-within {
    transform: translateX(-1rem);
}

/* Comprehensive RTL Support for Brain Logo */
[dir="rtl"] .brain-left {
    left: auto;
    right: 0;
    border-right-width: 0;
    border-left-width: 2px;
    border-left-color: var(--signal-teal);
    border-radius: 0 16px 16px 0;
}

[dir="rtl"] .brain-right {
    right: auto;
    left: 0;
    border-radius: 16px 0 0 16px;
}

[dir="rtl"] .brain-circuits {
    background-image: 
        radial-gradient(circle at 24px 16px, var(--signal-teal) 1px, transparent 1px),
        radial-gradient(circle at 8px 16px, var(--signal-teal) 1px, transparent 1px);
}

/* RTL Support for Navigation */
[dir="rtl"] .navbar-brand {
    /* flex-direction: row-reverse; -- Handled by gap and order of elements if needed */
}

[dir="rtl"] .nav-controls {
     /* flex-direction: row-reverse; -- Handled by gap and order of elements if needed */
}

/* RTL Support for Hero Features */
[dir="rtl"] .hero-badge {
    /* flex-direction: row-reverse; -- Handled by gap and order of elements if needed */
}

/* RTL Support for CTA Button */
[dir="rtl"] .cta-button {
    /* flex-direction: row-reverse; -- Handled by gap and order of elements if needed */
}

/* RTL Support for Audio Button */
[dir="rtl"] .audio-button {
    /* flex-direction: row-reverse; -- Handled by gap and order of elements if needed */
}

[dir="rtl"] .audio-icon::after {
    margin-left: 0;
    margin-right: 2px; /* Adjust for RTL */
}

/* RTL Support for Leader Social Links */
[dir="rtl"] .leader-social-links {
    direction: ltr; /* Keep social links in LTR order */
}

/* RTL Support for Language Toggle */
[dir="rtl"] .language-toggle {
    flex-direction: row-reverse;
}