/********** Template CSS **********/
:root {
    --primary: #F3BD00;
    --secondary: #757575;
    --light: #F3F6F8;
    --dark: #0C2B4B;
}

    /* background-color: #0C2B4B; */
    /* background-color: lightblue; */
/* body{
   background-color: #0C2B4B;  
} */

.py-6 {
    padding-top: 6rem;
    padding-bottom: 6rem;
}

.my-6 {
    margin-top: 6rem;
    margin-bottom: 6rem;
}

.back-to-top {
    position: fixed;
    display: none;
    right: 30px;
    bottom: 30px;
    z-index: 99;
}


/*** Spinner ***/
#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease-out, visibility 0s linear .5s;
    z-index: 99999;
}

#spinner.show {
    transition: opacity .5s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}


/*** Button ***/
.btn {
    font-weight: 500;
    transition: .5s;
}

.btn.btn-primary,
.btn.btn-outline-primary:hover {
    color: #FFFFFF;
}

.btn-square {
    width: 38px;
    height: 38px;
}

.btn-sm-square {
    width: 32px;
    height: 32px;
}

.btn-lg-square {
    width: 48px;
    height: 48px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
}


/*** Navbar ***/
.navbar.sticky-top {
    top: -100px;
    transition: .5s;
}

.navbar .navbar-brand,
.navbar a.btn {
    height: 80px
}

.navbar .navbar-nav .nav-link {
    margin-right: 30px;
    padding: 25px 0;
    color: var(--dark);
    font-weight: 500;
    text-transform: uppercase;
    outline: none;
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active {
    color: var(--primary);
}

.navbar .dropdown-toggle::after {
    border: none;
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    vertical-align: middle;
    margin-left: 8px;
}

@media (max-width: 991.98px) {
    .navbar .navbar-nav .nav-link  {
        margin-right: 0;
        padding: 10px 0;
    }

    .navbar .navbar-nav {
        border-top: 1px solid #EEEEEE;
    }
}

@media (min-width: 992px) {
    .navbar .nav-item .dropdown-menu {
        display: block;
        border: none;
        margin-top: 0;
        top: 150%;
        opacity: 0;
        visibility: hidden;
        transition: .5s;
    }

    .navbar .nav-item:hover .dropdown-menu {
        top: 100%;
        visibility: visible;
        transition: .5s;
        opacity: 1;
    }
}


/*** Header ***/
.carousel-caption {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    /* background: rgba(0, 0, 0, .75); */
    /* background: linear-gradient(to bottom, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.75)); */
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.3) 0%,
        rgba(0, 0, 0, 0.1) 50%,
        rgba(0, 0, 0, 0.0) 100%
    );
    z-index: 1;
}

.carousel-control-prev,
.carousel-control-next {
    width: 15%;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 3rem;
    height: 3rem;
    background-color: var(--primary);
    border: 10px solid var(--primary);
}

@media (max-width: 768px) {
    #header-carousel .carousel-item {
        min-height: auto;
    }

    #header-carousel .carousel-item img {
        position: relative;
        width: 100%;
        height: auto;          /* KEY */
        max-height: 260px;     /* Optional limit */
        object-fit: contain;   /* SHOW FULL IMAGE */
        background-color: #000; /* Optional (black bars) */
    }

    .carousel-caption {
        bottom: 12%;
    }

    .carousel-caption h1 {
        font-size: 1.2rem;
        line-height: 1.4;
    }
}



.page-header {
 background: linear-gradient(rgba(0, 0, 0, .75), rgba(0, 0, 0, .75)), url(../img/APJ-banner-1-1.jpg) center center no-repeat;
    background-size: cover;
}

.breadcrumb-item+.breadcrumb-item::before {
    color: #999999;
}


/*** Facts ***/
@media (min-width: 991.98px) {
    .facts {
        position: relative;
        margin-top: -75px;
        z-index: 1;
    }
}


/*** Courses ***/
.courses {
    height: auto;
    
    background-attachment: fixed;
    background-size: cover;
}

.courses-item .courses-overlay {
    position: absolute;
    width: 100%;
    height: 0;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, .5);
    overflow: hidden;
    opacity: 0;
    transition: .5s;
}

.courses-item:hover .courses-overlay {
    height: 100%;
    opacity: 1;
}


/*** Team ***/
.team-items {
    margin: -.75rem;
}

.team-item {
    padding: .75rem;
}

.team-item::after {
    position: absolute;
    content: "";
    width: 100%;
    height: 0;
    top: 0;
    left: 0;
    background: #FFFFFF;
    transition: .5s;
    z-index: -1;
}

.team-item:hover::after {
    height: 100%;
    background: var(--primary);
}

.team-item .team-social {
    position: absolute;
    width: 100%;
    height: 0;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, .75);
    overflow: hidden;
    opacity: 0;
    transition: .5s;
}

.team-item:hover .team-social {
    height: 100%;
    opacity: 1;
}


