* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    max-width: 100vw;
}

body {
    overflow-x: hidden; /* Hides horizontal scroll */
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    height: 100vh;
    width: 100vw;
    background-color: #E0E0E0;
    text-align: center;
    overflow-x: hidden;
}

header {
    background-color: rgb(219, 221, 220);
    width: 100vw;
    height: auto;
    max-width: 100%;
    object-fit: cover;
}

.login {
    padding: 0px 15px 0px 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header img {
    width: 100%;
    height: 90%;
}

.head_name {
    padding: 10px;
    width: 25%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.head_name h1 {
    margin: 0;
    font-size: 24px;
}

.login_profile img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid gray;
}

/* General Navbar Styling */
nav {
    background: #222; /* Dark theme */
    padding: 12px 0;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
}

/* Navbar Container */
.containNav {
    width: 100%; /* Keeps content centered */
    max-width: 1400px;
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Navbar Brand */
.navbar-brand {
    font-size: 1.5rem;
    font-weight: bold;
    color: black !important;
}

/* Navbar Items */
.navbar-nav {
    display: flex;
    justify-content: space-around;
    width: 100%;
}

/* Navbar Links */
.navbar-nav .nav-item {
    margin: 0 10px;
}

.navbar-nav .nav-link {
    color: black !important;
    font-weight: 500;
    padding: 10px 15px;
    border-radius: 5px;
    transition: all 0.3s ease-in-out;
    background: transparent;
}

/* Hover Effect */
.navbar-nav .nav-link:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

/* Dropdown Styling */
.dropdown-menu {
    background: #333;
    border-radius: 5px;
    padding: 10px 0;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.3);
}

.dropdown-menu .dropdown-item {
    color: black;
    padding: 8px 15px;
    transition: background 0.3s ease-in-out;
}

.dropdown-menu .dropdown-item:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Mobile Navigation */
@media (max-width: 992px) {
    .head_name h1 {
        font-size: 10px;
    }

    .containNav {
        display: flex;
        justify-content: flex-start; /* Aligns nav items to the left */
        align-items: center;
        flex-direction: column;
        width: 100%;
    }

    /* Move the hamburger menu (3 lines) to the left */
    .navbar-toggler {
        order: -1; /* Moves it to the left */
        margin-right: auto; /* Pushes it fully to the left */
        margin-left: 10px;
    }

    .navbar-collapse {
        padding: 10px;
        border-radius: 5px;
        width: 100%;
    }

    .navbar-collapse {
        padding: 10px;
        border-radius: 5px;
        width: 100%;
    }

    .navbar-nav {
        flex-direction: column;
        align-items: flex-start; /* Aligns items to the left */
        width: 100%;
    }

    .nav-item {
        width: 100%;
    }

    .nav-link {
        text-align: left; /* Align text to the left */
        display: block;
        width: 100%;
        padding: 12px 15px 12px 0px;
    }

    /* Dropdown Menu Styling */
    .dropdown-menu {
        width: auto;
        position: absolute;
        top: 100%;
        left: auto;
        right: 0; /* Moves dropdowns to the right */
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    }

    .dropdown-menu .dropdown-item {
        text-align: left;
    }
}

.bottom_info ul li {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.bottom_info ul li strong {
    flex-grow: 1;
}

.bottom_info ul li span {
    text-align: right;
    min-width: 120px; /* Adjust width as needed */
    display: inline-block;
}


.slider {
    display: flex;
    width: 200%; /* 2 slides, so 200% width */
    transition: transform 0.5s ease-in-out;
}

.slide {
    display: flex;
    justify-content: center;
    width: 100vw; /* Each slide takes full width */
    flex-shrink: 0;
}

.slide img {
    width: 45%; /* Adjust to fit side by side */
    height: auto;
    object-fit: contain;
    margin: 0 2.5%; /* Add spacing between images */
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .slide {
        display: flex;
        flex-direction: column; /* Stack images vertically */
        align-items: center;
        justify-content: center;
        gap: 10px;
    }

    .slide img {
        width: 80vw; /* Full width */
        height: auto;
    }
}

/* Ensure the slider container is responsive */
.mobile-slider-container {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

/* Slider wrapper for better control */
.mobile-slider {
    display: flex;
    width: 200%; /* 2 images, each 100% width */
    transition: transform 0.5s ease-in-out;
}

/* Slide images */
.mobile-slide {
    width: 100%;
    flex-shrink: 0;
}

/* Image styling */
.mobile-slide img {
    width: 100%;
    height: auto;
    display: block;
}

/* Navigation buttons */
.imgbtn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    font-size: 18px;
}

/* Button positions */
.prev {
    left: 10px;
}

.next {
    right: 10px;
}

.imgbtn:hover {
    background: rgba(0, 0, 0, 0.8);
}

/* Mobile-specific styles */
@media (max-width: 768px) {
    .mobile-slider {
        width: 200%; /* For sliding effect */
    }

    .mobile-slide {
        width: 100vw; /* Full viewport width */
    }
}

/* Navigation Buttons */
.prev, .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    font-size: 20px;
    border-radius: 5px;
}

.prev { left: 10px; }
.next { right: 10px; }

.prev:hover, .next:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .slider-container {
        height: 60vw;
    }
}

