/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #c41e3a;
    --primary-dark: #9a1628;
    --primary-light: #e63946;
    --secondary-color: #1e40af;
    --accent-color: #f59e0b;
    --dark-color: #0f172a;
    --dark-light: #1e293b;
    --light-color: #f8fafc;
    --white: #ffffff;
    --text-color: #1e293b;
    --text-light: #64748b;
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s ease;
    --gradient-primary: linear-gradient(135deg, #c41e3a 0%, #9a1628 100%);
    --gradient-secondary: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
    --gradient-accent: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    --gradient-dark: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
}

body {
    font-family: 'Cairo', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.7;
    color: var(--text-color);
    background: linear-gradient(to bottom, #ffffff 0%, #f8fafc 100%);
    direction: rtl;
    font-size: 16px;
    overflow-x: hidden;
}

/* إزالة اللون الأزرق والخط السفلي من جميع الروابط */
a {
    text-decoration: none;
}

a:link,
a:visited,
a:active {
    text-decoration: none;
}

/* إزالة اللون الأزرق الافتراضي من الروابط داخل المقالات */
.article-card a,
.category-article a,
.featured-item a,
.featured-main a,
.popular-content a {
    color: var(--text-color);
}

.article-card a:link,
.article-card a:visited,
.article-card a:active,
.category-article a:link,
.category-article a:visited,
.category-article a:active,
.featured-item a:link,
.featured-item a:visited,
.featured-item a:active,
.featured-main a:link,
.featured-main a:visited,
.featured-main a:active,
.popular-content a:link,
.popular-content a:visited,
.popular-content a:active {
    color: var(--text-color);
    text-decoration: none;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Top Bar - Premium Design */
.top-bar {
    background: var(--gradient-dark);
    color: var(--white);
    padding: 0.75rem 0;
    font-size: 0.875rem;
    position: relative;
    overflow: hidden;
}

.top-bar::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 1;
}

.top-bar-left {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.top-bar-left span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    opacity: 0.9;
    font-weight: 500;
}

.top-bar-right {
    display: flex;
    gap: 0.75rem;
}

.top-bar-right a {
    color: var(--white);
    text-decoration: none;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transition: var(--transition);
    backdrop-filter: blur(10px);
}

.top-bar-right a:hover {
    background: var(--primary-color);
    transform: translateY(-2px) scale(1.1);
    box-shadow: var(--shadow-md);
}

/* Header - Premium Design */
.header {
    background: var(--white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 3px solid var(--primary-color);
    transition: var(--transition);
}

.header.scrolled {
    box-shadow: var(--shadow-md);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
}

.logo h1 {
    margin: 0;
    font-size: 1.75rem;
    font-weight: 900;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.logo a {
    text-decoration: none;
    display: inline-block;
    transition: var(--transition);
}

.logo a:hover {
    transform: scale(1.02);
}

.logo-text {
    color: #dc2626;
    text-shadow: 2px 2px 4px rgba(220, 38, 38, 0.3);
    font-weight: 900;
    display: inline;
}

.logo-news {
    color: #1e40af;
    text-shadow: 2px 2px 4px rgba(30, 64, 175, 0.3);
    font-weight: 900;
    display: inline;
    margin-right: 0.25rem;
}

.logo-tagline {
    font-size: 0.75rem;
    color: var(--text-light);
    margin-top: -4px;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.header-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.search-toggle,
.mobile-menu-toggle {
    background: none;
    border: none;
    font-size: 1.4rem;
    color: var(--text-color);
    cursor: pointer;
    padding: 0.75rem;
    border-radius: 50%;
    transition: var(--transition);
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-toggle:hover {
    background: var(--light-color);
    color: var(--primary-color);
    transform: scale(1.1);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
}

.mobile-menu-toggle span {
    width: 24px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 3px;
    transition: var(--transition);
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Navigation - Compact Design */
.main-nav {
    background: var(--gradient-primary);
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 999;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.main-nav.scrolled {
    box-shadow: var(--shadow-lg);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 0;
    padding: 0;
    flex-wrap: wrap;
    justify-content: flex-start;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.nav-menu::-webkit-scrollbar {
    display: none;
}

.nav-menu li {
    position: relative;
    flex-shrink: 0;
}

.nav-menu a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    border-bottom: 3px solid transparent;
    white-space: nowrap;
    font-size: 0.8rem;
    position: relative;
}

.nav-menu a::before {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 3px;
    background: var(--white);
    transition: var(--transition);
    border-radius: 3px 3px 0 0;
}

.nav-menu a:hover::before,
.nav-menu a.active::before {
    width: 100%;
}

.nav-menu a:hover,
.nav-menu a.active {
    background: rgba(255, 255, 255, 0.12);
    color: var(--white);
}

.nav-menu a i {
    font-size: 0.85rem;
}

/* Search Bar */
.search-bar {
    display: none;
    background: var(--white);
    padding: 1.5rem 0;
    border-bottom: 2px solid var(--border-color);
    box-shadow: var(--shadow);
}

.search-bar.active {
    display: block;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.search-form {
    display: flex;
    gap: 0;
    max-width: 700px;
    margin: 0 auto;
    border-radius: 50px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.search-input {
    flex: 1;
    padding: 1rem 2rem;
    border: 2px solid var(--primary-color);
    border-left: none;
    border-radius: 0 50px 50px 0;
    font-size: 1rem;
    font-family: 'Cairo', sans-serif;
    outline: none;
    transition: var(--transition);
    background: var(--white);
}

.search-input:focus {
    background: var(--light-color);
}

.search-btn {
    padding: 1rem 2.5rem;
    background: var(--gradient-primary);
    color: var(--white);
    border: 2px solid var(--primary-color);
    border-radius: 50px 0 0 50px;
    cursor: pointer;
    font-size: 1.1rem;
    transition: var(--transition);
    font-weight: 600;
}

.search-btn:hover {
    background: var(--primary-dark);
    transform: scale(1.05);
}

/* Breaking News - Premium Design */
.breaking-news {
    background: var(--gradient-primary);
    color: var(--white);
    padding: 1rem 0;
    position: relative;
    overflow: hidden;
}

.breaking-news::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: shimmer 2s infinite;
}

.breaking-news .container {
    display: flex;
    align-items: center;
    gap: 2rem;
    position: relative;
    z-index: 1;
}

.breaking-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(0, 0, 0, 0.3);
    padding: 0.75rem 2rem;
    border-radius: 0 50px 50px 0;
    font-weight: 900;
    white-space: nowrap;
    margin-right: -24px;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-lg);
}

.breaking-label i {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

.breaking-content {
    flex: 1;
    overflow: hidden;
}

.breaking-content a {
    color: var(--white);
    text-decoration: none;
    font-weight: 700;
    display: block;
    white-space: nowrap;
    font-size: 1.05rem;
    animation: scroll-text 25s linear infinite;
}

.breaking-content a:link,
.breaking-content a:visited,
.breaking-content a:active {
    color: var(--white);
    text-decoration: none;
}

@keyframes scroll-text {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

/* Main Slider - Premium Design */
.main-slider {
    position: relative;
    margin: 2.5rem 0;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.slider-container {
    position: relative;
    width: 100%;
    height: 550px;
    overflow: hidden;
    border-radius: 20px;
}

.slider-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

.slide.active {
    opacity: 1;
    z-index: 1;
}

.slide a {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
    color: inherit;
    text-decoration: none;
}

.slide a:link,
.slide a:visited,
.slide a:active {
    color: inherit;
    text-decoration: none;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.slide.active img {
    transform: scale(1.05);
}

.slide-overlay {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.5) 50%, rgba(0, 0, 0, 0.2) 100%);
    z-index: 1;
}

.slide-content {
    position: absolute;
    bottom: 0;
    right: 0;
    left: 0;
    padding: 4rem;
    z-index: 2;
    color: var(--white);
}

.slide-content h2 {
    font-size: 3rem;
    font-weight: 900;
    line-height: 1.2;
    margin: 0;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
    letter-spacing: -1px;
}

.slider-controls {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 1.5rem;
    z-index: 3;
}

.slider-btn {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: var(--primary-color);
    transition: var(--transition);
    box-shadow: var(--shadow-xl);
    backdrop-filter: blur(10px);
}

.slider-btn:hover {
    background: var(--white);
    transform: scale(1.15) translateY(-2px);
    box-shadow: var(--shadow-xl);
}

.slider-btn.prev {
    right: 1.5rem;
}

.slider-btn.next {
    left: 1.5rem;
}

.slider-dots {
    position: absolute;
    bottom: 2rem;
    right: 50%;
    transform: translateX(50%);
    display: flex;
    gap: 0.75rem;
    z-index: 3;
}

.dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid rgba(255, 255, 255, 0.8);
}

.dot.active {
    background: var(--white);
    width: 40px;
    border-radius: 20px;
    border-color: var(--white);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

/* Main Content */
.main-content {
    padding: 3rem 0;
    background: transparent;
}

.content-wrapper {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 2.5rem;
}

.main-column {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

/* Featured Section - Premium Design */
.featured-section {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.featured-section.visible {
    opacity: 1;
    transform: translateY(0);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 3px solid var(--primary-color);
    position: relative;
}

.section-header::after {
    content: '';
    position: absolute;
    bottom: -3px;
    right: 0;
    width: 100px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 3px;
}

.section-title {
    font-size: 2rem;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 1rem;
    font-weight: 900;
    letter-spacing: -0.5px;
}

.title-icon {
    color: var(--primary-color);
    font-size: 1.75rem;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--gradient-primary);
    -webkit-background-clip: unset;
    -webkit-text-fill-color: unset;
    color: var(--white);
    box-shadow: var(--shadow-md);
}

.view-all {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
    font-size: 0.95rem;
    padding: 0.6rem 1.25rem;
    border-radius: 10px;
    background: rgba(30, 64, 175, 0.1);
    border: 2px solid var(--secondary-color);
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(30, 64, 175, 0.2);
}

.view-all::before {
    content: '';
    position: absolute;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-secondary);
    transition: var(--transition);
    z-index: 0;
}

.view-all span,
.view-all i {
    position: relative;
    z-index: 1;
}

.view-all:hover {
    color: var(--white);
    gap: 0.75rem;
    transform: translateX(-3px);
    border-color: var(--secondary-color);
    box-shadow: 0 4px 12px rgba(30, 64, 175, 0.4);
}

.view-all:hover::before {
    right: 0;
}

.featured-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}

.featured-main {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    height: 100%;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
}

.featured-main:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.featured-main a {
    display: block;
    height: 100%;
    position: relative;
    color: inherit;
    text-decoration: none;
}

.featured-main a:link,
.featured-main a:visited,
.featured-main a:active {
    color: inherit;
    text-decoration: none;
}

.featured-main .featured-image {
    height: 100%;
    min-height: 450px;
}

.featured-main .featured-image img {
    transition: transform 0.6s ease;
}

.featured-main:hover .featured-image img {
    transform: scale(1.1);
}

.featured-content {
    position: absolute;
    bottom: 0;
    right: 0;
    left: 0;
    padding: 2.5rem;
    z-index: 2;
    color: var(--white);
}

.featured-content h2 {
    font-size: 2rem;
    font-weight: 900;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--white);
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
}

.featured-content p {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.featured-side {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.featured-item {
    display: flex;
    gap: 1.25rem;
    padding: 1.25rem;
    background: var(--light-color);
    border-radius: 12px;
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.featured-item a {
    display: flex;
    gap: 1.25rem;
    width: 100%;
    color: inherit;
    text-decoration: none;
}

.featured-item a:link,
.featured-item a:visited,
.featured-item a:active {
    color: inherit;
    text-decoration: none;
}

.featured-item:hover {
    background: var(--white);
    box-shadow: var(--shadow-md);
    transform: translateX(-5px);
    border-color: var(--primary-color);
}

.featured-item-image {
    width: 160px;
    height: 110px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: var(--shadow);
}

.featured-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.featured-item:hover .featured-item-image img {
    transform: scale(1.1);
}

.featured-item-content {
    flex: 1;
}

.featured-item-content h3 {
    font-size: 1.05rem;
    margin-bottom: 0.75rem;
    line-height: 1.4;
    font-weight: 700;
    color: var(--text-color);
}

.featured-item a {
    color: inherit;
    text-decoration: none;
}

.featured-item a:hover h3 {
    color: var(--primary-color);
}

.featured-main a {
    color: inherit;
    text-decoration: none;
}

.featured-main a:hover h2 {
    color: var(--white);
}

.category-badge {
    display: inline-block;
    background: var(--gradient-primary);
    color: var(--white);
    padding: 0.5rem 1.25rem;
    border-radius: 25px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: var(--shadow);
}

.category-badge.small {
    font-size: 0.7rem;
    padding: 0.35rem 0.9rem;
    margin-bottom: 0.75rem;
}

.article-meta {
    display: flex;
    gap: 1.25rem;
    align-items: center;
    font-size: 0.875rem;
    color: var(--text-light);
    flex-wrap: wrap;
}

.article-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.article-meta i {
    color: var(--primary-color);
    font-size: 0.9rem;
}

/* Blue Text Styling with Effects */
.popular-content a,
.category-link,
.view-all {
    position: relative;
}

.popular-content a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    right: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-secondary);
    transition: var(--transition);
    border-radius: 2px;
}

.popular-content a:hover::after {
    width: 100%;
}

/* Latest News Section */
.latest-news-section {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.latest-news-section.visible {
    opacity: 1;
    transform: translateY(0);
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

.article-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border-color);
}

.article-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-color);
}

.article-card a {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.article-card a:link,
.article-card a:visited,
.article-card a:active {
    color: inherit;
    text-decoration: none;
}

.article-image {
    position: relative;
    width: 100%;
    height: 240px;
    overflow: hidden;
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.article-card:hover .article-image img {
    transform: scale(1.15);
}

.article-image .category-badge {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    z-index: 2;
}

.article-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
    z-index: 1;
}

.article-card:hover .article-overlay {
    opacity: 0.95;
}

.article-overlay i {
    color: var(--white);
    font-size: 2.5rem;
    animation: bounce 1s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(-10px); }
}

.article-content {
    padding: 1.75rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.article-content h3 {
    font-size: 1.3rem;
    margin-bottom: 0.875rem;
    color: var(--text-color);
    line-height: 1.4;
    flex-grow: 1;
    font-weight: 700;
}

.article-card a {
    color: inherit;
    text-decoration: none;
}

.article-card a:hover h3 {
    color: var(--primary-color);
}

.article-content p {
    color: var(--text-light);
    margin-bottom: 1.25rem;
    line-height: 1.7;
    font-size: 0.95rem;
}

.article-content .article-meta {
    margin-top: auto;
}

/* Category Section */
.category-section {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.category-section.visible {
    opacity: 1;
    transform: translateY(0);
}

.category-articles {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.75rem;
}

.category-article {
    display: flex;
    gap: 1.25rem;
    padding: 1.25rem;
    background: var(--light-color);
    border-radius: 12px;
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.category-article a {
    display: flex;
    gap: 1.25rem;
    width: 100%;
    color: inherit;
    text-decoration: none;
}

.category-article a:link,
.category-article a:visited,
.category-article a:active {
    color: inherit;
    text-decoration: none;
}

.category-article:hover {
    background: var(--white);
    box-shadow: var(--shadow-md);
    transform: translateX(-5px);
    border-color: var(--primary-color);
}

.category-article-image {
    width: 140px;
    height: 90px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: var(--shadow);
}

.category-article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.category-article:hover .category-article-image img {
    transform: scale(1.1);
}

.category-article-content h3 {
    font-size: 1rem;
    margin-bottom: 0.75rem;
    line-height: 1.4;
    font-weight: 700;
    color: var(--text-color);
}

.category-article a {
    color: inherit;
    text-decoration: none;
}

.category-article a:hover h3 {
    color: var(--primary-color);
}

/* Sidebar - Premium Design */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    position: sticky;
    top: 120px;
    height: fit-content;
    max-height: calc(100vh - 140px);
    overflow-y: auto;
}

.sidebar-widget {
    background: var(--white);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
}

.widget-title {
    font-size: 1.4rem;
    color: var(--text-color);
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 3px solid var(--primary-color);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 900;
    letter-spacing: -0.5px;
}

.widget-title i {
    color: var(--white);
    font-size: 1.5rem;
    background: var(--gradient-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    box-shadow: var(--shadow-md);
}

.popular-articles {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.popular-item {
    display: flex;
    gap: 1.25rem;
    padding: 1.25rem;
    background: var(--light-color);
    border-radius: 12px;
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.popular-item:hover {
    background: var(--white);
    box-shadow: var(--shadow-md);
    transform: translateX(-5px);
    border-color: var(--primary-color);
}

.popular-number {
    width: 40px;
    height: 40px;
    background: var(--gradient-primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    flex-shrink: 0;
    box-shadow: var(--shadow);
    font-size: 1.1rem;
}

.popular-content {
    flex: 1;
}

.popular-content h4 {
    font-size: 1rem;
    margin-bottom: 0.75rem;
    line-height: 1.4;
    font-weight: 700;
}

.popular-content a {
    color: var(--text-color);
    text-decoration: none;
    transition: var(--transition);
    position: relative;
    display: inline-block;
    font-weight: 600;
}

.popular-content a:link,
.popular-content a:visited,
.popular-content a:active {
    color: var(--text-color);
    text-decoration: none;
}

.popular-content a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    right: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-secondary);
    transition: var(--transition);
    border-radius: 2px;
}

.popular-content a:hover {
    color: var(--secondary-color);
    transform: translateX(-3px);
}

.popular-content a:hover::after {
    width: 100%;
}

.categories-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.category-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: var(--light-color);
    border-radius: 12px;
    text-decoration: none;
    color: var(--text-color);
    transition: var(--transition);
    border: 2px solid var(--border-color);
    font-weight: 600;
    position: relative;
    overflow: hidden;
}

.category-link::before {
    content: '';
    position: absolute;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-secondary);
    transition: var(--transition);
    z-index: 0;
}

.category-link:hover::before {
    right: 0;
}

.category-link:hover {
    color: var(--white);
    transform: translateX(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--secondary-color);
}

.category-link span,
.category-link i {
    position: relative;
    z-index: 1;
    transition: var(--transition);
}

.category-link:hover i {
    transform: scale(1.2) rotate(-5deg);
}

.category-link i {
    font-size: 1.1rem;
    color: var(--secondary-color);
}

.category-link:hover i {
    color: var(--white);
}

/* Footer - Premium Design */
.footer {
    background: var(--gradient-dark);
    color: var(--white);
    padding: 4rem 0 2rem;
    margin-top: 5rem;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(196, 30, 58, 0.1), transparent);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
    position: relative;
    z-index: 1;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1.5rem;
    color: var(--white);
    font-weight: 900;
    font-size: 1.3rem;
}

.footer-logo {
    font-size: 2rem;
    font-weight: 900;
    letter-spacing: -0.5px;
}

.footer-logo span:first-child {
    color: #dc2626;
    text-shadow: 2px 2px 4px rgba(220, 38, 38, 0.3);
}

.footer-logo span:last-child {
    color: #1e40af;
    text-shadow: 2px 2px 4px rgba(30, 64, 175, 0.3);
    font-weight: 900;
}

.footer-section p {
    opacity: 0.9;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.875rem;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
    display: inline-block;
    font-weight: 500;
}

.footer-section a:hover {
    color: var(--white);
    transform: translateX(-5px);
}

.social-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.social-links a {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.social-links a:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-5px) scale(1.1);
    box-shadow: var(--shadow-lg);
}

.newsletter-form {
    display: flex;
    gap: 0.75rem;
    flex-direction: column;
}

.newsletter-form input {
    padding: 1rem 1.25rem;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    font-family: 'Cairo', sans-serif;
    outline: none;
    transition: var(--transition);
    backdrop-filter: blur(10px);
}

.newsletter-form input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.newsletter-form input:focus {
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 3px rgba(196, 30, 58, 0.2);
}

.newsletter-form button {
    padding: 1rem 1.5rem;
    background: var(--gradient-primary);
    color: var(--white);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 700;
    font-family: 'Cairo', sans-serif;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: var(--shadow-md);
}

.newsletter-form button:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.8;
    position: relative;
    z-index: 1;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .content-wrapper {
        grid-template-columns: 280px 1fr;
        gap: 2rem;
    }
    
    .nav-menu a {
        padding: 0.75rem 1rem;
        font-size: 0.85rem;
    }
    
    .slide-content h2 {
        font-size: 2.5rem;
    }
}

@media (max-width: 968px) {
    .content-wrapper {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        order: -1;
        position: relative;
        top: 0;
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.5rem;
    }
    
    .featured-grid {
        grid-template-columns: 1fr;
    }
    
    .category-articles {
        grid-template-columns: 1fr;
    }
    
    .slider-container {
        height: 400px;
    }
    
    .slide-content {
        padding: 2.5rem;
    }
    
    .slide-content h2 {
        font-size: 2rem;
    }
    
    .main-nav {
        position: relative;
    }
    
    /* Overlay خلفي للقائمة المنبثقة */
    .main-nav::after {
        content: '';
        position: fixed;
        top: 0;
        right: 0;
        left: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 9998;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
        pointer-events: none;
    }
    
    .main-nav.menu-open::after {
        opacity: 1;
        visibility: visible;
        pointer-events: all;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: 0;
        left: 0;
        bottom: 0;
        background: var(--gradient-primary);
        flex-direction: column;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease, padding 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
        padding: 0;
        box-shadow: var(--shadow-lg);
        z-index: 9999;
        opacity: 0;
        visibility: hidden;
        padding-top: 100px;
        width: 100%;
        justify-content: flex-start;
        align-items: stretch;
    }
    
    .nav-menu.active {
        max-height: 100vh;
        padding: 1rem 0;
        padding-top: 100px;
        opacity: 1;
        visibility: visible;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .nav-menu li {
        width: 100%;
    }
    
    .nav-menu a {
        width: 100%;
        padding: 1.25rem 1.5rem;
        font-size: 1.1rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        display: flex;
        align-items: center;
        gap: 1rem;
    }
    
    .nav-menu a i {
        font-size: 1.2rem;
        width: 24px;
        text-align: center;
    }
    
    /* منع التمرير عند فتح القائمة */
    body.menu-open {
        overflow: hidden;
    }
    
    .nav-menu li {
        flex-shrink: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .nav-menu li:last-child {
        border-bottom: none;
    }
    
    .nav-menu a {
        padding: 0.875rem 1.5rem;
        font-size: 0.85rem;
        border-bottom: none;
        width: 100%;
    }
    
    .nav-menu a::before {
        display: none;
    }
    
    .nav-menu a:hover,
    .nav-menu a.active {
        background: rgba(255, 255, 255, 0.15);
        border-right: 4px solid var(--white);
        border-bottom: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .articles-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 1.5rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }
    
    .content-wrapper {
        gap: 1.5rem;
    }
    
    .sidebar {
        grid-template-columns: 1fr;
    }
    
    .main-content {
        padding: 2rem 0;
    }
    
    .featured-section,
    .latest-news-section,
    .category-section {
        padding: 1.75rem;
    }
    
    .section-header {
        margin-bottom: 1.5rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .slider-container {
        height: 350px;
    }
    
    .slide-content {
        padding: 2rem;
    }
    
    .slide-content h2 {
        font-size: 1.75rem;
    }
}

@media (max-width: 640px) {
    .articles-grid {
        grid-template-columns: 1fr;
    }
    
    .featured-content h2 {
        font-size: 1.5rem;
    }
    
    .main-featured .featured-image {
        min-height: 350px;
    }
    
    .top-bar-content {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
        font-size: 0.8rem;
    }
    
    .header-content {
        padding: 1rem 0;
    }
    
    .logo h1 {
        font-size: 1.75rem;
    }
    
    .slider-container {
        height: 300px;
    }
    
    .slide-content {
        padding: 1.5rem;
    }
    
    .slide-content h2 {
        font-size: 1.5rem;
    }
    
    .slider-btn {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .breaking-label {
        font-size: 0.85rem;
        padding: 0.6rem 1.5rem;
    }
    
    .breaking-content a {
        font-size: 0.9rem;
    }
}
