/* Genral */
/* ______________________________________________________________ */
:root {
    --primary-color: #e6b9a6;
    --secondary-color: #939185;
    --accent-color: #eeedeb;
    --text-color: #00c846;
    --background-color: #2f3645;
}
body {
    font-family: "Poppins", sans-serif;
    overflow-x: hidden;
    /* background-color: var(--accent-color); */
    /* color: var(--text-color); */
}
.default-btn {
    border: none;
    color: #2f3645;
    font-weight: 600;
    background-color: var(--primary-color);
    border-radius: 4px;
    box-shadow: inset 0 0 0 0 #2f3645;
    transition: ease-out 0.3s;
    outline: none;
    width: 150px;
    letter-spacing: 2px;
    padding: 5px;
    text-align: center;
    text-decoration: none;
}

.default-btn:hover {
    box-shadow: inset 150px 0 0 0 #2f3645;
    color: #e6b9a6;
    font-weight: 600;
}
.subscribe-btn {
    /* font-family: 'Oswald', sans-serif; */
    border: none;
    color: #e6b9a6;
    font-weight: 600;
    background-color: #2f3645;
    border-radius: 20px;
    box-shadow: inset 0 0 0 0 #e6b9a6;
    transition: ease-out 0.6s;
    outline: none;
    width: fit-content;
    letter-spacing: 2px;
    padding: 10px 30px;
    text-align: center;
    text-decoration: none;
}

.subscribe-btn:hover {
    box-shadow: inset 300px 0 0 0 #e6b9a6;
    color: #2f3645;
    font-weight: 600;
}

.name_badge {
    background-color: var(--background-color);
    color: var(--primary-color);
    padding: 7px;
    border-radius: 10px;
    font-weight: bold;
}
.flex_style {
    display: flex;
    justify-content: center;
    align-items: center;
}
.flex_style_between {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.flex_style_evenly {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    flex-wrap: wrap;
}
@media screen and (max-width: 768px) {
    .tables_cont {
        display: flex;
        flex-direction: column;
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: center;
    }
    .tables_cont div {
        display: flex;
        flex-direction: column;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        width: 40vw;
    }
    .flex_style_evenly {
        display: flex;
        flex-direction: column;
        flex-wrap: wrap;
        justify-content: space-evenly;
        align-items: center;
    }
    .flex_style_evenly div {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        width: 90%;
    }
    .card-icon-cont {
        width: 60px !important;
    }
    .flex_style_between {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        align-items: center;
    }
    .flex_style_between div {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        width: 90%;
    }
    .flex_style {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }
    .flex_style div {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        width: 90% !important;
    }
    .container {
        width: 100%;
        margin: auto;
        padding: 20px 5px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        margin-bottom: 0px;
    }
}
/* Header */
/* ______________________________________________________________ */

.all_nav_container {
    width: 90%;
    margin: auto;
    display: flex;
    padding: 5px 0;
    justify-content: space-between;
}
.home_navbar {
    background-color: var(--primary-color);
    border-bottom-right-radius: 60px;
}
.navbar_brand_cont {
    display: flex;
    justify-content: center;
    align-items: center;
}

.navbar-nav .nav-item {
    position: relative;
    margin: 0 10px;
}

.navbar-nav .link {
    position: relative;
    /* color: #333; Adjust color as needed */
    transition: color 0.3s ease;
}

.navbar-nav .link:hover {
    color: var(--background-color); /* Change to your preferred hover color */
}

/* Create the animated underline */
.navbar-nav .link::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--background-color);
    transition: width 0.3s ease, left 0.3s ease;
}

/* Animate the underline on hover */
.navbar-nav .link:hover::after {
    width: 100%;
    left: 0;
}

/* For the active link */
.navbar-nav .link.active::after {
    width: 100%;
    left: 0;
}
.login_btn {
    background-color: var(--background-color);
    color: white !important;
    padding-left: 25px !important;
    padding-right: 25px !important;
    border-radius: 20px;
    transition: all 0.3s ease;
}
.login_btn:hover {
    background-color: #4f5b75;
    border: none !important;
    color: white !important;
}

.logo_img_cont {
    width: 40px;
    height: 40px;
    border-radius: 20px;
    background-color: black;
    padding: 7px;
    margin-right: 10px;
}
.logo_img {
    width: 100%;
    height: 100%;
    /* border-radius: 20px; */
}
.navbar-brand {
    font-size: 16px !important;
    font-weight: 800 !important;
}
.nav-link {
    margin-left: 50px;
    font-weight: 600;
    color: var(--background-color);
}
.services-cont .show {
    padding: 10px;
    background-color: #eeedeb;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.services-cont .link {
    background-color: var(--accent-color);
    font-weight: bold;
}

