body {
    font-family: 'Baloo 2', cursive;
    background: #fff8ef;
    margin: 0;
}

.top-header {
    background: #ff4fa3;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 5px 15px rgba(0,0,0,.2);
}

.logo {
    font-size: 1.8rem;
    color: white;
    font-weight: 800;
}

.kids-menu a {
    margin-left: 1rem;
    text-decoration: none;
    font-weight: 700;
    background: white;
    padding: .5rem 1rem;
    border-radius: 20px;
    color: #ff2f92;
    transition: .2s;
}

    .kids-menu a:hover {
        transform: scale(1.1);
        background: #ffe066;
    }

.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    padding: 4rem 3rem;
    background: radial-gradient(circle at top left,#ffe066,#ffb703), radial-gradient(circle at bottom right,#ff9a9e,#fad0c4);
    border-radius: 0 0 80px 80px;
}

.hero-text h1 {
    font-size: 3.5rem;
    color: #ff2f92;
}

.hero-text p {
    font-size: 1.4rem;
}

.hero-btn {
    display: inline-block;
    background: #ff4081;
    color: white;
    padding: .9rem 2rem;
    border-radius: 30px;
    font-weight: 700;
    text-decoration: none;
}

.hero-img img {
    max-width: 100%;
    border-radius: 30px;
    box-shadow: 0 15px 30px rgba(0,0,0,.2);
}

.books-section,
.art-section,
.testimonial-section {
    padding: 4rem 3rem;
    text-align: center;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(240px,1fr));
    gap: 2rem;
}

.card {
    background: white;
    padding: 1.5rem;
    border-radius: 30px;
    box-shadow: 0 10px 20px rgba(0,0,0,.15);
    transition: .3s;
}

    .card:hover {
        transform: translateY(-10px) rotate(-1deg);
    }

    .card img {
        width: 100%;
        border-radius: 20px;
        margin-bottom: 1rem;
    }

.art-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(200px,1fr));
    gap: 1.5rem;
}

    .art-grid img {
        width: 100%;
        border-radius: 20px;
        box-shadow: 0 8px 16px rgba(0,0,0,.15);
        transition: .3s;
    }

        .art-grid img:hover {
            transform: scale(1.05) rotate(-2deg);
        }

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(260px,1fr));
    gap: 2rem;
}

.testimonial-card {
    background: #ffe066;
    padding: 2rem;
    border-radius: 30px;
    font-size: 1.1rem;
    box-shadow: 0 10px 20px rgba(0,0,0,.15);
}

    .testimonial-card span {
        display: block;
        margin-top: 1rem;
        font-weight: 700;
        color: #ff2f92;
    }

.gallery-title {
    text-align: center;
    font-size: 2.8rem;
    margin: 3rem 0;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(220px,1fr));
    gap: 1.5rem;
    padding: 2rem;
}

    .gallery-grid img {
        width: 100%;
        border-radius: 20px;
        cursor: pointer;
        transition: .3s;
        box-shadow: 0 10px 20px rgba(0,0,0,.2);
    }

        .gallery-grid img:hover {
            transform: scale(1.05) rotate(-1deg);
        }

#lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.9);
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

    #lightbox img {
        max-width: 90%;
        max-height: 90%;
        border-radius: 20px;
    }

.contact-section {
    padding: 4rem 2rem;
    text-align: center;
}

    .contact-section form {
        max-width: 500px;
        margin: auto;
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    .contact-section input,
    .contact-section textarea {
        padding: .8rem 1rem;
        border-radius: 15px;
        border: 2px solid #ffb703;
        font-size: 1rem;
    }

    .contact-section button {
        background: #ff4fa3;
        border: none;
        color: white;
        padding: .8rem;
        border-radius: 20px;
        font-weight: 700;
        font-size: 1.1rem;
        cursor: pointer;
    }

.success {
    background: #b9fbc0;
    padding: 1rem;
    border-radius: 15px;
    margin-bottom: 1rem;
    font-weight: 700;
}

.about-section {
    padding: 4rem 2rem;
    display: flex;
    justify-content: center;
}

.about-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    max-width: 1000px;
    align-items: center;
}

    .about-wrap img {
        width: 100%;
        border-radius: 30px;
        box-shadow: 0 10px 20px rgba(0,0,0,.2);
    }

.login-page {
    min-height: 80vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.login-box {
    background: white;
    padding: 3rem;
    border-radius: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,.2);
    width: 350px;
    text-align: center;
}

    .login-box input {
        width: 100%;
        padding: .7rem;
        margin: .6rem 0;
        border-radius: 15px;
        border: 2px solid #ffb703;
    }

    .login-box button {
        background: #ff4fa3;
        border: none;
        color: white;
        padding: .7rem 1.5rem;
        border-radius: 20px;
        font-weight: 700;
        font-size: 1.1rem;
        margin-top: 1rem;
    }

