* {
    box-sizing: border-box;
}

body {
    font-family: -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 14px;
    line-height: 1.4;
    font-weight: 400;
    color: #2d2f31;
    /* line-height: 1.6; */

}


h1,
h2,
h3,
h4,
h5,
h6,
p,
a,
div {
    font-family: -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

a{
    text-decoration: none !important;
}

.navbar {
    transition: top 0.3s;
}

.hero-section {
    height: 65vh;
    background: rgb(9, 25, 60);
    background-size: cover;
    color: #fff;
    display: flex;
    justify-content: center;
    position: relative;
}

.hero-section .container {
    display: flex;
    justify-content: space-between;
}

.hero-section h1 {
    font-size: 32px;
    font-weight: bold;
}

.hero-section-instructor-name a {
    color: #00c3ff;
    font-weight: bold;
}

.course-instructor img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 10px;
    object-fit: cover;
    border: rgb(9, 25, 60) solid 2px;
    /* background-color: rgba(139, 142, 144, 0.205); */

}
.instructor-page-img img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    margin-right: 10px;
    object-fit: cover;
    padding: 5px;
    border: rgb(9, 25, 60) solid 2px;
}

.hero-section p {
    font-size: 19px;
    margin-top: 1rem;
}

.course-description {
    padding: 2rem 0;
}

.course-details h2 {
    font-size: 24px;
    font-weight: bold;
}

/* 
.course-details p {
    font-size: 14px;
            line-height: 1.4;
            font-weight: 500;
            color: #2d2f31;
    line-height: 1.6;
} */

.border {
    border: #333 solid 1px;
}

.course-details ul {
    font-size: 14px;
    list-style-type: none;
    padding-left: 0;
}

.course-details ul li {
    font-size: 14px;
    padding: 0.5rem 0;
}

.course-details ul li i {
    font-size: 14px;
    /* color: #007bff; */
    color: #333;
    margin-right: 0.5rem;
}

.sidebar-course-container {
    background: #fff;
    border: 1px solid #ddd;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    color: rgb(9, 25, 60);
    position: -webkit-sticky;
    position: sticky;
    top: 20px;
    margin-top: -380px;
    line-height: 1.4;
}

.sidebar-course-container img {
    width: 100%;
    /* border-radius: 5px; */
}

.sidebar-course-container h4 {
    font-size: 16px;
    font-weight: bold;
    margin-top: 1rem;
}

.sidebar-course-container p {
    font-size: 14px;
    margin-top: 0.5rem;
    line-height: 1.4;
}

.sidebar-course-container .course-info {
    margin: 1rem 0;
}

.sidebar-course-container .course-info i {
    margin-right: 0.5rem;
    color: #007bff;
}

.enroll-btn {
    width: 100%;
    padding: 10px;
    display: block;
    width: calc(100% - 0rem);
    background-color: #007bff;
    color: #fff;
    font-weight: bold;
    border: none;
}


.course-heading {
    /* font-family: 'Roboto', sans-serif; */
    font-size: 14px;
    font-weight: 700;
    background-color: rgb(9, 25, 60);
    color: white;
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 10px 4rem;
    display: none;
    /* Hide initially */
}

.coursepage-title {
    margin: 0;
    /* font-family: 'Roboto', sans-serif; */
    font-size: 17px;
    font-weight: 700;
}

.coursepage-price {
    font-size: 30px;
    font-weight: bolder;
    color: black;
}

.breadcrumb {
    /* margin: 20px 0; */
    padding: 0;
    background-color: transparent;
    list-style: none;
    font-weight: bold;
    /* color: #00c3ff !important; */
}

.breadcrumb-item a {
    color: #00c3ff !important;
    text-decoration: none;
}

.breadcrumb li::after {
    content: "";
    margin-left: 5px;
    margin-right: 5px;
    color: white;
}

.breadcrumbs {
    margin: 20px 0;
    padding: 0;
    list-style: none;
}

.breadcrumbs li {
    display: inline;
    margin-right: 5px;
}

.breadcrumbs li::after {
    content: ">";
    margin-left: 5px;
    margin-right: 5px;
    color: #ccc;
}

.breadcrumbs li:last-child::after {
    content: "";
}

.breadcrumbs li a {
    color: #007bff;
    text-decoration: none;
}

.breadcrumbs li a:hover {
    text-decoration: underline;
}

.multi-column-list {
    column-count: 2;
    column-gap: 30px;
    list-style-type: none;
    padding-left: 0;
}

.multi-column-list li {
    padding: 0.5rem 0;
}

.accordion {
    --bs-accordion-border-radius: 0;
    --bs-accordion-inner-border-radius: 0;
}

.accordion-header .accordion-button:focus {
    box-shadow: none;
    border-radius: none;
}

