body {
    font-family: 'Source Sans Pro', sans-serif;
    background-color: #f4f6f9;
    overflow-x: hidden;
}

body.locale-bn,
body.locale-bn button,
body.locale-bn input,
body.locale-bn select,
body.locale-bn textarea {
    font-family: 'Noto Sans Bengali', 'Hind Siliguri', 'SolaimanLipi', sans-serif;
}

body.locale-hi,
body.locale-hi button,
body.locale-hi input,
body.locale-hi select,
body.locale-hi textarea {
    font-family: 'Noto Sans Devanagari', 'Nirmala UI', 'Mangal', sans-serif;
}

.wrapper {
    display: flex;
    width: 100%;
    align-items: stretch;
    min-height: 100vh;
    height: 100vh;
    overflow: hidden;
}

/* Sidebar Styles */
#sidebar {
    min-width: 260px;
    max-width: 260px;
    background: #222e3c;
    color: #adb5bd;
    transition: all 0.35s ease;
    display: flex;
    flex-direction: column;
    z-index: 1000;
    height: 100vh;
    overflow-y: auto;
}

#sidebar.active {
    margin-left: -260px;
}

#sidebar .sidebar-header {
    padding: 1.5rem 1.5rem 1rem;
    background: #222e3c;
}

#sidebar .sidebar-header h3 {
    color: #f8f9fa;
    font-size: 1.15rem;
    margin: 0;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.user-panel {
    padding: 1.5rem 1.5rem 0.75rem;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
}

.user-panel img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 12px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    object-fit: cover;
}

.user-panel .info a {
    color: #dee2e6;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    display: block;
    line-height: 1.2;
}

.user-panel .info small {
    color: #8a94a6;
    font-size: 0.75rem;
}

#sidebar .sidebar-nav-header {
    padding: 1.25rem 1.5rem 0.5rem;
    font-size: 0.725rem;
    font-weight: 700;
    color: #7f8b99;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

#sidebar ul.components {
    padding: 0 0 0.75rem 0;
    margin: 0;
    list-style: none;
}

#sidebar ul li a {
    padding: 0.65rem 1.5rem;
    display: flex;
    align-items: center;
    color: #adb5bd;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

#sidebar ul li a:hover {
    color: #d1d8e0;
    background: rgba(255, 255, 255, 0.05);
}

#sidebar ul li a.active {
    color: #f8f9fa;
    background: linear-gradient(90deg, rgba(59, 125, 221, 0.1) 0%, rgba(59, 125, 221, 0.02) 100%);
    border-left-color: #3b7ddd;
}

#sidebar ul li a i {
    margin-right: 12px;
    width: 18px;
    text-align: center;
    font-size: 0.95rem;
    opacity: 0.85;
}

/* Content Styles */
#content {
    width: 100%;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    height: 100vh;
    overflow-y: auto;
}

/* Navbar Styles */
.main-header {
    background: #fff;
    border-bottom: 1px solid #e9ecef;
    padding: 0.75rem 1.5rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.03);
    z-index: 999;
}

/* Main Content Area */
.content-wrapper {
    padding: 1.5rem;
    flex: 1;
    background: #f4f7f6;
}

/* Dashboard */
/* Dashboard Hero Pattern */
.dashboard-hero, .ticket-hero, .deposit-hero, .profile-hero {
    position: relative;
    overflow: hidden;
}

.dashboard-hero::after, .ticket-hero::after, .deposit-hero::after, .profile-hero::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: radial-gradient(circle at 15% 50%, rgba(255,255,255,0.08) 0%, transparent 50%),
                      radial-gradient(circle at 85% 30%, rgba(255,255,255,0.06) 0%, transparent 50%);
    pointer-events: none;
}

.dashboard-hero {
    background: linear-gradient(135deg, #4f46e5 0%, #6366f1 50%, #8b5cf6 100%);
    color: #f8fafc;
    border-radius: 20px;
    padding: 2rem 2.25rem;
    margin-bottom: 2rem;
    box-shadow: 0 20px 40px -10px rgba(79, 70, 229, 0.3);
}

/* Ticket Pages */
.ticket-hero {
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 50%, #2563eb 100%);
    color: #f8fafc;
    border-radius: 20px;
    padding: 2rem 2.25rem;
    margin-bottom: 2rem;
    box-shadow: 0 20px 40px -10px rgba(14, 165, 233, 0.3);
}

.ticket-hero .ticket-eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.7rem;
    color: rgba(248, 250, 252, 0.7);
}

.ticket-hero h1 {
    font-weight: 700;
    margin: 0.35rem 0 0.35rem;
    font-size: 1.6rem;
}

.ticket-hero p {
    margin: 0;
    color: rgba(248, 250, 252, 0.75);
}

.ticket-card {
    background: #fff;
    border-radius: 18px;
    border: 1px solid rgba(226, 232, 240, 0.8);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.ticket-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 10px 10px -5px rgba(0, 0, 0, 0.03);
}

.ticket-card .card-header {
    background: transparent;
    border-bottom: 1px solid #eef2f7;
    padding: 1rem 1.25rem;
    font-weight: 600;
    color: #0f172a;
}

.ticket-card .card-body {
    padding: 1.25rem;
}

.ticket-form .form-label {
    font-weight: 600;
    color: #0f172a;
}

.ticket-form .form-control,
.ticket-form .form-select {
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    padding: 0.65rem 0.9rem;
    background: #f8fafc;
}

.ticket-form .form-control:focus,
.ticket-form .form-select:focus {
    background: #fff;
    border-color: #60a5fa;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.12);
}

.ticket-meta {
    background: #f8fafc;
    border: 1px dashed #dbeafe;
    border-radius: 12px;
    padding: 1rem;
    color: #475569;
}

.ticket-thread {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.ticket-message {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.ticket-message.you {
    flex-direction: row-reverse;
}

.ticket-avatar {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.08);
    color: #0f172a;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
}

.ticket-bubble {
    max-width: 75%;
    padding: 0.9rem 1rem;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    color: #0f172a;
}

.ticket-message.you .ticket-bubble {
    background: #1d4ed8;
    color: #f8fafc;
    border-color: transparent;
}

.ticket-meta-line {
    font-size: 0.75rem;
    color: #64748b;
    margin-bottom: 0.35rem;
}

.ticket-message.you .ticket-meta-line {
    color: rgba(248, 250, 252, 0.7);
    text-align: right;
}

.ticket-attachment a {
    font-size: 0.85rem;
    color: inherit;
}

@media (max-width: 768px) {
    .ticket-hero {
        padding: 1.25rem;
    }

    .ticket-bubble {
        max-width: 100%;
    }
}

/* Profile Settings */
.profile-hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 55%, #0b4aa2 100%);
    color: #f8fafc;
    border-radius: 18px;
    padding: 1.6rem 2rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.2);
}

/* Deposit Page */
.deposit-hero {
    background: linear-gradient(135deg, #10b981 0%, #059669 50%, #047857 100%);
    color: #f8fafc;
    border-radius: 20px;
    padding: 2rem 2.25rem;
    margin-bottom: 2rem;
    box-shadow: 0 20px 40px -10px rgba(16, 185, 129, 0.3);
}

.deposit-hero .deposit-eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.7rem;
    color: rgba(248, 250, 252, 0.7);
}

.deposit-hero h1 {
    font-weight: 700;
    margin: 0.35rem 0 0.35rem;
    font-size: 1.7rem;
}

.deposit-card {
    background: #fff;
    border-radius: 18px;
    border: 1px solid rgba(226, 232, 240, 0.8);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.deposit-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 10px 10px -5px rgba(0, 0, 0, 0.03);
}

.deposit-card .card-header {
    background: transparent;
    border-bottom: 1px solid #eef2f7;
    padding: 1rem 1.25rem;
    font-weight: 600;
    color: #0f172a;
}

.deposit-card .card-body {
    padding: 1.25rem;
}

.deposit-gateway-card {
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    background: #fff;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
    transition: all 0.2s ease;
}

.deposit-gateway-card:hover {
    transform: translateY(-2px);
    border-color: #cbd5f5;
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.1);
}

.gateway-input:checked + .deposit-gateway-card {
    border-color: #2563eb;
    box-shadow: 0 14px 28px rgba(37, 99, 235, 0.2);
    background: #f8fafc;
}

.deposit-amount-group {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    background: #f8fafc;
}

.deposit-amount-group .form-control {
    background: transparent;
}

.deposit-summary {
    background: #f8fafc;
    border: 1px dashed #dbeafe;
    border-radius: 12px;
    padding: 1rem;
}

.deposit-help {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1rem;
    color: #475569;
}

@media (max-width: 768px) {
    .deposit-hero {
        padding: 1.25rem;
    }
}
.profile-hero .profile-eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.7rem;
    color: rgba(248, 250, 252, 0.7);
}

.profile-hero h1 {
    font-weight: 700;
    margin: 0.35rem 0 0.35rem;
    font-size: 1.7rem;
}

.profile-card {
    background: #fff;
    border-radius: 16px;
    border: 1px solid #e8eef5;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.profile-card .card-header {
    background: transparent;
    border-bottom: 1px solid #eef2f7;
    padding: 1rem 1.25rem;
    font-weight: 600;
    color: #0f172a;
}

.profile-card .card-body {
    padding: 1.25rem;
}

.profile-avatar {
    width: 120px;
    height: 120px;
    border-radius: 22px;
    object-fit: cover;
    border: 1px solid #e2e8f0;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.12);
}

.profile-avatar-wrapper {
    position: relative;
    display: inline-flex;
}

.profile-avatar-btn {
    position: absolute;
    bottom: -8px;
    right: -8px;
    width: 36px;
    height: 36px;
    border-radius: 12px;
    background: #1d4ed8;
    color: #fff;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.3);
}

.profile-form .form-label {
    font-weight: 600;
    color: #0f172a;
}

.profile-form .form-control,
.profile-form .form-select {
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    padding: 0.65rem 0.9rem;
    background: #f8fafc;
}

.profile-form .form-control:focus,
.profile-form .form-select:focus {
    background: #fff;
    border-color: #60a5fa;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.12);
}

.profile-meta {
    background: #f8fafc;
    border: 1px dashed #dbeafe;
    border-radius: 12px;
    padding: 1rem;
    color: #475569;
}

@media (max-width: 768px) {
    .profile-hero {
        padding: 1.25rem;
    }
}

/* Site Preloader (Frontend Only) */
.site-preloader {
    position: fixed;
    inset: 0;
    background: #0f172a;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.site-preloader.is-hidden {
    opacity: 0;
    visibility: hidden;
}

.preloader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    color: #e2e8f0;
    text-align: center;
}

.preloader-icon {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    background: rgba(56, 189, 248, 0.15);
    border: 1px solid rgba(56, 189, 248, 0.35);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #38bdf8;
    font-size: 1.7rem;
    animation: preloader-float 1.6s ease-in-out infinite;
}

.preloader-dots {
    display: inline-flex;
    gap: 0.4rem;
}

.preloader-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(148, 163, 184, 0.5);
    animation: preloader-pulse 1s ease-in-out infinite;
}

.preloader-dots span:nth-child(2) {
    animation-delay: 0.15s;
}

.preloader-dots span:nth-child(3) {
    animation-delay: 0.3s;
}

@keyframes preloader-float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-6px);
    }
}

@keyframes preloader-pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.4);
        opacity: 1;
    }
}

.dashboard-hero .dashboard-eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.7rem;
    color: rgba(248, 250, 252, 0.7);
}

.dashboard-hero h1 {
    font-weight: 700;
    margin: 0.35rem 0 0.35rem;
    font-size: 1.8rem;
}

.dashboard-hero p {
    margin: 0;
    color: rgba(248, 250, 252, 0.75);
}

.dashboard-hero .btn {
    border-radius: 999px;
    padding: 0.6rem 1.25rem;
    font-weight: 600;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.25);
}

.metric-card {
    background: #fff;
    border-radius: 18px;
    border: 1px solid rgba(226, 232, 240, 0.8);
    padding: 1.25rem 1.4rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    height: 100%;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.metric-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 10px 10px -5px rgba(0, 0, 0, 0.03);
}

