/* Custom CSS for School Website */

:root {
  --primary-color: #242646;
  --secondary-color: #f7b61e;
  --light-gray: #f8f9fa;
  --dark-gray: #6c757d;
  --white: #ffffff;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Poppins", sans-serif;
  line-height: 1.6;
  color: var(--primary-color);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Salsa", cursive;
  font-weight: 600;
}

/* Removed particles background styles */

/* Top Header */
.top-header {
  background-color: var(--primary-color);
  color: var(--white);
  padding: 8px 0;
  font-size: 14px;
}

.contact-info span {
  margin-right: 20px;
}

.contact-info i {
  margin-right: 5px;
  color: var(--secondary-color);
}

.admission-text {
  font-weight: 500;
}

/* Main Header */
.main-header {
  background-color: var(--white);
  padding: 20px 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.logo {
  max-height: 120px;
  width: auto;
}

.school-name {
  color: var(--primary-color);
  font-size: 2.5rem;
  margin-bottom: 5px;
}

.school-tagline {
  color: var(--secondary-color);
  font-size: 1.1rem;
  font-weight: 500;
}

/* Navigation */
/*.main-nav {*/
/*  background-color: var(--secondary-color) !important;*/
/*  padding: 0;*/
/*}*/

/*.main-nav .navbar-nav .nav-link {*/
/*  color: var(--primary-color) !important;*/
/*  font-weight: 500;*/
/*  padding: 15px 20px !important;*/
/*  transition: all 0.3s ease;*/
/*}*/

/*.main-nav .navbar-nav .nav-link:hover {*/
/*  background-color: var(--primary-color);*/
/*  color: var(--white) !important;*/
/*}*/

/*.navbar-toggler {*/
/*  border-color: var(--primary-color);*/
/*}*/

/* Hero Slider */
.hero-slider {
  position: relative;
  height: 600px;
  overflow: hidden;
}

.slide {
  position: relative;
  height: 600px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slide-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: var(--white);
  z-index: 2;
}

.slide::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  /* background: rgba(36, 38, 70, 0.6); */
  z-index: 1;
}

