/* Midnight Ocean Premium Dark Theme */
.dark-theme {
    /* Core palette */
    --bg-dark-midnight: #0F0715;
    --bg-dark-slate: #181223;
    --text-main: #E2E8F0;
    --text-muted: #94A3B8;
    --border-subtle: rgba(255, 255, 255, 0.08);
    --glass-bg: rgba(255, 255, 255, 0.03);

    /* Variable mapping for existing system */
    --bg-white: var(--bg-dark-midnight);
    --bg-white-2: var(--bg-dark-slate);
    --bg-white-3: var(--text-main);
    --bg-white-4: var(--bg-dark-slate);
    --bg-white-5: var(--bg-dark-slate);
    --bg-white-7: var(--bg-dark-midnight);

    --color-1: var(--text-main);
    --color-2: var(--bg-dark-midnight);
    --color-3: var(--text-main);
    --color-4: #DC673B;
    --color-6: var(--text-main);
    --color-7: var(--bg-dark-slate);
    --color-9: #fff;
    --color-10: var(--text-main);
    --color-11: var(--text-muted);
    --color-12: #DC673B3a;
    --color-13: var(--text-main);
    --color-14: var(--text-main);

    --border-color: var(--border-subtle);
    --hover-color: rgba(255, 255, 255, 0.05);
    --hover-color-2: var(--bg-dark-slate);

    /* Specific Home Section Overrides */
    background-color: var(--bg-dark-midnight);
    color: var(--text-main);
}

/* Theme Toggle Visibility */
.dark-theme .dark-10-none {
    display: none !important;
}

.dark-theme .light-10-none {
    display: inline-block !important;
}

body:not(.dark-theme) .light-10-none {
    display: none !important;
}

body:not(.dark-theme) .dark-10-none {
    display: inline-block !important;
}

.menu_wisth_tgl {
    cursor: pointer;
}

/* Hero Redesign Section */
.hero-redesign {
    position: relative;
    min-height: 650px;
    display: flex;
    align-items: center;
    color: #fff;
    border-radius: 24px;
    margin: 20px 50px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.hero-bg-zoom {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle at 20% 50%, rgba(220, 103, 59, 0.15), transparent 40%),
        linear-gradient(to right, rgba(0, 0, 0, 0.9), rgba(15, 7, 21, 0.4)),
        url('../image/law-hero.png');
    background-size: cover;
    background-position: center;
    animation: kenBurns 30s ease-in-out infinite alternate;
    z-index: -1;
}

@keyframes kenBurns {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.1);
    }
}