.metric-card-body {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.metric-label {
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #64748b;
    font-weight: 600;
}

.metric-value {
    font-size: 1.6rem;
    font-weight: 700;
    color: #0f172a;
    margin-top: 0.25rem;
}

.metric-sub {
    font-size: 0.85rem;
    color: #94a3b8;
}

.metric-icon {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    background: rgba(15, 23, 42, 0.06);
    color: #0f172a;
}

.panel-card {
    background: #fff;
    border-radius: 18px;
    border: 1px solid rgba(226, 232, 240, 0.8);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.panel-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 10px 10px -5px rgba(0, 0, 0, 0.03);
}

.panel-card .card-header {
    background: transparent;
    border-bottom: 1px solid #eef2f7;
    padding: 1rem 1.25rem;
    font-weight: 600;
    color: #0f172a;
}

.panel-card .card-body {
    padding: 1.25rem;
}

.dashboard-table thead th {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #64748b;
    background: #f8fafc;
    border-bottom: 1px solid #eef2f7;
}

.dashboard-table tbody td {
    border-top: 1px solid #f1f5f9;
}

.empty-state {
    border: 1px dashed #cbd5e1;
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 14px;
    text-align: center;
    padding: 2rem 1.25rem;
    color: #475569;
    transition: none;
    transform: none;
    box-shadow: none;
}

.empty-state:hover {
    transform: none;
    box-shadow: none;
}

.empty-state__icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 0.75rem;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #e2e8f0;
    color: #334155;
    font-size: 1.35rem;
}

.empty-state__title {
    margin-bottom: 0.4rem;
    font-weight: 700;
    color: #0f172a;
}

.empty-state__message {
    max-width: 460px;
    margin: 0 auto;
    font-size: 0.92rem;
    color: #64748b;
}

.empty-state--sm {
    padding: 1.4rem 1rem;
}

.empty-state--sm .empty-state__icon {
    width: 52px;
    height: 52px;
    font-size: 1.1rem;
}

.empty-state--sm .empty-state__title {
    font-size: 1rem;
}

.empty-state--sm .empty-state__message {
    font-size: 0.85rem;
}

.empty-state .btn,
.empty-state .btn:hover,
.empty-state .btn:focus {
    transform: none;
    box-shadow: none;
}

.dashboard-empty {
    border: 1px dashed #cbd5f5;
    padding: 2rem;
    border-radius: 14px;
    color: #64748b;
    background: #f8fafc;
    text-align: center;
}

@media (max-width: 768px) {
    .dashboard-hero {
        padding: 1.5rem;
    }

    .dashboard-hero h1 {
        font-size: 1.5rem;
    }

    .metric-value {
        font-size: 1.35rem;
    }
}

/* Footer */
.main-footer {
    background: #fff;
    padding: 1rem 1.5rem;
    border-top: 1px solid #e9ecef;
    color: #6c757d;
    font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 992px) {
    #sidebar {
        margin-left: -260px;
        position: fixed;
        height: 100vh;
    }

    #sidebar.active {
        margin-left: 0;
    }

    .content-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(34, 46, 60, 0.6);
        backdrop-filter: blur(2px);
        z-index: 999;
    }

    .content-overlay.active {
        display: block;
    }
}

/* Payment Deposit Page */
.payment-deposit .gateway-card {
    cursor: pointer;
    background: #fff;
    border-radius: 1rem;
}

.payment-deposit .gateway-card:hover {
    border-color: #3b7ddd !important;
    background: rgba(59, 125, 221, 0.02);
    transform: translateY(-3px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.05) !important;
}

.payment-deposit .btn-check:checked + .gateway-card {
    border-color: #3b7ddd !important;
    background: rgba(59, 125, 221, 0.05);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.08) !important;
}

.payment-deposit .small-xs {
    font-size: 0.7rem;
    letter-spacing: 0.025em;
}

.payment-deposit .amount-group:focus-within {
    border-color: #3b7ddd !important;
    box-shadow: 0 0 0 0.25rem rgba(59, 125, 221, 0.15);
}

.payment-deposit .transition-all {
    transition: all 0.3s ease;
}

/* Payment Preview Page */
.payment-preview .small-xs {
    font-size: 0.7rem;
    letter-spacing: 0.025em;
}

.payment-preview .object-fit-contain {
    object-fit: contain;
}

/* Payment Stripe Page */
.payment-stripe .small-xs {
    font-size: 0.7rem;
    letter-spacing: 0.025em;
}

.payment-stripe .object-fit-contain {
    object-fit: contain;
}

.payment-stripe #payment-element {
    min-height: 250px;
}

/* Payment Square Page */
.payment-square #card-container {
    min-height: 120px;
}

/* Payment PayPal Page */
.payment-paypal .small-xs {
    font-size: 0.7rem;
    letter-spacing: 0.025em;
}

.payment-paypal .object-fit-contain {
    object-fit: contain;
}

/* Payment Manual Page */
.payment-manual .small-xs {
    font-size: 0.7rem;
    letter-spacing: 0.025em;
}

.payment-manual .object-fit-contain {
    object-fit: contain;
}

.payment-manual .instruction-box {
    background-color: #f8f9fa;
    border-left: 4px solid #3b7ddd;
}

/* Payment History Page */
.payment-history .small-xs {
    font-size: 0.7rem;
    letter-spacing: 0.025em;
}

.payment-history .p-1\.5 {
    padding: 0.375rem;
}

.payment-history .transition-all {
    transition: all 0.15s ease-in-out;
}

.payment-history .table-hover tbody tr:hover {
    background-color: #f9fafb !important;
}

.payment-history .text-uppercase {
    text-transform: uppercase;
}

/* Instructor Withdrawal History Page */
.instructor-withdraw-history .small-xs {
    font-size: 0.7rem;
    letter-spacing: 0.025em;
}

.instructor-withdraw-history .transition-all {
    transition: all 0.15s ease-in-out;
}

.instructor-withdraw-history .table-hover tbody tr:hover {
    background-color: #f9fafb !important;
}

.instructor-withdraw-history .text-uppercase {
    text-transform: uppercase;
}

/* Instructor Withdrawal Methods Page */
.instructor-withdraw-methods .hover-shadow {
    transition: all 0.3s ease;
}

.instructor-withdraw-methods .hover-shadow:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

.instructor-withdraw-methods .opacity-50 {
    opacity: 0.5;
}

/* Instructor Courses Page */
.instructor-courses .small-xs {
    font-size: 0.7rem;
    letter-spacing: 0.025em;
}

.instructor-courses .btn-xs {
    padding: 0.25rem 0.6rem;
    font-size: 0.75rem;
}

.instructor-courses .btn-white {
    background-color: #fff;
    border-right: 1px solid #f1f3f5;
}

.instructor-courses .btn-white:last-child {
    border-right: none;
}

.instructor-courses .btn-white:hover {
    background-color: #f8f9fa;
}

.instructor-courses .transition-all {
    transition: all 0.15s ease-in-out;
}

/* Instructor Lessons Page */
.instructor-lessons .small-xs {
    font-size: 0.7rem;
    letter-spacing: 0.025em;
}

.instructor-lessons .btn-xs {
    padding: 0.25rem 0.6rem;
    font-size: 0.75rem;
}

.instructor-lessons .btn-white {
    background-color: #fff;
    border-right: 1px solid #f1f3f5;
}

.instructor-lessons .btn-white:last-child {
    border-right: none;
}

.instructor-lessons .btn-white:hover {
    background-color: #f8f9fa;
}

.instructor-lessons .transition-all {
    transition: all 0.15s ease-in-out;
}

/* Instructor Videos Page */
.instructor-videos .small-xs {
    font-size: 0.7rem;
    letter-spacing: 0.025em;
}

.instructor-videos .btn-xs {
    padding: 0.25rem 0.6rem;
    font-size: 0.75rem;
}

.instructor-videos .btn-white {
    background-color: #fff;
    border-right: 1px solid #f1f3f5;
}

.instructor-videos .btn-white:last-child {
    border-right: none;
}

.instructor-videos .btn-white:hover {
    background-color: #f8f9fa;
}

.instructor-videos .transition-all {
    transition: all 0.15s ease-in-out;
}

/* Common Transactions Page */
.common-transactions .small-xs {
    font-size: 0.7rem;
    letter-spacing: 0.025em;
}

.common-transactions .transition-all {
    transition: all 0.15s ease-in-out;
}

.common-transactions .table-hover tbody tr:hover {
    background-color: #f9fafb !important;
}

.common-transactions .text-uppercase {
    text-transform: uppercase;
}

/* Common Ticket Page */
.common-tickets .small-xs {
    font-size: 0.7rem;
    letter-spacing: 0.025em;
}

.common-tickets .btn-xs {
    padding: 0.15rem 0.6rem;
    font-size: 0.75rem;
}

.common-tickets .transition-all {
    transition: all 0.15s ease-in-out;
}

.common-tickets .table-hover tbody tr:hover {
    background-color: #f9fafb !important;
}

/* Course Watch Page */
.course-watch-page .watch-page-container {
    background: linear-gradient(180deg, #eef2f7 0%, #f8fafc 40%, #eef2f7 100%);
    min-height: 100vh;
    color: #334155;
    display: flex;
    flex-direction: column;
}

.course-watch-page .learning-header {
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid #e2e8f0;
    padding: 0.85rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 1001;
    position: sticky;
    top: 0;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(10px);
}

.course-watch-page .learning-header .header-info h1 {
    font-size: 0.95rem;
}

.course-watch-page .learning-header .progress {
    border-radius: 999px;
    overflow: hidden;
}

.course-watch-page .learning-header .back-btn {
    color: #64748b;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s;
}

.course-watch-page .learning-header .back-btn:hover {
    color: #0f172a;
}

.course-watch-page .main-watch-area {
    display: flex;
    flex: 1;
    overflow: hidden;
    position: relative;
    background: transparent;
    padding: 1.5rem;
    gap: 1.5rem;
    align-items: stretch;
}

.course-watch-page .video-content-pane {
    flex: 1;
    overflow-y: auto;
    background: transparent;
}

.course-watch-page .video-wrapper {
    background: #0f172a;
    width: 100%;
    aspect-ratio: 16 / 9;
    max-height: 75vh;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.2);
    overflow: hidden;
}

.course-watch-page .plyr {
    width: 100%;
    height: 100%;
}

.course-watch-page .lesson-details-area {
    padding: 2rem;
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
    margin-top: 1.25rem;
}

.course-watch-page .lesson-details-area .lesson-title {
    font-size: 1.6rem;
    font-weight: 700;
}

.course-watch-page .lesson-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.5rem;
    color: #64748b;
    font-size: 0.9rem;
}

.course-watch-page .lesson-badge {
    background: #e2e8f0;
    color: #475569;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.course-watch-page .lesson-content-card {
    background: transparent;
    border-radius: 0;
    border: none;
    padding: 0;
    box-shadow: none;
}

.course-watch-page .lesson-nav-footer {
    padding: 1rem 1.5rem;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: 16px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
    margin-top: 1.25rem;
}

.course-watch-page .playlist-sidebar {
    width: 360px;
    background: #fff;
    border-left: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.course-watch-page .playlist-sidebar.collapsed {
    width: 0;
    border-left-width: 0;
    overflow: hidden;
}

.course-watch-page .playlist-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #e2e8f0;
    background: #f8fafc;
}

.course-watch-page .playlist-header h6 {
    font-weight: 700;
    color: #0f172a;
}

.course-watch-page .playlist-content {
    flex: 1;
    overflow-y: auto;
    padding-bottom: 1.5rem;
}

.course-watch-page .playlist-item {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #f1f5f9;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    color: #64748b;
    display: flex;
    align-items: center;
}

.course-watch-page .playlist-item:hover {
    background-color: #f8f9fa;
    color: #0f172a;
}

.course-watch-page .playlist-item.active {
    background-color: #f0f7ff;
    color: #2563eb;
    border-left: 4px solid #2563eb;
}

.course-watch-page .playlist-item .lesson-number {
    font-size: 0.8rem;
    font-weight: 600;
    color: #94a3b8;
    margin-right: 1.25rem;
    min-width: 20px;
}

.course-watch-page .playlist-item.active .lesson-number {
    color: #2563eb;
}

.course-watch-page .playlist-item .lesson-info {
    flex: 1;
}

.course-watch-page .playlist-item .lesson-title {
    font-size: 0.9rem;
    font-weight: 500;
    line-height: 1.4;
    margin-bottom: 0.15rem;
}