.btn:focus {
    box-shadow: none !important;
    border-radius: none;
}

.accordion-button {
    font-size: 16px;
    font-weight: bold;
    border-radius: none;
    background-color: #f2f2f2;
}

/* styles.css */
#course-description {
    position: relative;
    max-height: 12em;
    /* Adjust this value to limit the initial visible content */
    overflow: hidden;
}

#course-description.fade-text::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 6em;
    /* Adjust this value to control the height of the fade effect */
    background: linear-gradient(to bottom, transparent, white);
}

#course-description.expanded {
    max-height: none;
}

#course-description.expanded::after {
    display: none;
}

.show-more-less-btn {
    color: #007bff;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
}

.instructor-section img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin-right: 10px;
    object-fit: cover;
    border: rgb(9, 25, 60) solid 2px;
}

/* Scrollable section container */
.scrollable-section-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 1rem 0;
}

/* Horizontal scroll row */
.scrollable-section {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
}

/* Styling for each card */
.course-card {
    flex: 0 0 100%; /* Full width for mobile */
    min-width: 100%;
    padding: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    background-color: #fff;
    /* margin: 0.5rem 0; */
    margin-right: 10px;
}

.course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    color: #00c3ff;
}

.course-card img {
    border: 1px solid #e0e0e0;
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.course-card .card-body {
    padding: 0.5rem 0 0 0;
}

.course-card .card-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #333;
}

.course-card .card-text {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
}

.course-card .course-rating {
    display: flex;
    align-items: center;
}

.course-card .course-rating .rating {
    font-size: 16px;
    font-weight: bolder;
    color: black;
    margin-right: 5px;
}

/* Scroll buttons */
.scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    font-size: 24px;
    cursor: pointer;
    padding: 10px;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.left-scroll {
    left: 10px;
}

.right-scroll {
    right: 10px;
}

/* Hide buttons if not needed */
.scroll-btn:disabled {
    display: none;
}

