/* 
 * Arabic News Website Styles
 * تنسيقات موقع الأخبار العربي
 */

:root {
    --primary-color: #0066cc;
    --secondary-color: #004999;
    --accent-color: #ff3333;
    --dark-color: #1a1a1a;
    --light-gray: #f5f5f5;
    --border-color: #e0e0e0;
    --text-color: #333333;
    --white: #ffffff;
}

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

html {
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: 'Cairo', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-gray);
    direction: rtl;
    text-align: right;
    overflow-x: hidden;
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--primary-color);
}

img {
    max-width: 100%;
    height: auto;
}

.container,
.container-fluid {
    max-width: 100%;
    overflow-x: hidden;
}

.row {
    margin-left: 0;
    margin-right: 0;
    max-width: 100%;
}

/* Top Bar */
.top-bar {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    color: var(--white);
    padding: 10px 0;
    font-size: 14px;
    border-bottom: 3px solid;
    border-image: linear-gradient(90deg, var(--primary-color), var(--accent-color), var(--primary-color)) 1;
    position: relative;
}

.top-bar-right {
    display: flex;
    align-items: center;
    justify-content: center;
}

.date-time {
    margin-left: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    color: #fff;
}

.date-time i {
    color: var(--primary-color);
    font-size: 16px;
}

.top-bar-left {
    display: flex;
    justify-content: center;
    align-items: center;
}

.social-links {
    display: flex;
    gap: 10px;
    align-items: center;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    border-radius: 50%;
    font-size: 14px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 102, 204, 0.2);
}

.social-links a:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 5px 15px rgba(0, 102, 204, 0.4);
    animation: pulse-small 0.5s ease;
}

@keyframes pulse-small {
    0%, 100% {
        transform: translateY(-3px) scale(1.1);
    }
    50% {
        transform: translateY(-3px) scale(1.15);
    }
}

/* Header */
.main-header {
    background-color: var(--white);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 3px solid;
    border-image: linear-gradient(90deg, var(--primary-color), var(--accent-color), var(--primary-color)) 1;
}

.site-logo {
    font-size: 32px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
    text-shadow: 0 2px 10px rgba(0, 102, 204, 0.1);
    transition: all 0.3s ease;
}

.navbar-brand:hover .site-logo {
    transform: scale(1.05);
}

.navbar {
    padding: 18px 0;
}

.navbar-toggler {
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    padding: 8px 12px;
    transition: all 0.3s ease;
}

.navbar-toggler:focus {
    box-shadow: 0 0 15px rgba(0, 102, 204, 0.3);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgb(0, 102, 204)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar-nav .nav-link {
    color: var(--text-color);
    font-weight: 600;
    padding: 10px 18px;
    transition: all 0.3s ease;
    border-radius: 8px;
    position: relative;
    font-size: 15px;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    transition: width 0.3s ease;
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    width: 60%;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--primary-color);
    background: linear-gradient(135deg, rgba(0, 102, 204, 0.05), rgba(0, 102, 204, 0.1));
    transform: translateY(-2px);
}

.navbar-nav .nav-link i {
    margin-left: 6px;
    transition: transform 0.3s ease;
}

.navbar-nav .nav-link:hover i {
    transform: scale(1.2);
}

.search-form {
    position: relative;
}

.search-form .form-control {
    border-radius: 30px;
    padding: 10px 50px 10px 22px;
    border: 2px solid var(--light-gray);
    width: 250px;
    transition: all 0.4s ease;
    background: #f8f9fa;
    font-size: 14px;
    font-weight: 500;
}

.search-form .form-control:focus {
    width: 320px;
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 4px 20px rgba(0, 102, 204, 0.15);
    background: white;
}

.search-form .btn-search {
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    border: none;
    border-radius: 50%;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 102, 204, 0.3);
}

.search-form .btn-search:hover {
    transform: translateY(-50%) scale(1.12);
    box-shadow: 0 4px 15px rgba(0, 102, 204, 0.5);
    animation: pulse-small 0.5s ease;
}