.course-watch-page .playlist-item .lesson-meta {
    font-size: 0.75rem;
    color: #94a3b8;
}

.course-watch-page .progress-bar-container {
    height: 6px;
    background: #e2e8f0;
    border-radius: 3px;
    overflow: hidden;
}

.course-watch-page .progress-bar-fill {
    height: 100%;
    background: #2563eb;
    transition: width 0.4s ease;
}

@media (max-width: 1200px) {
    .course-watch-page .playlist-sidebar {
        width: 320px;
    }
}

@media (max-width: 991px) {
    .course-watch-page .main-watch-area {
        flex-direction: column;
        padding: 1rem;
    }

    .course-watch-page .playlist-sidebar {
        width: 100%;
        border-left: none;
        border-top: 1px solid #e2e8f0;
        height: 400px;
        border-radius: 16px;
    }

    .course-watch-page .playlist-sidebar.collapsed {
        height: 0;
        border-top-width: 0;
    }
}

/* Course Watch Refresh */
.course-watch-page {
    background: #f3f6fa;
}

.course-watch-page .main-content,
.course-watch-page main,
.course-watch-page .container,
.course-watch-page .container-fluid {
    max-width: none;
}

.course-watch-page .watch-page-container {
    min-height: calc(100vh - 0px);
    background:
        linear-gradient(180deg, #f6f8fb 0%, #eef3f8 100%);
    color: #334155;
}

.course-watch-page .learning-header {
    min-height: 76px;
    padding: 0.85rem 1.25rem;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid #e5ebf3;
    box-shadow: 0 12px 30px rgba(19, 32, 56, 0.08);
}

.course-watch-page .learning-header-main,
.course-watch-page .learning-header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 0;
}

.course-watch-page .watch-icon-btn {
    width: 42px;
    height: 42px;
    border-radius: 8px;
    border: 1px solid #dbe5f1;
    background: #f8fbff;
    color: #132038;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

.course-watch-page .watch-icon-btn:hover {
    border-color: #1660cf;
    color: #1660cf;
}

.course-watch-page .header-info {
    min-width: 0;
    width: min(520px, 52vw);
}

.course-watch-page .header-info span {
    display: block;
    margin-bottom: 0.2rem;
    color: #1660cf;
    font-size: 0.72rem;
    font-weight: 900;
    text-transform: uppercase;
}

.course-watch-page .learning-header .header-info h1 {
    margin: 0 0 0.45rem;
    color: #132038;
    font-size: 0.98rem;
    font-weight: 900;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.course-watch-page .watch-progress-pill,
.course-watch-page .watch-mini-badge,
.course-watch-page .watch-score-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-weight: 900;
    white-space: nowrap;
}

.course-watch-page .watch-progress-pill {
    min-height: 34px;
    padding: 0.35rem 0.75rem;
    background: #edf5ff;
    color: #1660cf;
    font-size: 0.78rem;
}

.course-watch-page .learning-header .back-btn {
    min-height: 38px;
    padding: 0.45rem 0.85rem;
    border: 1px solid #e5ebf3;
    border-radius: 8px;
    color: #475569;
    background: #fff;
    font-weight: 800;
}

.course-watch-page .learning-header .back-btn:hover {
    border-color: #1660cf;
    color: #1660cf;
}

.course-watch-page .main-watch-area {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 390px;
    align-items: start;
    gap: 1.25rem;
    padding: 1.25rem;
    overflow: visible;
}

.course-watch-page .video-content-pane {
    min-width: 0;
    overflow: visible;
}

.course-watch-page .video-wrapper,
.course-watch-page .lesson-nav-footer,
.course-watch-page .lesson-details-area,
.course-watch-page .playlist-sidebar {
    border-radius: 8px;
    border: 1px solid #e5ebf3;
    box-shadow: 0 16px 38px rgba(19, 32, 56, 0.09);
}

.course-watch-page .video-wrapper {
    max-height: none;
    background: #09111f;
}

.course-watch-page .plyr,
.course-watch-page .plyr__video-embed,
.course-watch-page .video-wrapper video {
    width: 100%;
    height: 100%;
}

.course-watch-page .lesson-nav-footer {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    gap: 0.75rem;
    padding: 0.85rem;
    background: #fff;
    margin-top: 1rem;
}

.course-watch-page .lesson-nav-slot {
    min-width: 0;
    display: flex;
    align-items: center;
}

.course-watch-page .lesson-details-area {
    margin-top: 1rem;
    padding: 1.5rem;
    background: #fff;
}

.course-watch-page .lesson-overview {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding-bottom: 1.25rem;
    margin-bottom: 1.25rem;
    border-bottom: 1px solid #edf2f7;
}

.course-watch-page .lesson-kicker {
    display: inline-flex;
    margin-bottom: 0.45rem;
    color: #1660cf;
    font-size: 0.76rem;
    font-weight: 900;
    text-transform: uppercase;
}

.course-watch-page .lesson-details-area .lesson-title {
    margin: 0;
    color: #132038;
    font-size: 1.55rem;
    line-height: 1.28;
    font-weight: 900;
}

.course-watch-page .lesson-meta-row {
    justify-content: flex-end;
    gap: 0.55rem;
    max-width: 420px;
}

.course-watch-page .lesson-meta-row span {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    background: #f8fbff;
    color: #64748b;
    font-size: 0.78rem;
    font-weight: 800;
}

.course-watch-page .lesson-badge {
    background: #edf5ff !important;
    color: #1660cf !important;
}

.course-watch-page .lesson-description {
    color: #64748b;
    line-height: 1.75;
    margin-bottom: 1.25rem;
}

.course-watch-page .lesson-content-card {
    padding: 1.15rem;
    border: 1px solid #e5ebf3;
    border-radius: 8px;
    background: #f8fbff;
    color: #475569;
}

.course-watch-page .lesson-content-card h5 {
    margin-bottom: 0.85rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #e5ebf3;
    color: #132038;
    font-size: 1rem;
    font-weight: 900;
}

.course-watch-page .playlist-sidebar {
    position: sticky;
    top: 92px;
    width: auto;
    max-height: calc(100vh - 112px);
    background: #fff;
    overflow: hidden;
}

.course-watch-page .playlist-sidebar.collapsed {
    width: auto;
    display: none;
}

.course-watch-page .playlist-header {
    padding: 1rem;
    background:
        linear-gradient(135deg, rgba(22, 96, 207, 0.1), rgba(0, 186, 180, 0.08)),
        #fff;
    border-bottom: 1px solid #e5ebf3;
}

.course-watch-page .playlist-header span:not(.watch-progress-pill) {
    display: block;
    margin-bottom: 0.2rem;
    color: #64748b;
    font-size: 0.72rem;
    font-weight: 900;
    text-transform: uppercase;
}

.course-watch-page .playlist-header h6 {
    margin: 0;
    color: #132038;
    font-size: 1rem;
    font-weight: 900;
}

.course-watch-page .playlist-scroll {
    max-height: calc(100vh - 210px);
    overflow-y: auto;
    padding: 0.45rem;
}

.course-watch-page .playlist-content {
    padding-bottom: 0;
}

.course-watch-page .playlist-item {
    gap: 0.75rem;
    min-height: 70px;
    padding: 0.75rem;
    border: 1px solid transparent;
    border-radius: 8px;
    color: #64748b;
}

.course-watch-page .playlist-item + .playlist-item {
    margin-top: 0.25rem;
}

.course-watch-page .playlist-item:hover {
    background: #f8fbff;
    border-color: #e5ebf3;
}

.course-watch-page .playlist-item.active {
    background: #edf5ff;
    color: #1660cf;
    border-color: rgba(22, 96, 207, 0.22);
    border-left: 1px solid rgba(22, 96, 207, 0.22);
}

.course-watch-page .playlist-item .lesson-number {
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    min-width: 38px;
    margin-right: 0;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #f1f5f9;
    color: #64748b;
    font-weight: 900;
}

.course-watch-page .playlist-item.active .lesson-number {
    background: #1660cf;
    color: #fff;
}

.course-watch-page .playlist-item .lesson-info {
    min-width: 0;
}

.course-watch-page .playlist-item .lesson-title {
    color: #132038;
    font-size: 0.88rem;
    font-weight: 800;
}

.course-watch-page .playlist-item .lesson-meta {
    margin-top: 0.25rem;
    color: #64748b;
    font-size: 0.74rem;
}

.course-watch-page .watch-mini-badge {
    min-height: 22px;
    padding: 0.15rem 0.45rem;
    background: rgba(58, 196, 126, 0.14);
    color: #188451;
    font-size: 0.68rem;
}

.course-watch-page .playlist-section-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 1rem 0.75rem 0.5rem;
    color: #132038;
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
}

.course-watch-page .playlist-section-label strong {
    min-width: 26px;
    height: 26px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #edf5ff;
    color: #1660cf;
}

.course-watch-page .quiz-number {
    background: #fff7ed !important;
    color: #d97706 !important;
}

.course-watch-page .assignment-number {
    background: #ecfdf5 !important;
    color: #059669 !important;
}

.course-watch-page .watch-score-badge {
    flex: 0 0 auto;
    min-height: 26px;
    padding: 0.2rem 0.5rem;
    font-size: 0.7rem;
}

.course-watch-page .watch-score-badge.is-passed {
    background: rgba(58, 196, 126, 0.14);
    color: #188451;
}

.course-watch-page .watch-score-badge.is-failed {
    background: rgba(239, 68, 68, 0.12);
    color: #dc2626;
}

.course-watch-page .watch-score-badge.is-pending {
    background: rgba(245, 158, 11, 0.14);
    color: #b45309;
}

@media (max-width: 1199.98px) {
    .course-watch-page .main-watch-area {
        grid-template-columns: minmax(0, 1fr) 340px;
    }
}

@media (max-width: 991.98px) {
    .course-watch-page .learning-header {
        align-items: flex-start;
        gap: 0.75rem;
        flex-direction: column;
    }

    .course-watch-page .header-info {
        width: calc(100vw - 6.5rem);
    }

    .course-watch-page .main-watch-area {
        display: flex;
        flex-direction: column;
        padding: 1rem;
    }

    .course-watch-page .playlist-sidebar {
        position: static;
        width: 100%;
        max-height: none;
    }

    .course-watch-page .playlist-scroll {
        max-height: 460px;
    }
}

@media (max-width: 575.98px) {
    .course-watch-page .learning-header-actions,
    .course-watch-page .lesson-overview,
    .course-watch-page .lesson-nav-footer {
        align-items: stretch;
        flex-direction: column;
    }

    .course-watch-page .learning-header-actions {
        width: 100%;
    }

    .course-watch-page .watch-progress-pill,
    .course-watch-page .learning-header .back-btn {
        width: 100%;
    }

    .course-watch-page .lesson-nav-footer {
        display: flex;
    }

    .course-watch-page .lesson-nav-slot {
        justify-content: stretch !important;
    }

    .course-watch-page .lesson-nav-slot .btn {
        width: 100%;
    }

    .course-watch-page .lesson-meta-row {
        justify-content: flex-start;
        max-width: none;
    }

    .course-watch-page .lesson-details-area {
        padding: 1rem;
    }
}



/* User Course Index Page */
.user-course-index .small-xs {
    font-size: 0.7rem;
    letter-spacing: 0.025em;
}

.user-course-index .hover-lift {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.user-course-index .hover-lift:hover {
    transform: translateY(-3px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.05) !important;
}

.user-course-index .transition-all {
    transition: all 0.2s ease-in-out;
}

/* ===========================
   Premium Auth Pages
   =========================== */
.auth-layout {
    background: #f4f7fb;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 2rem 1rem;
    position: relative;
    overflow: hidden;
}

/* Background effects */
.auth-layout::before {
    content: '';
    position: absolute;
    top: -10%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(13, 110, 253, 0.1) 0%, rgba(255, 255, 255, 0) 70%);
    border-radius: 50%;
    z-index: 0;
}

.auth-layout::after {
    content: '';
    position: absolute;
    bottom: -10%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(102, 16, 242, 0.08) 0%, rgba(255, 255, 255, 0) 70%);
    border-radius: 50%;
    z-index: 0;
}

.auth-layout .auth-card {
    width: 100%;
    max-width: 480px;
    padding: 3rem;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.06);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    position: relative;
    z-index: 1;
}

