/* end homepages/2ndstyle.css */
@charset "UTF-8";
.slick-slider {
    box-sizing: border-box;
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
    -khtml-user-select: none;
    touch-action: pan-y;
    -webkit-tap-highlight-color: transparent;
}

.slick-list,
.slick-slider {
    position: relative;
    display: block;
}

.slick-list {
    overflow: hidden;
    margin: 0;
    padding: 0;
}

.slick-list:focus {
    outline: none;
}

.slick-list.dragging {
    cursor: pointer;
    cursor: hand;
}

.slick-slider .slick-list,
.slick-slider .slick-track {
    transform: translateZ(0);
}

.slick-track {
    position: relative;
    top: 0;
    left: 0;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.slick-track:after,
.slick-track:before {
    display: table;
    content: "";
}

.slick-track:after {
    clear: both;
}

.slick-loading .slick-track {
    visibility: hidden;
}

.slick-slide {
    display: none;
    float: left;
    height: 100%;
    min-height: 1px;
}

[dir="rtl"] .slick-slide {
    float: right;
}

.slick-slide img {
    display: block;
}

.slick-slide.slick-loading img {
    display: none;
}

.slick-slide.dragging img {
    pointer-events: none;
}

.slick-initialized .slick-slide {
    display: block;
}

.slick-loading .slick-slide {
    visibility: hidden;
}

.slick-vertical .slick-slide {
    display: block;
    height: auto;
    border: 1px solid transparent;
}

.slick-arrow.slick-hidden {
    display: none;
}

.slick-loading .slick-list {
    background: #fff url(/_next/static/media/ajax-loader.0b80f665.gif) 50%
        no-repeat;
}

@font-face {
    font-family: slick;
    font-weight: 400;
    font-style: normal;
    src: url(fonts/slick.eot);
    src: url(fonts/slick.eot?#iefix) format("embedded-opentype"),
        url(fonts/slick.woff) format("woff"),
        url(fonts/slick.ttf) format("truetype"),
        url(fonts/slick.svg#slick) format("svg");
}

.slick-next,
.slick-prev {
    font-size: 0;
    line-height: 0;
    position: absolute;
    top: 50%;
    display: block;
    width: 20px;
    height: 20px;
    padding: 0;
    transform: translateY(-50%);
    cursor: pointer;
    border: none;
}

.slick-next,
.slick-next:focus,
.slick-next:hover,
.slick-prev,
.slick-prev:focus,
.slick-prev:hover {
    color: transparent;
    outline: none;
    background: transparent;
}

.slick-next:focus:before,
.slick-next:hover:before,
.slick-prev:focus:before,
.slick-prev:hover:before {
    opacity: 1;
}

.slick-next.slick-disabled:before,
.slick-prev.slick-disabled:before {
    opacity: 0.25;
}

.slick-next:before,
.slick-prev:before {
    font-family: slick;
    font-size: 20px;
    line-height: 1;
    opacity: 0.75;
    color: #fff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.slick-prev {
    left: -25px;
}

[dir="rtl"] .slick-prev {
    right: -25px;
    left: auto;
}

.slick-prev:before {
    content: "←";
}

[dir="rtl"] .slick-prev:before {
    content: "→";
}

.slick-next {
    right: -25px;
}

[dir="rtl"] .slick-next {
    right: auto;
    left: -25px;
}

.slick-next:before {
    content: "→";
}

[dir="rtl"] .slick-next:before {
    content: "←";
}

.slick-dotted.slick-slider {
    margin-bottom: 30px;
}

.slick-dots {
    position: absolute;
    bottom: -25px;
    display: block;
    width: 100%;
    padding: 0;
    margin: 0;
    list-style: none;
    text-align: center;
}

.slick-dots li {
    position: relative;
    display: inline-block;
    margin: 0 5px;
    padding: 0;
}

.slick-dots li,
.slick-dots li button {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.slick-dots li button {
    font-size: 0;
    line-height: 0;
    display: block;
    padding: 5px;
    color: transparent;
    border: 0;
    outline: none;
    background: transparent;
}

.slick-dots li button:focus,
.slick-dots li button:hover {
    outline: none;
}

.slick-dots li button:focus:before,
.slick-dots li button:hover:before {
    opacity: 1;
}

.slick-dots li button:before {
    font-family: slick;
    font-size: 6px;
    line-height: 20px;
    position: absolute;
    top: 0;
    left: 0;
    width: 20px;
    height: 20px;
    content: "•";
    text-align: center;
    opacity: 0.25;
    color: #000;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.slick-dots li.slick-active button:before {
    opacity: 0.75;
    color: #000;
}
/* end homepages/2ndstyle.css */

.live-chat-btn {
    background: #5e5df0;
    border-radius: 999px;
    box-shadow: #5e5df0 0 10px 20px -10px;
    box-sizing: border-box;
    color: #ffffff;
    cursor: pointer;
    font-size: 16px;
    font-weight: 700;
    line-height: 24px;
    padding: 8px 13px;
    border: 0;
    position: fixed;
    z-index: 1050;
    bottom: 10%;
    right: 0rem;
}

.fa-comment-dots {
    font-size: 2rem;
}

.chatbox-expanded {
    transition: all 0.3s ease-in-out;
    z-index: 1050;
    position: fixed;
    bottom: 0;
    right: 0rem;
    width: 350px;
    height: 90%; /* Adjust height to 90% of the screen */
    max-height: 85%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.chatbox-expanded.hidden {
    transform: translateY(100%);
    opacity: 0;
    visibility: hidden;
}

.chatbox-expanded:not(.hidden) {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}
.chatbox-expanded .card {
    height: 100%;
}

.chatbox-messages {
    height: calc(100% - 120px); /* Subtract header and footer height */
    overflow-y: auto;
    display: flex;
    flex-direction: column-reverse; /* Ensures chat starts from the bottom */
}

.chatbox-messages::-webkit-scrollbar {
    width: 5px;
}

.chatbox-messages::-webkit-scrollbar-thumb {
    background-color: #ddd;
    border-radius: 10px;
}

.message-text {
    font-size: 0.9rem;
    line-height: 1.4;
}

#chat-field {
    font: 400 0.812rem Lato, sans-serif;
    max-width: 100%;
    width: 100%;
    min-height: 1rem;
    height: 3rem;
    max-height: 9.375rem;
    resize: none;
    outline: none;
    border: 0;
    box-sizing: border-box;
    overflow: hidden;
    padding: 0.3rem;
    margin: 0.15rem 0 0;
    background: #fff;
}

.msg-send-btn {
    padding: 0px !important;
    background: none !important;
    color: #0d6efd !important;
    border: none !important;
    font-size: 2rem !important;
    margin: 0rem 1rem !important;
}

.chatbox-expanded .flex-shrink-0 {
    width: 2rem;
    height: 2rem;
    border: solid 1px gray;
    border-radius: 100%;
    padding: 1px;
    display: flex;
    justify-content: center; /* Centers horizontally */
    align-items: center;
}

.chatbox-expanded .fit-content {
    width: fit-content;
}

#chat-close {
    font-size: 1.3rem;
    margin-right: 2px;
}

.card-img-top {
    max-height: 150px;
    object-fit: cover;
}

/* General card styling */
.course-card {
    max-width: 320px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin: 20px auto;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

/* Image section */
.card-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-bottom: 1px solid #ddd;
}

/* Content section */
.card-content {
    padding: 15px;
}

.card-tag {
    color: #ff4d4d;
    font-size: 14px;
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.card-title {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
}

.card-details {
    list-style: none;
    padding: 0;
    margin: 0 0 15px 0;
    font-size: 14px;
    color: #555;
}

.card-details li {
    margin-bottom: 5px;
}

/* Button styling */
.card-button {
    display: inline-block;
    background: #ff4d4d;
    color: #fff;
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    text-transform: uppercase;
    font-size: 14px;
    font-weight: bold;
    text-align: center;
    cursor: pointer;
    transition: background 0.3s ease;
}

.card-button:hover {
    background: #cc0000;
}

/* Responsive design */
@media (min-width: 768px) {
    .course-card {
        max-width: 400px;
    }
}

@media (min-width: 1024px) {
    .course-card {
        max-width: 450px;
    }
}

/* Search Container */
.search-container {
    position: relative;
    width: 100%;
    max-width: 400px;
    margin: 20px auto;
}

/* Search Box */
.search-box {
    display: flex;
    align-items: center;
    border: 2px solid #ddd;
    border-radius: 25px;
    padding: 5px 10px;
    background-color: white;
}

.search-input {
    flex-grow: 1;
    border: none;
    outline: none;
    font-size: 16px;
    padding: 5px;
}

.search-icon {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 18px;
}

/* Search Results */
.search-results {
    position: absolute;
    top: 45px;
    left: 0;
    width: 100%;
    background: white;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: none;
    z-index: 1000;
}

/* Result Item */
.result-item {
    display: flex;
    align-items: center;
    padding: 10px;
    cursor: pointer;
    transition: background 0.3s;
}

.result-item:hover {
    background: #eee;
}

/* Result Icon */
.result-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: white;
    font-weight: bold;
    text-align: center;
    line-height: 40px;
    margin-right: 10px;
}

.red {
    background: #e74c3c;
}

.orange {
    background: #f39c12;
}

.blue {
    background: #3498db;
}

.nav-wishlist {
    position: relative;
}

.shopping-cart {
    position: relative;
}

.red-menu-badge {
    position: absolute;
    padding: 0 5px;
    line-height: 1.7;
    width: 16px;
    height: 16px;
    font-weight: 500;
    color: white;
    border-radius: 100%;
    font-size: 10px;
    background: #ff7350;
    box-shadow: 0.5px 0.2px 1px rgba(0, 0, 0, 0.5);
    display: inline-block;
    text-align: center;
    left: 26px;
    top: 5px;
    z-index: 1;
}

.icon {
    cursor: pointer;
    float: left;
    padding: 0 5px 15px;
    border: 1px solid transparent;
}

svg.feather {
    width: 18px;
    height: 18px;
    margin: 15px 10px 0;
    color: #ff7350;
}

table tr th,
td {
    padding: 5px 10px !important;
}
