/* --- RESET & BASE --- */
* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Segoe UI', Arial, sans-serif; }
body { background: #fff; color: #333; line-height: 1.6; scroll-behavior: smooth; }

/* --- NAVIGATION --- */
.navbar { background: #004d40; color: white; display: flex; justify-content: space-between; align-items: center; padding: 12px 5%; position: sticky; top: 0; z-index: 1000; box-shadow: 0 2px 10px rgba(0,0,0,0.3); }
.logo-container { display: flex; align-items: center; gap: 12px; }
.school-logo { height: 50px; width: 50px; border-radius: 50%; background: #fff; padding: 2px; }
.school-name { font-weight: bold; font-size: 1.3rem; letter-spacing: 1px; }
.nav-links { display: flex; list-style: none; }
.nav-links li { margin-left: 25px; }
.nav-links a { color: white; text-decoration: none; font-weight: 500; transition: 0.3s; }
.nav-links a:hover { color: #80cbc4; }

/* --- SLIDER --- */
.slider-container { width: 100%; height: 70vh; overflow: hidden; position: relative; }
.slider { display: flex; width: 500%; height: 100%; animation: slide-animation 25s infinite; }
.slide { width: 20%; height: 100%; background-size: cover; background-position: center; display: flex; justify-content: center; align-items: center; text-align: center; color: white; }
.slide-content h1 { font-size: 3rem; margin-bottom: 10px; text-shadow: 2px 2px 8px rgba(0,0,0,0.7); }
.btn { background: #fff; color: #004d40; padding: 12px 25px; text-decoration: none; font-weight: bold; border-radius: 5px; display: inline-block; margin-top: 15px; }

@keyframes slide-animation {
    0%, 15% { transform: translateX(0%); }
    20%, 35% { transform: translateX(-20%); }
    40%, 55% { transform: translateX(-40%); }
    60%, 75% { transform: translateX(-60%); }
    80%, 95% { transform: translateX(-80%); }
    100% { transform: translateX(0%); }
}

/* --- NEWS TICKER --- */
.news-ticker { display: flex; background: #f4f4f4; height: 45px; align-items: center; border-bottom: 3px solid #004d40; }
.ticker-label { background: #004d40; color: white; padding: 0 20px; font-weight: bold; height: 100%; display: flex; align-items: center; z-index: 2; font-size: 0.85rem; }
.ticker-content { flex-grow: 1; color: #004d40; font-weight: 600; }

/* --- MISSION & VISION --- */
.mission-vision-section { padding: 60px 5%; background: #fff; text-align: center; }
.section-title h2 { color: #004d40; font-size: 2.2rem; }
.underline { width: 60px; height: 4px; background: #004d40; margin: 10px auto 30px; }
.mission-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 25px; }
.mission-card { background: #f9f9f9; padding: 40px 20px; border-radius: 10px; transition: 0.3s; border: 1px solid #eee; }
.mission-card:hover { transform: translateY(-10px); border-top: 5px solid #004d40; box-shadow: 0 10px 20px rgba(0,0,0,0.1); }
.icon-box { width: 60px; height: 60px; background: #004d40; color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; font-size: 1.5rem; }
.mission-card h3 { color: #004d40; margin-bottom: 15px; }

/* --- NOTICE BOARD --- */
.notice-section { padding: 40px 5%; display: flex; justify-content: center; background: #f0f0f0; }
.notice-board { width: 100%; max-width: 700px; background: #fff; border-radius: 8px; box-shadow: 0 4px 12px rgba(0,0,0,0.1); overflow: hidden; }
.notice-header { background: #004d40; color: white; padding: 15px; text-align: center; }
.notice-list li { display: flex; padding: 15px; border-bottom: 1px solid #eee; align-items: center; }
.date { background: #004d40; color: white; padding: 4px 10px; border-radius: 4px; font-size: 0.75rem; margin-right: 15px; min-width: 65px; text-align: center; }
.view-all { display: block; text-align: center; padding: 12px; color: #004d40; text-decoration: none; font-weight: bold; border-top: 1px solid #eee; }

/* --- GALLERY --- */
.gallery-section { padding: 60px 5%; }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }
.gallery-item { position: relative; height: 250px; overflow: hidden; border-radius: 8px; cursor: pointer; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: 0.5s; }
.overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,77,64,0.85); color: white; display: flex; justify-content: center; align-items: center; opacity: 0; transition: 0.4s; font-size: 1.2rem; font-weight: bold; }
.gallery-item:hover .overlay { opacity: 1; }
.gallery-item:hover img { transform: scale(1.1); }

/* --- PRINCIPAL MESSAGE --- */
.principal-section { padding: 60px 5%; background: #f9f9f9; }
.principal-container { display: flex; align-items: center; gap: 40px; max-width: 1000px; margin: 0 auto; }
.principal-image img { width: 250px; border: 5px solid #004d40; border-radius: 12px; box-shadow: 5px 5px 15px rgba(0,0,0,0.1); }
.green-line { border: 2px solid #004d40; width: 50px; margin: 15px 0; }

/* --- CONTACT & MAP --- */
.contact-map-section { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; padding: 60px 5%; }
.contact-form h3 { margin-bottom: 20px; color: #004d40; }
.contact-form input, .contact-form textarea { width: 100%; margin-bottom: 15px; padding: 12px; border: 1px solid #ccc; border-radius: 5px; font-size: 1rem; }
.btn-submit { background: #004d40; color: white; border: none; padding: 12px 25px; cursor: pointer; border-radius: 5px; font-weight: bold; width: 100%; transition: 0.3s; }
.btn-submit:hover { background: #00332c; }

/* --- FOOTER --- */
footer { background: #004d40; color: white; text-align: center; padding: 40px 5%; }
.social-icons { margin-bottom: 20px; }
.social-icons a { color: white; margin: 0 15px; font-size: 1.8rem; transition: 0.3s; }
.social-icons a:hover { color: #80cbc4; }

/* --- RESPONSIVE DESIGN --- */
@media (max-width: 850px) {
    .navbar { flex-direction: column; gap: 10px; }
    .nav-links li { margin: 0 10px; }
    .contact-map-section { grid-template-columns: 1fr; }
    .principal-container { flex-direction: column; text-align: center; }
    .green-line { margin: 15px auto; }
    .slide-content h1 { font-size: 2rem; }
}

/* Gallery Page Grid */
.gallery-page {
    padding: 40px 5%;
    text-align: center;
}

.full-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.clickable-image {
    height: 200px;
    overflow: hidden;
    border-radius: 8px;
    cursor: zoom-in;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.clickable-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.3s ease;
}

.clickable-image:hover img {
    transform: scale(1.05);
    filter: brightness(80%);
}

/* --- LIGHTBOX (Modal) --- */
.lightbox {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.lightbox-content {
    max-width: 90%;
    max-height: 80%;
    border: 3px solid white;
    border-radius: 5px;
    animation: zoom 0.3s ease;
}

@keyframes zoom {
    from { transform: scale(0.5); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.close-btn {
    position: absolute;
    top: 30px;
    right: 40px;
    color: white;
    font-size: 50px;
    font-weight: bold;
    cursor: pointer;
}

.close-btn:hover {
    color: #80cbc4;
}


/* Filter Button Styles */
.filter-container {
    margin-bottom: 30px;
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 25px;
    border: 2px solid #004d40;
    background: transparent;
    color: #004d40;
    font-weight: bold;
    cursor: pointer;
    border-radius: 30px;
    transition: 0.3s;
}

.filter-btn:hover, .filter-btn.active {
    background-color: #004d40;
    color: white;
}

/* Ensure hidden images don't take up space */
.clickable-image {
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Management Page Styles */
.management-page {
    padding: 60px 10%;
    background-color: #fff;
}

.team-container {
    display: flex;
    flex-direction: column;
    gap: 50px;
    margin-top: 40px;
}

.leader-card {
    display: flex;
    align-items: center;
    background: #f9f9f9;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: 0.3s;
}

.leader-card:hover {
    transform: scale(1.01);
}

.leader-card.reverse {
    flex-direction: row-reverse;
}

.leader-image {
    flex: 1;
    min-width: 300px;
}

.leader-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.leader-info {
    flex: 2;
    padding: 40px;
}

.designation {
    display: inline-block;
    background: #004d40;
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.leader-info h3 {
    color: #004d40;
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.leader-info .message {
    font-style: italic;
    color: #555;
    line-height: 1.8;
    font-size: 1.1rem;
    position: relative;
}

.leader-info .message::before {
    content: '"';
    font-size: 3rem;
    color: #ccc;
    position: absolute;
    top: -20px;
    left: -20px;
}

/* Responsive Management Page */
@media (max-width: 850px) {
    .leader-card, .leader-card.reverse {
        flex-direction: column;
        text-align: center;
    }
    .leader-image {
        width: 100%;
    }
    .leader-info .message::before {
        display: none;
    }
}

/* Contact Page Specific Styles */
.contact-page {
    padding: 60px 5%;
    background-color: #f4f7f6;
}

.contact-wrapper {
    display: flex;
    gap: 40px;
    max-width: 1100px;
    margin: 40px auto;
}

.contact-info-card {
    flex: 1;
    background: #004d40;
    color: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.info-item {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

.info-item i {
    font-size: 1.2rem;
    color: #80cbc4;
    margin-top: 5px;
}

.info-item h4 {
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.info-item p {
    font-size: 0.9rem;
    opacity: 0.9;
}

.hours-box {
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px solid rgba(255,255,255,0.2);
}

.hours-box h4 {
    margin-bottom: 15px;
}

.hours-box ul {
    list-style: none;
}

.hours-box li {
    font-size: 0.9rem;
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
}

.contact-form-container {
    flex: 2;
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.form-group {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.contact-form-container select {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: #f9f9f9;
}

/* Responsive Contact Page */
@media (max-width: 900px) {
    .contact-wrapper {
        flex-direction: column;
    }
    .form-group {
        flex-direction: column;
        gap: 0;
    }
}
/* Notices Page Layout */
.notices-page {
    padding: 60px 5%;
    background-color: #fcfcfc;
}

.notices-wrapper {
    display: flex;
    gap: 30px;
    max-width: 1200px;
    margin: 40px auto;
}

.notices-main {
    flex: 2;
}

.notice-item-long {
    background: white;
    display: flex;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    border-left: 5px solid #004d40;
}

.notice-date-box {
    background: #004d40;
    color: white;
    padding: 15px;
    text-align: center;
    border-radius: 5px;
    min-width: 80px;
    height: fit-content;
    margin-right: 20px;
}

.notice-date-box .day { font-size: 1.5rem; font-weight: bold; display: block; }
.notice-date-box .month { font-size: 0.8rem; text-transform: uppercase; }

.notice-text-content h4 { color: #004d40; margin-bottom: 8px; }
.read-more { display: inline-block; margin-top: 10px; color: #004d40; font-size: 0.85rem; font-weight: bold; text-decoration: none; }

/* Sidebar Downloads */
.downloads-sidebar {
    flex: 1;
}

.download-card {
    background: #004d40;
    color: white;
    padding: 30px;
    border-radius: 10px;
}

.download-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255,255,255,0.1);
    color: white;
    padding: 15px;
    margin-top: 15px;
    text-decoration: none;
    border-radius: 5px;
    font-size: 0.9rem;
    transition: 0.3s;
}

.download-link:hover {
    background: white;
    color: #004d40;
}

.help-box {
    margin-top: 20px;
    padding: 20px;
    border: 2px dashed #004d40;
    border-radius: 10px;
    text-align: center;
}

/* Mobile Responsive */
@media (max-width: 800px) {
    .notices-wrapper { flex-direction: column; }
    .notice-item-long { flex-direction: column; }
    .notice-date-box { margin-bottom: 15px; width: 100%; }
}


.feedback-container {
    padding: 80px 10%;
    background-color: #f9f9f9;
    min-height: 80vh;
}

.feedback-card {
    max-width: 700px;
    margin: 0 auto;
    background: #fff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-top: 5px solid #004d40; /* School Green */
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.submit-btn {
    background-color: #004d40;
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    width: 100%;
    transition: 0.3s;
}

.submit-btn:hover {
    background-color: #002d26;
    transform: translateY(-2px);
}

@media screen and (max-width: 600px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}