/* Overall News Section Styling */
.news-section {
    display: flex;
    justify-content: center;
    padding: 40px 0; /* Add padding to the top and bottom */
}

.news-section-card {
    padding: 0 20px;
}

/* Title and Line Styling */
.news-title {
    font-size: 28px;
    font-weight: bold;
    color: black;
    margin-bottom: 25px;
    text-align: left;
}

.search-result{
    margin-bottom:20px
}

.news-line {
    width: 823px;
    background-color: #cfcfcf;
    margin-top: 5px;
    margin-left:15px
}

/* News Card Styling */
/* News Card Styling */
/* News Card Styling */
.news-card {
    display: flex;
    width: 920px; /* Fixed width for the card */
    height: 195px; /* Fixed height for the card */
    margin-top: 30px;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    background-color: #f0f0f0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border:none
}

/* Image inside the card */
.news-card-img {
    width: 250px; /* Fixed width for the image container */
    height: 195px; /* Same height as the card */
    overflow: hidden; /* Ensure no overflow */
}

.news-card-img img {
    width: 100%; /* Make sure image fills the container's width */
    height: 100%; /* Ensures the image fills the container's height */
    object-fit: cover; /* Ensures the image covers the area without distortion */
}

/* Card Body (Text Section) */
.news-card-body {
    padding: 20px;
    width: calc(100% - 250px); /* Ensure the body takes up the rest of the card's width */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.news-card-body h3 {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
    margin-left:10px;
    margin-top:20px
}

.news-card-body p {
    font-size: 16px;
    margin-top: 5px;
    margin-left:0px
}


/* Container and layout for the search section */
.search-section {
    padding: 30px 0;
}

/* Left Side Menu */
.menu-section {
    padding: 20px;
}

.menu-list {
    list-style: none;
    padding: 0;
}

.menu-list li {
    margin-bottom: 15px;
}

.menu-list li a {
    text-decoration: none;
    color: #17004c;
    font-weight: bold;
    font-size: 18px;
    display: block;
    padding: 10px;
    border-radius: 4px;
    width:138px;
    height:44px
}

.menu-list li a:hover {
    background-color: #17004c;
    color: #fff;
}

/* News Cards */
.news-card {
    display: flex;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    width: 926px; /* Set the width of the cards to 926px */
    height: 195px; /* Set the height of the cards to 195px */
}

.news-card-img img {
    width: 200px;
    height: 195px;
    object-fit: cover;
}

.news-card-body {
    padding: 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.news-card-body h3 {
    font-size: 18px;
    margin: 0 0 10px 0;
}

.news-card-body p {
    font-size: 16px;
    color: #555;
}

/* Title and Line */
.news-title {
    font-size: 28px;
    font-weight: bold;
}

.news-line {
    border-top: 1px solid #ddd;
    margin: 10px 0;
}

@media (min-width: 768px) {
    .col-md-3 {
        flex: 0 0 0%;
        max-width: 25%;
    }}

.card-date{
    font-size:10px !important
}

.search .active {
    background-color: #17004c !important;
    border-radius: 10px !important;;
}

.search .active a {
    color: white !important;;
}

@media (max-width: 768px) {
    /* Overall News Section Styling */

    .news-section {
        padding: 20px 10px;
    }

    .news-section-card {
        padding: 0;
    }

    .row .col-12{
        margin-left:-84px
    }
    /* Title and Line Styling */
    .news-title {
        font-size: 20px;
        font-weight: bold;
        text-align: center;
        width:100% !important
    }

    .search-result {
        text-align: center;
        font-size: 14px;
        margin-bottom: 10px;
    }

    .news-line {
        width: 60%;
        margin: 10px auto;
    }

    /* News Card Styling */
    .news-card {
        width: 100%; /* Full width for mobile */
        height: auto;
        margin-top: 15px;
        flex-direction: column;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        border-radius: 8px;
    }

    .news-card-img {
        width: 100%;
        height: auto;
    }

    .news-card-img img {
        width: 100%;
        height: auto;
        object-fit: cover;
    }

    .news-card-body {
        padding: 15px;
        text-align: left;
        width: 100%
    }

    .news-card-body h3 {
        font-size: 16px;
        font-weight: bold;
        margin-bottom: 8px;
    }

    .news-card-body .card-date {
        font-size: 12px;
        color: #555;
        margin-bottom: 8px;
    }

    /* Left Side Menu Styling for Mobile */
    .menu-section {
        display: flex;
        justify-content: space-around;
        margin-bottom: 20px;
    }

    .menu-list {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        justify-content: center;
        padding: 0;
    }

    .menu-list li {
        margin: 0;
    }

    .menu-list li a {
        padding: 8px 15px;
        font-size: 14px;
        text-align: center;
        border-radius: 4px;
        color: #17004c;
        border: 1px solid #17004c;
        font-weight: bold;
        display: inline-block;
        width: auto;
    }

    .menu-list li a:hover {
        background-color: #17004c;
        color: #fff;
    }


}

@media (max-width: 768px) {

    @media (max-width: 768px) {
        /* Left Side Menu - Mobile Specific Styling */
        .menu-section {
            display: flex;
            justify-content: center;
            margin-bottom: 20px;
        }

        .menu-list {
            display: grid;
            grid-template-columns: 1fr 1fr; /* Two columns */
            gap: 10px; /* Space between buttons */
            width: 100%; /* Full width */
            max-width: 300px; /* Optional: limits the max width for better alignment */
            margin: 0 auto; /* Center align the button group */
            padding: 0;
        }

        .menu-list li {
            list-style-type: none; /* Remove bullet points */
        }

        .menu-list li a {
            display: block;
            padding: 10px;
            font-size: 16px;
            text-align: center;
            color: #17004c;
            border: 1px solid #17004c;
            border-radius: 8px;
            font-weight: bold;
            width: 100%; /* Full width within grid cell */
            box-sizing: border-box;
        }

        .menu-list li a.active {
            background-color: #17004c;
            color: #fff;
        }
    }


}
