/* Body hidden initially */
body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    /* background-color: var(--bg-light); */
    /* background-color: #f0edff; */
    background-color: #f8fafc;
    color: var(--text-dark);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: background-color var(--transition-speed), color var(--transition-speed);
    overflow-x: hidden;
}

body.loaded {
    overflow-x: auto;
}

/* Theme Toggle Button */
.theme-toggle-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 0.5rem;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle-btn:hover {
    background-color: rgba(108, 78, 255, 0.1);
    color: var(--primary-color);
}

.theme-toggle-btn:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.theme-toggle-btn i {
    transition: transform 0.3s ease;
}

/* Header Styles */
.navbar {
    background-color: white;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 9999;
    transition: background-color var(--transition-speed), border-color var(--transition-speed);
}

[data-theme="dark"] .navbar {
    background-color: #1e293b;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--text-dark);
    text-decoration: none;
    transition: color var(--transition-speed);
}

.navbar-brand i {
    color: var(--primary-color);
    font-size: 2rem;
}

.navbar-brand img {
    width: 232px;
}

.nav-link {
    font-weight: 600;
    color: var(--text-muted);
    text-decoration: none;
    padding: 4px 0;
    /* margin: 0 1rem; */
    transition: color 0.2s;
    position: relative;
    font-size: 14px;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}

.search-box {
    position: relative;
    display: none;
}

@media (min-width: 768px) {
    .search-box {
        display: block;
    }
}

.search-box input {
    padding-left: 2.5rem;
    padding-right: 1rem;
    border: none;
    background-color: #f1f5f9;
    border-radius: 0.75rem;
    width: 16rem;
    height: 2.5rem;
    font-size: 0.875rem;
    transition: all 0.2s;
    color: var(--text-dark);
}

[data-theme="dark"] .search-box input {
    background-color: #334155;
    color: #f1f5f9;
}

.search-box input:focus {
    outline: none;
    ring: 2px;
    ring-color: var(--primary-color);
}

.search-box i {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.profile-section {
    display: flex;
    align-items: center;
    gap: 6px;
    padding-left: 1rem;
    border-left: 1px solid var(--border-color);
    cursor: pointer;
    transition: border-color var(--transition-speed);
}

.profile-info {
    text-align: right;
    display: none;
}

@media (min-width: 640px) {
    .profile-info {
        display: block;
    }
}

.profile-name {
    font-weight: 700;
    font-size: 0.875rem;
    margin-bottom: 0.125rem;
    color: var(--text-dark);
    transition: color var(--transition-speed);
}

.profile-role {
    font-size: 0.625rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 700;
    color: var(--text-muted);
}

.profile-avatar {
    position: relative;
}

.profile-avatar img {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 2px solid rgba(108, 78, 255, 0.2);
    object-fit: cover;
}

.online-status {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0.75rem;
    height: 0.75rem;
    background-color: #10b981;
    border: 2px solid white;
    border-radius: 50%;
}

[data-theme="dark"] .online-status {
    border-color: #1e293b;
}

/* Notification Dropdown */
.notification-dropdown {
    width: 360px;
    max-width: 90vw;
    background-color: white;
    border-radius: 1rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border: 1px solid var(--border-color);
    right: 0;
    left: auto !important;
    transform: translateX(0) !important;
}

[data-theme="dark"] .notification-dropdown {
    background-color: #1e293b;
}

.notification-header {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

[data-theme="dark"] .notification-header {
    border-bottom-color: #334155;
}

.notification-title {
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-dark);
}

.notification-mark-all {
    font-size: 0.75rem;
    color: var(--primary-color);
    background: none;
    border: none;
    cursor: pointer;
    font-weight: 600;
    transition: opacity 0.2s;
}

.notification-mark-all:hover {
    opacity: 0.8;
}

.notification-list {
    max-height: 400px;
    overflow-y: auto;
}

.notification-item {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    gap: 0.75rem;
    cursor: pointer;
    transition: background-color 0.2s;
}

[data-theme="dark"] .notification-item {
    border-bottom-color: #334155;
}

.notification-item:hover {
    background-color: rgba(108, 78, 255, 0.05);
}

.notification-item.unread {
    background-color: rgba(108, 78, 255, 0.02);
}

[data-theme="dark"] .notification-item.unread {
    background-color: rgba(108, 78, 255, 0.05);
}

.notification-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.notification-icon.quiz {
    background-color: rgba(108, 78, 255, 0.1);
    color: var(--primary-color);
}

.notification-icon.achievement {
    background-color: rgba(251, 191, 36, 0.1);
    color: #f59e0b;
}

.notification-icon.system {
    background-color: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.notification-content {
    flex-grow: 1;
    min-width: 0;
}

.notification-message {
    font-size: 0.875rem;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
    font-weight: 500;
}

.notification-time {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.notification-dot {
    width: 8px;
    height: 8px;
    background-color: var(--primary-color);
    border-radius: 50%;
    margin-top: 0.5rem;
    flex-shrink: 0;
}

.notification-footer {
    padding: 0.75rem 1.5rem;
    text-align: center;
    border-top: 1px solid var(--border-color);
}

[data-theme="dark"] .notification-footer {
    border-top-color: #334155;
}

.notification-view-all {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 600;
}

.notification-view-all:hover {
    text-decoration: underline;
}

/* Profile Dropdown */
.profile-dropdown {
    width: 210px;
    background-color: white;
    border-radius: 1rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border: 1px solid var(--border-color);
    right: 0;
    left: auto !important;
    transform: translateX(0) !important;
}

[data-theme="dark"] .profile-dropdown {
    background-color: #1e293b;
}

.profile-dropdown-header {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    text-align: center;
}

[data-theme="dark"] .profile-dropdown-header {
    border-bottom-color: #334155;
}

.profile-dropdown-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    margin: 0 auto 0.75rem;
    border: 3px solid var(--primary-color);
}

.profile-dropdown-name {
    font-weight: 700;
    font-size: 14px;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.profile-dropdown-email {
    font-size: 12px;
    color: var(--text-muted);
}

.profile-dropdown-menu {
    padding: 0.5rem 0;
}

.profile-dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 5px 24px;
    color: var(--text-dark);
    text-decoration: none;
    transition: background-color 0.2s;
    font-size: 0.875rem;
}

[data-theme="dark"] .profile-dropdown-item {
    color: #f1f5f9;
}

.profile-dropdown-item:hover {
    background-color: rgba(108, 78, 255, 0.05);
}

.profile-dropdown-item i {
    font-size: 1.25rem;
    color: var(--text-muted);
    width: 1.25rem;
}

.profile-dropdown-divider {
    height: 1px;
    background-color: var(--border-color);
    margin: 0.5rem 0;
}

[data-theme="dark"] .profile-dropdown-divider {
    background-color: #334155;
}

.profile-dropdown-item.danger {
    color: #ef4444;
}

.profile-dropdown-item.danger i {
    color: #ef4444;
}

/* Welcome Banner */
.welcome-banner {
    background: linear-gradient(135deg, var(--primary-color), #4f46e5);
    border-radius: 1.5rem;
    padding: 2rem;
    color: white;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 25px -5px rgba(108, 78, 255, 0.2);
}

.welcome-banner h1 {
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.welcome-banner p {
    font-size: clamp(1rem, 2.5vw, 1.125rem);
    opacity: 0.9;
    margin-bottom: 1.5rem;
    max-width: 28rem;
}

.welcome-banner .btn-continue {
    background-color: white;
    color: var(--primary-color);
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    font-weight: 700;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

.welcome-banner .btn-continue:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.15);
}

.welcome-banner .bg-icon {
    position: absolute;
    right: -2.5rem;
    bottom: -2.5rem;
    font-size: 15rem;
    opacity: 0.1;
}

/* Stats Cards */
.stats-card {
    background-color: white;
    border-radius: 1rem;
    padding: 1.25rem;
    border: 1px solid var(--border-color);
    box-shadow: var(--card-shadow);
    transition: transform 0.2s, box-shadow 0.2s, background-color var(--transition-speed);
}

[data-theme="dark"] .stats-card {
    background-color: #1e293b;
}

.stats-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--card-hover-shadow);
}

.stats-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.75rem;
}

.stats-icon.blue {
    background-color: #dbeafe;
    color: #2563eb;
}

.stats-icon.purple {
    background-color: #f3e8ff;
    color: #9333ea;
}

.stats-icon.green {
    background-color: #d1fae5;
    color: #10b981;
}

[data-theme="dark"] .stats-icon.blue {
    background-color: rgba(37, 99, 235, 0.2);
}

[data-theme="dark"] .stats-icon.purple {
    background-color: rgba(147, 51, 234, 0.2);
}

[data-theme="dark"] .stats-icon.green {
    background-color: rgba(16, 185, 129, 0.2);
}

.stats-label {
    font-size: 0.875rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.stats-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
}

