/* Reset وتنسيقات عامة */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@200..1000&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Cairo', Tahoma, Geneva, Verdana, sans-serif;
    
}

:root {
    --bn-primary: #122663;
    --bn-dark: #122663;
    --bn-accent: #f66105;
    --bn-white: #e7e7e7;
    --bn-bg: #e7e7e7;
    --bn-gradient: linear-gradient(90deg, #122663 0%, #1d40a6 100%);
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

body {
    line-height: 1.6;
    background-color: var(--bn-bg);
    color: #333;
    direction: rtl;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

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

/* Header */
header {
    background: var(--bn-gradient);
    color: white;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-top {
    background: rgba(0, 0, 0, 0.1);
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header-top-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.date-time {
    font-size: 0.9rem;
}

.social-links a {
    margin-right: 15px;
    font-size: 1.1rem;
    transition: var(--transition);
}

.social-links a:hover {
    color: var(--bn-accent);
}

.header-main {
    padding: 15px 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 2.2rem;
    font-weight: bold;
    display: flex;
    align-items: center;
}

.logo i {
    margin-left: 10px;
    color: var(--bn-accent);
}

.search-bar {
    display: flex;
    background: white;
    border-radius: 30px;
    overflow: hidden;
    width: 300px;
}

.search-bar input {
    flex: 1;
    border: none;
    padding: 12px 20px;
    outline: none;
}

.search-bar button {
    background: var(--bn-accent);
    color: white;
    border: none;
    padding: 0 20px;
    cursor: pointer;
    transition: var(--transition);
}

.search-bar button:hover {
    background: #d9530d;
}

/* Navigation */
nav {
    background: var(--bn-dark);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.main-menu {
    display: flex;
}

.main-menu li {
    position: relative;
}

.main-menu a {
    display: block;
    padding: 15px 20px;
    transition: var(--transition);
    font-weight: 500;
}

.main-menu a:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--bn-accent);
}

.main-menu .active a {
    background: var(--bn-accent);
    color: white;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Main Content Layout */
.main-content {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 30px;
    margin: 30px 0;
}

/* Slider */
.slider {
    position: relative;
    height: 450px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    margin-bottom: 40px;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
}

.slide.active {
    opacity: 1;
}

.slide-content {
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    padding: 30px;
    width: 100%;
}

.slide-content h2 {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.slide-content p {
    margin-bottom: 15px;
    opacity: 0.9;
}

.more-btn {
    display: inline-block;
    background: var(--bn-accent);
    color: white;
    padding: 8px 20px;
    border-radius: 5px;
    transition: var(--transition);
}

.more-btn:hover {
    background: #d9530d;
}

.slide-nav {
    position: absolute;
    bottom: 20px;
    right: 20px;
    display: flex;
}

.slide-dot {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    margin-right: 8px;
    cursor: pointer;
    transition: var(--transition);
}

.slide-dot.active {
    background: white;
}

/* Content Area */
.content-area {
    background: white;
    border-radius: 10px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.section-title {
    padding: 15px 20px;
    background: var(--bn-primary);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.section-title h2 {
    font-size: 1.4rem;
}

.section-title a {
    font-size: 0.9rem;
    color: var(--bn-white);
    transition: var(--transition);
}

.section-title a:hover {
    color: var(--bn-accent);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    padding: 20px;
}

.news-card {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    background: white;
}

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

.news-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

.news-card-content {
    padding: 15px;
}

.news-card h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    line-height: 1.4;
}

.news-card p {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 10px;
    line-height: 1.5;
}

.news-meta {
    display: flex;
    justify-content: space-between;
    color: #777;
    font-size: 0.8rem;
    border-top: 1px solid #eee;
    padding-top: 10px;
}

/* Categories Section */
.categories-section {
    margin: 40px 0;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.category-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
    padding: 25px 15px;
}

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

.category-icon {
    font-size: 2.5rem;
    color: var(--bn-primary);
    margin-bottom: 15px;
}

.category-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--bn-dark);
}

.category-card p {
    color: #777;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.category-count {
    display: inline-block;
    background: var(--bn-accent);
    color: white;
    padding: 3px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
}

/* Sidebar */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.sidebar-widget {
    background: white;
    border-radius: 10px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.widget-title {
    padding: 15px 20px;
    background: var(--bn-primary);
    color: white;
    font-size: 1.2rem;
}

.widget-content {
    padding: 20px;
}

.popular-news li {
    padding: 12px 0;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
}

.popular-news li:last-child {
    border-bottom: none;
}

.popular-news img {
    width: 70px;
    height: 60px;
    object-fit: cover;
    border-radius: 5px;
    margin-left: 10px;
}

.popular-news h4 {
    font-size: 0.95rem;
    line-height: 1.4;
}

.categories-list li {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
}

.categories-list li:last-child {
    border-bottom: none;
}

.categories-list a {
    transition: var(--transition);
}

.categories-list a:hover {
    color: var(--bn-primary);
}

.categories-list span {
    background: var(--bn-bg);
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 0.8rem;
}

.tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tags-cloud a {
    background: var(--bn-bg);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    transition: var(--transition);
}

.tags-cloud a:hover {
    background: var(--bn-primary);
    color: white;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.newsletter-form input {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    outline: none;
}

.newsletter-form button {
    background: var(--bn-accent);
    color: white;
    border: none;
    padding: 12px;
    border-radius: 5px;
    cursor: pointer;
    transition: var(--transition);
}

.newsletter-form button:hover {
    background: #d9530d;
}

/* Footer */
footer {
    background: var(--bn-dark);
    color: white;
    margin-top: 50px;
}

.footer-main {
    padding: 50px 0 30px;
}

.footer-columns {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.footer-column h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-column h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 50px;
    height: 3px;
    background: var(--bn-accent);
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    transition: var(--transition);
    display: flex;
    align-items: center;
}

.footer-links a:hover {
    color: var(--bn-accent);
    padding-right: 5px;
}

.footer-links i {
    margin-left: 8px;
    font-size: 0.8rem;
}

.contact-info li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
}

.contact-info i {
    margin-left: 10px;
    margin-top: 5px;
    color: var(--bn-accent);
}

.footer-bottom {
    background: rgba(0, 0, 0, 0.2);
    padding: 20px 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .main-content {
        grid-template-columns: 1fr 250px;
    }
}

@media (max-width: 992px) {
    .main-content {
        grid-template-columns: 1fr;
    }
    
    .footer-columns {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .slider {
        height: 400px;
    }
    
    .categories-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 15px;
    }
    
    .search-bar {
        width: 100%;
        max-width: 400px;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .main-menu {
        display: none;
        position: absolute;
        top: 100%;
        right: 0;
        background: var(--bn-dark);
        width: 100%;
        flex-direction: column;
        box-shadow: var(--shadow);
    }
    
    .main-menu.active {
        display: flex;
    }
    
    .slider {
        height: 350px;
    }
    
    .slide-content h2 {
        font-size: 1.5rem;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .footer-columns {
        grid-template-columns: 1fr;
    }
    
    .slider {
        height: 300px;
    }
    
    .slide-content {
        padding: 20px;
    }
    
    .slide-content h2 {
        font-size: 1.3rem;
    }
    
    .categories-grid {
        grid-template-columns: 1fr;
    }
}