@-webkit-keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.dropdown-menu.show {
  -webkit-animation: fadeIn 0.3s alternate;
  /* Safari 4.0 - 8.0 */
  animation: fadeIn 0.3s alternate;
}

.navbar-toggler {
  border: none;
  padding: 0;
  outline: none;
}

.navbar-toggler:focus {
  -webkit-box-shadow: none;
          box-shadow: none;
}

.navbar-toggler .hamburger-toggle {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 50px;
  z-index: 11;
  float: right;
}

.navbar-toggler .hamburger-toggle .hamburger {
  position: absolute;
  -webkit-transform: translate(-50%, -50%) rotate(0deg);
          transform: translate(-50%, -50%) rotate(0deg);
  left: 50%;
  top: 50%;
  width: 50%;
  height: 50%;
  pointer-events: none;
}

.navbar-toggler .hamburger-toggle .hamburger span {
  width: 100%;
  height: 4px;
  position: absolute;
  background: #333;
  border-radius: 2px;
  z-index: 1;
  -webkit-transition: background 0.2s cubic-bezier(0.77, 0.2, 0.05, 1), all 0.2s ease-in-out, -webkit-transform 0.2s cubic-bezier(0.77, 0.2, 0.05, 1);
  transition: background 0.2s cubic-bezier(0.77, 0.2, 0.05, 1), all 0.2s ease-in-out, -webkit-transform 0.2s cubic-bezier(0.77, 0.2, 0.05, 1);
  transition: transform 0.2s cubic-bezier(0.77, 0.2, 0.05, 1), background 0.2s cubic-bezier(0.77, 0.2, 0.05, 1), all 0.2s ease-in-out;
  transition: transform 0.2s cubic-bezier(0.77, 0.2, 0.05, 1), background 0.2s cubic-bezier(0.77, 0.2, 0.05, 1), all 0.2s ease-in-out, -webkit-transform 0.2s cubic-bezier(0.77, 0.2, 0.05, 1);
  left: 0px;
}

.navbar-toggler .hamburger-toggle .hamburger span:first-child {
  top: 10%;
  -webkit-transform-origin: 50% 50%;
          transform-origin: 50% 50%;
  -webkit-transform: translate(0% -50%) !important;
          transform: translate(0% -50%) !important;
}

.navbar-toggler .hamburger-toggle .hamburger span:nth-child(2) {
  top: 50%;
  -webkit-transform: translate(0, -50%);
          transform: translate(0, -50%);
}

.navbar-toggler .hamburger-toggle .hamburger span:last-child {
  left: 0px;
  top: auto;
  bottom: 10%;
  -webkit-transform-origin: 50% 50%;
          transform-origin: 50% 50%;
}

.navbar-toggler .hamburger-toggle .hamburger.active span {
  position: absolute;
  margin: 0;
}

.navbar-toggler .hamburger-toggle .hamburger.active span:first-child {
  top: 45%;
  -webkit-transform: rotate(45deg);
          transform: rotate(45deg);
}

.navbar-toggler .hamburger-toggle .hamburger.active span:nth-child(2) {
  left: 50%;
  width: 0px;
}

.navbar-toggler .hamburger-toggle .hamburger.active span:last-child {
  top: 45%;
  -webkit-transform: rotate(-45deg);
          transform: rotate(-45deg);
}

body {
  font-family: 'Alice', serif;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
}

.dropdown-item:active {
  background-color: #274082;
  color: #fff;
}

.hero-section {
  position: relative;
  height: 85vh;
  color: white;
  overflow: hidden;
}

.hero-section .carousel {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-section .carousel-inner, .hero-section .carousel-item {
  height: 100%;
}

.hero-section .carousel-item img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
  z-index: 2;
}

.hero-section .container {
  position: relative;
  z-index: 3;
}

.hero-section .carousel-caption {
  top: 50%;
  -webkit-transform: translateY(-50%);
          transform: translateY(-50%);
  bottom: auto;
  text-align: left;
  padding: 0 5%;
  -webkit-animation: caption-fade-in 1.5s ease-out;
          animation: caption-fade-in 1.5s ease-out;
}

