body {
    font-family: 'Roboto', Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.top-bar {
    background-color: #f4f4f5;
    padding: 5px 0;
    border-bottom: 1px solid #ddd;
}

.top-bar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.top-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.india-logo {
    width: 40px;
    height: auto;
}

.district-name {
    font-size: 18px;
    font-weight: 700;
    color: #00040a;
}

.english-name {
    font-size: 14px;
    color: #003087;
    font-weight: 400;
}

.top-right {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

.top-right button {
    background: none;
    border: 1px solid #003087;
    color: #003087;
    padding: 2px 8px;
    font-size: 14px;
    cursor: pointer;
    border-radius: 2px;
}

.top-right button:hover {
    background: #003087;
    color: #fff;
}

.top-right select {
    padding: 5px;
    border: 1px solid #003087;
    background: #fff;
    color: #333;
    font-size: 14px;
    border-radius: 2px;
}

.menu-toggle {
    display: none;
    font-size: 20px;
    background: none;
    border: none;
    color: #003087;
    cursor: pointer;
}

.main-nav {
    background-color: #003087;
    padding: 10px 0;
    text-align: center;
}

.main-nav .container {
    display: flex;
    justify-content: center;
    gap: 30px;
}

.main-nav a {
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
}

.main-nav a:hover {
    text-decoration: underline;
}

/* Slideshow */
.slideshow {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    height: 300px;
}

.slides img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: none;
    position: absolute;
    top: 0;
    left: 0;
}

.overlay-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.overlay-text h1 {
    font-size: 48px;
    margin: 0;
    font-weight: 700;
}

.overlay-text p {
    font-size: 20px;
    margin: 10px 0 0;
    font-weight: 400;
}

/* Updates Section */
.updates-section {
    background-color: #fff;
    padding: 20px 0;
    border-bottom: 1px solid #ddd;
}

.updates-header {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.update-tab {
    background-color: #ff8c00;
    color: #fff;
    border: none;
    padding: 8px 15px;
    font-size: 14px;
    cursor: pointer;
    border-radius: 3px;
}

.update-tab.active {
    background-color: #e07b00;
}

.updates-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.updates-content ul {
    list-style-type: disc;
    padding-left: 20px;
    font-size: 14px;
    width: 60%;
}

.updates-content ul li {
    margin-bottom: 10px;
}

.more-link {
    display: inline-block;
    background-color: #ff8c00;
    color: #fff;
    padding: 5px 10px;
    text-decoration: none;
    border-radius: 3px;
    font-size: 14px;
}

.more-link:hover {
    background-color: #e07b00;
}

/* Officers Section */
.officers-section {
    background-color: #fff;
    padding: 20px 0;
    border-bottom: 1px solid #ddd;
}

.officers-section h2 {
    text-align: center;
    color: #a52a2a;
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #a52a2a;
}

.officers-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    text-align: center;
}

.officer img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border: 1px solid #ddd;
    border-radius: 5px;
    margin-bottom: 10px;
}

.officer p {
    font-size: 14px;
    color: #333;
    margin: 0;
    line-height: 1.4;
}

.officer p strong {
    font-weight: 700;
}

/* Stats Section */
.stats-section {
    background-color: #f9f9f9;
    padding: 40px 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.stats-wrapper {
    display: flex;
    flex-direction: column; /* Stack sections vertically */
    gap: 30px; /* Space between sections */
}

.geo-stats, .public-services {
    width: 100%; /* Full width for vertical layout */
}

.geo-stats h2, .public-services h2 {
    text-align: center;
    color: #a52a2a;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
}

.stats-grid, .services-grid {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); /* Responsive grid */
    gap: 20px;
    justify-items: center;
    text-align: center;
}

.stat-item, .service-item {
    background-color: #fff;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 2px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-item img, .service-item img {
    width: 50px;
    height: 50px;
    margin-bottom: 10px;
}

.stat-item p, .service-item p {
    font-size: 16px;
    margin: 5px 0;
    color: #333;
}

.stat-item span, .service-item span {
    font-size: 20px;
    font-weight: 700;
    color: #a52a2a;
}

@media (max-width: 768px) {
    @media (max-width: 768px) {
        .stats-grid, .services-grid {
            display: grid;
            grid-template-columns: 1fr 1fr !important; /* Force 2 columns */
            gap: 10px; /* Reduced gap for better fit */
            min-width: 0; /* Prevent overflow */
        }
    
        .stat-item, .service-item {
            padding: 10px; /* Reduce padding to fit items */
            min-width: 0; /* Ensure items don't overflow */
        }
    }

    .stat-item p, .service-item p {
        font-size: 14px;
    }

    .geo-stats h2, .public-services h2 {
        font-size: 20px;
    }
}

/* Tourist Places Section */
.tourist-places {
    background-color: #fff;
    padding: 20px 0;
    border-bottom: 1px solid #ddd;
}

.tourist-places h2 {
    text-align: center;
    color: #a52a2a;
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #a52a2a;
}

