/* ==========================================================================
   Home Page Styles (index.php)
   ========================================================================== */

/* Prevent FOUC / Layout Jump Glitch before Owl Carousel JS initializes */
.hero-slider.owl-carousel:not(.owl-loaded) {
  display: flex !important;
  overflow: hidden !important;
}
.hero-slider.owl-carousel:not(.owl-loaded) > :nth-child(n+2) {
  display: none !important;
}

/* Disable Zoom/Scale Animation on Hero Slider */
.hero-slider .owl-item,
.hero-slider .single-slider,
.hero-slider .animated,
.hero-slider .owl-animated-out,
.hero-slider .owl-animated-in {
  transform: none !important;
  -webkit-transform: none !important;
  animation-timing-function: ease-in-out !important;
}


/* Owl Theme Replacement */
.owl-carousel { display: block; width: 100%; position: relative; }
.owl-dots { display:none !important }
.owl-dot { width: 12px; height: 12px; background: #ccc; border-radius: 50%; margin: 4px; display: inline-block; }
.owl-dot.active { background: #ffc107; }

.hero-overly {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-overly::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: linear-gradient(0deg, rgba(2, 8, 52, 0.74902) 0%, rgba(2, 8, 52, 0.14902) 100%) !important;
    z-index: 1;
    pointer-events: none;
}

/* Navigation Buttons */
.custom-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgb(255, 179, 0);
    border: none;
    width: 44px;
    height: 45px;
    border-radius: 50%;
    font-size: 28px;
    color: #000;
    cursor: pointer;
    z-index: 99;
    pointer-events: auto;
    transition: 0.3s ease;
}

.custom-nav-btn:hover {
    background: #ffc107;
    color: #000;
}

.owl-carousel .owl-item {
    min-height: 1px;
    float: left;
    -webkit-backface-visibility: visible !important;
    -webkit-touch-callout: none;
}

.prev-btn { left: 25px; }
.next-btn { right: 25px; }

.single-slider {
    padding: 20px;
    width: 100%;
    height: 115vh;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.single-slider .container {
    position: relative;
    z-index: 2;
    color: #fff;
}

/* Custom Card Styles */
.custom-card {
  background-color: #fff;
  color: #000;
  border-radius: 10px;
  transition: all 0.3s ease-in-out;
  cursor: pointer;
}

.custom-card:hover {
  background-color: #D81B60;
  color: #fff;
  transform: translateY(-8px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.3);
}

.custom-card:hover p {
  font-weight: bold;
  font-size: 14px;
}

/* Mobile responsive styles */
@media (max-width: 768px) {
  .owl-carousel .owl-stage {
    display: flex !important;
  }
  .owl-carousel .owl-item {
    float: left !important;
    width: 100% !important;
    display: flex !important;
  }
  .single-slider {
    display: flex !important;
    background-position: center center !important;
    padding: 0px !important;
    height: auto !important; min-height: 100vh !important; padding: 40px 0 !important;
  }
  .custom-nav-btn {
    display: none !important;
  }
  .mobile-slide {
    background-position: center center !important;
    background-size: cover !important;
    background-size: cover !important;
    background-repeat: no-repeat !important;
  }
}


/* ==========================================================================
   Extracted Internal Styles from index.php
   ========================================================================== */

.parallax-section {
  height: 40vh; /* Adjust height */
  background-image: url('../../../IMAGES/parallax.webp'); /* Replace with your image */
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: white;
  position: relative;
}

.parallax-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color:rgb(25 26 51 / 82%); /* Dark overlay for readability */
  z-index: 1;
}

.parallax-section .content {
  position: relative;
  z-index: 2;
}

.parallax-section .btn {
  margin-top: 15px;
  padding: 27px 51px;
  background-color: #FFB433;
  color: #fff;
  border: none;
  border-radius: 5px;
  text-decoration: none;
}

.extra-content {
  padding: 50px;
  text-align: center;
  font-size: 18px;
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 80vh; /* responsive height */
    overflow: hidden;
  }

  .carousel-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
  }

  .carousel-container img.active {
    opacity: 1;
    z-index: 1;
  }

  /* Controls */
  .carousel-controls {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    padding: 0 15px;
    z-index: 2;
  }

  .carousel-controls button {
    background: rgba(0,0,0,0.5);
    border: none;
    color: white;
    font-size: 24px;
    padding: 8px 12px;
    cursor: pointer;
    border-radius: 50%;
    transition: background 0.3s;
  }

  .carousel-controls button:hover {
    background: rgba(0,0,0,0.8);
  }

  /* Dots */
  .carousel-dots {
    position: absolute;
    bottom: 15px;
    width: 100%;
    text-align: center;
    z-index: 2;
  }

  .carousel-dots span {
    display: inline-block;
    width: 12px;
    height: 12px;
    margin: 0 5px;
    background: rgba(255,255,255,0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s;
  }

  .carousel-dots span.active {
    background: rgba(255,255,255,0.9);
  }

  /* Responsive height for smaller screens */
  @media (max-width: 768px) {
    .carousel-container {
      height: 40vh;
    }
  }

  @media (max-width: 480px) {
    .carousel-container {
      height: 25vh;
    }
  }

.marquee-container {
      width: 100%;
      overflow: hidden;
      background-color: #161e40; /* Warning color */
      padding: 10px 0;
      position: relative;
    }

    .marquee-text {
      display: inline-block;
      white-space: nowrap;
      font-size: 18px;
      font-weight: 800;
      color: #FFB300;
      animation: marquee 20s linear infinite;
      padding-left: 100%; /* start outside the screen */
    }

    @keyframes marquee {
      0% {
        transform: translateX(0%);
      }
      100% {
        transform: translateX(-100%);
      }
    }

/* INNER TABS – Custom Style */
#online-inner-tab {
  gap: 25px;
}

