/********** Template CSS **********/
:root {
    --primary: #FE5D37;
    --light: #FFF5F3;
    --dark: #103741;
}
:root{
  --card-bg: #ffffff;
  --accent: #2b8cff;
  --muted: #657380;
  --card-radius: 14px;
  --transition: 350ms cubic-bezier(.2,.9,.2,1);
}

.back-to-top {
    position: fixed;
    display: none;
    right: 45px;
    bottom: 45px;
    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 {
    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;
    border-radius: 50px;
}


/*** Heading ***/
h1,
h2,
h3,
h4,
.h1,
.h2,
.h3,
.h4,
.display-1,
.display-2,
.display-3,
.display-4,
.display-5,
.display-6 {
    font-family: 'Lobster Two', cursive;
    font-weight: 700;
}

h5,
h6,
.h5,
.h6 {
    font-weight: 600;
}

.font-secondary {
    font-family: 'Lobster Two', cursive;
}


/*** Navbar ***/
.navbar .navbar-nav .nav-link {
    padding: 30px 15px;
    color: var(--dark);
    font-weight: 700;
    outline: none;
}

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

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

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

.navbar .dropdown-toggle[aria-expanded=true]::after {
    transform: rotate(-180deg);
}

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

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

/* Position nested dropdown to the right */
.dropdown-menu .dropdown-menu {
    left: 100%;
    top: 0;
    margin-left: 0.1rem;
    margin-right: 0;
    display: none;
    position: absolute;
}

/* Show submenu when .show class is added */
.dropdown-menu .dropdown-menu.show {
    display: block;
}


/*** Header ***/
.header-carousel::before,
.header-carousel::after,
.page-header::before,
.page-header::after {
    position: absolute;
    content: "";
    width: 100%;
    height: 10px;
    top: 0;
    left: 0;
    background: url(../img/bg-header-top.png) center center repeat-x;
    z-index: 1;
}

.header-carousel::after,
.page-header::after {
    height: 19px;
    top: auto;
    bottom: 0;
    background: url(../img/bg-header-bottom.png) center center repeat-x;
}

@media (max-width: 768px) {
    .header-carousel .owl-carousel-item {
        position: relative;
        min-height: 500px;
    }
    
    .header-carousel .owl-carousel-item img {
        position: absolute;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .header-carousel .owl-carousel-item p {
        font-size: 16px !important;
        font-weight: 400 !important;
    }

    .header-carousel .owl-carousel-item h1 {
        font-size: 30px;
        font-weight: 600;
    }
}

.header-carousel .owl-nav {
    position: absolute;
    top: 50%;
    right: 8%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
}

.header-carousel .owl-nav .owl-prev,
.header-carousel .owl-nav .owl-next {
    margin: 7px 0;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    background: transparent;
    border: 1px solid #FFFFFF;
    border-radius: 45px;
    font-size: 22px;
    transition: .5s;
}

.header-carousel .owl-nav .owl-prev:hover,
.header-carousel .owl-nav .owl-next:hover {
    background: var(--primary);
    border-color: var(--primary);
}

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

.breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, .5);
}



/*** Facility ***/
/* Layout */
/* Multi-colored cards */
/* --- Card Base --- */
.why-section {
  background: url("../img/whyus.jpg") no-repeat center center/cover;
  padding: 80px 20px;
  position: relative;
  z-index: 1;
  overflow: hidden; /* keeps animations inside */
}

/* Optional: dark overlay for readability */
/* Dark overlay */
.why-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 0; /* behind content */
}

/* Wave at top */
.why-section::after {
  content: "";
  position: absolute;
  top: 0;           /* at the top */
  left: 0;
  width: 100%;
  height: 24px;
  background: url('../assets/img/bg-header-top.png') repeat-x;
  background-size: auto 100%;
  z-index: 1;       /* above overlay, behind content */
}