.auth-layout .auth-brand {
    text-align: center;
    margin-bottom: 1.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-decoration: none;
    width: 100%;
}

.auth-layout .auth-brand-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #0d6efd, #6610f2);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.2rem;
}

.auth-layout .auth-brand-text {
    font-size: 1.5rem;
    font-weight: 800;
    color: #1a1a2e;
    letter-spacing: -0.5px;
}

.auth-layout .auth-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.auth-layout .auth-header h3 {
    font-weight: 800;
    color: #1a1a2e;
    font-size: 1.6rem;
    margin-bottom: 0.5rem;
    letter-spacing: -0.3px;
}

.auth-layout .auth-header p {
    color: #6c757d;
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* Auth Input Fields */
.auth-layout .form-group {
    position: relative;
    margin-bottom: 1.25rem;
}

.auth-layout .form-group .form-icon {
    position: absolute;
    left: 1.1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #a0a8b1;
    font-size: 1.1rem;
    transition: color 0.3s ease;
    z-index: 5;
}

.auth-layout .form-control {
    padding: 0.85rem 1rem 0.85rem 2.8rem;
    border-radius: 10px;
    border: 1px solid #e0e6ed;
    background-color: #fcfcfd;
    color: #333;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.auth-layout .form-control.password-field {
    padding-right: 2.8rem;
}

.auth-layout .password-toggle {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    color: #a0a8b1;
    font-size: 1.1rem;
    padding: 0;
    line-height: 1;
    z-index: 5;
    cursor: pointer;
    transition: color 0.3s ease;
}

.auth-layout .password-toggle:focus {
    outline: none;
}

.auth-layout .form-control:focus ~ .password-toggle {
    color: var(--primary);
}

.auth-layout .form-control:focus {
    background-color: #fff;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.1);
}

.auth-layout .form-control:focus ~ .form-icon {
    color: var(--primary);
}

/* Auth Checkbox */
.auth-layout .form-check-input {
    cursor: pointer;
}
.auth-layout .form-check-label {
    cursor: pointer;
    font-size: 0.9rem;
    color: #555;
}

/* Auth Buttons */
.auth-layout .btn-premium {
    width: 100%;
    padding: 0.85rem;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.3px;
    border-radius: 10px;
    background: linear-gradient(135deg, #0d6efd, #0a58ca);
    color: #fff;
    border: none;
    box-shadow: 0 5px 15px rgba(13, 110, 253, 0.3);
    transition: all 0.3s ease;
}

.auth-layout .btn-premium:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(13, 110, 253, 0.4);
    background: linear-gradient(135deg, #0b5ed7, #084298);
}

.auth-layout .auth-footer {
    text-align: center;
    margin-top: 2rem;
    font-size: 0.95rem;
    color: #555;
}

.auth-layout .auth-footer a {
    text-decoration: none;
    color: var(--primary);
    font-weight: 600;
    transition: color 0.3s;
}

.auth-layout .auth-footer a:hover {
    text-decoration: underline;
    color: #0a58ca;
}

@media (max-width: 576px) {
    .auth-layout .auth-card {
        padding: 2rem 1.5rem;
    }
}

/* Contact Page */
.contact-page .contact-hero {
    position: relative;
    background: linear-gradient(135deg, #0f172a 0%, #1d4ed8 60%, #38bdf8 100%);
    padding: 3.5rem 0 3.75rem;
    overflow: hidden;
}

.contact-page .contact-hero .container {
    padding-top: 1rem !important;
    padding-bottom: 1rem !important;
}

.contact-page .contact-hero-bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at top right, rgba(255,255,255,0.14) 0%, transparent 60%),
                radial-gradient(ellipse at bottom left, rgba(56, 189, 248, 0.25) 0%, transparent 70%);
    pointer-events: none;
}

.contact-page .contact-badge {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 50px;
    padding: 0.35rem 1rem;
    font-size: 0.85rem;
    font-weight: 600;
    backdrop-filter: blur(6px);
}

.contact-page .contact-hero-title {
    font-size: 3.2rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 1rem;
}

.contact-page .contact-hero-sub {
    color: rgba(255, 255, 255, 0.75);
    font-size: 1.05rem;
    max-width: 600px;
}

.contact-page .contact-breadcrumb {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    list-style: none;
    margin: 0;
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.26);
    backdrop-filter: blur(8px);
}

.contact-page .contact-breadcrumb-item {
    display: inline-flex;
    align-items: center;
    font-size: 0.74rem;
    font-weight: 600;
    color: rgba(248, 250, 252, 0.7);
    letter-spacing: 0.025em;
}

.contact-page .contact-breadcrumb-item a {
    color: rgba(248, 250, 252, 0.85);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.contact-page .contact-breadcrumb-item a:hover {
    color: #fff;
}

.contact-page .contact-breadcrumb-item + .contact-breadcrumb-item::before {
    content: '';
    width: 10px;
    height: 2px;
    background: rgba(248, 250, 252, 0.45);
    margin: 0 0.35rem;
    border-radius: 999px;
}

.contact-page .contact-breadcrumb-item.active {
    color: #fff;
}

.contact-page .contact-body {
    background: #f3f6fb;
    margin-top: -2.5rem;
    padding-top: 3.5rem !important;
}

/* Info Card */
.contact-page .contact-info-card {
    background: #fff;
    border-radius: 18px;
    padding: 2.25rem;
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.08);
    border: 1px solid rgba(15, 23, 42, 0.06);
    height: 100%;
}

.contact-page .contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.1rem 0;
    border-bottom: 1px solid #f0f2f5;
}

.contact-page .contact-info-item:first-of-type {
    border-top: 1px solid #f0f2f5;
}

.contact-page .contact-info-icon {
    width: 42px;
    height: 42px;
    background: rgba(56, 189, 248, 0.12);
    color: #0284c7;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.contact-page .contact-info-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #9fa6b2;
    margin-bottom: 0.2rem;
}

.contact-page .contact-info-value {
    font-size: 0.92rem;
    color: #2a2a3c;
    font-weight: 500;
}

.contact-page .contact-social-btn {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: #f1f5f9;
    color: #5a6a7a;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.2s ease;
}

.contact-page .contact-social-btn:hover {
    background: #0d6efd;
    color: #fff;
    transform: translateY(-2px);
}

/* Form Card */
.contact-page .contact-form-card {
    background: #fff;
    border-radius: 18px;
    padding: 2.25rem;
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.08);
    border: 1px solid rgba(15, 23, 42, 0.06);
}

.contact-page .contact-field label {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #9fa6b2;
    margin-bottom: 0.5rem;
}

.contact-page .contact-input-wrapper {
    position: relative;
}

.contact-page .contact-input-wrapper i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #9fa6b2;
    font-size: 0.95rem;
    pointer-events: none;
}

.contact-page .contact-input-wrapper.textarea i {
    top: 1.1rem;
    transform: none;
}

.contact-page .contact-input-wrapper input,
.contact-page .contact-input-wrapper textarea {
    width: 100%;
    padding: 0.85rem 1rem 0.85rem 2.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    font-size: 0.95rem;
    background: #f8fafc;
    color: #2a2a3c;
    transition: all 0.2s ease;
    outline: none;
    resize: none;
}

.contact-page .contact-input-wrapper input:focus,
.contact-page .contact-input-wrapper textarea:focus {
    border-color: #0d6efd;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.08);
}

.contact-page .contact-submit-btn {
    background: linear-gradient(135deg, #2563eb, #0ea5e9);
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    padding: 0.85rem 2.5rem;
    border: none;
    border-radius: 50px;
    box-shadow: 0 6px 20px rgba(13, 110, 253, 0.3);
    transition: all 0.3s ease;
    cursor: pointer;
}

.contact-page .contact-submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(13, 110, 253, 0.4);
}

/* Map */
.contact-page .contact-map-section {
    background: #f3f6fb;
    padding-bottom: 2rem;
}

.contact-page .contact-map-wrapper {
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.08);
}

/* Responsive */
@media (max-width: 768px) {
    .contact-page .contact-hero-title {
        font-size: 2rem;
    }

    .contact-page .contact-hero {
        padding: 2.6rem 0 2.9rem;
    }

    .contact-page .contact-hero .container {
        padding-top: 0.75rem !important;
        padding-bottom: 0.75rem !important;
    }

    .contact-page .contact-breadcrumb {
        padding: 0.3rem 0.75rem;
    }

    .contact-page .contact-info-card,
    .contact-page .contact-form-card {
        padding: 1.8rem;
    }
}

/* Frontend Index Page */
.frontend-index .hero-section {
    position: relative;
    padding: 150px 0;
    text-align: center;
    color: white;
}

.frontend-index .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

.frontend-index .hero-content {
    position: relative;
    z-index: 2;
}

.frontend-index .hero-title {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.frontend-index .hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.frontend-index .section-title {
    text-align: center;
    margin-bottom: 2rem;
    font-weight: 800;
    color: #2c3e50;
    position: relative;
    display: inline-block;
}

.frontend-index .section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: #0d6efd;
    margin: 1rem auto 0;
    border-radius: 2px;
}

.frontend-index .feature-card {
    border: none;
    transition: all 0.3s ease;
    height: 100%;
    padding: 2.5rem;
    border-radius: 20px;
    background: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.frontend-index .feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.frontend-index .feature-img {
    width: 80px;
    height: 80px;
    margin-bottom: 1.5rem;
    object-fit: contain;
}

.frontend-index .testi-card {
    background: #fff;
    border-radius: 20px;
    padding: 2.2rem;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.frontend-index .testi-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(13, 110, 253, 0.1);
    border-color: rgba(13, 110, 253, 0.12);
}

.frontend-index .testi-quote-icon {
    font-size: 3rem;
    color: #0d6efd;
    opacity: 0.12;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.frontend-index .testi-stars {
    display: flex;
    gap: 3px;
    font-size: 0.85rem;
}

.frontend-index .testi-text {
    font-size: 0.97rem;
    color: #4a4a5a;
    line-height: 1.7;
    font-style: italic;
    flex: 1;
}

.frontend-index .testi-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background: linear-gradient(135deg, #0d6efd, #6610f2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
}

.frontend-index .testi-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.frontend-index .testimonials-section {
    background: linear-gradient(160deg, #f0f4ff 0%, #f8f9fa 100%);
}

.frontend-index .section-badge {
    background: rgba(13, 110, 253, 0.08);
    color: #0d6efd;
    border: 1px solid rgba(13, 110, 253, 0.15);
    border-radius: 50px;
    padding: 0.35rem 1rem;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.frontend-index .section-subheading-max {
    max-width: 600px;
}

.frontend-index .blog-card-hover {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.frontend-index .blog-card-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1) !important;
}

.frontend-index .line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.frontend-index .transition-all {
    transition: all 0.2s ease;
}

.frontend-index .hover-primary:hover {
    color: var(--bs-primary) !important;
}

.frontend-index .transform-hover:hover {
    transform: scale(1.05);
}

.frontend-index .category-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 1.25rem;
    background: #fff;
    padding: 1.8rem 1rem;
    border: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.frontend-index .category-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(13, 110, 253, 0.12) !important;
    border-color: var(--primary);
}

.frontend-index .category-icon-wrapper {
    width: 95%;
    height: 150px;
    border-radius: 1.5rem;
    background: var(--primary-soft, rgba(13, 110, 253, 0.08));
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
    overflow: hidden;
}

.frontend-index .category-card:hover .category-icon-wrapper {
    background: var(--primary-soft, rgba(13, 110, 253, 0.12));
    transform: scale(1.05);
}

.frontend-index .category-icon-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
}

.frontend-index .category-card:hover .category-icon-wrapper img {
    transform: scale(1.1);
}

.frontend-index .category-icon-wrapper i {
    font-size: 3rem;
    color: var(--primary);
    transition: all 0.3s ease;
}

.frontend-index .category-title {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0;
    color: #1a1a2e;
    transition: all 0.3s ease;
}

.frontend-index .category-card:hover .category-title {
    color: var(--primary);
}

.frontend-index .instructor-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 1.5rem;
    background: #fff;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05);
    height: 100%;
}

.frontend-index .instructor-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1) !important;
    border-color: var(--primary);
}

.frontend-index .instructor-image-wrapper {
    position: relative;
    padding-top: 2rem;
    display: flex;
    justify-content: center;
}

