/* Arabic News Website Styles - الوعي نيوز */

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

body {
    font-family: 'Tajawal', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
    direction: rtl;
    text-align: right;
    max-width: 100vw;
    overflow-x: hidden !important;
}

/* Breaking News Ticker */
.breaking-news-ticker {
    background: linear-gradient(90deg, #dc3545, #c82333);
    color: white;
    padding: 8px 0;
    overflow: hidden;
    position: relative;
}

.ticker-container {
    display: flex;
    align-items: center;
    white-space: nowrap;
}

.ticker-label {
    background: rgba(0, 0, 0, 0.3);
    padding: 4px 12px;
    margin-left: 15px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 14px;
}

.ticker-content {
    display: flex;
    animation: ticker 30s linear infinite;
}

.ticker-content span {
    margin-left: 50px;
    font-size: 14px;
}

@keyframes ticker {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

/* Navigation */
.navbar {
    border-bottom: 1px solid #e9ecef;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 800;
}

.navbar-nav .nav-link {
    font-weight: 500;
    color: #495057 !important;
    transition: color 0.3s ease;
    padding: 0.5rem 1rem;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: #dc3545 !important;
}

/* Hero Section Grid Layout */
.hero-section {
    padding: 3rem 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.hero-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    height: 600px;
    max-width: 100vw;
    overflow-x: hidden;
}

/* Left Side - Main Hero Carousel */
.hero-left {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    height: 600px;
}

.hero-slide {
    height: 600px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.3) 100%);
    display: flex;
    align-items: center;
}

.hero-content {
    color: white;
    max-width: 600px;
    padding: 2rem;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-description {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

/* Carousel Controls */
.carousel-control-prev,
.carousel-control-next {
    width: 50px;
    height: 50px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    margin: 0 20px;
}

.carousel-indicators {
    bottom: 30px;
}

.carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    border: none;
    margin: 0 5px;
}

.carousel-indicators button.active {
    background-color: #dc3545;
}

/* Right Side - Four Vertical Cards */
.hero-right {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    height: 600px;
}

.hero-cards-vertical {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    height: 100%;
}

.hero-card-vertical {
    flex: 1;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: calc((600px - 2.25rem) / 4); /* 600px total height minus gaps divided by 4 cards */
}

.hero-card-vertical:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.hero-card-vertical .hero-card-image {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

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

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

.hero-card-vertical .hero-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    padding: 1rem;
    color: white;
}

.hero-card-vertical .hero-card-category {
    background: #dc3545;
    color: white;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 0.5rem;
}

.hero-card-vertical .hero-card-title {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr;
        height: auto;
        gap: 1.5rem;
    }
    
    .hero-left {
        order: 1;
        height: 400px;
    }
    
    .hero-right {
        order: 2;
        height: 400px;
    }
    
    .hero-slide {
        height: 400px;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .hero-cards-vertical {
        flex-direction: row;
        gap: 1rem;
    }
    
    .hero-card-vertical {
        flex: 1;
        height: 100%;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 2rem 0;
    }
    
    .hero-left {
        height: 350px;
    }
    
    .hero-right {
        height: 350px;
    }
    
    .hero-slide {
        height: 350px;
    }
    
    .hero-title {
        font-size: 1.5rem;
    }
    
    .hero-description {
        font-size: 0.9rem;
    }
    
    .hero-content {
        padding: 1.5rem;
    }
    
    .hero-cards-vertical {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .hero-card-vertical {
        height: calc((350px - 2.25rem) / 4);
    }
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.section-line {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #dc3545, #c82333);
    margin: 0 auto;
    border-radius: 2px;
}

/* News Cards */
.news-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
}

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

.news-image {
    position: relative;
    overflow: hidden;
}

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

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

.news-category {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #dc3545;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.news-content {
    padding: 1.5rem;
}

.news-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.75rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-excerpt {
    color: #6c757d;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

.news-date,
.news-views {
    display: flex;
    align-items: center;
}

/* Sidebar Widgets */
.sidebar-widget {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.widget-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e9ecef;
}

/* Popular News */
.popular-news-item {
    display: flex;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f8f9fa;
    transition: all 0.3s ease;
}

.popular-news-item:hover {
    background: #f8f9fa;
    border-radius: 8px;
    padding-right: 0.5rem;
    padding-left: 0.5rem;
}

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

.popular-news-number {
    background: #dc3545;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.9rem;
    margin-left: 1rem;
    flex-shrink: 0;
}

.popular-news-content h5 {
    font-size: 0.95rem;
    font-weight: 500;
    color: #2c3e50;
    margin-bottom: 0.25rem;
    line-height: 1.3;
}

.popular-news-content span {
    font-size: 0.8rem;
}

/* Categories */
.category-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 0;
    color: #495057;
    text-decoration: none;
    border-bottom: 1px solid #f8f9fa;
    transition: all 0.3s ease;
}

.category-item:hover {
    color: #dc3545;
    padding-right: 0.5rem;
    background: #f8f9fa;
    border-radius: 8px;
    padding-left: 0.5rem;
}

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

.category-count {
    background: #e9ecef;
    color: #6c757d;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Article Cards */
.article-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
}

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

.article-image {
    position: relative;
    overflow: hidden;
}

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

.article-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.article-card:hover .article-overlay {
    opacity: 1;
}

.article-content {
    padding: 1.5rem;
}

.article-category {
    background: #007bff;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    display: inline-block;
    margin-bottom: 0.75rem;
}

.article-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.article-excerpt {
    color: #6c757d;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.article-author {
    display: flex;
    align-items: center;
}

.author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-left: 0.75rem;
}

.author-info {
    display: flex;
    flex-direction: column;
}

.author-name {
    font-weight: 500;
    color: #2c3e50;
    font-size: 0.9rem;
}

.article-date {
    font-size: 0.8rem;
    color: #adb5bd;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
}

.footer-brand h3 {
    font-weight: 800;
}

.footer-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: white;
}

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

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

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

.footer-links a:hover {
    color: #dc3545;
}

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

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

.social-link:hover {
    background: #dc3545;
    color: white;
    transform: translateY(-2px);
}

.newsletter-form .form-control {
    border: none;
    border-radius: 25px 0 0 25px;
    padding: 0.75rem 1rem;
}

.newsletter-form .btn {
    border-radius: 0 25px 25px 0;
    padding: 0.75rem 1.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .news-title,
    .article-title {
        font-size: 1rem;
    }
    
    .ticker-content {
        animation-duration: 20s;
    }
    
    .carousel-control-prev,
    .carousel-control-next {
        width: 40px;
        height: 40px;
        margin: 0 10px;
    }
}

@media (max-width: 576px) {
    .hero-slide {
        height: 400px;
    }
    
    .hero-title {
        font-size: 1.5rem;
    }
    
    .news-card,
    .article-card {
        margin-bottom: 1rem;
    }
    
    .sidebar-widget {
        margin-bottom: 1rem;
    }
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.6s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.slide-in-right {
    animation: slideInRight 0.6s ease-out;
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(30px); }
    to { opacity: 1; transform: translateX(0); }
}

.slide-in-left {
    animation: slideInLeft 0.6s ease-out;
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-30px); }
    to { opacity: 1; transform: translateX(0); }
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #dc3545;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #dc3545;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #c82333;
}

/* Focus States */
.btn:focus,
.form-control:focus {
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
    border-color: #dc3545;
}

/* Print Styles */
@media print {
    .navbar,
    .footer,
    .breaking-news-ticker {
        display: none;
    }
    
    .hero-section {
        margin-bottom: 1rem;
    }
    
    .news-card,
    .article-card {
        box-shadow: none;
        border: 1px solid #ddd;
    }
} 

/* Editor Info Styles */
.editor-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
    height: 100%;
    justify-content: center;
}
.editor-info .fw-semibold {
    font-size: 0.9rem;
    color: #666;
    white-space: nowrap;
    line-height: 1;
}
.editor-info .fw-bold {
    font-size: 1.1rem;
    color: #333;
    white-space: nowrap;
    line-height: 1;
}
.editor-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: 2px solid #dc3545;
    border-radius: 4px;
}


