/* --- Reset & Global Variables --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    scroll-behavior: smooth;
}

:root {
    --primary-color: #0d3b66;
    --secondary-color: #f4d35e;
    --text-dark: #333;
    --text-light: #666;
    --bg-light: #f9f9f9;
    --white: #ffffff;
}

body {
    color: var(--text-dark);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.bg-light {
    background-color: var(--bg-light);
}

h2 {
    text-align: center;
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 3rem;
    position: relative;
}

h2::after {
    content: '';
    width: 60px;
    height: 4px;
    background-color: var(--secondary-color);
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

/* --- Navigation --- */
header {
    background-color: var(--primary-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 4rem;
    position: relative;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.logo{
    display:flex;
    align-items: center;
}

.logo h2 {
  margin: 0 0 0 15px;
  color:white;
  font-size: 2.2rem;
  font-weight: bold;
  display: flex;
  align-items: center;
  height:60px;

}

.logo h2::after {
    display: none;
}

.logo img {
    width:60px;
    height: 60px;
    border-radius: 50%;

}
.admission_bar{
    height:120px;
    width:60px;
    color:orange;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li a {
    color: var(--white);
    text-decoration: none;
    padding: 0.5rem 1rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links li a:hover, 
.nav-links li a.active {
    color: var(--secondary-color);
}

.burger {
    display: none;
    cursor: pointer;
}

.burger div {
    width: 25px;
    height: 3px;
    background-color: var(--white);
    margin: 5px;
    transition: all 0.3s ease;
}


/* --- Hero Section --- */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(13, 59, 102, 0.7), rgba(13, 59, 102, 0.7)), 
                url("schoolwithbus.jpeg") no-repeat center center/cover;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--white);
    padding-top: 60px;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    letter-spacing: 1px;
}
.hero-content h3{
    color:white;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons{
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 30px;
}

.btn1{
    display: flex;
    justify-content: center;
    align-items: center;
    width: 180px;
    height: 55px;
    background-color: var(--secondary-color);
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
    border-radius: 4px;
    transition: transform 0.3s, background-color 0.3s;
}

.btn1:hover{
    transform: translateY(-3px);
    background-color: #f2c83b;
}



/* --- About Section --- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-text h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.about-text p {
    margin-bottom: 1rem;
    color: var(--text-light);
}

.about-image img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* --- Cards Layout (Academics & Facilities) --- */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.card {
    background-color: var(--white);
    padding: 2.5rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.card-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.card h3 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.card p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* --- Contact Section --- */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
}

.contact-info {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 2.5rem;
    border-radius: 8px;
}

.contact-info h3 {
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    color: var(--secondary-color);
}

.contact-info p {
    margin-bottom: 1.2rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-form-container form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-form-container input,
.contact-form-container textarea {
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    outline: none;
}

.contact-form-container input:focus,
.contact-form-container textarea:focus {
    border-color: var(--primary-color);
}

.btn-submit {
    padding: 1rem;
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-submit:hover {
    background-color: #092642;
}

.form-feedback {
    margin-top: 1rem;
    padding: 0.8rem;
    border-radius: 4px;
    text-align: center;
    font-weight: 500;
}

.form-feedback.success {
    background-color: #d4edda;
    color: #155724;
}

.hidden {
    display: none;
}

/* --- Footer --- */
footer {
    background-color: #08213a;
    color: #bbb;
    text-align: center;
    padding: 1.5rem;
    font-size: 0.9rem;
}

/* --- Responsive Media Queries --- */
@media (max-width: 768px) {
    header {
        padding: 1rem 2rem;
    }

    .nav-links {
        position: absolute;
        right: 0px;
        height: 92vh;
        top: 8vh;
        background-color: var(--primary-color);
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 50%;
        transform: translateX(100%);
        transition: transform 0.5s ease-in;
        padding-top: 2rem;
        gap: 2rem;
        box-shadow: -5px 5px 10px rgba(0,0,0,0.1);
    }

    .burger {
        display: block;
    }

    .nav-active {
        transform: translateX(0%);
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .about-grid, .contact-wrapper {
        grid-template-columns: 1fr;
    }
}
.school-announcement-strip {
    display: block !important;
    width: 100% !important;
    background-color: #f2c83b !important;
    color: #0d3b66 !important;
    padding: 12px 0 !important;
    font-weight: bold;
    font-size: 16px;
    overflow: hidden;
    position: relative !important;
    z-index: 9999 !important;
    clear: both !important;
}

.scroll-text {
    display: inline-block;
    white-space: nowrap;
    padding-left: 100%;
    animation: scroll 15s linear infinite;
}

@keyframes scroll {
    0% {
        transform: translateX(0%);
    }
    100% {
        transform: translateX(-100%);
    }
}
/* --- Dropdown Positioning & Layout --- */
.nav-links li {
  position: relative; /* Keeps the dropdown attached to the Facilities text */
}

.dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #0d3b66; /* Keep your deep blue background */
  min-width: 180px;          /* Widened slightly so text fits nicely */
  box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.3);
  list-style: none;
  padding: 0;
  margin: 0;
  z-index: 9999 !important;  /* Forces it to slide OVER the yellow banner */
}
/* --- Dropdown Links Text --- */
.dropdown-content li a {
  color: #ffffff !important;   /* White text */
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  font-size: 14px;
  font-weight: normal;
  text-align: left;
  transition: all 0.2s ease-in-out;
}

/* --- Yellow Hover States --- */
/* 1. Turns text Yellow when hovering over individual dropdown options */
.dropdown-content li a:hover {
  background-color: rgba(255, 255, 255, 0.1); /* Slight white highlight */
  color: #ffcc00 !important;                  /* Bright Yellow Text */
}

/* 2. Keeps the main "Facilities" link text yellow while browsing the dropdown */
.dropdown:hover > a {
  color: #ffcc00 !important;
}

/* --- Action: Show Menu on Hover --- */
.dropdown:hover .dropdown-content {
  display: block;
}

/* Space out the caret icon slightly */
.nav-links .fa-caret-down {
  margin-left: 5px;
}
/* --- Academic Page Specific Styles --- */

/* Page Sub-banner */
.page-banner {
  background-color: #0d3b66;
  color: white;
  text-align: center;
  padding: 60px 20px;
  border-bottom: 5px solid #ffcc00; /* School Yellow Accent Line */
}
.page-banner h1 { font-size: 36px; margin-bottom: 10px; }
.page-banner p { font-size: 18px; opacity: 0.9; }

/* Sections general */
.academic-section {
  padding: 60px 5%;
  text-align: center;
}
.gray-bg { background-color: #f9f9f9; }

.section-title {
  font-size: 28px;
  color: #0d3b66;
  margin-bottom: 5px;
}
.underline {
  width: 70px;
  height: 4px;
  background-color: #ffcc00; /* Yellow */
  margin: 0 auto 20px auto;
  border-radius: 2px;
}
.section-subtitle {
  color: #666;
  margin-bottom: 40px;
}

/* Alumni Responsive Grid Layout */
.alumni-grid {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}
.alumni-card {
  background: white;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  padding: 25px;
  width: 280px;
  text-align: center;
  transition: transform 0.3s ease;
  border-top: 4px solid #0d3b66;
}
.alumni-card:hover {
  transform: translateY(-5px);
}
.alumni-card img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 15px;
  border: 3px solid #ffcc00;
}
.alumni-card h3 { color: #333; margin-bottom: 5px; }
.alumni-batch { font-size: 13px; color: #ffcc00; font-weight: bold; margin-bottom: 10px; }
.alumni-achieve { font-size: 14px; color: #666; font-style: italic; }

/* Syllabus Layout Columns */
.syllabus-container {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  margin-top: 20px;
}
.syllabus-box {
  background: white;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  width: 45%;
  min-width: 320px;
  overflow: hidden;
  text-align: left;
}
.box-header {
  color: white;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 15px;
}
.box-header i { font-size: 24px; }
.box-header h3 { margin: 0; font-size: 20px; }
.primary-hdr { background-color: #0d3b66; }
.secondary-hdr { background-color: #114b82; } /* Slightly lighter school blue step */

.box-body { padding: 30px; }
.box-body p { color: #555; line-height: 1.6; margin-bottom: 20px; }
.box-body h4 { color: #0d3b66; margin-bottom: 15px; }
.box-body ul { list-style: none; padding: 0; margin-bottom: 25px; }
.box-body ul li { margin-bottom: 10px; color: #444; display: flex; align-items: center; gap: 10px; }
.box-body ul li i { color: #ffcc00; font-size: 14px; }

/* Interactive Download Buttons styled Yellow */
.download-btn {
  display: inline-block;
  background-color: #ffcc00;
  color: #0d3b66 !important;
  text-decoration: none;
  padding: 12px 20px;
  border-radius: 4px;
  font-weight: bold;
  font-size: 14px;
  transition: background 0.2s ease;
  width: 100%;
  text-align: center;
  box-sizing: border-box;
}
.download-btn:hover {
  background-color: #e6b800;
}
/* --- Contact & Registration Layout Framework --- */

.contact-container {
  display: flex;
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 20px;
  gap: 40px;
  flex-wrap: wrap; /* Allows sections to automatically stack on mobile screens */
}

/* Base Panel Rules */
.contact-info-panel, .registration-panel {
  background: #ffffff;
  padding: 35px;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  flex: 1;
  min-width: 340px;
}

.contact-container h2 {
  color: #0d3b66;
  font-size: 24px;
  margin-bottom: 5px;
}

.small-underline {
  width: 50px;
  height: 4px;
  background-color: #ffcc00; /* Yellow accent line */
  margin-bottom: 15px;
  border-radius: 2px;
}

.panel-desc {
  color: #666;
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 30px;
}

/* Contact Info Item Styling */
.info-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 25px;
}

.info-icon {
  background-color: rgba(13, 59, 102, 0.1);
  color: #0d3b66;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.info-text h3 {
  font-size: 16px;
  color: #333;
  margin: 0 0 4px 0;
}

.info-text p {
  font-size: 14px;
  color: #555;
  line-height: 1.5;
  margin: 0;
}

.map-box {
  margin-top: 30px;
}

.map-box h3 {
  font-size: 16px;
  color: #0d3b66;
  margin-bottom: 12px;
}

/* Modern Form Interface Rules */
.form-row {
  display: flex;
  gap: 20px;
}

.form-row .form-group {
  flex: 1;
}

.form-group {
  margin-bottom: 20px;
  text-align: left;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: bold;
  color: #0d3b66;
  margin-bottom: 6px;
}

.form-group input, 
.form-group select, 
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 14px;
  font-family: inherit;
  box-sizing: border-box;
  outline: none;
  transition: border-color 0.2s;
}

.form-group input:focus, 
.form-group select:focus, 
.form-group textarea:focus {
  border-color: #0d3b66; /* Changes container borders to school blue upon typing */
}

/* Yellow Action Button */
.submit-btn {
  background-color: #ffcc00;
  color: #0d3b66;
  border: none;
  width: 100%;
  padding: 14px;
  font-size: 16px;
  font-weight: bold;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.submit-btn:hover {
  background-color: #e6b800; /* Darker yellow accent frame on active cursor point */
}

/* ================= GALLERY ================= */

.gallery-section {
    padding: 60px 20px;
    background: #f8fafc;
}

.gallery-section .container {
    max-width: 1200px;
    margin: auto;
}

.gallery-section h2 {
    text-align: center;
    margin-bottom: 10px;
}

.gallery-section .small-underline {
    margin: 0 auto 40px;
}


/* 3 COLUMN GRID */

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}


/* IMAGE CARD */

.gallery-item {
    overflow: hidden;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.12);
}


/* ALL IMAGES SAME SIZE */

.gallery-item img {
    width: 100%;
    height: 250px;
    display: block;
    object-fit: cover;
}


/* CAPTION */

.gallery-caption {
    padding: 14px;
    text-align: center;
    font-size: 17px;
    font-weight: 600;
    color: #222;
    background: #ffffff;
}


/* HOVER EFFECT */

.gallery-item:hover img {
    transform: scale(1.05);
    transition: transform 0.4s ease;
}


/* TABLET */

@media (max-width: 900px) {

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

}


/* MOBILE */

@media (max-width: 600px) {

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .gallery-item img {
        height: 240px;
    }

}