@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
   --bs-primary: #1e3a8a;
   --bs-primary-rgb: 30, 58, 138;
  --secondary-color: #fbbf24;
  --text-dark: #1f2937;
  --text-light: #6b7280;
  --bg-light: #f9fafb;
}

body {
  font-family: 'Poppins', sans-serif;
  color: #333;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ===================================
   NAVBAR - FLOATING/STICKY (Professional & Modern)
=================================== */
.navbar {

  position: sticky;
  top: 0;
  z-index: 1020; /* higher than social icons */
  background: #ffffff;
  transition: 
    padding 0.4s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.4s ease,
    background-color 0.4s ease;
  will-change: padding, box-shadow;
}



.navbar.scrolled {
  padding: 0.3rem 0;
  background-color: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}


/* Logo shrinks slightly when scrolled */
.navbar.scrolled .navbar-brand img {
  height: 40px !important;
  transition: height 0.4s ease;
}

/* Smooth transitions for nav items */
.navbar.scrolled .nav-link {
  padding: 0.4rem 1rem !important;
  transition: padding 0.4s ease;
}

/* ===================================
   NAVBAR ICON COLORS
=================================== */

/* Mobile hamburger menu icon - matches primary blue */
.navbar-toggler {
  border: none;
  padding: 0.25rem 0.5rem;
}

.navbar-toggler:focus {
  box-shadow: none;
  outline: none;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(30, 58, 138, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Dropdown arrow color */
.dropdown-toggle::after {
  border-top-color: var(--text-dark);
}

.navbar-brand .brand-text {
  font-weight: 600;
  color: var(--primary-color);
  font-size: 1.1rem;
}

.nav-link {
  font-weight: 500;
  color: var(--text-dark) !important;
  padding: 0.5rem 1rem !important;
  transition: color 0.3s ease;
  position: relative;
}

.nav-link:hover {
  color: var(--primary-color) !important;
  transform: translateY(-1px);
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 0%;
  height: 2px;
  background-color: #1e3a8a;
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.nav-link:hover::after {
  width: 70%;
}


/* Dropdown hover for desktop */
/* Base dropdown animation */
@media (min-width: 992px) {
  .dropdown-menu {
    opacity: 0;
    transform: translateY(15px);
    transition: 
      opacity 0.3s ease,
      transform 0.3s ease;
    display: block;
    visibility: hidden;
    border-radius: 12px;
    border: none;
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
  }

  .dropdown:hover .dropdown-menu {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
  }
}



/* ===================================
   BUTTONS
=================================== */
.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  font-weight: 500;
  padding: 0.5rem 1.5rem;
  border-radius: 25px;
  transition: all 0.3s ease;
  display: inline-block;
}

.btn-primary:hover {
  background-color: #1e40af;
  border-color: #1e40af;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(30, 58, 138, 0.3);
}

.btn-gold {
  background: #1e40af;
  color: white;
  padding: 14px 30px;
  border-radius: 6px;
  text-decoration: none;
  display: inline-block;
  transition: 0.3s;
}

.btn-gold:hover {
  background: #1e40af;
  color: white;
}

/* ===================================
   HERO SECTION
=================================== */
.hero {
  padding: 120px 0;
  text-align: center;
  background: linear-gradient(to right, #fffdf6, #ffffff);
}

.hero img {
  height: 120px;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: 48px;
  margin-bottom: 15px;
}

.tagline {
  color: #1e40af;
  font-weight: 600;
  margin-bottom: 20px;
}

.hero-section {
  background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
  min-height: 600px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('https://images.unsplash.com/photo-1567057420215-0afa9aa9253a?w=1600') center/cover;
  opacity: 0.15;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(30, 58, 138, 0.9) 0%, rgba(59, 130, 246, 0.8) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 80px 0;
}

/* ===================================
   PAGE HEADER
=================================== */
.page-header {
  background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
  padding: 80px 0 50px;
  margin-bottom: 0;
}

/* ===================================
   SECTIONS
=================================== */
.section-title {
  color: var(--primary-color);
  font-weight: 700;
  position: relative;
  padding-bottom: 15px;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 4px;
  background-color: var(--secondary-color);
}

.text-center .section-title::after {
  left: 50%;
  transform: translateX(-50%);
}

.stats-section {
  background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
}

.stat-item h2 {
  font-weight: 700;
}

/* ===================================
   CARDS
=================================== */
.feature-card {
  transition: all 0.3s ease;
  border-radius: 10px;
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.feature-icon {
  transition: transform 0.3s ease;
}

.feature-card:hover .feature-icon {
  transform: scale(1.1);
}

.card {
  transition: all 0.3s ease;
}

.card:hover {
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.activity-card {
  border-radius: 10px;
  overflow: hidden;
}

.activity-card img {
  height: 200px;
  object-fit: cover;
}

.news-card {
  border-radius: 10px;
  overflow: hidden;
}

.news-card img {
  height: 200px;
  object-fit: cover;
}

/* ===================================
   BRANCHES SECTION
=================================== */
.branches-section {
  padding: 80px 20px;
  background: #f9fafb;
}

.section-subtitle {
  text-align: center;
  color: #666;
  margin-bottom: 50px;
}

.branches-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
}

.branch-card {
  background: #fff;
  padding: 30px;
  border-radius: 14px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.05);
  transition: 0.3s ease;
  display: flex;
  flex-direction: column;
}

.branch-card:hover {
  transform: translateY(-5px);
}

.badge {
  display: inline-block;
  background: #1e40af;
  color: #fff;
  font-size: 13px;
  padding: 6px 12px;
  border-radius: 20px;
  margin-bottom: 15px;
}

.badge.icse {
  background: #1e40af;
}

.branch-card h3 {
  font-size: 22px;
  margin-bottom: 5px;
}

.grade {
  color: #777;
  margin-bottom: 20px;
}

.info p {
  font-size: 14px;
  color: #555;
  margin-bottom: 8px;
}

.facilities h4 {
  margin: 20px 0 10px;
  font-size: 15px;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tags span {
  background: #f1f1f1;
  padding: 6px 10px;
  border-radius: 15px;
  font-size: 13px;
  color: #555;
}

.view-btn {
  margin-top: auto;
  text-align: center;
  border: 2px solid #1e40af;
  padding: 12px;
  border-radius: 8px;
  text-decoration: none;
  color: #1e40af;
  font-weight: 600;
  transition: 0.3s;
}

.view-btn:hover {
  background: #1e40af;
  color: #fff;
}

/* ===================================
   GALLERY
=================================== */
.gallery-item {
  overflow: hidden;
  border-radius: 10px;
  position: relative;
  cursor: pointer;
}

.gallery-item img {
  transition: transform 0.5s ease;
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(30, 58, 138, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

/* ===================================
   CONTACT
=================================== */
.contact-info {
  background-color: var(--bg-light);
  padding: 30px;
  border-radius: 10px;
}

.contact-info i {
  color: var(--primary-color);
}

.form-control:focus, .form-select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(30, 58, 138, 0.25);
}

.map-container {
  border-radius: 10px;
  overflow: hidden;
  height: 400px;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* ===================================
   FOOTER - PROPERLY ALIGNED
=================================== */
.footer {
  background-color: #1f2937;
  margin-top: auto;
}

.footer .container {
  max-width: 1200px;
}

.footer h5,
.footer h6 {
  font-weight: 600;
  color: #fff;
}

.footer p {
  color: #d1d5db;
  line-height: 1.6;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-links a {
  color: #d1d5db;
  text-decoration: none;
  transition: 0.3s;
}

.footer-links a:hover {
  color: #fbbf24 !important;
}

.social-icons a {
  color: #fff;
  transition: 0.3s;
  text-decoration: none;
}

.social-icons a:hover {
  color: #fbbf24 !important;
}

/* ===================================
   RESPONSIVE
=================================== */
@media (max-width: 768px) {
  .hero {
    padding: 80px 20px;
  }

  .hero h1 {
    font-size: 32px;
  }

  .hero img {
    height: 80px;
  }

  .hero-section {
    min-height: 500px;
  }
  
  .hero-content {
    padding: 60px 0;
  }
  
  .display-4 {
    font-size: 2rem;
  }
  
  .page-header {
    padding: 60px 0 40px;
  }
  
  .gallery-item img {
    height: 200px;
  }
  
  .btn-admission {
    width: 100%;
    margin-top: 10px;
  }

  .branches-grid {
    grid-template-columns: 1fr;
  }

  .branch-card {
    padding: 20px;
  }

  .footer .row > div {
    margin-bottom: 30px;
  }

  .footer .row > div:last-child {
    margin-bottom: 0;
  }
}

@media (max-width: 576px) {
  .hero h1 {
    font-size: 28px;
  }

  .section-title {
    font-size: 24px;
  }

  .stat-item h2 {
    font-size: 2rem;
  }
}
/* Base Style */
.social-sidebar {
  position: fixed;
  z-index: 999;
  display: flex;
}

/* Desktop Layout */
@media (min-width: 769px) {
  .social-sidebar {
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    flex-direction: column;
  }
}

/* Mobile Layout */
@media (max-width: 768px) {
  .social-sidebar {
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    flex-direction: row;
    background: #ffffff;
    padding: 6px 10px;
    border-radius: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
  }
}

.social-icon {
  width: 42px;
  height: 42px;
  margin: 5px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 18px;
  text-decoration: none;
  transition: 0.3s ease;
}

/* Brand Colors */
.fb { background: #1877f2; }
.ig { background: #e4405f; }
.yt { background: #ff0000; }
.wa { background: #25d366; }

.social-icon:hover {
  transform: scale(1.1);
}





.social-sidebar {
  position: fixed;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  z-index: 999;
}

/* Mobile layout only changes position */
@media (max-width: 768px) {
  .social-sidebar {
    bottom: 15px;
    top: auto;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    flex-direction: row;
    background: white;
    padding: 10px 16px;
    border-radius: 50px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
  }
}

.social-item {
  position: relative;
  margin: 6px;
}

.social-icon {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 18px;
  cursor: pointer;
}

/* Brand colors */
.fb { background: #1877f2; }
.ig { background: #e4405f; }
.yt { background: #ff0000; }
.wa { background: #25d366; }

/* Popup */
.branch-popup {
  position: absolute;
  right: 55px;
  top: 0;
  background: white;
  display: none;
  flex-direction: column;
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
  border-radius: 10px;
  min-width: 150px;
}

/* Mobile popup position */
@media (max-width: 768px) {
  .branch-popup {
    bottom: 60px;
    top: auto;
    right: 0;
  }
}

.branch-popup a {
  padding: 8px 12px;
  text-decoration: none;
  color: #1e3a8a;
  font-size: 14px;
  border-bottom: 1px solid #eee;
}

.branch-popup a:hover {
  background: #f1f5f9;
}



.about-menu .nav-link {
  background: #f8f9fa;
  margin-bottom: 8px;
  border-radius: 8px;
  text-align: left;
  font-weight: 500;
  color: #333;
  transition: 0.3s ease;
}

.about-menu .nav-link:hover {
  background: #e9ecef;
}

.about-menu .nav-link.active {
  background: #1e3a8a;
  color: #fff;
}

.tab-content {
  padding: 25px;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}
@media (max-width: 991px) {
  .about-menu {
    flex-direction: row !important;
    overflow-x: auto;
    white-space: nowrap;
  }

  .about-menu .nav-link {
    display: inline-block;
    margin-right: 10px;
  }
}
button.btn,
.btn-primary {
  background-color: #1e40af !important;
  color: #ffffff !important;
  border: none !important;
}


.career-criteria {
  background: #f9fafb;
}

.criteria-card {
  background: #ffffff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.05);
  height: 100%;
  transition: 0.3s ease;
}

.criteria-card:hover {
  transform: translateY(-5px);
}

.criteria-card h4 {
  color: #1e3a8a;
  margin-bottom: 15px;
}

.criteria-card ul {
  padding-left: 18px;
}

.criteria-card li {
  margin-bottom: 8px;
  color: #444;
}








.hero-section {
  position: relative;
  height: 90vh;
  overflow: hidden;
}

.hero-slider {
  position: absolute;
  inset: 0;
}

.hero-slider img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.2s ease-in-out, transform 8s ease;
  transform: scale(1);
}

.hero-slider img.active {
  opacity: 1;
  transform: scale(1.05);
}

/* Premium Navy Overlay */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    rgba(30,58,138,0.65),
    rgba(30,58,138,0.65)
  );
}

/* Content Styling */
.hero-content {
  position: relative;
  z-index: 2;
  color: white;
  top: 50%;
  transform: translateY(-50%);
}

.hero-content h1 {
  font-size: 48px;
  font-weight: 700;
}

.tagline {
  color: #fbbf24;
  font-weight: 600;
}




.hero-section {
  position: relative;
  height: 95vh;
  overflow: hidden;
}

.hero-slider {
  position: absolute;
  inset: 0;
}

.hero-slider img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.hero-slider img.active {
  opacity: 1;
}

/* Elegant bottom gradient */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.3),
    rgba(0,0,0,0.75)
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  color: white;
  max-width: 700px;
  padding-top: 25vh;
}

/* Theme Blue Highlight */
.highlight {
  color: #ffff;
}

.hero-content h1 {
  font-size: 48px;
  font-weight: 700;
}

.hero-subtext {
  font-size: 18px;
  margin: 20px 0 30px;
}

/* Arrows */
.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 40px;
  color: white;
  cursor: pointer;
  z-index: 3;
  padding: 10px;
  transition: 0.3s;
}

.hero-arrow:hover {
  color: #1e3a8a;
}

.hero-arrow.left {
  left: 20px;
}

.hero-arrow.right {
  right: 20px;
}



@media (max-width: 768px) {
  .hero-content {
    padding-top: 20vh;
    text-align: center;
  }

  .hero-content h1 {
    font-size: 28px;
  }

  .hero-subtext {
    font-size: 14px;
  }
}
@media (max-width: 768px) {
  .hero-arrow {
    font-size: 28px;
  }

  .hero-content h1 {
    font-size: 28px;
  }
}










.hero-content {
  position: relative;
  z-index: 2;
  color: #fff;
  text-align: center;
  max-width: 750px;
  margin: 0 auto;
  padding: 40px 50px;
 
}

/* Slight transparent glass background */


/* Logo styling */
.hero-logo {
  width: 120px;
  margin-bottom: 20px;
  opacity: 0.9;
}

/* Heading */
.hero-content h1 {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 10px;
  color: #ffffff;
}

/* Tagline */
.hero-tagline {
  font-size: 16px;
  letter-spacing: 1px;
  color: rgba(255,255,255,0.9);
}

/* Subtext */
.hero-subtext {
  font-size: 18px;
  margin: 20px 0 30px;
  color: rgba(255,255,255,0.85);
}

/* Button */
.hero-btn {
  padding: 12px 28px;
  border-radius: 30px;
  font-weight: 600;
}


@media (max-width: 768px) {
  .hero-content {
    padding-top: 20vh;
  }

  .hero-content h1 {
    font-size: 28px;
  }

  .hero-logo {
    width: 80px;
  }
}



/* Modal background */


.about-section {
  background: linear-gradient(
    135deg,
    #eef3ff 0%,
    #ffffff 60%,
    #f4f8ff 100%
  ) !important;
}



/* Testimonial Card */
.testimonial-card {
  background: #f8f9fa;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.05);
  min-height: 260px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.testimonial-card p {
  font-size: 15px;
  line-height: 1.7;
}

.testimonial-card h6 {
  font-size: 14px;
  font-weight: 600;
}

.testimonial-card .btn {
  border-radius: 50px;
  padding: 4px 10px;
}

.highlight-box {
  background: linear-gradient(135deg, #eef2ff, #ffffff);
  padding: 30px;
  border-left: 5px solid #1e3a8a;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.05);
}

.chairman-img {
  max-width: 260px;   /* controls size */
  width: 100%;
  height: auto;
  border-radius: 12px;
}

.welcome-section img {
  height: 240px;
  object-fit: cover;
}
.welcome-img {
  height: 240px;
  width: 100%;
  object-fit: cover;
}

.uniform-img {
  object-fit: cover;
}



