/* General Reset */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Segoe UI', sans-serif; line-height: 1.6; scroll-behavior: smooth; }

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #1a237e;
  padding: 15px 30px;
  color: white;
  position: sticky;
  top: 0;
  z-index: 1000;
}

/* Logo */
.logo {
  font-size: 1.5rem;
  font-weight: bold;
}

/* Nav Links */
.nav-links {
  display: flex;
  list-style: none;
  gap: 20px;
}

.nav-links li a {
  color: white;
  text-decoration: none;
  transition: 0.3s;
  font-size: 1rem;
}

.nav-links li a:hover {
  color: #fbc02d;
}

/* Hamburger */
.menu-toggle {
  display: none;
  font-size: 2rem;
  cursor: pointer;
}

/* Responsive */
@media (max-width: 768px) {

  .menu-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 70px;
    right: 0;
    background: #1a237e;
    width: 100%;
    flex-direction: column;
    align-items: center;
    display: none;
    padding: 20px 0;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links li {
    margin: 10px 0;
  }
}
/* ================= Hero Section ================= */

.hero {
    background: url('images/nys_logo3.jpeg') center center/cover no-repeat;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 80px 20px;
    position: relative;
    color: #fff;
}

/* Dark Overlay */
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
}

/* Hero Content */
.hero-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    font-weight: bold;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    line-height: 1.6;
}

