:root {
    --primary-color: var(--system_primery_color);
    --primary-dark: var(--system_primery_color);
    --text-main: #1b1b1b;
    --text-muted: #707070;
    --bg-light: #ffffff;
    --bg-soft-purple: #f3f0ff;

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-full: 50px;

    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.05);
    --shadow-medium: 0 15px 40px rgba(0, 0, 0, 0.08);
}

body {
    font-family: var(--font_family2), sans-serif !important;
    color: var(--text-main);
    background-color: var(--bg-light);
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font_family1), sans-serif !important;
    color: var(--text-main);
}

/* Global Reset */
a {
    text-decoration: none !important;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Header Styling */
.header_area {
    background: white;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    height: 85px;
    display: grid;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 10000;
}

/* Hide cluttering theme elements */
.menu_search_popup,
.slicknav_menu,
.short_curt_icons,
#sticky-header-sticky-wrapper,
.wish_cart_mobile {
    display: none !important;
}

/* Navigation Links */
.main_navigation .nav_link {
    font-weight: 600;
    font-size: 0.92rem;
    color: var(--text-main);
    padding: 10px 0;
    transition: all 0.3s;
    white-space: nowrap;
}

.main_navigation .nav_link:hover {
    color: var(--primary-color);
}

/* User Profile Dropdown */
.profile_pill_modern {
    background: #f8fafc;
    padding: 6px 15px 6px 6px;
    border-radius: 50px;
    border: 1px solid #f1f5f9;
}

.auth_dropdown_clean {
    position: absolute;
    top: calc(100% + 15px);
    right: 0;
    background: white;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15);
    border-radius: 15px;
    padding: 10px;
    min-width: 220px;
    visibility: hidden;
    opacity: 0;
    transform: translateY(15px);
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid #f1f5f9;
    z-index: 10002;
}

.user_profile_container:hover .auth_dropdown_clean {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
}

.auth_dropdown_clean a {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    color: var(--text-main);
    font-weight: 600;
    font-size: 0.85rem;
    border-radius: 10px;
}

.auth_dropdown_clean a:hover {
    background: #f3f4f6;
    color: var(--primary-color);
}

/* Banner / Hero Section - COMPACT DESIGN */
.banner_area {
    padding: 60px 0;
    min-height: 70vh;
    display: flex;
    align-items: center;
    position: relative;
    background-color: #fdfcff;
    overflow: hidden;
}

.banner_area::before,
.banner_area::after {
    content: '';
    position: absolute;
    z-index: 1;
    opacity: 0.8;
}

.banner_area::before {
    top: -10%;
    right: -10%;
    width: 60%;
    height: 120%;
    background-color: #f3f0ff;
    border-radius: 50%;
    filter: blur(40px);
}

.banner_area::after {
    bottom: -20%;
    left: -15%;
    width: 40%;
    height: 80%;
    background-color: #efeaff;
    border-radius: 50%;
    filter: blur(50px);
}

.banner_content_wrapper {
    position: relative;
    z-index: 2;
}

.banner_text .top_label {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary-color);
    background: rgba(255, 90, 31, 0.1);
    padding: 5px 15px;
    border-radius: 50px;
    margin-bottom: 20px;
    display: inline-block;
}

.banner_text h3 {
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1.15;
    color: #1b1b1b;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.banner_text p {
    font-size: 1.05rem;
    color: #4b5563 !important;
    line-height: 1.7;
    max-width: 480px;
    margin-bottom: 35px;
}