.admin-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(200px,1fr));
    gap: 2rem;
    padding: 3rem;
}

    .admin-cards a {
        background: #ffe066;
        padding: 2rem;
        border-radius: 30px;
        font-size: 1.3rem;
        text-decoration: none;
        font-weight: 800;
        text-align: center;
        box-shadow: 0 10px 20px rgba(0,0,0,.2);
        transition: .2s;
    }

        .admin-cards a:hover {
            transform: translateY(-5px) scale(1.05);
            background: #ffb703;
        }

.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1.5rem;
}

    .admin-table td {
        padding: 1rem;
        border-bottom: 2px dashed #ffb703;
    }

.admin-btn {
    background: #ff4fa3;
    color: white;
    padding: .6rem 1.2rem;
    border-radius: 20px;
    font-weight: 700;
    text-decoration: none;
    display: inline-block;
    margin-bottom: 1rem;
}

footer {
    text-align: center;
    padding: 2rem;
    background: #ff4fa3;
    color: white;
    font-weight: 700;
    margin-top: 4rem;
}

.admin-form-page {
    min-height: 80vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 3rem;
    background: linear-gradient(135deg,#fff0f7,#fffbe6);
}

.admin-form-card {
    background: white;
    border-radius: 30px;
    padding: 3rem;
    max-width: 850px;
    width: 100%;
    box-shadow: 0 15px 40px rgba(0,0,0,.2);
}

    .admin-form-card h2 {
        text-align: center;
        margin-bottom: 2rem;
        color: #ff2f92;
        font-size: 2rem;
    }

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.admin-form-card label {
    font-weight: 700;
    color: #ff4081;
}

.admin-form-card input,
.admin-form-card textarea {
    width: 100%;
    padding: .7rem 1rem;
    border-radius: 15px;
    border: 2px solid #ffb703;
    font-size: 1rem;
    margin-top: .3rem;
}

.image-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.image-upload-box {
    background: #fff7e6;
    padding: 1.5rem;
    border-radius: 25px;
    box-shadow: inset 0 0 15px rgba(0,0,0,.05);
    text-align: center;
}

    .image-upload-box h4 {
        margin-bottom: .8rem;
        color: #ff2f92;
    }

.image-preview {
    max-width: 100%;
    border-radius: 20px;
    margin-top: .8rem;
    display: none;
    box-shadow: 0 10px 20px rgba(0,0,0,.15);
}

.gallery-preview {
    display: flex;
    flex-wrap: wrap;
    gap: .8rem;
    margin-top: .8rem;
    justify-content: center;
}

    .gallery-preview img {
        width: 90px;
        height: 90px;
        object-fit: cover;
        border-radius: 15px;
        box-shadow: 0 6px 12px rgba(0,0,0,.2);
    }

.existing-images {
    display: flex;
    flex-wrap: wrap;
    gap: .8rem;
    margin-top: 1rem;
    justify-content: center;
}

.existing-img {
    position: relative;
}

    .existing-img img {
        width: 90px;
        height: 90px;
        object-fit: cover;
        border-radius: 15px;
        box-shadow: 0 6px 12px rgba(0,0,0,.2);
    }

    .existing-img a {
        position: absolute;
        top: -8px;
        right: -8px;
        background: #ff2f92;
        color: white;
        width: 22px;
        height: 22px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: .8rem;
        text-decoration: none;
        box-shadow: 0 4px 10px rgba(0,0,0,.3);
    }

.admin-submit-btn {
    margin-top: 2rem;
    width: 100%;
    background: linear-gradient(135deg,#ff2f92,#ff8fab);
    border: none;
    color: white;
    padding: 1rem;
    border-radius: 25px;
    font-size: 1.2rem;
    font-weight: 800;
    cursor: pointer;
    transition: .2s;
}

    .admin-submit-btn:hover {
        transform: translateY(-3px) scale(1.02);
        box-shadow: 0 10px 25px rgba(0,0,0,.25);
    }



.book-detail-page {
    padding: 3rem 5%;
    background: linear-gradient(180deg,#fffaf0,#fff0f6);
    min-height: 80vh;
}

.book-hero {
    display: flex;
    gap: 3rem;
    align-items: center;
    background: white;
    border-radius: 40px;
    padding: 2.5rem;
    box-shadow: 0 15px 40px rgba(0,0,0,.2);
    flex-wrap: wrap;
}

.book-cover-big {
    width: 280px;
    border-radius: 30px;
    box-shadow: 0 15px 35px rgba(0,0,0,.3);
}

.book-info h1 {
    font-size: 2.6rem;
    color: #ff2f92;
    margin-bottom: .5rem;
}

.book-info .author {
    font-size: 1.1rem;
    font-weight: 700;
    color: #ffb703;
}

.book-info .description {
    margin-top: 1rem;
    font-size: 1.1rem;
    color: #555;
    line-height: 1.7;
}

.gallery-title {
    margin: 3rem 0 1.5rem;
    font-size: 2rem;
    color: #ff2f92;
    text-align: center;
}

.book-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(160px,1fr));
    gap: 1.2rem;
}

.gallery-thumb {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 20px;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(0,0,0,.25);
    transition: .3s;
}

    .gallery-thumb:hover {
        transform: scale(1.05) rotate(-1deg);
    }

/* LIGHTBOX */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.85);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: .3s;
    z-index: 9999;
}

    .lightbox.show {
        opacity: 1;
        pointer-events: auto;
    }

    .lightbox img {
        max-width: 85%;
        max-height: 85%;
        border-radius: 30px;
        box-shadow: 0 20px 50px rgba(0,0,0,.6);
    }



