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

.gallery-grid figure {
  margin: 0;
  text-align: center;
}

.gallery-grid img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-grid img:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.gallery-grid figcaption {
  margin-top: 8px;
  font-size: 0.95rem;
  color: #004aad;
  font-weight: bold;
}



/* Head Teacher's Photo and Signature Box */
.headteacher-box {
    width: 250px;            /* Fixed width for the box */
    height: auto;            /* Let the height adjust automatically */
    margin: 40px auto 0;     /* Center the box horizontally and give it space at top */
    padding: 20px;
    background-color: #f4f4f4; /* Light grey background for the box */
    border: 2px solid #ccc;  /* Border around the box */
    border-radius: 8px;      /* Rounded corners */
    text-align: center;      /* Center everything inside the box */
}

/* Head Teacher Photo */
.headteacher-photo {
    width: 120px;           /* Fixed size for the photo (passport size) */
    height: 120px;          /* Height must match width for square image */
    border-radius: 50%;     /* Make it circular */
    object-fit: cover;      /* Maintain aspect ratio without distortion */
    margin-bottom: 10px;    /* Space between image and signature */
}

/* Signature */
.signature {
    width: 150px;           /* Limit signature size */
    height: auto;           /* Maintain aspect ratio */
    margin-bottom: 10px;    /* Space between signature and name */
}

/* Head Teacher Name */
.headteacher-name {
    font-weight: bold;
    font-size: 16px;        /* Make the name a bit bigger for readability */
    color: #333;            /* Darker color for contrast */
}


        
        
        /* Welcome Overlay */
#welcomeOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(5px);
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeOut 1s ease 2s forwards;
}

.welcome-content {
    text-align: center;
    color: white;
    animation: zoomIn 1s ease;
}

.welcome-content h1 {
    font-size: 3rem;
    margin-bottom: 15px;
    text-shadow: 0 0 20px gold;
}

.welcome-content p {
    font-size: 1.3rem;
}

/* Sparkles */
#sparkles {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 99998;
}

.sparkle {
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    animation: sparkleFall linear forwards;
}

/* Animations */
@keyframes sparkleFall {
    from {
        transform: translateY(-20px) scale(0);
        opacity: 1;
    }
    to {
        transform: translateY(110vh) scale(1.5);
        opacity: 0;
    }
}

@keyframes zoomIn {
    from {
        transform: scale(0.5);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes fadeOut {
    to {
        opacity: 0;
        visibility: hidden;
    }
}



.education-section{
    padding:40px;
    text-align:center;
    background:#f5f5f5;
    overflow:hidden;
}





/* EDUCATION NEWS TITLE */

.education-section{
    padding:40px;
    text-align:center;
    background:#f5f5f5;
    overflow:hidden;
    font-family: Arial, sans-serif;
}

.title{
    font-size:2rem;
    margin-bottom:10px;
}

/* BANNER AREA */
.moving-banner{
    width:100%;
    overflow:hidden;
    position:relative;
    height:120px;
    margin:25px 0;
}

/* MOVING CONTAINER */
.moving-content{
    position:absolute;
    display:flex;
    align-items:center;
    gap:20px;
    white-space:nowrap;
    animation: moveLeft 12s linear infinite;
}

/* IMAGE */
.moving-content img{
    height:100px;
    border-radius:10px;
}

/* TEXT */
.text-wrapper{
    font-size:2rem;
    font-weight:900;
    letter-spacing:3px;
}

/* COLORFUL TEXT */
#typingText span{
    opacity:0;
    animation: fadeIn 0.3s forwards;
}

#typingText span:nth-child(odd){ color:#ff0000; }
#typingText span:nth-child(even){ color:#004aad; }
#typingText span:nth-child(3n){ color:#00c853; }
#typingText span:nth-child(4n){ color:#ff9800; }

/* BUTTON */
.btn{
    display:inline-block;
    margin-top:20px;
    padding:12px 25px;
    background:#004aad;
    color:white;
    text-decoration:none;
    border-radius:5px;
    font-weight:bold;
}

/* ANIMATION */
@keyframes moveLeft{
    0%{ transform:translateX(100%); }
    100%{ transform:translateX(-100%); }
}

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




.logo-card {
    width: 120px;
    height: 105px;
    margin: auto;.image-gallery {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.8s;
}

/* Flip animation */
.logo-card.flip {
    transform: rotateY(180deg);
}

.logo-front, .logo-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
}

/* Back face */
.logo-back {
    transform: rotateY(180deg);
}

/* IMAGE STYLE: Soft edges + glow */
.school-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;

    /* Soft rounded edges */
    border-radius: 20px;

    /* Glow effect */
    box-shadow: 
        0 0 10px rgba(0, 174, 255, 0.6),
        0 0 20px rgba(0, 174, 255, 0.4),
        0 0 30px rgba(0, 174, 255, 0.3);

    /* Smooth appearance */
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

/* Optional: stronger glow on hover */
.school-logo:hover {
    box-shadow: 
        0 0 15px rgba(0, 174, 255, 0.9),
        0 0 30px rgba(0, 174, 255, 0.7),
        0 0 50px rgba(0, 174, 255, 0.5);

    transform: scale(1.05);
}



/* Container for each image */
.image-box {
    max-width: 350px;          /* Controls size (makes it smaller) */
    margin: 20px auto;         /* Centers the image */
    text-align: center;
}

/* Image styling */
.facility-img {
    width: 100%;               /* Fits inside container */
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15); /* soft shadow */
    transition: transform 0.3s ease;
}

/* Subtle hover effect */
.facility-img:hover {
    transform: scale(1.03);
}

/* Caption styling */
.image-caption {
    font-size: 0.75rem;        /* smaller font */
    color: #555;
    margin-top: 6px;
    font-style: italic;
    line-height: 1.4;
}




    /* Gallery */
.gallery-grid figure {
    cursor: pointer;
}

.gallery-grid img {
    width: 100%;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.gallery-grid img:hover {
    transform: scale(1.05);
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    padding-top: 60px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    text-align: center;
}

.lightbox-img {
    max-width: 80%;
    max-height: 70vh;
    border-radius: 10px;
}

.lightbox-caption {
    color: #fff;
    margin-top: 20px;
    font-size: 1.2rem;
}

.close {
    position: absolute;
    top: 20px;
    right: 40px;
    color: white;
    font-size: 40px;
    cursor: pointer;
}


     header {
            position: relative;
            background: url('015.jpg') center/cover no-repeat fixed;
            color: white;
            text-align: center;
            padding: 80px 20px;
        }
        header::before {
            content: "";
            position: absolute;
            top: 0; left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.12);
        }
        header h1, header p {
            position: relative;
            z-index: 1;
            margin: 0;
        }
        header h1 {
            font-size: 2.5rem;
            margin-bottom: 10px;
        }
     
        
        
        
        
        
        
        
        
        