/* Feature List Styling */
.modern_check_lists {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.feature_item {
    display: flex;
    align-items: center;
    gap: 15px;
    font-weight: 600;
    color: #374151;
    font-size: 0.95rem;
}

.feature_icon_box {
    width: 30px;
    height: 30px;
    background: rgba(255, 90, 31, 0.1);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    flex-shrink: 0;
}

/* Search Box Refined */
.banner_search_box_modern {
    background: white;
    padding: 6px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    box-shadow: 0 15px 50px rgba(0, 0, 100, 0.08);
    max-width: 600px;
}

.search_input_part {
    flex: 1;
    padding: 0 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.search_input_part input {
    border: none;
    outline: none;
    padding: 10px 0;
    width: 100%;
    font-weight: 500;
    font-size: 0.9rem;
}

.search_category_part {
    padding: 0 12px;
    border-left: 1px solid #f1f1f1;
    font-weight: 600;
    color: #444;
    font-size: 0.85rem;
}

/* Visuals & Floating Cards */
.banner_img_container {
    position: relative;
    z-index: 5;
    max-width: 520px;
    margin-left: auto;
}

.main_img {
    width: 100%;
    max-height: 480px;
    object-fit: contain;
}

.stat_card {
    background: white;
    padding: 15px 20px;
    border-radius: 15px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    position: absolute;
    z-index: 10;
}

.stat_card_top {
    top: 15%;
    right: -20px;
}

.stat_card_bottom {
    bottom: 10%;
    left: -10px;
}

.stat_card .val {
    font-weight: 800;
    color: #1b1b1b;
    display: block;
    font-size: 0.9rem;
}

.stat_card .label {
    font-size: 0.7rem;
    color: #777;
    font-weight: 600;
}

/* UI Buttons */
.primary-btn {
    background: var(--primary-color);
    color: white !important;
    padding: 10px 25px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.85rem;
    border: none;
    transition: 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.primary-btn:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px var(--system_primery_color_30);
}

/* Animation Classes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeInUp 0.8s ease-out forwards;
}

@media (max-width: 991px) {
    .banner_text h3 {
        font-size: 2.5rem;
    }

    .banner_area {
        text-align: center;
    }

    .banner_text p {
        margin-left: auto;
        margin-right: auto;
    }

    .banner_search_box_modern {
        flex-direction: column;
        padding: 15px;
    }

    .search_input_part,
    .search_category_part {
        width: 100%;
        border: none;
        padding-bottom: 10px;
    }

    .stat_card {
        display: none;
    }

    .banner_img_container {
        margin: 40px auto 0;
    }
}

/* --- Course Section Modern Styles --- */
.category_pills_modern .nav-link {
    background: #f1f5f9;
    color: #475569;
    padding: 10px 22px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    border: none !important;
    transition: all 0.3s;
}

.category_pills_modern .nav-link.active {
    background: #e0f2fe !important;
    color: var(--primary-color) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.lms_course_grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    width: 100%;
    padding: 20px 0;
}

@media (max-width: 1400px) {
    .lms_course_grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 991px) {
    .lms_course_grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Modern Course Card styles */
.course_card_modern_wrapper {
    padding: 5px;
    position: relative;
    z-index: 1;
}

.modern_card {
    background: #fff;
    border-radius: 20px;
    border: 1px solid #f1f5f9;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    overflow: hidden;
    height: 100%;
}

.modern_card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08) !important;
    border-color: var(--primary-color);
}

.card_thumb_part {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
}

.card_thumb_part img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.modern_card:hover .card_thumb_part img {
    transform: scale(1.08);
}

.card_tags_part {
    position: absolute;
    bottom: 15px;
    left: 15px;
    display: flex;
    gap: 8px;
    z-index: 5;
}

.tag_badge {
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 800;
    backdrop-filter: blur(10px);
}

.level_badge {
    background: rgba(255, 255, 255, 0.9);
    color: #1e293b;
}

.price_badge {
    background: var(--primary-color);
    color: white;
}

.card_rating_badge {
    background: #fff9db;
    padding: 4px 10px;
    border-radius: 50px;
    font-size: 0.85rem;
}

.card_students_count {
    background: #f1f5f9;
    padding: 4px 10px;
    border-radius: 50px;
    font-size: 0.85rem;
    color: #475569;
}

.card_title {
    font-size: 1.15rem;
    font-weight: 800;
    color: #1e293b;
    line-height: 1.4;
}

.text-truncate-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.text-truncate-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.action_btn {
    width: 40px;
    height: 40px;
    background: #f8fafc;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #475569;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.action_btn:hover {
    background: var(--primary-color) !important;
    color: white !important;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.action_btn i {
    font-size: 1.1rem;
}

/* Modern Action Buttons */
.btn_modern_action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.3s;
    border: none;
    width: 100%;
}

.btn_buy {
    background: var(--primary-color) !important;
    color: white !important;
}

.btn_buy:hover {
    background: #0ea5e9 !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.btn_enrolled {
    background: #1e293b !important;
    color: white !important;
}

.btn_enrolled:hover {
    background: #334155 !important;
    transform: translateY(-2px);
}

.btn_view_detail {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
}

/* Premium Card Elements */
.card_meta_modern {
    font-size: 0.8rem;
    color: #64748b;
}

.meta_item_modern {
    display: flex;
    align-items: center;
}

.icon_btn_modern {
    width: 40px;
    height: 40px;
    background: #f1f5f9;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #475569;
    transition: all 0.3s;
}

.icon_btn_modern:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.icon_btn_modern.enrolled {
    background: #1e293b;
    color: white;
}

.btn_buy_modern {
    padding: 8px 20px;
    background: #1e293b;
    color: white !important;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.85rem;
    transition: all 0.3s;
}

.btn_buy_modern:hover {
    background: var(--primary-color);
    transform: translateX(3px);
}

.instructor_pill {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f8fafc;
    padding: 4px 12px 4px 4px;
    border-radius: 50px;
    border: 1px solid #f1f5f9;
}

.instructor_pill img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
}