.hero-content-wrapper {
    background: rgba(15, 7, 21, 0.75);
    backdrop-filter: blur(15px);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.hero-title {
    font-size: 3.8rem;
    line-height: 1.1;
    background: linear-gradient(135deg, #fff 30%, #DC673B 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 10px 20px rgba(220, 103, 59, 0.2);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.85) !important;
    max-width: 600px;
}

/* Animations */
.reveal-up {
    opacity: 0;
    transform: translateY(30px);
    animation: revealUp 0.8s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

.delay-3 {
    animation-delay: 0.6s;
}

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

.animate-float {
    animation: floating 3s ease-in-out infinite;
}

@keyframes floating {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* Featured Courses Hero Enhancement */
.hero-course-stack {
    perspective: 1000px;
}

.hero-course-card {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    border-radius: 16px !important;
    background: rgba(255, 255, 255, 0.05) !important;
    line-height: 1.6;
    color: var(--hero-text-muted);
    max-width: 580px;
    margin-bottom: 40px;
    font-weight: 300;
}

/* --- BUTTONS --- */
.hero-btn-group {
    display: flex;
    gap: 16px;
    align-items: center;
}

.btn-premium-primary {
    background: linear-gradient(135deg, var(--hero-orange) 0%, #E05D26 100%);
    color: #fff !important;
    padding: 16px 36px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1.05rem;
    letter-spacing: 0.3px;
    border: none;
    box-shadow: 0 10px 30px rgba(255, 122, 61, 0.3);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn-premium-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.btn-premium-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 40px rgba(255, 122, 61, 0.4);
}

.btn-premium-primary:hover::before {
    left: 100%;
}

.btn-premium-glass {
    background: rgba(255, 255, 255, 0.05);
    color: #fff !important;
    padding: 16px 32px;
    border-radius: 12px;
    font-weight: 500;
    font-size: 1.05rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.btn-premium-glass:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* --- 3D FLOATING CARDS --- */
.hero-3d-scene {
    position: relative;
    height: 600px;
    perspective: 2000px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-floating-stack {
    position: relative;
    width: 380px;
    height: 480px;
    /* Fixed height for the window */
    overflow-y: hidden;
    /* Default: JS handles scroll, but allow override on hover */
    overflow-x: hidden;
    transform-style: preserve-3d;
    transform: rotateY(-15deg) rotateX(5deg);
    padding-right: 5px;
    /* Prevent content shift when scrollbar appears */
}

/* On hover, allow manual scrolling */
.hero-floating-stack:hover {
    overflow-y: auto;
}

.hero-scroll-wrapper {
    /* CSS animation removed for JS hybrid control */
    transform: translateZ(0);
}

/* Custom Scrollbar Styling (Minimalist) */
.hero-floating-stack::-webkit-scrollbar {
    width: 6px;
    display: block;
    /* Ensure it can be seen on hover */
}

.hero-floating-stack::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 4px;
}

.hero-floating-stack::-webkit-scrollbar-thumb {
    background: rgba(255, 122, 61, 0.3);
    border-radius: 4px;
}

.hero-floating-stack::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 122, 61, 0.6);
}

.card-3d-item {
    background: rgba(22, 14, 38, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 24px;
    margin-bottom: 20px;
    /* Space between cards */
    backdrop-filter: blur(20px);
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
    transform: translateZ(0);
    /* Fix for 3D context */
}

/* Hover Effect for 3D Cards */
.card-3d-item:hover {
    transform: translateZ(20px) scale(1.02);
    /* Reduced movement for list stability */
    background: rgba(28, 18, 48, 0.95);
    border-color: rgba(255, 122, 61, 0.4);
    box-shadow:
        0 30px 60px rgba(0, 0, 0, 0.6),
        0 0 30px rgba(255, 122, 61, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    z-index: 10;
}

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

.card-3d-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
}

.card-badge-inline {
    display: inline-block;
    background: rgba(255, 122, 61, 0.2);
    color: #FF7A3D !important;
    /* Explicit vibrant orange */
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid rgba(255, 122, 61, 0.2);
    /* No absolute positioning */
}

.card-info-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 5px;
    line-height: 1.4;
}

/* Phase 16: Intro Lesson Styles */
.intro-lesson-section {
    position: relative;
    padding: 80px 0;
    overflow: hidden;
}

.intro-text-wrapper {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s ease-out;
}

.intro-text-wrapper.reveal-active {
    opacity: 1;
    transform: translateX(0);
}

.intro-subtitle {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--theme-color) !important;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.intro-title {
    font-size: 2.5rem;
    line-height: 1.2;
    background: linear-gradient(to right, #ffffff, #e0e0e0);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.intro-description {
    font-size: 1.1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.7) !important;
}

.intro-video-card {
    position: relative;
    height: 400px;
    border-radius: 20px;
    background-size: cover;
    background-position: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.intro-video-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(255, 122, 61, 0.2);
    border-color: var(--theme-color);
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.6));
    transition: background 0.3s ease;
}

.intro-video-card:hover .video-overlay {
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.4));
}

.play-button-wrapper {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2;
}

.play-button {
    width: 70px;
    height: 70px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    font-size: 24px;
    transition: all 0.3s ease;
}

.intro-video-card:hover .play-button {
    background: var(--theme-color);
    border-color: var(--theme-color);
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(255, 122, 61, 0.6);
}

/* Modal Styles */
.custom-video-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.custom-video-modal.active {
    opacity: 1;
    pointer-events: all;
}

.modal-content-wrapper {
    position: relative;
    width: 90%;
    max-width: 1000px;
    aspect-ratio: 16/9;
    background: #000;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.custom-video-modal.active .modal-content-wrapper {
    transform: scale(1);
}

.close-modal-btn {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: #fff;
    font-size: 32px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-modal-btn:hover {
    color: var(--theme-color);
}

/* --- ANIMATIONS --- */
@keyframes kenBurns {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.15);
    }
}

@keyframes drift {
    from {
        background-position: 0 0;
    }

    to {
        background-position: 100% 100%;
    }
}

@keyframes floatScene {

    0%,
    100% {
        transform: rotateY(-15deg) rotateX(5deg) translateY(0);
    }

    50% {
        transform: rotateY(-12deg) rotateX(2deg) translateY(-20px);
    }
}