/* Home */
/* ______________________________________________________________ */
.home_bg_cont {
    position: relative;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    margin-bottom: 100px;
}

.home_bg_cont img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

/* If you want to add overlay content */
.home_bg_cont::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3); /* Semi-dark overlay */
    z-index: 2;
}

/* Your content that will appear on top of the image */
.home_content {
    position: relative;
    z-index: 3;
    color: white; /* Text color */
    padding: 20px;
    text-align: center;
    /* Center the content vertically and horizontally */
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
}
.top_catgeory {
    width: 90%;
    margin: auto;
}
.title_cont {
    position: relative;
    width: 200px;
    margin-bottom: 100px;
}

.title_cont h2 {
    position: relative;
    padding: 5px 0;
}

.title_cont h2::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--background-color);
    width: 100%;
}

.top_cat_cont {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: var(--background-color);
    margin-bottom: 40px;
    width: 400px;
    height: 200px;
    padding: 30px;
    border-radius: 100px;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.top_cat_cont:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.15);
}

.top_catgeory a {
    text-decoration: none;
    width: 100%;
}
.top_cat_cont img {
    width: 100px;
    height: 80%;
    margin-bottom: 10px;
    transition: all 0.4s ease;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.top_cat_cont:hover img {
    transform: translateY(-15px) scale(1.1);
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.top_cat_cont h4 {
    color: var(--primary-color);
    transition: all 0.4s ease;
    position: relative;
}

.top_cat_cont:hover h4 {
    transform: translateY(10px);
    color: var(--primary-color); /* or any highlight color you prefer */
}

/* Optional: Add a subtle background effect on hover */
.top_cat_cont::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0.3) 0%,
        rgba(255, 255, 255, 0) 100%
    );
    opacity: 0;
    transition: opacity 0.4s ease;
    border-radius: 100px;
}

.top_cat_cont:hover::before {
    opacity: 1;
}

/* ______________________________________________________________ */
/* 🌟 New Hero Section Styles */
.smle-hero-section {
    position: relative;
    width: 100%;
    /* Increased height for a powerful first impression */
    min-height: 100vh;
    display: flex;
    justify-content: space-around; /* Distribute space between content and image */
    align-items: center;
    padding: 100px 5% 50px 5%; /* Adjust for fixed header */
    background-color: var(
        --background-color
    ); /* Use dark theme for high contrast */
    color: white;
    overflow: hidden; /* Important for the animation canvas */
}

/* Background Animation Layer (Placeholder for JS animation like particles.js) */
.hero-animation-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1; /* Below content */
    opacity: 0.1; /* Very subtle */
    /* Example: A simple pulsating background effect (CSS only) */
    /* animation: pulse-bg 15s infinite ease-in-out; */
}

/* @keyframes pulse-bg {
    0% { background-color: rgba(255, 255, 255, 0.05); }
    50% { background-color: rgba(255, 255, 255, 0.08); }
    100% { background-color: rgba(255, 255, 255, 0.05); }
} */

.hero-content-wrapper {
    max-width: 550px;
    z-index: 2;
    /* Initial state for entrance animation */
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInSlideUp 1s ease-out 0.3s forwards;
}

@keyframes fadeInSlideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-title {
    font-size: 3.5rem; /* Large and dominant */
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-title .highlight {
    color: var(--primary-color); /* Accentuate SMLE */
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--accent-color);
    margin-bottom: 40px;
    font-weight: 300;
}

.hero-cta-group {
    display: flex;
    gap: 20px;
    align-items: center;
}

.hero-cta-primary {
    /* Use your default-btn style, perhaps with updated colors */
    font-size: 1rem;
    padding: 12px 15px;
}

.hero-cta-secondary {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}
.hero-cta-secondary:hover {
    color: var(--accent-color);
}

/* Mockup Image/Illustration (Visually appealing) */
.hero-image-placeholder {
    width: 40%;
    max-width: 600px;
    z-index: 2;
    position: relative;
    /* CSS Animation for the image to float/breathe */
    animation: floatImage 6s ease-in-out infinite;
    opacity: 0;
    transform: scale(0.9);
    animation: fadeInScale 1s ease-out 0.6s forwards,
        floatImage 6s ease-in-out infinite 1.6s;
}

