/********** Template CSS **********/
:root {
    --primary: #0c63c0;
    --light: #F0FBFC;
    --light: #f0e4de;
    --dark: #183820a1;
}

.btn {
    background-color: #082d55;
    border: none;
}

.btn a {
    text-decoration: none;
    color: #fff;
}

.btn:hover {
    background: transparent;
    color: var(--primary) !important;
    border: 1px solid var(--primary);
}

.btn:hover a {
    color: var(--primary) !important;
}

.btn-light {
    background-color: var(--light);
}

.btn-light:hover {
    background: transparent;
    color: var(--light) !important;
    border: 1px solid var(--light);
}

.fw-medium {
    font-weight: 600 !important;
}

.fw-semi-bold {
    font-weight: 700 !important;
}

.back-to-top {
    position: fixed;
    display: none;
    left: 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-family: 'Nunito', sans-serif;
    font-weight: 600;
    transition: .5s;
}

.btn.btn-primary,
.btn.btn-secondary {
    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: 0px;
}

/*** NAVBAR BASE ***/
.navbar {
    background: #ffffff;
    padding: 0 24px;
}

.navbar-light.sticky-top {
    top: 0;
    transition: all 0.4s ease;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

/* Brand & Button Height */
.navbar-light .navbar-brand,
.navbar-light a.btn {
    height: 72px;
    display: flex;
    align-items: center;
}

/*** NAV LINKS ***/
.navbar-light .navbar-nav .nav-link {
    position: relative;
    margin-right: 28px;
    padding: 24px 0;
    color: #333333;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

/* Hover underline (Desktop only) */
.navbar-light .navbar-nav .nav-link::after {
    content: "";
    position: absolute;
    width: 0;
    height: 2px;
    left: 0;
    bottom: 18px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.navbar-light .navbar-nav .nav-link:hover::after,
.navbar-light .navbar-nav .nav-link.active::after {
    width: 100%;
}

.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link.active {
    color: var(--primary);
}

/*** DROPDOWN ICON ***/
.navbar .dropdown-toggle::after {
    border: none;
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-left: 6px;
    transition: transform 0.3s ease;
}

.navbar .dropdown:hover .dropdown-toggle::after {
    transform: rotate(180deg);
}

/*** DROPDOWN (DESKTOP) ***/
@media (min-width: 992px) {
    .navbar .nav-item .dropdown-menu {
        display: block;
        opacity: 0;
        visibility: hidden;
        transform: translateY(10px);
        transition: all 0.3s ease;
        border-radius: 10px;
        border: none;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    }

    .navbar .nav-item:hover .dropdown-menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
}

/*** TOGGLER ***/
.navbar-toggler {
    border: 2px solid var(--primary);
    border-radius: 8px;
    padding: 6px 10px;
}

.navbar-toggler-icon {
    filter: invert(36%) sepia(72%) saturate(431%) hue-rotate(330deg);
}

/*** REGISTER BUTTON ***/
.btn-register {
    background: linear-gradient(135deg, #C62828, #B71C1C);
    color: #ffffff;
    padding: 10px 26px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 14px;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.btn-register:hover {
    background: linear-gradient(135deg, #B71C1C, #8E0000);
    box-shadow: 0 6px 18px rgba(198, 40, 40, 0.4);
    transform: translateY(-1px);
    color: #ffffff;
}

/* =======================
   MOBILE NAVBAR STYLES
======================= */
@media (max-width: 991.98px) {

    .navbar {
        padding: 10px 16px;
    }

    .navbar-collapse {
        background: #ffffff;
        padding: 14px 16px;
        margin-top: 10px;
        border-radius: 14px;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    }

    /* Nav links */
    .navbar-light .navbar-nav .nav-link {
        padding: 14px 0;
        margin: 0;
        font-size: 15px;
        font-weight: 600;
    }

    /* Disable underline on mobile */
    .navbar-light .navbar-nav .nav-link::after {
        display: none;
    }

    /* Mobile dropdown */
    .dropdown-menu {
        position: static !important;
        transform: none !important;
        opacity: 1 !important;
        visibility: visible !important;
        box-shadow: none;
        border-radius: 8px;
        padding-left: 14px;
    }

    .dropdown-item {
        padding: 10px 0;
        font-size: 14px;
    }

    /* Dividers */
    .navbar-nav .nav-item {
        border-bottom: 1px solid #eeeeee;
    }

    .navbar-nav .nav-item:last-child {
        border-bottom: none;
    }

    /* Register button mobile */
    .btn-register {
        width: 100%;
        margin-top: 14px;
        padding: 12px;
        font-size: 15px;
        border-radius: 12px;
    }
}


/*** Header carousel ***/

.header-carousel .owl-carousel-item {
    position: relative;
    height: 100vh;
}

.header-carousel p {
    margin-top: 20px;
    font-size: 20px;
    line-height: 30px;
}

@media (max-width: 1300px) {
    .header-carousel .owl-carousel-item {
        position: relative;
        min-height: 80vh;
    }

    .header-carousel .owl-carousel-item img {
        position: absolute;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}

@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;
    }
}

@media (max-width: 430px) {

    .header-carousel .owl-carousel-item {
        position: relative;
        height: 500px;
    }

    .header-carousel .owl-carousel-item img {
        position: absolute;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .header-carousel h1 {
        font-size: 30px;
        line-height: 30px;
    }

    .header-carousel p {
        margin-top: 20px;
        font-size: 15px;
        line-height: 20px;
    }
}

.header-carousel .owl-nav {
    position: absolute;
    bottom: 30px;              /* move to bottom */
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: row;       /* horizontal */
    gap: 15px;
}

.header-carousel .owl-nav .owl-prev,
.header-carousel .owl-nav .owl-next {
    width: 25px;
    height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    background: rgba(0, 0, 0, 0.4); /* better visibility */
    border: 1px solid #FFFFFF;
    font-size: 12px;
    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(24, 29, 56, .7), rgba(24, 29, 56, .7)), url(../img/carousel-1.jpg);
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
}

.page-header-inner {
    background: rgba(15, 23, 43, .7);
}

.breadcrumb-item+.breadcrumb-item::before {
    color: var(--light);
}


/*** Section Title ***/
.section-title {
    position: relative;
    display: inline-block;
    text-transform: uppercase;
}

.section-title::before {
    position: absolute;
    content: "";
    width: calc(100% + 80px);
    height: 2px;
    top: 4px;
    left: -40px;
    background: var(--primary);
    z-index: -1;
}

.section-title::after {
    position: absolute;
    content: "";
    width: calc(100% + 120px);
    height: 2px;
    bottom: 5px;
    left: -60px;
    background: var(--primary);
    z-index: -1;
}

.section-title.text-start::before {
    width: calc(100% + 40px);
    left: 0;
}

.section-title.text-start::after {
    width: calc(100% + 60px);
    left: 0;
}


/*** Service ***/
.service-item {
    transition: .5s;
}


.service-item i {
    color: var(--primary);
}

.service-item:hover {
    margin-top: -10px;
    background: var(--primary);
}

.service-item * {
    transition: all .3s ease-in-out;
}

.service-item:hover * {
    color: #fff !important;
}

.course-item img {
    width: 100%;
    height: 200px;
    border-radius: 5px;
}

/*** Categories & Courses ***/

.category .content {
    cursor: pointer;
    transition: .5s;
}

.category .content:hover {
    background-color: var(--primary);
    color: #fff;
}

.category .content h5 a {
    text-decoration: none;
    color: var(--dark);
    transition: all 0.3s ease-in-out;
}

.category .content:hover h5 a {
    color: #fff !important;
}

.category img {
    width: 50px;
    height: 50px;
}

.category img,
.course-item img {
    transition: .5s;
}

.category a:hover img,
.course-item:hover img {
    transform: scale(1.1);
    margin-top: -10px;
}


/*** Team ***/
.team-item img {
    transition: .5s;
}

.team-item:hover img {
    transform: scale(1.1);
}


/*** Testimonial ***/
.testimonial-carousel::before {
    position: absolute;
    content: "";
    top: 0;
    left: 0;
    height: 100%;
    width: 0;
    background: linear-gradient(to right, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 100%);
    z-index: 1;
}

.testimonial-carousel::after {
    position: absolute;
    content: "";
    top: 0;
    right: 0;
    height: 100%;
    width: 0;
    background: linear-gradient(to left, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 100%);
    z-index: 1;
}

@media (min-width: 768px) {

    .testimonial-carousel::before,
    .testimonial-carousel::after {
        width: 200px;
    }
}

@media (min-width: 992px) {

    .testimonial-carousel::before,
    .testimonial-carousel::after {
        width: 300px;
    }
}

.testimonial-carousel .owl-item .testimonial-text,
.testimonial-carousel .owl-item.center .testimonial-text * {
    transition: .5s;
}

.testimonial-carousel .owl-item.center .testimonial-text {
    background: var(--primary) !important;
}

.testimonial-carousel .owl-item.center .testimonial-text * {
    color: #FFFFFF !important;
}

.testimonial-carousel .owl-dots {
    margin-top: 24px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.testimonial-carousel .owl-dot {
    position: relative;
    display: inline-block;
    margin: 0 5px;
    width: 15px;
    height: 15px;
    border: 1px solid #CCCCCC;
    transition: .5s;
}

.testimonial-carousel .owl-dot.active {
    background: var(--primary);
    border-color: var(--primary);
}


/*** Footer ***/
.footer .btn.btn-social {
    margin-right: 5px;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light);
    font-weight: normal;
    border: 1px solid #FFFFFF;
    border-radius: 35px;
    transition: .3s;
}

.footer .btn.btn-social:hover {
    color: var(--primary);
}

.footer .btn.btn-link {
    display: block;
    margin-bottom: 5px;
    padding: 0;
    text-align: left;
    color: #FFFFFF;
    font-size: 15px;
    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 {
    letter-spacing: 1px;
    box-shadow: none;
}

.footer .copyright {
    padding: 25px 0;
    font-size: 15px;
    border-top: 1px solid rgba(256, 256, 256, .1);
}

.footer .copyright a {
    color: var(--light);
}

.footer .footer-menu a {
    margin-right: 15px;
    padding-right: 15px;
    border-right: 1px solid rgba(255, 255, 255, .1);
}

.footer .footer-menu a:last-child {
    margin-right: 0;
    padding-right: 0;
    border-right: none;
}
.hf-container {
  max-width: 1600px;
  margin: 80px auto;
  padding: 20px;
  text-align: center;
}

.hf-title {
  font-size: 2.1rem;
  margin-bottom: 60px;
  color: #fb873f;
  font-weight: 700;
}

.hf-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
}

/* Step Card */
.hf-step {
  width: 200px;
  transition: transform 0.3s ease;
}

.hf-step:hover {
  transform: translateY(-6px);
}

.hf-step h4 {
  margin-top: 14px;
  font-size: 1.1rem;
  font-weight: 600;
}

.hf-step p {
  font-size: 0.9rem;
  color: #555;
  margin-top: 6px;
}

/* Icons */
.hf-icon {
  width: 72px;
  height: 72px;
  margin: auto;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: #fff;
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

/* Icon Colors */
.blue { background: linear-gradient(135deg,#3b82f6,#2563eb); }
.green { background: linear-gradient(135deg,#22c55e,#16a34a); }
.purple { background: linear-gradient(135deg,#8b5cf6,#6d28d9); }
.orange { background: linear-gradient(135deg,#f97316,#ea580c); }
.red { background: linear-gradient(135deg,#ef4444,#b91c1c); }

/* Connector */
.hf-connector {
  position: relative;
  width: 80px;
  height: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hf-line {
  position: absolute;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg,#c7d2fe,#6366f1);
  border-radius: 10px;
}

.hf-dot {
  width: 14px;
  height: 14px;
  background: #6366f1;
  border-radius: 50%;
  box-shadow: 0 0 15px rgba(99,102,241,0.8);
  animation: dotMove 1.5s infinite ease-in-out;
}

/* Animations */
@keyframes dotMove {
  0% { transform: translateX(-10px); opacity: 0.4; }
  50% { transform: translateX(0); opacity: 1; }
  100% { transform: translateX(10px); opacity: 0.4; }
}

.pulse {
  animation: pulseGlow 1.4s infinite alternate;
}

@keyframes pulseGlow {
  from { box-shadow: 0 0 15px rgba(34,197,94,0.6); }
  to { box-shadow: 0 0 35px rgba(34,197,94,1); }
}

/* Responsive */
@media (max-width: 992px) {
  .hf-flow {
    flex-direction: column;
  }

  .hf-connector {
    width: 4px;
    height: 50px;
  }

  .hf-line {
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg,#c7d2fe,#6366f1);
  }

  .hf-dot {
    animation: dotMoveVertical 1.5s infinite;
  }

  @keyframes dotMoveVertical {
    0% { transform: translateY(-10px); }
    50% { transform: translateY(0); }
    100% { transform: translateY(10px); }
  }
}