.marquee-container {
    width: 100%;
    overflow: hidden;
    background-color: #D32F2F; /* Red background */
    padding: 10px 0;
    margin: 20px 0;
    white-space: nowrap;
    position: relative;
}

.marquee-content {
    display: flex;
    gap: 50px; /* Space between each message */
    color: white;
    font-size: 18px;
    font-weight: bold;
    font-family: 'Arial', sans-serif;
    animation: marquee 20s linear infinite;
    width: max-content;
}

@keyframes marquee {
    from {
        transform: translateX(100%);
    }
    to {
        transform: translateX(-100%);
    }
}


.announcements {
    font-weight: bold;
}

.buttons button {
    background-color: FFFFFF;
    color: #D32F2F;
    border: none;
    padding: 10px 20px;
    margin: 10px;
    font-size: 16px;
    cursor: pointer;
    border-radius: 5px;
}

.buttons button:hover {
    background-color: #b71c1c;
    color: white;
}

.information {
    height: 80vh;
    width: 100vw;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    padding: 20px;
}

.left_info {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 45%;
}

.infoBox {
    background-color: FFCDD2;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Fixed but responsive heights */
.left_info .top_info,
.bottom_info {
    min-height: 40vh; /* Ensures a base height */
    max-height: 40vh; /* Prevents excessive height */
    flex-grow: 1;
    background-color: #e7b69b;
    border-radius: 10px;
    padding: 3vh;
}

/* Right side div */
.right_info {
    width: 45%;
    height: 100vh;
    max-height: 100vh;
    min-height: 320px;
    background-color: #e7b69b;
    border-radius: 10px;
    padding: 20px;
}

.info_title {
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    padding: 10px;
    border-bottom: 2px solid #d32f2f; /* Adds a separator */
    margin-bottom: 10px;
}

/* Make it more adaptive for smaller screens */
@media (max-width: 768px) {
    .information {
        flex-direction: column;
        height: auto;
    }

    .left_info,
    .right_info {
        width: 100%;
    }

    .top_info,
    .bottom_info {
        min-height: 120px;
    }
}

/* Make all sections scrollable when content overflows */
.top_info, .bottom_info, .right_info {
    overflow-y: auto; /* Enable vertical scrolling */
    scrollbar-width: thin; /* Makes scrollbar smaller */
    scrollbar-color: #888 #f0f0f0; /* Scrollbar styling */
}

/* Custom scrollbar for Webkit browsers */
.top_info::-webkit-scrollbar,
.bottom_info::-webkit-scrollbar,
.right_info::-webkit-scrollbar {
    width: 6px; /* Thin scrollbar */
}

.top_info::-webkit-scrollbar-thumb,
.bottom_info::-webkit-scrollbar-thumb,
.right_info::-webkit-scrollbar-thumb {
    background-color: #d32f2f; /* Red scrollbar thumb */
    border-radius: 5px;
}

.top_info::-webkit-scrollbar-track,
.bottom_info::-webkit-scrollbar-track,
.right_info::-webkit-scrollbar-track {
    background: #f0f0f0; /* Light gray track */
}

/* Maintain Fixed Size */
.top_info, .bottom_info {
    min-height: 40vh;
    max-height: 40vh;
    padding: 3vh;
    border-radius: 10px;
    background-color: #e7b69b;
}

.right_info {
    height: 110%;
    min-height: 82vh;
    max-height: 60vh; /* Ensuring it remains scrollable */
    padding: 20px;
    border-radius: 10px;
    background-color: #e7b69b;
}

/* Responsive: Adjust heights for smaller screens */
@media (max-width: 768px) {
    .top_info, .bottom_info {
        min-height: 30vh;
        max-height: 30vh;
    }

    .bottom_info ul{
        padding: 0px;
    }
    
    .right_info {
        height: auto;
        min-height: 200px;
        max-height: 50vh; /* Ensuring usability */
    }
}


.gov-links-section {
    background-color: #ecd1d1; /* Light Pink */
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    margin: 20px auto;
    max-width: 90%;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
}

.section-title {
    background-color: #5A2D2D;
    color: white;
    font-size: 22px;
    font-weight: bold;
    padding: 10px;
    border-radius: 5px;
    display: inline-block;
    margin-bottom: 15px;
}

.gov-links-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    justify-content: center;
    align-items: center;
}