@keyframes fadeInScale {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes floatImage {
    0% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-15px) rotate(1deg);
    }
    100% {
        transform: translateY(0px) rotate(0deg);
    }
}

.mockup-img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5); /* Strong shadow for depth */
}

/* ________________________________________________________________________________________ */
/* ✅ Core Services/Categories Section */
.smle-services-section {
    padding: 80px 5%;
    text-align: center;
    background-color: var(--accent-color); /* Light section background */
}

.section-header {
    margin-bottom: 60px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--background-color);
    position: relative;
    padding-bottom: 15px;
}
/* Modern Underline Effect */
.section-title::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 60px;
    height: 4px;
    background-color: var(--primary-color);
    transform: translateX(-50%);
    border-radius: 2px;
}

.section-description {
    font-size: 1.1rem;
    color: #555;
    margin-top: 15px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(
        auto-fit,
        minmax(280px, 1fr)
    ); /* Responsive grid */
    gap: 30px;
    margin-top: 50px;
}

.service-card {
    text-decoration: none;
    background: white;
    border-radius: 15px;
    padding: 30px;
    text-align: left;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.6s cubic-bezier(0.25, 0.8, 0.25, 1); /* Keeps the hover effect smooth */
    transition-property: opacity, transform, box-shadow; /* Specify properties to transition */
    position: relative;
    /* Animation for hover */
    overflow: hidden;
    opacity: 0;
    transform: translateY(30px);
}
.service-card.is-visible {
    opacity: 1;
    transform: translateY(0); /* Move to final position */
}
.service-card:hover {
    transform: translateY(-8px); /* The hover lift */
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    /* Subtle background glow on hover */
    border: 1px solid var(--primary-color);
}

.card-icon-cont {
    width: 60px;
    height: 60px;
    background-color: var(--primary-color);
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 15px;
    transition: background-color 0.3s;
}

/* .service-card:hover .card-icon-cont {
    background-color: var(--background-color);
} */

.card-icon {
    width: 70%;
    height: 70%;
    filter: invert(1); /* Assuming your icons are dark, make them white */
}

.card-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--background-color);
    margin-bottom: 10px;
}

.card-text {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
}

.card-action-link {
    font-weight: 600;
    color: var(--background-color);
    display: inline-block;
    transition: transform 0.3s;
}

.service-card:hover .card-action-link {
    transform: translateX(5px);
    color: var(--primary-color);
}

/* ________________________________________________________________________________________ */
/* 🚀 Final Call to Action Section */
.smle-cta-banner {
    padding: 80px 5%;
    background: linear-gradient(
        135deg,
        var(--background-color),
        #4f5b75
    ); /* Gradient background */
    text-align: center;
    color: white;
}

.cta-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.cta-text {
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.cta-subscribe-btn {
    /* Modify existing subscribe-btn for this section */
    font-size: 1.1rem;
    padding: 15px 40px;
    border-radius: 30px;
}
.cta-subscribe-btn:hover {
    /* Modify existing subscribe-btn for this section */
    box-shadow: inset 300px 0 0 0 #e6b9a6;
    color: #2f3645;
    font-weight: 600;
}

/* ________________________________________________________________________________________ */
/* Media Queries (Crucial for a professional, responsive site) */
@media screen and (max-width: 992px) {
    .smle-hero-section {
        flex-direction: column;
        text-align: center;
        padding-top: 120px;
    }
    .hero-content-wrapper {
        margin-bottom: 50px;
    }
    .hero-image-placeholder {
        width: 80%;
        max-width: 400px;
    }
    .hero-cta-group {
        justify-content: center;
    }
}

@media screen and (max-width: 576px) {
    .hero-title {
        font-size: 2.5rem;
    }
    .hero-cta-group {
        flex-direction: column;
    }
    .hero-cta-primary,
    .hero-cta-secondary {
        text-align: center;
    }
}

/* Footer */
/* ________________________________________________________________________________________ */
#footer {
    background: var(--background-color);
    box-shadow: 0px 0px 12px 0px rgba(0, 0, 0, 0.1);
    padding: 40px 0;
    color: var(--primary-color);
    font-size: 14px;
    /* height: 60vh; */
}

#footer .footer-cont {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
}
#footer a {
    text-decoration: none;
    /* margin-bottom: 30px; */
}
#footer li {
    margin-bottom: 10px;
}
.footer_container {
    width: 70%;
    margin: auto;
    padding: 20px;
}
/* Default Pages */
/* ________________________________________________________________________________________ */