/*** Testimonial ***/
/* testimonials */
 .testimonial-container {
      background: #fff;
      border-radius: 8px;
      /* box-shadow: 0 8px 20px rgba(0,0,0,0.08); */
      /* max-width: 600px; */
      width: 100%;
      display: flex;
      align-items: center;
      /* padding: 20px 30px; */
      gap: 25px;
      flex-wrap: wrap;
    }

    .testimonial-image {
      flex-shrink: 0;
      width: 100px;
      height: 100px;
      border-radius: 6px;
      object-fit: cover;
      box-shadow: 0 4px 8px rgba(0,0,0,0.1);
      transition: transform 0.3s ease, opacity 0.4s ease;
      opacity: 1;
    }

    .testimonial-text {
      flex: 1;
      min-width: 280px;
      color: #333;
      opacity: 1;
      transition: opacity 0.4s ease;
      position: relative;
    }

    .testimonial-quote {
      font-size: 1.1rem;
      font-weight: 400;
      margin: 0 0 12px 0;
      line-height: 1.4;
      font-style: normal;
      color: #555;
      padding-left: 15px;
      position: relative;
    }
    /* subtle left quote */
    .testimonial-quote::before {
      content: '“';
      position: absolute;
      left: 0;
      top: 0;
      color: #bbb;
      font-size: 2rem;
      font-weight: 300;
      line-height: 1;
      user-select: none;
    }

    .testimonial-name {
      margin: 0;
      font-weight: 700;
      font-size: 1rem;
      color: #222;
    }

    .testimonial-designation {
      margin: 2px 0 0 0;
      font-size: 0.85rem;
      color: #888;
      font-style: italic;
    }

    .dots {
      width: 100%;
      text-align: center;
      margin-top: 25px;
      user-select: none;
    }

    .dot {
      display: inline-block;
      width: 12px;
      height: 12px;
      margin: 0 6px;
      background-color: #ddd;
      border-radius: 50%;
      cursor: pointer;
      transition: background-color 0.25s ease, transform 0.3s ease;
    }

    .dot.active {
      background-color: #333;
      transform: scale(1.3);
    }

    /* Responsive */
    @media (max-width: 480px) {
      .testimonial-container {
        padding: 15px 20px;
      }
      .testimonial-image {
        width: 80px;
        height: 80px;
      }
      .testimonial-text {
        min-width: 200px;
      }
      .testimonial-quote {
        font-size: 1rem;
      }
    }


/*** Footer ***/
.footer .btn.btn-link {
    display: block;
    margin-bottom: 5px;
    padding: 0;
    text-align: left;
    color: var(--light);
    font-weight: normal;
    text-transform: capitalize;
    transition: .3s;
}

.footer .btn.btn-link::before {
    position: relative;
    content: "\f105";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    color: var(--light);
    margin-right: 10px;
}

.footer .btn.btn-link:hover {
    color: var(--primary);
    letter-spacing: 1px;
    box-shadow: none;
}

.copyright {
    background: #092139;
}

.copyright a {
    color: var(--primary);
}

.copyright a:hover {
    color: var(--light);
}


/* Cards */
 .card-hover {
      border: none;
      overflow: hidden;
      border-radius: 1rem;
      transition: all 0.3s ease-in-out;
      box-shadow: 0 0.75rem 1.5rem rgba(0, 0, 0, 0.08);
    }

    .card-hover:hover {
      box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.15);
      transform: translateY(-6px);
    }

    .card-hover .card-img-overlay {
      background: rgba(0, 0, 0, 0.4);
      opacity: 0;
      transition: opacity 0.4s ease-in-out;
      color: white;
      display: flex;
      align-items: center;
      justify-content: center;
      text-align: center;
    }

    .card-hover:hover .card-img-overlay {
      opacity: 1;
    }

    .card-hover img {
      transition: transform 0.4s ease;
      height: 100%;
      object-fit: cover;
    }

    .card-hover:hover img {
      transform: scale(1.1);
    }

    .card-hover .card-body {
      padding: 1.25rem;
    }

    .overlay-content h5 {
      font-size: 1.5rem;
      font-weight: 600;
    }

    .overlay-content p {
      font-size: 1rem;
    }

    /* Why chosen */
     .nav-tabs-modern {
      border: none;
      gap: 0.75rem;
      flex-wrap: wrap;
      justify-content: center;
    }

    .nav-tabs-modern .nav-link {
      position: relative;
      background-color: #fff;
      border-radius: 0.75rem;
      padding: 0.7rem 1.4rem;
      font-weight: 500;
      color: #555;
      box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
      transition: all 0.3s ease;
    }

    .nav-tabs-modern .nav-link i {
      margin-right: 8px;
    }

    .nav-tabs-modern .nav-link::after {
      content: '';
      position: absolute;
      bottom: 6px;
      left: 50%;
      width: 0;
      height: 2px;
      /* background: #0d6efd; */
      background: #0C2B4B;
      transition: width 0.3s ease, left 0.3s ease;
    }

    .nav-tabs-modern .nav-link:hover::after {
      width: 60%;
      left: 20%;
    }

    .nav-tabs-modern .nav-link:hover {
      background-color: #f0f4ff;
      color: #000;
    }

    .nav-tabs-modern .nav-link.active {
      /* background-color: #0d6efd; */
      background-color: #0C2B4B;
      color: #fff;
      box-shadow: 0 6px 16px rgba(13, 110, 253, 0.3);
    }

    .tab-content {
      background: #ffffff;
      padding: 2rem;
      border-radius: 12px;
      box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
      margin-top: 2rem;
      animation: fadeIn 0.4s ease-in-out;
    }

    @keyframes fadeIn {
      from { opacity: 0; transform: translateY(10px); }
      to { opacity: 1; transform: translateY(0); }
    }

    /* Animation classes */
@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Apply animations */
.animate-left {
  animation: fadeInLeft 0.8s ease forwards;
}

.animate-right {
  animation: fadeInRight 0.8s ease forwards;
}