/* Hiding scrollbar for a cleaner look */
.scrollable-section::-webkit-scrollbar {
    display: none;
}
.scrollable-section {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Mobile Responsive Behavior */
@media (max-width: 767px) {
    .course-card {
        flex: 0 0 calc(100% - 70px); /* Show 1 full card and part of the next */
        min-width: calc(100% - 70px);
    }

    .scroll-btn {
        width: 40px;
        font-size: 18px;
    }
}

/* Tablet Responsive Behavior */
@media (min-width: 768px) {
    .course-card {
        flex: 0 0 calc(33.33% - 10px); /* 3 cards per row */
        min-width: calc(33.33% - 10px);
    }
}

/* Desktop Responsive Behavior */
@media (min-width: 992px) {
    .course-card {
        flex: 0 0 calc(25% - 30px); /* 4 cards per row */
        min-width: calc(25% - 30px);
    }
}









/* Different Background Gradient Colors for Cards */
.bg-color-1 {
    background: rgb(215, 250, 248);
}

/* Blue */
.bg-color-2 {
    background: rgb(248, 250, 215);
}

/* Red */
.bg-color-3 {
    background: rgb(215, 223, 250);
}

/* #007bff */
.bg-color-4 {
    background: rgb(250, 215, 235);
}

/* Yellow */
.bg-color-5 {
    background: rgb(250, 250, 215);
}

/* Purple */
.bg-color-6 {
    background: rgb(215, 215, 250);
}

/* Orange */
.bg-color-7 {
    background: rgb(250, 215, 215);
}

/* Teal */
.bg-color-8 {
    background: rgb(215, 250, 215);
}

.border-radius-none{
    border-radius: none;
}


/* to reduce the gap between the cards */
.row {
    margin: 0;
}

.col-lg-4,
.col-lg-3,
.col-md-6 {
    padding: 0.5rem;
}

.course-card .course-rating .rating-stars {
    color: #ffc107 !important;
}

span .rating-stars i {
    color: #ffc107 !important;
}

.course-card .course-rating,
.rating-stars,
.rating-count {
    font-size: 12px !important;
}

.course-card .course-rating .rating-count {
    font-size: 14px;
    color: #888;
    margin-left: 5px;
}

.course-card .course-instructor {
    font-size: 12px;
    color: #888;
}

.course-card .course-price {
    font-size: 16px;
    font-weight: 700;
    color: #333;
}


.navbar {
    background-color: #ffff;
    /* border-bottom: #e0e0e0 solid 1px; */
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: top 0.3s;
    position: sticky;
    top: 0;
    z-index: 1020;
}

.navbar-brand {
    font-size: 30px;
    font-weight: 700;
    color: #333;
}

.navbar-nav .nav-link {
    font-size: 16px;
    color: #333;
    margin-right: 20px;
    transition: color 0.3s;
}

.navbar-nav .nav-link:hover {
    color: #007bff;
}

.navbar-nav .dropdown-menu {
    font-size: 14px;
    border-radius: 0;
}

.navbar-nav .dropdown-menu .dropdown-item {
    padding: 10px 20px;
}

.navbar-nav .dropdown-menu .dropdown-item:hover {
    background-color: #f8f9fa;
}

.navbar-nav .form-inline {
    display: flex;
    align-items: center;
}

.navbar-nav .form-inline .input-group {
    flex: 1;
    display: flex;
}

.navbar-nav .form-inline .input-group .form-control {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    flex: 1;
    border: #007bff 1px solid;
    border-right: none;
    background-color: #f8f9fa;
    transition: background-color 0.3s;
}

.navbar-nav .form-inline .input-group .btn-outline-blue {

    border: #007bff 1px solid;
    background-color: #f8f9fa;
    transition: background-color 0.3s;
}

.navbar-nav .form-inline .input-group .form-control:focus {
    box-shadow: none;
    /* background-color: #e9ecef; */
}

.navbar-nav .form-inline .input-group .input-group-append .btn {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    border-left: none;
}

.navbar-nav .form-inline .input-group .form-control::placeholder {
    font-size: 14px;
}

.navbar-nav .form-inline .input-group .input-group-append .btn i {
    font-size: 16px;
    color: #007bff;
}

.navbar-nav .nav-item .btn-outline-blue {
    border: #007bff 1px solid;
    border-radius: 0px;
}

.navbar-nav .nav-item .join {
    background-color: #007bff;
    color: white;
}

.heading {
    position: -webkit-sticky;
    font-family: 'Roboto', sans-serif;
    font-size: 30px;
    font-weight: 700;
    color: #333;
    text-align: center;
    position: sticky;
    top: 0;
    z-index: 100;
    transition: left 0.3s;
    background-color: white;
    padding: 10px;
}


.nav-logo {
    display: none;
}

.course-category {
    margin: 0;
    font-family: 'Roboto', sans-serif;
    font-size: 25px;
    font-weight: 700;
    color: #333;
    text-align: center;
}

.course-category::after {
    content: '';
    display: block;
    width: 200px;
    height: 3px;
    background: #007bff;
    margin: 10px auto 0;
}

.payment-method-container .payment-method {
    /* border: solid red 3px; */
    width: 100%;
}

.payment-method img {
    width: 100%;
}

.order-summary {
    background-color: rgb(9, 25, 60);
    color: #fff;
    height: 100vh;
    font-size: 17px;
}

.order-details .order-details-img img {
    height: 80px;
    width: 100px;
    object-fit: cover;
}

.order-box {
    position: -webkit-sticky;
    position: sticky;
}


.checkout-course-price {
    font-size: 20px;
    font-weight: 800;
}

.form-wrapper {
    background-color: rgb(9, 25, 60);
    height: 100vh;
    display: grid;
    place-items: center;
    min-height: calc(100vh - 1rem);
}

.form-header {
    background-color: #007bff;
    color: white;
    font-weight: bold;
    border-radius: 8px;
    max-width: 800px;

    /* padding: 20px; */
}

.form-header .navbar-brand {
    background-color: white;
    padding: 10px;
    border-radius: 8px 0px 0px 8px;
}

.login-form {
    display: flex;
    flex-direction: column;
    /* gap: 1rem; */
    height: max-content;
    font-size: 16px;
    font-weight: 500;
    margin:0;
    padding: 0;
}
.login-form input:focus {
    box-shadow: none;
}


.learnxa-login-container {
    background-color: white;
    color: black;
    text-align: center;
    margin: 0 auto;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    max-width: 800px;
    /* width: 90vw; */
    margin: 0 auto;
    border-radius: 8px;
    min-height: max-content;
}

.learnxa-login-side {
    background-color: white;
    color: black;
    text-align: center;
    margin: 0 auto;
    padding: 20px;
}

.user-login-img {
    width: 150px;
    height: 150px;
    border: #007bff solid 2px;
    border-radius: 50%;
    padding: 0.5rem;
    margin: 0 auto;
}

.user-login-img img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    border-radius: inherit;
}


#loading {
    display: none; /* Hidden by default */
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000;
  }
  
  .spinner {
    /* border: 4px solid rgba(0, 0, 0, 0.1); */
    border: 4px solid rgba(9, 116, 237, 0.1);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    /* border-top-color: #333; */
    border-top-color: #007bff;
    animation: spin 1s ease-in-out infinite;
  }
  
  @keyframes spin {
    to {
      transform: rotate(360deg);
    }
  }