.pages_big_cont {
    width: 90%;
    margin: auto;
    padding: 20px;
    margin-top: 120px;
}
.pages_title_cont {
    /* width: 100%; */
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
    background-color: #ffffff;
    box-shadow: 0 0 20px var(--primary-color);
    width: fit-content;
    margin: auto;
    margin-top: 100px;
    margin-bottom: 30px;
}

.container {
    width: 90%;
    margin: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-bottom: 0px;
}
.container a {
    text-decoration: none;
}
/* Calculator Pages */
/* ________________________________________________________________________________________ */

.page_container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    margin-top: 120px;
}

.calc_cont {
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 20px;
    width: 80vw;
}

.calculator-section {
    margin-bottom: 25px;
    /* padding-bottom: 15px; */
    border-bottom: 1px solid #eee;
}

.input-group {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    /* margin-bottom: 5px; */
}

.input-label,
.input-field,
.input-info {
    padding: 5px 0;
}
.input-info p {
    margin-bottom: 0;
}

.input-field input {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 20px;
    background-color: #fbfbfb;
    text-align: center;
}

.input-field input:focus {
    outline: none;
    border: 2px solid #e6b9a6 !important;
    box-shadow: 0 0 10px #eeedeb !important;
}

.cv-items {
    list-style-type: none;
    padding-left: 0;
}

.cv-item {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.cv-item label {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.cv-item input[type="checkbox"] {
    margin-right: 10px;
    width: 18px;
    height: 18px;
}

.calculator-actions {
    text-align: center;
    margin-top: 25px;
}

.calculate-btn {
    background-color: #e6b9a6;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

.calculate-btn:hover {
    background-color: #d8a895;
}

.result-section {
    text-align: center;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 5px;
    margin-top: 20px;
}

#totalScore {
    color: #e6b9a6;
    font-weight: bold;
    font-size: 24px;
}

@media screen and (min-width: 992px) {
    .calc_cont {
        border: 1px solid #ddd;
        border-radius: 5px;
        padding: 20px;
        width: 800px;
    }
}
/* Packages Page */
/* ________________________________________________________________________________________ */

.plan_cont {
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: center;
    background-color: var(--background-color);
    margin-bottom: 40px;
    width: 450px;
    height: 400px;
    padding: 30px;
    border-radius: 30px;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
.plan_cont h5,
.plan_cont li,
.plan_cont h6 {
    color: white;
}
.plan_title_cont {
    width: 100%;
    display: flex;
    margin-bottom: 10px;
}
.plan_price_cont {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: end;
    align-items: end;
    margin-bottom: 10px;
}
.plan_cont h4 {
    background-color: var(--primary-color);
    color: var(--background-color);
    padding: 3px 30px;
    border-radius: 30px;
    font-weight: bold;
}
.plan_cont:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.15);
}
.plan_cont::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0.3) 0%,
        rgba(255, 255, 255, 0) 100%
    );
    opacity: 0;
    transition: opacity 0.4s ease;
    border-radius: 30px;
}

.plan_cont:hover::before {
    opacity: 1;
}
.container a {
    text-decoration: none;
}
@media screen and (max-width: 500px) {
    .flex_style_evenly div {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        width: 100%;
    }
}

/* CheckOut Pages */
/* ________________________________________________________________________________________ */

.check_out_cont {
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 20px;
    width: 80vw;
}
.check_out_cont h4 {
    position: relative;
    padding: 5px 0;
    width: fit-content;
    font-weight: bold;
}

.check_out_cont h4::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--background-color);
    width: 100%;
    /* margin-bottom: 10px; */
}
.code_actions {
    text-align: center;
    margin-top: 25px;
}

.code-btn {
    background-color: #cca392;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

.code-btn:hover {
    background-color: #a88172;
}
.plan_value {
    margin-right: 30px;
}
.plan_key {
    margin-left: 30px;
}
#payForm {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
}
@media screen and (min-width: 992px) {
    .check_out_cont {
        border: 1px solid #ddd;
        border-radius: 5px;
        padding: 20px;
        width: 800px;
    }
}
@media screen and (max-width: 500px) {
    #payForm {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }
    .plan_key {
        margin-left: 0px !important;
    }
}

/* Chapter Pages */
/* ________________________________________________________________________________________ */