.hero-section .carousel-caption h1 {
  font-family: 'Playfair Display', serif;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
  margin-bottom: 1rem;
}

.hero-section .carousel-caption p {
  font-family: 'Alice', serif;
  font-size: 1.25rem;
  max-width: 80%;
  text-shadow: 1px 1px 6px rgba(0, 0, 0, 0.8);
}

@-webkit-keyframes caption-fade-in {
  from {
    opacity: 0;
    -webkit-transform: translateY(-40%);
            transform: translateY(-40%);
  }
  to {
    opacity: 1;
    -webkit-transform: translateY(-50%);
            transform: translateY(-50%);
  }
}

@keyframes caption-fade-in {
  from {
    opacity: 0;
    -webkit-transform: translateY(-40%);
            transform: translateY(-40%);
  }
  to {
    opacity: 1;
    -webkit-transform: translateY(-50%);
            transform: translateY(-50%);
  }
}

@media (max-width: 768px) {
  .carousel-caption {
    text-align: center;
    padding: 0 10%;
  }
  .carousel-caption h1 {
    font-size: 2.5rem;
  }
  .carousel-caption p {
    font-size: 1rem;
    max-width: 100%;
  }
}

.how-to-apply-section {
  background-color: #f8f9fa;
}

.how-to-apply-section h2 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  color: #274082;
}

.how-to-apply-section .apply-card {
  background-color: transparent;
  padding: 10px;
  border: none;
  width: 100%;
  -webkit-transition: none;
  transition: none;
}

.how-to-apply-section .apply-card:hover {
  -webkit-transform: none;
          transform: none;
  -webkit-box-shadow: none;
          box-shadow: none;
}

.how-to-apply-section .card-icon {
  margin: 0 auto 25px auto;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background-color: #274082;
  color: #fff;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  font-size: 2.5rem;
  line-height: 0;
  font-weight: 700;
}

.how-to-apply-section .card-title {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  color: #343a40;
  margin-bottom: 15px;
}

.how-to-apply-section .card-text {
  font-family: 'Alice', serif;
  color: #6c757d;
  font-size: 1rem;
  margin-bottom: 25px;
}

.how-to-apply-section .btn-primary {
  color: #fff;
  background-color: #274082;
  border-color: #274082;
  font-weight: 500;
}

.how-to-apply-section .btn-primary:hover {
  background-color: #1e326a;
  -webkit-transform: translateY(-2px);
          transform: translateY(-2px);
}

@media (max-width: 767px) {
  .how-to-apply-section .apply-timeline::before {
    left: 50%;
    top: 60px;
    bottom: 60px;
    height: auto;
    width: 3px;
  }
  .how-to-apply-section .step {
    margin-bottom: 30px;
  }
}

.footer-section {
  background-color: #1a2c5a;
  padding-top: 50px;
  color: rgba(255, 255, 255, 0.85);
}

.footer-section h5 {
  color: #fff;
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  letter-spacing: 1px;
}

.footer-section p {
  font-size: 0.95rem;
}

.footer-section a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  -webkit-transition: color 0.3s ease;
  transition: color 0.3s ease;
}

.footer-section a:hover {
  color: #fff;
}

.footer-section .footer-logo {
  height: 50px;
  background: white;
  padding: 5px;
  border-radius: 5px;
}

.footer-section .social-icons a {
  color: rgba(255, 255, 255, 0.85);
  -webkit-transition: color 0.3s ease, -webkit-transform 0.3s ease;
  transition: color 0.3s ease, -webkit-transform 0.3s ease;
  transition: color 0.3s ease, transform 0.3s ease;
  transition: color 0.3s ease, transform 0.3s ease, -webkit-transform 0.3s ease;
  display: inline-block;
}

.footer-section .social-icons a:hover {
  color: #fff;
  -webkit-transform: scale(1.15);
          transform: scale(1.15);
}