/* AI Quiz Banner */
.ai-quiz-banner {
    background: linear-gradient(90deg, #4f46e5, var(--primary-color), #9333ea);
    border-radius: 1.5rem;
    padding: 2rem;
    color: white;
    box-shadow: 0 10px 15px -3px rgba(108, 78, 255, 0.1);
}

.ai-quiz-banner .content-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

@media (max-width: 768px) {
    .ai-quiz-banner .content-wrapper {
        flex-direction: column;
    }
}

.ai-quiz-banner .left-content {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.ai-icon {
    width: 4rem;
    height: 4rem;
    border-radius: 1rem;
    background-color: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.ai-icon i {
    font-size: 2.5rem;
}

.ai-quiz-banner h2 {
    font-size: clamp(1.25rem, 3vw, 1.5rem);
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.ai-quiz-banner p {
    opacity: 0.9;
}

.ai-quiz-banner .btn-get-started {
    background-color: white;
    color: var(--primary-color);
    padding: 1rem 2rem;
    border-radius: 1rem;
    font-weight: 700;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: transform 0.2s;
}

.ai-quiz-banner .btn-get-started:hover {
    transform: scale(1.05);
}

/* Active Quizzes */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.section-title {
    font-size: 1.25rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-dark);
}

.badge-pending {
    background-color: rgba(108, 78, 255, 0.1);
    color: var(--primary-color);
    padding: 0.25rem 0.5rem;
    border-radius: 9999px;
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.link-all {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.875rem;
    text-decoration: none;
    transition: text-decoration 0.2s;
}

.link-all:hover {
    text-decoration: underline;
}

.quiz-cards-container {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    padding-bottom: 1rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--border-color) transparent;
}

.quiz-cards-container::-webkit-scrollbar {
    height: 6px;
}

.quiz-cards-container::-webkit-scrollbar-track {
    background: transparent;
}

.quiz-cards-container::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 10px;
}

.quiz-card {
    min-width: 18rem;
    background-color: white;
    border-radius: 1.5rem;
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    box-shadow: var(--card-shadow);
    transition: box-shadow 0.2s, transform 0.2s, background-color var(--transition-speed);
}

[data-theme="dark"] .quiz-card {
    background-color: #1e293b;
}

.quiz-card:hover {
    box-shadow: var(--card-hover-shadow);
    transform: translateY(-2px);
}

.quiz-card h3 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.quiz-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.quiz-meta-item {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
}

.quiz-meta-item i {
    font-size: 1rem;
}

.quiz-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.quiz-marks {
    background-color: #d1fae5;
    color: #10b981;
    padding: 0.25rem 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.75rem;
    font-weight: 700;
}

.quiz-play-btn {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 6px -1px rgba(108, 78, 255, 0.3);
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
}

.quiz-play-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 8px -1px rgba(108, 78, 255, 0.4);
}

/* Recent Activity */
.activity-card {
    background-color: white;
    border-radius: 1.5rem;
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    transition: background-color var(--transition-speed);
}

[data-theme="dark"] .activity-card {
    background-color: #1e293b;
}

@media (max-width: 640px) {
    .activity-card {
        flex-direction: column;
    }
}

.activity-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 0.75rem;
    background-color: #e0e7ff;
    color: #4f46e5;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

[data-theme="dark"] .activity-icon {
    background-color: rgba(79, 70, 229, 0.2);
}

.activity-content {
    flex-grow: 1;
}

.activity-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.25rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.activity-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-dark);
}

.activity-status {
    background-color: #d1fae5;
    color: #10b981;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
}

.activity-date {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.activity-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 1rem;
}

.activity-stat {
    text-align: center;
}

.activity-stat-label {
    font-size: 0.625rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.activity-stat-value {
    font-weight: 700;
    color: var(--text-dark);
}

.activity-stat-value.percentage {
    color: #4f46e5;
}

/* Sidebar */
.sidebar-card {
    background-color: white;
    border-radius: 1.5rem;
    border: 1px solid var(--border-color);
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: background-color var(--transition-speed);
}

[data-theme="dark"] .sidebar-card {
    background-color: #1e293b;
}

.sidebar-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: border-color var(--transition-speed);
}

.sidebar-title {
    font-size: 1.125rem;
    font-weight: 700;
    margin: 0;
    color: var(--text-dark);
}

.sidebar-content {
    padding: 1rem;
}

/* Top Performers */
.performer-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    border-radius: 0.75rem;
    transition: background-color 0.2s;
}

.performer-item:hover {
    background-color: #f8fafc;
}

[data-theme="dark"] .performer-item:hover {
    background-color: rgba(30, 41, 59, 0.5);
}

.performer-item.current-user {
    background-color: rgba(108, 78, 255, 0.05);
    border: 1px solid rgba(108, 78, 255, 0.1);
}

.performer-avatar {
    position: relative;
}

.performer-avatar img {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    object-fit: cover;
}

.performer-rank {
    position: absolute;
    bottom: -0.25rem;
    right: -0.25rem;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.625rem;
    font-weight: 700;
    color: white;
    border: 2px solid white;
}

[data-theme="dark"] .performer-rank {
    border-color: #1e293b;
}

.performer-rank.gold {
    background-color: #fbbf24;
}

.performer-rank.silver {
    background-color: #d1d5db;
}

.performer-rank.current {
    background-color: var(--primary-color);
}

.performer-info {
    flex-grow: 1;
}

.performer-name {
    font-weight: 700;
    font-size: 0.875rem;
    margin-bottom: 0.125rem;
    color: var(--text-dark);
}

.performer-points {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.performer-trend {
    color: #10b981;
}

.performer-trend.stable {
    color: var(--text-muted);
}

/* Community Poll */
.poll-question {
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.poll-option {
    display: block;
    cursor: pointer;
    margin-bottom: 0.75rem;
}

.poll-option-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    border-radius: 0.75rem;
    border: 1px solid var(--border-color);
    transition: all 0.2s;
}

.poll-option-label:hover {
    border-color: rgba(108, 78, 255, 0.5);
}

.poll-option.selected .poll-option-label {
    border-color: var(--primary-color);
    background-color: rgba(108, 78, 255, 0.05);
}

.poll-option input[type="radio"] {
    margin: 0;
}

.poll-option-text {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-dark);
}

.poll-option.selected .poll-option-text {
    font-weight: 700;
}

.poll-submit-btn {
    width: 100%;
    padding: 0.75rem;
    background-color: #f1f5f9;
    color: #475569;
    font-weight: 700;
    border-radius: 0.75rem;
    border: none;
    margin-top: 1.5rem;
    transition: background-color 0.2s, color 0.2s;
    cursor: pointer;
}

[data-theme="dark"] .poll-submit-btn {
    background-color: #334155;
    color: #f1f5f9;
}

.poll-submit-btn:hover {
    background-color: #e2e8f0;
}

[data-theme="dark"] .poll-submit-btn:hover {
    background-color: #475569;
}

/* Pro Tip */
.pro-tip-card {
    background-color: rgba(251, 191, 36, 0.1);
    border: 1px solid rgba(251, 191, 36, 0.2);
    border-radius: 1.5rem;
    padding: 1.5rem;
}

.pro-tip-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #f59e0b;
    margin-bottom: 0.75rem;
}

.pro-tip-title {
    font-weight: 700;
    margin: 0;
}

.pro-tip-content {
    font-size: 0.875rem;
    line-height: 1.5;
    color: #475569;
}

[data-theme="dark"] .pro-tip-content {
    color: #cbd5e1;
}

/* Footer */
footer {
    background-color: white;
    border-top: 1px solid var(--border-color);
    padding: 4rem 0 2rem;
    margin-top: auto;
    transition: background-color var(--transition-speed), border-color var(--transition-speed);
}

[data-theme="dark"] footer {
    background-color: #1e293b;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.footer-brand i {
    color: var(--primary-color);
    font-size: 1.5rem;
}

.footer-brand-name {
    font-weight: 800;
    font-size: 1.25rem;
    color: var(--text-dark);
}