/* Professional Search Box Styles */
.search-container {
    margin-right: auto;
    margin-left: 2rem;
}

.search-box {
    position: relative;
    display: flex;
    align-items: center;
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 25px;
    padding: 8px 16px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.search-box:hover,
.search-box:focus-within {
    border-color: #dc3545;
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.2);
    transform: translateY(-1px);
}

.search-input {
    border: none;
    background: transparent;
    outline: none;
    padding: 0;
    margin-left: 8px;
    font-size: 0.95rem;
    color: #333;
    width: 200px;
    font-family: 'Tajawal', sans-serif;
}

.search-input::placeholder {
    color: #6c757d;
    font-size: 0.9rem;
}

.search-btn {
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-right: 0;
}

.search-btn:hover {
    background: #c82333;
    transform: scale(1.1);
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.4);
}

.search-btn:active {
    transform: scale(0.95);
}

/* Sub-header Categories Nav */
.categories-nav {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-bottom: 2px solid #dc3545;
    z-index: 1049;
    padding: 0.75rem 0;
}

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

/* Categories Section */
.categories-section {
    position: relative;
}

.hamburger-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
    border: none;
    font-weight: 600;
    font-size: 1rem;
}

.hamburger-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 53, 69, 0.4);
}

.hamburger-btn.active {
    background: linear-gradient(135deg, #c82333 0%, #a71e2a 100%);
}

/* Hamburger Menu */
.hamburger-menu {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.hamburger-menu span {
    width: 20px;
    height: 3px;
    background-color: white;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger-btn:hover .hamburger-menu span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger-btn:hover .hamburger-menu span:nth-child(2) {
    opacity: 0;
}

.hamburger-btn:hover .hamburger-menu span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

.hamburger-text {
    font-weight: 600;
    font-size: 1rem;
}

/* Categories Dropdown */
.categories-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    padding: 1.5rem;
    min-width: 400px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1050;
    border: 1px solid #e9ecef;
}

.categories-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

.category-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: #333;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.category-item:hover {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
    transform: translateX(-5px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

.category-item i {
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}

.category-item span {
    font-weight: 500;
    font-size: 0.95rem;
}

/* Search Section */
.search-section {
    flex-shrink: 0;
}

.search-box {
    position: relative;
    display: flex;
    align-items: center;
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 25px;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    min-width: 300px;
}

.search-box:hover,
.search-box:focus-within {
    border-color: #dc3545;
    box-shadow: 0 6px 20px rgba(220, 53, 69, 0.2);
    transform: translateY(-2px);
}

.search-input {
    border: none;
    background: transparent;
    outline: none;
    padding: 0;
    margin-left: 0.75rem;
    font-size: 0.95rem;
    color: #333;
    width: 100%;
    font-family: 'Tajawal', sans-serif;
}

.search-input::placeholder {
    color: #6c757d;
    font-size: 0.9rem;
}

.search-btn {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-right: 0;
}

.search-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.4);
}

.search-btn:active {
    transform: scale(0.95);
}

/* Responsive Design */
@media (max-width: 768px) {
    .sub-header-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    .categories-dropdown {
        min-width: 300px;
        right: -50px;
    }
    
    .categories-grid {
        grid-template-columns: 1fr;
    }
    
    .search-box {
        min-width: 250px;
    }
    
    .hamburger-btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
} 

/* Horizontal Categories List in Sub-header */
.categories-list-horizontal {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.25rem;
    align-items: center;
    margin-right: 0.5rem;
}
.categories-list-horizontal .category-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    color: #333;
    background: transparent;
    border-radius: 20px;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
    border: 1.5px solid transparent;
    position: relative;
}
.categories-list-horizontal .category-item i {
    font-size: 1.1rem;
    color: #dc3545;
    min-width: 20px;
    text-align: center;
}
.categories-list-horizontal .category-item span {
    font-size: 1rem;
    font-weight: 500;
}
.categories-list-horizontal .category-item:hover,
.categories-list-horizontal .category-item:focus {
    background: linear-gradient(90deg, #dc3545 0%, #c82333 100%);
    color: #fff;
    border-color: #dc3545;
    box-shadow: 0 2px 8px rgba(220,53,69,0.08);
}
.categories-list-horizontal .category-item:hover i,
.categories-list-horizontal .category-item:focus i {
    color: #fff;
}

@media (max-width: 992px) {
    .categories-list-horizontal {
        gap: 0.5rem 0.5rem;
        margin-bottom: 0.5rem;
    }
    .categories-list-horizontal .category-item {
        font-size: 0.95rem;
        padding: 0.4rem 0.7rem;
    }
}
@media (max-width: 768px) {
    .categories-list-horizontal {
        flex-wrap: wrap;
        gap: 0.3rem 0.3rem;
        margin-bottom: 0.5rem;
        justify-content: flex-start;
    }
    .categories-list-horizontal .category-item {
        font-size: 0.9rem;
        padding: 0.3rem 0.5rem;
    }
} 

/* Theme Toggle Button */
.theme-toggle-btn {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    background: #fff;
    color: #dc3545;
    border: 2px solid #e9ecef;
    border-radius: 25px;
    padding: 0.5rem 1.1rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(220,53,69,0.05);
    outline: none;
}
.theme-toggle-btn:hover, .theme-toggle-btn:focus {
    background: #dc3545;
    color: #fff;
    border-color: #dc3545;
    box-shadow: 0 4px 16px rgba(220,53,69,0.12);
}
.theme-toggle-btn .fa-sun {
    color: #f7b731;
}
.theme-toggle-btn .fa-moon {
    color: #34495e;
}
.theme-toggle-btn .theme-label {
    font-size: 1rem;
    font-weight: 600;
}

/* Dark Theme Styles */
body.dark-theme {
    background: #181a1b !important;
    color: #f1f1f1 !important;
}
body.dark-theme .categories-nav,
body.dark-theme .navbar,
body.dark-theme .footer {
    background: #23272b !important;
    color: #f1f1f1 !important;
    border-color: #23272b !important;
}
body.dark-theme .main-content,
body.dark-theme .sidebar-widget,
body.dark-theme .news-card,
body.dark-theme .article-card {
    background: #23272b !important;
    color: #f1f1f1 !important;
    border-color: #23272b !important;
}
body.dark-theme .section-title,
body.dark-theme .widget-title,
body.dark-theme .footer-title {
    color: #fff !important;
}
body.dark-theme .category-item,
body.dark-theme .categories-list-horizontal .category-item {
    background: #23272b !important;
    color: #f1f1f1 !important;
    border-color: #23272b !important;
}
body.dark-theme .category-item:hover,
body.dark-theme .categories-list-horizontal .category-item:hover {
    background: linear-gradient(90deg, #dc3545 0%, #c82333 100%) !important;
    color: #fff !important;
}
body.dark-theme .search-box {
    background: #181a1b !important;
    border-color: #23272b !important;
}
body.dark-theme .search-input {
    color: #fff !important;
}
body.dark-theme .search-btn {
    background: #23272b !important;
    color: #fff !important;
}
body.dark-theme .theme-toggle-btn {
    background: #23272b !important;
    color: #fff !important;
    border-color: #23272b !important;
}
body.dark-theme .theme-toggle-btn:hover, body.dark-theme .theme-toggle-btn:focus {
    background: #dc3545 !important;
    color: #fff !important;
    border-color: #dc3545 !important;
}
body.dark-theme .breaking-news-ticker {
    background: linear-gradient(90deg, #23272b, #181a1b) !important;
    color: #fff !important;
} 

/* News Section */
.news-section {
    padding: 4rem 0;
    background: #ffffff;
}

.news-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
}

/* Section Headers */
.section-header {
    margin-bottom: 2rem;
    text-align: center;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 0.5rem;
    position: relative;
}

.section-line {
    width: 80px;
    height: 4px;
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    margin: 0 auto;
    border-radius: 2px;
}

/* Main News Content */
.news-main .section-header {
    text-align: right;
}

.news-main .section-title {
    font-size: 1.8rem;
}

.news-main .section-line {
    margin: 0 0 0 auto;
}

.news-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.news-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid #f8f9fa;
}

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

.news-card-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

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

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

.news-card-overlay {
    position: absolute;
    top: 1rem;
    right: 1rem;
}

.news-card-category {
    background: #dc3545;
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
}

.news-card-content {
    padding: 1.5rem;
}

.news-card-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 0.75rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card-excerpt {
    color: #6c757d;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: #6c757d;
}

.news-card-date,
.news-card-views {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* Load More Button */
.load-more-container {
    text-align: center;
    margin-top: 3rem;
}

.btn-load-more {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 25px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.3);
}

.btn-load-more:hover {
    background: linear-gradient(135deg, #c82333 0%, #a71e2a 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 53, 69, 0.4);
}

/* Most Read Sidebar */
.news-sidebar {
    position: sticky;
    top: 2rem;
}

.most-read-section {
    background: #ffffff;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid #f8f9fa;
}

.most-read-section .section-header {
    text-align: right;
    margin-bottom: 1.5rem;
}

.most-read-section .section-title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.most-read-section .section-line {
    margin: 0 0 0 auto;
    width: 60px;
}

.most-read-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.most-read-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.most-read-item:hover {
    background: #f8f9fa;
    border-color: #e9ecef;
    transform: translateX(-5px);
}

.most-read-number {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.most-read-content {
    flex: 1;
}

.most-read-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.5rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.most-read-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: #6c757d;
}

.most-read-category {
    background: #e9ecef;
    color: #495057;
    padding: 0.2rem 0.5rem;
    border-radius: 10px;
    font-weight: 600;
}

.most-read-views {
    font-weight: 600;
}

/* Responsive Design for News Section */
@media (max-width: 1200px) {
    .news-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .news-sidebar {
        position: static;
        order: -1;
    }
    
    .most-read-list {
        flex-direction: row;
        overflow-x: auto;
        gap: 1.5rem;
        padding-bottom: 1rem;
    }
    
    .most-read-item {
        min-width: 300px;
        flex-direction: column;
        text-align: center;
    }
    
    .most-read-item:hover {
        transform: translateY(-5px);
    }
}

@media (max-width: 768px) {
    .news-section {
        padding: 2rem 0;
    }
    
    .news-cards {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .news-main .section-title {
        font-size: 1.5rem;
    }
    
    .most-read-section .section-title {
        font-size: 1.3rem;
    }
    
    .news-card-content {
        padding: 1rem;
    }
    
    .news-card-title {
        font-size: 1.1rem;
    }
    
    .most-read-list {
        flex-direction: column;
    }
    
    .most-read-item {
        min-width: auto;
        flex-direction: row;
        text-align: right;
    }
    
    .most-read-item:hover {
        transform: translateX(-5px);
    }
}

/* Dark Mode Support */
[data-theme="dark"] .news-section {
    background: #1a1a1a;
}

[data-theme="dark"] .news-card {
    background: #2d2d2d;
    border-color: #404040;
}

[data-theme="dark"] .news-card-title {
    color: #ffffff;
}

[data-theme="dark"] .news-card-excerpt {
    color: #b0b0b0;
}

[data-theme="dark"] .news-card-meta {
    color: #888888;
}

[data-theme="dark"] .most-read-section {
    background: #2d2d2d;
    border-color: #404040;
}

[data-theme="dark"] .most-read-title {
    color: #ffffff;
}

[data-theme="dark"] .most-read-meta {
    color: #888888;
}

[data-theme="dark"] .most-read-category {
    background: #404040;
    color: #b0b0b0;
}

[data-theme="dark"] .most-read-item:hover {
    background: #404040;
    border-color: #505050;
} 

/* Latest News Section */
.latest-news-section {
    padding: 3rem 0;
    background: #ffffff;
}

.latest-news-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid #f8f9fa;
    height: 100%;
}

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

.latest-news-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

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

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

.latest-news-category {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: #dc3545;
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
}

.latest-news-content {
    padding: 1.5rem;
}

.latest-news-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 0.75rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.latest-news-excerpt {
    color: #6c757d;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.latest-news-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: #6c757d;
}

.latest-news-date,
.latest-news-views {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* Sidebar Widgets */
.sidebar-widget {
    background: #ffffff;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid #f8f9fa;
}

.widget-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #e9ecef;
}

/* Popular News List */
.popular-news-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.popular-news-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.popular-news-item:hover {
    background: #f8f9fa;
    border-color: #e9ecef;
    transform: translateX(-5px);
}

.popular-news-number {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.popular-news-content {
    flex: 1;
}

.popular-news-content h5 {
    font-size: 0.95rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.5rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Categories List */
.categories-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.category-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    color: #495057;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.category-item:hover {
    background: #e9ecef;
    border-color: #dee2e6;
    transform: translateX(-5px);
    color: #495057;
    text-decoration: none;
}

.category-item i {
    color: #dc3545;
    width: 20px;
    text-align: center;
}

.category-count {
    background: #dc3545;
    color: white;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Responsive Design for Latest News */
@media (max-width: 992px) {
    .latest-news-section {
        padding: 2rem 0;
    }
    
    .latest-news-content {
        padding: 1rem;
    }
    
    .latest-news-title {
        font-size: 1.1rem;
    }
    
    .sidebar-widget {
        margin-top: 2rem;
    }
}

@media (max-width: 768px) {
    .latest-news-section {
        padding: 1.5rem 0;
    }
    
    .latest-news-image {
        height: 180px;
    }
    
    .latest-news-title {
        font-size: 1rem;
    }
    
    .latest-news-excerpt {
        font-size: 0.9rem;
    }
    
    .widget-title {
        font-size: 1.2rem;
    }
    
    .popular-news-item:hover {
        transform: translateY(-3px);
    }
    
    .category-item:hover {
        transform: translateY(-3px);
    }
}

/* Dark Mode Support for Latest News */
[data-theme="dark"] .latest-news-section {
    background: #1a1a1a;
}

[data-theme="dark"] .latest-news-card {
    background: #2d2d2d;
    border-color: #404040;
}

[data-theme="dark"] .latest-news-title {
    color: #ffffff;
}

[data-theme="dark"] .latest-news-excerpt {
    color: #b0b0b0;
}

[data-theme="dark"] .latest-news-meta {
    color: #888888;
}

[data-theme="dark"] .sidebar-widget {
    background: #2d2d2d;
    border-color: #404040;
}

[data-theme="dark"] .widget-title {
    color: #ffffff;
    border-bottom-color: #404040;
}

[data-theme="dark"] .popular-news-content h5 {
    color: #ffffff;
}

[data-theme="dark"] .popular-news-item:hover {
    background: #404040;
    border-color: #505050;
}

[data-theme="dark"] .category-item {
    background: #404040;
    color: #b0b0b0;
}

[data-theme="dark"] .category-item:hover {
    background: #505050;
    border-color: #606060;
    color: #b0b0b0;
} 

/* Sidebar Images */
.sidebar-images {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.sidebar-image-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    background: #ffffff;
    border: 1px solid #f8f9fa;
}

.sidebar-image-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.sidebar-ad-image {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.sidebar-image-item:hover .sidebar-ad-image {
    transform: scale(1.02);
}

/* Responsive Design for Sidebar Images */
@media (max-width: 992px) {
    .sidebar-images {
        flex-direction: row;
        gap: 1rem;
        overflow-x: auto;
        padding-bottom: 0.5rem;
    }
    
    .sidebar-image-item {
        min-width: 200px;
        flex-shrink: 0;
    }
}

@media (max-width: 768px) {
    .sidebar-images {
        flex-direction: column;
        gap: 1rem;
    }
    
    .sidebar-image-item {
        min-width: auto;
    }
}

/* Dark Mode Support for Sidebar Images */
[data-theme="dark"] .sidebar-image-item {
    background: #2d2d2d;
    border-color: #404040;
} 

/* قسم آراء حرة المحسن */
.opinions-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
    overflow: hidden;
}

.dark-mode .opinions-section {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
}

.opinions-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="%23ffffff" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="%23ffffff" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="%23ffffff" opacity="0.1"/><circle cx="10" cy="60" r="0.5" fill="%23ffffff" opacity="0.1"/><circle cx="90" cy="40" r="0.5" fill="%23ffffff" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    pointer-events: none;
}

/* رأس القسم */
.section-header {
    margin-bottom: 50px;
    position: relative;
    z-index: 2;
}

.section-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #dc3545, #c82333);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: 0 8px 25px rgba(220, 53, 69, 0.3);
    position: relative;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.section-icon::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    background: linear-gradient(135deg, #dc3545, #c82333);
    border-radius: 50%;
    z-index: -1;
    opacity: 0.3;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 0.3; }
    50% { transform: scale(1.1); opacity: 0.1; }
    100% { transform: scale(1); opacity: 0.3; }
}

.section-icon i {
    font-size: 1.8rem;
    color: white;
    animation: rotate 4s linear infinite;
}

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

.section-title {
    font-family: 'Tajawal', sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    color: #333;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
}

.dark-mode .section-title {
    color: #fff;
}

.section-subtitle {
    font-family: 'Tajawal', sans-serif;
    font-size: 1.1rem;
    color: #6c757d;
    margin-bottom: 25px;
    font-weight: 400;
}

.dark-mode .section-subtitle {
    color: #adb5bd;
}

.section-line {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #dc3545, #c82333);
    margin: 0 auto;
    border-radius: 2px;
    position: relative;
    animation: expand 2s ease-in-out infinite;
}

@keyframes expand {
    0%, 100% { width: 80px; }
    50% { width: 120px; }
}

.section-line::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(90deg, #dc3545, #c82333);
    border-radius: 3px;
    opacity: 0.3;
    z-index: -1;
}

/* حاوية الآراء */
.opinions-container {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
}

.opinions-grid {
    display: flex;
    gap: 20px;
    margin: 0 auto;
    overflow-x: auto;
    padding: 10px 0;
    scrollbar-width: thin;
    scrollbar-color: #dc3545 #f8f9fa;
}

.opinions-grid::-webkit-scrollbar {
    height: 6px;
}

.opinions-grid::-webkit-scrollbar-track {
    background: #f8f9fa;
    border-radius: 3px;
}

.opinions-grid::-webkit-scrollbar-thumb {
    background: #dc3545;
    border-radius: 3px;
}

.opinions-grid::-webkit-scrollbar-thumb:hover {
    background: #c82333;
}

/* كروت الآراء */
.opinion-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    border: 1px solid rgba(220, 53, 69, 0.1);
    animation: slideInUp 0.6s ease-out;
    width: 280px;
    flex-shrink: 0;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.opinion-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 15px 35px rgba(220, 53, 69, 0.2);
    border-color: #dc3545;
}

.opinion-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #dc3545, #c82333);
    z-index: 3;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.opinion-card:hover::before {
    transform: scaleX(1);
}

/* صورة الكارت */
.card-image {
    position: relative;
    height: 140px;
    overflow: hidden;
}

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

.opinion-card:hover .card-image img {
    transform: scale(1.1) rotate(2deg);
}

/* الطبقة العلوية */
.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.9) 0%, rgba(200, 35, 51, 0.7) 100%);
    opacity: 0;
    transition: all 0.3s ease;
    display: flex;
    align-items: flex-end;
    padding: 15px;
    transform: translateY(100%);
}

