body {
    margin: 0;
    font-family: "Comic Sans MS", Arial, sans-serif;
    background: #f9f9f9;
    color: #333;
}
h1, h2, h3, p {
    margin-top: 0;
}
section {
    scroll-margin-top: 40px; /* height of your fixed header */
}
.school-header {
    /* background-image: url("images/header-bg.jpg");
    background-size: cover; /* fit full image */
    background-position: top center;
    background-repeat: no-repeat;
    min-height: 400px; /* your header height */
    padding: 30px 20px;
    color: white;
    position: relative; */
}
.contact-line {
  display: flex;
  gap: 40px;
  justify-content: center;
  flex-wrap: wrap;
}

.contact-item {
  display: flex;
  align-items: center;
	gap: 8px;
}
.contact-item i {
  font-size: 16px;
  color: black;
}
.header-content {
    display: flex;
    align-items: center;
    max-width: 1200px;
    margin: auto;
    position: relative;
    z-index: 1;
}

.logo {
    width: 90px;
    margin-right: 20px;
}

.title h1 {
    margin: 0;
    font-size: 28px;
}

.title p {
    margin: 5px 0 0;
    font-size: 16px;
}

/*added form header*/
nav {
    background: #ff6f61;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

    nav a {
        color: white;
        padding: 12px 20px;
        text-decoration: none;
        font-weight: bold;
    }

        nav a:hover {
            background: #ff3b2e;
        }

.hero {
    background: #a0e7e5;
    text-align: center;
    padding: 50px 20px;
}

    .hero button {
        padding: 10px 20px;
        font-size: 16px;
        background: #ff6f61;
        color: white;
        border: none;
        border-radius: 5px;
        cursor: pointer;
    }

section {
    padding: 25px 20px;
    text-align: center;
}

.cards {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.card {
    background: #fff;
    padding: 20px;
    width: 150px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    font-size: 18px;
}

ul {
    list-style: none;
    padding: 0;
}

    ul li {
        font-size: 18px;
        margin: 8px 0;
    }

footer {
    background: #333;
    color: white;
    text-align: center;
    padding: 15px;
}
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
    max-width: 900px;
    margin: auto;
}

    .gallery img {
        width: 100%;
        height: 160px;
        object-fit: cover;
		object-position: top;
        border-radius: 10px;
        cursor: pointer;
        transition: transform 0.3s;
    }

.gallery img:hover {
    transform: scale(1.05);
}

/* Lightbox overlay */
#lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

#lightbox img {
    max-width: 90%;
    max-height: 90%;
}

/* Close button */
#lightbox .close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 40px;
    color: #fff;
    cursor: pointer;
}

/* Navigation buttons */
#lightbox .nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 50px;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    user-select: none;
}

#lightbox .prev { left: 20px; }
#lightbox .next { right: 20px; }

@media (max-width: 600px) {
    #lightbox .nav {
        font-size: 36px;
    }
}

.map-container {
    max-width: 900px;
    margin: 20px auto;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 0 10px rgba(0,0,0,0.2);
}


/* About Section */
#about {
    padding: 50px 0px;
    background: #f9f9f9;
}

.about-container {
    display: flex;
    gap: 20px;
    max-width: 1200px;
    margin: auto;
    flex-wrap: wrap;
}

/* Text */
.about-text {
    flex: 1;
    min-width: 280px;
}

    .about-text h2 {
        font-size: 32px;
        margin-bottom: 20px;
    }

/* Photos */
.about-photos {
    display: flex;
    gap: 20px;
    flex: 1;
    justify-content: center;
    flex-wrap: wrap;
}
 .person {
    width: 200px;
    text-align: center;
} 

/* Image container (always same size) */
.photo-box {
    width: 200px;
    height: 200px;
    border: 4px solid #ffcc00;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    border-radius: 6px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f2f2f2;
} 

.photo-box img {
    width: 200px;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s;
} 

 .photo-box img:hover {
    transform: scale(1.03);
} 

/* When image is missing */
.photo-box.no-image::after {
    content: "Photo Not Available";
    font-size: 14px;
    color: #777;
} 