.chapters_cont {
    width: 100%;
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    margin-bottom: 50px;
}
.chapter_cont {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 30%;
}
.video_cont {
    display: flex;
    justify-content: space-around;
    align-items: center;
    background-color: var(--primary-color);
    padding: 10px 20px;
    border-radius: 20px;
    width: 200px;
}
.video_cont i {
    font-size: 30px;
}

/* q bank */
/* _______________________________________________________________________________________________________________________ */
.q_bank_title_cont {
    position: relative;
    width: 235px;
    margin-bottom: 30px;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

.q_bank_title_cont h2 {
    position: relative;
    padding: 5px 0;
}

.q_bank_title_cont h2::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--background-color);
    width: 100%;
}
.r_exam_title_cont {
    position: relative;
    width: 277px;
    margin-bottom: 30px;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

.r_exam_title_cont h2 {
    position: relative;
    padding: 5px 0;
}

.r_exam_title_cont h2::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--background-color);
    width: 100%;
}
.plan_featurs li {
    list-style-type: none;
}
.q_denided_cont {
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 20px;
    width: 80vw;
    box-shadow: 0 0 10px #e6b9a6;
}
.q_bank_year_month_cont {
    width: 100%;
    display: flex;
    justify-content: space-around;
    align-items: center;
    margin-bottom: 20px;
}
.q_bank_year_month_cont div {
    width: 30%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-left: 10px;
}
.q_bank_year_month_cont div select {
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 20px;
    background-color: #fbfbfb;
    text-align: center;
    width: 100%; /* Make select fill its container */
}

/* Focus style for select elements */
.q_bank_year_month_cont div select:focus {
    outline: none;
    border: 2px solid #e6b9a6 !important;
    box-shadow: 0 0 10px #eeedeb !important;
}

/* Optional: Style for options */
.q_bank_year_month_cont div select option {
    padding: 8px;
}
.q_bank_year_month_cont div select option:hover {
    background-color: #e6b9a6 !important;
    color: white;
}

.qBank_form_title {
    position: relative;
    width: fit-content;
    margin-bottom: 20px;
    width: 100%;
}

.qBank_form_title h2 {
    position: relative;
    padding: 5px 0;
}

.qBank_form_title h2::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--background-color);
    width: 100%;
}
/* Speciality Checkboxes */
.q_bank_speciality {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 20px;
}

.speciality-radio {
    position: relative;
    width: calc(33.333% - 10px);
    margin-bottom: 15px;
}

.speciality-radio input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.speciality-radio label {
    display: flex;
    align-items: center;
    padding: 15px;
    background-color: #f8f9fa;
    border: 2px solid #dee2e6;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.speciality-radio .radio-icon {
    display: inline-block;
    width: 20px;
    height: 20px;
    margin-right: 10px;
    border: 2px solid #6c757d;
    border-radius: 50%;
    position: relative;
    transition: all 0.3s ease;
}

.speciality-radio input[type="radio"]:checked + label {
    background-color: #e6b9a6;
    border-color: #e6b9a6;
    color: white;
}
.categories_active {
    background-color: #e6b9a6;
    border-color: #e6b9a6;
    color: white;
}

.speciality-radio input[type="radio"]:checked + label .radio-icon {
    border-color: white;
    background-color: white;
}

.speciality-radio input[type="radio"]:checked + label .radio-icon::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 10px;
    height: 10px;
    background-color: #e6b9a6;
    border-radius: 50%;
}

.speciality-radio label:hover {
    border-color: #e6b9a6;
}

.select-all-cont {
    margin-top: 8px;
    display: flex;
    align-items: center;
    font-size: 0.9em;
}

.select-all-cont input[type="checkbox"] {
    margin-right: 5px;
}

