/* General Styles */
.gh-content,
.gh-toc>.toc-list {
    position: relative;
}

.toc-list {
    overflow: hidden;
    list-style: none;
    font-size: 1.4rem;
}

/* Sidebar and TOC */
@media (min-width: 1300px) {
    .gh-sidebar {
        position: absolute;
        top: 0;
        bottom: 0;
        margin-top: 4vmin;
        grid-column: wide-start / main-start;
    }

    .gh-toc {
        position: sticky;
        top: 7vmin;
    }
}

.lang {
    text-transform: capitalize;
}

.gh-toc .is-active-link::before {
    background-color: var(--ghost-accent-color);
}

.toc-link {
    text-decoration: none !important;
}

.tutor-section {
    margin: 10px 0 !important;
    padding-top: 20px;
}

/* Tutor Section */
.tutor-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: auto;
}

#card-container {
    max-width: 1200px;
}

.tutor-card {
    padding: 10px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    height: 260px;
    max-width: 300px;
}

.tutor-card img {
    width: 80px;
    height: 80px;
}

.tutor-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.tutor-header {
    display: flex;
    gap: 10px;
    width: 100%;
}

.tutor-header h3 {
    margin: 8px 0;
    font-size: 18px;
    font-weight: bold;
    color: black;
}

.tutor-card-top {
    width: 100%;
}

.tutor-body {
    width: 100%;
}

/* Profile Details */
.profile-title {
    max-width: 260px;
    font-size: 16px;
    font-weight: bold;
    color: #333;
    margin-bottom: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.profile-description {
    font-size: 14px;
    color: #555;
    line-height: 1.4;
    height: 40px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    /* Limits to 2 lines */
}

.tutor-fee,
.tutor-rating,
.tutor-active-students,
.tutor-subjects {
    margin: 4px 0;
    font-size: 14px;
    color: #353434;
}

.tutor-footer>a>button {
    font-size: 14px;
}

/* Responsive Design */
@media screen and (max-width: 768px) {

    .card-container {
        padding: 10px;
    }
}

.fee-review {
    display: flex;
    justify-content: space-between;
}

.carousel-inner {
    padding: 1em;
}

.card {
    margin: 0 0.5em;
}

.carousel-control-prev,
.carousel-control-next {
    background-color: #e1e1e1;
    width: 6vh;
    height: 6vh;
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
}

/* For width >= 1100px (25% width) */
@media (min-width: 1100px) {
    .carousel-item {
        flex: 0 0 25%;
        /* 25% width */
        margin-right: 0;
        display: block;
    }

    .carousel-inner {
        display: flex;
    }
}

/* For width between 850px and 1100px (33.3333% width) */
@media (min-width: 850px) and (max-width: 1099px) {
    .carousel-item {
        flex: 0 0 33.3333%;
        /* 33.3333% width */
        margin-right: 0;
        display: block;
    }

    .carousel-inner {
        display: flex;
    }
}

/* For width between 550px and 850px (50% width) */
@media (min-width: 550px) and (max-width: 849px) {
    .carousel-item {
        flex: 0 0 50%;
        /* 50% width */
        margin-right: 0;
        display: block;
    }

    .carousel-inner {
        display: flex;
    }
}

/* For width <= 550px (0% width, items hidden or stacked) */
@media (max-width: 549px) {
    .carousel-item {
        flex: 0 0 100%;
        /* Full width or adjust as needed */
        margin-right: 0;
        display: none;
        /* Hide items if required */
    }

    .carousel-inner {
        display: flex;
    }
}

/* Ensure the carousel container can scroll horizontally */
.carousel-inner {
    display: flex;
    overflow-x: auto;
    cursor: grab;
    -ms-overflow-style: none;
    scrollbar-width: none;
    user-select: none;
}

.carousel-inner::-webkit-scrollbar {
    display: none;
}

.carousel-item {
    flex: 0 0 33.3333%;
    scroll-snap-align: center;
}