.slide-content h2 {
  font-size: 3rem;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.slide-content p {
  font-size: 1.3rem;
  margin-bottom: 30px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Flash News */
.flash-news {
  background-color: var(--primary-color);
  color: var(--white);
  padding: 10px 0;
  overflow: hidden;
}

.news-label {
  background-color: var(--secondary-color);
  color: var(--primary-color);
  padding: 8px 15px;
  font-weight: 600;
  border-radius: 5px;
}

/* Fixed news ticker wrapper and positioning */
.news-ticker-wrapper {
  overflow: hidden;
  height: 40px;
  display: flex;
  align-items: center;
}

.news-ticker {
  display: flex;
  animation: scroll-left 30s linear infinite;
  white-space: nowrap;
}

.news-item {
  margin-right: 50px;
  font-weight: 500;
  flex-shrink: 0;
}

@keyframes scroll-left {
  0% {
    transform: translateX(100%);
  }

  100% {
    transform: translateX(-100%);
  }
}

.news-ticker:hover {
  animation-play-state: paused;
}

/* Section Titles */
.section-title {
  color: var(--primary-color);
  font-size: 2.5rem;
  margin-bottom: 30px;
  position: relative;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background-color: var(--secondary-color);
}

/* Added fade-in animations for sections */
.fade-in-section {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s ease-in-out;
}

.fade-in-section.fade-in-left {
  transform: translateX(-50px);
}

.fade-in-section.fade-in-right {
  transform: translateX(50px);
}

.fade-in-section.visible {
  opacity: 1;
  transform: translateY(0) translateX(0);
}

/* About Section */
.about-section {
  padding: 80px 0;
}

.stat-item {
  padding: 20px;
  background-color: var(--light-gray);
  border-radius: 10px;
  margin-bottom: 20px;
}

.stat-number {
  color: var(--secondary-color);
  font-size: 2.5rem;
  font-weight: 700;
}

.stat-label {
  color: var(--primary-color);
  font-weight: 500;
}

/* YouTube & Quick Links */
.youtube-quick-links {
  padding: 80px 0;
}

.video-container {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 56.25%;
  margin-bottom: 20px;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 10px;
}

.quick-links {
  background-color: var(--white);
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.quick-link-item {
  display: flex;
  align-items: center;
  padding: 15px;
  color: var(--primary-color);
  text-decoration: none;
  border-bottom: 1px solid #eee;
  transition: all 0.3s ease;
}

.quick-link-item:hover {
  background-color: #242646;
  color: var(--secondary-color);
  border-radius: 5px;
}

.quick-link-item i {
  margin-right: 15px;
  font-size: 1.2rem;
  color: var(--secondary-color);
}

/* Facilities */
.why-school {
  padding: 80px 0;
  background-color: var(--light-gray);
}

.facility-card {
  background-color: var(--white);
  padding: 30px;
  border-radius: 15px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  height: 100%;
}

.facility-card:hover {
  transform: translateY(-10px);
}

.facility-icon {
  width: 80px;
  height: 80px;
  background-color: var(--secondary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.facility-icon i {
  font-size: 2rem;
  color: var(--primary-color);
}

.facility-card h4 {
  color: var(--primary-color);
  margin-bottom: 15px;
}

/* News & Timetable */
.news-timetable {
  padding: 80px 0;
}

.news-scroll-container,
.timetable-scroll-container {
  height: 400px;
  overflow-y: auto;
  background-color: var(--white);
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.news-item-scroll {
  padding: 20px;
  border-bottom: 1px solid #eee;
  margin-bottom: 15px;
}

.news-item-scroll h5 {
  color: var(--primary-color);
  margin-bottom: 10px;
}

/* Added timetable file styles */
.timetable-files {
  border-bottom: 2px solid var(--light-gray);
  padding-bottom: 15px;
  margin-bottom: 20px;
}

.file-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px;
  background-color: var(--light-gray);
  border-radius: 8px;
  margin-bottom: 10px;
}

.file-name {
  font-weight: 500;
  color: var(--primary-color);
}

.file-actions {
  display: flex;
  gap: 5px;
}

.file-actions .btn {
  font-size: 12px;
  padding: 5px 10px;
}

/* Achievements Carousel */
.achievements {
  padding: 80px 0;
  background-color: var(--primary-color);
  color: var(--white);
}

.achievements .section-title {
  color: var(--white);
}

.achievement-item {
  background-color: var(--white);
  border-radius: 15px;
  overflow: hidden;
  margin: 0 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.achievement-item img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.achievement-content {
  padding: 25px;
  color: var(--primary-color);
}

.achievement-content h4 {
  margin-bottom: 15px;
  color: var(--primary-color);
}

/* Gallery */
.gallery {
  padding: 80px 0;
}

.gallery-item {
  margin: 0 15px;
}

.gallery-item img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.gallery-item img:hover {
  transform: scale(1.05);
}

/* Footer */
.footer {
  background-color: var(--primary-color);
  color: var(--white);
  padding: 60px 0 20px;
}

.footer h5 {
  color: var(--secondary-color);
  margin-bottom: 20px;
}

.footer-links {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: var(--white);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--secondary-color);
}

.contact-info p {
  margin-bottom: 10px;
}

.contact-info i {
  color: var(--secondary-color);
  margin-right: 10px;
  width: 20px;
}

.social-media {
  margin-bottom: 20px;
}

.social-link {
  display: inline-block;
  width: 40px;
  height: 40px;
  background-color: var(--secondary-color);
  color: var(--primary-color);
  text-align: center;
  line-height: 40px;
  border-radius: 50%;
  margin-right: 10px;
  transition: all 0.3s ease;
}

.social-link:hover {
  background-color: var(--white);
  color: var(--primary-color);
  transform: translateY(-3px);
}

/* Copyright Bar */
.copyright-bar {
  background-color: rgb(247 182 30);
  color: #000000;
  text-align: center;
  padding: 10px 10px;
}

/* Animations */
.animate-slide-in-left {
  animation: slideInLeft 1s ease-out;
}

.animate-slide-in-right {
  animation: slideInRight 1s ease-out;
}

@keyframes slideInLeft {
  from {
    transform: translateX(-100%);
    opacity: 0;
  }

  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }

  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .school-name {
    font-size: 2rem;
  }

  .slide-content h2 {
    font-size: 2rem;
  }

  .slide-content p {
    font-size: 1.1rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .hero-slider {
    height: 400px;
  }

  .slide {
    height: 400px;
  }

  .file-item {
    flex-direction: column;
    gap: 10px;
  }

  .file-actions {
    width: 100%;
    justify-content: center;
  }
}

/* Slick Slider Customization */
.slick-dots {
  bottom: 20px;
}

.slick-dots li button:before {
  color: var(--secondary-color);
  font-size: 12px;
}

.slick-prev,
.slick-next {
  z-index: 3;
}

.slick-prev:before,
.slick-next:before {
  color: var(--secondary-color);
  font-size: 30px;
}

.particles-bg {
  background: var(--primary-color);
  position: relative;
  overflow: hidden;
}

#particles-js {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: 1;
}

.particles-bg .container {
  z-index: 2;
}

.facility-card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 10px;
  padding: 20px;
  transition: transform 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.facility-card:hover {
  transform: translateY(-5px);
}

button.btn.btn-sm.btn-view.me-2 {
  background-color: #f7b61e;
}

button.btn.btn-sm.btn-download {
  background-color: #242646;
  color: white;
}

.footer-logo-img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 10px;
}

.footer-logo-img:hover {
  transform: scale(1.1);
}

.copyright-bar p {
  margin-bottom: 0;
}

a.btn.btn-sm.btn-download {
  background: #f7b61e;
}


/* Contact Info Cards */
.about-section .contact-info {
  width: 100%;
  max-width: 350px;
  padding: 1.5rem;
  background: #f8f9fa;
  border-radius: 10px;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.about-section .contact-info i {
  font-size: 2rem;
  color: #f7b61e;
  margin-bottom: 0.5rem;
}

.about-section .contact-info span {
  font-weight: bold;
  color: #242646;
}

.about-section .contact-info a {
  color: #666;
  text-decoration: none;
  transition: color 0.3s;
}

.about-section .contact-info a:hover {
  color: #f7b61e;
}

/* Contact Form */
.contact-area h2 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 15px;
  color: #242646;
}

.contact-area p {
  color: #666;
  margin-bottom: 25px;
}

.contact-area .form-group {
  position: relative;
  margin-bottom: 20px;
}

.contact-area .form-group label {
  position: absolute;
  top: 50%;
  left: 10px;
  transform: translateY(-50%);
  color: #f7b61e;
  font-size: 18px;
}

.contact-area .form-control {
  padding-left: 40px;
  border-radius: 5px;
  border: 1px solid #ddd;
  height: 45px;
}

.contact-area textarea.form-control {
  height: auto;
  padding-top: 10px;
}

/* Submit Button */
.common-btn {
  background-color: #f7b61e;
  color: #fff;
  font-weight: bold;
  padding: 12px 30px;
  border-radius: 5px;
  border: none;
  cursor: pointer;
  transition: background 0.3s;
}

.common-btn:hover {
  background-color: #242646;
  color: #fff;
}

/* Map */
.map-area iframe {
  width: 100%;
  height: 450px;
  border: 0;
}

/* Active menu item styles */
/*.navbar-nav .nav-link.active,*/
/*.navbar-nav .show>.nav-link {*/
/*  color: #fff !important;*/
  /* text color */
/*  background-color: #242646 !important;*/
  /* background highlight */
/*  border-radius: 5px;*/
/*}*/

/* Active state for dropdown items */
/*.dropdown-menu .dropdown-item.active,*/
/*.dropdown-menu .dropdown-item:active {*/
/*  color: #fff !important;*/
/*  background-color: #242646 !important;*/
/*}*/


/* Navigation */
:root {
  --navbar-height: 64px; /* adjust if your navbar is taller/shorter */
}
 
/* Navbar: sticky on desktop, fixed on mobile */
.navbar {
  background: #ffc52c;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 15px;
  position: sticky; /* desktop: sticky */
  top: 0;
  width: 100%;
  z-index: 2000; /* should be above page content */
}
 
@media screen and (max-width: 900px) {
  .navbar {  height: var(--navbar-height); }
 
}
 
/* Utility to freeze background when mobile menu open */
.no-scroll {
  overflow: hidden;
}
 
/* Desktop nav layout */
.nav-links {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  z-index: 1999;
}
.nav-links > li { margin: 0 10px; position: relative; }
.nav-links a {
  text-decoration: none;
  color: #333;
  display: block;
  padding: 14px 10px;
  font-weight: 500;
  font-size: 16px;
  font-family: Poppins, sans-serif;
  transition: background .2s, color .2s;
}
.nav-links li:hover > a,
.nav-links > li.show-dropdown > a { background: #f2a500; color: #fff; }
.nav-links a.active,
.nav-links > li.active > a { background: #242646 !important; color: #fff !important; border-radius:5px; }
 
/* Dropdown (desktop) */
.dropdown-content {
  display: none;
  position: absolute;
  left: 0;
  top: calc(var(--navbar-height) - 9px);
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  min-width: 260px;
  z-index: 2500;
}
@media (min-width: 901px) {
  .nav-links > li:hover > .dropdown-content,
  .nav-links > li.show-dropdown > .dropdown-content {
    display: block;
  }
}
.dropdown-content a {
  color: #222;
  padding: 8px 16px;
  border-bottom: 1px solid #eee;
  display: block;
  font-weight: normal;
}
.dropdown-content a:last-child { border-bottom: none; }
.dropdown-content a:hover { background: #f2a500; color: #fff; }
 
/* Hamburger (mobile) */
.menu-toggle { display: none; flex-direction: column; cursor:pointer; z-index:3000; }
.bar { width:25px; height:3px; background:#333; margin:4px 0; border-radius:2px; transition:0.4s; }
 
/* Close button (mobile) */
.close-btn { display:none; font-size:2rem; text-align:right; padding:18px 18px 0 0; cursor:pointer; color:#222; }
 
/* ===== Mobile Layout ===== */
@media (max-width: 900px) {
  .navbar {
    position: fixed;
    top: 0;
    left: 0;
    justify-content: flex-start;
    padding: 10px;
    z-index: 4000;
  }
  .menu-toggle { display:flex; margin-left:7px; }
  /* menu overlay begins BELOW the navbar so navbar stays visible */
  .nav-links {
    flex-direction: column;
    align-items: center;
    width: 100%;
    position: fixed;
    top: var(--navbar-height);
    left: 0;
    height: calc(100vh - var(--navbar-height));
    background: #ffc52c;
    display: none;
    z-index: 3000;
    overflow-y: auto;
    box-shadow: 0 4px 32px rgba(0,0,0,0.18);
  }
  .nav-links.active { display: flex; }
  .nav-links > li { margin: 0; width: 100%; }
  .close-btn { display:block; width:100%; background:none; border:none; font-size:2rem; text-align:right; color:#333; padding:18px 18px 0 0; }
  /* dropdown on mobile becomes expanded block */
  .dropdown-content {
    min-width: 100%;
    position: static;
    border-radius: 0;
    box-shadow: none;
    background: #fff;
    border: none;
    margin: 0;
    display: none;
  }
  .nav-links > li.show-dropdown > .dropdown-content { display: block; }
}

@media screen and (max-width: 900px) {
  .logoimg1, .logoimg2 {
        display: flex;
        justify-content: center;
  }
}

/* Back to Top Button */

.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #f7b61e 0%, #edbb48 100%);
  color: #fff;
  border: none;
  border-radius: 50%;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1050;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s, transform 0.2s;
  font-size: 1.5rem;
  display: flex; /* Ensure flexbox centering */
}
.back-to-top:hover, .back-to-top:focus {
  background: linear-gradient(135deg, #3F51B5 0%, #242646 100%);
  box-shadow: 0 6px 24px rgba(0,0,0,0.22);
  transform: translateY(-4px) scale(1.08);
  outline: none;
}
.back-to-top i {
  pointer-events: none;
  margin: 0; /* Remove any default margin */
  position: static; /* Reset position */
  left: auto;
  top: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}
@media (max-width: 600px) {
.back-to-top {
  bottom: 16px;
  right: 16px;
  width: 40px; 
  height: 40px;
  font-size: 1.2rem;
}
}
