:root {
    --aljazeera-red: #c00;
    --aljazeera-dark-red: #900;
    --aljazeera-black: #121212;
    --aljazeera-dark: #333;
    --aljazeera-gray: #666;
    --aljazeera-light-gray: #e5e5e5;
    --aljazeera-white: #ffffff;
    --aljazeera-blue: #1a5f96;
}

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

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--aljazeera-black);
    background-color: var(--aljazeera-white);
    font-size: 16px;
}

/* Breaking News Alert */
.breaking-news-alert {
    background: linear-gradient(135deg, var(--aljazeera-red), var(--aljazeera-dark-red));
    color: var(--aljazeera-white);
    padding: 8px 0;
    font-weight: 700;
    font-size: 0.9rem;
}

.breaking-label {
    display: flex;
    align-items: center;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.live-dot {
    width: 8px;
    height: 8px;
    background: var(--aljazeera-white);
    border-radius: 50%;
    margin-right: 8px;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.3; }
    100% { opacity: 1; }
}

.breaking-content marquee {
    padding: 0 10px;
}

.breaking-link {
    color: var(--aljazeera-white);
    text-decoration: none;
    margin: 0 10px;
    transition: opacity 0.3s ease;
}

.breaking-link:hover {
    opacity: 0.8;
}

/* Main Header */
.main-header-aljazeera {
    background: var(--aljazeera-white);
    border-bottom: 3px solid var(--aljazeera-red);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.site-logo a {
    font-family: 'Roboto', sans-serif;
    font-size: 2rem;
    font-weight: 900;
    color: var(--aljazeera-black);
    text-decoration: none;
    letter-spacing: -1px;
}

.current-date {
    font-size: 0.875rem;
    color: var(--aljazeera-gray);
    margin-top: 4px;
}

/* Main Navigation */
.main-navigation-aljazeera .nav-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 2rem;
    justify-content: center;
}

.nav-link {
    color: var(--aljazeera-black);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    text-transform: uppercase;
    transition: color 0.3s ease;
    padding: 8px 0;
    position: relative;
}

.nav-link.active,
.nav-link:hover {
    color: var(--aljazeera-red);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--aljazeera-red);
}

/* Header Actions */
.header-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    align-items: center;
}

.btn-live {
    background: var(--aljazeera-red);
    color: var(--aljazeera-white);
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.875rem;
    transition: background 0.3s ease;
}

.btn-live:hover {
    background: var(--aljazeera-dark-red);
}

.btn-search,
.btn-menu {
    background: transparent;
    border: 2px solid var(--aljazeera-light-gray);
    color: var(--aljazeera-gray);
    width: 40px;
    height: 40px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.btn-search:hover,
.btn-menu:hover {
    border-color: var(--aljazeera-red);
    color: var(--aljazeera-red);
}

/* Secondary Navigation */
.secondary-nav {
    background: var(--aljazeera-light-gray);
    border-bottom: 1px solid #ddd;
}

.secondary-nav-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 12px 0;
    gap: 1.5rem;
    overflow-x: auto;
    white-space: nowrap;
}

.secondary-nav-link {
    color: var(--aljazeera-dark);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.secondary-nav-link:hover {
    color: var(--aljazeera-red);
}

/* Hero Section */
.hero-section-aljazeera {
    padding: 2rem 0;
    background: var(--aljazeera-white);
}

.main-featured-story {
    position: relative;
}

.story-category {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--aljazeera-red);
    color: var(--aljazeera-white);
    padding: 6px 12px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 2;
}

.featured-image {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

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

.image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60%;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    border-radius: 8px;
}

.featured-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem;
    color: var(--aljazeera-white);
    z-index: 2;
}

.featured-title {
    font-size: 2.25rem;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.featured-title a {
    color: var(--aljazeera-white);
    text-decoration: none;
}

.featured-title a:hover {
    color: var(--aljazeera-light-gray);
}

.featured-excerpt {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    opacity: 0.9;
}

/* Secondary Stories */
.secondary-story .story-image {
    margin-bottom: 1rem;
}

.secondary-story .story-image img {
    height: 200px;
    object-fit: cover;
    border-radius: 6px;
}

.story-title {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 0.5rem;
}

.story-title a {
    color: var(--aljazeera-black);
    text-decoration: none;
}

.story-title a:hover {
    color: var(--aljazeera-red);
}

.story-meta {
    font-size: 0.875rem;
    color: var(--aljazeera-gray);
}

.story-meta span {
    margin-right: 1rem;
}

/* Live Updates Sidebar */
.live-updates-sidebar {
    background: var(--aljazeera-white);
    border: 2px solid var(--aljazeera-red);
    border-radius: 8px;
    overflow: hidden;
}

.sidebar-header {
    background: var(--aljazeera-red);
    color: var(--aljazeera-white);
    padding: 1rem;
}

.sidebar-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0;
}

.live-updates-list {
    max-height: 400px;
    overflow-y: auto;
}

.live-update-item {
    padding: 1rem;
    border-bottom: 1px solid var(--aljazeera-light-gray);
    display: flex;
    gap: 1rem;
    transition: background 0.3s ease;
}

.live-update-item:hover {
    background: #f9f9f9;
}

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

.update-time {
    color: var(--aljazeera-red);
    font-weight: 700;
    font-size: 0.875rem;
    min-width: 50px;
}

.update-title {
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.4;
    margin: 0;
}

.update-title a {
    color: var(--aljazeera-black);
    text-decoration: none;
}