.footer-description {
    color: var(--text-muted);
    font-size: 0.875rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

.footer-social {
    display: flex;
    gap: 0.75rem;
}

.footer-social a {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.5rem;
    background-color: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    text-decoration: none;
    transition: all 0.2s;
}

[data-theme="dark"] .footer-social a {
    background-color: #334155;
}

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

.footer-links h4 {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

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

.footer-links li {
    margin-bottom: 1rem;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    text-align: center;
    transition: border-color var(--transition-speed);
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 500;
    margin: 0;
}

/* Mobile Navigation */
.mobile-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: white;
    border-top: 1px solid var(--border-color);
    padding: 1rem;
    display: none;
    z-index: 1000;
    transition: background-color var(--transition-speed), border-color var(--transition-speed);
}

[data-theme="dark"] .mobile-nav {
    background-color: #1e293b;
}

@media (max-width: 768px) {
    .mobile-nav {
        display: block;
    }
}

.mobile-nav-content {
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    background: none;
    border: none;
    color: var(--text-muted);
    padding: 0.5rem;
    cursor: pointer;
    transition: color 0.2s;
    min-width: 60px;
}

.mobile-nav-item.active {
    color: var(--primary-color);
}

.mobile-nav-item i {
    font-size: 18px;
}

.mobile-nav-item span {
    font-size: 0.625rem;
    font-weight: 700;
}

.mobile-nav-fab {
    background-color: var(--primary-color);
    color: white;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: -1.5rem;
    box-shadow: 0 10px 15px -3px rgba(108, 78, 255, 0.3);
    border: 4px solid var(--bg-light);
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.mobile-nav-fab:hover {
    transform: scale(1.1);
    box-shadow: 0 20px 25px -5px rgba(108, 78, 255, 0.4);
}

/* Performance Optimizations */
img {
    loading: lazy;
}

/* Responsive Utilities */
.d-none-important {
    display: none !important;
}

@media (min-width: 576px) {
    .d-sm-none-important {
        display: none !important;
    }
}

@media (min-width: 768px) {
    .d-md-none-important {
        display: none !important;
    }
}

@media (min-width: 992px) {
    .d-lg-none-important {
        display: none !important;
    }
}

@media (min-width: 1200px) {
    .d-xl-none-important {
        display: none !important;
    }
}

/* Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus styles */
*:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

button:focus,
input:focus,
a:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Print styles */
@media print {

    .mobile-nav,
    .navbar,
    footer {
        display: none;
    }

    body {
        background: white !important;
        color: black !important;
    }
}

/* Responsive Design */
@media (max-width: 1200px) {
    .container-fluid {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

@media (max-width: 992px) {
    .quiz-cards-container {
        gap: 1rem;
    }

    .quiz-card {
        min-width: 16rem;
    }

    .ai-quiz-banner .left-content {
        gap: 1rem;
    }

    .ai-icon {
        width: 3.5rem;
        height: 3.5rem;
    }

    .ai-icon i {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .navbar-brand img {
        width: 128px;
    }

    .navbar-brand {
        font-size: 1.25rem;
    }

    .navbar-brand i {
        font-size: 1.75rem;
    }

    .profile-section {
        padding-left: 0.5rem;
    }

    .welcome-banner {
        padding: 1.5rem;
    }

    .welcome-banner .bg-icon {
        font-size: 10rem;
    }

    .ai-quiz-banner {
        padding: 1.5rem;
    }

    .ai-quiz-banner .btn-get-started {
        padding: 0.75rem 1.5rem;
    }

    .quiz-card {
        min-width: 14rem;
        padding: 1.25rem;
    }

    .activity-card {
        padding: 1.25rem;
    }

    .sidebar-card {
        margin-bottom: 1.5rem;
    }

    .footer {
        padding: 3rem 0 2rem;
    }
}

@media (max-width: 576px) {
    .container-fluid {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .welcome-banner {
        padding: 1.25rem;
    }

    .welcome-banner h1 {
        font-size: 1.5rem;
    }

    .welcome-banner p {
        font-size: 1rem;
        margin-bottom: 1.25rem;
    }

    .welcome-banner .btn-continue {
        padding: 0.625rem 1.25rem;
        font-size: 0.875rem;
    }

    .stats-card {
        padding: 1rem;
    }

    .stats-value {
        font-size: 1.25rem;
    }

    .ai-quiz-banner {
        padding: 1.25rem;
    }

    .ai-quiz-banner h2 {
        font-size: 1.125rem;
    }

    .ai-quiz-banner p {
        font-size: 0.875rem;
    }

    .ai-quiz-banner .btn-get-started {
        padding: 0.625rem 1.25rem;
        font-size: 0.875rem;
    }

    .quiz-card {
        min-width: 12rem;
        padding: 1rem;
    }

    .quiz-card h3 {
        font-size: 1rem;
    }

    .quiz-meta-item {
        font-size: 0.625rem;
    }

    .activity-card {
        padding: 1rem;
        gap: 1rem;
    }

    .activity-icon {
        width: 2.5rem;
        height: 2.5rem;
    }

    .activity-title {
        font-size: 1rem;
    }

    .activity-date {
        font-size: 0.75rem;
        margin-bottom: 0.75rem;
    }

    .sidebar-header {
        padding: 1.25rem;
    }

    .sidebar-content {
        padding: 0.75rem;
    }

    .performer-avatar img {
        width: 2.5rem;
        height: 2.5rem;
    }

    .performer-name {
        font-size: 0.75rem;
    }

    .performer-points {
        font-size: 0.625rem;
    }

    .poll-question {
        font-size: 0.875rem;
    }

    .poll-option-text {
        font-size: 0.75rem;
    }

    .pro-tip-card {
        padding: 1.25rem;
    }

    .pro-tip-content {
        font-size: 0.75rem;
    }

    .footer {
        padding: 2rem 0 1.5rem;
    }

    .footer-brand-name {
        font-size: 1.125rem;
    }

    .footer-description {
        font-size: 0.75rem;
    }

    .footer-links h4 {
        font-size: 0.625rem;
        margin-bottom: 1rem;
    }

    .footer-links a {
        font-size: 0.75rem;
    }

    .footer-bottom p {
        font-size: 0.625rem;
    }
}

/* Notification Dropdown Responsive */
@media (max-width: 576px) {
    .notification-dropdown {
        width: calc(100vw - 2rem);
        max-width: 320px;
        right: 1rem;
        left: 1rem !important;
        transform: none !important;
    }

    .notification-header {
        padding: 0.75rem 1rem;
    }

    .notification-item {
        padding: 0.75rem 1rem;
    }

    .notification-footer {
        padding: 0.5rem 1rem;
    }

    .notification-message {
        font-size: 0.8rem;
    }

    .notification-time {
        font-size: 0.7rem;
    }
}

@media (max-width: 400px) {
    .notification-dropdown {
        width: calc(100vw - 1rem);
        right: 0.5rem;
        left: 0.5rem !important;
    }
}

/* Profile Dropdown Responsive */
@media (max-width: 576px) {
    .profile-dropdown {
        width: calc(100vw - 2rem) !important;
        max-width: 320px !important;
        right: 1rem !important;
        left: 1rem !important;
        transform: none !important;
        position: fixed !important;
        top: 60px !important;
        margin: 0 !important;
        z-index: 1055 !important;
    }

    .profile-dropdown::before {
        display: none !important;
    }

    .profile-dropdown-header {
        padding: 1rem !important;
    }

    .profile-dropdown-item {
        padding: 0.5rem 1rem !important;
    }

    /* Ensure dropdown appears above mobile navigation */
    .mobile-nav {
        z-index: 1000;
    }
}

@media (max-width: 400px) {
    .profile-dropdown {
        width: calc(100vw - 1rem) !important;
        right: 0.5rem !important;
        left: 0.5rem !important;
    }
}

/* Register and login page */
.text-primary {
    color: var(--primary-color) !important;
}

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

.btn-login {
    background: linear-gradient(135deg, var(--primary-color), #8b5cf6);
    color: white;
    border: none;
    border-radius: 0.75rem;
    padding: 0.75rem 1.75rem;
    font-weight: 700;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 12px rgba(108, 78, 255, 0.25);
    position: relative;
    overflow: hidden;
}

.btn-login::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: left 0.5s ease;
}

.btn-register {
    background: linear-gradient(135deg, var(--primary-color), #8b5cf6);
    color: white;
    border: none;
    border-radius: 0.75rem;
    padding: 0.75rem 1.75rem;
    font-weight: 700;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 12px rgba(108, 78, 255, 0.25);
    position: relative;
    overflow: hidden;
}

.btn-register::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: left 0.5s ease;
}

.register-card {
    background: var(--custom-card-bg);
    border-radius: 2.5rem;
    overflow: hidden;
    border: 1px solid rgba(108, 78, 255, 0.1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    max-width: 1100px;
    width: 100%;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.sidebar-panel {
    background-color: var(--custom-sidebar-bg);
    padding: 3.5rem;
    position: relative;
}

.form-control {
    border-radius: 0.75rem;
    padding: 0.75rem 1rem 0.75rem 3rem;
    background-color: var(--custom-input-bg);
    border: 1px solid var(--bs-border-color);
    color: var(--custom-text-main);
}

.form-control:focus {
    background-color: var(--custom-input-bg);
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25 fasrem rgba(108, 78, 255, 0.25);
    color: var(--custom-text-main);
}

.form-control::placeholder {
    color: var(--text-muted);
    opacity: 1;
    font-size: 0.9rem;
}

.form-control::-webkit-input-placeholder {
    color: var(--text-muted);
}

.form-control::-moz-placeholder {
    color: var(--text-muted);
}

.form-control:-ms-input-placeholder {
    color: var(--text-muted);
}

.form-control::-ms-input-placeholder {
    color: var(--text-muted);
}

.form-control:focus::placeholder {
    color: rgba(108, 78, 255, 0.6);
}

.input-group-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    z-index: 10;
}

.btn-primary {
    background-color: var(--primary-color);
    border: none;
    border-radius: 0.75rem;
    padding: 1rem;
    font-weight: 700;
}

.btn-primary:hover {
    background-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(108, 78, 255, 0.3);
}

.btn:disabled {
    background-color: var(--primary-color);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
    border-radius: 0.75rem;
    padding: 1rem;
    font-weight: 700;
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(108, 78, 255, 0.3);
}

.progress-bar-custom {
    height: 6px;
    border-radius: 10px;
    background-color: var(--bs-border-color);
    flex: 1;
}

/* Floating Theme Toggle */
#theme-switcher {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: 1px solid var(--bs-border-color);
    background: var(--custom-card-bg);
    color: var(--custom-text-main);
    box-shadow: var(--bs-box-shadow-sm);
}

.avatar-group img {
    width: 40px;
    height: 40px;
    border: 2px solid var(--custom-card-bg);
    border-radius: 50%;
    margin-right: -12px;
}

hr {
    opacity: 0.15;
}

@media (max-width: 991.98px) {
    .sidebar-panel {
        padding: 2.5rem;
    }
}

/* Cms Pages */
.nav-link-pages {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 12px;
    color: inherit;
    text-decoration: none;
    font-weight: 500;
    transition: 0.2s;
}

.nav-link-pages:hover {
    background-color: var(--purple-light);
    color: var(--primary-color);
}

.nav-link-pages.active {
    background-color: var(--purple-light);
    color: var(--primary-color);
    font-weight: 700;
}

/* Forgot Password */
.card {
    border-radius: 24px;
    border: none;
    box-shadow: 0 10px 30px rgba(124, 58, 237, 0.05);
}

.icon-box {
    width: 70px;
    height: 70px;
    background-color: rgba(124, 58, 237, 0.1);
    color: var(--primary-color);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    font-size: 2rem;
}

/* Reset Password */
.input-group-custom {
    position: relative;
}

.input-group-custom i {
    position: absolute;
    left: 1.2rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    color: #94a3b8;
    font-size: 1.1rem;
}

.strength-bar-container {
    height: 6px;
    background: #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
}

.strength-fill {
    height: 100%;
    transition: width 0.3s ease;
}

/* Education news */
/* Hero Section */
.news-hero-section {
    background-color: var(--primary-color);
    padding: 60px 0 60px 0;
    position: relative;
    overflow: hidden;
    color: white;
}

.news-hero-circle {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    filter: blur(60px);
    z-index: 0;
}

.news-hero-content {
    position: relative;
    z-index: 1;
}

/* Article Cards */
.card-news {
    border: 1px solid #f1f5f9;
    transition: var(--transition);
    overflow: hidden;
    height: 100%;
    background: white;
    display: flex;
    flex-direction: column;
}

.card-news:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.05);
}

.card-news img {
    transition: transform 0.7s ease;
    object-fit: cover;
}

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

/* Search & Filters */
.filter-container {
    margin-top: -40px;
    z-index: 10;
}

.btn-filter {
    background: #f1f5f9;
    border: 1px solid transparent;
    padding: 10px 24px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 14px;
    white-space: nowrap;
    color: #64748b;
    transition: var(--transition);
}

.btn-filter.active,
.btn-filter:hover {
    background: var(--primary-color);
    color: white;
}

.form-control:focus {
    box-shadow: none;
    border-color: var(--primary-color);
    background-color: white !important;
}

/* Newsletter Styling */
.newsletter-box {
    background: linear-gradient(135deg, var(--primary-color) 0%, #5B21B6 100%);
    border-radius: 2.5rem;
    padding: 36px;
    position: relative;
}

.placeholder-white::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
    display: flex;
    overflow-x: auto;
    gap: 10px;
}

.no-scrollbar::-webkit-scrollbar {
    display: none;
}

.pagination .page-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 4px;
    border-radius: 10px !important;
    color: #64748b;
    border: 1px solid #e2e8f0;
}

.pagination .page-item.active .page-link {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

/* News details */
.article-img-container {
    height: 500px;
    overflow: hidden;
    border-radius: 24px;
    box-shadow: var(--card-shadow);
    position: relative;
}

.article-img-container::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0) 100%);
}

.news-title {
    margin-top: 2rem;
}

.news-title h1 {
    font-weight: 800;
    background: var(--primary-color);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.2;
    position: relative;
    display: inline-block;
}

.news-title h1::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 2px;
}