.featured-books {
    padding: 3rem 5%;
    background: linear-gradient(135deg,#fff0f7,#fffbe6);
    text-align: center;
}

    .featured-books h2 {
        font-size: 2.5rem;
        color: #ff2f92;
        margin-bottom: 2rem;
    }

.books-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(200px,1fr));
    gap: 1.5rem;
    justify-items: center;
}

.book-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #fff0f7;
    padding: 1rem;
    border-radius: 25px;
    box-shadow: 0 10px 25px rgba(0,0,0,.15);
    transition: transform 0.3s, box-shadow 0.3s;
    text-decoration: none;
    color: inherit;
    max-width: 220px;
}

    .book-card img {
        width: 100%;
        height: 250px;
        object-fit: cover;
        border-radius: 20px;
        margin-bottom: 0.8rem;
        box-shadow: 0 8px 20px rgba(0,0,0,.2);
    }

    .book-card h3 {
        font-size: 1.2rem;
        color: #ff2f92;
        text-align: center;
        margin: 0;
    }

    .book-card:hover {
        transform: translateY(-5px) scale(1.03);
        box-shadow: 0 15px 35px rgba(0,0,0,.3);
    }

.book-card {
    border: 3px dashed #ff8fab;
}


/* Back Button */
.back-btn {
    display: inline-block;
    margin-bottom: 1.5rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg,#ff8fab,#ff2f92);
    color: white;
    font-weight: bold;
    border-radius: 20px;
    text-decoration: none;
    transition: transform 0.3s, box-shadow 0.3s;
}

    .back-btn:hover {
        transform: translateY(-3px) scale(1.05);
        box-shadow: 0 10px 25px rgba(0,0,0,.3);
    }

/* Book Hero */
.book-detail-page {
    padding: 3rem 5%;
    background: linear-gradient(180deg,#fffaf0,#fff0f6);
    min-height: 80vh;
}

.book-hero {
    display: flex;
    gap: 3rem;
    align-items: center;
    background: white;
    border-radius: 40px;
    padding: 2.5rem;
    box-shadow: 0 15px 40px rgba(0,0,0,.2);
    flex-wrap: wrap;
}

.book-cover-big {
    width: 280px;
    border-radius: 30px;
    box-shadow: 0 15px 35px rgba(0,0,0,.3);
}

.book-info h1 {
    font-size: 2.6rem;
    color: #ff2f92;
    margin-bottom: .5rem;
}

.book-info .author {
    font-size: 1.1rem;
    font-weight: 700;
    color: #ffb703;
}

.book-info .description {
    margin-top: 1rem;
    font-size: 1.1rem;
    color: #555;
    line-height: 1.7;
}

/* Gallery */
.gallery-title {
    margin: 3rem 0 1.5rem;
    font-size: 2rem;
    color: #ff2f92;
    text-align: center;
}

.book-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(160px,1fr));
    gap: 1.2rem;
}

.gallery-thumb {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 20px;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(0,0,0,.25);
    transition: transform 0.3s;
}

    .gallery-thumb:hover {
        transform: scale(1.05) rotate(-1deg);
    }

/* Lightbox */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: 0.3s;
    z-index: 9999;
}

    .lightbox.show {
        opacity: 1;
        pointer-events: auto;
    }

    .lightbox img {
        max-width: 90%;
        max-height: 90%;
        border-radius: 20px;
        box-shadow: 0 20px 50px rgba(0,0,0,.6);
        transition: transform 0.3s;
    }

.close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 2rem;
    color: white;
    cursor: pointer;
    user-select: none;
    font-weight: bold;
    z-index: 10000;
}