/* Button */
.btn {
    display: inline-block;
    padding: 14px 30px;
    background: #10df33;
    color: #000;
    text-decoration: none;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn:hover {
    background: #ff9800;
    transform: translateY(-3px);
}

/* ================= Mobile ================= */

@media (max-width: 768px) {

    .hero {
        min-height: 60vh;
        padding: 50px 15px;
        background-position: center;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .btn {
        padding: 12px 22px;
        font-size: 15px;
    }
}

@media (max-width: 480px) {

    .hero {
        min-height: 50vh;
    }

    .hero-content h1 {
        font-size: 1.6rem;
    }

    .hero-content p {
        font-size: 0.9rem;
    }

    .btn {
        width: 100%;
        max-width: 220px;
    }
}
 /* School Information Section  */

.school-info{
    width: 100%;
    background: #f4c400;
    padding: 40px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.info-box{
    max-width: 1000px;
    width: 100%;
    text-align: center;
    font-family: Arial, sans-serif;
}

.info-box h1{
    font-size: 55px;
    color: #d800ad;
    font-weight: bold;
    margin-bottom: 20px;
    letter-spacing: 2px;
}

.info-box p{
    font-size: 28px;
    color: #0057d8;
    font-weight: bold;
    margin: 12px 0;
}

.hostel{
    font-size: 32px;
    background: #0057d8;
    color: white !important;
    display: inline-block;
    padding: 12px 25px;
    border-radius: 10px;
    margin-top: 20px;
}

/* Responsive Design */

@media(max-width:768px){

    .info-box h1{
        font-size: 34px;
    }

    .info-box p{
        font-size: 20px;
    }

    .hostel{
        font-size: 22px;
    }
}

/* Sections */
.section { padding: 60px 20px; text-align: center; }
.cards { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; }
.card {
  background: #e3f2fd; padding: 20px; border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1); transition: transform 0.3s;
}
.card:hover { transform: translateY(-5px); }

/* Gallery Carousel */
.carousel {
  position: relative; max-width: 800px; margin: auto;
  overflow: hidden; border-radius: 10px; box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}
.slides { display: flex; transition: transform 0.5s ease-in-out; }
.slide { min-width: 100%; }
.slide img { width: 100%; border-radius: 10px; }
.prev, .next {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(0,0,0,0.5); color: #fff; border: none;
  padding: 10px; cursor: pointer; border-radius: 50%;
}
.prev { left: 10px; } .next { right: 10px; }
.prev:hover, .next:hover { background: #fbc02d; color: #000; }

/* Testimonials */
.testimonials { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; margin-top: 30px; }
.testimonial {
  background: #fff3e0; padding: 20px; border-radius: 10px; max-width: 300px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1); transition: transform 0.3s;
}
.testimonial:hover { transform: translateY(-5px); }
.testimonial p { font-style: italic; margin-bottom: 15px; }
.testimonial h4 { color: #1a237e; font-weight: bold; }

/* Upcoming Events */
.events { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; margin-top: 30px; }
.event-card {
  background: #fffde7; padding: 20px; border-radius: 10px; max-width: 300px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1); transition: transform 0.3s, background 0.3s;
}
.event-card:hover { transform: translateY(-5px); background: #fff9c4; }
.event-card h3 { color: #1a237e; margin-bottom: 10px; }

/* Faculty Section */
.faculty-grid { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; margin-top: 30px; }
.faculty-card {
  background: #f1f8e9; padding: 20px; border-radius: 10px; max-width: 250px; text-align: center;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1); transition: transform 0.3s, background 0.3s;
}
.faculty-card:hover { transform: translateY(-5px); background: #dcedc8; }
.faculty-card img {
  width: 100%; height: 200px; object-fit: cover; border-radius: 50%; margin-bottom: 15px;
}
.faculty-card h3 { color: #1a237e; margin-bottom: 5px; }

/* Achievements */
.achievements-grid { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; margin-top: 30px; }
.achievement-card {
  background: #fff8e1; padding: 20px; border-radius: 10px; max-width: 250px; text-align: center;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1); transition: transform 0.3s, background 0.3s;
}
.achievement-card:hover { transform: translateY(-5px); background: #ffecb3; }
.achievement-card img {
  width: 100%; height: 150px; object-fit: cover; border-radius: 8px; margin-bottom: 15px;
}
.achievement-card h3 { color: #1a237e; margin-bottom: 10px; }

/* News Ticker */
.news-ticker {
  background: #e3f2fd; border-radius: 10px; padding: 15px; overflow: hidden;
  max-width: 800px; margin: auto; box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}
.news-ticker ul { list-style: none; display: flex; animation: scrollNews 15s linear infinite; }
.news-ticker li { margin-right: 50px; white-space: nowrap; font-weight: bold; color: #1a237e; }
@keyframes scrollNews { from { transform: translateX(100%); } to { transform: translateX(-100%); } }

/* Contact */
/* .contact form { display: flex; flex-direction: column; max-width: 400px; margin: auto; }
.contact input, .contact textarea {
  margin: 10px 0; padding: 10px; border: 1px solid #ccc; border-radius: 5px;
}
.contact button { margin-top: 10px; } */

/* Contact Section */
.contact-section {
  background: #f0f8ff;
  padding: 60px 20px;
  text-align: center;
}

.contact-section h2 {
  font-size: 2.5rem;
  color: #0066cc;
  margin-bottom: 10px;
}

.contact-intro {
  font-size: 1.1rem;
  margin-bottom: 30px;
  color: #555;
}

.contact-form {
  max-width: 600px;
  margin: auto;
  background: #fff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 6px 12px rgba(0,0,0,0.1);
}

.form-group {
  text-align: left;
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-weight: bold;
  margin-bottom: 8px;
  color: #333;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: #0066cc;
  outline: none;
}

textarea {
  min-height: 120px;
  resize: vertical;
}

.btn-submit {
  background: #0066cc;
  color: white;
  padding: 14px 25px;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s ease;
}

.btn-submit:hover {
  background: #004999;
}

#formStatus {
  margin-top: 15px;
  font-size: 1rem;
  color: #0066cc;
}


/* Call-to-Action */
.cta-section {
  background: linear-gradient(to right, #1a237e, #3949ab); color: #fff; text-align: center;
  padding: 80px 20px; margin-top: 40px; border-radius: 10px;
}
.cta-section h2 { font-size: 2.5rem; margin-bottom: 20px; animation: slideIn 1.5s ease; }
.cta-section p { font-size: 1.2rem; margin-bottom: 30px; animation: fadeIn 2s ease; }
.cta-btn { background: #fbc02d; color: #000; padding: 15px 30px; text-decoration: none; border-radius: 5px; font-weight: bold; transition: 0.3s; }
.cta-btn:hover { background: #ff9800; transform: scale(1.1); }

/*================ Facilities Section ================*/

#facilities{
    background:#f8fbff;
}

.section-subtitle{
    max-width:750px;
    margin:15px auto 50px;
    color:#666;
    text-align:center;
    line-height:1.8;
}

.facility-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
    gap:30px;
}

.facility-card{
    background:#fff;
    padding:35px 25px;
    border-radius:15px;
    text-align:center;
    box-shadow:0 8px 20px rgba(0,0,0,.08);
    transition:all .35s ease;
    position:relative;
    overflow:hidden;
}

.facility-card::before{
    content:"";
    position:absolute;
    left:0;
    top:0;
    width:100%;
    height:5px;
    background:#0d6efd;
    transform:scaleX(0);
    transition:.35s;
}

.facility-card:hover::before{
    transform:scaleX(1);
}

.facility-card:hover{
    transform:translateY(-10px);
    box-shadow:0 18px 35px rgba(0,0,0,.18);
}

.facility-icon{
    width:85px;
    height:85px;
    margin:0 auto 20px;
    border-radius:50%;
    background:linear-gradient(135deg,#0d6efd,#4da3ff);
    color:#fff;
    display:flex;
    justify-content:center;
    align-items:center;
    font-size:42px;
    transition:.4s;
}

.facility-card:hover .facility-icon{
    transform:rotate(360deg) scale(1.1);
}

.facility-card h3{
    color:#003b8f;
    margin-bottom:15px;
    font-size:22px;
}

.facility-card p{
    color:#666;
    line-height:1.8;
    font-size:15px;
}
.facility-card{
    opacity:0;
    transform:translateY(40px);
}

.facility-card.show-card{
    opacity:1;
    transform:translateY(0);
    transition:all .6s ease;
}
/*================ Campus Gallery =================*/

#campus{
    background:#f8fbff;
    padding:80px 0;
}

.section-subtitle{
    max-width:700px;
    margin:15px auto 40px;
    text-align:center;
    color:#666;
    line-height:1.8;
}

.campus-gallery{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
    gap:20px;
}

.gallery-item{
    overflow:hidden;
    border-radius:15px;
    box-shadow:0 8px 20px rgba(0,0,0,.12);
}

.gallery-item img{
    width:100%;
    height:250px;
    object-fit:cover;
    display:block;
    transition:0.4s;
}

.gallery-item:hover img{
    transform:scale(1.08);
}
/*================ Floating Contact Buttons =================*/

.floating-contact{
    position:fixed;
    right:25px;
    bottom:25px;
    display:flex;
    flex-direction:column;
    gap:15px;
    z-index:9999;
}

/* Common Button Style */

.floating-contact a{
    width:65px;
    height:65px;
    border-radius:50%;
    display:flex;
    justify-content:center;
    align-items:center;
    text-decoration:none;
    color:#fff;
    font-size:30px;
    box-shadow:0 8px 20px rgba(0,0,0,.25);
    transition:all .3s ease;
}

/* Call Button */

.call-btn{
    background:#007bff;
}

.call-btn:hover{
    background:#0056d2;
    transform:translateY(-5px) scale(1.08);
}

/* WhatsApp Button */

.whatsapp-btn{
    background:#25D366;
}

.whatsapp-btn:hover{
    background:#1ebc57;
    transform:translateY(-5px) scale(1.08);
}

/* Pulse Animation */

.call-btn,
.whatsapp-btn{
    animation:pulse 2s infinite;
}

@keyframes pulse{

    0%{
        box-shadow:0 0 0 0 rgba(0,123,255,.5);
    }

    70%{
        box-shadow:0 0 0 15px rgba(0,123,255,0);
    }

    100%{
        box-shadow:0 0 0 0 rgba(0,123,255,0);
    }

}

/* Mobile */

@media(max-width:768px){

    .floating-contact{
        right:18px;
        bottom:18px;
        gap:12px;
    }

    .floating-contact a{
        width:58px;
        height:58px;
        font-size:28px;
    }

}
/* School Stats Section */
.stats-section {
    padding: 80px 20px;
    background: #f8f9fc;
    text-align: center;
}

.stats-section h2 {
    font-size: 2.2rem;
    color: #1f3c88;
    margin-bottom: 50px;
    font-weight: 700;
}

.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
    max-width: 1100px;
    margin: auto;
}

.stat-box {
    background: #ffffff;
    padding: 35px 20px;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    cursor: pointer;
}

.stat-box:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.stat-box h3 {
    font-size: 3rem;
    color: #0d6efd;
    margin-bottom: 10px;
    font-weight: 700;
}

.stat-box p {
    font-size: 1.1rem;
    color: #555;
    font-weight: 500;
    margin: 0;
}

/* Mobile */
@media (max-width: 768px) {
    .stats-section {
        padding: 60px 15px;
    }

    .stats-section h2 {
        font-size: 1.8rem;
        margin-bottom: 35px;
    }

    .stat-box {
        padding: 30px 15px;
    }

    .stat-box h3 {
        font-size: 2.5rem;
    }

    .stat-box p {
        font-size: 1rem;
    }
}

/* Footer */
footer { background: #1a237e; color: #fff; padding: 40px 20px; }
.footer-container { display: flex; justify-content: space-around; flex-wrap: wrap; margin-bottom: 20px; }
.footer-section { max-width: 250px; }
.footer-section h3 { margin-bottom: 15px; color: #fbc02d; }
.footer-section ul { list-style: none; padding: 0; }
.footer-section ul li { margin: 8px 0; }
.footer-section ul li a { color: #fff; text-decoration: none; transition: 0.3s; }
.footer-section ul li a:hover { color: #fbc02d}

/* header section */