/* Subcategories Selection */
.q_bank_subspeciality {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.subspeciality-checkbox {
    position: relative;
    width: calc(33.333% - 10px);
}
.subspeciality-checkbox input[type="checkbox"] {
    position: absolute;
    opacity: 0;
}

.subspeciality-checkbox label {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    background-color: white;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.subspeciality-checkbox .checkbox-icon {
    display: inline-block;
    width: 18px;
    height: 18px;
    margin-right: 10px;
    border: 2px solid #6c757d;
    border-radius: 4px;
    position: relative;
    transition: all 0.3s ease;
}

.subspeciality-checkbox input[type="checkbox"]:checked + label {
    background-color: #e6b9a6;
    border-color: #e6b9a6;
    color: white;
}

.subspeciality-checkbox input[type="checkbox"]:checked + label .checkbox-icon {
    border-color: white;
    background-color: white;
}

.subspeciality-checkbox
    input[type="checkbox"]:checked
    + label
    .checkbox-icon::after {
    content: "✓";
    position: absolute;
    top: -2px;
    left: 2px;
    color: #e6b9a6;
    font-size: 14px;
}

.subspeciality-checkbox label:hover {
    border-color: #e6b9a6;
}

/* ... (keep your existing checkbox styles) ... */

/* Selected Subcategories Display */
.selected-subspecialities {
    margin-top: 15px;
}

.selected-subcategories-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.selected-subcategory {
    display: flex;
    align-items: center;
    padding: 8px 15px;
    background-color: #e6b9a6;
    color: white;
    border-radius: 20px;
    font-size: 0.9em;
}

.remove-subcategory {
    margin-left: 8px;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 1.2em;
    line-height: 1;
    padding: 0 0 2px 5px;
}

.remove-subcategory:hover {
    color: #f8f9fa;
}

.subtitle {
    color: #6c757d;
    font-size: 0.9em;
    margin-top: 5px;
}
/* Select All Button Styles */
.select-all-cont {
    display: flex;
    align-items: center;
}

.select-all-btn {
    display: flex;
    align-items: center;
    padding: 8px 15px;
    background-color: #f8f9fa;
    border: 2px solid #dee2e6;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9em;
    margin-left: 15px;
}

.select-all-btn:hover {
    border-color: #e6b9a6;
}

.select-all-btn .checkbox-icon {
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-right: 8px;
    border: 2px solid #6c757d;
    border-radius: 4px;
    position: relative;
    transition: all 0.3s ease;
}

#select_all_active:checked + .select-all-btn {
    background-color: #e6b9a6;
    border-color: #e6b9a6;
    color: white;
}

#select_all_active:checked + .select-all-btn .checkbox-icon {
    border-color: white;
    background-color: white;
}

#select_all_active:checked + .select-all-btn .checkbox-icon::after {
    content: "✓";
    position: absolute;
    top: -3px;
    left: 1px;
    color: #e6b9a6;
    font-size: 12px;
}
.q-form-submit {
    margin-top: 40px;
    text-align: center;
}

.q-form-submit .btn {
    background-color: #e6b9a6;
    border-color: #e6b9a6;
    padding: 12px 30px;
    font-size: 18px;
    border-radius: 30px;
}

.q-form-submit .btn:hover {
    background-color: #d4a592;
    border-color: #d4a592;
}
.btn-primary:disabled {
    background-color: #cccccc !important;
    border-color: #cccccc !important;
    cursor: not-allowed;
    opacity: 0.7;
}
.speciality-radio input[type="radio"]:checked + label,
.categories_active {
    background-color: #e6b9a6 !important;
    border-color: #e6b9a6 !important;
    color: white !important;
}

.speciality-radio input[type="radio"]:checked + label .radio-icon,
.categories_active .radio-icon {
    border-color: white !important;
    background-color: white !important;
}

.speciality-radio input[type="radio"]:checked + label .radio-icon::after,
.categories_active .radio-icon::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 10px;
    height: 10px;
    background-color: #e6b9a6;
    border-radius: 50%;
}

@media screen and (min-width: 992px) {
    .q_denided_cont {
        border: 1px solid #ddd;
        border-radius: 5px;
        padding: 20px;
        width: 600px;
    }
}
@media screen and (max-width: 992px) {
    .speciality-radio {
        position: relative;
        width: calc(50% - 10px);
        margin-bottom: 15px;
    }
    .speciality-radio label {
        width: 90%;
    }
    .q_bank_speciality {
        justify-content: space-between;
        flex-wrap: wrap;
    }
    .subspeciality-checkbox {
        position: relative;
        width: calc(50% - 10px);
    }
}
@media screen and (max-width: 500px) {
    .speciality-radio {
        position: relative;
        width: calc(100% - 10px);
        margin-bottom: 15px;
    }
    .speciality-radio label {
        width: 100%;
    }
    .q_bank_year_month_cont div {
        width: 49%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        margin-left: 0px;
    }
    .subspeciality-checkbox {
        position: relative;
        width: calc(100% - 10px);
    }
    .selecAll_cont {
        flex-direction: column;
    }
}

/* Q_Bank_Questions */
/* ___________________________________________________________________________ */