/* Breaking News */
/* Breaking News Bar - Enhanced Professional Design */
.breaking-news {
    background: linear-gradient(135deg, #c9302c 0%, #d9534f 50%, #c9302c 100%);
    color: var(--white);
    padding: 0;
    width: 100%;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(201, 48, 44, 0.4);
    position: relative;
    z-index: 100;
}

.breaking-news::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        #ffc107 25%, 
        #ffeb3b 50%, 
        #ffc107 75%, 
        transparent 100%);
    animation: shimmer-flow 3s linear infinite;
}

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

.breaking-news::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: rgba(0, 0, 0, 0.2);
}

.breaking-news-wrapper {
    display: flex;
    align-items: stretch;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    min-height: 55px;
}

.breaking-badge {
    background: linear-gradient(135deg, #ffffff 0%, #ffd54f 50%, #ffc107 100%);
    color: #c9302c;
    padding: 0 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-weight: 900;
    font-size: 17px;
    white-space: nowrap;
    position: relative;
    z-index: 1;
    text-transform: uppercase;
    letter-spacing: 2px;
    box-shadow: 3px 0 15px rgba(0, 0, 0, 0.3);
    min-width: 140px;
}

.breaking-badge::after {
    content: '';
    position: absolute;
    right: -15px;
    top: 0;
    bottom: 0;
    width: 30px;
    background: linear-gradient(135deg, #ffc107 0%, transparent 100%);
    transform: skewX(-10deg);
    z-index: -1;
}

.breaking-badge i {
    font-size: 20px;
    animation: bolt-flash 2s infinite;
    filter: drop-shadow(0 0 5px rgba(201, 48, 44, 0.5));
}

@keyframes bolt-flash {
    0%, 100% { 
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
    25% { 
        opacity: 0.8;
        transform: scale(1.15) rotate(-5deg);
    }
    50% { 
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
    75% { 
        opacity: 0.8;
        transform: scale(1.15) rotate(5deg);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.breaking-news-content {
    flex: 1;
    overflow: hidden;
    padding: 0 25px;
    display: flex;
    align-items: center;
    background: linear-gradient(90deg, 
        rgba(0, 0, 0, 0.1) 0%, 
        transparent 5%, 
        transparent 95%, 
        rgba(0, 0, 0, 0.1) 100%);
}

.breaking-news-content marquee {
    font-size: 17px;
    font-weight: 700;
    line-height: 1.6;
}

.breaking-news-content a {
    color: var(--white);
    text-decoration: none;
    margin: 0 35px;
    transition: all 0.3s ease;
    display: inline-block;
    position: relative;
    font-weight: 700;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.breaking-news-content a::before {
    content: '◆';
    position: absolute;
    right: -20px;
    color: #ffc107;
    font-size: 10px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.7;
}

.breaking-news-content a:hover {
    color: #ffd54f;
    text-shadow: 0 0 15px rgba(255, 213, 79, 0.8),
                 1px 1px 3px rgba(0, 0, 0, 0.5);
    transform: scale(1.05);
}

.breaking-news-content .separator {
    color: rgba(255, 255, 255, 0.4);
    margin: 0 20px;
    font-weight: 400;
}

/* Responsive Design - Tablet */
@media (max-width: 991px) {
    .breaking-news-wrapper {
        min-height: 50px;
    }
    
    .breaking-badge {
        padding: 0 25px;
        font-size: 16px;
        letter-spacing: 1.5px;
        min-width: 130px;
    }
    
    .breaking-badge i {
        font-size: 18px;
    }
    
    .breaking-news-content {
        padding: 0 20px;
    }
    
    .breaking-news-content marquee {
        font-size: 16px;
    }
    
    .breaking-news-content a {
        margin: 0 25px;
    }
}

/* Responsive Design - Mobile */
@media (max-width: 768px) {
    .breaking-news-wrapper {
        min-height: 48px;
    }
    
    .breaking-badge {
        padding: 0 20px;
        font-size: 14px;
        letter-spacing: 1px;
        min-width: 110px;
        gap: 8px;
    }
    
    .breaking-badge i {
        font-size: 16px;
    }
    
    .breaking-badge::after {
        right: -12px;
        width: 24px;
    }
    
    .breaking-news-content {
        padding: 0 15px;
    }
    
    .breaking-news-content marquee {
        font-size: 15px;
    }
    
    .breaking-news-content a {
        margin: 0 20px;
        font-weight: 600;
    }
    
    .breaking-news-content a::before {
        right: -15px;
        font-size: 8px;
    }
}

/* Responsive Design - Small Mobile */
@media (max-width: 480px) {
    .breaking-news::before {
        height: 3px;
    }
    
    .breaking-news-wrapper {
        min-height: 44px;
    }
    
    .breaking-badge {
        padding: 0 15px;
        font-size: 13px;
        letter-spacing: 0.8px;
        min-width: 95px;
        gap: 6px;
    }
    
    .breaking-badge i {
        font-size: 14px;
    }
    
    .breaking-badge::after {
        right: -10px;
        width: 20px;
    }
    
    .breaking-news-content {
        padding: 0 12px;
    }
    
    .breaking-news-content marquee {
        font-size: 14px;
    }
    
    .breaking-news-content a {
        margin: 0 15px;
        font-weight: 600;
    }
    
    .breaking-news-content a::before {
        right: -12px;
        font-size: 7px;
    }
    
    .breaking-news-content .separator {
        margin: 0 12px;
    }
}

/* Responsive Design - Extra Small Mobile */
@media (max-width: 360px) {
    .breaking-news::before {
        height: 2px;
    }
    
    .breaking-news-wrapper {
        min-height: 40px;
    }
    
    .breaking-badge {
        padding: 0 12px;
        font-size: 11px;
        letter-spacing: 0.5px;
        min-width: 80px;
        gap: 5px;
    }
    
    .breaking-badge i {
        font-size: 12px;
    }
    
    .breaking-badge::after {
        right: -8px;
        width: 16px;
    }
    
    .breaking-news-content {
        padding: 0 10px;
    }
    
    .breaking-news-content marquee {
        font-size: 13px;
    }
    
    .breaking-news-content a {
        margin: 0 12px;
        font-weight: 600;
    }
    
    .breaking-news-content a::before {
        display: none;
    }
    
    .breaking-news-content .separator {
        margin: 0 10px;
    }
}

/* Main Content */
.main-content {
    padding: 40px 0;
    flex: 1;
    width: 100%;
}

.section-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--primary-color);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -3px;
    right: 0;
    width: 80px;
    height: 3px;
    background-color: var(--accent-color);
}

/* News Cards */
.news-card {
    background-color: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    margin-bottom: 30px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

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

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

/* Cards without images - remove image space completely */
.news-card:not(:has(.news-card-image)) {
    /* No image, more emphasis on content */
}

.news-card:not(:has(.news-card-image)) .news-card-body {
    padding: 25px 20px;
}

/* Badges inside card body (for cards without images) */
.news-card-body .badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-left: 5px;
}

.news-card-body .badge-danger {
    background-color: var(--accent-color);
    color: var(--white);
}

.news-card-body .badge-primary {
    background-color: var(--primary-color);
    color: var(--white);
}

.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.1);
}

.news-card-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.news-card-badge.breaking {
    background-color: var(--accent-color);
}

.video-badge {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background-color: rgba(0, 0, 0, 0.7);
    color: var(--white);
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 14px;
}

.news-card-body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-card-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 10px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
}

.news-card-description {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
}

.news-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: #999;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
}

.news-card-meta i {
    margin-left: 5px;
}

.btn-read-more {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    border-radius: 25px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 102, 204, 0.2);
}

