@import url('https://fonts.googleapis.com/css2?family=Baloo+Tamma+2:wght@400;600&display=swap');

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

body {
    font-family: 'Baloo Tamma 2', serif;
    background: #f6f1eb;
    color: #3e3a36;
    line-height: 1.8;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* HEADER */
.site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: #e8dfd3;
    border-bottom: 1px solid #d6cbbd;
}

.site-header h1 {
    font-size: 32px;
    color: #99582a;
}


nav a {
    margin-left: 20px;
    text-decoration: none;
    color: #5a5047;
    font-size: 20px;
}


nav a.active,
nav a:hover {
    color: #dda15e;
    border-bottom: 2px solid #b8a995;
    padding-bottom: 4px;
}

/* HERO */
.hero {
    padding: 60px 20px;
    text-align: center;
}


.hero p {
    font-size: 20px;
    color: #780000;
}


/* CARDS */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    padding: 30px 20px;
    max-width: 900px;
    margin: auto;
}


.card {
    background: #fff;
    padding: 28px;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.06);
    text-align: center;
}

.card a {
    display: inline-block;
    margin-top: 12px;
    text-decoration: none;
    color: #7b6a55;
    font-weight: 600;
}

.abt {
    max-width: 800px;
    margin: 30px auto;
    padding: 0 20px;
    line-height: 1.8;
}
h2 {
    color: #dda15e;
}
section p{
    font-size: 20px;
}
/* LIST */
.list {
    max-width: 98%;
    padding: 30px 18px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.post {
    background: #fff;
    padding: 22px;
    margin-bottom: 24px;
    border-radius: 16px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.06);
    width:180px;
    height:100px;
}

.post1 {
    background: #fff;
    padding: 22px;
    margin-bottom: 24px;
    border-radius: 16px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.06);
    width:180px;
    height:180px;
}

.post h3 { margin-bottom: 10px;
color: #780000;}

.post1 h3 { margin-bottom: 10px;
    color: #780000;}

/* MODAL */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 16px;
}

/* Modal box (fixed size) */
.modal-content {
    background: #fffaf5;
    width: 100%;
    max-width: 400px;
    height: 50vh;              /* 🔒 FIXED HEIGHT */
    border-radius: 14px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
}

/* Title stays fixed */
.modal-content h2 {
    margin: 0 0 12px;
    font-size: 22px;
    color: #4b2e1e;
    flex-shrink: 0;
}

/* Scrollable poem content */
.modal-text {
    overflow-y: auto;          /* ✅ SCROLL */
    flex: 1;                   /* fills remaining space */
    font-size: 17px;
    line-height: 1.8;
    color: #3b2a1a;
    white-space: pre-line;
    padding-right: 6px;
}

/* Close button */
.close {
    position: absolute;
    top: 14px;
    right: 18px;
    font-size: 22px;
    cursor: pointer;
    color: #555;
}

/* Mobile optimization */
@media (max-width: 600px) {
    .modal-content {
        height: 40vh;
        padding: 16px;
    }

    .modal-text {
        font-size: 16px;
    }
    .post{
        width:95%;
    }
    .post1{
        width:95%;
    }
    .site-header h1{
        font-size: 20px;
    }
}


/* FOOTER */
footer {
    text-align: center;
    padding: 16px;
    background: #e8dfd3;
    margin-top: auto;   /* THIS pushes footer to bottom */
}


/* MOBILE NAV */
.menu-toggle {
    display: none;
    font-size: 24px;
    cursor: pointer;
}

/* MOBILE */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    nav {
        display: none;
        position: absolute;
        right: 16px;
        top: 60px;
        background: #e8dfd3;
        padding: 14px 18px;
        border-radius: 14px;
        box-shadow: 0 8px 20px rgba(0,0,0,0.1);
        z-index: 1000;
    }

    nav.show {
        display: block;
    }

    nav a {
        display: block;
        margin: 10px 0;
        font-size: 16px;
    }
    .post{
        width:95%;
    }
    .post1{
        width:95%;
    }

}

@media (max-width: 480px) {
    .site-header {
        padding: 14px 16px;
    }

    .site-header h1 {
        max-width: 70%;
        line-height: 1.2;
    }
    .post{
        width:95%;
    }
    .post1{
        width:95%;
    }
}
