/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #059669;
    --secondary-color: #fbbf24;
    --accent-color: #0d9488;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --bg-light: #f9fafb;
    --white: #ffffff;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
}

body {
    font-family: 'Poppins', 'Noto Sans Devanagari', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-light);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.header {
    background: linear-gradient(135deg, var(--primary-color) 0%, #047857 100%);
    color: var(--white);
    padding: 20px 0;
    box-shadow: var(--shadow);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo img {
    height: 80px;
    width: auto;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
    object-fit: contain;
}

.logo-text h1 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.logo-text p {
    font-size: 0.9rem;
    opacity: 0.9;
    font-weight: 400;
}

.govt-badge {
    background-color: var(--secondary-color);
    color: var(--text-dark);
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: var(--shadow);
}

/* Navigation */
.navbar {
    background-color: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar .container {
    position: relative;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 10px;
    gap: 5px;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1001;
    outline: none;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    transition: all 0.3s ease;
    border-radius: 2px;
}

.nav-menu {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    padding: 15px 0;
    margin: 0;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 5px;
    transition: all 0.3s ease;
    display: block;
}

.nav-menu a:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

/* Hero Section */
.hero {
    position: relative;
    height: 600px;
    background: linear-gradient(rgba(5, 150, 105, 0.75), rgba(4, 120, 87, 0.75)),
                url('images/gangrai-grampanchayat.png') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-align: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(5, 150, 105, 0.6) 0%, rgba(4, 120, 87, 0.6) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 20px;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 15px;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 20px;
    opacity: 0.95;
}

.hero-info {
    background-color: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 15px 30px;
    border-radius: 30px;
    display: inline-block;
    font-size: 1.1rem;
    font-weight: 600;
}

/* Section Styles */
section {
    padding: 60px 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 50px;
    color: var(--primary-color);
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

/* Building Section */
.building-section {
    background: linear-gradient(135deg, var(--bg-light) 0%, var(--white) 100%);
    padding: 60px 0;
}

.building-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.building-image {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    background-color: var(--white);
}

.building-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 15px;
    object-fit: cover;
    max-height: 500px;
}

.building-info h2 {
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 25px;
    font-weight: 700;
}

.building-info p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.building-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background-color: var(--bg-light);
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.feature-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.feature-item span {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 1rem;
}

/* Overview Section */
.overview-section {
    background-color: var(--white);
}

.overview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.overview-card {
    background: linear-gradient(135deg, var(--white) 0%, var(--bg-light) 100%);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 2px solid transparent;
}

.overview-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.card-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.overview-card h3 {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 10px;
    font-weight: 600;
}

.overview-card p {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-dark);
}

/* Population Section */
.population-section {
    background-color: var(--bg-light);
}

.population-table-container {
    overflow-x: auto;
    box-shadow: var(--shadow);
    border-radius: 10px;
    background-color: var(--white);
}

.population-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 500px;
}

.population-table thead {
    background: linear-gradient(135deg, var(--primary-color) 0%, #047857 100%);
    color: var(--white);
}

.population-table th,
.population-table td {
    padding: 20px;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
}

.population-table th {
    font-weight: 700;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.population-table tbody tr:hover {
    background-color: var(--bg-light);
}

.population-table tbody tr:last-child td {
    border-bottom: none;
}

.population-table td {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
}

/* Schemes Section */
.schemes-section {
    background-color: var(--white);
}

.scheme-description {
    max-width: 900px;
    margin: 0 auto 50px;
    text-align: center;
}

.scheme-main-images {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.scheme-main-image {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 4px solid var(--primary-color);
}

.scheme-main-image img {
    width: 100%;
    height: auto;
    display: block;
}

.scheme-description p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.image-caption {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 15px 20px;
    text-align: center;
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
}

.activity-info {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 40px;
    border-left: 5px solid var(--primary-color);
}

.activity-info h3 {
    color: var(--primary-color);
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.activity-info p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-dark);
}

.scheme-gallery {
    display: flex;
    overflow-x: auto;
    gap: 20px;
    padding: 20px 0;
    margin-bottom: 50px;
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) var(--bg-light);
}

.scheme-gallery::-webkit-scrollbar {
    height: 8px;
}

.scheme-gallery::-webkit-scrollbar-track {
    background: var(--bg-light);
    border-radius: 10px;
}

.scheme-gallery::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 10px;
}

.scheme-gallery::-webkit-scrollbar-thumb:hover {
    background: #047857;
}

.gallery-item {
    flex: 0 0 280px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    aspect-ratio: 4/3;
    border: 3px solid var(--primary-color);
    background-color: var(--white);
}

.gallery-item:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-color);
}

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