.opinion-card:hover .card-overlay {
    opacity: 1;
    transform: translateY(0);
}

.overlay-content {
    width: 100%;
}

/* شارة الفئة */
.category-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.9);
    color: #dc3545;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-5px); }
    60% { transform: translateY(-3px); }
}

/* معلومات الكاتب */
.author-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid white;
    object-fit: cover;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.opinion-card:hover .author-avatar {
    transform: scale(1.1);
}

.author-details {
    display: flex;
    flex-direction: column;
}

.author-name {
    color: white;
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 2px;
}

.author-title {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.75rem;
    font-weight: 400;
}

/* محتوى الكارت */
.card-content {
    padding: 15px;
}

.card-title {
    font-family: 'Tajawal', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s ease;
}

.dark-mode .card-title {
    color: #fff;
}

.opinion-card:hover .card-title {
    color: #dc3545;
}

.card-excerpt {
    font-family: 'Tajawal', sans-serif;
    color: #6c757d;
    font-size: 0.85rem;
    line-height: 1.4;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.dark-mode .card-excerpt {
    color: #adb5bd;
}

/* بيانات الكارت */
.card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 10px;
    border-top: 1px solid #e9ecef;
}

.dark-mode .card-meta {
    border-top-color: #495057;
}

.publish-date, .read-time {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.75rem;
    color: #6c757d;
    font-weight: 500;
    transition: color 0.3s ease;
}