#online-inner-tab .nav-link {
  background: transparent;
  border: none;
  color: #000;s
  font-weight: 600;
  padding: 10px 22px;
  border-radius: 6px;
  transition: all 0.3s ease;
}

/* Active tab */
#online-inner-tab .nav-link.active {
  background-color: #d81b60; /* same pink as screenshot */
  color: #fff;
}

/* Hover effect (optional but nice) */
#online-inner-tab .nav-link:hover {
  color: #d81b60;
}

/* Keep active hover white */
#online-inner-tab .nav-link.active:hover {
  color: #fff;
}
/* Force inner tabs to stay in one row on mobile */
#online-inner-tab {
  flex-wrap: nowrap;
  overflow-x: auto; /* safety if text is long */
}

#online-inner-tab .nav-item {
  flex: 0 0 auto;
}

/* Optional: reduce padding on small screens */
@media (max-width: 576px) {
  #online-inner-tab .nav-link {
    padding: 8px 14px;
    font-size: 14px;
  }
}

.heading-wrap {
                            display: flex;
                            flex-wrap: wrap;
                            align-items: center;
                            gap: 1rem;
                            }
                            .heading-wrap h3 {
                            margin: 0;
                            color:#d81b60;
                            font-style: italic;
                            font-weight: 600;
                            text-decoration: underline;
                            }
                            /* Stack on screens narrower than 768px */
                            @media (max-width: 767px) {
                            .heading-wrap {
                            flex-direction: column;
                            align-items: flex-start; /* left align when stacked */
                            }
                            }

.heading-wrap {
                                display: flex;
                                flex-wrap: wrap;
                                align-items: center;
                                gap: 1rem;
                                }
                                .heading-wrap h3 {
                                margin: 0;
                                color:#d81b60;
                                font-style: italic;
                                font-weight: 600;
                                text-decoration: underline;
                                }
                                /* Stack on screens narrower than 768px */
                                @media (max-width: 767px) {
                                .heading-wrap {
                                flex-direction: column;
                                align-items: flex-start; /* left align when stacked */
                                }
                                }