.frontend-index .instructor-img {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid #fff;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.frontend-index .instructor-card:hover .instructor-img {
    transform: scale(1.05);
    border-color: var(--primary-soft, rgba(13, 110, 253, 0.1));
}

.frontend-index .instructor-badge {
    position: absolute;
    bottom: 0;
    right: calc(50% - 65px);
    background: var(--primary);
    color: #fff;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 10px rgba(13, 110, 253, 0.3);
}

.frontend-index .instructor-stats {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.frontend-index .instructor-stats .stat-item {
    text-align: center;
}

.frontend-index .instructor-stats .stat-value {
    display: block;
    font-weight: 800;
    color: #1a1a2e;
    font-size: 1.1rem;
}

.frontend-index .instructor-stats .stat-label {
    font-size: 0.7rem;
    color: #777;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.frontend-index .instructor-social-btn {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.frontend-index .testi-slider-shell {
    position: relative;
}

.frontend-index .testi-slider-viewport {
    overflow: hidden;
    margin: 0 -10px;
}

.frontend-index .testi-slider-track {
    display: flex;
    transition: transform 0.45s ease;
    will-change: transform;
}

.frontend-index .testi-slide {
    flex: 0 0 33.3333%;
    padding: 0 10px;
    box-sizing: border-box;
}

.frontend-index .testi-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 50%;
    background: rgba(13, 110, 253, 0.9);
    color: #fff;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s ease, background 0.2s ease;
}

.frontend-index .testi-nav:hover {
    background: rgba(13, 110, 253, 1);
}

.frontend-index .testi-nav:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.frontend-index .testi-nav-prev {
    left: -8px;
}

.frontend-index .testi-nav-next {
    right: -8px;
}

.frontend-index .testi-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.frontend-index .testi-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: 0;
    background: rgba(13, 110, 253, 0.3);
    padding: 0;
}

.frontend-index .testi-dot.active {
    background: #0d6efd;
}

@media (max-width: 991.98px) {
    .frontend-index .testi-slide {
        flex-basis: 50%;
    }
}

@media (max-width: 767.98px) {
    .frontend-index .testi-slide {
        flex-basis: 100%;
    }

    .frontend-index .testi-nav {
        display: none;
    }
}

.frontend-index .faq-section {
    background-color: #f8f9fa;
}

.frontend-index .faq-img {
    max-width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.frontend-index .accordion-item {
    border: none;
    margin-bottom: 1rem;
    border-radius: 10px !important;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
}

.frontend-index .accordion-button {
    padding: 1.25rem;
    font-weight: 600;
    background-color: white;
}

.frontend-index .accordion-button:not(.collapsed) {
    background-color: #e7f1ff;
    color: #0d6efd;
    box-shadow: none;
}

.frontend-index .cta-section {
    position: relative;
    background: linear-gradient(135deg, #0a3980 0%, #0d6efd 50%, #2563eb 100%);
    color: white;
    padding: 6rem 0;
    text-align: center;
    overflow: hidden;
}

.frontend-index .cta-bg-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
}

.frontend-index .cta-glow-1 {
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.07);
    top: -100px;
    right: -100px;
}

.frontend-index .cta-glow-2 {
    width: 300px;
    height: 300px;
    background: rgba(99, 102, 241, 0.25);
    bottom: -80px;
    left: -60px;
}

.frontend-index .cta-badge {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 50px;
    padding: 0.35rem 1rem;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    backdrop-filter: blur(6px);
}

.frontend-index .cta-heading {
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1.2;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.frontend-index .cta-sub {
    font-size: 1.1rem;
    opacity: 0.85;
    max-width: 520px;
}

.frontend-index .cta-btn-primary {
    background: #fff;
    color: #0d6efd;
    font-weight: 700;
    font-size: 1rem;
    padding: 0.85rem 2.2rem;
    border-radius: 50px;
    border: none;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.frontend-index .cta-btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    background: #f0f4ff;
    color: #0a58ca;
}

.frontend-index .cta-btn-outline {
    background: transparent;
    color: #fff;
    font-weight: 600;
    font-size: 1rem;
    padding: 0.85rem 2.2rem;
    border-radius: 50px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
}

.frontend-index .cta-btn-outline:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: #fff;
    color: #fff;
    transform: translateY(-3px);
}

.frontend-index .cta-stat-card {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(12px);
    border-radius: 20px;
    padding: 2rem 2.5rem;
    text-align: center;
}

.frontend-index .cta-stat-row {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    justify-content: center;
}

.frontend-index .cta-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.frontend-index .cta-stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
}

.frontend-index .cta-stat-label {
    font-size: 0.8rem;
    opacity: 0.75;
    margin-top: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.frontend-index .cta-stat-divider {
    width: 1px;
    height: 40px;
    background: rgba(255, 255, 255, 0.25);
}

.frontend-index .cta-footer-text {
    font-size: 0.85rem;
    opacity: 0.7;
}

@media (max-width: 991px) {
    .frontend-index .cta-heading {
        font-size: 2rem;
    }

    .frontend-index .cta-sub {
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 576px) {
    .frontend-index .cta-section {
        padding: 4rem 0;
    }

    .frontend-index .cta-heading {
        font-size: 1.7rem;
    }
}

/* Frontend Course Listing Page */
.frontend-course-index .fw-600 {
    font-weight: 600;
}

.frontend-course-index .fw-800 {
    font-weight: 800;
}

.frontend-course-index .professional-search {
    display: flex;
    align-items: center;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 5px;
    transition: all 0.2s ease;
}

.frontend-course-index .professional-search:focus-within {
    background: #fff;
    border-color: #0d6efd;
    box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.05);
}

.frontend-course-index .professional-search .search-icon {
    margin-left: 15px;
    color: #adb5bd;
}

.frontend-course-index .professional-search .form-control {
    border: none;
    background: transparent;
    padding: 10px 15px;
    font-size: 1rem;
    color: #212529;
    box-shadow: none;
}

.frontend-course-index .professional-search .btn {
    border-radius: 8px;
    padding: 10px 25px;
}

.frontend-course-index .course-card {
    border: 1px solid #edf2f7;
    border-radius: 12px;
    background: #fff;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    overflow: hidden;
}

.frontend-course-index .course-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.06);
    border-color: #e2e8f0;
}

.frontend-course-index .course-badge {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 5px 12px;
    border-radius: 6px;
    background: #f1f5f9;
    color: #475569;
}

.frontend-course-index .price-tag {
    font-size: 1.25rem;
    font-weight: 800;
    color: #0f172a;
}

.frontend-course-index .category-chip,
.frontend-course-index .search-chip {
    background: #fff;
    border: 1px solid #e2e8f0;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.frontend-course-index .category-chip a:hover,
.frontend-course-index .search-chip a:hover {
    color: #dc3545 !important;
}

/* Image Upload Component */
.image-upload-dropzone {
    position: relative;
    border: 2px dashed #dee2e6;
    border-radius: 8px;
    background: #f8f9fa;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-upload-dropzone:hover {
    border-color: #3b7ddd;
    background: #f1f3f5;
}

.image-upload-dropzone.dragover {
    border-color: #3b7ddd;
    background: rgba(59, 125, 221, 0.1);
    transform: scale(1.01);
}

.image-upload-input {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    opacity: 0;
    cursor: pointer;
    z-index: 10;
}

.image-upload-preview {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
    display: none;
}

.image-upload-placeholder {
    position: relative;
    z-index: 2;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    display: flex;
}

.image-upload-preview.is-visible {
    display: block;
}

.image-upload-placeholder.is-hidden {
    display: none;
}

.image-upload-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 5;
    color: #fff;
    font-size: 1.5rem;
}

.image-upload-dropzone:hover .image-upload-overlay {
    opacity: 1;
}

.image-upload-icon {
    font-size: 2rem;
    color: #6c757d;
}