.dark-mode .publish-date, .dark-mode .read-time {
    color: #adb5bd;
}

.publish-date i, .read-time i {
    color: #dc3545;
    font-size: 0.8rem;
    animation: pulse 2s infinite;
}

/* تحسينات للوضع المظلم */
.dark-mode .opinion-card {
    background: #2c3e50;
    border-color: rgba(220, 53, 69, 0.3);
}

.dark-mode .card-overlay {
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.95) 0%, rgba(200, 35, 51, 0.8) 100%);
}

/* تحسينات الاستجابة */
@media (max-width: 1200px) {
    .opinions-grid {
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .opinions-section {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    .opinions-grid {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
        gap: 15px;
    }
    
    .card-image {
        height: 160px;
    }
    
    .card-content {
        padding: 15px;
    }
    
    .card-title {
        font-size: 1rem;
    }
    
    .card-excerpt {
        font-size: 0.85rem;
    }
}

@media (max-width: 576px) {
    .section-title {
        font-size: 1.8rem;
    }
    
    .section-icon {
        width: 50px;
        height: 50px;
    }
    
    .section-icon i {
        font-size: 1.3rem;
    }
    
    .opinions-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .card-image {
        height: 150px;
    }
    
    .card-content {
        padding: 12px;
    }
    
    .card-title {
        font-size: 0.95rem;
    }
    
    .card-excerpt {
        font-size: 0.8rem;
    }
    
    .card-meta {
        flex-direction: column;
        gap: 6px;
        align-items: flex-start;
    }
}

/* تحسين مظهر الكروت */
.card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    background: var(--card-bg);
    overflow: hidden;
}

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

.card-img-top {
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.card-body {
    padding: 1.5rem;
}

.card-title {
    font-family: 'Tajawal', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-color);
    margin-bottom: 0.75rem;
    line-height: 1.4;
    min-height: 3rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-text {
    font-family: 'Tajawal', sans-serif;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.text-muted.small {
    font-family: 'Tajawal', sans-serif;
    font-size: 0.85rem;
    color: var(--primary-color) !important;
    font-weight: 600;
}

/* تحسين السكرول الأفقي */
.overflow-auto {
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) #f1f1f1;
}

.overflow-auto::-webkit-scrollbar {
    height: 8px;
}

.overflow-auto::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.overflow-auto::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

.overflow-auto::-webkit-scrollbar-thumb:hover {
    background: #c82333;
}

/* تحسين المسافات */
.gap-3 {
    gap: 1rem !important;
}

.pb-3 {
    padding-bottom: 1rem !important;
}

/* تحسين العنوان */
h2.text-center {
    font-family: 'Tajawal', sans-serif;
    font-weight: 800;
    color: var(--text-color);
    margin-bottom: 2rem;
    position: relative;
}

h2.text-center::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
}

/* تحسين التخطيط */
.position-relative {
    position: relative;
}

/* تحسين الكروت للوضع المظلم */
.dark-mode .card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
}

.dark-mode .card-title {
    color: var(--text-color);
}

.dark-mode .card-text {
    color: var(--text-muted);
}

/* تحسين السكرول للوضع المظلم */
.dark-mode .overflow-auto::-webkit-scrollbar-track {
    background: #34495e;
}