.admin-back-btn {
    display: inline-block;
    margin-bottom: 1.5rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #ff8fab, #ff2f92);
    color: white;
    font-weight: bold;
    border-radius: 20px;
    text-decoration: none;
    transition: transform 0.3s, box-shadow 0.3s;
}

    .admin-back-btn:hover {
        transform: translateY(-3px) scale(1.05);
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    }


/* Modal */
.modal {
    display: none; /* hidden by default */
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.modal-content {
    background: white;
    padding: 2rem;
    border-radius: 25px;
    max-width: 400px;
    text-align: center;
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
    position: relative;
}

    .modal-content h3 {
        color: #ff2f92;
        margin-bottom: 1rem;
    }

    .modal-content p {
        font-size: 1rem;
        color: #555;
        margin-bottom: 2rem;
    }

.modal-buttons button {
    margin: 0 .5rem;
    padding: 0.6rem 1.5rem;
    border-radius: 20px;
    border: none;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

#confirmYes {
    background: linear-gradient(135deg,#ff2f92,#ff8fab);
    color: white;
}

    #confirmYes:hover {
        transform: scale(1.05);
        box-shadow: 0 10px 25px rgba(0,0,0,0.3);
    }

#confirmNo {
    background: #ccc;
}

    #confirmNo:hover {
        transform: scale(1.05);
    }

.edit-btn, .delete-btn {
    background: linear-gradient(135deg,#ffb703,#ff2f92);
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    text-decoration: none;
    font-weight: bold;
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer; 
}

    .edit-btn:hover, .delete-btn:hover {
        transform: scale(1.05);
        box-shadow: 0 10px 25px rgba(0,0,0,0.3);
    }

.edit-btn {
    background: linear-gradient(135deg,#ffb703,#ff2f92);
}

.delete-btn {
    background: linear-gradient(135deg,#ff2f92,#ff8fab);
}


.latest-artworks {
    padding: 3rem 5%;
    background: linear-gradient(135deg,#fffaf0,#fff0f6);
    text-align: center;
}

    .latest-artworks h2 {
        font-size: 2.5rem;
        color: #ff2f92;
        margin-bottom: 2rem;
    }

.artwork-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1.5rem;
    justify-items: center;
}

.artwork-thumb {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 20px;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(0,0,0,.25);
    transition: transform 0.3s, box-shadow 0.3s;
}

    .artwork-thumb:hover {
        transform: scale(1.05) rotate(-1deg);
        box-shadow: 0 15px 35px rgba(0,0,0,.3);
    }



/* Keep your existing kids-menu styles intact */

/* Hamburger menu */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    margin-left: auto;
}

    .menu-toggle .bar {
        height: 3px;
        width: 25px;
        background-color: #ff2f92; /* pink is good for most light backgrounds */
        box-shadow: 0 0 2px #000; /* subtle outline for extra contrast */
        margin: 4px 0;
        border-radius: 2px;
        transition: 0.3s;
    }

/* Mobile styles */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .kids-menu .menu-links {
        display: none; /* hide links by default */
        flex-direction: column;
        width: 100%;
        margin-top: 1rem;
    }

        .kids-menu .menu-links.active {
            display: flex; /* show when toggled */
        }

        .kids-menu .menu-links a {
            padding: 0.5rem 0;
            display: block;
            text-align: left;
        }
}

.kids-menu {
    font-family: 'Baloo 2', cursive;
    font-size: 1.1rem; /* slightly larger for mobile */
}

/* Mobile specific */
@media (max-width: 768px) {
    .kids-menu {
        font-size: 1.3rem; /* easier to read on small screens */
    }

        .kids-menu .menu-links a {
            padding: 0.8rem 0.5rem;
        }
}

/* Mobile styles */
@media (max-width: 768px) {
    .kids-menu .menu-links {
        display: none; /* hide by default */
        flex-direction: column; /* stack vertically */
        width: 100%;
        margin-top: 1rem;
        gap: 0.8rem; /* space between menu items */
    }

        .kids-menu .menu-links.active {
            display: flex; /* show when hamburger clicked */
        }

        .kids-menu .menu-links a {
            padding: 0.6rem 1.2rem; /* bigger padding for touch */
            display: block;
            text-align: center;
            border-radius: 25px; /* fully rounded */
            margin: 0; /* no overlapping margin */
            background: linear-gradient(135deg,#ff8fab,#ff2f92); /* keep your original style */
            color: white;
            font-weight: 700;
            text-decoration: none;
            transition: transform 0.2s, box-shadow 0.2s;
        }

            .kids-menu .menu-links a:hover {
                transform: scale(1.05);
                box-shadow: 0 8px 20px rgba(0,0,0,0.2);
            }
}