.footer-section hr {
  background-color: rgba(255, 255, 255, 0.2);
}

.about-section .section-title {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  color: #274082;
  margin-bottom: 1rem;
}

.about-section .lead {
  font-family: 'Alice', serif;
  font-size: 1.15rem;
  font-weight: 500;
  color: #555;
}

.about-section p {
  font-family: 'Alice', serif;
  color: #6c757d;
}

.about-section .btn-primary {
  background-color: #274082;
  border-color: #274082;
  padding: 12px 25px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 500;
  -webkit-transition: all 0.3s ease;
  transition: all 0.3s ease;
}

.about-section .btn-primary:hover {
  background-color: #1e326a;
  -webkit-transform: translateY(-2px);
          transform: translateY(-2px);
  -webkit-box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
          box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.stats-section {
  background-color: #274082;
  color: #fff;
}

.stats-section .stat-item h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 2px;
  opacity: 0.8;
}

.stats-section .stat-item p.counter {
  font-family: 'Playfair Display', serif;
  font-size: 3.5rem;
  font-weight: 700;
  margin-top: 0.5rem;
}

.campus-life-section {
  background-color: #fff;
}

.campus-life-section h2 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  color: #274082;
}

.campus-life-section .swiper-slide {
  padding-bottom: 50px;
}

.campus-life-section .campus-card {
  border: none;
  border-radius: 10px;
  overflow: hidden;
  -webkit-box-shadow: 0 5px 20px rgba(0, 0, 0, 0.07);
          box-shadow: 0 5px 20px rgba(0, 0, 0, 0.07);
  -webkit-transition: -webkit-transform 0.3s ease, -webkit-box-shadow 0.3s ease;
  transition: -webkit-transform 0.3s ease, -webkit-box-shadow 0.3s ease;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  transition: transform 0.3s ease, box-shadow 0.3s ease, -webkit-transform 0.3s ease, -webkit-box-shadow 0.3s ease;
  height: 100%;
}

.campus-life-section .campus-card:hover {
  -webkit-transform: translateY(-8px);
          transform: translateY(-8px);
  -webkit-box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
          box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.campus-life-section .campus-card .card-body {
  padding: 25px;
}

.campus-life-section .campus-card .card-title {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  color: #343a40;
}

.campus-life-section .campus-card .card-text {
  font-family: 'Alice', serif;
  color: #6c757d;
}

.campus-life-section .swiper-pagination-bullet {
  background-color: #274082;
}

.why-choose-section {
  background-color: #f8f9fa;
  padding: 80px 0;
}

.why-choose-section h2 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  color: #1a2c5a;
  margin-bottom: 60px;
  text-align: center;
}

.why-choose-section .apply-card {
  background-color: rgba(255, 255, 255, 0.8);
  border-radius: 15px;
  -webkit-box-shadow: 0 8px 24px rgba(26, 44, 90, 0.05);
          box-shadow: 0 8px 24px rgba(26, 44, 90, 0.05);
  -webkit-transition: border-color 0.3s ease, -webkit-transform 0.3s ease, -webkit-box-shadow 0.3s ease;
  transition: border-color 0.3s ease, -webkit-transform 0.3s ease, -webkit-box-shadow 0.3s ease;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease, -webkit-transform 0.3s ease, -webkit-box-shadow 0.3s ease;
  border: 1px solid transparent;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  text-align: center;
  padding: 2rem;
  height: 100%;
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
}

.why-choose-section .apply-card:hover {
  -webkit-transform: translateY(-10px);
          transform: translateY(-10px);
  -webkit-box-shadow: 0 12px 35px rgba(26, 44, 90, 0.1);
          box-shadow: 0 12px 35px rgba(26, 44, 90, 0.1);
  border-color: #274082;
}

.why-choose-section .apply-card .card-icon {
  margin-bottom: 20px;
}