/* تحسين الاستجابة */
@media (max-width: 768px) {
    .card {
        width: 280px !important;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .card-title {
        font-size: 1rem;
        min-height: 2.5rem;
    }
    
    .card-text {
        font-size: 0.9rem;
    }
    
    .gap-3 {
        gap: 0.75rem !important;
    }
}

@media (max-width: 576px) {
    .card {
        width: 260px !important;
    }
    
    .card-img-top {
        height: 180px;
    }
    
    .card-body {
        padding: 0.75rem;
    }
    
    .card-title {
        font-size: 0.95rem;
        min-height: 2.25rem;
    }
    
    .card-text {
        font-size: 0.85rem;
    }
    
    .text-muted.small {
        font-size: 0.8rem;
    }
}

/* تحسينات الاستجابة للصف الأفقي */
@media (max-width: 1200px) {
    .opinion-card {
        width: 260px;
    }
    
    .card-image {
        height: 130px;
    }
}

@media (max-width: 768px) {
    .opinion-card {
        width: 240px;
    }
    
    .card-image {
        height: 120px;
    }
    
    .card-content {
        padding: 12px;
    }
    
    .card-title {
        font-size: 0.95rem;
    }
    
    .card-excerpt {
        font-size: 0.8rem;
    }
}

@media (max-width: 576px) {
    .opinion-card {
        width: 220px;
    }
    
    .card-image {
        height: 110px;
    }
    
    .card-content {
        padding: 10px;
    }
    
    .card-title {
        font-size: 0.9rem;
    }
    
    .card-excerpt {
        font-size: 0.75rem;
    }
}

/* قسم الأحزاب والاشتباك السياسي */
.parties-clash-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.parties-clash-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="%23dc3545" opacity="0.03"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    pointer-events: none;
}

.parties-clash-section .section-header {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    z-index: 2;
}

.parties-clash-section .section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 15px;
    position: relative;
}

.parties-clash-section .section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #dc3545, #fd7e14);
    border-radius: 2px;
}

.parties-clash-section .section-subtitle {
    font-size: 1.1rem;
    color: #6c757d;
    margin: 0;
}

.parties-clash-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

/* رؤوس الأعمدة */
.column-header {
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
    text-align: center;
    border: 1px solid rgba(220, 53, 69, 0.1);
    position: relative;
    overflow: hidden;
}

.column-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #dc3545, #fd7e14);
}

.header-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 2.5rem;
    color: #dc3545;
    animation: iconFloat 3s ease-in-out infinite;
}

@keyframes iconFloat {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg); 
        color: #dc3545;
    }
    25% { 
        transform: translateY(-8px) rotate(5deg); 
        color: #fd7e14;
    }
    50% { 
        transform: translateY(-12px) rotate(0deg); 
        color: #dc3545;
    }
    75% { 
        transform: translateY(-8px) rotate(-5deg); 
        color: #fd7e14;
    }
}

.column-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 8px;
}

.column-subtitle {
    font-size: 0.95rem;
    color: #6c757d;
    margin: 0;
}

/* كروت الأحزاب */
.parties-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.party-card {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(220, 53, 69, 0.1);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
    overflow: hidden;
}

.party-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #dc3545, #fd7e14);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.party-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: rgba(220, 53, 69, 0.3);
}

.party-card:hover::before {
    transform: scaleY(1);
}

.party-logo {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.party-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.party-info {
    flex: 1;
}

.party-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 8px;
}

.party-news {
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 12px;
    line-height: 1.5;
}

.party-meta {
    display: flex;
    gap: 15px;
    align-items: center;
}

.party-status {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.party-status.active {
    background: rgba(25, 135, 84, 0.1);
    color: #198754;
}

.party-members {
    font-size: 0.8rem;
    color: #6c757d;
    font-weight: 500;
}

/* كروت الاشتباك */
.clash-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.clash-card {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(220, 53, 69, 0.1);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.clash-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #dc3545, #fd7e14);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.clash-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: rgba(220, 53, 69, 0.3);
}

.clash-card:hover::before {
    transform: scaleY(1);
}

.clash-type {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.clash-type.hot {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
}

.clash-type.trending {
    background: rgba(13, 110, 253, 0.1);
    color: #0d6efd;
}

.clash-type.breaking {
    background: rgba(255, 193, 7, 0.1);
    color: #ffc107;
}

.clash-type.debate {
    background: rgba(25, 135, 84, 0.1);
    color: #198754;
}

.clash-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 10px;
    line-height: 1.4;
}

.clash-description {
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 15px;
    line-height: 1.5;
}

.clash-participants {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.participant {
    padding: 6px 12px;
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

.vs {
    font-size: 0.8rem;
    font-weight: 700;
    color: #6c757d;
    background: rgba(108, 117, 125, 0.1);
    padding: 4px 8px;
    border-radius: 8px;
}

.clash-meta {
    display: flex;
    gap: 15px;
    align-items: center;
    font-size: 0.8rem;
    color: #6c757d;
}

.clash-time, .clash-views {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* تحسينات الاستجابة */
@media (max-width: 992px) {
    .parties-clash-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .parties-clash-section .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .parties-clash-section {
        padding: 60px 0;
    }
    
    .parties-clash-section .section-title {
        font-size: 1.8rem;
    }
    
    .column-header {
        padding: 20px;
    }
    
    .header-icon {
        font-size: 2rem;
    }
    
    .column-title {
        font-size: 1.3rem;
    }
    
    .party-card, .clash-card {
        padding: 15px;
    }
    
    .party-logo {
        width: 50px;
        height: 50px;
    }
    
    .party-name, .clash-title {
        font-size: 1rem;
    }
    
    .party-news, .clash-description {
        font-size: 0.85rem;
    }
}

@media (max-width: 576px) {
    .parties-clash-section .section-title {
        font-size: 1.5rem;
    }
    
    .parties-clash-section .section-subtitle {
        font-size: 1rem;
    }
    
    .party-card {
        flex-direction: column;
        text-align: center;
    }
    
    .party-meta {
        justify-content: center;
    }
    
    .clash-participants {
        justify-content: center;
    }
    
    .clash-meta {
        flex-direction: column;
        gap: 8px;
        align-items: center;
    }
}

/* دعم الوضع المظلم */
[data-theme="dark"] .parties-clash-section {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
}

[data-theme="dark"] .parties-clash-section .section-title {
    color: #ffffff;
}

[data-theme="dark"] .parties-clash-section .section-subtitle {
    color: #adb5bd;
}

[data-theme="dark"] .column-header {
    background: linear-gradient(135deg, #2d2d2d 0%, #1a1a1a 100%);
    border-color: rgba(220, 53, 69, 0.3);
}

[data-theme="dark"] .column-title {
    color: #ffffff;
}

[data-theme="dark"] .column-subtitle {
    color: #adb5bd;
}

[data-theme="dark"] .party-card,
[data-theme="dark"] .clash-card {
    background: #2d2d2d;
    border-color: rgba(220, 53, 69, 0.3);
}

[data-theme="dark"] .party-name,
[data-theme="dark"] .clash-title {
    color: #ffffff;
}

[data-theme="dark"] .party-news,
[data-theme="dark"] .clash-description {
    color: #adb5bd;
}

[data-theme="dark"] .party-members,
[data-theme="dark"] .clash-meta {
    color: #adb5bd;
}

[data-theme="dark"] .header-icon {
    color: #fd7e14;
}

/* قسم الانفوجرافيك */
.infographic-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}

.infographic-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="dots" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="%23dc3545" opacity="0.05"/></pattern></defs><rect width="100" height="100" fill="url(%23dots)"/></svg>');
    pointer-events: none;
}

.infographic-section .section-header {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    z-index: 2;
}

.infographic-section .section-title {
    font-size: 2rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 12px;
    position: relative;
}

.infographic-section .section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #dc3545, #fd7e14);
    border-radius: 2px;
}

.infographic-section .section-subtitle {
    font-size: 1.1rem;
    color: #6c757d;
    margin: 0;
}

.infographic-container {
    position: relative;
    z-index: 2;
}

.infographic-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

/* كروت الانفوجرافيك */
.infographic-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    border: 1px solid rgba(220, 53, 69, 0.1);
}

.infographic-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border-color: rgba(220, 53, 69, 0.3);
}

.infographic-image {
    position: relative;
    overflow: hidden;
    height: 250px;
}

