/* =====================================================
   ROOT VARIABLES
===================================================== */
:root{
  --primary:#8b5cf6;
  --secondary:#ec4899;
  --accent:#facc15;

  --navy:#7e22ce;
  --gold: var(--accent);
  --gold-dark:#eab308;

  --gray:#f3f4f6;
  --muted:#6b7280;
  --focus:#facc15;
  --text:#1f2937;
}

/* =====================================================
   GLOBAL RESET
===================================================== */
html, body{
  margin:0;
  padding:0;
  scroll-behavior:smooth;
}

body{
  font-family:Inter, system-ui;
  color:var(--text);
  background:#fff;
  line-height:1.6;
   padding-top: var(--nav-height); 
}

h1,h2,h3,h4{
  font-family:Merriweather, Georgia, serif;
  color:var(--navy);
}

section{
  padding:80px 0;
}

/* =====================================================
   NAVBAR
===================================================== */
.navbar{
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: var(--navy);
  height: 95px;
  display: flex;
  align-items: center;
  padding: 0 1.5rem;
}
/* BRAND ALIGN FIX */
.navbar .navbar-brand{
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0;
}

.school-logo{
  height: 85px;       /* bada clear size */
  width: auto;
  object-fit: contain;
  display: block;
}


/* SCHOOL NAME */
.school-name{
  font-size: 1.5rem;   /* pehle 1.95 tha – ab thoda balanced */
  font-weight: 600;
  letter-spacing: .4px;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}


/* NAV LINKS */
.navbar .nav-link{
  color:#e5e7eb;
  font-weight:500;
  margin-left:1rem;
  position:relative;
}

.navbar .nav-link:hover{
  color:var(--gold);
}

.navbar .nav-link.active{
  color:var(--gold) !important;
  font-weight:600;
}

.navbar .nav-link.active::after{
  content:"";
  position:absolute;
  bottom:-6px;
  left:0;
  width:100%;
  height:2px;
  background:var(--gold);
}

/* =====================================================
   HERO CAROUSEL
===================================================== */
#heroCarousel .carousel-item{
  height:calc(100vh - 80px);
  min-height:500px;
  max-height:1000px;
  overflow:hidden;
}

#heroCarousel .carousel-item img{
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center;
}

#heroCarousel .carousel-caption{
  position:absolute;
  top:50%;
  left:50%;
  transform:translate(-50%,-50%);
  background:rgba(124,58,237,.45);
  padding:1.5rem 2rem;
  border-radius:12px;
  max-width:720px;
  text-align:center;
}

#heroCarousel h1{
  font-size:clamp(2rem,4vw,3.2rem);
  font-weight:700;
  color:#fff;
}

#heroCarousel p{
  color:#f3f4f6;
  font-size:1.15rem;
}

/* =====================================================
   COMMON PAGE HERO
===================================================== */
.page-hero{
  min-height:90vh;
  display:flex;
  align-items:center;
  text-align:center;
  background-size:cover;
  background-position:center;
  background-repeat:no-repeat;
}

.page-hero,
.page-hero h1,
.page-hero p,
.page-hero .eyebrow{
  color:#fff !important;
}

.page-hero h1,
.page-hero p{
  text-shadow:0 6px 20px rgba(0,0,0,.35);
}

.page-hero p{
  max-width:760px;
  margin:auto;
}

.eyebrow{
  text-transform:uppercase;
  letter-spacing:.14em;
  font-size:.85rem;
}

/* =====================================================
   CARDS
===================================================== */
.feature-card{
  border:none;
  border-radius:14px;
  box-shadow:0 8px 24px rgba(0,0,0,.06);
  transition:.25s ease;
  background:#fff;
}

.feature-card:hover{
  transform:translateY(-4px);
  box-shadow:0 14px 32px rgba(0,0,0,.08);
}

/* =====================================================
   GALLERY
===================================================== */
.gallery-card{
  overflow:hidden;
  border-radius:14px;
  transition:.25s ease;
}

.gallery-card img{
  width:100%;
  height:250px;
  object-fit:cover;
}

.gallery-card:hover{
  transform:translateY(-6px);
  box-shadow:0 18px 36px rgba(0,0,0,.12);
}