.gov-link {
    background-color: white;
    padding: 10px;
    border-radius: 5px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease-in-out;
}

.gov-link:hover {
    transform: scale(1.05);
}

.gov-link img {
    width: 100%;
    max-width: 180px;
    height: auto;
    border-radius: 5px;
}

.gov-link p {
    font-size: 14px;
    font-weight: bold;
    margin-top: 5px;
    color: #333;
}

.footer {
    background-color: #A5A5A5; /* Gray Background */
    padding: 10px 20px;
    text-align: center;
    font-family: 'Arial', sans-serif;
    font-size: 16px;
    font-weight: bold;
    color: black;
    border-top: 4px solid #d1d1d1;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 90%;
    margin: 0 auto;
}

.visitor-counter {
    display: flex;
    gap: 5px;
}

.footer-content p {
    text-align: left; /* Align footer text to the left */
    flex: 1;
}

.digit {
    background-color: yellow;
    padding: 5px 10px;
    border-radius: 50%;
    font-size: 20px;
    font-weight: bold;
    color: black;
    display: inline-block;
    text-shadow: 1px 1px 2px #666;
}

/* Responsive Footer Adjustments */
@media (max-width: 768px) {
    .footer-content {
        flex-direction: row; /* Ensure text left, digits right */
        justify-content: space-between;
    }

    .visitor-counter {
        justify-content: flex-end; /* Move digits to the right */
        flex: 1;
    }

    .digit {
        font-size: 14px; /* Make digits smaller */
        padding: 3px 7px; /* Reduce padding */
    }
}

.news-container {
    margin: 10px 0px 15px 0px;
    background: #D32F2F;
    padding-top: 10px;
    overflow: hidden;
}

.news-marquee {
    font-size: 18px;
    font-weight: bold;
    color: #fff;
}

.news-item {
    animation: marquee 20s linear infinite;
    margin-right: 50px; /* Space between items */
    display: inline-flex;
    align-items: center;
}

.new-icon {
    width: 40px; /* Adjust size */
    margin-right: 10px;
}

/* Default styling for large screens */
.gov-links-section .gov-links-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

/* Mobile view: slider styles */
@media (max-width: 768px) {
    .gov-slider {
        position: relative;
        overflow: hidden;
        width: 100%;
        max-width: 320px;
        margin: auto;
    }

    .gov-slider-wrapper {
        display: flex;
        transition: transform 0.4s ease-in-out;
    }

    .gov-slide {
        min-width: 100%;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        text-align: center;
    }

    .gov-link {
        background: lightgray;
        padding: 10px;
        border-radius: 5px;
    }

    .gov-prev, .gov-next {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        background: black;
        color: white;
        border: none;
        padding: 10px;
        cursor: pointer;
    }

    .gov-prev { left: 0; }
    .gov-next { right: 0; }
}

.social-media-container {
    display: flex;
    gap: 15px; /* Space between icons */
    justify-content: center;
    align-items: center;
    margin: 20px 0;
}

.social-link img {
    width: 40px; /* Adjust icon size */
    height: 40px;
    transition: transform 0.3s ease-in-out;
}

.social-link img:hover {
    transform: scale(1.1); /* Slight zoom effect on hover */
}

/* Responsive: Adjusts for small screens */
@media screen and (max-width: 600px) {
    .social-media-container {
        gap: 10px; /* Reduce space between icons */
    }
    
    .social-link img {
        width: 30px; /* Smaller icons */
        height: 30px;
    }
}   