@keyframes revealUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

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

@keyframes pulseGlow {

    0%,
    100% {
        text-shadow: 0 0 10px rgba(255, 122, 61, 0.2);
        opacity: 1;
    }

    50% {
        text-shadow: 0 0 20px rgba(255, 122, 61, 0.6);
        opacity: 0.7;
    }
}

.reveal-up {
    opacity: 0;
    animation: revealUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.delay-100 {
    animation-delay: 0.1s;
}

.delay-200 {
    animation-delay: 0.2s;
}

.delay-300 {
    animation-delay: 0.3s;
}

.delay-400 {
    animation-delay: 0.4s;
}

.delay-500 {
    animation-delay: 0.5s;
}

/* Responsive */
@media (max-width: 991px) {
    .hero-redesign {
        min-height: auto;
        padding: 60px 0 80px 0;
        text-align: center;
    }

    .hero-title-main {
        font-size: 2.8rem;
    }

    .hero-subtext {
        margin: 0 auto 30px auto;
    }

    .hero-btn-group {
        justify-content: center;
    }

    .hero-3d-scene {
        height: 400px;
        margin-top: 40px;
        perspective: none;
    }

    .hero-floating-stack {
        transform: none;
        animation: none;
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
    }

    .card-3d-item:hover {
        transform: translateY(-5px);
    }
}

/* Banner Section */

/* Course Cards */
.dark-theme .courses-card-body {
    background-color: var(--bg-dark-slate);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    overflow: hidden;
    display: block;
}

.dark-theme .courses-card-body:hover {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: var(--color-4);
}

.dark-theme .courses-text h5 {
    color: var(--text-main);
}

.dark-theme .courses-text p {
    color: var(--text-muted);
}

.dark-theme .courses-price-border {
    border-top: 1px solid var(--border-subtle);
}

.dark-theme .courses-price-left h5 {
    color: var(--text-main);
}

.dark-theme .courses-price-right p {
    color: var(--text-muted);
}

/* Category Cards */
.dark-theme .category-product {
    background-color: var(--bg-dark-slate);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
}

.dark-theme .category-product:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

/* Popover Content */
.dark-theme .webui-popover-content {
    background-color: var(--bg-dark-slate);
    color: var(--text-main);
}

.dark-theme .course-popover-content {
    background-color: var(--bg-dark-slate);
    color: var(--text-main);
    padding: 15px;
    border-radius: 8px;
}

.dark-theme .course-title a {
    color: var(--text-main);
}

.dark-theme .course-meta span {
    color: var(--text-muted);
}

.dark-theme .course-subtitle {
    color: var(--text-muted);
}

.dark-theme .will-learn li {
    color: var(--text-muted);
}

.dark-theme .popover-btns .purchase-btn {
    background-color: var(--color-4);
    color: #fff;
}

/* Utility Class Overrides */
.dark-theme .text-black,
.dark-theme .text-dark {
    color: var(--text-main) !important;
}

.dark-theme .offcanves-profile .user-details p {
    color: var(--text-muted) !important;
}

.dark-theme .text-muted {
    color: var(--text-muted) !important;
}

.dark-theme .bg-white {
    background-color: var(--bg-dark-midnight) !important;
}

.dark-theme .bg-light {
    background-color: var(--bg-dark-slate) !important;
    color: var(--text-main) !important;
}

/* Headers & Navigation */
.dark-theme .sub-header {
    background-color: var(--bg-dark-midnight);
    border-bottom: 1px solid var(--border-subtle);
}

.dark-theme .menubar {
    background-color: var(--bg-dark-midnight);
    border-bottom: 1px solid var(--border-subtle);
}

.dark-theme .navbar Hover,
.dark-theme .menu_pro_tgl_bg,
.dark-theme .menu_pro_wish,
.dark-theme .menu_pro_cart {
    background-color: var(--bg-dark-slate);
    border: 1px solid var(--border-subtle);
    color: var(--text-main);
}

.dark-theme .menu_pro_tgl_bg ul li:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.dark-theme .menu_pro_tgl_bg p {
    color: var(--text-main);
}

/* Header & Navbar Width Refinements */
.header-stretched {
    max-width: 100% !important;
    width: 100% !important;
}

@media (min-width: 1200px) {
    .header-stretched {
        padding-left: 50px !important;
        padding-right: 50px !important;
    }
}

/* Footer */
.dark-theme .footer {
    background-color: #08040C;
    /* Deepest blue-black */
    padding: 60px 0;
    border-top: 1px solid var(--border-subtle);
    color: var(--text-main);
}

.dark-theme .footer h1 {
    color: var(--text-main);
}

.dark-theme .footer ul li a {
    color: var(--text-muted);
}

.dark-theme .footer ul li a:hover {
    color: var(--color-4);
}

.dark-theme .footer p {
    color: var(--text-muted);
}

/* Newsletter Section */
.dark-theme .lattest-news {
    background-color: var(--bg-dark-slate);
    border: 1px solid var(--border-subtle);
    border-radius: 15px;
    padding: 30px;
    margin-top: 50px;
}

.dark-theme .lattest-news h1 {
    color: var(--text-main);
}

.dark-theme .lattest-news input.form-control {
    background-color: var(--bg-dark-midnight);
    border: 1px solid var(--border-subtle);
    color: var(--text-main);
}

.dark-theme .lattest-news button.form-arrow {
    background-color: var(--color-4);
    color: #fff;
}

/* Modal and Forms */
.dark-theme .modal-content {
    background-color: var(--bg-dark-midnight);
    color: var(--text-main);
    border: 1px solid var(--border-subtle);
}

.dark-theme .modal-header,
.dark-theme .modal-footer {
    border-color: var(--border-subtle);
}

.dark-theme .form-control {
    background-color: var(--bg-dark-slate);
    border: 1px solid var(--border-subtle);
    color: var(--text-main);
}

.dark-theme .form-control:focus {
    background-color: var(--bg-dark-slate);
    color: var(--text-main);
    border-color: var(--color-4);
}

/* Instructor Cards */
.dark-theme .instructor-card-body {
    background-color: var(--bg-dark-slate);
    border: 1px solid var(--border-subtle);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
    text-align: center;
}

.dark-theme .instructor-card-body:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.dark-theme .instructor-card-text h3 {
    color: var(--text-main);
}

.dark-theme .instructor-card-text p {
    color: var(--text-muted);
}

/* Video Section */
/* Video Section */
.video-container {
    border-radius: 15px;
    padding: 30px;
    margin: 40px 0;
    /* Light Mode Default Colors */
    background-color: #fff;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.dark-theme .video-container {
    background-color: var(--bg-dark-slate);
    border: 1px solid var(--border-subtle);
}

.dark-theme .video-title {
    color: var(--text-main);
}

/* --- Phase 21: Premium FAQ/Accordion Redesign --- */
.dark-theme .faq-accrodion .accordion {
    background: transparent !important;
    border: none !important;
}

.dark-theme .faq-accrodion .accordion-item {
    background-color: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    backdrop-filter: blur(10px);
    margin-bottom: 16px;
    border-radius: 16px !important;
    transition: all 0.3s ease;
    overflow: hidden;
}

.dark-theme .faq-accrodion .accordion-item:hover {
    border-color: rgba(255, 122, 61, 0.3) !important;
    background-color: rgba(255, 255, 255, 0.05) !important;
}

.dark-theme .faq.accordion-button {
    background-color: transparent !important;
    color: #ffffff !important;
    padding: 22px 25px;
    font-weight: 600;
    font-size: 1.1rem;
    box-shadow: none !important;
    border: none !important;
}

.dark-theme .faq.accordion-button::after {
    filter: invert(1) brightness(2);
}

.dark-theme .faq.accordion-button:not(.collapsed) {
    color: #DC673B !important;
    background-color: rgba(220, 103, 59, 0.08) !important;
}

.dark-theme .accordion-body {
    background-color: transparent !important;
    color: rgba(255, 255, 255, 0.75) !important;
    padding: 10px 25px 25px 25px !important;
    line-height: 1.8;
    font-size: 1rem;
}

/* Fix for nested titles in FAQ headings */
.dark-theme .description-head {
    color: #ffffff !important;
    margin-bottom: 25px;
    font-weight: 700;
}

/* Motivational Speech Items */
.dark-theme .speech-item {
    background-color: var(--bg-dark-slate);
    border: 1px solid var(--border-subtle);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
}

.dark-theme .speech-item-content .no {
    color: var(--color-4);
    opacity: 0.5;
}

.dark-theme .speech-item-content .title {
    color: var(--text-main);
}

/* --- Phase 22: Premium Curriculum Redesign --- */
.dark-theme .curriculum-accordion {
    background: transparent !important;
}

.dark-theme .curriculum-accordion .accordion-item {
    background-color: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    backdrop-filter: blur(10px);
    margin-bottom: 12px;
    border-radius: 12px !important;
    transition: all 0.3s ease;
}

.dark-theme .curriculum-accordion .accordion-button {
    background-color: transparent !important;
    color: #ffffff !important;
    padding: 18px 20px;
    box-shadow: none !important;
    border: none !important;
}

.dark-theme .curriculum-accordion .accordion-button:not(.collapsed) {
    background-color: rgba(220, 103, 59, 0.1) !important;
    color: #DC673B !important;
}

.dark-theme .curriculum-accordion .accordion-button::after {
    filter: invert(1) brightness(2);
}

.dark-theme .curriculum-accordion .accordion-item-title span {
    color: #ffffff !important;
    font-weight: 600;
}

.dark-theme .curriculum-accordion .text-muted {
    color: rgba(255, 255, 255, 0.5) !important;
}

.dark-theme .ac-lecture {
    background-color: rgba(0, 0, 0, 0.2) !important;
    list-style: none;
    padding: 0;
    margin: 0;
}

.dark-theme .ac-lecture li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.dark-theme .ac-lecture li a {
    color: rgba(255, 255, 255, 0.8) !important;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: all 0.2s ease;
}

.dark-theme .ac-lecture li a:hover {
    background-color: rgba(255, 255, 255, 0.05);
    color: #ffffff !important;
}

.dark-theme .ac-lecture li i {
    color: #DC673B;
    margin-right: 12px;
}

.dark-theme .lecture-info {
    color: rgba(255, 255, 255, 0.5) !important;
}

.dark-theme .curriculum-accordion .border-end {
    border-color: rgba(255, 255, 255, 0.1) !important;
}

/* --- Phase 23: Accordion Chevron & Padding Reset --- */
.dark-theme .curriculum-accordion .accordion-button {
    padding-right: 50px !important;
    padding-left: 20px !important;
}

.dark-theme .curriculum-accordion .accordion-button::after {
    position: absolute !important;
    right: 20px !important;
    left: auto !important;
    margin-left: 0 !important;
    filter: invert(1) brightness(2);
}

.dark-theme .speech-item-content .info {
    color: var(--text-muted);
}

/* Join Now Sections */
.dark-theme .student-body-1,
.dark-theme .student-body-2 {
    background-color: var(--bg-dark-slate);
    border: 1px solid var(--border-subtle);
    border-radius: 20px;
    padding: 30px;
}

.dark-theme .student-body-text h1 {
    color: var(--text-main);
}

.dark-theme .student-body-text p {
    color: var(--text-muted);
}

.dark-theme .student-body-text a {
    background-color: var(--color-4);
    color: #fff;
    padding: 10px 25px;
    border-radius: 8px;
    font-weight: 500;
}

/* Scrollbar */
.dark-theme ::-webkit-scrollbar {
    width: 10px;
}

.dark-theme ::-webkit-scrollbar-track {
    background: var(--bg-dark-midnight);
}

.dark-theme ::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 5px;
}