.btn-read-more:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 102, 204, 0.4);
    color: var(--white);
}

.btn-read-more i {
    margin-right: 8px;
    transition: margin 0.3s ease;
}

.btn-read-more:hover i {
    margin-right: 12px;
}

/* Featured News Section */
.featured-news {
    margin-bottom: 50px;
}

.featured-main {
    position: relative;
    height: 500px;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 30px;
}

.featured-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    padding: 40px;
    color: var(--white);
}

.featured-overlay .category-badge {
    background-color: var(--accent-color);
    padding: 5px 15px;
    border-radius: 20px;
    display: inline-block;
    margin-bottom: 15px;
    font-size: 14px;
    font-weight: 600;
}

.featured-overlay h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.3;
}

.featured-overlay p {
    font-size: 16px;
    margin-bottom: 15px;
    opacity: 0.9;
}

.featured-overlay .meta {
    font-size: 14px;
    opacity: 0.8;
}

/* Sidebar Widgets */
.sidebar-widget {
    background-color: var(--white);
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.widget-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--primary-color);
}

/* Weather Widget */
.weather-widget {
    text-align: center;
}

.weather-icon {
    font-size: 60px;
    margin: 20px 0;
}

.weather-temp {
    font-size: 48px;
    font-weight: 700;
    color: var(--primary-color);
}

