/* Reset default margins and padding */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Header  */

/* Header Image Styles */
.header-image-container {
    width: 100%;
    display: flex;
    justify-content: center;
    background-color: #f8f9fa;
    overflow: hidden;
}

.header-image {
    width: 70%;
    max-height: 120px;
    margin: 0 auto;
    object-fit: cover;
    object-position: center;
}

/* Navigation Bar Styles */
.main-nav {
    background-color: #000;
    padding: 0;
}

.main-nav .navbar-nav {
    margin-right: 0;
}

.main-nav .navbar-nav .nav-link {
    color: #fff;
    padding: 10px 15px;
    font-weight: 500;
    text-transform: capitalize;
}

.main-nav .nav-item:hover .nav-link {
    background-color: #222;
}

/* Search Form Styles */
.search-form {
    display: flex;
    align-items: center;
    margin-left: auto;
}

.search-form .form-control {
    height: 30px;
    border-radius: 0;
    border: none;
    padding: 0 10px;
}

.search-form .btn {
    background-color: #fff;
    border: none;
    height: 30px;
    width: 30px;
    padding: 0;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-form .search-btn svg {
    color: #ff0000;
}

/* Responsive Styles */
@media (max-width: 991.98px) {
    .search-form {
        margin: 10px 0;
        width: 100%;
    }
    
    .navbar-collapse {
        background-color: #000;
    }
    
    .main-nav .navbar-nav .nav-link {
        padding-left: 20px;
    }
    
    .header-image {
        width: 90%;
    }
}

@media (max-width: 767.98px) {
    .header-image {
        max-height: 80px;
        width: 95%;
    }
}

@media (max-width: 575.98px) {
    .header-image {
        max-height: 60px;
        width: 100%;
    }
}


/* News Section */
.news-section {
    padding: 20px 0;
}

.news-card {
    background-color: #fff;
    border: none;
}

.card-content {
    padding: 10px 0;
}

.tag {
    display: inline-block;
    color: #fff;
    font-family: Arial, sans-serif;
    font-size: 12px;
    font-weight: bold;
    padding: 2px 8px;
    margin-bottom: 8px;
}

.tag-red {
    background-color: #ff0000;
}

.tag-blue {
    background-color: #0000ff;
}

.card-content h3 {
    color: #000;
    font-family: Arial, sans-serif;
    font-size: 16px;
    font-weight: normal;
    line-height: 1.4;
    margin: 0;
}

@media (max-width: 991px) {
    .news-card img {
        height: 250px;
    }
}

hr {
    height:6px;
    color: #000;
    background:#000;
}


/* Slider Section */
.slider-section {
    padding: 20px 0;
}

/* Section Title */
.section-title {
    color: #ff0000;
    font-family: Arial, sans-serif;
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 15px;
}

/* Slider Card */
.slider-card {
    position: relative;
}

/* Slider Card Image */
.slider-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

/* Custom Gutter */
.custom-gutter {
    --bs-gutter-x: 4px;
}

/* Navigation Buttons */
.carousel-control-prev,
.carousel-control-next {
    width: 40px;
    height: 40px;
    background-color: #ff0000;
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
}

.carousel-control-prev {
    left: 10px;
}

.carousel-control-next {
    right: 10px;
}

/* Navigation Icons */
.carousel-control-prev i,
.carousel-control-next i {
    color: #fff;
    font-size: 20px;
    line-height: 40px;
}

/* Remove default Bootstrap icons */
.carousel-control-prev-icon,
.carousel-control-next-icon {
    display: none;
}

/* Responsive Adjustments for Mobile */
@media (max-width: 575px) {
    .carousel-inner .row {
        flex-wrap: nowrap; /* منع لف العناصر داخل الصف */
    }

    .carousel-inner .col-12 {
        flex: 0 0 100%; /* إجبار الكارد على أخذ عرض 100% */
        max-width: 100%;
    }
}


/* Features and Top Stories Section */

.section-title {
    font-weight: bold;
    color: red;
    margin-bottom: 20px;
}

.news-card {
    position: relative;
    overflow: hidden;
    border-radius: 5px;
}

.news-card img {
    width: 100%;
    height: 307px !important;
    /* height: auto; */
    /* display: block; */
    object-fit: cover;
}

.overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: white;
    padding: 15px;
}

.badge {
    background-color: red;
    color: white;
    padding: 5px 10px;
    font-size: 14px;
    border-radius: 3px;
}

.top-stories {
    list-style: none;
    padding: 0;
}

.top-stories li {
    display: flex;
    align-items: center;
    font-size: 16px;
    padding: 10px 0;
    border-bottom: 1px solid #ddd;
}

.number {
    display: inline-block;
    width: 30px;
    height: 30px;
    background: red;
    color: white;
    text-align: center;
    line-height: 30px;
    font-weight: bold;
    margin-right: 10px;
    border-radius: 3px;
}

/* Responsive */
@media (max-width: 768px) {
    .top-stories {
        margin-top: 20px;
    }

    .news-card img {
        height: 250px;
        object-fit: cover;
    }
    .stories {
        margin-bottom: 16px;
    }
}

.feature {
    margin-bottom: 60px;
}

/*Start Footer*/
.footer {
    background-color: #333;
    color: #EEE;
    padding: 20px;
    position: fixed;
    bottom: 0px;
    left: 0px;
    width: 100%;
}