:root {
    --primary: #17AC6A;
    --secondary: #1B8AD9;
    --light: #C83502;
    --dark: #000A75;
}

.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 .navbar-nav .auth-link {
    margin-right: 30px;
    padding: 25px 0;
    color: #C83502;
    font-weight:400;
    text-transform: Capitalize;
    outline: none;
}

.navbar .navbar-nav .auth-link:hover,
.navbar .navbar-nav .auth-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, .auth-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, .45);*/
    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);
}

#header-carousel .carousel-item img {
    max-height: 680px; /* Adjust this as needed */
    object-position: top center;
    object-fit: cover;
}

#header-carousel .carousel-caption h1 {
    margin-top: -100px; /* Adjust this value to move the H1 upwards */
}

@media (max-width: 768px) {
    #header-carousel .carousel-item {
        position: relative;
        height: 400px; /* or min-height: 300px; Adjust as needed */
    }

    #header-carousel .carousel-item img {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%; 
        height: 100%; 
        object-fit: cover;
    }
}


.page-header {
    background: linear-gradient(rgba(0, 0, 0, .75), rgba(0, 0, 0, .75)), url(../img/carousel-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;
    }
}

/* ==========================
   Our Courses Styles
========================== */
.courses-sec {
  padding-top:0;
  padding-bottom:60px;
}
.courses-sec .course-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.courses-sec .course-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: #121B54;
  color: #fff;
  padding: 20px;
  border-radius: 8px;
  border: 1px solid #D6E8F2;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s, color 0.3s;
}
.courses-sec .course-card:hover {
  transform: translateY(-5px);
  box-shadow: 0px 8px 25px rgba(77,77,77,0.5);
  background-color: #D6E8F2;
  color: #121B54;
}
.courses-sec .course-card h3,h4 {
  font-size: 1.25rem;
  color:#D6E8F2;
}
/* Hover Effect for Headings */
  .courses-sec .course-card:hover h3,
  .courses-sec .course-card:hover h4 {
  color: var(--dark) !important;
}
.courses-sec .line {
  border-bottom: 1px solid #555;
  margin: 10px 0;
}
.courses-sec .price {
  font-size: 1.5rem;
  font-weight: bold;
}
.courses-sec .price span {
  font-size: 0.8rem;
  font-weight: normal;
  text-align:center;
  padding-left:12px;
}
.courses-sec .course-card ul {
  list-style: none;
  padding: 0;
}
.courses-sec .course-card ul li {
  position: relative;
  padding-left: 5px;
  margin-bottom: 5px;
}
.courses-sec .course-card ul li::before {
  content: '●';
  position: absolute;
  left: 0;
  color: #D6E8F2;
}
.courses-sec .course-card:hover ul li::before {
  color: #121B54;
}
.courses-sec .note {
  font-size: 0.9rem;
  margin: 15px 0;
}
.courses-sec .note a {
  color: inherit;
  text-decoration: underline;
}
.courses-sec .btn {
  display: block;
  font-weight: bold;
  background: #D6E8F2;
  color: #121B54;
  padding: 12px 20px;
  border-radius: 25px;
  text-align: center;
  width: 100%;
  margin-top: auto;
  ;
 
}
.courses-sec .course-card:hover .btn {
  background: #121B54;
  color: #D6E8F2;
}

/* Responsive Styles */
@media (max-width: 992px) {
  .courses-sec .course-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .courses-sec .course-grid {
    grid-template-columns: 1fr;
  }
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .course-grid {
    grid-template-columns: 1fr;
  }
}


 /*******  Checkout  ******/
    .checkout-container {
        padding: 30px;
        background: #fff;
        border-radius: 15px;
        box-shadow: 0 0 15px rgba(0,0,0,0.05);
    }
    .form-control, .StripeElement {
        border-radius: 15px !important;
        box-shadow: 0 1px 3px rgba(0,0,0,0.1);
        border: 1px solid #ccc;
        padding: 12px;
        transition: all 0.3s ease;
    }
    .form-control:focus, .StripeElement--focus {
        border-color: #007bff;
        border-radius: 15px 15px 0 0;
        box-shadow: 0 0 8px rgba(0,123,255,0.4);
    }
    label {
        font-weight: 500;
        margin-top: 10px;
    }
    .payment-method {
        background: #f8f9fa;
        padding: 15px;
        border-radius: 15px;
        border: 1px solid #ddd;
    }
    .payment-method img {
        height: 20px;
        margin-left: 5px;
    }
    button.btn-checkout {
        border-radius: 25px;
        padding: 12px;
        font-size: 16px;
        font-weight: 500;
    }


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

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

.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: #CAD9E3;
    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: #CAD9E3;
    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);
}

#student_billing_address {
    display: none;
}

/* Rich text defaults for course descriptions */
  .course-card .course-desc {
    font-size: 0.95rem;
    line-height: 1.6;
  }

  /* Restore list styles & indentation */
  .course-card .course-desc ul,
  .course-card .course-desc ol {
    list-style-position: outside;     /* bullets/numbers sit outside text block */
    margin: 0 0 .75rem 1.25rem;       /* bottom spacing + left indent */
    padding-left: 1.25rem;            /* ensure indent even if a reset killed it */
  }

  .course-card .course-desc ul { list-style-type: disc !important; }
  .course-card .course-desc ol { list-style-type: decimal !important; }

  /* List items spacing */
  .course-card .course-desc li { margin: .25rem 0; }

  /* Paragraph spacing inside the rich text */
  .course-card .course-desc p { margin: 0 0 .5rem; }

  /* Nested lists look tidy */
  .course-card .course-desc li ul,
  .course-card .course-desc li ol {
    margin-top: .25rem;
    margin-bottom: .25rem;
  }

  /* Optional: keep images and tables inside description neat */
  .course-card .course-desc img { max-width: 100%; height: auto; border-radius: 6px; }
  .course-card .course-desc table { width:100%; border-collapse: collapse; margin: .75rem 0; }
  .course-card .course-desc th,
  .course-card .course-desc td { border:1px solid #e5e7eb; padding:.5rem; }
  
  /* Kill any custom pseudo bullets inside course descriptions */
  .course-card .course-desc li::before,
  .course-card .course-desc li::after {
    content: none !important;
    background: none !important;
  }

  /* Make sure list items use the native marker */
  .course-card .course-desc ul,
  .course-card .course-desc ol {
    list-style-position: outside;
    margin: 0 0 .75rem 1.25rem;
    padding-left: 1.25rem;
  }
  .course-card .course-desc ul { list-style-type: disc; }
  .course-card .course-desc ol { list-style-type: decimal; }
  
  .course-card .course-desc ul,
  .course-card .course-desc ol { padding-left: 0.9rem; padding-right: 0.5rem; }  /* tighter indent */
  .course-card .course-desc li::marker { font-size: 1.5em; }

  .filter-bar { white-space: nowrap; }
  .filter-bar .form-control.filter-date   { width: 160px; min-width: 160px; }
  .filter-bar .form-control.filter-search { width: 320px; min-width: 260px; }
  .filter-bar .btn { flex: 0 0 auto; }


  
  