/********** Template CSS **********/
/* Make all course cards equal height */
.courses-item {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Force all course images to be the same size */
.courses-item img {
  width: 100%;
  height: 250px; /* You can adjust this value as needed */
  object-fit: cover; /* Ensures image fills area without stretching */
  object-position: center;
}
.carousel-caption h3,
.carousel-caption h5 {
  white-space: normal !important;   /* allow line breaks */
  word-break: normal !important;    /* do not break words */
  overflow-wrap: break-word !important;  /* break lines only at spaces */
  hyphens: none !important;         /* disable hyphenation */
}

/* Optional: Ensure the overlay buttons sit consistently */
.courses-overlay {
  position: absolute;
  bottom: 10px;
  left: 0;
  right: 0;
  justify-content: center;
}

:root {
    --primary: #F3BD00;
    --secondary: #757575;
    --light: #F3F6F8;
    --dark: #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);
    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 {
        position: relative;
        min-height: 450px;
    }
    
    #header-carousel .carousel-item img {
        position: absolute;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}

.page-header {
    background: linear-gradient(rgba(0, 0, 0, .75), rgba(0, 0, 0, .75)), url(../img/abp.png) 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 {
    min-height: 100vh;
    background: linear-gradient(rgba(255, 255, 255, .9), rgba(255, 255, 255, .9)), url(../img/carousel-1.jpg) center center no-repeat;
    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 ***/
.testimonial-carousel .owl-dots {
    height: 40px;
    margin-top: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.map-container {
  position: relative;
  width: 100%;
  height: 450px;
}

.arrow-marker {
  position: absolute;
  top: 50%;      
  left: 50%;
  transform: translate(-50%, -100%);
  width: 40px;
  height: 40px;
  
  background-size: contain;
  z-index: 9999;
  pointer-events: none;

  /* 🔥 ADD ANIMATION */
  animation: blink 1.2s infinite;
}

.map-container iframe {
  position: relative;
  z-index: 1;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* ===== Slide 1: Typing Animation ===== */
.typing-text {
  overflow: hidden;
  white-space: nowrap;
  border-right: 3px solid #fff;
  animation: typing 5s steps(50, end), blink-caret 0.75s step-end infinite;
}

.typing-text {
  display: inline-block;      
  overflow: hidden;           
  white-space: nowrap;        
  border-right: 0.15em solid #fff; /* optional cursor effect */
  animation: typing 3s steps(40, end) forwards;
}

/* Optional responsive fix for small screens */
@media (max-width: 576px) {
  .typing-text {
    white-space: normal;
  }
}

@keyframes typing {
  from { width: 0; }
  to { width: 100%; }
}


@keyframes blink-caret {
  from, to { border-color: transparent }
  50% { border-color: white }
}

/* ===== Common Styles for Letter Animations ===== */
.fly-in span,
.fade-up span {
  display: inline-block;
  opacity: 0;
  animation: letterAnim 0.5s ease-out forwards;
}

/* Letter Fly-in from Right */
.fly-in span {
  transform: translateX(50px);
}

/* Letter Fade-up */
.fade-up span {
  transform: translateY(30px);
}

/* Animate to visible */
@keyframes letterAnim {
  to {
    opacity: 1;
    transform: translate(0, 0);
  }
}

/* Add delay to each letter */
.fly-in span {
  animation-delay: calc(0.04s * var(--i));
}
.fade-up span {
  animation-delay: calc(0.04s * var(--i));
}

/* Ensure animations only trigger on active slide */
.carousel-item.active .fly-in span,
.carousel-item.active .fade-up span {
  animation-play-state: running;
}

.carousel-item .fly-in span,
.carousel-item .fade-up span {
  animation-play-state: paused;
}
/* Make carousel a fixed height */
#header-carousel {
    width: 100%;
    height: 600px; /* Adjust this height as needed */
    overflow: hidden;
}

/* Make each slide fill the carousel area */
#header-carousel .carousel-inner,
#header-carousel .carousel-item {
    width: 100%;
    height: 100%;
}

/* Ensure images fill slide area without distortion */
#header-carousel .carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;   /* crop images to fit container */
    object-position: center;
}

/* Center the caption */
/* ===== Universal Button Style ===== */
#header-carousel .btn-primary,
#header-carousel .btn-light {
    position: relative;
    padding: 12px 30px;
    background: transparent;      /* transparent inside */
    color: #FFD700;               /* yellow text */
    font-weight: 600;
    border: none;                 /* no static border */
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.4s ease;
    z-index: 1;
}

/* Animated border using ::before */
#header-carousel .btn-primary::before,
#header-carousel .btn-light::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    border: 2px solid #FFD700;
    border-radius: 8px;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s ease;
    z-index: -1;
}

/* Animate border when page loads */
#header-carousel .carousel-item.active .btn-primary::before,
#header-carousel .carousel-item.active .btn-light::before {
    animation: draw-border 1s forwards;
}

@keyframes draw-border {
    0% { transform: scaleX(0); }
    50% { transform: scaleX(1); }
    100% { transform: scaleX(1); }
}
/* === BASIC STYLES === */
.campuses {
  background: #fafafa;
  padding: 80px 20px;
  text-align: center;
  overflow: hidden;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 10px;
  color: #222;
}

.section-subtitle {
  color: #666;
  margin-bottom: 50px;
  font-size: 1.1rem;
}

/* === GRID === */
.campus-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.campus-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
  transform: translateY(40px);
  opacity: 0;
  transition: all 0.8s ease;
}

.campus-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 0.6s ease;
}

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

.campus-info {
  padding: 20px;
}

.campus-info h4 {
  margin: 10px 0;
  color: #222;
}

.campus-info p {
  color: #555;
  font-size: 0.95rem;
  line-height: 1.5;
}

/* === ANIMATION === */
.fade-up.show {
  opacity: 1;
  transform: translateY(0);
}
/* Hover effect */
#header-carousel .btn-primary:hover,
#header-carousel .btn-light:hover {
    background: #FFD700;          /* fill with yellow */
    color: #000;                  /* text turns dark */
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 215, 0, 0.5);
}


/* Optional: add semi-transparent overlay behind text */
#header-carousel .carousel-item::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4); /* adjust opacity if needed */
    z-index: 1;
}

.testimonial-carousel .owl-dot {
    position: relative;
    display: inline-block;
    margin: 0 5px;
    width: 20px;
    height: 20px;
    background: transparent;
    border: 2px solid var(--primary);
    transition: 4s;
}

.testimonial-carousel .owl-dot.active {
    width: 40px;
    height: 40px;
    background: var(--primary);
}

.testimonial-carousel .owl-item img {
    width: 150px;
    height: 150px;
}


/*** 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);
}