/* Text */
.person h5 {
    margin: 10px 0 4px;
    font-size: 16px;
}

.person h6 {
    margin: 0;
    font-size: 14px;
    color: #555;
}


/* Sticky Navigation */
.main-nav {
    position: sticky; /* makes nav stick */
    top: 0; /* stick to top */
    background: #ff6f61;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    z-index: 1000; /* stay above other sections */
}

    .main-nav a {
        color: white;
        padding: 12px 20px;
        text-decoration: none;
        font-weight: bold;
    }

        .main-nav a:hover {
            background: #ff3b2e;
        }


html {
    scroll-behavior: smooth;
} 
/* Header Wrapper */
.hero-header {
    position: relative;
    width: 100%;
    height: 55vh;
    overflow: hidden;
}

/* Banner Layout */
.hero-banner {
    display: flex;
    height: 100%;
}

/* Right Image Section */
.hero-right {
    width: 100%;
    background: url("../images/header-bg.jpg") center/cover no-repeat;
}


.brand-box {
    position: absolute;
    top: 10px;
    left: 10px;              /* distance from left edge */
    background: rgba(255, 255, 255, 0.88);
    display: flex;
    align-items: center;
    padding: 13px 22px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    z-index: 10;
}
.brand-box img {
    height: auto;          /* natural logo size */
    width: auto;
    max-height: 70px;      /* safety limit */
    max-width: 70px;
    margin-right: 14px;
    object-fit: contain;
}

.brand-text p {
    font-size: 14px;
    color: #555;
    margin-top: 2px;
}

.brand-text h1 {
    font-size: 24px;
    font-weight: 600;
    color: #0a2540;
    line-height: 1.2;
    margin: 0;
}

.brand-text .tagline {
    font-size: 12px;
    color: #555;
    margin: 4px 0 2px;
}

.brand-address {
    font-size: 11.5px;
    color: #666;
    margin-top: 4px;
}

.address-row {
    display: flex;
    align-items: flex-start;
    gap: 6px;
}

/* Location icon */
.address-row > i {
    color: #800000;
    font-size: 12px;
    margin-top: 2px; /* aligns with Tamil text */
}

/* Text block */
.address-text {
    display: flex;
    flex-direction: column;
}

/* Tamil line */
.address-text .ta {
    font-size: 12px;
    line-height: 1.3;
    font-weight: 500;
}

/* English line */
.address-text .en {
    font-size: 11px;
    color: #777;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

/* Separator */
.sep {
    color: #aaa;
}

/* Icons inside English line */
.address-text .en i {
    color: #800000;
    font-size: 11px;
}
section, header, nav {
    outline: 1px solid lightgreen;
}
#activities h2 span {
    font-size: 16px;
    font-weight: normal;
    color: #555;
}
.activity-list {
    list-style: none;
    padding: 0;
    margin: 20px auto;
    display: flex;
    flex-direction: column;
    align-items: center;   /* ⭐ KEY FIX */
}
.activity-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    font-size: 16px;
}

.activity-text {
    display: flex;
    flex-direction: column;
}

.activity-text .ta {
    font-size: 16px;
    font-weight: 500;
    line-height: 1.4;
}

.activity-text .en {
    font-size: 14px;
    color: #666;
    line-height: 1.3;
}

a:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {

    .hero-banner {
        flex-direction: column;
    }

    .brand-box {
        left: 50%;
        transform: translateX(-50%);
        flex-direction: column;
        text-align: center;
    }

    .brand-box img {
        max-height: 60px;
        max-width: 60px;
        margin: 0 0 6px 0;
    }

    .brand-text h1 {
        font-size: 20px;
    }

    .brand-text p {
        font-size: 13px;
    }
   	 .brand-address {
        font-size: 11px;
    }

    .brand-address small {
        font-size: 10px;
    }
	.address-text .en {
        font-size: 10.5px;
        gap: 4px;
    }
	  .activity-list li {
        font-size: 15px;
    }

    .activity-text .en {
        font-size: 13px;
    }
}





