.why-choose-section .apply-card .card-icon i {
  color: #274082;
  font-size: 3rem;
  background-image: linear-gradient(135deg, #274082, #3a5db8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
}

.why-choose-section .apply-card .card-title {
  font-family: 'Playfair Display', serif;
  color: #1a2c5a;
  font-weight: 700;
  margin-bottom: 15px;
  font-size: 1.25rem;
}

.why-choose-section .apply-card .card-text {
  font-family: 'Alice', serif;
  color: #5a688a;
  -webkit-box-flex: 1;
      -ms-flex-positive: 1;
          flex-grow: 1;
  font-size: 0.95rem;
}

.flip-card {
  background-color: transparent;
  width: 100%;
  height: 300px;
  -webkit-perspective: 1000px;
          perspective: 1000px;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  -webkit-transition: -webkit-transform 0.6s;
  transition: -webkit-transform 0.6s;
  transition: transform 0.6s;
  transition: transform 0.6s, -webkit-transform 0.6s;
  -webkit-transform-style: preserve-3d;
          transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner {
  -webkit-transform: rotateY(180deg);
          transform: rotateY(180deg);
}

.flip-card-front, .flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.flip-card-front .apply-card {
  height: 100%;
}

.flip-card-back {
  -webkit-transform: rotateY(180deg);
          transform: rotateY(180deg);
}

.flip-card-back .apply-card {
  height: 100%;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  background: linear-gradient(135deg, #274082, #3a5db8);
}

.flip-card-back .apply-card .card-title {
  color: #ffffff;
}

.flip-card-back .apply-card .card-text {
  color: rgba(255, 255, 255, 0.9);
}

.animated-button {
  background: linear-gradient(-45deg, #274082, #3a5db8, #2c7aaf, #23d5ab);
  background-size: 400% 400%;
  animation: animated-gradient 8s ease infinite;
  color: white;
  border: none;
}

@keyframes animated-gradient {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* About Us Page Styles */
.page-header-section {
    border-bottom: 1px solid #dee2e6;
}

.page-header-section h1 {
    color: #274082;
    font-weight: 700;
}

.breadcrumb-item a {
    color: #274082;
    text-decoration: none;
}

.breadcrumb-item.active {
    color: #6c757d;
}

.why-different-section .feature-box {
    background-color: #fff;
    border-radius: 0.5rem;
    border: 1px solid #dee2e6;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.why-different-section .feature-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.measures-section .list-group-item {
    border: none;
    padding-left: 0;
    font-size: 1.1rem;
    background-color: transparent;
}

.leaders-section .leader-card {
    border: none;
    overflow: hidden;
    transition: all 0.3s ease-in-out;
}

.leaders-section .leader-card:hover {
    transform: scale(1.02);
}

.leaders-section .leader-card .card-title {
    color: #274082;
}

.leaders-section .leader-card .btn-outline-primary {
    transition: all 0.3s ease;
}

/* New School Overview Section */
.school-overview-section {
    background: #f0f4ff;
}
.school-overview-section h2,
.testimonial-section h2 {
    color: #274082;
    font-weight: 700;
}
.overview-card {
    background-color: transparent;
    width: 100%;
    height: 250px;
    perspective: 1000px;
    cursor: pointer;
}
.overview-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.7s;
    transform-style: preserve-3d;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-radius: 1rem;
}
.overview-card:hover .overview-card-inner {
    transform: rotateY(180deg);
}
.overview-card-front, .overview-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    text-align: center;
}
.overview-card-front {
    background: linear-gradient(135deg, #ffffff, #f1f9ff);
    color: #274082;
}
.overview-card-front h3 {
    margin-top: 1rem;
    font-size: 1.5rem;
}
.overview-card-back {
    background: linear-gradient(135deg, #274082, #3a5db8);
    color: white;
    transform: rotateY(180deg);
}
.overview-card-back h3 {
    color: white;
    margin-bottom: 0.5rem;
}

/* New Testimonial Section */
.testimonial-section {
    background-color: #f0f4ff;
}
.testimonial-swiper-new {
    padding-bottom: 60px;
}
.testimonial-card-new {
    background: #fff;
    border-radius: 1rem;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    padding: 2rem;
    display: flex;
    gap: 1.5rem;
    align-items: center;
    min-height: 220px;
}
.testimonial-img-wrapper {
    flex-shrink: 0;
}
.testimonial-img-new {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid #fff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
.testimonial-content {
    text-align: left;
}
.testimonial-text-new {
    font-style: italic;
    color: #555;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}
.testimonial-name-new {
    font-weight: 700;
    color: #274082;
    margin-bottom: 0.25rem;
}
.testimonial-role-new {
    color: #777;
    font-size: 0.9rem;
}
.testimonial-swiper-new .swiper-pagination-bullet-active {
    background: #274082;
}
.testimonial-swiper-new .swiper-button-next,
.testimonial-swiper-new .swiper-button-prev {
    color: #274082;
    background-color: #fff;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
.testimonial-swiper-new .swiper-button-next:after,
.testimonial-swiper-new .swiper-button-prev:after {
    font-size: 1.2rem;
    font-weight: 700;
}

/* Theme color override */
.text-primary {
    color: #274082 !important;
}

.bg-primary-subtle {
    background-color: #eaf0ff !important;
}

/* Academics Page */
.academics-section .nav-pills .nav-link {
    border: 1px solid #dee2e6;
    margin-bottom: 0.5rem;
    color: #495057;
    font-weight: 500;
}

.academics-section .nav-pills .nav-link.active,
.academics-section .nav-pills .show>.nav-link {
    color: #fff;
    background-color: #274082;
    border-color: #274082;
}

.academics-section .tab-content {
    border: 1px solid #dee2e6;
    padding: 2rem;
    border-radius: 0.25rem;
}

.academics-section .table-dark {
    background-color: #274082;
    border-color: #274082;
}

/* Admissions Page */
.admission-section .accordion-button {
    font-size: 1.25rem;
    font-weight: 500;
    color: #274082;
    background-color: #f8f9fa;
}

.admission-section .accordion-button:not(.collapsed) {
    color: #fff;
    background-color: #274082;
}

.admission-section .accordion-button:focus {
    box-shadow: 0 0 0 0.25rem rgba(39, 64, 130, 0.25);
}

.admission-section .accordion-button::after {
    filter: brightness(0) invert(1);
}

.admission-section .accordion-button:not(.collapsed)::after {
    filter: none;
}

/*--------------------------------------------------------------
# Contact Page
--------------------------------------------------------------*/
.contact-section .contact-info-box i {
    flex-shrink: 0;
}

.contact-section .contact-info-box h5 {
    color: var(--primary-color);
    margin-bottom: 5px;
}

.contact-section .contact-info-box p {
    margin-bottom: 0;
}

.contact-section .contact-info-box p a {
    text-decoration: none;
    color: #444;
    transition: color 0.3s;
}

.contact-section .contact-info-box p a:hover {
    color: var(--primary-color);
}

.contact-form {
    background-color: #f9f9f9;
}

.map-section {
    padding-top: 50px;
}

.contact-form .form-control,
.contact-form .form-select {
    border-radius: 0.25rem;
    border: 1px solid #ced4da;
    padding: 0.75rem 1rem;
}

.contact-form .form-control:focus,
.contact-form .form-select:focus {
    border-color: #80bdff;
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,.25);
}

.captcha-container canvas {
    border: 1px solid #ccc;
    border-radius: 4px;
    margin-right: 10px;
}
.apply-now-vertical{
  position: fixed;
  left: -40px !important;
  top:40%;
  transform: rotate(-90deg);
  z-index: 1000;
  background-color: #274082;
  color: #fff;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
}

.whatsapp-button {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
  background-color: #25D366;
  color: #fff;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
  transition: transform 0.3s ease;
}

.whatsapp-button:hover {
    transform: scale(1.1);
    color: #fff;
}