.why-section .container {
 max-width: 1200px; /* keeps content centered */
  margin: 0 auto;
  position: relative;
  z-index: 2;
  padding: 0 15px;
  box-sizing: border-box;
}
.why-card {
  flex: 1;
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 18px;
  color: #fff;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.4s ease, box-shadow 0.4s ease, background 0.5s ease;
}

/* Hover effects */
.why-card:hover {
  transform: translateY(-8px) scale(1.05);
  box-shadow: 0 14px 32px rgba(0,0,0,0.25);
}
.why-card:hover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.15);
  animation: shine 1s forwards;
}

/* --- Feature Row Layout --- */
.why-feature {
  display: flex;
  align-items: center;
  margin-bottom: 40px;
  gap: 24px;
  flex-wrap: wrap;
    justify-content: space-between; /* prevent overflow */

}
.why-feature:nth-of-type(even) {
  flex-direction: row-reverse;
}

/* --- Background Gradients by Row --- */
.why-feature:nth-of-type(1) .why-card { background: linear-gradient(135deg, #42a5f5, #478ed1); }
.why-feature:nth-of-type(2) .why-card { background: linear-gradient(135deg, #66bb6a, #43a047); }
.why-feature:nth-of-type(3) .why-card { background: linear-gradient(135deg, #ffb74d, #f57c00); }
.why-feature:nth-of-type(4) .why-card { background: linear-gradient(135deg, #ec407a, #d81b60); }

/* --- Images --- */
.why-img-box {
  flex: 1;
  text-align: center;
}
.why-img-box img {
  max-width: 250px;
  border-radius: 18px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
  transition: transform 0.4s ease;
}
.why-img-box img:hover {
  transform: scale(1.08) rotate(-2deg);
}

/* --- Shine Animation --- */
@keyframes shine {
  0% { transform: translateX(-100%) skewX(-15deg); }
  100% { transform: translateX(200%) skewX(-15deg); }
}

/* --- Card Icon (if used) --- */
.why-card img {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
}

/* --- Card Text --- */
.why-card h4 {
  font-size: 1.5rem;
  font-weight: 800;
  margin: 0 0 6px;
  letter-spacing: 0.5px;
  color: #fff; /* default high contrast */
  text-shadow: 0 2px 8px rgba(0,0,0,0.45);
}
.why-card p {
  margin: 0;
  font-size: 0.95rem;
}

/* --- Optional Per-card Heading Colors --- */
.why-feature:nth-of-type(1) h4 { color: #E3F2FD; text-shadow: 1px 1px 0 #0D47A1, 0 2px 6px rgba(0,0,0,.5); }
.why-feature:nth-of-type(2) h4 { color: #E8F5E9; text-shadow: 1px 1px 0 #1B5E20, 0 2px 6px rgba(0,0,0,.5); }
.why-feature:nth-of-type(3) h4 { color: #FFF3E0; text-shadow: 1px 1px 0 #E65100, 0 2px 6px rgba(0,0,0,.5); }
.why-feature:nth-of-type(4) h4 { color: #FFFFFF; text-shadow: 1px 1px 0 #6A1B9A, 0 2px 6px rgba(0,0,0,.55); }

/* Hover Pop-out */
.why-card:hover h4 {
  transform: translateY(-3px) scale(1.05);
  transition: transform 0.3s ease, text-shadow 0.3s ease;
  text-shadow: 
    3px 3px 0px rgba(0,0,0,0.4),
    6px 6px 12px rgba(0,0,0,0.35);
}

/* --- Main Section Title --- */
h2.section-title {
  font-size: 3.2rem;
  font-weight: 900;
  text-align: center;
  margin: 0 auto 40px;
  display: block;

  color: #ff4b2b; /* Main title color (bright red-orange) */

  /* Crisp multi-layered 3D shadow */
  text-shadow:
    2px 2px 0 #ffcc00,   /* yellow */
    4px 4px 0 #2196f3,   /* blue */
    6px 6px 0 #4caf50,   /* green */
    8px 8px 12px rgba(0,0,0,0.4);

  letter-spacing: 2px;
  transition: transform 0.3s ease, text-shadow 0.3s ease;
}

h2.section-title:hover {
  transform: translateY(-6px);
  text-shadow:
    3px 3px 0 #ffcc00,
    6px 6px 0 #2196f3,
    9px 9px 0 #4caf50,
    12px 12px 18px rgba(0,0,0,0.5);
}

@media (max-width: 992px) {
  h2.section-title {
    font-size: 2.5rem;
  }

  .why-feature {
    flex-direction: column !important;
    text-align: center;
  }

  .why-card, .why-img-box {
    width: 100%;
    max-width: 500px;
  }
}

@media (max-width: 576px) {
  h2.section-title {
    font-size: 2rem;
    line-height: 1.2;
  }

  .why-card {
    padding: 18px;
  }

  .why-card h4 {
    font-size: 1.3rem;
  }

  .why-card p {
    font-size: 0.9rem;
  }

  .why-img-box img {
    max-width: 200px;
  }
}

/* Shine animation */
@keyframes shine {
  0%   { left: -75%; opacity: 0; }
  20%  { opacity: 1; }
  100% { left: 125%; opacity: 0; }
}

/* When card is visible */
.why-card.animate-in::after {
  animation: shine 1.2s ease forwards;
}



/*** About ***/
.about-img img {
    transition: .5s;
}

.about-img img:hover {
    background: var(--primary) !important;
}


/*** Classes ***/
.classes-item {
    transition: .5s;
}

.classes-item:hover {
    margin-top: -10px;
}


/*** Team ***/
.team-item .team-text {
    position: absolute;
    width: 250px;
    height: 250px;
    bottom: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    background: #FFFFFF;
    border: 17px solid var(--light);
    border-radius: 250px;
    transition: .5s;
}

.team-item:hover .team-text {
    border-color: var(--primary);
}


/*** Testimonial ***/
.testimonial-carousel {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

@media (min-width: 576px) {
    .testimonial-carousel {
        padding-left: 4rem;
        padding-right: 4rem;
    }
}

.testimonial-carousel .testimonial-item .border {
    border: 1px dashed rgba(0, 185, 142, .3) !important;
}

.testimonial-carousel .owl-nav {
    position: absolute;
    width: 100%;
    height: 45px;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    z-index: 1;
}

.testimonial-carousel .owl-nav .owl-prev,
.testimonial-carousel .owl-nav .owl-next {
    position: relative;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    background: var(--primary);
    border-radius: 45px;
    font-size: 20px;
    transition: .5s;
}

.testimonial-carousel .owl-nav .owl-prev:hover,
.testimonial-carousel .owl-nav .owl-next:hover {
    background: var(--dark);
}


/*** Footer ***/
.footer .btn.btn-social {
    margin-right: 5px;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    border: 1px solid rgba(255,255,255,0.5);
    border-radius: 45px;
    transition: .3s;
}

.footer .btn.btn-social:hover {
    border-color: var(--primary);
    background: var(--primary);
}

.footer .btn.btn-link {
    display: block;
    margin-bottom: 5px;
    padding: 0;
    text-align: left;
    font-size: 16px;
    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;
    margin-right: 10px;
}

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

.footer .form-control {
    border-color: rgba(255,255,255,0.5);
}

.footer .copyright {
    padding: 25px 0;
    font-size: 15px;
    border-top: 1px solid rgba(256, 256, 256, .1);
}

.footer .copyright a {
    color: #FFFFFF;
}

.footer .footer-menu a {
    margin-right: 15px;
    padding-right: 15px;
    border-right: 1px solid rgba(255, 255, 255, .1);
}

.footer .copyright a:hover,
.footer .footer-menu a:hover {
    color: var(--primary) !important;
}

.footer .footer-menu a:last-child {
    margin-right: 0;
    padding-right: 0;
    border-right: none;
}
