main {
    padding: 0 25px;
}

section {
    padding: 0px;
}

.se1 {
    margin-top: 5vh;
    background-color: #ffffd5;


}

@media (min-width:700px) {

    /* .se1 {
        display: none;
    } */

    /* .se-u2 {
        display: none;
    } */

    .se-u2 li {
        padding: 2px;
    }
}

.se-u2 {
    background-color: rgba(250, 235, 215, 0.524);
    padding: 20px 0 20px 0;
}

.d1 {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    text-align: center;
}

.div {

    background-color: aqua;
    height: 75px;
    width: 75px;
    border-radius: 50%;
}

ul li {
    display: block;
}

.li b {
    text-align: center;
    font-size: small;
}

li p {
    font-size: x-small;
}

.menu-imm {
    /* background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url(/6.Program/chhath-puja/img-video/1.jpg); */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    margin-top: -67px;
    background-color: #f9ffff2e;
    height: 200px;
    width: 104%;
    text-align: center;
}

.menu-imm p {
    font-weight: 600;
    font-size: 30px;
    color: #a7f318;
    margin-top: 150px;
    text-align: center;
}

.menu-imm a {
    margin-top: -3px;
    text-align: center;
}












/* ====================================================== */


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #10b981;
    --primary-dark: #0d9668;
    --text-color: #333;
    --light-bg: #f8fafc;
    --white: #ffffff;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-bg);
    max-width: 1000px;
    margin: auto;
}

.app-container {
    max-width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header Styles */
.app-header {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow);
}

.header-content {
    flex: 1;
}

.app-title {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

.app-subtitle {
    font-size: 0.9rem;
    opacity: 0.9;
}

.village-icon {
    font-size: 2rem;
}


.nav-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.nav-item {
    display: flex;
    text-align: center;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--text-color);
    padding: 0.75rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    background-color: var(--light-bg);
}

.nav-item:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.nav-icon {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.nav-item span {
    font-size: 0.8rem;
    text-align: center;
}

/* Main Content Styles */
.main-content {
    flex: 1;
    padding: 1rem;
    overflow-y: auto;
}



.content-section {
    display: none;
}

.content-section.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-color);
}

/* Card Styles */
.info-card,
.service-item,
.contact-item,
.gallery-item,
.news-item,
.emergency-item {
    background-color: var(--white);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

.info-card:hover,
.service-item:hover,
.contact-item:hover,
.gallery-item:hover,
.news-item:hover,
.emergency-item:hover {
    transform: translateY(-2px);
}

.info-card h3,
.service-item h3,
.contact-item h3,
.emergency-item h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.service-list,
.contact-list,
.emergency-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Gallery Styles */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.gallery-item {
    text-align: center;
}

.image-placeholder {
    background-color: var(--light-bg);
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

/* News Styles */
.news-date {
    color: #666;
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
}

/* Emergency Styles */
.emergency-item {
    border-left: 4px solid var(--primary-color);
}

.emergency-item.police {
    border-left-color: #3b82f6;
}

.emergency-item.ambulance {
    border-left-color: #ef4444;
}

.emergency-item.fire {
    border-left-color: #f59e0b;
}

.emergency-number {
    font-size: 1.2rem;
    font-weight: bold;
    color: #ef4444;
    margin: 0.5rem 0;
}

.contact-number {
    font-weight: bold;
    color: var(--primary-color);
    margin-top: 0.5rem;
}

/* Footer Styles */
.app-footer {
    background-color: var(--primary-color);
    color: white;
    text-align: center;
    padding: 1rem;
    margin-top: auto;
}

.app-footer p {
    margin-bottom: 0.25rem;
    font-size: 0.9rem;
}

/* Install Prompt Styles */
.install-prompt {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--white);
    padding: 1rem;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    display: none;
    z-index: 1000;
}

.install-prompt.show {
    display: block;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }

    to {
        transform: translateY(0);
    }
}

.install-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 100%;
}

.install-buttons {
    display: flex;
    gap: 0.5rem;
}

.install-btn,
.cancel-btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
}

.install-btn {
    background-color: var(--primary-color);
    color: white;
}

.cancel-btn {
    background-color: #e5e7eb;
    color: var(--text-color);
}

/* Responsive Styles */
@media (min-width: 768px) {

    main {
        /* background-color: #333; */
        max-width: 700px;
        margin: auto;
    }

    .nav-grid {
        display: flex;
        flex-direction: column;
        grid-template-columns: repeat(4, 1fr);
        gap: 1rem;
    }

    .main-nav {
        display: grid;
        justify-items: center;
        justify-content: end;
        position: fixed;
        z-index: 99;
        /* margin-right: 0; */
    }


    .app-container {
        max-width: 768px;
        margin: 0 auto;
        box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    }

    .nav-grid {
        grid-template-columns: repeat(8, 1fr);
    }

    .gallery-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .service-list,
    .contact-list,
    .emergency-list {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}



@media (max-width: 768px) {

    .main-nav {
        background-color: #f8fafc;
        position: fixed;
    }

    .main-nav {
        width: 100%;
        /* position: fixed; */
    }

    /* .main-content {
        margin-top: 28vh;
    } */

    .nav-grid {
        gap: 0rem;
    }

    .nav-item {
        padding: 0;
    }

    .app-footer {
        width: 100%;
        position: fixed;
        bottom: 0;
    }

    .app-footer {
        padding: 0rem;

    }

    .install-prompt {
        padding: 8px;
    }

    .main-nav {
        box-shadow: 0 1px 7px rgba(0, 0, 0, 0.1);
        padding: 0.3rem;
        bottom: 0;
        z-index: 99;
    }


    .nav-grid {
        gap: 0.2rem;
        display: flex;
        flex-direction: row;
        justify-content: space-between;
    }

    .se1 {
        margin-top: 5vh;
        background-color: #ffffd5;
    }

    .main-content {
        margin-bottom: 10vh;
    }

    .li {
        background-color: #ffff7fc9;
        border-radius: 10px;
    }

    .li a {
        background-color: #ff7f7fda;
        border-radius: 6px;
        display: flex;
        align-items: center;
        flex-direction: column;
    }

    .nav-grid span {
        color: #3b82f6;
    }
}

@media (min-width: 700px) {

    main {
        max-width: 600px;
    }
}

@media (min-width: 1000px) {
    body {
        max-width: 1000px;
    }

    main {
        max-width: 750px;
    }
}

@media (min-width: 1200px) {
    body {
        max-width: 1200px;
    }

    main {
        max-width: 900px;
    }
}

@media (min-width: 1400px) {
    body {
        max-width: 1400px;
    }

    main {
        max-width: 1000px;
    }
}

@media (min-width: 1600px) {
    body {
        max-width: 1600px;
    }

    main {
        max-width: 1100px;
    }
}

@media (min-width: 1800px) {
    body {
        max-width: 1700px;
    }

    main {
        max-width: 1200px;
    }
}


@media (min-width: 1900px) {
    body {
        max-width: 1750px;
    }

    main {
        max-width: 1200px;
    }
}














/* ================================ */
#infoBox {
    position: fixed;
    top: 0;
    left: -320px;
    /* Left side se hidden */
    width: 300px;
    height: 100vh;
    background: #111;
    color: white;
    padding: 20px;
    transition: .3s;
    /* z-index: 10; */
}

#infoBox.active {
    left: 0;
    /* Open hoga */
}

.close-btn2 {
    position: absolute;
    top: 10px;
    right: 10px;
    border: none;
    background: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
}

#infoBox a {
    display: block;
    color: white;
    margin: 10px 0;
    text-decoration: none;
}

/* =========================== */