.scheme-highlight {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.highlight-card {
    background: linear-gradient(135deg, var(--white) 0%, var(--bg-light) 100%);
    padding: 40px 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-top: 4px solid var(--primary-color);
}

.highlight-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.highlight-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.highlight-card h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.highlight-card p {
    color: var(--text-light);
    font-size: 1rem;
    line-height: 1.6;
}

/* Location Section */
.location-section {
    background-color: var(--bg-light);
}

.location-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
    align-items: start;
}

.location-info {
    background-color: var(--white);
    padding: 40px;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.location-info h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 25px;
    font-weight: 700;
}

.location-info h4 {
    color: var(--primary-color);
    font-size: 1.3rem;
    font-weight: 700;
    margin-top: 30px;
    margin-bottom: 20px;
}

.location-description {
    margin-bottom: 25px;
}

.location-description p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.location-details p {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 10px;
}

.location-info p i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

.map-container {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    height: 450px;
}

.map {
    width: 100%;
    height: 100%;
}

/* Contact Section */
.contact-section {
    background-color: var(--bg-light);
}

.contact-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}

.contact-info {
    background-color: var(--white);
    padding: 40px;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.contact-item {
    display: flex;
    align-items: start;
    gap: 20px;
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--bg-light);
}

.contact-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.contact-item i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-top: 5px;
}

.contact-item h4 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 10px;
    font-weight: 700;
}

.contact-item p {
    color: var(--text-dark);
    font-size: 1rem;
    line-height: 1.8;
}

.office-hours {
    background-color: var(--white);
    padding: 40px;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.office-hours h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 25px;
    font-weight: 700;
}

.office-hours p {
    font-size: 1.1rem;
    color: var(--text-dark);
    margin-bottom: 15px;
    line-height: 1.8;
}

.office-hours strong {
    color: var(--primary-color);
}

/* Footer */
.footer {
    background: linear-gradient(135deg, var(--primary-color) 0%, #047857 100%);
    color: var(--white);
    padding: 50px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h4 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.footer-section p {
    opacity: 0.9;
    line-height: 1.8;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: var(--white);
    text-decoration: none;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.footer-section ul li a:hover {
    opacity: 1;
    text-decoration: underline;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-bottom p {
    margin-bottom: 10px;
    opacity: 0.9;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        text-align: center;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .hero {
        height: 500px;
    }
    
    .building-image img {
        max-height: 400px;
    }

    .scheme-main-images {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .section-title {
        font-size: 2rem;
    }

    .building-content {
        grid-template-columns: 1fr;
    }

    .building-features {
        grid-template-columns: 1fr;
    }

    .overview-grid {
        grid-template-columns: 1fr;
    }

    .scheme-gallery {
        gap: 15px;
        padding: 15px 0;
    }

    .gallery-item {
        flex: 0 0 220px;
    }

    .scheme-highlight {
        grid-template-columns: 1fr;
    }

    .location-content {
        grid-template-columns: 1fr;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }

    .map-container {
        height: 350px;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--white);
        width: 100%;
        text-align: center;
        transition: left 0.3s ease;
        box-shadow: var(--shadow-lg);
        padding: 20px 0;
        gap: 0;
        max-height: calc(100vh - 70px);
        overflow-y: auto;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        width: 100%;
    }

    .nav-menu a {
        padding: 15px 20px;
        text-align: center;
        width: 100%;
        border-radius: 0;
    }

    .nav-menu a:hover {
        background-color: var(--primary-color);
        color: var(--white);
    }

    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(7px, 7px);
    }

    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }
}

@media (max-width: 480px) {
    .logo-text h1 {
        font-size: 1.4rem;
    }

    .hero-title {
        font-size: 1.8rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .overview-card {
        padding: 20px;
    }

    .scheme-gallery {
        gap: 12px;
    }

    .gallery-item {
        flex: 0 0 180px;
    }
}