.places-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.place-item {
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 5px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.place-item:hover {
    transform: translateY(-5px);
}

.place-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.place-item h3 {
    font-size: 18px;
    color: #003087;
    margin: 10px;
    font-weight: 700;
}

.place-item p {
    font-size: 14px;
    color: #333;
    margin: 0 10px 10px;
    line-height: 1.5;
}

.place-meta {
    display: flex;
    justify-content: space-between;
    padding: 10px;
    background-color: #e6f0fa;
    font-size: 14px;
    color: #333;
}

/* Services Search Section */
.services-search {
    background-color: #fff;
    padding: 20px 0;
    border-bottom: 1px solid #ddd;
}

.services-search h2 {
    text-align: center;
    color: #a52a2a;
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 10px;
    padding-bottom: 10px;
    border-bottom: 2px solid #a52a2a;
}

.section-subtitle {
    text-align: center;
    font-size: 16px;
    color: #333;
    margin-bottom: 20px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.service-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 20px;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.service-card img {
    width: 40px;
    height: 40px;
    margin-bottom: 10px;
}

.service-card span {
    font-size: 16px;
    color: #333;
    text-align: center;
}

/* Gallery Section */
.gallery-section {
    background-color: #fff;
    padding: 20px 0;
    border-bottom: 1px solid #ddd;
}

.gallery-section h2 {
    text-align: center;
    color: #a52a2a;
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #a52a2a;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); /* Made responsive */
    gap: 20px;
    padding: 0 15px; /* Added padding for better spacing */
}

.gallery-item {
    overflow: hidden;
    border-radius: 5px;
    border: 1px solid #ddd;
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.05);
}

.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

/* Slider Section Styles */
.slider-section {
    background-color: #f9f9f9;
    padding: 20px 0;
    border-top: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
}

.slider-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    overflow: hidden;
    position: relative;
}

.slider-wrapper {
    display: flex;
    animation: slide 15s infinite linear;
    width: max-content;
}

.slider-item {
    display: flex;
    align-items: center;
    margin-right: 40px;
    min-width: 200px;
}

.slider-item img {
    width: 100px;
    height: auto;
    margin-right: 10px;
}

.slider-item p {
    font-size: 14px;
    color: #333;
    margin: 0;
    line-height: 1.4;
}

@keyframes slide {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.slider-wrapper:hover {
    animation-play-state: paused;
}

/* Responsive Design */
@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); /* Adjusted for smaller screens */
    }

    .gallery-item img {
        height: 150px; /* Reduced height for smaller screens */
    }

    .slider-item {
        min-width: 150px;
        margin-right: 20px;
    }

    .slider-item img {
        width: 80px;
    }

    .slider-item p {
        font-size: 12px;
    }
}

/* Footer */
footer {
    background-color: #070707;
    color: #fff;
    padding: 20px 0;
}

footer .container {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-section {
    flex: 1;
    min-width: 200px;
}

.footer-section h3 {
    font-size: 16px;
    margin: 0 0 10px;
    border-bottom: 1px solid #fff;
    padding-bottom: 5px;
}

.footer-section p {
    font-size: 14px;
    margin: 5px 0;
    line-height: 1.5;
}

.footer-section ul li a {
    color: #fff;
    text-decoration: none;
    font-size: 14px;
}

.footer-section ul li a:hover {
    text-decoration: underline;
}

.social-icons {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.social-icons .social-icon img {
    width: 25px;
    height: 25px;
}

.footer-bottom {
    text-align: center;
    background-color: #262627;
    margin-top: 5px;
    text-size-adjust: 10px;
    size: 5px;
}

/* Media Queries for Responsiveness */
@media (max-width: 768px) {
    /* Top Bar */
    .top-bar .container {
        flex-direction: column;
        text-align: center;
        padding: 10px 0;
    }

    .top-left {
        margin-bottom: 10px;
    }

    .top-right {
        justify-content: center;
        flex-wrap: wrap;
    }

    /* Navigation */
    .menu-toggle {
        display: block;
    }

    .main-nav .container {
        display: none;
        flex-direction: column;
        gap: 15px;
        padding: 15px 0;
    }

    .main-nav.active .container {
        display: flex;
    }

    .main-nav a {
        font-size: 18px;
    }

    /* Slideshow */
    .slideshow {
        height: 200px;
    }

    .slides img {
        height: 200px;
    }

    .overlay-text h1 {
        font-size: 32px;
    }

    .overlay-text p {
        font-size: 16px;
    }

    /* Updates Section */
    .updates-content {
        flex-direction: column;
    }

    .updates-content ul {
        width: 100%;
    }

    /* Officers Section */
    .officers-grid {
        grid-template-columns: 1fr;
    }

    /* Stats Section */
    .stats-wrapper {
        flex-direction: column;
    }

    .geo-stats, .public-services {
        width: 100%;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    /* Tourist Places */
    .places-grid {
        grid-template-columns: 1fr;
    }

    /* Services Search */
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Gallery */
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Footer */
    footer .container {
        flex-direction: column;
        text-align: center;
    }

    .social-icons {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    /* Top Bar */
    .district-name {
        font-size: 16px;
    }

    .english-name {
        font-size: 12px;
    }

    .top-right button {
        padding: 2px 6px;
        font-size: 12px;
    }

    .top-right select {
        font-size: 12px;
    }

    /* Slideshow */
    .overlay-text h1 {
        font-size: 24px;
    }

    .overlay-text p {
        font-size: 14px;
    }

    /* Services Search */
    .services-grid {
        grid-template-columns: 1fr;
    }

    /* Gallery */
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    /* General Adjustments */
    h2 {
        font-size: 20px;
    }

    .section-subtitle {
        font-size: 14px;
    }
}