.instructor_name {
    font-size: 0.75rem;
    font-weight: 700;
    color: #334155;
}

.extra-small {
    font-size: 0.7rem;
}

.fw-800 {
    font-weight: 800;
}

/* Hover Preview Logic and Placement */
.course_card_modern_wrapper {
    position: relative;
    z-index: 10;
    transition: z-index 0.3s;
}

.course_card_modern_wrapper:hover {
    z-index: 50;
}

.modern_hover_preview {
    position: absolute;
    top: 50%;
    width: 300px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
    padding: 20px;
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transition: all 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid #edf2f7;
    pointer-events: none;
    text-align: left;
}

.modern_hover_preview.right {
    left: 100%;
    margin-left: 10px;
    transform: translate(-10px, -50%);
}

.modern_hover_preview.left {
    right: 100%;
    margin-right: 10px;
    transform: translate(10px, -50%);
}

.course_card_modern_wrapper:hover .modern_hover_preview {
    opacity: 1;
    visibility: visible;
}

.course_card_modern_wrapper:hover .modern_hover_preview.right,
.course_card_modern_wrapper:hover .modern_hover_preview.left {
    transform: translate(0, -50%);
}

.bg-soft-primary {
    background: #e0f2fe;
}

.fs-13 {
    font-size: 13px;
}

.fs-14 {
    font-size: 14px;
}

.fs-16 {
    font-size: 16px;
}

.color-primary {
    color: var(--primary-color);
}

/* Flexbox Gap Utilities Fallback for Older Bootstrap */
.gap-1 {
    gap: 0.25rem !important;
}

.gap-2 {
    gap: 0.5rem !important;
}

.gap-3 {
    gap: 1rem !important;
}

.gap-4 {
    gap: 1.5rem !important;
}

/* Curriculum Accodion Modern Styles */
.premium_accordion_modern .card {
    border-radius: 16px !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    margin-bottom: 20px;
    border: 1px solid #f1f5f9;
}

.premium_accordion_modern .card-header .btn {
    padding: 20px;
}

.lesson_item_modern {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #f8fafc;
    transition: all 0.3s;
    background: #ffffff;
}

.lesson_item_modern:last-child {
    border-bottom: none;
}

.lesson_item_modern:hover {
    background-color: #f8fafc;
}

.lesson_icon_box_modern {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    background: #f1f5f9;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
}

.lesson_item_modern:hover .lesson_icon_box_modern {
    background: var(--primary-color);
    color: white;
    transform: scale(1.05);
}

.lesson_name_modern {
    font-size: 0.95rem;
    font-weight: 600;
    color: #1e293b;
}

.badge-preview {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    color: #10b981;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.70rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* Instructor Modern Card */
.instructor_modern_card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #f1f5f9;
    padding: 24px;
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.instructor_modern_card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.06);
    border-color: #e2e8f0;
}

.instructor_modern_img_wrapper {
    width: 140px;
    height: 140px;
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
    position: relative;
    border: 4px solid #f8fafc;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.05);
}

.instructor_modern_img_wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.instructor_modern_card:hover .instructor_modern_img_wrapper img {
    transform: scale(1.05);
}

.instructor_modern_name {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 5px;
    transition: color 0.3s;
}

.instructor_modern_card:hover .instructor_modern_name {
    color: var(--primary-color);
}

.instructor_modern_headline {
    color: #64748b;
    font-size: 0.9rem;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-grow: 1;
}

.instructor_modern_btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    background: #f8fafc;
    color: var(--primary-color) !important;
    border-radius: 50px;
    border: 1px solid #e2e8f0;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s;
    text-decoration: none !important;
    margin-top: auto;
}

.instructor_modern_btn:hover {
    background: var(--primary-color);
    color: #fff !important;
    border-color: var(--primary-color);
}

@media (max-width: 1200px) {
    .modern_hover_preview {
        display: none;
    }
}

@media (max-width: 767px) {
    .lms_course_grid {
        grid-template-columns: 1fr;
    }

    .section_title_modern h2 {
        font-size: 1.8rem !important;
    }
}