.infographic-gif {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
    animation: gifFloat 4s ease-in-out infinite;
}

@keyframes gifFloat {
    0%, 100% { 
        transform: scale(1) translateY(0px); 
    }
    50% { 
        transform: scale(1.05) translateY(-5px); 
    }
}

.infographic-card:hover .infographic-gif {
    transform: scale(1.1);
}

.infographic-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.8) 0%, rgba(253, 126, 20, 0.8) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.4s ease;
    transform: translateY(100%);
}

.infographic-card:hover .infographic-overlay {
    opacity: 1;
    transform: translateY(0);
}

.overlay-content {
    text-align: center;
    color: white;
    padding: 20px;
}

.infographic-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    transform: translateY(20px);
    transition: transform 0.4s ease 0.1s;
}

.infographic-description {
    font-size: 1rem;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease 0.2s;
}

.infographic-card:hover .infographic-title,
.infographic-card:hover .infographic-description {
    transform: translateY(0);
    opacity: 1;
}

.infographic-content {
    padding: 20px;
}

.infographic-heading {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 12px;
    position: relative;
}

.infographic-heading::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, #dc3545, #fd7e14);
    border-radius: 2px;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.infographic-card:hover .infographic-heading::after {
    transform: scaleX(1);
}

.infographic-text {
    font-size: 0.9rem;
    color: #6c757d;
    line-height: 1.5;
    margin-bottom: 15px;
}

.infographic-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid rgba(220, 53, 69, 0.1);
}

.infographic-category {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.infographic-card:hover .infographic-category {
    background: #dc3545;
    color: white;
    transform: scale(1.05);
}

.infographic-date {
    font-size: 0.8rem;
    color: #6c757d;
    font-weight: 500;
}

/* تحسينات الاستجابة */
@media (max-width: 992px) {
    .infographic-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .infographic-section .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .infographic-section {
        padding: 60px 0;
    }
    
    .infographic-section .section-title {
        font-size: 1.8rem;
    }
    
    .infographic-image {
        height: 250px;
    }
    
    .infographic-content {
        padding: 20px;
    }
    
    .infographic-heading {
        font-size: 1.2rem;
    }
    
    .infographic-text {
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .infographic-section .section-title {
        font-size: 1.5rem;
    }
    
    .infographic-section .section-subtitle {
        font-size: 1rem;
    }
    
    .infographic-image {
        height: 200px;
    }
    
    .infographic-meta {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
}

/* دعم الوضع المظلم */
[data-theme="dark"] .infographic-section {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
}

[data-theme="dark"] .infographic-section .section-title {
    color: #ffffff;
}

[data-theme="dark"] .infographic-section .section-subtitle {
    color: #adb5bd;
}

[data-theme="dark"] .infographic-card {
    background: #2d2d2d;
    border-color: rgba(220, 53, 69, 0.3);
}

[data-theme="dark"] .infographic-heading {
    color: #ffffff;
}

[data-theme="dark"] .infographic-text {
    color: #adb5bd;
}

[data-theme="dark"] .infographic-date {
    color: #adb5bd;
}

[data-theme="dark"] .infographic-meta {
    border-color: rgba(220, 53, 69, 0.3);
}

/* قسم الفيديو */
.video-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}

.video-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="video-dots" width="25" height="25" patternUnits="userSpaceOnUse"><circle cx="12.5" cy="12.5" r="1" fill="%23dc3545" opacity="0.04"/></pattern></defs><rect width="100" height="100" fill="url(%23video-dots)"/></svg>');
    pointer-events: none;
}

.video-container {
    position: relative;
    z-index: 2;
}

.video-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

/* الشاشات الصغيرة على اليمين */
.small-videos-column {
    display: flex;
    flex-direction: column;
    gap: 10px;
    justify-content: space-between;
    height: 100%;
}

.small-video-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(220, 53, 69, 0.1);
    cursor: pointer;
    display: flex;
    height: 75px;
}

.small-video-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    border-color: rgba(220, 53, 69, 0.3);
}

.video-thumbnail {
    position: relative;
    width: 110px;
    height: 75px;
    flex-shrink: 0;
    overflow: hidden;
}

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

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

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.small-video-card:hover .video-overlay {
    opacity: 1;
}

.play-button {
    width: 28px;
    height: 28px;
    background: rgba(220, 53, 69, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

.small-video-card:hover .play-button {
    background: #dc3545;
    transform: scale(1.1);
}

.video-duration {
    position: absolute;
    bottom: 5px;
    right: 5px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 1px 4px;
    border-radius: 3px;
    font-size: 0.6rem;
    font-weight: 500;
}

.video-info {
    padding: 10px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.video-title {
    font-size: 0.8rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 4px;
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.video-description {
    font-size: 0.7rem;
    color: #6c757d;
    margin-bottom: 6px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.video-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.65rem;
    color: #6c757d;
}

.video-views, .video-date {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* الشاشة الرئيسية على اليمين */
.main-video-column {
    position: relative;
}

.main-video-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(220, 53, 69, 0.1);
    cursor: pointer;
}

.main-video-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    border-color: rgba(220, 53, 69, 0.3);
}

.main-video-thumbnail {
    position: relative;
    height: 320px;
    overflow: hidden;
}

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

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

.main-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.main-video-card:hover .main-video-overlay {
    opacity: 1;
}

.main-play-button {
    width: 80px;
    height: 80px;
    background: rgba(220, 53, 69, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.4);
}

.main-video-card:hover .main-play-button {
    background: #dc3545;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(220, 53, 69, 0.6);
}

.main-video-duration {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
}

.youtube-icon {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 55px;
    height: 55px;
    background: #ff0000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    animation: youtubePulse 2s infinite;
    box-shadow: 0 4px 15px rgba(255, 0, 0, 0.4);
}

@keyframes youtubePulse {
    0%, 100% { 
        transform: scale(1); 
        background: #ff0000;
    }
    50% { 
        transform: scale(1.1); 
        background: #cc0000;
        box-shadow: 0 6px 20px rgba(255, 0, 0, 0.6);
    }
}

.main-video-info {
    padding: 25px;
}

.main-video-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 12px;
    line-height: 1.3;
}

.main-video-description {
    font-size: 1rem;
    color: #6c757d;
    line-height: 1.6;
    margin-bottom: 20px;
}

.main-video-meta {
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
}

.main-video-views, .main-video-date, .main-video-category {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    color: #6c757d;
}

.main-video-category {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
    padding: 4px 12px;
    border-radius: 15px;
    font-weight: 500;
}

/* تحسينات الاستجابة */
@media (max-width: 992px) {
    .video-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .small-videos-column {
        order: 2;
    }
    
    .main-video-column {
        order: 1;
    }
    
    .main-video-thumbnail {
        height: 300px;
    }
}

@media (max-width: 768px) {
    .video-section {
        padding: 30px 0;
    }
    
    .video-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .small-videos-column {
        order: 2;
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 10px;
        height: auto;
    }
    
    .main-video-column {
        order: 1;
    }
    
    .main-video-thumbnail {
        height: 200px;
    }
    
    .main-video-info {
        padding: 18px;
    }
    
    .main-video-title {
        font-size: 1.1rem;
    }
    
    .main-video-description {
        font-size: 0.85rem;
    }
    
    .main-video-meta {
        flex-direction: column;
        gap: 8px;
        align-items: flex-start;
    }
    
    .small-video-card {
        height: auto;
        flex-direction: column;
    }
    
    .video-thumbnail {
        width: 100%;
        height: 140px;
    }
    
    .video-info {
        padding: 12px;
    }
    
    .video-title {
        font-size: 0.85rem;
    }
    
    .video-description {
        font-size: 0.75rem;
    }
}

@media (max-width: 576px) {
    .main-video-thumbnail {
        height: 200px;
    }
    
    .main-play-button {
        width: 60px;
        height: 60px;
        font-size: 2rem;
    }
    
    .youtube-icon {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .video-meta {
        flex-direction: column;
        gap: 5px;
        align-items: flex-start;
    }
}

/* دعم الوضع المظلم */
[data-theme="dark"] .video-section {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
}

[data-theme="dark"] .small-video-card,
[data-theme="dark"] .main-video-card {
    background: #2d2d2d;
    border-color: rgba(220, 53, 69, 0.3);
}

[data-theme="dark"] .video-title,
[data-theme="dark"] .main-video-title {
    color: #ffffff;
}

[data-theme="dark"] .video-description,
[data-theme="dark"] .main-video-description {
    color: #adb5bd;
}

[data-theme="dark"] .video-views,
[data-theme="dark"] .video-date,
[data-theme="dark"] .main-video-views,
[data-theme="dark"] .main-video-date {
    color: #adb5bd;
}

/* قسم خدمتنا ورائج الآن */
.services-trending-section {
    padding: 3rem 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
    overflow: hidden;
}

.services-trending-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 20%, rgba(220, 53, 69, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(220, 53, 69, 0.05) 0%, transparent 50%);
    animation: backgroundFloat 20s ease-in-out infinite;
}

.dark-mode .services-trending-section {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
}

.dark-mode .services-trending-section::before {
    background: 
        radial-gradient(circle at 20% 20%, rgba(220, 53, 69, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(220, 53, 69, 0.1) 0%, transparent 50%);
}

@keyframes backgroundFloat {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-10px) rotate(1deg);
    }
}

.services-trending-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* قسم خدمتنا */
.services-section {
    background: #fff;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.dark-mode .services-section {
    background: #2d2d2d;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.services-section .section-header {
    margin-bottom: 2rem;
}

.services-section .section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 0.5rem;
    position: relative;
    animation: titleGlow 3s ease-in-out infinite;
}