.news-meta {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-top: 1.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.news-content {
    margin-top: 2rem;
    line-height: 1.7;
}

.news-content p {
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
    font-size: 1.05rem;
}

.news-sidebar {
    position: sticky;
    top: 2rem;
}

.sidebar-card {
    background: white;
    border-radius: 24px;
    padding: 1.5rem;
    box-shadow: var(--card-shadow);
}

.sidebar-card h5 {
    font-weight: 700;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.sidebar-card h5::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
}

.related-item {
    display: flex;
    gap: 1rem;
    transition: transform 0.3s ease;
}

.related-item:hover {
    transform: translateX(5px);
}

.related-item img {
    width: 80px;
    height: 80px;
    border-radius: 16px;
    object-fit: cover;
}

.related-item h6 {
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.related-item p {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin: 0;
}

@media (max-width: 992px) {
    .news-sidebar {
        position: relative;
        top: 0;
        margin-top: 2rem;
    }
}

@media (max-width: 768px) {
    .article-img-container {
        height: 300px;
    }

    .news-title h1 {
        font-size: 2rem;
    }

    .btn-login {
        padding: 0.625rem 1.25rem;
        font-size: 0.875rem;
    }

    .btn-register {
        padding: 0.625rem 1.25rem;
        font-size: 0.875rem;
    }
}

/* Student Materials */
/* Responsive Search Bar */
.search-material-container {
    position: relative;
    width: 100%;
    max-width: 450px;
}

.search-material-container i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
}

.search-material-input {
    padding-left: 45px;
    border-radius: 12px;
    height: 48px;
}

/* Card Improvements */
.resource-card {
    border-radius: 16px;
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
    height: 100%;
    background: white;
    display: flex;
    flex-direction: column;
}

.resource-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

.card-thumbnail {
    height: 140px;
    background-color: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px 16px 0 0;
    position: relative;
}

@media (min-width: 768px) {
    .card-thumbnail {
        height: 160px;
    }
}

.badge-type {
    position: absolute;
    top: 12px;
    right: 12px;
    font-size: 10px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 6px;
}

/* Course List */
/* Hero Section */
.course-hero-section {
    background: linear-gradient(135deg, #7C3AED 0%, #9333ea 50%, #4338ca 100%);
    border-radius: 24px;
    color: white;
    padding: 3rem 1.5rem;
    position: relative;
    overflow: hidden;
}

/* Course Card */
.course-course-card {
    border-radius: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    height: 100%;
    border: 0;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    ;
}

.course-course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.card-img,
.card-img-bottom,
.card-img-top {
    width: 100%;
    height: 130px;
    object-fit: cover;
}

/* Search Component */
.course-search-wrapper {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 5px 15px;
    display: flex;
    align-items: center;
    position: relative;
}

.course-search-input {
    background: transparent;
    border: none;
    color: white;
    width: 100%;
    padding: 10px;
}

.course-search-input::placeholder {
    color: #ddd;
}

.course-search-input:focus {
    outline: none;
}

/* Progress Bar Styles */
.course-progress {
    margin-top: 12px;
}

.progress {
    height: 8px;
    border-radius: 10px;
    background-color: #e9ecef;
    overflow: hidden;
    /* Important for containing the progress bar */
}

.progress-bar {
    background: linear-gradient(90deg, #7C3AED, #9333ea);
    border-radius: 10px;
    display: flex;
    /* Ensure it's displayed */
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    color: #fff;
    text-align: center;
    white-space: nowrap;
    transition: width 0.6s ease;
    /* Smooth animation */
}

.progress-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
    font-size: 12px;
}

.progress-percentage {
    font-weight: 600;
    color: var(--primary-color);
}

.progress-chapters {
    color: #6c757d;
}

/* Sidebar Card */
.course-sidebar-card {
    background: white;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    padding: 1.5rem;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    ;
}

[data-bs-theme="dark"] .course-sidebar-card {
    background: #1e293b;
}

/* Pill Button */
.course-pill-button {
    border-radius: 50px;
    padding: 8px 24px;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dropdown Base Component */
.course-dropdown {
    position: relative;
    width: 100%;
    margin-bottom: 1rem;
}

.course-dropdown-trigger {
    width: 100%;
    padding: 14px 45px 14px 16px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    background: white;
    font-size: 14px;
    font-weight: 500;
    color: #334155;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

[data-bs-theme="dark"] .course-dropdown-trigger {
    background: #1e293b;
    border-color: var(--border-color);
    color: #334155;
}

.course-dropdown-trigger:hover {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
    transform: translateY(-1px);
}

.course-dropdown-trigger.course-active {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.2);
}

.course-dropdown-trigger::after {
    content: "\f282";
    /* bi-chevron-down */
    font-family: "bootstrap-icons";
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: var(--primary-color);
    font-size: 18px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.course-dropdown-trigger.course-active::after {
    transform: translateY(-50%) rotate(180deg);
}

.course-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    max-height: 300px;
    overflow-y: auto;
}

[data-bs-theme="dark"] .course-dropdown-menu {
    background: #1e293b;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.course-dropdown-menu.course-show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.course-dropdown-item {
    padding: 12px 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid rgba(226, 232, 240, 0.5);
    position: relative;
    overflow: hidden;
}

[data-bs-theme="dark"] .course-dropdown-item {
    border-bottom-color: rgba(51, 65, 85, 0.5);
}

.course-dropdown-item:last-child {
    border-bottom: none;
}

.course-dropdown-item:hover {
    background: linear-gradient(90deg, rgba(124, 58, 237, 0.05) 0%, rgba(124, 58, 237, 0.02) 100%);
    padding-left: 20px;
}

[data-bs-theme="dark"] .course-dropdown-item:hover {
    background: linear-gradient(90deg, rgba(124, 58, 237, 0.15) 0%, rgba(124, 58, 237, 0.05) 100%);
}

.course-dropdown-item.course-selected {
    background: var(--primary-light);
    color: var(--primary-color);
    font-weight: 600;
}

[data-bs-theme="dark"] .course-dropdown-item.course-selected {
    background: rgba(124, 58, 237, 0.2);
}

.course-dropdown-item.course-selected::before {
    content: "\f26e";
    /* check-lg */
    font-family: "bootstrap-icons";
    position: absolute;
    right: 16px;
    color: var(--primary-color);
    font-size: 18px;
}

.course-dropdown-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-light);
    border-radius: 6px;
    color: var(--primary-color);
    font-size: 16px;
}

[data-bs-theme="dark"] .course-dropdown-icon {
    background: rgba(124, 58, 237, 0.15);
}

.course-dropdown-content {
    flex: 1;
}

.course-dropdown-title {
    font-weight: 500;
    color: #334155;
    font-size: 14px;
    margin-bottom: 2px;
}

.course-dropdown-subtitle {
    font-size: 12px;
    color: #64748b;
}

/* Sort Dropdown Component */
.course-sort-dropdown {
    position: relative;
    display: inline-block;
}

.course-sort-trigger {
    padding: 8px 36px 8px 16px;
    border: 2px solid var(--border-color);
    border-radius: 50px;
    background: white;
    font-size: 14px;
    font-weight: 500;
    color: #334155;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 160px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

[data-bs-theme="dark"] .course-sort-trigger {
    background: #1e293b;
    border-color: var(--border-color);
    color: #334155;
}

.course-sort-trigger:hover {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
    transform: translateY(-1px);
}

.course-sort-trigger.course-active {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.2);
}

.course-sort-trigger::after {
    content: "\f282";
    /* chevron-down */
    font-family: "bootstrap-icons";
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: var(--primary-color);
    font-size: 18px;
    transition: transform 0.3s ease;
}

.course-sort-trigger.course-active::after {
    transform: translateY(-50%) rotate(180deg);
}

.course-sort-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-bs-theme="dark"] .course-sort-menu {
    background: #1e293b;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.course-sort-menu.course-show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.course-sort-item {
    padding: 10px 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 14px;
}

