/* Basic Reset and Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    color: #333;
    line-height: 1.6;
}

/* Header Styles */
header h1, .ministry-logo {
    font-family: 'Amiri', serif;
    font-size: 2.8rem;
    color: #9c1616;
    font-weight: bold;
    letter-spacing: 1px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
    text-align: right;
    margin: 0;
}

/* Navbar Styles */
.navbar {
    font-family: 'Amiri', serif, sans-serif;
    font-size: 1.1rem;
    padding-right: 5px;
}

.navbar-brand {
    font-size: 1rem;
    font-weight: bold;
    color: #7e270f;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

.navbar-brand:hover {
    color: #d32f2f;
}

.navbar-nav .nav-item {
    margin: 0 5px;
    padding-left: 70px;
}

.navbar-nav .nav-link {
    font-size: 1.2rem;
    color: #f1f1f1;
    padding: 8px 15px;
    border-radius: 8px;
    transition: color 0.3s ease, background-color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: #ffffff;
    background-color: #0056b3;
}

.navbar-toggler {
    border: none;
    color: #ffffff;
}

.navbar-toggler-icon {
    color: #ffffff;
}

/* Last Nav Item */
.navbar-nav .nav-item:last-child .nav-link {
    font-weight: bold;
    color: #ffdd57;
}

/* Carousel Styles */
.carousel-item img {
    height: 500px;
    object-fit: cover;
    border-radius: 4px;
}

/* News Card Styles */
.news-card {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease;
    margin-bottom: 20px;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.news-card img {
    border-radius: 8px 8px 0 0;
    width: 100%;
    height: auto;
}

.news-card .card-body {
    padding: 15px;
    text-align: center;
}

/* Widget Styles */
.widget {
    background-color: #67ba5f;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 15px;
}
/* Main News Section */
.main-news-title {
    font-size: 2rem;
    font-weight: 700;
    color: #004b87;
    border-bottom: 3px solid #004b87;
    padding-bottom: 12px;
    margin-bottom: 25px;
    text-align: right;
    border: 1px solid #ddd; /* Add a light border around the news section */
    background-color: #f9f9f9; /* Light background color */
    padding: 15px; /* Add padding inside the section */
    border-radius: 8px; /* Rounded corners for the border */
}

.main-news-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
    padding-right: 15px;
    text-align: justify;
    background-color: #fff; /* White background for the text */
    border-radius: 5px; /* Rounded corners for the text container */
    padding: 20px; /* Padding for better text spacing */
    border: 1px solid #ddd; /* Light border around the text */
}

/* Previous News Widgets */
.widget {
    background-color: #f1f1f1; /* Light background color */
    border: 1px solid #ddd; /* Border around widgets */
    border-radius: 5px;
    padding: 15px; /* Padding inside each widget */
    margin-bottom: 15px; /* Space between widgets */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Soft shadow for depth */
}

        

/* Style to resize the carousel images */
.carousel-inner .carousel-item img {
    width: 100%;         /* Ensures the image fills the container width */
    height: 100px;       /* Adjusts the height of the image */
    object-fit: cover;   /* Ensures the image maintains its aspect ratio and covers the container */
}

/* Optional: Adjust the size of the carousel container */
.carousel-inner {
    max-height: 300px;   /* Controls the maximum height of the carousel container */
}

    

.widget h5 {
    font-size: 1.2rem;
    color: #0056b3;
    margin-bottom: 10px;
}

.widget p {
    font-size: 0.9rem;
    color: #777;
}

/* Mobile Adjustments */
@media (max-width: 767px) {
    .main-news-title {
        font-size: 1.6rem;
        padding: 10px;
    }

    .main-news-text {
        font-size: 1rem;
    }

    .widget {
        padding: 10px;
    }
}


/* Social Media Icons */
.social-icons a {
    color: #9f1010;
    background-color: #6e1010;
    font-size: 1.5rem;
    padding: 12px;
    margin-right: 8px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background-color: #007bff;
    color: white;
    transform: scale(1.1);
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    width: 100%;
    background-color: #5f3dc4;
    color: white;
    text-align: center;
    padding: 15px;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.3);
    font-size: 1rem;
    z-index: 1000;
}



/* Footer Section Styling */
footer {
    background: linear-gradient(to right, #1c1c1c, #333333);
    color: #ffffff;
    padding-top: 3rem;
}

footer h5, footer p, footer a {
    color: #ffffff;
}

footer h5 {
    font-weight: 600;
    font-size: 1.9rem;
    margin-bottom: 20px;
}

footer a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: #f39c12; /* Gold color on hover */
}

footer .list-unstyled li {
    margin-bottom: 10px;
}

/* Responsive Adjustments */
@media (max-width: 767px) {
    header h1, .ministry-logo {
        font-size: 2.2rem;
    }

    .navbar-nav {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
        padding: 10px 0;
    }

    .navbar-nav .nav-link {
        font-size: 1rem;
        padding: 10px 20px;
        width: 100%;
        text-align: left;
    }

    .col-12, footer p {
        text-align: center;
        font-size: 1rem;
    }

    .navbar-nav .nav-item {
        margin: 5px 0;
        padding-left: 0;
    }

    .cookie-banner {
        font-size: 0.9rem;
        padding: 10px;
    }

    .social-icons a {
        padding: 10px;
        font-size: 1.2rem;
    }
}

/* Desktop Adjustments */
@media (min-width: 992px) {
    .ministry-logo {
        font-size: 3rem;
    }

    .navbar-nav .nav-link {
        font-size: 1.1rem;
    }
}

/* Video Section Styling */
section h3 {
    font-weight: bold;
    color: rgb(11, 56, 94);
    font-size: 1.3rem;
}

.main-news-title {
    font-size: 1.5rem;
}

.previous-news-header {
    font-size: 1.2rem;
}

/* Carousel for mobile */
@media (max-width: 767px) {
    .carousel-item img {
        object-fit: cover;
        width: 100%; /* Ensures the image spans the full width */
        height: 400px; /* Sets a fixed height for mobile */
    }
}

    