.weather-city {
    font-size: 18px;
    color: #666;
    margin-top: 10px;
}

.weather-details {
    margin-top: 20px;
    display: flex;
    justify-content: space-around;
}

.weather-detail {
    text-align: center;
}

.weather-detail i {
    color: var(--primary-color);
    font-size: 20px;
    margin-bottom: 5px;
}

.weather-detail span {
    display: block;
    font-size: 14px;
    color: #666;
}

/* Currency Widget */
.currency-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

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

.currency-name {
    font-weight: 600;
    color: var(--dark-color);
}

.currency-value {
    color: var(--primary-color);
    font-weight: 700;
}

.currency-change {
    font-size: 12px;
    margin-right: 10px;
}

.currency-change.up {
    color: #28a745;
}

.currency-change.down {
    color: #dc3545;
}

/* Popular News Widget */
.popular-news-item {
    display: flex;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

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

.popular-news-image {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    margin-left: 15px;
    flex-shrink: 0;
    position: relative;
}

.popular-news-image a {
    display: block;
    width: 100%;
    height: 100%;
}

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

.popular-news-image:hover img {
    transform: scale(1.1);
}

.popular-news-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0);
    transition: background 0.3s ease;
}

.popular-news-image:hover::after {
    background: rgba(0, 0, 0, 0.2);
}

.popular-news-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.popular-news-content h5 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.popular-news-meta {
    font-size: 12px;
    color: #999;
    margin-bottom: 10px;
}

.popular-news-meta i {
    margin-left: 5px;
}

.btn-read-more-small {
    display: inline-block;
    padding: 6px 12px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    border-radius: 20px;
    font-weight: 600;
    font-size: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-top: auto;
    align-self: flex-start;
}

.btn-read-more-small:hover {
    transform: translateX(-3px);
    box-shadow: 0 3px 10px rgba(0, 102, 204, 0.3);
    color: var(--white);
}

.btn-read-more-small i {
    margin-right: 5px;
    font-size: 10px;
    transition: margin 0.3s ease;
}

.btn-read-more-small:hover i {
    margin-right: 8px;
}

/* Footer */
.main-footer {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    color: var(--white);
    padding: 60px 0 0;
    margin-top: auto;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.main-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color), var(--primary-color));
}

.footer-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 25px;
    color: var(--white);
    text-align: center;
    position: relative;
    padding-bottom: 15px;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 2px;
}

.footer-description {
    color: #ccc;
    line-height: 1.8;
    margin-bottom: 25px;
    text-align: center;
    font-size: 15px;
}

.footer-social {
    text-align: center;
    margin-bottom: 20px;
}

.footer-social a {
    display: inline-block;
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    text-align: center;
    line-height: 45px;
    border-radius: 50%;
    margin: 0 8px;
    transition: all 0.3s ease;
    font-size: 18px;
    box-shadow: 0 4px 15px rgba(0, 102, 204, 0.3);
}

.footer-social a:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 8px 25px rgba(0, 102, 204, 0.5);
    animation: pulse 0.5s ease;
}

@keyframes pulse {
    0%, 100% {
        transform: translateY(-5px) scale(1.1);
    }
    50% {
        transform: translateY(-5px) scale(1.15);
    }
}

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

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

.footer-links a {
    color: #ccc;
    transition: all 0.3s ease;
    font-size: 15px;
    display: inline-block;
}

.footer-links a:hover {
    color: var(--white);
    transform: translateX(-5px);
}

.footer-links a i {
    margin-left: 8px;
    color: var(--primary-color);
}

.footer-contact {
    list-style: none;
    padding: 0;
    text-align: center;
}

.footer-contact li {
    margin-bottom: 18px;
    color: #ccc;
    font-size: 15px;
}

.footer-contact i {
    color: var(--primary-color);
    margin-left: 10px;
    width: 25px;
    font-size: 16px;
}

.footer-contact a {
    color: #ccc;
    transition: all 0.3s ease;
}

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