.course-sort-item:hover {
    background: var(--primary-light);
    padding-left: 20px;
}

[data-bs-theme="dark"] .course-sort-item:hover {
    background: rgba(124, 58, 237, 0.15);
}

.course-sort-item.course-selected {
    color: var(--primary-color);
    font-weight: 600;
}

.course-sort-item.course-selected .course-sort-check {
    opacity: 1;
    transform: scale(1);
}

.course-sort-check {
    color: var(--primary-color);
    font-size: 18px;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.2s ease;
}

/* Search Suggestions Component */
.course-search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-radius: 12px;
    margin-top: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    display: none;
    z-index: 1000;
    overflow: hidden;
}

[data-bs-theme="dark"] .course-search-suggestions {
    background: #1e293b;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.course-search-suggestions.course-show {
    display: block;
    animation: efSlideDown 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes efSlideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

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

.course-suggestion-item {
    padding: 12px 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid rgba(226, 232, 240, 0.5);
}

[data-bs-theme="dark"] .course-suggestion-item {
    border-bottom-color: rgba(51, 65, 85, 0.5);
}

.course-suggestion-item:hover {
    background: linear-gradient(90deg, rgba(124, 58, 237, 0.05) 0%, rgba(124, 58, 237, 0.02) 100%);
    padding-left: 20px;
}

[data-bs-theme="dark"] .course-suggestion-item:hover {
    background: linear-gradient(90deg, rgba(124, 58, 237, 0.15) 0%, rgba(124, 58, 237, 0.05) 100%);
}

.course-suggestion-item:last-child {
    border-bottom: none;
}

.course-suggestion-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-light);
    border-radius: 10px;
    color: var(--primary-color);
    font-size: 20px;
}

[data-bs-theme="dark"] .course-suggestion-icon {
    background: rgba(124, 58, 237, 0.15);
}

.course-suggestion-text {
    flex: 1;
}

.course-suggestion-title {
    font-weight: 500;
    color: #334155;
    font-size: 14px;
    margin-bottom: 2px;
}

.course-suggestion-category {
    font-size: 12px;
    color: #64748b;
}

/* Utility Classes */
.course-btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    border-radius: 10px;
}

.course-btn-primary:hover {
    background-color: #6d28d9;
    border-color: #6d28d9;
}

/* ===== RESPONSIVE STYLES ===== */
@media (max-width: 991.98px) {
    .course-hero-section {
        padding: 2rem 1rem;
    }

    .course-hero-section h1 {
        font-size: 2rem;
    }

    .course-hero-section p {
        font-size: 1rem;
    }

    .course-sidebar-card {
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 767.98px) {
    .course-hero-section {
        padding: 1.5rem 1rem;
        text-align: center;
    }

    .course-hero-section h1 {
        font-size: 1.75rem;
    }

    .course-search-wrapper {
        max-width: 100%;
    }

    .d-flex.gap-2 {
        justify-content: center;
        margin-bottom: 1rem;
    }

    .d-flex.align-items-center.gap-2 {
        justify-content: center;
    }
}

@media (max-width: 575.98px) {
    .course-hero-section {
        padding: 1.25rem 0.75rem;
    }

    .course-hero-section h1 {
        font-size: 1.5rem;
    }

    .course-hero-section p {
        font-size: 0.9rem;
    }

    .course-pill-button {
        padding: 6px 16px;
        font-size: 0.875rem;
    }

    .course-course-card .card-title {
        font-size: 0.95rem;
    }
}

/* Contact Us */
/* Hero Section */
.course-hero-section {
    background: linear-gradient(135deg, #7C3AED 0%, #9333ea 50%, #4338ca 100%);
    border-radius: 24px;
    color: white;
    padding: 3rem 1.5rem;
    position: relative;
    overflow: hidden;
}

/* Course Card */
.course-course-card {
    border-radius: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    height: 100%;
    border: 0;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    ;
}

.course-course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

/* Search Component */
.course-search-wrapper {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 5px 15px;
    display: flex;
    align-items: center;
    position: relative;
}

.course-search-input {
    background: transparent;
    border: none;
    color: white;
    width: 100%;
    padding: 10px;
}

.course-search-input::placeholder {
    color: #ddd;
}

.course-search-input:focus {
    outline: none;
}

/* Sidebar Card */
.course-sidebar-card {
    background: white;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    padding: 1.5rem;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    ;
}

[data-bs-theme="dark"] .course-sidebar-card {
    background: #1e293b;
}

/* Pill Button */
.course-pill-button {
    border-radius: 50px;
    padding: 8px 24px;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Custom Select Styles */
.course-select {
    position: relative;
    width: 100%;
    margin-bottom: 1rem;
}

.course-select-field {
    width: 100%;
    padding: 14px 45px 14px 16px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    background: white;
    font-size: 14px;
    font-weight: 500;
    color: #334155;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    position: relative;
}

[data-bs-theme="dark"] .course-select-field {
    background: #1e293b;
    border-color: var(--border-color);
    color: #334155;
}

.course-select-field:hover {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
    transform: translateY(-1px);
}

.course-select-field:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.2);
}

.course-select::after {
    content: '';
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid var(--primary-color);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.course-select:hover::after {
    transform: translateY(-50%) rotate(180deg);
}

/* Sort Select Styles */
.course-sort-select {
    position: relative;
    display: inline-block;
}

.course-sort-field {
    padding: 8px 36px 8px 16px;
    border: 2px solid var(--border-color);
    border-radius: 50px;
    background: white;
    font-size: 14px;
    font-weight: 500;
    color: #334155;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 160px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

[data-bs-theme="dark"] .course-sort-field {
    background: #1e293b;
    border-color: var(--border-color);
    color: #334155;
}

.course-sort-field:hover {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
    transform: translateY(-1px);
}

.course-sort-field:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.2);
}

.course-sort-select::after {
    content: '';
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid var(--primary-color);
    transition: transform 0.3s ease;
}

.course-sort-select:hover::after {
    transform: translateY(-50%) rotate(180deg);
}

/* Search Suggestions Component - CSS Only */
.course-search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-radius: 12px;
    margin-top: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    display: none;
    z-index: 1000;
    overflow: hidden;
}

[data-bs-theme="dark"] .course-search-suggestions {
    background: #1e293b;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.course-search-wrapper:hover .course-search-suggestions,
.course-search-input:focus~.course-search-suggestions {
    display: block;
    animation: efSlideDown 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes efSlideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

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

.course-suggestion-item {
    padding: 12px 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid rgba(226, 232, 240, 0.5);
}

[data-bs-theme="dark"] .course-suggestion-item {
    border-bottom-color: rgba(51, 65, 85, 0.5);
}

.course-suggestion-item:hover {
    background: linear-gradient(90deg, rgba(124, 58, 237, 0.05) 0%, rgba(124, 58, 237, 0.02) 100%);
    padding-left: 20px;
}

[data-bs-theme="dark"] .course-suggestion-item:hover {
    background: linear-gradient(90deg, rgba(124, 58, 237, 0.15) 0%, rgba(124, 58, 237, 0.05) 100%);
}

.course-suggestion-item:last-child {
    border-bottom: none;
}

.course-suggestion-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-light);
    border-radius: 10px;
    color: var(--primary-color);
    font-size: 20px;
}

[data-bs-theme="dark"] .course-suggestion-icon {
    background: rgba(124, 58, 237, 0.15);
}

.course-suggestion-text {
    flex: 1;
}

.course-suggestion-title {
    font-weight: 500;
    color: #334155;
    font-size: 14px;
    margin-bottom: 2px;
}

