:root {
    --aj-black: #000000;
    --aj-text: #333333;
    --aj-red: #c8102e; /* AJ style Breaking Red */
    --aj-orange: #f58220; /* Accent Color */
    --aj-blue: #004b87;
    --aj-border: #e0e0e0;
    --aj-gray-bg: #f5f5f5;
}

body {
    background-color: #ffffff;
    color: var(--aj-text);
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; /* Clean UI Font */
    margin: 0;
    padding-top: 140px; /* Space for Navbar + Trending Ribbon */
    -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; transition: color 0.2s; }
a:hover { color: var(--aj-blue); }

.aj-container { max-width: 1140px; margin: 0 auto; padding: 0 20px; }

/* --- FIXING NAVBAR TO LOOK LIKE AL JAZEERA --- */
/* Add these overrides to force navbar.js to look white and clean */
.ue-navbar-wrapper { background: #fff !important; border-bottom: 1px solid var(--aj-border) !important; top: 0 !important; }
.ue-top-bar { display: none !important; } /* Hide old black bar */
.ue-main-nav { height: 80px !important; }
.ue-nav-menu a { font-family: 'Helvetica Neue', Arial, sans-serif !important; font-size: 15px !important; font-weight: 700 !important; color: #000 !important; text-transform: none !important; }
.ue-nav-menu a:hover { color: var(--aj-orange) !important; }

/* --- TRENDING RIBBON --- */
.aj-trending-bar { position: fixed; top: 80px; left: 0; width: 100%; background: #fff; border-bottom: 1px solid var(--aj-border); z-index: 9999; height: 45px; display: flex; align-items: center; }
.ribbon-flex { display: flex; align-items: center; width: 100%; }
.trending-title { font-weight: 700; font-size: 14px; display: flex; align-items: center; gap: 5px; margin-right: 20px; border-bottom: 2px solid var(--aj-black); padding-bottom: 11px; margin-top: 11px; }
.trending-links { display: flex; gap: 20px; overflow-x: auto; white-space: nowrap; }
.trending-links a { font-size: 13px; color: #555; }
.trending-links a:hover { color: var(--aj-orange); }

/* --- MAIN GRID --- */
.aj-main-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 50px; margin-top: 30px; }

/* --- LEFT CONTENT: HERO --- */
.aj-hero-section { position: relative; margin-bottom: 40px; }
.aj-hero-img { width: 100%; height: 450px; object-fit: cover; border-radius: 6px; }
.aj-hero-box { position: absolute; bottom: -20px; left: 0; background: var(--aj-red); color: #fff; padding: 25px 35px; width: 85%; border-radius: 0 4px 4px 0; box-sizing: border-box; transition: background 0.2s; }
.aj-hero-box:hover { background: #a00b24; }
.aj-breaking-tag { font-size: 13px; font-weight: 400; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 10px; display: block; }
.aj-hero-box h1 { font-family: 'Helvetica Neue', Arial, sans-serif; font-size: 34px; font-weight: 700; margin: 0; line-height: 1.2; letter-spacing: -0.5px; }

/* --- TIMELINE (Live Updates) --- */
.aj-timeline-section { margin: 50px 0 40px 0; }
.aj-timeline-header { font-size: 14px; color: var(--aj-red); text-transform: uppercase; font-weight: 700; display: flex; align-items: center; gap: 10px; margin-bottom: 20px; }
.pulse-dot { width: 12px; height: 12px; border: 2px solid var(--aj-red); border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.pulse-dot::after { content: ''; width: 6px; height: 6px; background: var(--aj-red); border-radius: 50%; }

.aj-timeline-list { border-left: 1px solid var(--aj-border); margin-left: 6px; padding-left: 20px; }
.aj-timeline-item { position: relative; margin-bottom: 20px; }
.aj-timeline-item::before { content: ''; position: absolute; left: -24.5px; top: 5px; width: 8px; height: 8px; background: #fff; border: 2px solid var(--aj-red); border-radius: 50%; }
.aj-time-tag { font-size: 13px; color: #777; font-weight: 700; margin-right: 10px; }
.aj-timeline-item h4 { display: inline; font-family: 'PT Serif', serif; font-size: 18px; font-weight: 400; line-height: 1.4; color: var(--aj-black); }
.aj-timeline-item a:hover h4 { color: var(--aj-blue); text-decoration: underline; }

/* --- CATEGORY LISTS (Text Left, Image Right) --- */
.aj-category-block { margin-top: 50px; border-top: 1px solid var(--aj-border); padding-top: 20px; }
.aj-cat-title { font-family: 'Helvetica Neue', Arial, sans-serif; font-size: 24px; font-weight: 400; margin: 0 0 25px 0; color: var(--aj-black); }

.aj-list-item { display: flex; justify-content: space-between; gap: 30px; margin-bottom: 25px; padding-bottom: 25px; border-bottom: 1px solid var(--aj-border); }
.aj-list-item:last-child { border: none; }
.aj-list-text { flex: 1; }
.aj-list-text h3 { font-family: 'Helvetica Neue', Arial, sans-serif; font-size: 20px; font-weight: 400; margin: 0 0 10px 0; line-height: 1.3; }
.aj-list-text p { font-size: 14px; color: #555; line-height: 1.5; margin: 0; }
.aj-list-img { width: 220px; height: 130px; flex-shrink: 0; }
.aj-list-img img { width: 100%; height: 100%; object-fit: cover; border-radius: 6px; }

/* --- RIGHT SIDEBAR --- */
.aj-sidebar { border-left: 1px solid var(--aj-border); padding-left: 40px; }
.aj-side-title { font-size: 14px; color: #777; font-weight: 400; letter-spacing: 1px; border-left: 3px solid var(--aj-orange); padding-left: 10px; margin-top: 0; margin-bottom: 20px; }

/* Top Side Stories */
.aj-side-card { display: flex; justify-content: space-between; gap: 15px; margin-bottom: 20px; padding-bottom: 20px; border-bottom: 1px solid var(--aj-border); }
.aj-side-text h4 { font-family: 'Helvetica Neue', Arial, sans-serif; font-size: 16px; font-weight: 400; line-height: 1.3; margin: 0; }
.aj-side-img { width: 100px; height: 65px; flex-shrink: 0; }
.aj-side-img img { width: 100%; height: 100%; object-fit: cover; border-radius: 4px; }

/* Numbered List */
.aj-numbered-list { margin-top: 40px; }
.aj-side-title .dot { display: inline-block; width: 6px; height: 6px; background: var(--aj-orange); border-radius: 50%; margin-left: 5px; }
.aj-num-item { display: flex; gap: 15px; margin-bottom: 20px; padding-bottom: 20px; border-bottom: 1px solid var(--aj-border); }
.aj-number { font-size: 42px; font-weight: 300; color: #ccc; line-height: 0.8; font-family: 'Helvetica Neue', Arial, sans-serif; }
.aj-num-item h4 { font-family: 'Helvetica Neue', Arial, sans-serif; font-size: 16px; font-weight: 400; margin: 0; line-height: 1.3; }

/* Newsletter Box */
.aj-newsletter-box { background: var(--aj-gray-bg); padding: 30px 20px; border-radius: 8px; text-align: center; margin-top: 40px; }
.brand-text { font-size: 13px; color: #555; display: block; margin-bottom: 5px; }
.aj-newsletter-box h3 { font-size: 22px; margin: 0 0 10px 0; font-weight: 400; }
.aj-newsletter-box p { font-size: 13px; color: #555; margin-bottom: 20px; line-height: 1.5; }
.aj-newsletter-box input { width: 100%; padding: 12px; border: 1px solid #ccc; border-radius: 20px; margin-bottom: 15px; outline: none; text-align: center; }
.aj-newsletter-box button { width: 100%; padding: 12px; background: var(--aj-black); color: #fff; border: none; border-radius: 20px; font-weight: 700; cursor: pointer; transition: 0.2s; }
.aj-newsletter-box button:hover { background: var(--aj-orange); }
.aj-newsletter-box small { display: block; margin-top: 15px; font-size: 11px; color: #888; }

root {
    --aj-black: #000000;
    --aj-text: #333333;
    --aj-red: #c8102e; /* AJ style Breaking Red */
    --aj-orange: #f58220; /* Accent Color */
    --aj-blue: #004b87;
    --aj-border: #e0e0e0;
    --aj-gray-bg: #f5f5f5;
}

body {
    background-color: #ffffff;
    color: var(--aj-text);
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; /* Clean UI Font */
    margin: 0;
    padding-top: 140px; /* Space for Navbar + Trending Ribbon */
    -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; transition: color 0.2s; }
a:hover { color: var(--aj-blue); }

.aj-container { max-width: 1140px; margin: 0 auto; padding: 0 20px; }

/* --- FIXING NAVBAR TO LOOK LIKE AL JAZEERA --- */
/* Add these overrides to force navbar.js to look white and clean */
.ue-navbar-wrapper { background: #fff !important; border-bottom: 1px solid var(--aj-border) !important; top: 0 !important; }
.ue-top-bar { display: none !important; } /* Hide old black bar */
.ue-main-nav { height: 80px !important; }
.ue-nav-menu a { font-family: 'Helvetica Neue', Arial, sans-serif !important; font-size: 15px !important; font-weight: 700 !important; color: #000 !important; text-transform: none !important; }
.ue-nav-menu a:hover { color: var(--aj-orange) !important; }

/* --- TRENDING RIBBON --- */
.aj-trending-bar { position: fixed; top: 80px; left: 0; width: 100%; background: #fff; border-bottom: 1px solid var(--aj-border); z-index: 9999; height: 45px; display: flex; align-items: center; }
.ribbon-flex { display: flex; align-items: center; width: 100%; }
.trending-title { font-weight: 700; font-size: 14px; display: flex; align-items: center; gap: 5px; margin-right: 20px; border-bottom: 2px solid var(--aj-black); padding-bottom: 11px; margin-top: 11px; }
.trending-links { display: flex; gap: 20px; overflow-x: auto; white-space: nowrap; }
.trending-links a { font-size: 13px; color: #555; }
.trending-links a:hover { color: var(--aj-orange); }

/* --- MAIN GRID --- */
.aj-main-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 50px; margin-top: 30px; }

/* --- LEFT CONTENT: HERO --- */
.aj-hero-section { position: relative; margin-bottom: 40px; }
.aj-hero-img { width: 100%; height: 450px; object-fit: cover; border-radius: 6px; }
.aj-hero-box { position: absolute; bottom: -20px; left: 0; background: var(--aj-red); color: #fff; padding: 25px 35px; width: 85%; border-radius: 0 4px 4px 0; box-sizing: border-box; transition: background 0.2s; }
.aj-hero-box:hover { background: #a00b24; }
.aj-breaking-tag { font-size: 13px; font-weight: 400; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 10px; display: block; }
.aj-hero-box h1 { font-family: 'Helvetica Neue', Arial, sans-serif; font-size: 34px; font-weight: 700; margin: 0; line-height: 1.2; letter-spacing: -0.5px; }

/* --- TIMELINE (Live Updates) --- */
.aj-timeline-section { margin: 50px 0 40px 0; }
.aj-timeline-header { font-size: 14px; color: var(--aj-red); text-transform: uppercase; font-weight: 700; display: flex; align-items: center; gap: 10px; margin-bottom: 20px; }
.pulse-dot { width: 12px; height: 12px; border: 2px solid var(--aj-red); border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.pulse-dot::after { content: ''; width: 6px; height: 6px; background: var(--aj-red); border-radius: 50%; }

.aj-timeline-list { border-left: 1px solid var(--aj-border); margin-left: 6px; padding-left: 20px; }
.aj-timeline-item { position: relative; margin-bottom: 20px; }
.aj-timeline-item::before { content: ''; position: absolute; left: -24.5px; top: 5px; width: 8px; height: 8px; background: #fff; border: 2px solid var(--aj-red); border-radius: 50%; }
.aj-time-tag { font-size: 13px; color: #777; font-weight: 700; margin-right: 10px; }
.aj-timeline-item h4 { display: inline; font-family: 'PT Serif', serif; font-size: 18px; font-weight: 400; line-height: 1.4; color: var(--aj-black); }
.aj-timeline-item a:hover h4 { color: var(--aj-blue); text-decoration: underline; }

/* --- CATEGORY LISTS (Text Left, Image Right) --- */
.aj-category-block { margin-top: 50px; border-top: 1px solid var(--aj-border); padding-top: 20px; }
.aj-cat-title { font-family: 'Helvetica Neue', Arial, sans-serif; font-size: 24px; font-weight: 400; margin: 0 0 25px 0; color: var(--aj-black); }

.aj-list-item { display: flex; justify-content: space-between; gap: 30px; margin-bottom: 25px; padding-bottom: 25px; border-bottom: 1px solid var(--aj-border); }
.aj-list-item:last-child { border: none; }
.aj-list-text { flex: 1; }
.aj-list-text h3 { font-family: 'Helvetica Neue', Arial, sans-serif; font-size: 20px; font-weight: 400; margin: 0 0 10px 0; line-height: 1.3; }
.aj-list-text p { font-size: 14px; color: #555; line-height: 1.5; margin: 0; }
.aj-list-img { width: 220px; height: 130px; flex-shrink: 0; }
.aj-list-img img { width: 100%; height: 100%; object-fit: cover; border-radius: 6px; }

/* --- RIGHT SIDEBAR --- */
.aj-sidebar { border-left: 1px solid var(--aj-border); padding-left: 40px; }
.aj-side-title { font-size: 14px; color: #777; font-weight: 400; letter-spacing: 1px; border-left: 3px solid var(--aj-orange); padding-left: 10px; margin-top: 0; margin-bottom: 20px; }

/* Top Side Stories */
.aj-side-card { display: flex; justify-content: space-between; gap: 15px; margin-bottom: 20px; padding-bottom: 20px; border-bottom: 1px solid var(--aj-border); }
.aj-side-text h4 { font-family: 'Helvetica Neue', Arial, sans-serif; font-size: 16px; font-weight: 400; line-height: 1.3; margin: 0; }
.aj-side-img { width: 100px; height: 65px; flex-shrink: 0; }
.aj-side-img img { width: 100%; height: 100%; object-fit: cover; border-radius: 4px; }

/* Numbered List */
.aj-numbered-list { margin-top: 40px; }
.aj-side-title .dot { display: inline-block; width: 6px; height: 6px; background: var(--aj-orange); border-radius: 50%; margin-left: 5px; }
.aj-num-item { display: flex; gap: 15px; margin-bottom: 20px; padding-bottom: 20px; border-bottom: 1px solid var(--aj-border); }
.aj-number { font-size: 42px; font-weight: 300; color: #ccc; line-height: 0.8; font-family: 'Helvetica Neue', Arial, sans-serif; }
.aj-num-item h4 { font-family: 'Helvetica Neue', Arial, sans-serif; font-size: 16px; font-weight: 400; margin: 0; line-height: 1.3; }

/* Newsletter Box */
.aj-newsletter-box { background: var(--aj-gray-bg); padding: 30px 20px; border-radius: 8px; text-align: center; margin-top: 40px; }
.brand-text { font-size: 13px; color: #555; display: block; margin-bottom: 5px; }
.aj-newsletter-box h3 { font-size: 22px; margin: 0 0 10px 0; font-weight: 400; }
.aj-newsletter-box p { font-size: 13px; color: #555; margin-bottom: 20px; line-height: 1.5; }
.aj-newsletter-box input { width: 100%; padding: 12px; border: 1px solid #ccc; border-radius: 20px; margin-bottom: 15px; outline: none; text-align: center; }
.aj-newsletter-box button { width: 100%; padding: 12px; background: var(--aj-black); color: #fff; border: none; border-radius: 20px; font-weight: 700; cursor: pointer; transition: 0.2s; }
.aj-newsletter-box button:hover { background: var(--aj-orange); }
.aj-newsletter-box small { display: block; margin-top: 15px; font-size: 11px; color: #888; }

/* --- MOBILE RESPONSIVE --- */
@media (max-width: 1024px) {
    .aj-main-grid { grid-template-columns: 1fr; border: none; }
    .aj-sidebar { border-left: none; padding-left: 0; border-top: 2px solid var(--aj-black); padding-top: 30px; margin-top: 30px; }
    .aj-hero-box { width: 95%; padding: 20px; bottom: -30px; }
    .aj-hero-box h1 { font-size: 26px; }
    .aj-list-item { flex-direction: column-reverse; gap: 15px; }
    .aj-list-img { width: 100%; height: 200px; }
    .aj-trending-bar { overflow-x: auto; }
}



/* --- MEGA CATEGORY GRIDS (NEW ADDITIONS) --- */

/* Style 1: Large Feature + List */
.aj-style-1 { display: grid; grid-template-columns: 1.5fr 1fr; gap: 30px; }
.aj-s1-lead img { width: 100%; height: 280px; object-fit: cover; border-radius: 6px; margin-bottom: 15px; }
.aj-s1-lead h3 { font-family: 'Helvetica Neue', Arial, sans-serif; font-size: 26px; font-weight: 700; line-height: 1.2; margin: 0 0 10px 0; }
.aj-s1-lead p { font-size: 15px; color: #555; line-height: 1.5; margin: 0; }
.aj-s1-lead:hover h3 { color: var(--aj-blue); }

.aj-s1-list { border-left: 1px solid var(--aj-border); padding-left: 30px; display: flex; flex-direction: column; gap: 15px; }
.aj-s1-list a { display: block; border-bottom: 1px solid var(--aj-border); padding-bottom: 15px; }
.aj-s1-list a:last-child { border: none; padding-bottom: 0; }
.aj-s1-list h4 { font-family: 'PT Serif', serif; font-size: 18px; line-height: 1.3; margin: 0; font-weight: 400; }
.aj-s1-list a:hover h4 { color: var(--aj-blue); text-decoration: underline; }

/* Style 2: Horizontal 3-Card Row */
.aj-style-2 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 25px; }
.aj-s2-card img { width: 100%; height: 160px; object-fit: cover; border-radius: 6px; margin-bottom: 15px; }
.aj-s2-card h4 { font-family: 'PT Serif', serif; font-size: 18px; line-height: 1.3; margin: 0; font-weight: 400; }
.aj-s2-card:hover h4 { color: var(--aj-blue); text-decoration: underline; }

/* Mobile Fixes for New Grids */
@media (max-width: 900px) {
    .aj-style-1, .aj-style-2 { grid-template-columns: 1fr; }
    .aj-s1-list { border-left: none; padding-left: 0; border-top: 1px solid var(--aj-border); padding-top: 20px; margin-top: 20px; }
}






/* --- MOBILE RESPONSIVE --- */
@media (max-width: 1024px) {
    .aj-main-grid { grid-template-columns: 1fr; border: none; }
    .aj-sidebar { border-left: none; padding-left: 0; border-top: 2px solid var(--aj-black); padding-top: 30px; margin-top: 30px; }
    .aj-hero-box { width: 95%; padding: 20px; bottom: -30px; }
    .aj-hero-box h1 { font-size: 26px; }
    .aj-list-item { flex-direction: column-reverse; gap: 15px; }
    .aj-list-img { width: 100%; height: 200px; }
    .aj-trending-bar { overflow-x: auto; }
}