.quiz-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.quiz-header {
    width: 100%;
    background: white;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
}
.progress-wrapper {
    width: 20%;
}

.progress-container {
    position: relative;
    height: 32px;
    background-color: #f5f5f5;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.progress-background {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1; /* Below progress bar */
}

.progress-bar {
    position: relative;
    height: 100%;
    width: 0%;
    background: linear-gradient(to right, #e6b9a6, #d4a592);
    border-radius: 16px;
    transition: width 0.5s cubic-bezier(0.65, 0, 0.35, 1);
    z-index: 2; /* Above background */
}

.question-counter {
    color: #666; /* Default color when progress is low */
    font-weight: 600;
    font-size: 14px;
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.8);
    mix-blend-mode: multiply; /* Makes text visible on both colors */
}

.question-card {
    background: white;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}
.question-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}
.question-card-title h4 {
    position: relative;
    padding: 5px 0;
    width: fit-content;
    font-weight: bold;
    margin-bottom: 30px;
}

.question-card-title h4::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--background-color);
    width: 100%;
}
.question-card-icons {
    display: flex;
    gap: 15px;
}
.question-card-icons i {
    /* color: var(--primary-color); */
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}
.question-card-icons i:hover {
    transform: scale(1.1);
}
/* Hint tooltip styles */
.hint-container {
    position: relative;
    display: inline-block;
}

.hint-tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #ffc107;
    color: black;
    padding: 10px;
    border-radius: 5px;
    width: 250px;
    font-size: 14px;
    z-index: 100;
    display: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    animation: fadeIn 0.3s ease;
    margin-bottom: 10px;
}

.hint-tooltip:after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #ffc107 transparent transparent transparent;
}

/* Make sure the hint icon is visible */
.hint-icon {
    color: #ffc107; /* yellow color for the bulb */
    cursor: pointer;
}

.favorite-container {
    position: relative;
    display: inline-block;
}

.favorite-tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: gold; /* Gold color to match the star */
    color: #333; /* Dark text for better contrast */
    padding: 8px 12px;
    border-radius: 5px;
    width: 220px;
    font-size: 13px;
    font-weight: 500;
    z-index: 100;
    display: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    animation: fadeIn 0.3s ease;
    margin-bottom: 10px;
    text-align: center;
}

.favorite-tooltip:after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #ffc107 transparent transparent transparent;
}

.notes-container {
    position: relative;
    display: inline-block;
}

.notes-tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #e6b9a6; /* Nice blue color */
    color: white;
    padding: 8px 12px;
    border-radius: 5px;
    width: 220px;
    font-size: 13px;
    font-weight: 500;
    z-index: 100;
    display: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    animation: fadeIn 0.3s ease;
    margin-bottom: 10px;
    text-align: center;
}

.notes-tooltip:after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #e6b9a6 transparent transparent transparent;
}

.notes-icon {
    color: #e6b9a6; /* Matching blue color */
    cursor: pointer;
    transition: all 0.2s ease;
}

.notes-icon:hover {
    transform: scale(1.1);
}
/* Notes modal styles */
.notes-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.notes-modal-content {
    background: white;
    padding: 20px;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
}

.notes-modal textarea {
    width: 100%;
    min-height: 150px;
    margin: 10px 0;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}
.notes-modal textarea:focus {
    border: 1px solid #e6b9a6 !important;
    border-radius: 4px;
}

.notes-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.question-text {
    font-size: 1.1rem;
    margin-bottom: 20px;
    font-weight: 500;
    line-height: 1.5;
}

.question-image {
    margin-bottom: 20px;
    text-align: center;
}

.question-image img {
    max-width: 100%;
    max-height: 300px;
    border-radius: 5px;
}
.explanation-image {
    margin-bottom: 20px;
    text-align: center;
    margin-top: 20px;
}

.explanation-image img {
    max-width: 100%;
    max-height: 300px;
    border-radius: 5px;
}

.options-list {
    margin-bottom: 20px;
}

.option-item {
    margin-bottom: 10px;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.option-item:hover:not(.selected) {
    background-color: #f5f5f5;
}

.option-item.correct {
    background-color: #4caf50;
    border-color: #4caf50;
    color: white;
    animation: correctAnswer 0.5s ease;
}
.option-item.correct::after {
    content: " ✓";
    font-weight: bold;
}

.option-item.incorrect {
    background-color: #f44336;
    border-color: #f44336;
    color: white;
    animation: incorrectAnswer 0.5s ease;
}

.option-item.disabled {
    pointer-events: none;
    opacity: 0.7;
}

/* Add to your existing quiz-navigation styles */
.quiz-navigation {
    display: flex;
    justify-content: space-between;
    gap: 10px; /* Adds space between buttons */
    margin-top: 30px;
}

#exitQuizBtn {
    margin-left: auto; /* Pushes it to the right */
    background-color: #dc3545;
    border-color: #dc3545;
}