.counter-image {
    width: 100%;
    max-width: 230px; /* All images same width */
    height: 100%;    /* All images same height */
    object-fit: cover; /* Keeps image proportions while filling the box */
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.counter-image:hover {
    transform: scale(1.05); /* Optional hover effect */
}

/* Team Card Hover Effect */
.single-team {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    transition: transform 0.3s;
}

.single-team:hover {
    transform: translateY(-10px);
}

.team-img img {
    width: 100%;
    display: block;
    border-radius: 10px;
    transition: transform 0.5s;
}

.single-team:hover .team-img img {
    transform: scale(1.1);
}

/* Overlay */
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s;
    padding: 20px;
    border-radius: 10px;
}

.single-team:hover .overlay {
    opacity: 1;
}

.team-info h3 {
    font-size: 22px;
    margin-bottom: 5px;
}

.team-info span {
    display: block;
    font-size: 16px;
    margin-bottom: 10px;
    color: #FFB433;
}

.team-info p {
    font-size: 14px;
    line-height: 1.5;
}


/* SEO Heading Overrides for Home Page */
.hero-feature-title {
  font-size: 1.25rem !important;
  font-weight: 500 !important;
  margin-bottom: 0.25rem !important;
  font-family: inherit !important;
}

.core-val-title {
  font-size: 1rem !important;
  font-weight: 700 !important;
  margin-top: 1rem !important;
  font-family: inherit !important;
  color: inherit !important;
}

.program-card-title {
  font-size: 1.5rem !important;
  font-weight: 700 !important;
  font-family: inherit !important;
}

.team-name {
  font-size: 1.25rem !important;
  font-weight: 700 !important;
  font-family: inherit !important;
}

.step-title {
  font-size: 1rem !important;
  font-weight: 700 !important;
  font-family: inherit !important;
}


/* ==========================================================================
   Mobile Responsive Enhancements for Home Page
   ========================================================================== */
@media (max-width: 768px) {
  .hero-cap h1 {
    font-size: 2.2rem !important;
    line-height: 1.25 !important;
  }
  
  .hero-cap h2 {
    font-size: 1.5rem !important;
  }

  .marquee-text {
    font-size: 14px !important;
  }

  .counter-image {
    max-width: 180px !important;
    margin: 0 auto !important;
  }

  .parallax-section {
    height: auto !important;
    min-height: 280px !important;
    padding: 40px 15px !important;
  }

  .extra-content {
    padding: 25px 15px !important;
    font-size: 15px !important;
  }
}

@media (max-width: 480px) {
  .hero-cap h1 {
    font-size: 1.75rem !important;
  }
  .hero-cap h2 {
    font-size: 1.2rem !important;
  }
}


/* Centered Carousel Background Images on Mobile */
@media (max-width: 768px) {
  .single-slider,
  .mobile-slide,
  .hero-overly,
  .slider-area .single-slider {
    background-position: center center !important;
    background-size: cover !important;
  }
}


/* Prevent Mobile WebKit Image Crop & Zoom Bug + Fit Mobile Award Banners Perfectly */
@media (max-width: 768px) {
  .parallax-section,
  .hero-overly,
  .count-wrapper,
  .count-bg {
    background-attachment: scroll !important;
    background-position: center center !important;
    background-size: cover !important;
  }

  .hero-slider .single-slider:not(.mobile-slide) {
    min-height: 100vh !important;
    height: auto !important;
    padding: 30px 0 !important;
    background-size: cover !important;
    background-position: center center !important;
    background-attachment: scroll !important;
  }

  .hero-slider .mobile-slide,
  .mobile-slide {
    width: 100% !important;
    height: auto !important;
    min-height: auto !important;
    aspect-ratio: 687 / 1246 !important;
    background-size: 100% 100% !important;
    background-position: center top !important;
    background-repeat: no-repeat !important;
    background-attachment: scroll !important;
    padding: 0 !important;
    margin: 0 !important;
    display: block !important;
  }

  .owl-carousel .owl-stage-outer {
    height: auto !important;
  }

  img {
    max-width: 100% !important;
    height: auto !important;
  }
}