/* Hero Section Responsive */
@media (max-width: 991px) {
    .frontend-index .hero-section {
        padding: 100px 0;
    }

    .frontend-index .hero-title {
        font-size: 2.8rem;
    }

    .frontend-index .hero-subtitle {
        font-size: 1.2rem;
        padding: 0 15px;
    }

    .frontend-index .hero-content .d-flex {
        flex-direction: column;
        gap: 1rem !important;
    }

    .frontend-index .hero-content .btn {
        width: 100%;
        max-width: 305px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .frontend-index .hero-title {
        font-size: 2.2rem;
    }

    .frontend-index .hero-subtitle {
        font-size: 1.1rem;
    }
}

@media (max-width: 576px) {
    .frontend-index .hero-section {
        padding: 80px 0;
    }

    .frontend-index .hero-title {
        font-size: 1.8rem;
    }
}

/* Utilities (Inline Style Replacements) */
.img-cover {
    object-fit: cover;
}

.img-contain {
    object-fit: contain;
}

.img-h-160 {
    height: 160px;
}

.img-h-180 {
    height: 180px;
}

.img-h-220 {
    height: 220px;
}

.img-h-400 {
    height: 400px;
}

.img-h-40 {
    height: 40px;
}

.img-h-35 {
    height: 35px;
}

.img-h-20 {
    height: 20px;
}

.img-h-80 {
    height: 80px;
}

.img-h-60 {
    height: 60px;
}

.img-h-50 {
    height: 50px;
}

.img-size-120 {
    width: 120px;
    height: 120px;
}

.img-size-80 {
    width: 80px;
    height: 80px;
}

.img-size-60 {
    width: 60px;
    height: 60px;
}

.img-size-50 {
    width: 50px;
    height: 50px;
}

.img-size-40 {
    width: 40px;
    height: 40px;
}

.img-size-32 {
    width: 32px;
    height: 32px;
}

.img-size-100x70 {
    width: 100px;
    height: 70px;
}

.img-size-80x60 {
    width: 80px;
    height: 60px;
}

.img-size-60x40 {
    width: 60px;
    height: 40px;
}

.img-size-80x50 {
    width: 80px;
    height: 50px;
}

.img-max-h-100 {
    max-height: 100px;
}

.img-max-h-150 {
    max-height: 150px;
}

.img-max-h-500 {
    max-height: 500px;
}

.btn-square-32 {
    width: 32px;
    height: 32px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.text-875 {
    font-size: 0.875rem;
}

.text-75 {
    font-size: 0.75rem;
}

.text-70 {
    font-size: 0.7rem;
}

.text-65 {
    font-size: 0.65rem;
}

.max-w-200 {
    max-width: 200px;
}

.max-w-250 {
    max-width: 250px;
}

.max-w-260 {
    max-width: 260px;
}

.max-w-150 {
    max-width: 150px;
}

.max-w-550 {
    max-width: 550px;
}

.w-10p {
    width: 10%;
}

.w-15p {
    width: 15%;
}

.w-20p {
    width: 20%;
}

.w-25p {
    width: 25%;
}

.w-30p {
    width: 30%;
}

.col-w-70 {
    width: 70px;
}

.col-w-80 {
    width: 80px;
}

.w-80px {
    width: 80px;
}

.table-text-sm {
    font-size: 0.875rem;
}

.progress-xs {
    height: 4px;
}

.progress-sm {
    height: 6px;
}

.progress-track-soft {
    background: rgba(0, 0, 0, 0.05);
}

.progress-track-light {
    background-color: #f1f3f5;
}

.video-fallback {
    background: #000;
}

.sticky-top-1 {
    top: 1rem;
}

.sticky-top-100 {
    top: 100px;
}

.chart-h-320 {
    height: 320px;
}

.chart-h-300 {
    height: 300px;
}

.chart-h-250 {
    height: 250px;
}

.chart-h-240 {
    height: 240px;
}

.stats-panel {
    z-index: 10;
    margin-top: -50px;
    border-radius: 10px;
    width: 90%;
    margin-left: auto;
    margin-right: auto;
}

.frontend-index .stats-panel .stat-item {
    padding: 1rem 0.75rem;
}

.frontend-index .stats-panel .stat-item-divider {
    border-bottom: 1px solid var(--bs-border-color, #dee2e6);
}

.frontend-index .stats-panel h2 {
    font-size: 2rem;
}

@media (min-width: 768px) {
    .frontend-index .stats-panel .stat-item-divider {
        border-bottom: 0;
        border-right: 1px solid var(--bs-border-color, #dee2e6);
    }
}

@media (max-width: 991.98px) {
    .stats-panel {
        margin-top: -20px;
        width: 94%;
    }

    .frontend-index .stats-panel h2 {
        font-size: 1.7rem;
    }
}

@media (max-width: 767.98px) {
    .stats-panel {
        margin-top: 0;
        width: 100%;
        border-radius: 12px;
    }

    .frontend-index .stats-panel .stat-item {
        padding: 1rem 0;
    }
}

.hero-section.has-bg {
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}

.contact-map-iframe {
    border: 0;
}

.review-avatar {
    width: 50px;
    height: 50px;
    object-fit: cover;
}

.rating-input,
.rating-input-inline {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 5px;
}

.rating-input input[type="radio"],
.rating-input-inline input[type="radio"] {
    display: none;
}

.rating-input .star-label,
.rating-input-inline .star-label-inline {
    cursor: pointer;
    font-size: 2rem;
    color: #ddd;
    transition: color 0.2s;
}

.rating-input-inline .star-label-inline {
    font-size: 1.5rem;
}

.rating-input input[type="radio"]:checked ~ .star-label,
.rating-input .star-label:hover,
.rating-input .star-label:hover ~ .star-label,
.rating-input-inline input[type="radio"]:checked ~ .star-label-inline,
.rating-input-inline .star-label-inline:hover,
.rating-input-inline .star-label-inline:hover ~ .star-label-inline {
    color: #ffc107;
}

.policy-page-content .page-content {
    line-height: 1.75;
    color: #475569;
    font-size: 1rem;
}

.policy-page-content .page-content h2 {
    color: #0f172a;
    font-size: 1.55rem;
    margin-top: 0;
    margin-bottom: 0.85rem;
    font-weight: 700;
}

.policy-page-content .page-content h3,
.policy-page-content .page-content h4 {
    color: #0f172a;
    font-size: 1.15rem;
    margin-top: 1.6rem;
    margin-bottom: 0.6rem;
    font-weight: 700;
}

.policy-page-content .page-content p,
.policy-page-content .page-content ul,
.policy-page-content .page-content ol {
    margin-bottom: 1rem;
}

.policy-page-content .page-content ul,
.policy-page-content .page-content ol {
    padding-left: 1.25rem;
}

.policy-page-content .page-content li {
    margin-bottom: 0.45rem;
}

.policy-page-content .page-content .policy-note {
    background: #f8fafc;
    border-left: 4px solid #1663c7;
    border-radius: 6px;
    color: #334155;
    margin-top: 1.5rem;
    padding: 1rem 1.15rem;
}

.breadcrumb-area {
    background-color: #f8f9fa;
}

/* Cookie Banner */
.cookie-banner-wrap {
    position: fixed;
    bottom: 25px;
    left: 25px;
    z-index: 999999;
    max-width: 380px;
    width: calc(100% - 50px);
    animation: cookieSlideUpIn 0.5s ease-out;
    pointer-events: auto;
    display: none;
}

.cookie-banner-wrap.is-visible {
    display: block;
}

.cookie-banner-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(0, 0, 0, 0.1);
    font-family: 'Inter', sans-serif;
}

.cookie-banner-body {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
    text-align: left;
}

.cookie-icon-box {
    width: 44px;
    height: 44px;
    background: #eef4ff;
    color: #0d6efd;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}

.cookie-text-box .cookie-title {
    margin: 0 0 4px 0;
    font-weight: 700;
    color: #111;
    font-size: 1.05rem;
    line-height: 1.2;
}

.cookie-text-box .cookie-desc {
    margin: 0;
    font-size: 0.88rem;
    color: #555;
    line-height: 1.5;
}

.read-more-link {
    color: #0d6efd;
    text-decoration: none;
    font-weight: 600;
    margin-left: 2px;
}

.cookie-banner-footer {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.cookie-btn {
    padding: 9px 20px;
    border-radius: 10px;
    font-size: 0.88rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.cookie-btn-reject {
    background: #f1f3f5;
    color: #495057;
}

.cookie-btn-accept {
    background: #0d6efd;
    color: #fff;
    box-shadow: 0 4px 10px rgba(13, 110, 253, 0.2);
}

@keyframes cookieSlideUpIn {
    from {
        transform: translateY(100px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@media (max-width: 576px) {
    .cookie-banner-wrap {
        left: 15px;
        bottom: 15px;
        width: calc(100% - 30px);
    }
}

/* Maintenance Page */
.maintenance-page {
    font-family: 'Inter', sans-serif;
    background-color: #f8f9fa;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
}

.maintenance-card {
    max-width: 600px;
    padding: 40px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.maintenance-icon {
    font-size: 80px;
    color: #0d6efd;
    margin-bottom: 20px;
}

.maintenance-card h1 {
    font-weight: 700;
    margin-bottom: 20px;
}

.maintenance-card p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 30px;
}

.maintenance-card .btn-home {
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
}

/* Certificate Template */
.certificate-page,
.certificate-page body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    background-color: #ffffff;
    font-family: 'serif';
}

@media print {
    @page {
        margin: 0.5cm;
        size: a4 landscape;
    }
}

.certificate-wrapper {
    width: 100%;
    height: 19.5cm;
    padding: 20px;
    box-sizing: border-box;
    background-color: #764ba2;
    overflow: hidden;
}

.certificate-border {
    background-color: #ffffff;
    padding: 5px;
    height: 100%;
    box-sizing: border-box;
}

.certificate-inner {
    border: 8px double #667eea;
    height: 17.5cm;
    padding: 20px;
    box-sizing: border-box;
    text-align: center;
}

.content-table {
    width: 100%;
    height: 100%;
    border-collapse: collapse;
}

.logo {
    font-size: 40px;
    color: #667eea;
    margin-bottom: 5px;
}

.certificate-title {
    font-size: 40px;
    font-weight: bold;
    color: #667eea;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 4px;
}

.certificate-subtitle {
    font-size: 18px;
    color: #666;
    margin-bottom: 10px;
}

.completion-text {
    font-size: 14px;
    color: #555;
    margin: 5px 0;
}

.recipient-name {
    font-size: 36px;
    font-weight: bold;
    color: #333;
    margin: 10px 0;
    border-bottom: 2px solid #667eea;
    display: inline-block;
    padding-bottom: 2px;
}

.course-title {
    font-size: 24px;
    color: #667eea;
    margin: 10px 0;
    font-style: italic;
}

.instructor-text {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
}

.footer-table {
    width: 100%;
    margin-top: 10px;
}

.footer-cell {
    width: 33.33%;
    vertical-align: bottom;
    text-align: center;
}

.signature-line {
    border-top: 1.5px solid #333;
    width: 80%;
    margin: 0 auto;
    padding-top: 5px;
    font-size: 11px;
    color: #666;
}

.cert-info {
    font-size: 11px;
    color: #888;
}

.cert-info.mt-5px {
    margin-top: 5px;
}

.seal {
    width: 70px;
    height: 70px;
    border: 3px double #667eea;
    border-radius: 50%;
    margin: 0 auto;
    display: table;
}

.seal-content {
    display: table-cell;
    vertical-align: middle;
    font-size: 8px;
    font-weight: bold;
    color: #667eea;
    text-transform: uppercase;
    line-height: 1.1;
}

/* Certificate Show Page */
.certificate-show-bg {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.certificate-show-icon {
    font-size: 4rem;
}

.certificate-name {
    border-bottom: 3px solid #667eea;
    display: inline-block;
}

.certificate-signature {
    min-width: 200px;
}

.status-dot {
    width: 10px;
    height: 10px;
    margin-right: 12px;
    margin-bottom: 2px;
}

.sidebar-toggle-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-role-text {
    font-size: 0.65rem;
}

.nav-avatar {
    width: 32px;
    height: 32px;
    object-fit: cover;
}

/* Topbar Fixes */
.main-header { position: sticky; top: 0; background: rgba(255, 255, 255, 0.85) !important; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid rgba(226, 232, 240, 0.6) !important; box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04) !important; z-index: 1020 !important; }

/* ============================================================
   BLOG DETAILS PAGE
   All selectors are scoped to blog-details specific classes.
   No conflicts with dashboard, admin, or other frontend pages.
   ============================================================ */

/* ── Page Header ─────────────────────────────────────────────── */
.page-header-blog {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 60%, #0d6efd 100%);
    padding: 2.25rem 0;
    position: relative;
    overflow: hidden;
}

.page-header-blog::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 10% 50%, rgba(255,255,255,0.05) 0%, transparent 50%),
        radial-gradient(circle at 90% 20%, rgba(99,102,241,0.15) 0%, transparent 50%);
    pointer-events: none;
}

.page-header-blog .breadcrumb {
    background: transparent;
    margin: 0;
    padding: 0;
}

.page-header-blog .breadcrumb-item a {
    color: rgba(255,255,255,0.65);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color .2s;
}

.page-header-blog .breadcrumb-item a:hover { color: #fff; }

.page-header-blog .breadcrumb-item.active {
    color: rgba(255,255,255,0.45);
    font-size: 0.875rem;
}

.page-header-blog .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255,255,255,0.3);
}

.page-header-title {
    font-size: clamp(1.35rem, 3vw, 1.75rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.3;
    margin: 0.6rem 0 0;
    letter-spacing: -0.3px;
}

.page-header-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    margin-top: 0.75rem;
}

.page-header-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.82rem;
    color: rgba(255,255,255,0.65);
    font-weight: 500;
}

.page-header-meta span i { font-size: 0.9rem; opacity: .7; }

/* ── Reading Progress Bar ────────────────────────────────────── */
.reading-progress {
    position: fixed;
    top: 0; left: 0;
    height: 3px;
    width: 0%;
    background: linear-gradient(90deg, #0d6efd, #6610f2, #10b981);
    z-index: 9999;
    transition: width .1s linear;
    border-radius: 0 2px 2px 0;
}

/* ── Blog Details Section Wrapper ────────────────────────────── */
.blog-details-section {
    background: #f1f5f9;
    padding: 2.5rem 0 4rem;
}

/* ── Article Card ────────────────────────────────────────────── */
.article-card {
    background: #fff;
    border-radius: 20px;
    border: 1px solid #e8eef5;
    box-shadow: 0 4px 30px rgba(15,23,42,0.07);
    overflow: hidden;
}

.article-featured-image {
    width: 100%;
    height: 420px;
    object-fit: cover;
    display: block;
    border-bottom: 1px solid #f1f5f9;
}

@media (max-width: 768px) {
    .article-featured-image { height: 240px; }
}

.article-body {
    padding: 2.25rem 2.5rem;
}

@media (max-width: 576px) {
    .article-body { padding: 1.5rem 1.25rem; }
}

.article-category-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: linear-gradient(135deg, #eef2ff, #e0e7ff);
    color: #4f46e5;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0.3rem 0.85rem;
    border-radius: 999px;
    margin-bottom: 1.25rem;
    border: 1px solid rgba(99,102,241,.15);
}

/* ── Article Typography ──────────────────────────────────────── */
.article-body-content {
    font-size: 1.055rem;
    line-height: 1.9;
    color: #374151;
}

.article-body-content .lead-paragraph {
    font-size: 1.125rem;
    color: #1e293b;
    font-weight: 500;
    line-height: 1.75;
    padding: 1.1rem 1.4rem;
    background: #f8fafc;
    border-left: 4px solid #0d6efd;
    border-radius: 0 12px 12px 0;
    margin-bottom: 1.75rem;
}

.article-body-content h2 {
    font-size: 1.45rem;
    font-weight: 800;
    color: #0f172a;
    margin: 2rem 0 0.8rem;
    letter-spacing: -0.3px;
    position: relative;
    padding-bottom: 0.65rem;
}

.article-body-content h2::after {
    content: '';
    position: absolute;
    left: 0; bottom: 0;
    width: 36px; height: 3px;
    background: linear-gradient(90deg, #0d6efd, #6610f2);
    border-radius: 3px;
}

.article-body-content h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1e293b;
    margin: 1.6rem 0 0.65rem;
}

.article-body-content p { margin-bottom: 1.25rem; }

.article-divider {
    border: none;
    border-top: 1px solid #f1f5f9;
    margin: 1.75rem 0;
}

/* ── Check List ──────────────────────────────────────────────── */
.check-list {
    list-style: none;
    padding: 0;
    margin: 0.5rem 0 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.check-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    padding: 0.7rem 1rem;
    background: #f8fafc;
    border: 1px solid #e8eef5;
    border-radius: 10px;
    font-size: 0.97rem;
    color: #374151;
    transition: background .2s;
}

.check-list li:hover { background: #f0f5ff; border-color: #c7d7ff; }

.check-list .ci {
    flex-shrink: 0;
    width: 22px; height: 22px;
    border-radius: 50%;
    background: linear-gradient(135deg, #10b981, #059669);
    color: #fff;
    font-size: 0.68rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 1px;
    box-shadow: 0 2px 8px rgba(16,185,129,.3);
}

/* ── Article Blockquote ──────────────────────────────────────── */
.article-blockquote {
    position: relative;
    margin: 2rem 0;
    padding: 1.6rem 1.75rem 1.6rem 2.25rem;
    background: linear-gradient(135deg, #f0f5ff, #f8faff);
    border-left: 4px solid #0d6efd;
    border-radius: 0 16px 16px 0;
    box-shadow: 0 4px 20px rgba(13,110,253,.08);
}

.article-blockquote::before {
    content: '\201C';
    position: absolute;
    top: -8px; left: 1.1rem;
    font-size: 4.5rem;
    line-height: 1;
    color: #0d6efd;
    opacity: 0.15;
    font-family: Georgia, serif;
}

.article-blockquote p {
    font-size: 1.1rem;
    font-style: italic;
    color: #1e293b;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.article-blockquote footer {
    font-size: 0.85rem;
    color: #64748b;
    font-style: normal;
}

/* ── Share Bar ───────────────────────────────────────────────── */
.share-bar {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex-wrap: wrap;
    padding: 1.25rem 2.5rem;
    border-top: 1px solid #f1f5f9;
    background: #fafbff;
}

@media (max-width: 576px) { .share-bar { padding: 1rem 1.25rem; } }

.share-bar .share-label {
    font-weight: 700;
    font-size: 0.82rem;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    margin-right: 0.25rem;
}

.s-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.42rem 1rem;
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 600;
    border: none;
    text-decoration: none;
    transition: all .25s ease;
    cursor: pointer;
    white-space: nowrap;
}

.s-btn.tw { background: #e8f5fd; color: #1da1f2; }
.s-btn.tw:hover { background: #1da1f2; color: #fff; transform: translateY(-2px); box-shadow: 0 6px 16px rgba(29,161,242,.3); }
.s-btn.fb { background: #eef0fa; color: #1877f2; }
.s-btn.fb:hover { background: #1877f2; color: #fff; transform: translateY(-2px); box-shadow: 0 6px 16px rgba(24,119,242,.3); }
.s-btn.ln { background: #e8f2fa; color: #0a66c2; }
.s-btn.ln:hover { background: #0a66c2; color: #fff; transform: translateY(-2px); box-shadow: 0 6px 16px rgba(10,102,194,.3); }
.s-btn.cp { background: #f0f4ff; color: #6366f1; }
.s-btn.cp:hover { background: #6366f1; color: #fff; transform: translateY(-2px); box-shadow: 0 6px 16px rgba(99,102,241,.3); }

/* ── Blog Sidebar ────────────────────────────────────────────── */
.sticky-sidebar { position: sticky; top: 86px; }

.s-card {
    background: #fff;
    border-radius: 18px;
    border: 1px solid #e8eef5;
    box-shadow: 0 4px 24px rgba(15,23,42,.06);
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.s-card-header {
    padding: 1.1rem 1.5rem;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.s-card-icon {
    width: 30px; height: 30px;
    border-radius: 8px;
    background: linear-gradient(135deg, #eef2ff, #e0e7ff);
    color: #4f46e5;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.82rem;
    flex-shrink: 0;
}

.s-card-header h6 {
    margin: 0;
    font-weight: 700;
    font-size: 0.92rem;
    color: #0f172a;
}

.s-card-body { padding: 1.1rem 1.5rem; }

.recent-item {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f1f5f9;
    text-decoration: none;
    transition: all .2s;
}

.recent-item:first-child { padding-top: 0; }
.recent-item:last-child  { border-bottom: none; padding-bottom: 0; }
.recent-item:hover       { transform: translateX(4px); }

.recent-thumb {
    width: 68px; height: 52px;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid #e8eef5;
}

.recent-title {
    font-size: 0.84rem;
    font-weight: 600;
    color: #1e293b;
    line-height: 1.4;
    margin-bottom: 0.28rem;
    transition: color .2s;
}

.recent-item:hover .recent-title { color: #0d6efd; }

.recent-date {
    font-size: 0.76rem;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

/* ── Blog Sidebar CTA Card ───────────────────────────────────── */
.cta-card {
    background: linear-gradient(135deg, #0d6efd 0%, #6610f2 100%);
    border-radius: 18px;
    padding: 1.75rem 1.5rem;
    text-align: center;
    box-shadow: 0 12px 35px rgba(13,110,253,.28);
    position: relative;
    overflow: hidden;
}

.cta-card::before,
.cta-card::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    background: rgba(255,255,255,.08);
    pointer-events: none;
}

.cta-card::before { width: 130px; height: 130px; top: -35px; right: -35px; }
.cta-card::after  { width: 90px;  height: 90px;  bottom: -25px; left: -25px; }

.cta-icon {
    width: 54px; height: 54px;
    border-radius: 15px;
    background: rgba(255,255,255,.2);
    color: #fff;
    font-size: 1.35rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto .9rem;
    box-shadow: 0 4px 16px rgba(0,0,0,.15);
    position: relative;
    z-index: 1;
}

.cta-card h5 { color: #fff; font-weight: 800; margin-bottom: .45rem; position: relative; z-index: 1; }
.cta-card p  { color: rgba(255,255,255,.8); font-size: .84rem; margin-bottom: 1.1rem; line-height: 1.6; position: relative; z-index: 1; }

.cta-btn {
    background: #fff;
    color: #0d6efd;
    font-weight: 700;
    font-size: 0.84rem;
    padding: 0.58rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: all .25s ease;
    box-shadow: 0 4px 14px rgba(0,0,0,.12);
    position: relative;
    z-index: 1;
}

.cta-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,.18); color: #0a58ca; }

/* Public Learning Experience Refresh */
.frontend-index,
.frontend-course-index,
.frontend-course-details {
    background: #f6f8fb;
}

.frontend-index .home-section {
    padding-top: 5.5rem !important;
    padding-bottom: 5.5rem !important;
}

.frontend-index .hero-section {
    min-height: 720px;
    padding: 7.5rem 0 6rem;
    display: flex;
    align-items: center;
    text-align: left;
    background-position: center;
    background-size: cover;
}

.frontend-index .hero-overlay {
    background:
        linear-gradient(90deg, rgba(8, 18, 38, 0.92) 0%, rgba(8, 18, 38, 0.78) 48%, rgba(8, 18, 38, 0.42) 100%),
        linear-gradient(180deg, rgba(0, 186, 180, 0.18), rgba(22, 96, 207, 0.16));
}

.frontend-index .hero-kicker,
.course-list-kicker,
.course-detail-kicker {
    display: inline-flex;
    align-items: center;
    margin-bottom: 1rem;
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: #d9f8ff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 0.82rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0;
}

.frontend-index .hero-title {
    max-width: 760px;
    font-size: 4.25rem;
    line-height: 1.02;
    margin-bottom: 1.25rem;
    text-shadow: none;
}

.frontend-index .hero-subtitle {
    max-width: 650px;
    margin-left: 0;
    margin-right: 0;
    font-size: 1.18rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.82);
    text-shadow: none;
}

.frontend-index .hero-actions .btn {
    border-radius: 8px !important;
}

.frontend-index .hero-metrics {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
}

.frontend-index .hero-metrics div {
    min-width: 120px;
    padding: 0.95rem 1.1rem;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
}

.frontend-index .hero-metrics strong {
    display: block;
    color: #fff;
    font-size: 1.5rem;
    line-height: 1;
}

.frontend-index .hero-metrics span {
    display: block;
    margin-top: 0.35rem;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.82rem;
    font-weight: 700;
}

.frontend-index .hero-learning-preview {
    width: 100%;
    max-width: 420px;
    margin-left: auto;
    padding: 1.5rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(255, 255, 255, 0.45);
    box-shadow: 0 34px 70px rgba(0, 0, 0, 0.24);
}

.frontend-index .preview-topbar {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

.frontend-index .preview-topbar span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #132038;
}

.frontend-index .preview-media {
    height: 210px;
    border-radius: 8px;
    background: linear-gradient(135deg, #1660cf 0%, #00bab4 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.frontend-index .preview-media i {
    width: 74px;
    height: 74px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    color: #132038;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 2.1rem;
    padding-left: 0.2rem;
}

.frontend-index .preview-lines {
    display: grid;
    gap: 0.65rem;
    margin-top: 1.35rem;
}

.frontend-index .preview-lines span {
    height: 12px;
    border-radius: 999px;
    background: #dbe5f1;
}

.frontend-index .preview-lines span:nth-child(1) { width: 82%; }
.frontend-index .preview-lines span:nth-child(2) { width: 64%; }
.frontend-index .preview-lines span:nth-child(3) { width: 48%; }

.frontend-index .preview-progress {
    height: 10px;
    margin-top: 1.2rem;
    border-radius: 999px;
    overflow: hidden;
    background: #e5eaf1;
}

.frontend-index .preview-progress span {
    display: block;
    width: 68%;
    height: 100%;
    background: linear-gradient(90deg, #704cde, #3ac47e);
}

.frontend-index .section-heading .section-badge {
    display: inline-flex;
    width: fit-content;
    margin: 0 auto 0.9rem;
}

.frontend-index .section-title {
    display: block;
    color: #132038;
}

.frontend-index .section-heading {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.frontend-index .section-heading .section-title {
    margin-bottom: 1.25rem;
}

.frontend-index .section-title::after {
    background: linear-gradient(90deg, #1660cf, #00bab4);
}

.frontend-index .home-categories,
.frontend-index .home-why-choose,
.frontend-index .home-faq {
    background: #fff !important;
}

.frontend-index .home-featured-courses,
.frontend-index .home-instructors,
.frontend-index .home-blog,
.frontend-index .testimonials-section {
    background: #f6f8fb !important;
}

.frontend-index .home-featured-courses {
    padding-top: 4.75rem !important;
    padding-bottom: 3.25rem !important;
}

.frontend-index .home-why-choose {
    padding-top: 3.25rem !important;
    padding-bottom: 4.75rem !important;
}

.frontend-index .home-section + .home-section,
.frontend-index .home-section + .testimonials-section,
.frontend-index .testimonials-section + .home-section {
    margin-top: 0 !important;
}

.frontend-index .home-section .section-heading,
.frontend-index .testimonials-section .section-heading {
    margin-bottom: 3rem !important;
}

.frontend-index .category-card,
.frontend-index .featured-course-card,
.frontend-course-index .course-card,
.course-content-panel,
.course-enroll-panel {
    border-radius: 8px;
}

.frontend-index .category-card {
    padding: 0.75rem;
    border: 1px solid #e5ebf3;
    box-shadow: 0 14px 34px rgba(19, 32, 56, 0.06) !important;
}

.frontend-index .category-icon-wrapper {
    width: 100%;
    height: 150px;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.frontend-index .category-title {
    min-height: 2.6rem;
    display: flex;
    align-items: center;
}

.frontend-index .category-link-label {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: #1660cf;
    font-size: 0.82rem;
    font-weight: 800;
    margin-bottom: 0.45rem;
}

.frontend-index .feature-card {
    height: 100%;
    padding: 2rem;
    border: 1px solid #e5ebf3;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 14px 34px rgba(19, 32, 56, 0.07);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.frontend-index .feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 22px 48px rgba(19, 32, 56, 0.12);
}

.frontend-index .why-icon {
    width: 58px;
    height: 58px;
    margin-bottom: 1.25rem;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #1660cf;
    background: #edf5ff;
    font-size: 1.75rem;
}

.frontend-index .featured-course-card {
    overflow: hidden;
    background: #fff;
    border: 1px solid #e5ebf3;
    box-shadow: 0 14px 34px rgba(19, 32, 56, 0.07);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.frontend-index .featured-course-card:hover,
.frontend-course-index .course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 22px 48px rgba(19, 32, 56, 0.12);
}

.featured-course-media,
.frontend-course-index .course-card-media {
    overflow: hidden;
}

.featured-course-media img,
.frontend-course-index .course-card-media img {
    transition: transform 0.25s ease;
}

.featured-course-card:hover .featured-course-media img,
.frontend-course-index .course-card:hover .course-card-media img {
    transform: scale(1.045);
}

.featured-course-level,
.frontend-course-index .course-card-category {
    position: absolute;
    left: 0.85rem;
    bottom: 0.85rem;
    max-width: calc(100% - 1.7rem);
    padding: 0.38rem 0.7rem;
    border-radius: 999px;
    background: rgba(19, 32, 56, 0.82);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 800;
}

.featured-course-body {
    padding: 1.25rem;
}

.course-meta-pill,
.course-rating,
.frontend-course-index .course-card-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: #64748b;
    font-size: 0.8rem;
    font-weight: 700;
}

.course-rating {
    color: #f59e0b;
}

.featured-course-title {
    min-height: 3rem;
    color: #132038;
    font-size: 1.04rem;
    font-weight: 800;
    line-height: 1.45;
    margin-bottom: 0.55rem;
}

.featured-course-instructor {
    color: #64748b;
    font-size: 0.86rem;
    margin-bottom: 1rem;
}

.featured-course-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    padding-top: 1rem;
    border-top: 1px solid #edf2f7;
}

.featured-course-footer strong {
    color: #132038;
    font-size: 1.1rem;
}

.course-list-hero {
    padding: 4.5rem 0 3.5rem;
    background:
        linear-gradient(135deg, rgba(22, 96, 207, 0.94), rgba(0, 186, 180, 0.82)),
        #132038;
    color: #fff;
}

.course-list-hero .breadcrumb a,
.course-list-hero .breadcrumb-item,
.course-list-hero .breadcrumb-item.active {
    color: rgba(255, 255, 255, 0.72);
}

.course-list-kicker,
.course-detail-kicker {
    background: rgba(255, 255, 255, 0.14);
}

.course-list-title,
.course-detail-title {
    font-size: 3rem;
    line-height: 1.08;
    font-weight: 900;
    color: #fff;
    margin: 0 0 0.8rem;
}

.course-list-subtitle,
.course-detail-summary {
    max-width: 650px;
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.75;
}

.frontend-course-index .professional-search {
    background: #fff;
    border: 0;
    border-radius: 8px;
    padding: 0.45rem;
    box-shadow: 0 18px 40px rgba(19, 32, 56, 0.18);
}

.frontend-course-index .professional-search .btn {
    border-radius: 6px;
}

.course-grid-section {
    padding: 4.5rem 0 5.5rem;
    background: #f6f8fb;
}

.course-grid-title {
    color: #132038;
    font-size: 1.45rem;
    font-weight: 900;
}

.frontend-course-index .course-card {
    border: 1px solid #e5ebf3;
    box-shadow: 0 14px 34px rgba(19, 32, 56, 0.07);
}

.frontend-course-index .course-card .card-body {
    display: flex;
    flex-direction: column;
}

.frontend-course-index .course-card h5 {
    min-height: 3.4rem;
    line-height: 1.45;
}

.course-instructor-row {
    min-height: 1.25rem;
}

.course-detail-hero {
    padding: 4.75rem 0 5.25rem;
    background:
        radial-gradient(circle at 88% 12%, rgba(0, 186, 180, 0.26), transparent 32%),
        linear-gradient(135deg, rgba(19, 32, 56, 0.98), rgba(22, 96, 207, 0.9)),
        #132038;
    color: #fff;
}

.course-detail-hero .breadcrumb a,
.course-detail-hero .breadcrumb-item,
.course-detail-hero .breadcrumb-item.active {
    color: rgba(255, 255, 255, 0.72);
}

.course-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
    margin-top: 1.75rem;
}

.course-detail-meta div {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.65rem 0.8rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.86);
    font-weight: 700;
}

.course-detail-meta i {
    color: #82f3ee;
}

.course-detail-media {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.28);
}

.course-detail-media img {
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    display: block;
}

.course-preview-overlay {
    position: absolute;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.85rem 1rem;
    border-radius: 8px;
    background: rgba(19, 32, 56, 0.86);
    color: #fff;
    backdrop-filter: blur(12px);
}

.course-preview-overlay span {
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.82rem;
    font-weight: 800;
    text-transform: uppercase;
}

.course-preview-overlay strong {
    font-size: 1.1rem;
}

.course-detail-body {
    padding: 4.5rem 0 5.5rem;
    background: #f6f8fb;
}

.course-detail-nav {
    position: sticky;
    top: 78px;
    z-index: 20;
    display: flex;
    gap: 0.5rem;
    width: fit-content;
    max-width: 100%;
    margin: -6.35rem auto 2rem;
    padding: 0.4rem;
    border: 1px solid #e5ebf3;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 18px 40px rgba(19, 32, 56, 0.12);
    overflow-x: auto;
}

.course-detail-nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0.45rem 1rem;
    border-radius: 6px;
    color: #64748b;
    font-size: 0.86rem;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
}

.course-detail-nav a:hover,
.course-detail-nav a:focus {
    background: #edf5ff;
    color: #1660cf;
}

.course-content-panel,
.course-enroll-panel {
    background: #fff;
    border: 1px solid #e5ebf3;
    box-shadow: 0 14px 34px rgba(19, 32, 56, 0.07);
    padding: 1.65rem;
}

.course-instructor-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-bottom: 1.25rem;
    margin-bottom: 1.25rem;
    border-bottom: 1px solid #edf2f7;
}

.course-price-pill {
    flex-shrink: 0;
    padding: 0.55rem 0.8rem;
    border-radius: 999px;
    background: rgba(22, 96, 207, 0.1);
    color: #1660cf;
    font-weight: 900;
}

.course-panel-title {
    color: #132038;
    font-size: 1.35rem;
    font-weight: 900;
    margin-bottom: 1rem;
}

.course-description {
    color: #64748b;
    line-height: 1.85;
}

.course-highlight-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.8rem;
    margin-top: 1.5rem;
}

.course-highlight-grid div {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    min-height: 66px;
    padding: 0.85rem;
    border: 1px solid #e5ebf3;
    border-radius: 8px;
    background: #f8fbff;
    color: #132038;
    font-weight: 800;
}

.course-highlight-grid i {
    flex: 0 0 auto;
    color: #1660cf;
    font-size: 1.2rem;
}

.course-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.course-panel-header > span {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.5rem 0.75rem;
    border-radius: 999px;
    background: #edf5ff;
    color: #1660cf;
    font-size: 0.82rem;
    font-weight: 900;
}

.course-panel-eyebrow {
    margin-bottom: 0.35rem;
    color: #1660cf;
    font-size: 0.75rem;
    font-weight: 900;
    text-transform: uppercase;
}

.course-curriculum-list {
    display: grid;
    gap: 0.75rem;
}

.course-lesson-item {
    overflow: hidden;
    border: 1px solid #e5ebf3 !important;
    border-radius: 8px !important;
    box-shadow: none !important;
}

.course-lesson-item .accordion-button {
    gap: 0.85rem;
    min-height: 62px;
    background: #fff;
    font-weight: 800;
    color: #132038;
    box-shadow: none;
}

.course-lesson-item .accordion-button:not(.collapsed) {
    background: #f8fbff;
    color: #132038;
}

.lesson-index {
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #edf5ff;
    color: #1660cf;
    font-size: 0.82rem;
    font-weight: 900;
}

.lesson-title-text {
    min-width: 0;
    flex: 1 1 auto;
}

.lesson-preview-link {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    background: rgba(58, 196, 126, 0.12);
    color: #188451;
    font-size: 0.76rem;
    font-weight: 900;
    text-decoration: none;
}

.course-lesson-item .accordion-body {
    color: #64748b;
    line-height: 1.7;
}

.empty-course-content {
    text-align: center;
    padding: 2rem;
    border: 1px dashed #cbd5e1;
    border-radius: 8px;
    color: #64748b;
}

.empty-course-content i {
    font-size: 2rem;
    color: #1660cf;
}

.review-form-panel {
    padding: 1.25rem;
    border: 1px solid rgba(22, 96, 207, 0.18);
    border-radius: 8px;
    background: #f8fbff;
}

.review-item {
    display: flex;
    gap: 1rem;
    padding: 1.1rem 0;
    border-bottom: 1px solid #edf2f7;
}

.review-item:last-child {
    border-bottom: 0;
}

.course-enroll-panel {
    top: 100px;
    padding: 1rem;
}

.course-enroll-price {
    color: #132038;
    font-size: 2rem;
    font-weight: 900;
    margin: 1rem 0;
}

.course-enroll-thumb {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: 8px;
    display: block;
}

.course-sidebar-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    margin-top: 1rem;
}

.course-sidebar-stats div {
    padding: 0.85rem;
    border-radius: 8px;
    background: #f8fbff;
    border: 1px solid #e5ebf3;
}

.course-sidebar-stats strong,
.course-sidebar-stats span {
    display: block;
}

.course-sidebar-stats strong {
    color: #132038;
    font-size: 1.2rem;
    line-height: 1;
}

.course-sidebar-stats span {
    margin-top: 0.35rem;
    color: #64748b;
    font-size: 0.78rem;
    font-weight: 800;
}

.course-includes-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.85rem;
    color: #64748b;
}

.course-includes-list li {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.course-includes-list i {
    color: #1660cf;
}

@media (max-width: 991.98px) {
    .frontend-index .hero-section {
        min-height: auto;
        text-align: center;
        padding: 6rem 0 4rem;
    }

    .frontend-index .hero-title,
    .course-list-title,
    .course-detail-title {
        font-size: 2.5rem;
    }

    .frontend-index .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .frontend-index .hero-metrics {
        justify-content: center;
    }

    .course-detail-nav {
        position: relative;
        top: auto;
        margin-top: -5.5rem;
    }

    .course-enroll-panel {
        position: static !important;
    }
}

@media (max-width: 575.98px) {
    .frontend-index .hero-title,
    .course-list-title,
    .course-detail-title {
        font-size: 2rem;
    }

    .frontend-index .home-section,
    .course-grid-section,
    .course-detail-body {
        padding-top: 3.5rem !important;
        padding-bottom: 3.5rem !important;
    }

    .frontend-course-index .professional-search {
        align-items: stretch;
        flex-wrap: wrap;
    }

    .frontend-course-index .professional-search .form-control {
        flex: 1 0 calc(100% - 45px);
    }

    .frontend-course-index .professional-search .btn {
        width: 100%;
    }

    .course-instructor-strip,
    .course-panel-header,
    .featured-course-footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .course-detail-nav {
        justify-content: flex-start;
        width: 100%;
        margin-top: -4.75rem;
    }

    .course-detail-meta div,
    .course-highlight-grid {
        width: 100%;
    }

    .course-highlight-grid {
        grid-template-columns: 1fr;
    }

    .course-lesson-item .accordion-button {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .lesson-preview-link {
        margin-left: 50px;
    }
}

/* Mobile Overflow Fixes */
html,
body {
    max-width: 100%;
    overflow-x: clip;
}

.frontend-index main,
.frontend-index section,
.frontend-index .container,
.frontend-index .row,
.frontend-index [class*="col-"] {
    min-width: 0;
}

@media (max-width: 575.98px) {
    .navbar-custom .container,
    .frontend-index .container {
        width: 100%;
        max-width: 100%;
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .navbar-custom .navbar-brand img {
        max-width: 150px;
        height: auto;
    }

    .navbar-toggler-custom {
        flex: 0 0 auto;
    }

    .frontend-index .row {
        --bs-gutter-x: 1rem;
        margin-left: calc(-0.5 * var(--bs-gutter-x));
        margin-right: calc(-0.5 * var(--bs-gutter-x));
    }

    .frontend-index .category-card,
    .frontend-index .featured-course-card,
    .frontend-index .feature-card,
    .frontend-index .instructor-card,
    .frontend-index .testi-card,
    .frontend-index .blog-card-hover {
        width: 100%;
        max-width: 100%;
    }

    .frontend-index .category-icon-wrapper,
    .frontend-index .featured-course-media,
    .frontend-index .course-card-media {
        max-width: 100%;
    }

    .frontend-index .category-icon-wrapper img,
    .frontend-index .featured-course-media img,
    .frontend-index .course-card-media img {
        max-width: 100%;
    }
}

/* ── End: Blog Details Page ──────────────────────────────────── */

