body {
    margin: 0;
    font-family: "Noto Sans Devanagari", Arial, sans-serif;
    background-color: #f8f8f8;
}

.top-header {
    background-color: #1b5e20;
    color: white;
    padding: 15px;
    text-align: center;
}

.navbar {
    background-color: #2e7d32;
    text-align: center;
    padding: 10px;
}

.navbar a {
    color: white;
    padding: 10px 12px;
    text-decoration: none;
}

/* ACTIVE MENU */
.navbar a.active {
    background: #1b5e20;
    border-radius: 5px;
}

.container {
    max-width: 1000px;
    margin: auto;
    padding: 10px;
}

.card {
    background: white;
    padding: 20px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
}

table {
    width: 100%;
    border-collapse: collapse;
}

table,
th,
td {
    border: 1px solid #999;
}

th,
td {
    padding: 8px;
    text-align: left;
}

.footer {
    background-color: #1b5e20;
    color: white;
    text-align: center;
    padding: 10px;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
}

.gallery img {
    width: 100%;
    border: 1px solid #ccc;
}

.section-title {
    border-bottom: 2px solid #1b5e20;
    padding-bottom: 5px;
    margin-bottom: 15px;
    color: #1b5e20;
}

/* PHOTO GALLERY */
.gov-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 15px;
}

.gov-gallery figure {
    margin: 0;
    border: 1px solid #ccc;
    background: #fff;
}

.gov-gallery img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

.gov-gallery figcaption {
    padding: 8px;
    font-size: 14px;
    background-color: #f1f1f1;
    text-align: center;
    border-top: 1px solid #ccc;
}

/* VIDEO SECTION */
.gov-video {
    margin-bottom: 25px;
}

.gov-video p {
    font-weight: bold;
    margin-bottom: 8px;
}

.profile-box {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    flex-wrap: wrap;
}

.profile-photo img {
    width: 180px;
    height: 220px;
    object-fit: cover;
    border: 1px solid #1b5e20;
    background: #fff;
}

.profile-text {
    flex: 1;
    font-size: 15px;
    line-height: 1.7;
}

.gov-footer {
    background-color: #1f2f3f;
    color: white;
    margin-top: 40px;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    padding: 30px;
    gap: 20px;
}

.footer-col h3 {
    margin-bottom: 10px;
    border-bottom: 1px solid #ccc;
    padding-bottom: 5px;
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col ul li {
    margin: 6px 0;
}

.footer-col ul li a {
    color: white;
    text-decoration: none;
    font-size: 14px;
}

.footer-col p {
    margin: 6px 0;
    font-size: 14px;
}

.footer-bottom {
    border-top: 1px solid #ccc;
    text-align: center;
    padding: 10px;
    font-size: 14px;
}

.hero-slider {
    width: 100%;
    height: 350px;
    overflow: hidden;
    position: relative;
}

.slide {
    width: 100%;
    height: 350px;
    object-fit: cover;
    position: absolute;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.slide.active {
    opacity: 1;
}

/* Full screen css */
.full-info {
    width: 100%;
    background-color: #f5f5f5;
    /* light govt style */
    padding: 40px 0;
}

/* inner content centered */
.content-wrapper {
    max-width: 1100px;
    margin: auto;
    padding: 0 15px;
}

.full-info h2 {
    color: #1b5e20;
    border-bottom: 2px solid #1b5e20;
    padding-bottom: 8px;
    margin-bottom: 20px;
}

/* layout */
.info-flex {
    display: flex;
    gap: 20px;
    align-items: center;
}

/* text */
.text {
    flex: 2;
    line-height: 1.8;
}

/* image */
.image {
    flex: 1;
}

.image img {
    width: 100%;
    height: auto;
    border: 1px solid #ccc;
}

/* mobile */
@media (max-width: 768px) {
    .info-flex {
        flex-direction: column;
    }
}

.info-section {
    background: #f5f5f5;
    padding: 40px 0;
}

.info-container {
    max-width: 1100px;
    margin: auto;
    display: flex;
    gap: 30px;
    align-items: center;
    padding: 0 15px;
}

.info-image img {
    width: 100%;
    max-width: 500px;
    border-radius: 10px;
}

.info-text {
    line-height: 1.8;
    font-size: 15px;
}

@media (max-width: 768px) {
    .info-container {
        flex-direction: column;
    }
}

/* population box */
.stats-section {
    background: linear-gradient(to right, #4facfe, #00c6ff);
    padding: 40px 0;
}

.stats-container {
    max-width: 1100px;
    margin: auto;
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.stat-box {
    background: white;
    flex: 1;
    text-align: center;
    padding: 20px;
    border-radius: 10px;
}

.stat-box h3 {
    margin-bottom: 10px;
    color: #333;
}

.stat-box p {
    font-size: 28px;
    font-weight: bold;
}

/* Map section */

.map-section {
    padding: 30px 0;
    background: #f5f5f5;
}

.map-container {
    max-width: 1100px;
    margin: auto;
}

/* structure css */
.structure-section {
    padding: 40px 20px;
    background: #f5f5f5;
    text-align: center;
}

.structure-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1100px;
    margin: auto;
}

/* CARD STYLE */
.member-card {
    background: white;
    padding: 20px;
    border-radius: 10px;
    position: relative;
}

/* IMAGE STYLE */
.member-card img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 50%;
    border: 6px solid #eee;
    margin-bottom: 10px;
}

/* NAME */
.member-card h3 {
    margin: 10px 0 5px;
    font-size: 16px;
}

/* DESIGNATION */
.member-card p {
    color: #666;
    font-size: 14px;
}

/* Panchayat css */
.panchayat-section {
    padding: 40px 20px;
    background: #f5f5f5;
    text-align: center;
}

.panchayat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1100px;
    margin: auto;
}

/* CARD */
.member-card {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    position: relative;
}

/* IMAGE */
.member-card img {
    width: 160px;
    height: 160px;
    object-fit: cover;
    border-radius: 50%;
    border: 6px solid #e5e5e5;
    margin-bottom: 10px;
}

/* TEXT */
.member-card h3 {
    font-size: 16px;
    margin: 10px 0 5px;
}

.member-card p {
    color: #666;
    font-size: 14px;
}

/* .member-card::before {
    content: "";
    position: absolute;
    top: 50%;
    left: -40px;
    width: 40px;
    height: 2px;
    background: #444;
} */

/* MOBILE */
@media (max-width: 768px) {
    .panchayat-grid {
        grid-template-columns: 1fr;
    }
}

/* Yojana  */
.yojana-section {
    max-width: 1100px;
    margin: auto;
    padding: 30px 20px;
}

.yojana-item {
    border-left: 4px solid #1b5e20;
    padding-left: 15px;
    margin-bottom: 25px;
}

.yojana-item h3 {
    margin-bottom: 8px;
    color: #333;
}

.yojana-item p {
    line-height: 1.8;
    color: #444;
}

.yojana-item:hover {
    background: #f9f9f9;
}

/* contacts */

.contact-section {
    padding: 40px 20px;
    background: #f5f5f5;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    max-width: 1100px;
    margin: auto;
}

/* CARD */
.contact-card {
    background: #fff;
    border-radius: 10px;
    padding: 15px;
}

/* HEADER COLORS */
.contact-card.red h3 {
    color: #d32f2f;
}

.contact-card.yellow h3 {
    color: #f9a825;
}

.contact-card.green h3 {
    color: #2e7d32;
}

/* ITEM */
.contact-item {
    display: flex;
    justify-content: space-between;
    margin: 10px 0;
    padding-bottom: 8px;
    border-bottom: 1px solid #eee;
}

.contact-item a {
    background: #2e7d32;
    color: white;
    padding: 5px 10px;
    text-decoration: none;
    border-radius: 5px;
    font-size: 13px;
}

/* MOBILE */
@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

.story-section {
    background: #f5f5f5;
    padding: 40px 0;
}

.story-container {
    max-width: 1100px;
    margin: auto;
    display: flex;
    gap: 30px;
    align-items: flex-start;
    padding: 0 15px;
}

/* IMAGE BIGGER */
.story-image {
    flex: 1.2;
}

.story-image img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    border-radius: 10px;
}