.course-suggestion-category {
    font-size: 12px;
    color: #64748b;
}

/* Utility Classes */
.course-btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    border-radius: 10px;
}

.course-btn-primary:hover {
    background-color: #6d28d9;
    border-color: #6d28d9;
}

/* ===== RESPONSIVE STYLES ===== */
@media (max-width: 991.98px) {
    .course-hero-section {
        padding: 2rem 1rem;
    }

    .course-hero-section h1 {
        font-size: 2rem;
    }

    .course-hero-section p {
        font-size: 1rem;
    }

    .course-sidebar-card {
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 767.98px) {
    .course-hero-section {
        padding: 1.5rem 1rem;
        text-align: center;
    }

    .course-hero-section h1 {
        font-size: 1.75rem;
    }

    .course-search-wrapper {
        max-width: 100%;
    }

    .d-flex.gap-2 {
        justify-content: center;
        margin-bottom: 1rem;
    }

    .d-flex.align-items-center.gap-2 {
        justify-content: center;
    }
}

@media (max-width: 575.98px) {
    .course-hero-section {
        padding: 1.25rem 0.75rem;
    }

    .course-hero-section h1 {
        font-size: 1.5rem;
    }

    .course-hero-section p {
        font-size: 0.9rem;
    }

    .course-pill-button {
        padding: 6px 16px;
        font-size: 0.875rem;
    }

    .course-course-card .card-title {
        font-size: 0.95rem;
    }
}

/* My Profiles */
.profile-header-card {
    background: white;
    border: 1px solid #f0f0f0;
    border-radius: 1.5rem;
    padding: 2.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.profile-img-container {
    position: relative;
    width: 128px;
    height: 128px;
}

.profile-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 4px solid rgba(106, 77, 255, 0.1);
    object-fit: cover;
}

/* Modal Profile Photo Edit */
.modal.fade.show {
    background: #0000006e;
    z-index: 9999;
}

.modal-profile-edit {
    position: relative;
    width: 100px;
    height: 100px;
    margin: 0 auto 1.5rem;
}

.modal-profile-edit img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-color);
}

.photo-edit-btn {
    position: absolute;
    bottom: 0;
    right: 0;
    background: var(--primary-color);
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid white;
    cursor: pointer;
    transition: transform 0.2s;
}

.photo-edit-btn:hover {
    transform: scale(1.1);
}

/* Action Cards */
.action-card {
    background: white;
    border: 1px solid #f0f0f0;
    border-radius: 1.25rem;
    padding: 1.5rem;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    height: 100%;
    display: block;
    cursor: pointer;
}

.action-card:hover {
    border-color: rgba(106, 77, 255, 0.5);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
    color: inherit;
}

.btn-primary-custom {
    background-color: var(--primary-color);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    font-weight: 700;
    color: white;
}

.btn-primary-custom:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(108, 78, 255, 0.3);
}

/* Modal Customization */
.modal-content {
    border-radius: 1.5rem;
    border: none;
}

.modal-header {
    border-bottom: 1px solid #f0f0f0;
    padding: 1.5rem;
}

/* Success */
.success-card {
    max-width: 550px;
    width: 100%;
    background: white;
    border-radius: 24px;
    border: none;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.05);
    /* Soft gradient effect matching original design */
    background: radial-gradient(circle at center, rgba(108, 78, 255, 0.04) 0%, white 70%);
}

.payment-receipt-details {
    background-color: #f8fafc;
    border-radius: 16px;
    padding: 24px;
    border: 1px solid #f1f5f9;
}

/* Failed */
.error-card {
    background: white;
    border-radius: 24px;
    border: none;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    position: relative;
}

.error-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(248, 113, 113, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

/* Course Details */
.course-details-page {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--bg-light);
    padding-bottom: 90px;
    /* Space for mobile footer */
    overflow-x: hidden;
}

/* --- 1. MAIN BANNER --- */
.course-details-hero-banner {
    width: 100%;
    height: 250px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.course-details-hero-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.course-details-hero-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(rgba(108, 78, 255, 0.8), rgba(108, 78, 255, 0.9));
    z-index: -1;
}

/* --- 2. CSS TAB LOGIC (NO JS) --- */
.course-details-tab-state {
    display: none;
}

.course-details-tab-pane {
    display: none;
    animation: course-details-fadeIn 0.4s ease;
}

@keyframes course-details-fadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

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

/* Logic to show content based on radio check */
#course-details-tab1:checked~.container .course-details-tab-content-wrapper #course-details-overview,
#course-details-tab2:checked~.container .course-details-tab-content-wrapper #course-details-curriculum,
#course-details-tab3:checked~.container .course-details-tab-content-wrapper #course-details-instructor,
#course-details-tab4:checked~.container .course-details-tab-content-wrapper #course-details-reviews {
    display: block;
}

/* Nav Labels Style - Responsive */
.course-details-nav-tabs {
    display: flex;
    background: white;
    border-bottom: 1px solid var(--border-color);
    overflow-x: auto;
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE and Edge */
}

.course-details-nav-tabs::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari, Opera */
}

.course-details-tab-label {
    padding: 1rem 0.75rem;
    cursor: pointer;
    font-weight: 700;
    color: var(--text-muted);
    border-bottom: 3px solid transparent;
    transition: 0.3s;
    margin-bottom: -1px;
    font-size: 0.9rem;
    white-space: nowrap;
    flex: 1;
    text-align: center;
}

/* Active State Style */
#course-details-tab1:checked~.sticky-top .course-details-tab-label[for="course-details-tab1"],
#course-details-tab2:checked~.sticky-top .course-details-tab-label[for="course-details-tab2"],
#course-details-tab3:checked~.sticky-top .course-details-tab-label[for="course-details-tab3"],
#course-details-tab4:checked~.sticky-top .course-details-tab-label[for="course-details-tab4"] {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

/* --- 3. REVIEWS & RATING BOX --- */
.course-details-rating-box {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    background: white;
}

.course-details-progress {
    background-color: #f1f5f9;
    height: 8px;
    border-radius: 5px;
}

.course-details-progress-bar {
    background-color: #FFB800 !important;
}

.course-details-rating-stars {
    color: #FFB800;
}

.course-details-review-card {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    background: white;
    margin-bottom: 1rem;
}

/* Review Reply Styles - Responsive */
.course-details-review-reply {
    background-color: #f8f9fd;
    border-radius: var(--radius-lg);
    padding: 1rem;
    margin-top: 1rem;
    margin-left: 0;
    border-left: 3px solid var(--primary-color);
}

.course-details-review-reply-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
}

.instructor-badge {
    background-color: var(--primary-color);
    color: white;
    font-size: 0.7rem;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
}

.course-details-reply-form {
    display: none;
    margin-top: 1rem;
    padding: 1rem;
    background-color: #f8f9fd;
    border-radius: var(--radius-lg);
}

.course-details-reply-form.show {
    display: block;
}

/* --- 4. STICKY SIDEBAR & FOOTER --- */
.course-details-sidebar {
    position: sticky;
    top: 100px;
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-color);
    background: white;
}

.course-details-mobile-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    padding: 1rem;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.08);
    display: none;
    z-index: 1000;
}

.course-details-btn-primary {
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--radius-lg);
    padding: 12px 24px;
    font-weight: 700;
    transition: 0.3s;
    width: 100%;
}

.course-details-btn-primary:hover {
    background-color: #583edb;
    transform: translateY(-2px);
    color: white;
}

.course-details-btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    border-radius: var(--radius-lg);
    padding: 6px 12px;
    font-weight: 600;
    font-size: 0.85rem;
    transition: 0.3s;
}

.course-details-btn-secondary:hover {
    background-color: var(--primary-color);
    color: white;
}

/* Star rating styles - Touch friendly */
.course-detail-star-rating .star {
    font-size: 2rem;
    color: #ddd;
    cursor: pointer;
    transition: color 0.2s;
    padding: 0.25rem;
}

.course-detail-star-rating .star.active {
    color: #FFB800;
}

.course-detail-btn-primary-custom {
    background-color: var(--primary-color);
    border: none;
    border-radius: var(--radius-lg);
    padding: 12px 20px;
    font-weight: 700;
    transition: 0.3s;
    width: 100%;
}

.course-detail-btn-primary-custom:hover {
    background-color: #583edb;
    transform: translateY(-2px);
}

/* Curriculum responsive improvements */
.curriculum-section {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 1rem;
}

.curriculum-header {
    padding: 1rem;
    background: white;
    cursor: pointer;
    transition: background-color 0.3s;
}

.curriculum-header:hover {
    background-color: #f8f9fa;
}

.curriculum-content {
    padding: 0;
}

