body,
html {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: sans-serif;
    scroll-behavior: smooth;
    overflow-x: hidden;
    background: linear-gradient(180deg, #c0dbf1, #e9eff3);
    height: 100%;
    overflow-y: auto;
}

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

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

a:hover {
    color: blue;
}

main {
    padding-top: 20px;
}

.site-header {
    width: 100%;
    max-height: 250px;

    background:
        linear-gradient(rgba(19, 78, 94, 0.7), rgba(113, 178, 128, 0.7)),
        url("https://res.cloudinary.com/dbwwbghdy/image/upload/deer_iznrhx");

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;

    padding: 20px 10px;
}

.header-logo img {
    width: 130px;
    height: auto;
}

.header-info {
    display: flex;
    color: #e6ece6;
    flex-direction: column;
    justify-content: center;
    text-align: center;
}

.header-info h1 {
    font-weight: bolder;
    margin: 0;
}

.header-details {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.header-details h3,
.header-details h4 {
    margin: 0;
    font-weight: bold;
}

.nav-item.dropdown:hover .dropdown-menu{
    display: block;
    margin-top: 0;
    transition: 0.3s ease;
}

@media (max-width: 992px) and (min-width: 577px) {
    .header-logo img {
        width: 100px;
    }

    .header-info h1 {
        font-size: 26px;
    }

    .header-details h3,
    .header-details h4 {
        font-size: 18px;
    }
}
@media(max-width:350px){
    .header-info h1{
        font-size: 18px !important;
    }
    .header-details h3,h4{
        font-size: 12px !important;
    }
}
@media (max-width: 576px) {
    .site-header {
        width: 100%;
        max-height: 250px;
        background:
            linear-gradient(rgba(19, 78, 94, 0.7), rgba(113, 178, 128, 0.7)),
            url("https://res.cloudinary.com/dbwwbghdy/image/upload/d2_jj7v7d");
        background-size: cover;
        background-position: center 30%;
        background-repeat: no-repeat;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        padding: 20px 10px;
    }

    .header-logo img {
        width: 80px;
    }

    .header-info h1 {
        font-size: 20px;
    }

    .header-details h3,
    .header-details h4 {
        font-size: 14px;
    }
}

.site-navbar {
    background-color: #203a43;
    color: #f1f3f4;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
    width: 100%;
    flex-shrink: 0;
}

.navbar-nav {
    gap: 20px;
}

.dropdown-menu {
    background: linear-gradient(135deg, #2c3e50, #34495e);
    border: 1px solid #16a085;
    border-radius: 8px;
    padding: 8px 0;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    min-width: 200px;
}

.dropdown-menu .dropdown-item {
    color: #ecf0f1;
    padding: 12px 20px;
    font-weight: 500;
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
}

.dropdown-menu .dropdown-item:hover {
    background-color: #16a085;
    color: #fff;
    border-left-color: #f39c12;
    padding-left: 24px;
}

@media (max-width: 991px) {
    .navbar-nav {
        gap: 10px;
        text-align: center;
    }

    .navbar-collapse {
        margin-top: 10px;
        text-align: center;
    }

    .dropdown-menu {
        text-align: center;
        background: linear-gradient(135deg, #34495e, #2c3e50);
        border-radius: 8px;
    }

    .dropdown-menu .dropdown-item {
        padding: 10px 15px;
    }
}

.site-footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
    color: #f1f5f9;
    border: 2px solid black;
    border-radius: 8px;
    padding: 15px;
    margin: 10px;
}

.footer-section {
    flex: 1;
    padding: 15px;
    text-align: center;
}

.footer-section h3 {
    font-weight: bold;
}

.footer-section hr {
    width: 50%;
    margin: 5px auto 10px auto;
}

.footer-links ul,
.footer-social ul {
    list-style: none;
    padding-left: 0;
}

.footer-links li {
    margin: 5px 0;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 20px;
    font-size: 25px;
}

.footer-contact p {
    margin: 0;
}

@media (max-width: 992px) {
    .site-footer {
        flex-direction: column;
        align-items: center;
    }

    .footer-section {
        padding: 10px !important;
    }
}

@media (max-width: 576px) {
    .footer-section h3 {
        font-size: 18px;
    }

    .footer-section h6,
    .footer-contact p {
        font-size: 14px;
    }

    .copyright h6 {
        font-size: 12px;
    }
}

.copyright {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    padding: 10px;
    text-align: center;
}

.all-news-page {
    background-color: beige;
    padding: 20px;
}

.all-news-page h4 {
    text-align: center;
    font-weight: bold;
    margin-bottom: 30px;
}

.all-news-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.all-news-card {
    flex: 0 1 45%;
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 10px;
    display: flex;
    gap: 10px;
    align-items: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.all-news-card:hover {
    transform: translateY(-5px) scale(1.03);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

.all-news-card img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
}

.all-news-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
}

.all-news-info h3 {
    margin: 0;
}

.all-news-btn {
    text-decoration: none;
    padding: 8px 15px;
    background-color: #0d6efd;
    color: white;
    border-radius: 5px;
    font-size: 14px;
    text-align: center;
    width: max-content;
}

.all-news-pagination {
    margin-top: 20px;
    text-align: center;
}

.all-news-pagination a {
    margin: 0 5px;
    padding: 8px 12px;
    border-radius: 5px;
    border: 1px solid #0d6efd;
    color: #0d6efd;
    text-decoration: none;
    transition: background-color 0.3s, color 0.3s;
}

.all-news-pagination a:hover {
    background-color: #0d6efd;
    color: white;
}

@media (max-width: 992px) {
    .all-news-card {
        flex: 0 1 70%;
    }
}

@media (max-width: 576px) {
    .all-news-card {
        flex: 0 1 100%;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .all-news-card img {
        width: 100%;
        max-width: 250px;
        height: auto;
    }

    .all-news-info {
        align-items: center;
    }

    .all-news-btn {
        width: 100%;
    }
}


.news-detail-container {
    margin: 50px auto;
    background-color: beige;
    border-radius: 8px;
    padding: 30px;
    max-width: 1000px;
}

.news-detail-image {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
}

.news-detail-image img {
    border: 2px solid rgb(18, 6, 70);
    border-radius: 5px;
    width: 100%;
    max-width: 500px;
    max-height: 400px;
    object-fit: cover;
}

.news-detail-date {
    margin-left: 20px;
    font-weight: bold;
}

.news-detail-title {
    text-align: center;
    margin: 20px 0 30px 0;
}

.news-detail-description {
    padding: 0 20px 20px 20px;
    text-align: justify;
    line-height: 1.6;
}

.news-detail-back {
    text-align: center;
    margin-top: 20px;
}

.news-detail-back a {
    padding: 10px 20px;
}

@media screen and (max-width: 768px) {
    .news-detail-container {
        margin: 20px 10px;
        padding: 20px;
    }

    .news-detail-description {
        padding: 0 10px 20px 10px;
    }
}