/* TEXT */
.story-text {
    flex: 2;
    line-height: 1.9;
    font-size: 15px;
}

/* MOBILE */
@media (max-width: 768px) {
    .story-container {
        flex-direction: column;
    }

    .story-image img {
        height: auto;
    }
}

/* MODAL BACKGROUND */
.modal {
    display: none;
    position: fixed;
    z-index: 999;
    padding-top: 60px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
}

/* IMAGE INSIDE MODAL */
.modal img {
    display: block;
    margin: auto;
    max-width: 90%;
    max-height: 80%;
    border-radius: 10px;
}

.story-image img {
    cursor: pointer;
    transition: transform 0.3s ease;
}

.story-image img:hover {
    transform: scale(1.05);
}

.video-box video {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.video-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.video-box {
    width: 100%;
    max-width: 100%;
    margin: 15px 0;
}

/* wrapper controls overflow */
.video-wrapper {
    width: 100%;
    overflow: hidden;
    border-radius: 8px;
}

/* VIDEO FIX */
.video-wrapper video {
    width: 100%;
    height: auto;
    display: block;
    max-width: 100%;
}

/* DROPDOWN CONTAINER */
.dropdown {
    position: relative;
    display: inline-block;
}

/* BUTTON */
.dropbtn {
    color: white;
    text-decoration: none;
    padding: 10px;
}

/* DROPDOWN MENU */
.dropdown-content {
    display: none;
    position: absolute;
    background-color: white;
    min-width: 180px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 1;
}

/* LINKS */
.dropdown-content a {
    color: #333;
    padding: 10px;
    display: block;
    text-decoration: none;
}

/* HOVER EFFECT */
.dropdown-content a:hover {
    background-color: #d4d0d0;
}

/* SHOW DROPDOWN */
.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown:hover .dropbtn {
    color: yellow;
}

@media (max-width: 768px) {
    .dropdown-content {
        position: static;
    }
}

.pdf-actions {
    margin: 10px 0;
}

.view-btn,
.download-btn {
    display: inline-block;
    margin-right: 10px;
    padding: 8px 12px;
    text-decoration: none;
    border-radius: 5px;
    color: white;
}

/* VIEW BUTTON */
.view-btn {
    background: #1976d2;
}

/* DOWNLOAD BUTTON */
.download-btn {
    background: #2e7d32;
}

.view-btn:hover {
    background: #1565c0;
}

.download-btn:hover {
    background: #1b5e20;
}

/* PDF PREVIEW */
.pdf-section iframe {
    width: 100%;
    height: 500px;
    border: 1px solid #ccc;
    border-radius: 8px;
    margin-top: 10px;
}