.services-section .section-title::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #dc3545, #ff6b6b);
    transition: width 0.6s ease;
    border-radius: 2px;
}

.services-section:hover .section-title::after {
    width: 100%;
}

.dark-mode .services-section .section-title {
    color: #fff;
}

@keyframes titleGlow {
    0%, 100% {
        text-shadow: 0 0 5px rgba(220, 53, 69, 0.3);
    }
    50% {
        text-shadow: 0 0 15px rgba(220, 53, 69, 0.6);
    }
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.service-card {
    background: #f8f9fa;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    border: 1px solid #e9ecef;
    position: relative;
    animation: serviceCardFloat 6s ease-in-out infinite;
}

.service-card:nth-child(1) { animation-delay: 0s; }
.service-card:nth-child(2) { animation-delay: 1s; }
.service-card:nth-child(3) { animation-delay: 2s; }
.service-card:nth-child(4) { animation-delay: 3s; }

.dark-mode .service-card {
    background: #1a1a1a;
    border-color: #333;
}

.service-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 35px rgba(220, 53, 69, 0.2);
    border-color: #dc3545;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(220, 53, 69, 0.1), transparent);
    transition: left 0.6s ease;
    z-index: 1;
}

.service-card:hover::before {
    left: 100%;
}

@keyframes serviceCardFloat {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-3px);
    }
}

.service-image {
    height: 120px;
    overflow: hidden;
    position: relative;
}

.service-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(220, 53, 69, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.service-card:hover .service-image::after {
    opacity: 1;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    filter: brightness(0.9);
}

.service-card:hover .service-image img {
    transform: scale(1.1) rotate(1deg);
    filter: brightness(1.1);
}

.service-content {
    padding: 1rem;
}

.service-title {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
    line-height: 1.3;
    transition: all 0.3s ease;
    position: relative;
}

.service-title::before {
    content: '';
    position: absolute;
    left: -10px;
    top: 50%;
    width: 3px;
    height: 0;
    background: linear-gradient(180deg, #dc3545, #ff6b6b);
    transition: height 0.3s ease;
    transform: translateY(-50%);
}

.service-card:hover .service-title::before {
    height: 80%;
}

.service-card:hover .service-title {
    color: #dc3545;
    transform: translateX(5px);
}

.dark-mode .service-title {
    color: #fff;
}

.dark-mode .service-card:hover .service-title {
    color: #ff6b6b;
}

.service-description {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 0.8rem;
    line-height: 1.4;
}

.dark-mode .service-description {
    color: #ccc;
}

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

.service-price,
.service-status {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: #fff;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-price::before,
.service-status::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;
}

.service-card:hover .service-price::before,
.service-card:hover .service-status::before {
    left: 100%;
}

.service-card:hover .service-price,
.service-card:hover .service-status {
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.4);
}

.service-time {
    color: #888;
}

.dark-mode .service-time {
    color: #aaa;
}

/* قسم رائج الآن */
.trending-section {
    background: #fff;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.dark-mode .trending-section {
    background: #2d2d2d;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.trending-section .section-header {
    margin-bottom: 2rem;
}

.trending-section .section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 0.5rem;
    position: relative;
    animation: titleGlow 3s ease-in-out infinite;
    animation-delay: 1s;
}

.trending-section .section-title::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #dc3545, #ff6b6b);
    transition: width 0.6s ease;
    border-radius: 2px;
}

.trending-section:hover .section-title::after {
    width: 100%;
}

.dark-mode .trending-section .section-title {
    color: #fff;
}

.trending-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.trending-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 12px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    border: 1px solid #e9ecef;
    position: relative;
    animation: trendingItemSlide 8s ease-in-out infinite;
}

.trending-item:nth-child(1) { animation-delay: 0s; }
.trending-item:nth-child(2) { animation-delay: 1.5s; }
.trending-item:nth-child(3) { animation-delay: 3s; }
.trending-item:nth-child(4) { animation-delay: 4.5s; }

.dark-mode .trending-item {
    background: #1a1a1a;
    border-color: #333;
}

.trending-item:hover {
    transform: translateX(-8px) scale(1.02);
    box-shadow: 0 12px 30px rgba(220, 53, 69, 0.15);
    border-color: #dc3545;
}

.trending-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.05), transparent);
    border-radius: 12px;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.trending-item:hover::before {
    opacity: 1;
}

@keyframes trendingItemSlide {
    0%, 100% {
        transform: translateX(0px);
    }
    50% {
        transform: translateX(-3px);
    }
}

.trending-image {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}

.trending-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(220, 53, 69, 0.2), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
    border-radius: 8px;
}

.trending-item:hover .trending-image::after {
    opacity: 1;
}

.trending-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    filter: brightness(0.9) contrast(1.1);
}

.trending-item:hover .trending-image img {
    transform: scale(1.15) rotate(-2deg);
    filter: brightness(1.1) contrast(1.2);
}

.trending-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.trending-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.4rem;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
}