.curriculum-lesson {
    padding: 0.75rem 1rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Responsive Breakpoints */

/* Extra Small Devices (phones, 575px and down) */
@media (max-width: 575px) {
    .course-details-hero-banner {
        height: 180px;
    }

    .container {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }

    .course-details-tab-label {
        padding: 0.875rem 0.5rem;
        font-size: 0.85rem;
    }

    .course-details-rating-box {
        padding: 1rem;
    }

    .course-details-rating-box h2 {
        font-size: 2.5rem !important;
    }

    .course-details-review-card {
        padding: 1rem;
    }

    .course-details-review-reply {
        padding: 0.75rem;
    }

    .course-details-reply-form {
        padding: 0.75rem;
    }

    .modal-content {
        margin: 1rem;
        padding: 1.5rem !important;
    }

    .course-detail-star-rating .star {
        font-size: 1.75rem;
    }

    .curriculum-header {
        padding: 0.75rem;
    }

    .curriculum-lesson {
        padding: 0.5rem 0.75rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

/* Small Devices (landscape phones, 576px to 767px) */
@media (min-width: 576px) and (max-width: 767px) {
    .course-details-hero-banner {
        height: 200px;
    }

    .course-details-tab-label {
        padding: 1rem 0.75rem;
        font-size: 0.9rem;
    }

    .course-details-rating-box {
        padding: 1.25rem;
    }
}

/* Medium Devices (tablets, 768px to 991px) */
@media (min-width: 768px) and (max-width: 991px) {
    .course-details-hero-banner {
        height: 220px;
    }

    .course-details-nav-tabs {
        gap: 1.5rem;
    }

    .course-details-tab-label {
        padding: 1.125rem 0;
        font-size: 0.925rem;
    }
}

/* Large Devices (desktops, 992px to 1199px) */
@media (min-width: 992px) and (max-width: 1199px) {
    .course-details-hero-banner {
        height: 260px;
    }

    .course-details-nav-tabs {
        gap: 2rem;
    }
}

/* Extra Large Devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .course-details-hero-banner {
        height: 300px;
    }

    .course-details-nav-tabs {
        gap: 2.5rem;
    }

    .course-details-tab-label {
        padding: 1.25rem 0;
        font-size: 0.95rem;
    }
}

/* Common responsive styles */
@media (max-width: 991px) {
    .course-details-mobile-footer {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 1rem;
    }

    .course-details-review-reply {
        margin-left: 0.5rem;
    }
}

@media (min-width: 992px) {
    .course-details-sidebar {
        padding: 1.5rem;
    }

    .course-details-review-reply {
        margin-left: 2rem;
    }
}

/* Video Modal Styles */
.video-modal .modal-dialog {
    max-width: 900px;
}

.video-modal .modal-content {
    background-color: #000;
    border: none;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.video-modal .modal-header {
    border-bottom: none;
    padding: 1rem;
    background-color: #000;
}

.video-modal .modal-body {
    padding: 0;
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 Aspect Ratio */
}

.video-modal .modal-body iframe,
.video-modal .modal-body video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.video-modal .btn-close {
    filter: invert(1);
    opacity: 0.8;
}

.video-modal .btn-close:hover {
    opacity: 1;
}

/* Video Play Button Styles */
.video-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 2;
}

.video-play-btn:hover {
    background-color: white;
    transform: translate(-50%, -50%) scale(1.1);
}

.video-play-btn i {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-left: 3px;
    /* Center the triangle shape */
}

.badge.complete-lesson {
    background-color: #ffc10726;
    color: #FFC106 !important;
}

/* Quiz History */
.quiz-card {
    background: white;
    border-radius: 1.25rem;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    height: 100%;
}

.quiz-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.stat-badge {
    font-size: 0.65rem;
    font-weight: 700;
    padding: 8px;
    border-radius: 12px;
    text-align: center;
}

/* Quiz Result */
.custom-card {
    background: white;
    border-radius: 24px;
    border: 1px solid var(--card-border);
    padding: 1rem;
    height: 100%;
    transition: all 0.3s ease;
}

.custom-card:hover {
    border-color: rgba(124, 58, 237, 0.2);
}

/* Progress Circle */
.progress-ring {
    position: relative;
}

.progress-ring .score {
    font-size: 40px;
}

.progress-ring circle {
    fill: transparent;
    stroke-width: 12;
    transform: rotate(-90deg);
    transform-origin: 50% 50%;
}

.stat-box {
    border-radius: 24px;
    padding: 16px;
    text-align: center;
    border: 1px solid transparent;
}

/* Question Styles */
.option-box {
    border: 2px solid #f1f5f9;
    border-radius: 16px;
    padding: 1rem;
    /* margin-bottom: 1rem; */
    font-weight: 500;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.option-correct {
    border-color: #10b981;
    background-color: #f0fdf4;
    color: #065f46;
    font-weight: 700;
}

.option-incorrect {
    border-color: #ef4444;
    background-color: #fef2f2;
    color: #991b1b;
    font-weight: 700;
}

/* Quiz List */
.quiz-card-custom {
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    background: white;
    transition: all 0.3s ease;
}

.quiz-card-custom:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.quiz-search-container {
    position: relative;
}

.quiz-search-container i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
}

.quiz-search-container input {
    padding-left: 45px;
    border-radius: 12px;
    background-color: #ffffff;
}

.quiz-badge-custom {
    padding: 6px 12px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.quiz-play-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px 0 rgba(108, 78, 255, 0.3);
    transition: transform 0.2s;
}

.quiz-play-btn:hover {
    transform: scale(1.1);
    color: white;
}
.quiz-download-btn {
    background: rgba(108, 78, 255, 0.1);
    color: var(--primary-color);
}

.quiz-download-btn:hover {
    transform: scale(1.1);
    background: rgba(108, 78, 255, 0.2);
    color: var(--primary-color);
}

.quiz-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.quiz-action-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
}

.tooltip-custom {
    position: relative;
}

.tooltip-custom::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 120%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #333;
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.tooltip-custom:hover::after {
    opacity: 1;
}
@media (max-width: 768px) {
    .quiz-actions {
        flex-direction: column;
        gap: 8px;
    }
    
    .quiz-action-btn {
        width: 48px;
        height: 48px;
    }
}

/* Quiz Exam */
.card-quiz {
    background: white;
    border: 1px solid #f1f5f9;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.option-label {
    display: flex;
    align-items: center;
    padding: 14px;
    border-radius: 16px;
    border: 2px solid #f1f5f9;
    margin-bottom: 1rem;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 500;
}

.option-label:hover {
    border-color: var(--primary-color);
    background-color: rgba(108, 78, 255, 0.05);
}

.option-label.active {
    border-color: var(--primary-color);
    background-color: var(--primary-light);
    color: var(--primary-color);
    font-weight: 700;
}

.radio-custom {
    width: 18px;
    height: 18px;
    border: 2px solid #cbd5e1;
    border-radius: 50%;
    margin-right: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.active .radio-custom {
    border-color: var(--primary-color);
}

.radio-inner {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: transparent;
}

.active .radio-inner {
    background: var(--primary-color);
}

.question-grid-item {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 600;
    background: #f1f5f9;
    color: #64748B;
    transition: all 0.2s;
}

.grid-answered {
    background: var(--primary-light);
    color: var(--primary-color);
    border: 1px solid rgba(108, 78, 255, 0.2);
}

.grid-current {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 4px 12px rgba(108, 78, 255, 0.3);
}

.sticky-sidebar {
    position: sticky;
    top: 2rem;
}

.quiz-skip-btn {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.question-image-container {
    width: 100%;
    overflow: hidden;
    display: flex;
    justify-content: center;
}

.question-img {
    max-height: 240px;
    object-fit: contain;
    display: block;
    border-radius: 16px;
    margin-bottom: 14px;
}

/* Mobile specific styles */
@media (max-width: 768px) {
    .card-quiz {
        padding: 1rem;
    }

    .question-img {
        max-height: 200px;
    }

    .option-label {
        padding: 0.875rem;
    }

    .question-grid-item {
        width: 36px;
        height: 36px;
        font-size: 0.75rem;
    }

    .sticky-sidebar {
        position: relative;
        top: 0;
        margin-top: 1.5rem;
    }
}

@media (max-width: 576px) {
    .card-quiz {
        padding: 0.75rem;
    }

    .option-label {
        padding: 0.75rem;
        font-size: 0.9rem;
    }

    .radio-custom {
        width: 20px;
        height: 20px;
        margin-right: 0.75rem;
    }

    .radio-inner {
        width: 8px;
        height: 8px;
    }

    .question-grid-item {
        width: 32px;
        height: 32px;
        font-size: 0.7rem;
    }
}

.timer-show {
    background: var(--purple-light);
    color: var(--primary-color);
}

/* Ai Quiz Generate */
.ai-quiz-hero-wrapper {
    padding: 2rem 1rem 1rem;
    text-align: center;
}

.ai-quiz-title {
    font-weight: 800;
    font-size: clamp(2rem, 8vw, 3.5rem);
    background: linear-gradient(135deg, var(--primary-color) 0%, #4F46E5 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 5px;
}

/* Main Card */
.ai-quiz-main-card {
    background: var(--custom-card-bg);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius-xxl);
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    padding: 2rem;
    margin-bottom: 4rem;
}

/* Form Labels & Icons */
.ai-quiz-label-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 0.75rem;
}

.ai-quiz-icon-container {
    width: 40px;
    height: 40px;
    background: var(--primary-light);
    border-radius: var(--border-radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: var(--font-size-lg);
}

.ai-quiz-control-label {
    font-weight: 700;
    font-size: var(--font-size-base);
    margin: 0;
}

/* Inputs & Selects */
.ai-quiz-input {
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 0.85rem 1rem;
    font-weight: 500;
    width: 100%;
    transition: all 0.2s ease;
    background-color: var(--custom-input-bg);
    color: var(--text-dark);
}

.ai-quiz-input:focus {
    outline: none;
    border-color: var(--primary-color);
    background-color: var(--custom-card-bg);
}

/* Difficulty Toggle */
.ai-quiz-diff-wrapper {
    background: var(--border-color);
    padding: 4px;
    border-radius: var(--border-radius-lg);
    display: flex;
    width: 100%;
}

.ai-quiz-diff-btn {
    flex: 1;
    border: none;
    background: transparent;
    padding: 0.75rem 0.5rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: var(--font-size-sm);
    color: var(--text-muted);
    transition: all 0.2s ease;
}

.ai-quiz-diff-btn.active {
    background: var(--custom-card-bg);
    color: var(--primary-color);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

/* Submit Button */
.ai-quiz-btn-submit {
    background: var(--primary-color);
    color: #ffffff;
    border: none;
    border-radius: var(--border-radius-xl);
    padding: 1.25rem;
    width: 100%;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.ai-quiz-btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px var(--purple-light);
    filter: brightness(1.1);
}

/* Responsive Grid */
.ai-quiz-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .ai-quiz-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .ai-quiz-full-width {
        grid-column: span 2;
    }
}

/* Difficulty Toggle - Radio Button Style */
.ai-quiz-diff-wrapper {
    background: var(--border-color);
    padding: 4px;
    border-radius: var(--border-radius-lg);
    display: flex;
    width: 100%;
    position: relative;
}

.ai-quiz-diff-option {
    position: relative;
    flex: 1;
    z-index: 2;
}

.ai-quiz-diff-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.ai-quiz-diff-label {
    display: block;
    text-align: center;
    padding: 0.75rem 0.5rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: var(--font-size-sm);
    color: var(--text-muted);
    transition: all 0.2s ease;
    cursor: pointer;
    user-select: none;
}

.ai-quiz-diff-option input[type="radio"]:checked+.ai-quiz-diff-label {
    background: var(--custom-card-bg);
    color: var(--primary-color);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

/* Instructor Profile */
.instructor-hero-gradient {
    background: linear-gradient(135deg, #6C4EFF 0%, #8E2DE2 50%, #4A00E0 100%);
    padding-top: 3rem;
    padding-bottom: 5rem;
    position: relative;
}

/* Responsive Profile Image */
.instructor-profile-img-container {
    width: 140px;
    height: 140px;
    border: 4px solid white;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 2;
}

@media (min-width: 768px) {
    .instructor-profile-img-container {
        width: 140px;
        height: 140px;
    }
}

.glass-card {
    background: rgb(255, 255, 255);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(108, 78, 255, 0.05);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    height: 100%;
}

.stats-icon {
    width: 50px;
    height: 50px;
    background: rgba(108, 78, 255, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1.5rem;
}

.course-card {
    background: white;
    border: 1px solid #eee;
    border-radius: 20px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(108, 78, 255, 0.1);
}

/* --- Updated Tab Styling for Bootstrap Compatibility --- */
.nav-pills-custom {
    background: #eee;
    padding: 6px;
    border-radius: 50px;
    display: inline-flex;
    border: none;
}

.nav-pills-custom .nav-link-instructor {
    border-radius: 50px;
    padding: 10px 30px;
    font-weight: 700;
    color: #666;
    transition: all 0.3s ease;
    border: none;
}

.nav-pills-custom .nav-link-instructor.active {
    background-color: var(--primary-color) !important;
    color: white !important;
    box-shadow: 0 5px 15px rgba(108, 78, 255, 0.3);
}

/* Polls */
.poll-option-radio {
    display: none;
}

.poll-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem;
    border: 1px solid #f1f5f9;
    border-radius: 1rem;
    cursor: pointer;
    transition: all 0.2s;
    background: white;
}

.poll-option-radio:checked+.poll-label {
    border-color: var(--primary-color);
    background-color: rgba(108, 78, 255, 0.05);
}

.radio-circle {
    width: 24px;
    height: 24px;
    border: 2px solid #dee2e6;
    border-radius: 50%;
}

.poll-option-radio:checked+.poll-label .radio-circle {
    border-color: var(--primary-color);
    background-color: var(--primary-color);
    box-shadow: inset 0 0 0 4px white;
}

/* Empty State */
.empty-state-icon {
    font-size: 8rem;
    color: #c084fc;
    opacity: 0.8;
    filter: drop-shadow(0 10px 15px rgba(124, 58, 237, 0.2));
}

/* main section bg */
.main-section-bg {
    background: linear-gradient(135deg, #7C3AED 0%, #9333ea 50%, #4338ca 100%);
}

/* Breadcrumb Responsive Styling */
.breadcrumb-container {
    margin-top: -25px;
    position: relative;
    z-index: 10;
}

.breadcrumb {
    --bs-breadcrumb-divider: '›';
    font-size: 0.85rem;
    background: white;
    padding: 10px 20px;
    border-radius: 14px;
    display: inline-flex;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    max-width: 100%;
    overflow-x: auto;
    white-space: nowrap;
}

/* Hide scrollbars for breadcrumbs but keep functionality */
.breadcrumb::-webkit-scrollbar {
    display: none;
}

.breadcrumb {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.lead {
    font-size: 18px;
    font-weight: 300;
}

/* Categories */
/* Custom Glassmorphism Card */
.glass-card-custom {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(108, 78, 255, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glass-card-custom:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(108, 78, 255, 0.12);
}

.glass-card-custom:hover .icon-box {
    transform: scale(1.1);
}

/* Custom Dropdown Styling */
.custom-home-dropdown {
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 0.5rem;
    min-width: 180px;
}

.custom-home-dropdown .dropdown-item {
    padding: 0.7rem 1rem;
    border-radius: 5px;
    transition: all 0.2s ease;
    font-size: 14px;
    font-weight: 500;
}

.custom-home-dropdown .dropdown-item:hover {
    background-color: #f8f9fa;
    /* Or your theme color */
    color: #007bff;
    transform: translateX(5px);
}

.custom-home-dropdown .dropdown-item.active {
    background-color: #f8f9fa;
    /* Or your theme color */
    color: var(--primary-color);
    transform: translateX(5px);
}

/* Ensure mobile responsiveness */
@media (max-width: 991.98px) {
    .custom-home-dropdown {
        background: transparent;
        box-shadow: none;
        padding-left: 1.5rem;
    }

    .nav-link.dropdown-toggle::after {
        float: right;
        margin-top: 10px;
    }
}

/* Toast Styling */
.neo-toast {
    backdrop-filter: blur(12px) saturate(180%);
    border-radius: 16px !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.1);
    margin-bottom: 1rem;
    min-width: 350px;
    overflow: hidden;
    transition: all 0.3s ease;
}

/* Type Specific Backgrounds - Vibrant Full Box */
.neo-success {
    background: rgba(16, 185, 129, 0.9) !important;
    color: #fff !important;
}

.neo-info {
    background: rgba(59, 130, 246, 0.9) !important;
    color: #fff !important;
}

.neo-warning {
    background: rgba(245, 158, 11, 0.95) !important;
    color: #fff !important;
}

.neo-error {
    background: rgba(239, 68, 68, 0.9) !important;
    color: #fff !important;
}

/* Entrance Animation */
.toast.showing {
    animation: toastEnter 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes toastEnter {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.9);
    }

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

.icon-box {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-size: 1.5rem;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    color: #fff;
}

/* Progress Bar - Discrete at bottom */
.toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 4px;
    width: 100%;
    background: rgba(0, 0, 0, 0.1);
}

.toast-progress-bar {
    height: 100%;
    width: 100%;
    background: rgba(255, 255, 255, 0.5);
    animation: shrinkProgress 5s linear forwards;
}

@keyframes shrinkProgress {
    from {
        width: 100%;
    }

    to {
        width: 0%;
    }
}

/* Demo Buttons */
.btn-demo {
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: #ffffff;
    color: #475569;
}

.btn-demo:hover {
    background: #ffffff;
    color: #0f172a;
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.05);
}

.btn-success-neo:hover {
    border-color: #10b981;
    color: #10b981;
}

.btn-info-neo:hover {
    border-color: #3b82f6;
    color: #3b82f6;
}

.btn-warning-neo:hover {
    border-color: #f59e0b;
    color: #f59e0b;
}

.btn-danger-neo:hover {
    border-color: #ef4444;
    color: #ef4444;
}

/* Make close button white for dark backgrounds */
.btn-close-custom {
    filter: brightness(0) invert(1);
    opacity: 0.8;
    font-size: 0.7rem;
}
.btn-close-custom:hover { opacity: 1; }

.ai-quiz-upload-input {
    position: absolute;
    left: -9999px;
}

.ai-quiz-upload-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 2px dashed var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 1rem;
    background-color: var(--custom-input-bg);
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
}

.ai-quiz-upload-label:hover {
    border-color: var(--primary-color);
    background-color: var(--primary-light);
    color: var(--primary-color);
}

.ai-quiz-upload-label i {
    font-size: 1.5rem;
}

/* Textarea */
.ai-quiz-textarea {
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 0.85rem 1rem;
    font-weight: 500;
    width: 100%;
    transition: all 0.2s ease;
    background-color: var(--custom-input-bg);
    color: var(--text-dark);
    resize: vertical;
    min-height: 100px;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.ai-quiz-textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background-color: var(--custom-card-bg);
}