/* =====================================================
   FOOTER
===================================================== */
/* ================= FOOTER ================= */

.footer-section {
  background: var(--navy);
  color: #eaf0ff;
}

.footer-brand {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.footer-text {
  font-size: 14px;
  line-height: 1.7;
  opacity: 0.9;
}

.footer-heading {
  color: #ffffff;
  font-weight: 600;
  margin-bottom: 15px;
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-links a {
  color: #eaf0ff;
  text-decoration: none;
  font-size: 14px;
  transition: all 0.3s ease;
}

.footer-links a:hover {
  color: var(--gold);
  padding-left: 4px;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  color: #ffffff;
  margin-right: 10px;
  transition: all 0.3s ease;
}

.social-links a:hover {
  background: var(--gold);
  color: #000;
  transform: translateY(-3px);
}

.newsletter-form input {
  border-radius: 6px;
  border: none;
}

.btn-gold {
  background: var(--gold);
  border: none;
  color: #000;
  font-weight: 600;
  transition: 0.3s;
}

.btn-gold:hover {
  opacity: 0.9;
}

.footer-divider {
  border-color: rgba(255,255,255,0.15);
}

.footer-bottom small {
  font-size: 13px;
}

.footer-bottom a {
  color: #eaf0ff;
  text-decoration: none;
}

.footer-bottom a:hover {
  color: var(--gold);
}

/* ========== Responsive Fixes ========== */

@media (max-width: 768px) {
  .footer-section {
    text-align: center;
  }

  .social-links {
    justify-content: center;
  }

  .footer-bottom {
    text-align: center !important;
  }
}

/* =====================================================
   BUTTONS
===================================================== */
.btn-brand{
  background:var(--navy);
  color:#fff;
  border:none;
}

.btn-brand:hover{
  background:#172c6e;
}

/* ================= NEWS PANEL ================= */
.news-wrapper {
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #7c3aed, #6d28d9);
  overflow: hidden;
  position: relative;
  padding: 10px 20px;
}

.news-label {
  background: var(--gold);
  color: #1f2937;
  font-weight: 700;
  padding: 10px 20px;
  border-radius: 30px;
  white-space: nowrap;
  margin-right: 15px;
  flex-shrink: 0;
}

.news-ticker {
  overflow: hidden;
  flex: 1;
  position: relative;
}

.news-track {
  display: inline-block;
  white-space: nowrap;
  /* animation-duration set dynamically inline */
  animation: scrollNews linear infinite;
}

.news-item {
  display: inline-block;
  margin-right: 60px;
  color: #fff;
  font-weight: 500;
  white-space: nowrap;
}

/* Start fully from right */
@keyframes scrollNews {
  0% {
    transform: translateX(10%); /* start slightly inside */
  }
  100% {
    transform: translateX(-100%);
  }
}


/* Mobile adjustments */
@media(max-width:768px){
  .news-wrapper{
    flex-direction: column;
    gap: 10px;
    padding: 15px;
  }

  .news-label{
    margin-right: 0;
  }
}




/* =====================================================
   WHY CHOOSE US 
===================================================== */
#why-choose-us {
  background: #f8f9fa;
}

.why-card {
  background: #ffffff;
  border-radius: 16px;
  transition: all 0.3s ease;
  box-shadow: 0 8px 20px rgba(0,0,0,0.05);
}

.why-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 25px rgba(0,0,0,0.1);
}

.icon-box {
  width: 60px;
  height: 60px;
  margin: 0 auto;
  background: linear-gradient(135deg, #7c3aed, #6d28d9);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}


/* =====================================================
   VISION / MISSION
===================================================== */

.vision-mission-section {
  background: #f9fafb;
}

.vm-card {
  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.06);
  transition: all 0.3s ease;
}

.vm-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

.vm-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #7c3aed, #6d28d9);
  color: #fff;
  font-size: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* =====================================================
   ABOUT INTRO
===================================================== */

.about-intro-section {
  background: #ffffff;
}

.about-img-wrapper img {
  border-radius: 20px;
  transition: transform 0.4s ease;
}

.about-img-wrapper img:hover {
  transform: scale(1.03);
}

.eyebrow {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  color: #6d28d9;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.about-content h2 {
  font-size: 32px;
  line-height: 1.3;
}

.about-content p {
  font-size: 15.5px;
  line-height: 1.8;
}


/* =====================================================
   PRINCIPAL MESSAGE
===================================================== */
.principal-section {
  background: #f9fafb;
}

.principal-img-wrapper {
  max-width: 280px;
  margin: 0 auto;
}

.principal-img-wrapper img {
  border-radius: 20px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.08);
  transition: transform 0.4s ease;
}