.trending-title::before {
    content: '';
    position: absolute;
    left: -8px;
    top: 50%;
    width: 2px;
    height: 0;
    background: linear-gradient(180deg, #dc3545, #ff6b6b);
    transition: height 0.3s ease;
    transform: translateY(-50%);
}

.trending-item:hover .trending-title::before {
    height: 70%;
}

.trending-item:hover .trending-title {
    color: #dc3545;
    transform: translateX(3px);
}

.dark-mode .trending-title {
    color: #fff;
}

.dark-mode .trending-item:hover .trending-title {
    color: #ff6b6b;
}

.trending-excerpt {
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 0.6rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.dark-mode .trending-excerpt {
    color: #ccc;
}

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

.trending-category {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: #fff;
    padding: 0.2rem 0.5rem;
    border-radius: 10px;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

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

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

.trending-item:hover .trending-category {
    transform: scale(1.1);
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.4);
}

.trending-time {
    color: #888;
}

.dark-mode .trending-time {
    color: #aaa;
}

/* تحسينات الاستجابة */
@media (max-width: 992px) {
    .services-trending-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .trending-item {
        padding: 0.8rem;
    }
    
    .trending-image {
        width: 70px;
        height: 70px;
    }
}

@media (max-width: 768px) {
    .services-trending-section {
        padding: 2rem 0;
    }
    
    .services-section,
    .trending-section {
        padding: 1.5rem;
    }
    
    .services-section .section-title,
    .trending-section .section-title {
        font-size: 1.3rem;
    }
    
    .service-title {
        font-size: 0.9rem;
    }
    
    .trending-title {
        font-size: 0.85rem;
    }
    
    .trending-item {
        flex-direction: column;
        gap: 0.8rem;
    }
    
    .trending-image {
        width: 100%;
        height: 120px;
    }
}

@media (max-width: 576px) {
    .services-grid {
        gap: 1rem;
    }
    
    .service-content {
        padding: 0.8rem;
    }
    
    .trending-list {
        gap: 1rem;
    }
    
    .trending-item {
        padding: 0.6rem;
    }
}

/* ==== Footer Gradient Bars ==== */
.footer-gradient-bar {
    position: absolute;
    left: 0;
    width: 100%;
    height: 6px;
    z-index: 2;
    background: linear-gradient(90deg, #dc3545, #c82333, #dc3545, #34495e, #dc3545);
    background-size: 400% 400%;
    animation: footerGradientMove 8s linear infinite;
    border-radius: 0 0 8px 8px;
}
.footer-gradient-bar.top-bar { top: 0; }
.footer-gradient-bar.bottom-bar { bottom: 0; border-radius: 8px 8px 0 0; }
@keyframes footerGradientMove {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* ==== Footer Wave ==== */
.footer-wave {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 60px;
    z-index: 1;
    pointer-events: none;
}
.footer-wave svg {
    width: 100%;
    height: 100%;
    display: block;
}
.wave-1 { fill: #dc3545; animation: waveMove 12s linear infinite; }
.wave-2 { fill: #c82333; animation: waveMove 16s linear infinite reverse; }
.wave-3 { fill: #34495e; animation: waveMove 20s linear infinite; }
@keyframes waveMove {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100px); }
}

/* ==== Footer Animation & Effects ==== */
.footer {
    box-shadow: 0 0 40px 0 rgba(44,62,80,0.25), 0 8px 32px 0 rgba(220,53,69,0.10);
    position: relative;
    overflow: hidden;
}
.footer .footer-title {
    letter-spacing: 1px;
    text-shadow: 0 2px 8px rgba(220,53,69,0.10);
    position: relative;
}
.footer .footer-title::after {
    content: '';
    display: block;
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, #dc3545, #c82333);
    border-radius: 2px;
    margin: 8px 0 0 auto;
    animation: expand 2s ease-in-out infinite;
}

/* ==== Social Links Pulse & Glow ==== */
.social-link.pulse {
    animation: pulseGlow 1.5s infinite alternate;
    box-shadow: 0 0 0 0 rgba(220,53,69,0.15);
}
.social-link.pulse:hover {
    animation: pulseGlowHover 0.7s infinite alternate;
    box-shadow: 0 0 16px 4px #dc3545, 0 0 32px 8px #c82333;
    background: linear-gradient(135deg, #dc3545 60%, #c82333 100%);
    color: #fff;
    transform: scale(1.12) translateY(-4px);
}
@keyframes pulseGlow {
    0% { box-shadow: 0 0 0 0 rgba(220,53,69,0.15); }
    100% { box-shadow: 0 0 12px 4px #dc3545; }
}
@keyframes pulseGlowHover {
    0% { box-shadow: 0 0 16px 4px #dc3545, 0 0 32px 8px #c82333; }
    100% { box-shadow: 0 0 32px 8px #c82333, 0 0 16px 4px #dc3545; }
}

/* ==== Footer Responsive & AOS ==== */
@media (max-width: 992px) {
    .footer .row > div { margin-bottom: 2rem; }
    .footer-wave { height: 40px; }
}
@media (max-width: 576px) {
    .footer .row { flex-direction: column; }
    .footer-gradient-bar, .footer-wave { height: 24px; }
}

/* ==== تحسين توزيع الأعمدة بالفوتر ==== */
.footer .row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; }
.footer .row > div { min-width: 180px; }

/* ==== تحسينات إضافية ==== */
.footer hr { border-top: 2px solid #dc3545; opacity: 0.15; }
.footer .newsletter-form .form-control:focus { box-shadow: 0 0 0 0.2rem rgba(220,53,69,0.15); border-color: #dc3545; }
.footer .newsletter-form .btn:hover { background: #c82333; }

/* قائمة الأقسام المنسدلة للموبايل */
.categories-dropdown-mobile {
    display: none;
    position: absolute;
    top: 60px;
    right: 10px;
    left: 10px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(220,53,69,0.12);
    z-index: 2000;
    padding: 1rem 0.5rem;
    flex-direction: column;
    gap: 0.5rem;
    border: 1.5px solid #dc3545;
    transition: all 0.3s;
}
.categories-dropdown-mobile.show {
    display: flex;
}

@media (max-width: 768px) {
    .categories-list-horizontal { display: none !important; }
    .navbar-brand { display: none !important; }
    .categories-dropdown-mobile { display: none; }
    .categories-dropdown-mobile.show { display: flex; }
    .hamburger-btn { display: block !important; }
}
@media (min-width: 769px) {
    .categories-dropdown-mobile { display: none !important; }
    .hamburger-btn { display: none !important; }
}

/* تحسين زر الهامبرجر */
.hamburger-btn {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 0.5rem 1rem;
    font-size: 1.3rem;
    box-shadow: 0 2px 8px rgba(220,53,69,0.08);
    transition: all 0.2s;
    margin-left: 0.5rem;
    z-index: 2100;
}
.hamburger-btn:focus { outline: none; }
.hamburger-menu { display: flex; flex-direction: column; gap: 3px; }
.hamburger-menu span { width: 24px; height: 3px; background: #fff; border-radius: 2px; transition: all 0.3s; }
.hamburger-btn.active .hamburger-menu span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger-btn.active .hamburger-menu span:nth-child(2) { opacity: 0; }
.hamburger-btn.active .hamburger-menu span:nth-child(3) { transform: rotate(-45deg) translate(7px, -6px); }

/* زر الهامبرجر يظهر دائماً */
.hamburger-btn {
    display: block !important;
}

/* قائمة الأقسام المنسدلة تظهر دائماً عند الضغط على الزر */
.categories-dropdown-mobile {
    display: none;
    position: absolute;
    top: 60px;
    right: 10px;
    left: 10px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(220,53,69,0.12);
    z-index: 2000;
    padding: 1rem 0.5rem;
    flex-direction: column;
    gap: 0.5rem;
    border: 1.5px solid #dc3545;
    transition: all 0.3s;
}
.categories-dropdown-mobile.show {
    display: flex;
}

/* لا تخفي زر الهامبرجر على الديسكتوب */
@media (min-width: 769px) {
    .categories-dropdown-mobile { display: none !important; }
    /* شريط الأقسام الأفقي يبقى ظاهر */
    .categories-list-horizontal { display: flex !important; }
    /* زر الهامبرجر يبقى ظاهر */
    .hamburger-btn { display: block !important; }
}

/* إخفاء شعار الموقع على الموبايل فقط */
@media (max-width: 768px) {
    .navbar-brand { display: none !important; }
    .categories-list-horizontal { display: none !important; }
    .categories-dropdown-mobile { display: none; }
    .categories-dropdown-mobile.show { display: flex; }
}

/* قائمة الأقسام المنسدلة (ul) تظهر فوق كل شيء عند الفتح */
.categories-dropdown-mobile {
    display: none;
    position: absolute;
    top: 60px;
    right: 10px;
    left: 10px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(220,53,69,0.12);
    z-index: 3000;
    padding: 1rem 0.5rem;
    flex-direction: column;
    gap: 0.5rem;
    border: 1.5px solid #dc3545;
    transition: all 0.3s;
    list-style: none;
    min-width: 220px;
}
.categories-dropdown-mobile.show {
    display: flex;
}
.categories-dropdown-mobile li {
    width: 100%;
    margin: 0.2rem 0;
}
.categories-dropdown-mobile .category-item {
    width: 100%;
    padding: 0.7rem 1rem;
    border-radius: 8px;
    color: #333;
    background: transparent;
    transition: background 0.2s, color 0.2s;
    display: flex;
    align-items: center;
    gap: 0.7rem;
    font-size: 1rem;
    font-weight: 500;
}
.categories-dropdown-mobile .category-item:hover {
    background: linear-gradient(90deg, #dc3545 0%, #c82333 100%);
    color: #fff;
}