.update-title a:hover {
    color: var(--aljazeera-red);
}

/* Section Headers */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--aljazeera-red);
}

.section-title {
    font-size: 1.75rem;
    font-weight: 900;
    color: var(--aljazeera-black);
    margin: 0;
}

.section-more {
    color: var(--aljazeera-red);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
}

.section-more:hover {
    color: var(--aljazeera-dark-red);
}

/* News Cards */
.news-card {
    background: var(--aljazeera-white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
}

.news-card.animate-in {
    opacity: 1;
    transform: translateY(0);
}

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

.card-image {
    overflow: hidden;
}

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

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

.card-content {
    padding: 1.5rem;
}

.card-title {
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 0.75rem;
}

.card-title a {
    color: var(--aljazeera-black);
    text-decoration: none;
}

.card-title a:hover {
    color: var(--aljazeera-red);
}

.card-excerpt {
    color: var(--aljazeera-gray);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
}

.category-tag {
    background: var(--aljazeera-light-gray);
    color: var(--aljazeera-dark);
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.75rem;
}

/* Regional Sections */
.regional-section {
    background: var(--aljazeera-white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.main-regional-story .story-image img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 1rem;
}

.regional-list-item {
    padding: 1rem 0;
    border-bottom: 1px solid var(--aljazeera-light-gray);
}

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

.list-title {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 0.5rem;
}

.list-title a {
    color: var(--aljazeera-black);
    text-decoration: none;
}

.list-title a:hover {
    color: var(--aljazeera-red);
}

/* Video Section */
.video-section {
    padding: 3rem 0;
}

.video-card {
    background: var(--aljazeera-white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
}

.video-card.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.video-card:hover {
    transform: translateY(-5px);
}

.video-thumbnail {
    position: relative;
    overflow: hidden;
}

.video-thumbnail img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background: var(--aljazeera-red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--aljazeera-white);
    font-size: 1.2rem;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

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

.video-duration {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0,0,0,0.8);
    color: var(--aljazeera-white);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
}

.video-content {
    padding: 1rem;
}

.video-title {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 0.5rem;
}

.video-title a {
    color: var(--aljazeera-black);
    text-decoration: none;
}

.video-title a:hover {
    color: var(--aljazeera-red);
}

.video-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--aljazeera-gray);
}

/* Opinion Section */
.opinion-section {
    padding: 3rem 0;
}

.opinion-card {
    background: var(--aljazeera-white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border-left: 4px solid var(--aljazeera-red);
    opacity: 0;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.opinion-card.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.opinion-card:hover {
    transform: translateY(-3px);
}

.opinion-author {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.author-avatar {
    width: 50px;
    height: 50px;
    background: var(--aljazeera-light-gray);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--aljazeera-gray);
    font-size: 1.2rem;
}

.author-name {
    font-weight: 700;
    color: var(--aljazeera-black);
}

.author-title {
    font-size: 0.875rem;
    color: var(--aljazeera-gray);
}

.opinion-title {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
}

.opinion-title a {
    color: var(--aljazeera-black);
    text-decoration: none;
}

.opinion-title a:hover {
    color: var(--aljazeera-red);
}

.opinion-excerpt {
    color: var(--aljazeera-gray);
    line-height: 1.5;
    margin-bottom: 1rem;
}

/* Footer */
.main-footer {
    background: var(--aljazeera-black);
    color: var(--aljazeera-white);
}

.footer-logo {
    font-size: 2rem;
    font-weight: 900;
    margin-bottom: 1rem;
}

.footer-desc {
    color: #ccc;
    margin-bottom: 1.5rem;
}

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

.social-link {
    width: 40px;
    height: 40px;
    background: #333;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--aljazeera-white);
    text-decoration: none;
    transition: background 0.3s ease;
}

.social-link:hover {
    background: var(--aljazeera-red);
}

.footer-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--aljazeera-white);
}

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

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

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

.footer-links a:hover {
    color: var(--aljazeera-white);
}

.subscribe-form .form-control {
    background: #333;
    border: 1px solid #555;
    color: var(--aljazeera-white);
    border-radius: 4px 0 0 4px;
}

.subscribe-form .btn-subscribe {
    background: var(--aljazeera-red);
    color: var(--aljazeera-white);
    border: none;
    border-radius: 0 4px 4px 0;
    font-weight: 700;
}

.footer-bottom {
    border-top: 1px solid #333;
    background: #1a1a1a;
}

.footer-link {
    color: #ccc;
    text-decoration: none;
    margin-left: 1.5rem;
    font-size: 0.875rem;
}

.footer-link:hover {
    color: var(--aljazeera-white);
}

/* Responsive Design */
@media (max-width: 768px) {
    .main-navigation-aljazeera .nav-list {
        gap: 1rem;
        flex-wrap: wrap;
    }
    
    .nav-link {
        font-size: 0.85rem;
    }
    
    .featured-title {
        font-size: 1.75rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .secondary-nav-list {
        gap: 1rem;
    }
    
    .header-actions {
        justify-content: center;
        margin-top: 1rem;
    }
}

@media (max-width: 576px) {
    .featured-title {
        font-size: 1.5rem;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .main-navigation-aljazeera .nav-list {
        gap: 0.5rem;
    }
    
    .nav-link {
        font-size: 0.8rem;
    }
    
    .secondary-nav-list {
        gap: 0.75rem;
    }
    
    .secondary-nav-link {
        font-size: 0.8rem;
    }
}