#exitQuizBtn:hover {
    background-color: #c82333;
    border-color: #bd2130;
}
@keyframes correctAnswer {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes incorrectAnswer {
    0% {
        transform: translateX(0);
    }
    20% {
        transform: translateX(-10px);
    }
    40% {
        transform: translateX(10px);
    }
    60% {
        transform: translateX(-10px);
    }
    80% {
        transform: translateX(10px);
    }
    100% {
        transform: translateX(0);
    }
}

.explanation {
    margin-top: 20px;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 5px;
    display: none;
    margin-bottom: 20px;
}

.reveal-switch {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    user-select: none;
}

.switch-label {
    font-weight: 500;
    color: #555;
}

#revealAllToggle {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}

.slider {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
    background-color: #ccc;
    border-radius: 24px;
    transition: 0.4s;
}

.slider:before {
    content: "";
    position: absolute;
    height: 16px;
    width: 16px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    border-radius: 50%;
    transition: 0.4s;
}

#revealAllToggle:checked + .slider {
    background-color: #e6b9a6;
}

#revealAllToggle:checked + .slider:before {
    transform: translateX(26px);
}

#revealAllToggle:focus + .slider {
    box-shadow: 0 0 1px #e6b9a6;
}
.playlist-container {
    position: relative;
    display: inline-block;
}

.playlist-tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #6c5ce7; /* Purple color */
    color: white;
    padding: 8px 12px;
    border-radius: 5px;
    width: 180px;
    font-size: 13px;
    font-weight: 500;
    z-index: 100;
    display: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    animation: fadeIn 0.3s ease;
    margin-bottom: 10px;
    text-align: center;
}

.playlist-tooltip:after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #6c5ce7 transparent transparent transparent;
}

.playlist-icon {
    color: #6c5ce7;
    cursor: pointer;
    transition: all 0.2s ease;
}

.playlist-icon:hover {
    transform: scale(1.1);
}

/* Playlist modal styles */
.playlist-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.playlist-modal-content {
    background: white;
    padding: 20px;
    border-radius: 8px;
    width: 90%;
    max-width: 750px;
}

.playlist-list {
    max-height: 300px;
    overflow-y: auto;
    margin: 15px 0;
}

.playlist-item {
    padding: 10px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    transition: background 0.2s;
}

.playlist-item:hover {
    background: #f5f5f5;
}

.playlist-item.active {
    background: #e6e6fa;
    font-weight: bold;
}

.new-playlist-input {
    margin-top: 15px;
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
}

.new-playlist-input input {
    flex: 1;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.no-playlists-message {
    color: #666;
    font-style: italic;
    margin-bottom: 15px;
}

.playlist-list.empty {
    background: #f9f9f9;
    border: 1px dashed #ddd;
    border-radius: 4px;
    padding: 20px;
    text-align: center;
}

.empty-playlist {
    color: #888;
    font-style: italic;
}
.playlist-item.has-question {
    opacity: 0.7;
    background-color: #f5f5f5;
}

.already-added {
    color: #4caf50;
    font-size: 0.8em;
    margin-left: 8px;
    font-style: italic;
}

.playlist-item:not(.has-question):hover {
    background-color: #f0f0f0;
    cursor: pointer;
}
.note-indicator {
    background: rgba(0, 200, 70, 0.1);
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
    transition: all 0.3s;
}

.note-indicator:hover {
    background: rgba(0, 200, 70, 0.2);
    transform: scale(1.05);
}

.note-indicator i {
    margin-right: 5px;
}

#break-timer {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    color: white;
}

.break-container {
    text-align: center;
    padding: 30px;
    background: #222;
    border-radius: 10px;
    max-width: 500px;
    width: 90%;
}

.timer-display {
    font-size: 3rem;
    font-weight: bold;
    margin: 20px 0;
    color: #00c846;
}

#end-break-btn {
    background: #00c846;
    border: none;
    padding: 10px 30px;
    font-size: 1.2rem;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
}

#end-break-btn:hover {
    background: #00a838;
}