.dark-theme ::-webkit-scrollbar-thumb:hover {
    background: #444;
}

/* Phase 16 Redesign: Intro Lesson Styles (Overriding previous) */
.intro-lesson-section {
    position: relative;
    padding: 100px 0;
    overflow: hidden;
    /* Dark Premium Background */
    background: radial-gradient(circle at top right, #1F1C2C, #000000);
}

/* Floating Shapes */
.floating-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: 1;
    opacity: 0.4;
    animation: floatAnimation 10s infinite ease-in-out;
}

.shape-1 {
    top: -10%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: #FF7A3D;
}

.shape-2 {
    bottom: -10%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: #4a00e0;
    animation-delay: 5s;
}

@keyframes floatAnimation {

    0%,
    100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(30px, -30px);
    }
}

.glass-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.6);
    position: relative;
    overflow: hidden;
}

/* Text Styles */
.bg-soft-orange {
    background: rgba(255, 122, 61, 0.15);
}

.border-orange-soft {
    border-color: rgba(255, 122, 61, 0.3) !important;
}

.intro-title {
    font-size: 2.8rem;
    line-height: 1.1;
    background: linear-gradient(135deg, #ffffff 0%, #e0e0e0 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Video Card & Reflection */
.intro-video-card-wrapper {
    position: relative;
    perspective: 1000px;
}

.intro-video-card {
    position: relative;
    height: 420px;
    border-radius: 24px;
    background-size: cover;
    background-position: center;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
    overflow: hidden;
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    background-color: #1a1a1a;
}

.intro-video-card:hover {
    transform: translateY(-10px) rotateX(2deg);
    box-shadow: 0 30px 60px rgba(255, 122, 61, 0.25);
    border-color: #FF7A3D;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent 60%);
    transition: opacity 0.3s;
}

.intro-video-card:hover .video-overlay {
    opacity: 0.8;
}

.card-badge-floating {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    padding: 8px 16px;
    border-radius: 50px;
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.play-button-wrapper {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
}

.play-button {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #FF7A3D, #ff4e00);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    font-size: 28px;
    box-shadow: 0 10px 30px rgba(255, 122, 61, 0.5);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.intro-video-card:hover .play-button {
    transform: scale(1.15);
    box-shadow: 0 15px 40px rgba(255, 122, 61, 0.8);
}

.play-button-pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid rgba(255, 122, 61, 0.6);
    animation: pulse 2s infinite;
    top: 0;
    left: 0;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    100% {
        transform: scale(1.6);
        opacity: 0;
    }
}

/* Phase 16 Fix: Force White Text on Hero and Intro regardless of Theme Mode */
/* Since these sections have dark backgrounds, text must retain light colors even in Light Mode */

.hero-title-main,
.hero-title-main span,
.hero-subtext,
.intro-title,
.intro-description,
.intro-subtitle {
    color: #fff !important;
}

/* Ensure gradients on titles still work if we want them, but base color is white */
.hero-title-main .hero-title-gradient {
    background: linear-gradient(to right, #ffffff, #e0e0e0);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent !important;
    /* Required for gradient to show */
}

/* Intro Title Gradient Override */
.intro-title {
    background: linear-gradient(135deg, #ffffff 0%, #e0e0e0 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent !important;
}

/* Fix Hero Subtext visibility */
.hero-subtext {
    color: rgba(255, 255, 255, 0.9) !important;
}

/* Fix Intro Description visibility */
.intro-description {
    color: rgba(255, 255, 255, 0.8) !important;
}

/* Phase 16 Fix: Hero Section Spacing (More Breathing Room) */
.hero-content .premier-badge {
    margin-bottom: 25px !important;
    /* Increased from default */
    display: inline-block;
}

.hero-title-main {
    margin-bottom: 30px !important;
    /* Increased spacing below title */
}

.hero-subtext {
    margin-bottom: 40px !important;
    /* Increased spacing before buttons */
    line-height: 1.8 !important;
    /* Better readability */
}

/* --- Phase 17: Premium Course Card Redesign --- */

/* Remove Old Elements */
.compare-img,
.course-popover-content,
.webui-popover {
    display: none !important;
}

/* Premium Card Container - LIGHT MODE DEFAULT */
.premium-course-card {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    /* Light Border */
    backdrop-filter: blur(10px);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    /* Soft light shadow */
}

/* Dark Mode Override */
.dark-theme .premium-course-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: none;
}

.premium-course-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: rgba(255, 122, 61, 0.4);
}

.dark-theme .premium-course-card:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

/* Image Section */
.premium-course-card-img {
    position: relative;
    height: 200px;
    overflow: hidden;
    border-radius: 20px 20px 0 0;
}

.premium-course-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.premium-course-card:hover .premium-course-card-img img {
    transform: scale(1.08);
}

/* Badges */
.premium-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.premium-badge.vip {
    background: linear-gradient(135deg, #FF7A3D, #FF4E00);
    box-shadow: 0 4px 15px rgba(255, 122, 61, 0.4);
    animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 122, 61, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(255, 122, 61, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(255, 122, 61, 0);
    }
}

/* Content Section */
.premium-course-content {
    padding: 24px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.premium-course-title {
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 10px;
    color: #1e1e1e;
    /* DEFAULT DARK TEXT */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.dark-theme .premium-course-title {
    color: #fff !important;
    /* OVERRIDE WHITE TEXT */
}

.premium-course-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 0.85rem;
    color: #666;
    /* Light Mode Default */
    margin-bottom: 15px;
}

.dark-theme .premium-course-meta {
    color: rgba(255, 255, 255, 0.6);
}

.premium-course-meta i {
    color: #FF7A3D;
    margin-right: 5px;
}

.premium-course-rating {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 15px;
    font-size: 0.9rem;
    color: #FFC107;
}

/* Footer Section */
.premium-course-footer {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 15px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    /* Light Border */
}

.dark-theme .premium-course-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.premium-course-price {
    display: flex;
    flex-direction: column;
}

.premium-current-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1e1e1e;
    /* Light Price */
}

.dark-theme .premium-current-price {
    color: #fff;
}

.premium-old-price {
    font-size: 0.85rem;
    color: #999;
    /* Light Old Price */
    text-decoration: line-through;
}

.dark-theme .premium-old-price {
    color: rgba(255, 255, 255, 0.4);
}

.premium-add-cart-btn {
    background: transparent;
    color: #1e1e1e;
    border: 1px solid rgba(0, 0, 0, 0.1);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    cursor: pointer;
    z-index: 10;
}

.dark-theme .premium-add-cart-btn {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.premium-add-cart-btn:hover {
    background: linear-gradient(135deg, #FF7A3D, #FF4E00);
    border-color: transparent;
    color: #fff !important;
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(255, 122, 61, 0.5);
}

.premium-label-new {
    background: #754FFE;
}

/* End of Premium Card Redesign */

/* --- Phase 20: Course Page & Dynamic Content Dark Mode Fixes --- */

/* Force white text for items coming from DB with inline styles */
.dark-theme .course-description,
.dark-theme .course-description *,
.dark-theme .accordion-body,
.dark-theme .accordion-body * {
    color: #ffffff !important;
}

/* Sidebar Card Fixes */
.dark-theme .course-right-section .course-card {
    background-color: var(--bg-dark-slate) !important;
    border: 1px solid var(--border-subtle) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4) !important;
}

.dark-theme .course-right-section .course-card .ammount h1,
.dark-theme .course-right-section .course-card .ammount h3 {
    color: #ffffff !important;
}

.dark-theme .course-right-section .course-card .enrol .icon h4,
.dark-theme .course-right-section .course-card .enrol>h5 {
    color: #ffffff !important;
}

.dark-theme .course-right-section .course-card .enrol {
    border-bottom: 1px solid var(--border-subtle) !important;
}

/* Fix for icons and text in the header area of course page */
.dark-theme .bread-crumb.courses-details,
.dark-theme .courses-details-1st-text h1,
.dark-theme .courses-details-1st-text p,
.dark-theme .course-heading-info .info-tag p,
.dark-theme .course-heading-info .info-tag i,
.dark-theme .course-heading-info .info-tag ul p,
.dark-theme .course-heading-info .info-tag ul i {
    color: #ffffff !important;
}

/* Tab labels visibility */
.dark-theme .course-left-side .nav-link {
    color: #ffffff !important;
}

.dark-theme .course-left-side .nav-link.active {
    color: var(--secondary) !important;
}

.dark-theme .course-left-side .nav-link svg path {
    fill: #ffffff !important;
}

/* Advertisement Card Dark Mode Fixes */
.dark-theme .course-ad-card {
    background-color: var(--bg-dark-slate) !important;
    border: 1px solid var(--border-subtle) !important;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5) !important;
}

.dark-theme .course-ad-card h4 {
    color: #ffffff !important;
}

/* Dark Mode Navigation Overrides */
.dark-theme .navbar-nav .nav-link {
    color: #ffffff !important;
}

.dark-theme .navbar-nav .nav-link:hover {
    color: #ff7e00 !important;
}

.dark-theme .navbarHover,
.dark-theme .sub-category-menu {
    background: var(--bg-dark-slate) !important;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5) !important;
    border: 1px solid var(--border-subtle);
}

.dark-theme .navbarHover li a,
.dark-theme .sub-category-menu li a {
    color: #ffffff !important;
}

.dark-theme .navbarHover li a:hover,
.dark-theme .sub-category-menu li a:hover {
    background: rgba(255, 126, 0, 0.1) !important;
    color: #ff7e00 !important;
}

.dark-theme .navbar-nav .nav-link::after {
    background: #ff7e00;
}

.dark-theme .course-ad-card .text-muted {
    color: rgba(255, 255, 255, 0.6) !important;
}