.principal-img-wrapper img:hover {
  transform: scale(1.04);
}

.principal-content h2 {
  font-size: 30px;
  line-height: 1.3;
}

.principal-content p {
  font-size: 15.5px;
  line-height: 1.8;
}

.principal-signature h6 {
  color: #6d28d9;
}



/* =====================================================
   ACADEMICS INTRO
===================================================== */
.academic-card {
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    transition: 0.3s ease;
}

.academic-card:hover {
    transform: translateY(-6px);
}

.academic-icon {
    font-size: 30px;
}

.eyebrow {
    font-size: 13px;
    letter-spacing: 1px;
    color: #0d6efd;
    font-weight: 600;
}



/* =====================================================
   ADMISSION SECTION
===================================================== */
/* ================= ADMISSION SECTION ================= */

.admission-section{
    background: #f8fafc;
}

.admission-box{
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
    border: 1px solid rgba(0,0,0,0.05);
    max-width: 850px;
    margin: auto;
    position: relative;
}

/* Subtle Top Border Accent */
.admission-box::before{
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    height: 4px;
    width: 100%;
    background: linear-gradient(90deg, #2563eb, #f59e0b);
    border-top-left-radius: 1rem;
    border-top-right-radius: 1rem;
}

.admission-text{
    color: #6b7280;
    font-size: 1.05rem;
    max-width: 650px;
    margin: 0 auto;
}

.admission-btn{
    background: #2563eb;
    color: #fff;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.admission-btn:hover{
    background: #1d4ed8;
    transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 768px){
    .admission-box{
        padding: 30px 20px;
    }

    .admission-text{
        font-size: 0.95rem;
    }
}


/* =====================================================
   CONTACT SECTION
===================================================== */

/* ================= CONTACT PAGE ONLY ================= */

.contact-section .feature-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.05);
}

.contact-section .feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(0,0,0,0.1);
}

.contact-section .feature-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin: 0 auto 15px auto;
}


/* =====================================================
   MEDIA QUERIES
===================================================== */

@media (max-width: 991px){

  .navbar-collapse {
    width: 100%;
  }

  .navbar-collapse.show {
    background: var(--navy);
    padding: 15px 20px;
  }

  .navbar-collapse.collapse,
  .navbar-collapse.collapsing {
    transition: none !important;
  }
}


/* Tablet */
@media (max-width:768px){

  body{ padding-top:70px; }

  section{ padding:60px 0; }

  .school-name{ font-size:1.3rem; }

  #heroCarousel .carousel-item{
    height:70vh;
  }

  .gallery-card img{
    height:200px;
  }


  
}

/* Mobile */
@media (max-width:576px){


   .navbar{
    padding: .6rem 1rem;
    height:75px;
  }

  /* Reduce school name size */
  .school-name{
    font-size: 1rem;
    white-space: normal;   /* allow wrap */
  }

  /* Logo smaller */
  .school-logo{
    height: 60px;          /* mobile me perfect size */
    max-height: 60px;
  }

  /* Make brand not occupy too much space */
  .navbar .navbar-brand{
    max-width: 75%;
  }

  /* Force toggler to right */
  .navbar-toggler{
    margin-left: auto;
  }

  .gallery-card img{
    height:180px;
  }

  .navbar .nav-link{
    margin-left:0;
    padding:.6rem 0;
  }

  button.btn{
    width:100%;
  }
}

/* Touch Devices */
@media (hover:none){
  .feature-card:hover,
  .gallery-card:hover,
  .btn:hover{
    transform:none;
    box-shadow:none;
  }
}