.footer-bottom {
    margin-top: 50px;
    padding: 25px 0;
    background-color: rgba(0, 0, 0, 0.3);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom .row {
    align-items: center;
}

.copyright {
    margin: 0;
    color: #999;
    text-align: center;
    font-size: 14px;
}

.footer-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.footer-menu li {
    margin: 0 15px;
}

.footer-menu a {
    color: #999;
    font-size: 14px;
    transition: all 0.3s ease;
}

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

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--secondary-color);
    transform: translateY(-5px);
}

/* Responsive */
@media (max-width: 991px) {
    .navbar-nav .nav-link {
        padding: 10px 15px;
    }
    
    .search-form .form-control {
        width: 100%;
        margin-top: 10px;
    }
    
    .search-form .form-control:focus {
        width: 100%;
    }
    
    .featured-main {
        height: 350px;
    }
    
    .featured-overlay h2 {
        font-size: 24px;
    }
}

@media (max-width: 767px) {
    .site-logo {
        font-size: 22px;
    }
    
    .breaking-badge {
        font-size: 12px;
        padding: 6px 12px;
    }
    
    .featured-main {
        height: 300px;
    }
    
    .featured-overlay {
        padding: 20px;
    }
    
    .featured-overlay h2 {
        font-size: 20px;
    }
    
    .news-card-image {
        height: 180px;
    }
    
    .footer-menu {
        justify-content: center;
        margin-top: 15px;
    }
    
    .footer-menu li {
        margin: 5px 10px;
    }
    
    .footer-social a {
        width: 40px;
        height: 40px;
        line-height: 40px;
        margin: 0 5px;
        font-size: 16px;
    }
    
    .footer-title {
        font-size: 20px;
    }
    
    .main-footer {
        padding: 40px 0 0;
    }
    
    .back-to-top {
        width: 45px;
        height: 45px;
        bottom: 20px;
        left: 20px;
    }
}

/* Language Switcher */
.language-switcher {
    position: fixed;
    bottom: 100px;
    left: 20px;
    z-index: 9999;
    font-family: 'Cairo', sans-serif;
}

.language-switcher .lang-btn {
    background: linear-gradient(135deg, #0066cc, #004999);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 12px 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(0, 102, 204, 0.4);
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 600;
}

.language-switcher .lang-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 102, 204, 0.6);
    background: linear-gradient(135deg, #004999, #0066cc);
}

.language-switcher .lang-btn i {
    font-size: 18px;
}

.language-switcher .lang-text {
    font-weight: 600;
}

.language-switcher .lang-dropdown {
    position: absolute;
    bottom: 100%;
    left: 0;
    margin-bottom: 10px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    min-width: 180px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    overflow: hidden;
}

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

.language-switcher .lang-option {
    width: 100%;
    padding: 12px 20px;
    border: none;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: left;
    transition: all 0.2s ease;
    color: #333;
    font-size: 15px;
    font-weight: 500;
}

.language-switcher .lang-option:hover {
    background: #f5f5f5;
    color: #0066cc;
}

.language-switcher .lang-option.active {
    background: linear-gradient(135deg, rgba(0, 102, 204, 0.1), rgba(0, 73, 153, 0.1));
    color: #0066cc;
    font-weight: 700;
}

.language-switcher .lang-option.active::after {
    content: '✓';
    margin-left: auto;
    color: #0066cc;
    font-weight: bold;
}

.language-switcher .lang-flag {
    font-size: 20px;
    width: 24px;
    text-align: center;
}

/* RTL Support for Language Switcher */
[dir="rtl"] .language-switcher {
    left: auto;
    right: 20px;
}

[dir="rtl"] .language-switcher .lang-dropdown {
    left: auto;
    right: 0;
}

[dir="rtl"] .language-switcher .lang-option {
    text-align: right;
}

[dir="rtl"] .language-switcher .lang-option.active::after {
    margin-left: 0;
    margin-right: auto;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .language-switcher {
        bottom: 80px;
        left: 15px;
    }
    
    [dir="rtl"] .language-switcher {
        left: auto;
        right: 15px;
    }
    
    .language-switcher .lang-btn {
        padding: 10px 16px;
        font-size: 13px;
    }
    
    .language-switcher .lang-text {
        display: none;
    }
    
    .language-switcher .lang-dropdown {
        min-width: 160px;
    }
}

