@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Poppins', sans-serif;
    overflow-x: hidden;
    width: 100vw;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;

    background:
        radial-gradient(circle at 20% 30%, rgba(59,130,246,0.35), transparent 40%),
        radial-gradient(circle at 80% 20%, rgba(168,85,247,0.35), transparent 40%),
        radial-gradient(circle at 70% 80%, rgba(99,102,241,0.25), transparent 40%),
        radial-gradient(circle at 30% 70%, rgba(139,92,246,0.25), transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(236,72,153,0.15), transparent 40%);
    
    filter: blur(60px);
    pointer-events: none;
}

body::before {
    animation: moveBg 25s ease-in-out infinite alternate;
}

@keyframes moveBg {
    0% { transform: translate(0,0) scale(1); }
    100% { transform: translate(-80px,-40px) scale(1.1); }
}

[v-cloak] {
    display: none;
}

:root {
    --main-color: #1E3A8A;
}

#app {
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 77px);
}

.header {
    background-color: var(--main-color)!important;
    color: white !important;
}

.header a.nav-link {
    color: white !important;
    transition: color 0.2s ease-in-out;
}

.header a.nav-link:hover {
    color: #cce0ff !important;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(90deg, #0d6efd, #3d7bfd);
    border: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary:hover {
    color: black;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.btn-outline-light {
    color: white;
    border-color: rgba(255,255,255,0.8);
    transition: all 0.2s ease;
}

.btn-outline-light:hover {
    color: #1E3A8A;
    background-color: white;
    border-color: white;
}

.dropdown-menu {
    border-radius: 0.5rem;
}

.dropdown-item:hover {
    background-color: #f0f0f0;
}

.dropdown-item.text-danger:hover {
    background-color: #ffeaea;
}


.form-control {
    background-color: #54545454!important;
    border: none;
}

.form-control:focus {
    box-shadow: none;
    background-color: #e9e9e9;
}

.btn-primary {
    background: linear-gradient(90deg, #0d6efd, #3d7bfd);
    border: none;
}


/* Profile Page Styles */
.profile-avatar {
    position: relative;
    display: inline-block;
}

.nav-tabs .nav-link {
    color: #6c757d;
    border: none;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    padding: 0.75rem 1.5rem;
}

.nav-tabs .nav-link:hover {
    color: var(--main-color);
    border-bottom-color: var(--main-color);
}

.nav-tabs .nav-link.active {
    color: var(--main-color);
    border-bottom-color: var(--main-color);
    background-color: transparent;
}

.card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12) !important;
}

.form-control-lg,
.form-select-lg {
    background-color: #f8f9fa !important;
    border: 1px solid #e9ecef;
    transition: all 0.2s ease;
}

.form-control-lg:focus,
.form-select-lg:focus {
    background-color: white !important;
    border-color: var(--main-color);
    box-shadow: 0 0 0 0.2rem rgba(30, 58, 138, 0.25);
}

.form-check-input {
    width: 2.5rem;
    height: 1.5rem;
    border-radius: 0.5rem;
    cursor: pointer;
}

.form-check-input:checked {
    background-color: var(--main-color);
    border-color: var(--main-color);
}

.btn-outline-danger {
    color: #dc3545;
    border-color: #dc3545;
    transition: all 0.2s ease;
}

.btn-outline-danger:hover {
    background-color: #dc3545;
    border-color: #dc3545;
    transform: translateY(-1px);
}

.profile-image-upload {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 40px;
    height: 40px;
    background-color: var(--main-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.2s ease;
    border: 3px solid white;
}

.profile-image-upload:hover {
    background-color: #0d47a1;
    transform: scale(1.1);
}

.profile-image-upload i {
    font-size: 18px;
}


.student-dashboard {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: calc(100vh - 77px);
    padding-top: 20px;
}
.student-dashboard-inner {
    width: 80%;
    margin: 0px auto;
}

.course-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15) !important;
}

.course-image-container {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.course-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.course-image-placeholder {
    height: 200px;
}

.course-status-badge {
    position: absolute;
    top: 10px;
    right: 10px;
}

.nav-tabs .nav-link {
    color: #6c757d;
    border: none;
    border-bottom: 3px solid transparent;
    font-weight: 500;
}

.nav-tabs .nav-link:hover {
    color: #0d6efd;
    border-bottom-color: #0d6efd;
}

.nav-tabs .nav-link.active {
    color: #0d6efd;
    border-bottom-color: #0d6efd;
    background: none;
}

.courses-page {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.course-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.course-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15) !important;
}

.course-image-container {
    overflow: hidden;
    height: 200px;
}

.course-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.course-card:hover .course-image-container img {
    transform: scale(1.05);
}

.list-group-item.active {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

.sticky-top {
    z-index: 10;
}

.header-width {
    width: 80%;
    margin: auto!important;
}


@media (max-width: 991px) {
    .header-width {
        width: 100%;
        margin: auto!important;
    }

    .nav-tabs {
        flex-wrap: wrap;
    }

    .nav-tabs .nav-link {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }

    .hero-needed {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-title {
        text-align: center;
        font-size: 42px ! Important;
        font-weight: 700;
    }

    .hero-subtitle {
        text-align: center;
    }
    
    .hero-buttons {
        display: flex;
        flex-direction: row!important;
        justify-content: center;
        width: 80%;
    }
}

/* Quill Editor Display Styles */
.ql-editor {
    padding: 0;
    font-family: inherit;
    font-size: 1rem;
    line-height: 1.6;
}

.ql-editor h1 {
    font-size: 2rem;
    font-weight: 700;
    margin: 1rem 0 0.5rem 0;
}

.ql-editor h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0.875rem 0 0.5rem 0;
}

.ql-editor h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0.75rem 0 0.5rem 0;
}

.ql-editor p {
    margin: 0.5rem 0;
}

.ql-editor blockquote {
    border-left: 4px solid #ccc;
    margin: 1rem 0;
    padding-left: 1rem;
    color: #666;
}

.ql-editor pre {
    background:
        linear-gradient(180deg, rgba(13, 23, 40, 0.98), rgba(8, 16, 30, 0.98));
    border: 1px solid rgba(99, 132, 255, 0.2);
    border-radius: 16px;
    box-shadow: 0 18px 36px rgba(2, 8, 23, 0.18);
    color: #e6eefc;
    padding: 1.15rem 1.25rem!important;
    overflow-x: auto;
    margin: 1rem 0!Important;
    font-family: 'Fira Code', 'Consolas', 'Courier New', monospace;
    font-size: 0.95rem;
    line-height: 1.75;
    white-space: pre-wrap;
    word-break: break-word;
    tab-size: 4;
}

.ql-editor code {
    background-color: rgba(13, 23, 40, 0.08);
    color: #3247a8;
    padding: 0.2rem 0.45rem;
    border-radius: 6px;
    font-family: 'Fira Code', 'Consolas', 'Courier New', monospace;
    font-size: 0.92em;
}

.ql-editor pre code {
    background-color: transparent;
    padding: 0;
    color: inherit;
    font-size: inherit;
    white-space: inherit;
}

.ql-editor ul,
.ql-editor ol {
    margin: 0.5rem 0;
    padding-left: 2rem;
}

.ql-editor li {
    margin: 0.25rem 0;
}

.ql-editor img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin: 1rem 0;
}

.ql-editor a {
    color: #0d6efd;
    text-decoration: none;
}

.ql-editor a:hover {
    text-decoration: underline;
}

.ql-editor strong {
    font-weight: 700;
}

.ql-editor em {
    font-style: italic;
}

.ql-editor u {
    text-decoration: underline;
}

.ql-editor s {
    text-decoration: line-through;
}

.ql-editor table {
    border-collapse: collapse;
    width: 100%;
    margin: 1rem 0;
}

.ql-editor table td,
.ql-editor table th {
    border: 1px solid #ddd;
    padding: 0.75rem;
}

.ql-editor table th {
    background-color: #f5f5f5;
    font-weight: 700;
}

/* Video embeds */
.ql-editor iframe {
    max-width: 100%;
    height: auto;
}

/* Quill snow theme overrides */
.ql-container.ql-snow {
    border: none;
}

.ql-toolbar.ql-snow {
    border: 1px solid #ddd;
    border-radius: 4px 4px 0 0;
}
/* ========================================================================
       FOOTER CONTAINER
       ======================================================================== */

    .footer-container {
        background-color: var(--main-color);
        color: white;
        padding: 3rem 0 1rem;
        margin-top: auto;
        font-family: 'Poppins', sans-serif;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    /* ========================================================================
       FOOTER CONTENT GRID
       ======================================================================== */

    .footer-content {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 2rem;
        margin-bottom: 2rem;
    }

    .footer-column {
        display: flex;
        flex-direction: column;
    }

    /* ========================================================================
       BRAND SECTION
       ======================================================================== */

    .footer-brand-title {
        font-size: 1.5rem;
        font-weight: 700;
        margin-bottom: 1rem;
        color: white;
    }

    .footer-description {
        font-size: 0.95rem;
        color: rgba(255, 255, 255, 0.85);
        line-height: 1.6;
        margin-bottom: 1.5rem;
    }

    /* ========================================================================
       SOCIAL ICONS
       ======================================================================== */

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

    .footer-social-icon {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        background-color: rgba(255, 255, 255, 0.15);
        color: white;
        border-radius: 50%;
        text-decoration: none;
        transition: all 0.3s ease;
        font-size: 1rem;
    }

    .footer-social-icon:hover {
        background-color: rgba(255, 255, 255, 0.3);
        transform: translateY(-3px);
    }

    /* ========================================================================
       COLUMN TITLES
       ======================================================================== */

    .footer-column-title {
        font-size: 0.95rem;
        font-weight: 600;
        color: white;
        margin-bottom: 1.25rem;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    /* ========================================================================
       LINKS
       ======================================================================== */

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

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

    .footer-links a {
        color: rgba(255, 255, 255, 0.8);
        text-decoration: none;
        font-size: 0.95rem;
        transition: all 0.2s ease;
        display: inline-block;
    }

    .footer-links a:hover {
        color: #cce0ff;
        padding-left: 4px;
    }

    /* ========================================================================
       CONTACT
       ======================================================================== */

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

    .footer-contact li {
        margin-bottom: 0.75rem;
        color: rgba(255, 255, 255, 0.8);
        font-size: 0.95rem;
        display: flex;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .footer-contact i {
        color: #cce0ff;
        min-width: 20px;
        margin-top: 2px;
    }

    .footer-contact a {
        color: rgba(255, 255, 255, 0.8);
        text-decoration: none;
        transition: color 0.2s ease;
    }

    .footer-contact a:hover {
        color: #cce0ff;
    }

    /* ========================================================================
       DIVIDER
       ======================================================================== */

    .footer-divider {
        height: 1px;
        background: linear-gradient(
            90deg,
            rgba(255, 255, 255, 0),
            rgba(255, 255, 255, 0.2),
            rgba(255, 255, 255, 0)
        );
        margin: 2rem 0;
    }

    /* ========================================================================
       FOOTER BOTTOM
       ======================================================================== */

    .footer-bottom {
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-wrap: wrap;
        gap: 2rem;
    }

    .footer-copyright p {
        color: rgba(255, 255, 255, 0.7);
        font-size: 0.9rem;
        margin: 0;
    }

    /* ========================================================================
       LEGAL LINKS
       ======================================================================== */

    .footer-legal {
        display: flex;
        gap: 2rem;
        flex-wrap: wrap;
    }

    .footer-legal a {
        color: rgba(255, 255, 255, 0.7);
        text-decoration: none;
        font-size: 0.9rem;
        transition: color 0.2s ease;
    }

    .footer-legal a:hover {
        color: #cce0ff;
    }

    /* ========================================================================
       RESPONSIVE DESIGN
       ======================================================================== */

    @media (max-width: 768px) {
        .footer-container {
            padding: 2rem 0 1rem;
        }

        .footer-content {
            grid-template-columns: 1fr;
            gap: 1.5rem;
        }

        .footer-bottom {
            flex-direction: column;
            text-align: center;
            gap: 1rem;
        }

        .footer-legal {
            justify-content: center;
            gap: 1rem;
        }

        .footer-column-title {
            font-size: 0.9rem;
        }

        .footer-links a,
        .footer-contact li {
            font-size: 0.9rem;
        }
    }

    @media (max-width: 480px) {
        .footer-container {
            padding: 1.5rem 0 0.75rem;
        }

        .footer-brand-title {
            font-size: 1.25rem;
        }

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

        .footer-social {
            gap: 0.75rem;
        }

        .footer-social-icon {
            width: 36px;
            height: 36px;
            font-size: 0.9rem;
        }

        .footer-divider {
            margin: 1.5rem 0;
        }

        .footer-legal a {
            font-size: 0.85rem;
        }
    }

/* Quiz Result Icons */
.result-icon {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.result-success {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
}

.result-warning {
    background: linear-gradient(135deg, #ffc107 0%, #fd7e14 100%);
    color: white;
}

/* Option Cards */
.options-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.option-card {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #fff;
}

.option-card:hover:not(.disabled) {
    border-color: #0d6efd;
    background: #f8f9ff;
    transform: translateX(4px);
}

.option-card.selected {
    border-color: #0d6efd;
    background: linear-gradient(135deg, #e7f1ff 0%, #f0f7ff 100%);
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.15);
}

.option-card.disabled {
    cursor: not-allowed;
    opacity: 0.7;
}

.option-letter {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-right: 16px;
    font-size: 16px;
    transition: all 0.2s ease;
}

.option-card.selected .option-letter {
    background: #0d6efd;
    color: white;
}

.option-text {
    flex-grow: 1;
    font-size: 16px;
}

.option-status {
    margin-left: 12px;
}

/* True/False Buttons */
.tf-container {
    display: flex;
    gap: 16px;
}

.tf-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px;
    border: 2px solid #e0e0e0;
    border-radius: 16px;
    background: #fff;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tf-btn i {
    font-size: 2rem;
    margin-bottom: 8px;
}

.tf-btn span {
    font-size: 1.1rem;
    font-weight: 600;
}

.button-topic-select:hover {
    background: linear-gradient(135deg, #4f46e5, #6366f1)!important;
    border:1px solid linear-gradient(135deg, #4f46e5, #6366f1)!important;
}

.tf-btn:hover:not(.disabled) {
    transform: translateY(-2px);
}

.btn:hover {
    color: white!important;
}

.tf-true:hover:not(.disabled),
.tf-true.selected {
    border-color: #28a745;
    background: #d4edda;
    color: #155724;
}

.tf-false:hover:not(.disabled),
.tf-false.selected {
    border-color: #dc3545;
    background: #f8d7da;
    color: #721c24;
}

.tf-btn.disabled {
    cursor: not-allowed;
    opacity: 0.7;
}

/* Question Dots */
.question-dots {
    display: flex;
    gap: 8px;
    align-items: center;
}

.question-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid #dee2e6;
    background: transparent;
    padding: 0;
    cursor: pointer;
    transition: all 0.2s ease;
}

.question-dot:hover {
    border-color: #0d6efd;
}

.question-dot.answered {
    background: #0d6efd;
    border-color: #0d6efd;
}

.question-dot.active {
    width: 20px;
    border-radius: 6px;
    border-color: #0d6efd;
    background: #0d6efd;
}

/* Code Editor */
.code-editor-container {
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
}

.code-header {
    background: #2d3748;
    color: #a0aec0;
    padding: 8px 16px;
    font-size: 14px;
}

.code-editor {
    font-family: 'Fira Code', 'Monaco', 'Consolas', monospace;
    font-size: 14px;
    border: none;
    border-radius: 0;
    background: #1e1e1e;
    color: #d4d4d4;
}

.code-editor:focus {
    box-shadow: none;
    background: #1e1e1e;
}

.exercise-request-block {
    margin-bottom: 1.5rem;
}

.exercise-request-title {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: 0.85rem;
    font-size: 1.05rem;
    font-weight: 700;
    color: #1f2f6b;
}

.exercise-request-text {
    font-size: 1rem;
    line-height: 1.7;
    color: #4b587c;
}

.exercise-code-editor {
    border-color: rgba(88, 103, 221, 0.22);
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.14);
}

.exercise-answer-editor {
    min-height: 280px;
    line-height: 1.75;
    tab-size: 4;
    white-space: pre-wrap;
}

html.dark-mode .exercise-request-title {
    color: #e8ecff;
}

html.dark-mode .exercise-request-text {
    color: #c8d1f2;
}

html.dark-mode .exercise-code-editor {
    border-color: rgba(129, 140, 248, 0.2);
    box-shadow: 0 24px 44px rgba(2, 8, 23, 0.34);
}

/* Fill in the Blank */
.fill-blank-input {
    font-size: 18px;
    border: 2px dashed #0d6efd;
    border-radius: 12px;
    text-align: center;
}

.fill-blank-input:focus {
    border-style: solid;
    box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.15);
}

/* Quiz Review */
.quiz-review .card {
    transition: all 0.2s ease;
}

.quiz-review .card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Animations */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.question-container {
    animation: slideIn 0.3s ease;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.option-card.selected {
    animation: pulse 0.3s ease;
}



/* main.css - Add/Update these styles */

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Poppins', sans-serif;
    overflow-x: hidden;
    width: 100%;
}

/* ✅ V-CLOAK: Hide content until Vue loads */
[v-cloak] {
    display: none !important;
}

/* Show loading state while Vue initializes */
#app:not([v-cloak]) {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

:root {
    --main-color: #1E3A8A;
    --transition: all 0.3s ease;
}

/* ========================================================================
   RESPONSIVE BREAKPOINTS
   ======================================================================== */

/* Mobile First Approach */
@media (max-width: 576px) {
    /* Extra Small Devices */
    body {
        font-size: 14px;
    }

    .container-fluid {
        padding-left: 12px;
        padding-right: 12px;
    }

    .container {
        padding-left: 12px;
        padding-right: 12px;
    }

    h1 {
        font-size: 24px !important;
    }

    h2 {
        font-size: 20px !important;
    }

    h5 {
        font-size: 16px !important;
    }

    .py-5 {
        padding-top: 1.5rem !important;
        padding-bottom: 1.5rem !important;
    }

    .mb-4 {
        margin-bottom: 1rem !important;
    }

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

    .d-flex {
        flex-direction: column;
    }

    .d-flex.gap-3 {
        gap: 0.75rem;
    }

    .text-end {
        text-align: start !important;
    }

    .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }

    .card {
        margin-bottom: 1rem;
    }
}

@media (min-width: 577px) and (max-width: 768px) {
    /* Tablet */
    body {
        font-size: 15px;
    }

    h1 {
        font-size: 28px !important;
    }

    .py-5 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }

    .col-md-6 {
        flex: 0 0 100%;
    }
}

@media (min-width: 769px) and (max-width: 992px) {
    /* Medium Devices */
    h1 {
        font-size: 32px !important;
    }

    .col-lg-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .col-lg-3 {
        flex: 0 0 50%;
        max-width: 50%;
    }

    .col-lg-4 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

@media (min-width: 993px) {
    /* Desktop and Large Screens */
    body {
        font-size: 16px;
    }
}

/* ========================================================================
   RESPONSIVE HEADER
   ======================================================================== */

.header {
    background-color: var(--main-color) !important;
    color: white !important;
    padding: 0.75rem 0;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.header a.nav-link {
    color: white !important;
    transition: var(--transition);
    padding: 0.5rem 1rem;
    font-size: 0.95rem;
}

.header a.nav-link:hover {
    color: #cce0ff !important;
}

@media (max-width: 768px) {
    .header-width {
        width: 100%;
        margin: auto!important;
    }

    .header .d-flex {
        flex-direction: row;
        width: 100%;
        gap: 0.5rem;
        padding: 2rem;
    }

    .header a.nav-link {
        padding: 0.25rem 0.5rem;
        font-size: 0.85rem;
    }

    .header .btn {
        width: auto;
        padding: 0.4rem 0.8rem;
        font-size: 0.85rem;
    }
}

/* ========================================================================
   RESPONSIVE HERO SECTION
   ======================================================================== */

.hero-section {
    padding: 2rem 0;
}

@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 28px !important;
        line-height: 1.3;
    }

    .hero-section p {
        font-size: 14px !important;
    }

    .hero-section .d-flex {
        flex-direction: column;
        gap: 0.75rem;
    }

    .hero-section .btn {
        width: 100%;
    }

    .hero-section .col-lg-6:last-child {
        margin-top: 2rem;
    }

    .hero-section img {
        max-height: 300px;
    }
}

/* ========================================================================
   RESPONSIVE CARDS
   ======================================================================== */

.card {
    transition: var(--transition);
    border: none;
    border-radius: 12px;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12) !important;
}

@media (max-width: 576px) {
    .course-learning-ai-textarea {
        width: 100%!important;
    }

    .header-width {
        width: 100%;
        margin: auto!important;
    }

    .card {
        margin-bottom: 1rem;
    }

    .card-body {
        padding: 1rem;
    }

    .card-title {
        font-size: 16px;
    }
}

/* ========================================================================
   RESPONSIVE FORMS
   ======================================================================== */

.form-control,
.form-select {
    border-radius: 8px;
    border: 1px solid #e9ecef;
    transition: var(--transition);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--main-color);
    box-shadow: 0 0 0 0.2rem rgba(30, 58, 138, 0.25);
}

.form-control-lg,
.form-select-lg {
    padding: 0.75rem 1rem;
    font-size: 1rem;
}

@media (max-width: 576px) {
    .form-control,
    .form-select,
    .form-control-lg,
    .form-select-lg {
        font-size: 16px; /* Prevents zoom on iOS */
        padding: 0.75rem;
    }

    .rounded-pill {
        border-radius: 8px !important;
    }
}

/* ========================================================================
   RESPONSIVE BUTTONS
   ======================================================================== */

.btn {
    transition: var(--transition);
    border-radius: 8px;
    font-weight: 500;
}

.btn-primary {
    background: linear-gradient(90deg, #0d6efd, #3d7bfd);
    border: none;
}

.btn-primary:hover {
    color: black;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

@media (max-width: 576px) {
    .btn {
        padding: 0.6rem 1rem;
        font-size: 14px;
    }

    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 15px;
    }

    .d-grid .btn {
        width: 100%;
    }
}

/* ========================================================================
   RESPONSIVE DASHBOARD
   ======================================================================== */

.student-dashboard {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: calc(100vh - 77px);
    padding: 1.5rem 0;
}

.student-dashboard-inner {
    width: 95%;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .student-dashboard-inner {
        width: 100%;
        padding: 0 12px;
    }

    .display-5 {
        font-size: 24px !important;
    }

    .row > [class*='col-'] {
        margin-bottom: 1rem;
    }
}

@media (min-width: 769px) {
    .student-dashboard-inner {
        width: 90%;
    }
}

@media (min-width: 1200px) {
    .student-dashboard-inner {
        width: 85%;
    }
}

/* ========================================================================
   RESPONSIVE COURSE LEARNING PAGE
   ======================================================================== */

.course-learning-page {
    min-height: calc(100vh - 77px);
}

@media (max-width: 992px) {
    .course-learning-page .col-lg-3 {
        max-height: 50vh;
        margin-bottom: 1rem;
    }

    .course-learning-page .col-lg-9 {
        flex: 0 0 100%;
        max-width: 100%;
    }

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

@media (max-width: 576px) {
    .course-learning-page .row {
        flex-direction: column;
    }

    .course-learning-page .col-lg-3,
    .course-learning-page .col-lg-9 {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .offcanvas {
        width: 100% !important;
    }

    .ratio-16x9 {
        aspect-ratio: 16 / 9;
    }

    .score-card-css {
        display: flex;
        flex-direction: row;
    }
}

/* ========================================================================
   RESPONSIVE FOOTER
   ======================================================================== */

.footer-container {
    background-color: var(--main-color);
    color: white;
    padding: 3rem 0 1rem;
    margin-top: auto;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

@media (max-width: 768px) {
    .footer-container {
        padding: 2rem 0 1rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .footer-legal {
        justify-content: center;
        flex-direction: column;
        gap: 0.5rem;
    }

    .footer-column-title {
        font-size: 0.9rem;
    }

    .footer-social {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .footer-container {
        padding: 1.5rem 0 0.75rem;
    }

    .footer-brand-title {
        font-size: 1.25rem;
    }

    .footer-social-icon {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }
}

/* ========================================================================
   RESPONSIVE QUIZ
   ======================================================================== */

.option-card {
    padding: 12px 16px;
    border-radius: 8px;
}

@media (max-width: 576px) {
    .option-card {
        padding: 10px 12px;
    }

    .option-letter {
        width: 32px;
        height: 32px;
        font-size: 14px;
        margin-right: 12px;
    }

    .option-text {
        font-size: 14px;
    }

    .tf-container {
        flex-direction: column;
        gap: 12px;
    }

    .tf-btn {
        padding: 16px;
    }

    .tf-btn i {
        font-size: 1.5rem;
    }

    .question-dots {
        flex-wrap: wrap;
        gap: 6px;
    }

    .question-dot {
        width: 10px;
        height: 10px;
    }
}

/* ========================================================================
   RESPONSIVE TABLES
   ======================================================================== */

.table {
    font-size: 0.95rem;
}

@media (max-width: 768px) {
    .table {
        font-size: 0.85rem;
    }

    .table th,
    .table td {
        padding: 0.5rem;
    }

    .table-responsive {
        overflow-x: auto;
    }
}

/* ========================================================================
   RESPONSIVE MODALS
   ======================================================================== */

.modal-dialog {
    margin: 1rem;
}

@media (max-width: 576px) {
    .modal-dialog {
        margin: 0.5rem;
        max-width: 95vw;
    }

    .modal-body {
        padding: 1rem;
    }

    .modal-header,
    .modal-footer {
        padding: 1rem;
    }
}

/* ========================================================================
   RESPONSIVE OFFCANVAS (AI Chat Sidebar)
   ======================================================================== */

.offcanvas {
    width: 500px !important;
}

@media (max-width: 992px) {
    .offcanvas {
        width: 100% !important;
    }
}

@media (max-width: 576px) {
    .offcanvas {
        width: 100% !important;
    }

    .offcanvas-body {
        padding: 0.75rem;
    }
}

/* ========================================================================
   RESPONSIVE UTILITIES
   ======================================================================== */

@media (max-width: 768px) {
    .header-width {
        width: 100%;
        margin: auto!important;
    }

    .d-flex {
        flex-direction: column;
    }

    .d-flex.flex-row {
        flex-direction: row;
    }

    .justify-content-between {
        justify-content: flex-start;
    }

    .text-end {
        text-align: start !important;
    }

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

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

    .ms-auto {
        margin-left: 0 !important;
        margin-top: 0.5rem;
    }

    .me-2 {
        margin-right: 0.5rem !important;
    }
}

/* ========================================================================
   RESPONSIVE SIDEBAR (Course Learning)
   ======================================================================== */

@media (max-width: 992px) {
    .col-lg-3.bg-light {
        position: sticky;
        top: 0;
        z-index: 100;
        max-height: 50vh;
        overflow-y: auto;
    }
}

/* ========================================================================
   PRINT STYLES
   ======================================================================== */

@media print {
    .header,
    .footer-container,
    .btn,
    .nav-tabs {
        display: none;
    }

    body {
        background: white;
    }

    .card {
        page-break-inside: avoid;
    }
}


/* ========================================================================
   HEADER STYLES
   ======================================================================== */

.header {
    background-color: var(--main-color) !important;
    color: white !important;
    padding: 0;
    position: relative;
    z-index: 1000;
}

.container-fluid {
    max-width: 100%;
    padding-left: 0!important;
    padding-right: 0!important;
}

/* Desktop Navigation */
.header .d-none.d-lg-flex {
    gap: 1.5rem;
}

.header a.nav-link {
    color: white !important;
    transition: color 0.2s ease-in-out;
    padding: 0.5rem 0.75rem;
    font-size: 0.95rem;
    white-space: nowrap;
}

.header a.nav-link:hover {
    color: #cce0ff !important;
    text-decoration: none;
}

/* Mobile Menu Styles */
.mobile-menu {
    background-color: rgba(0, 0, 0, 0.1);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.5rem 0;
    animation: slideDown 0.3s ease-out;
}

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

.mobile-menu .navbar-nav {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.mobile-menu .nav-link {
    color: white !important;
    padding: 0.75rem 1rem !important;
    border-left: 3px solid transparent;
    transition: all 0.2s ease;
    font-size: 0.95rem;
}

.mobile-menu .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-left-color: #cce0ff;
    padding-left: 1.25rem !important;
}

.mobile-menu .nav-link.text-danger:hover {
    background-color: rgba(220, 53, 69, 0.2);
    border-left-color: #dc3545;
}

.mobile-menu hr {
    margin: 0.5rem 0;
    opacity: 0.3;
}

/* Hamburger Button */
.header .btn-outline-light {
    border-color: rgba(255, 255, 255, 0.5);
    color: white;
    padding: 0.4rem 0.6rem;
    font-size: 1.2rem;
}

.header .btn-outline-light:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: white;
    color: white;
}

.header .btn-outline-light i {
    transition: transform 0.3s ease;
}

/* Dropdown Menu */
.header .dropdown-menu {
    border-radius: 0.5rem;
    border: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    min-width: 200px;
}

.header .dropdown-item {
    padding: 0.75rem 1rem;
    transition: all 0.2s ease;
}

.header .dropdown-item:hover {
    background-color: #f0f0f0;
    padding-left: 1.25rem;
}

.header .dropdown-item.text-danger:hover {
    background-color: #ffeaea;
}

.header .dropdown-item i {
    margin-right: 0.5rem;
    width: 16px;
    text-align: center;
}

/* Logo Styling */
.header .fw-bold {
    font-size: 1.5rem;
    transition: all 0.2s ease;
}

.header a.text-decoration-none:hover {
    opacity: 0.8;
}

/* ========================================================================
   RESPONSIVE HEADER
   ======================================================================== */

/* Extra Small Devices (Mobile) - Full width navigation */
@media (max-width: 575px) {
    .header .fw-bold {
        font-size: 1.25rem;
    }

    .mobile-menu .nav-link {
        padding: 0.6rem 0.75rem !important;
        font-size: 0.9rem;
    }

    .header .btn-outline-light {
        padding: 0.35rem 0.5rem;
        font-size: 1rem;
    }
}

/* Small Devices (Tablet) - Hamburger menu */
@media (min-width: 576px) and (max-width: 991px) {
    .header .fw-bold {
        font-size: 1.4rem;
    }

    .mobile-menu {
        padding: 0.75rem 0;
    }

    .mobile-menu .nav-link {
        padding: 0.7rem 1rem !important;
        font-size: 0.95rem;
    }
    
}

/* Medium Devices and Up (Desktop) - Full navigation */
@media (min-width: 992px) {
    .header .fw-bold {
        font-size: 1.5rem;
    }

    .header .d-none.d-lg-flex {
        gap: 2rem;
    }

    .header a.nav-link {
        padding: 0.5rem 1rem;
        font-size: 1rem;
    }

    .header .btn-primary {
        padding: 0.5rem 1.5rem;
    }
}

/* Large Devices (Desktop) */
@media (min-width: 1200px) {
    .header .d-none.d-lg-flex {
        gap: 2.5rem;
    }

    .header a.nav-link {
        padding: 0.5rem 1.25rem;
    }
}

/* Very Large Devices (Large Desktop/TV) */
@media (min-width: 1920px) {
    .header .fw-bold {
        font-size: 1.75rem;
    }

    .header a.nav-link {
        font-size: 1.1rem;
        padding: 0.75rem 1.5rem;
    }

    .header .btn-primary {
        padding: 0.6rem 2rem;
        font-size: 1.05rem;
    }
}


/* Add to main.css */

/* Responsive Font Sizing with clamp() */
h1 { font-size: clamp(24px, 5vw, 48px); }
h2 { font-size: clamp(20px, 4vw, 36px); }
h3 { font-size: clamp(18px, 3vw, 28px); }
h5 { font-size: clamp(16px, 2.5vw, 20px); }

/* Responsive Padding */
.py-5 { padding-top: clamp(1.5rem, 5vw, 3rem); padding-bottom: clamp(1.5rem, 5vw, 3rem); }
.px-4 { padding-left: clamp(1rem, 3vw, 1.5rem); padding-right: clamp(1rem, 3vw, 1.5rem); }

.px-3 {
    padding-right: 0!important;
    padding-left: 0!important;
}

/* Responsive Gap */
.gap-3 { gap: clamp(0.75rem, 2vw, 1rem); }
.gap-4 { gap: clamp(1rem, 3vw, 1.5rem); }

/* Responsive Grid */
.row { --bs-gutter-x: clamp(0.75rem, 2vw, 1.5rem); }


/* HERO BACKGROUND */
.hero-wrapper {
    position: relative;
    overflow: hidden;
    padding: 60px 0;
    background-color: transparent;
}

/* keep content above */
.hero-card {
    position: relative;
    z-index: 1;
}

/* HERO CARD */
.hero-card {
    background: transparent;
    backdrop-filter: blur(12px);
    border-radius: 24px;
    padding: 40px;
}

/* TITLE */
.hero-title {
    font-size: 48px;
    font-weight: 700;
    background: linear-gradient(90deg, #2563eb, #9333ea);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* SUBTITLE */
.hero-subtitle {
    font-size: 18px;
    color: #6b7280;
    max-width: 500px;
}

/* BUTTONS */
.btn-gradient {
    background: linear-gradient(90deg, #8b5cf6, #6366f1);
    color: white;
    border: none;
}

.btn-gradient:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

/* IMAGE */
.hero-image {
    max-height: 700px;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .hero-card {
        padding: 25px;
    }

    .hero-title {
        font-size: 32px;
    }

    .hero-image {
        max-height: 360px;
    }
}

/* HEADER WRAPPER */
.header-glass {
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
    background: transparent;
}

/* INNER CONTAINER (THE ROUNDED ONE) */
.header-inner {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(12px);
    border-radius: 20px;
    padding: 12px 25px;

    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
}

/* LOGO TEXT */
.logo-text {
    font-size: 22px;
    background: linear-gradient(90deg, #2563eb, #9333ea);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* NAV LINKS */
.nav-link-custom {
    color: #6b7280;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}

.nav-link-custom:hover {
    color: #2563eb;
}

/* LIGHT BUTTON */
.btn-light-custom {
    background: #f3f4f6;
    border: none;
    border-radius: 10px;
    padding: 6px 16px;
}

/* GRADIENT BUTTON */
.btn-gradient {
    background: linear-gradient(90deg, #6366f1, #9333ea);
    color: white;
    border: none;
    border-radius: 10px;
    padding: 6px 18px;
    transition: all 0.2s ease;
}

.btn-gradient:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

.header-glass .container {
    position: relative;
}

.header-inner {
    display: flex;
    flex-direction: row !important;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.mobile-menu-toggle {
    width: 50px;
    height: 50px;
    border-radius: 14px;
    border: 1px solid rgba(99, 102, 241, 0.18);
    background: rgba(255, 255, 255, 0.48);
    backdrop-filter: blur(12px);
    color: #334155;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
}

.mobile-menu-toggle:hover,
.mobile-menu-toggle:focus {
    color: #2563eb;
    background: rgba(255, 255, 255, 0.72);
}

.mobile-glass-menu {
    margin-top: 12px;
}

.mobile-glass-menu-inner {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    padding: 16px;
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(18px);
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 20px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
}

.mobile-nav-link {
    display: block;
    padding: 0.9rem 1rem;
    border-radius: 14px;
    color: #475569;
    font-weight: 500;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.32);
    transition: all 0.2s ease;
}

.mobile-nav-link:hover {
    color: #2563eb;
    background: rgba(255, 255, 255, 0.68);
    transform: translateX(4px);
}

.mobile-menu-actions,
.mobile-user-menu {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 0.6rem;
    padding-top: 0.85rem;
    border-top: 1px solid rgba(148, 163, 184, 0.22);
}

.mobile-user-name {
    padding: 0 0.25rem;
    color: #334155;
    font-size: 0.95rem;
    font-weight: 600;
}

.mobile-nav-link-danger {
    color: #dc2626;
}

.mobile-nav-link-danger:hover {
    color: #b91c1c;
    background: rgba(254, 226, 226, 0.78);
}

.mobile-glass-menu-enter-active,
.mobile-glass-menu-leave-active {
    transition: opacity 0.22s ease, transform 0.22s ease;
}

.mobile-glass-menu-enter-from,
.mobile-glass-menu-leave-to {
    opacity: 0;
    transform: translateY(-10px);
}

@media (min-width: 992px) {
    .mobile-glass-menu {
        display: none !important;
    }
}

@media (max-width: 991px) {
    .header-glass {
        padding: 12px 0;
    }

    .header-inner {
        padding: 12px 16px;
    }

    .header-inner .gap-2 {
        flex-direction: row !important;
    }
}

@media (max-width: 575px) {
    .header-inner {
        border-radius: 18px;
        padding: 10px 14px;
    }

    .mobile-glass-menu-inner {
        padding: 14px;
        border-radius: 18px;
    }

.mobile-nav-link {
    padding: 0.85rem 0.9rem;
    }
}

.about-page {
    position: relative;
    overflow: hidden;
}

.about-section {
    position: relative;
    z-index: 1;
}

.about-hero-card {
    position: relative;
    overflow: hidden;
    padding: 3rem;
    border-radius: 32px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.52)),
        radial-gradient(circle at top right, rgba(192, 132, 252, 0.28), transparent 38%);
    border: 1px solid rgba(255, 255, 255, 0.46);
    backdrop-filter: blur(18px);
    box-shadow: 0 22px 60px rgba(97, 76, 176, 0.14);
}

.about-hero-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 85% 22%, rgba(196, 181, 253, 0.42), transparent 18%),
        radial-gradient(circle at 18% 78%, rgba(147, 197, 253, 0.18), transparent 22%);
    pointer-events: none;
}

.about-copy,
.about-visual-wrap,
.about-stats-grid {
    position: relative;
    z-index: 1;
}

.about-eyebrow {
    display: inline-block;
    margin-bottom: 0.9rem;
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    background: rgba(99, 102, 241, 0.12);
    color: #5b6ee1;
    font-size: 0.9rem;
    font-weight: 600;
}

.about-title {
    font-size: clamp(2.3rem, 4vw, 3.6rem);
    line-height: 1.05;
    color: #5b6ee1;
    font-weight: 700;
}

.about-lead,
.about-description {
    max-width: 560px;
    color: #6b6f8e;
    font-size: 1.15rem;
    line-height: 1.9;
}

.about-description {
    margin-top: 1.2rem;
}

.about-mini-card {
    height: 100%;
    padding: 1.25rem 1.15rem;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.42);
    border: 1px solid rgba(255, 255, 255, 0.52);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.about-mini-icon {
    width: 54px;
    height: 54px;
    margin-bottom: 1rem;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
}

.about-mini-icon-orange {
    color: #f97316;
    background: rgba(254, 215, 170, 0.5);
}

.about-mini-icon-purple {
    color: #8b5cf6;
    background: rgba(221, 214, 254, 0.65);
}

.about-mini-title {
    color: #5f52c9;
    font-size: 1.65rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.about-mini-text {
    margin: 0;
    color: #6c7094;
    line-height: 1.8;
    font-size: 1rem;
}

.about-visual-wrap {
    position: relative;
    min-height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-visual-glow {
    position: absolute;
    width: 88%;
    height: 88%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(196, 181, 253, 0.42), transparent 68%);
    filter: blur(12px);
}

.about-visual-image {
    position: relative;
    max-height: 440px;
    object-fit: contain;
    filter: drop-shadow(0 18px 35px rgba(108, 99, 255, 0.22));
}

.about-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
    margin-top: 2.5rem;
    padding-top: 1.75rem;
    border-top: 1px solid rgba(196, 181, 253, 0.28);
}

.about-stat-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.2rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.34);
}

.about-stat-icon {
    width: 58px;
    height: 58px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(221, 214, 254, 0.55);
    color: #6657d8;
    font-size: 1.5rem;
}

.about-stat-number {
    color: #5c58c7;
    font-size: clamp(1.35rem, 2vw, 2rem);
    font-weight: 700;
    line-height: 1.2;
}

.about-stat-label {
    color: #70749a;
    font-size: 1rem;
    margin-top: 0.2rem;
}

@media (max-width: 991px) {
    .about-hero-card {
        padding: 2rem;
        border-radius: 28px;
    }

    .about-copy {
        text-align: center;
    }

    .about-lead,
    .about-description {
        max-width: 100%;
    }

    .about-visual-wrap {
        min-height: 320px;
    }

    .about-stats-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 575px) {
    .about-section {
        padding-top: 1.5rem !important;
        padding-bottom: 2rem !important;
    }

    .about-hero-card {
        padding: 1.35rem;
        border-radius: 24px;
    }

    .about-title {
        font-size: 2rem;
    }

    .about-lead,
    .about-description {
        font-size: 1rem;
        line-height: 1.75;
    }

    .about-mini-card,
    .about-stat-item {
        padding: 1rem;
    }

    .about-stat-item {
        flex-direction: column;
        text-align: center;
    }

    .about-visual-wrap {
        min-height: 260px;
    }

        .about-visual-image {
        max-height: 280px;
    }
}

.contact-page {
    position: relative;
    overflow: hidden;
}

.contact-section {
    position: relative;
    z-index: 1;
}

.contact-hero-card {
    position: relative;
    overflow: hidden;
    padding: 3rem;
    border-radius: 32px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.84), rgba(255, 255, 255, 0.58)),
        radial-gradient(circle at top left, rgba(96, 165, 250, 0.2), transparent 35%);
    border: 1px solid rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(18px);
    box-shadow: 0 24px 64px rgba(59, 130, 246, 0.12);
}

.contact-hero-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 8% 12%, rgba(125, 211, 252, 0.18), transparent 20%),
        radial-gradient(circle at 92% 82%, rgba(196, 181, 253, 0.22), transparent 24%);
    pointer-events: none;
}

.contact-sidebar,
.contact-form-card,
.contact-bottom-grid {
    position: relative;
    z-index: 1;
}

.contact-eyebrow {
    display: inline-block;
    margin-bottom: 0.9rem;
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    background: rgba(14, 165, 233, 0.12);
    color: #0284c7;
    font-size: 0.9rem;
    font-weight: 600;
}

.contact-title {
    font-size: clamp(2.2rem, 4vw, 3.5rem);
    line-height: 1.05;
    color: #1e40af;
    font-weight: 700;
    margin-bottom: 1rem;
}

.contact-lead {
    color: #5f6c8c;
    line-height: 1.85;
    font-size: 1.08rem;
    margin-bottom: 1.5rem;
}

.contact-info-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-info-card,
.contact-mini-banner,
.contact-bottom-card {
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.55);
    background: rgba(255, 255, 255, 0.45);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.32);
}

.contact-info-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.15rem;
}

.contact-info-icon,
.contact-mini-banner-icon,
.contact-bottom-icon {
    width: 54px;
    height: 54px;
    border-radius: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: rgba(191, 219, 254, 0.55);
    color: #2563eb;
    font-size: 1.25rem;
}

.contact-info-title,
.contact-mini-banner-title,
.contact-bottom-title {
    color: #1f3a8a;
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
}

.contact-info-link {
    display: inline-block;
    color: #2563eb;
    font-weight: 600;
    text-decoration: none;
}

.contact-info-link:hover {
    color: #1d4ed8;
}

.contact-info-text,
.contact-mini-banner-text,
.contact-bottom-text {
    margin: 0.35rem 0 0;
    color: #67748f;
    line-height: 1.75;
}

.contact-mini-banner {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    padding: 1.2rem;
    background: linear-gradient(135deg, rgba(219, 234, 254, 0.75), rgba(224, 231, 255, 0.62));
}

.contact-form-card {
    padding: 2rem;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.56);
    box-shadow: 0 18px 42px rgba(59, 130, 246, 0.08);
}

.contact-form-badge {
    display: inline-block;
    margin-bottom: 0.8rem;
    padding: 0.4rem 0.8rem;
    border-radius: 999px;
    background: rgba(99, 102, 241, 0.12);
    color: #5b61e6;
    font-size: 0.88rem;
    font-weight: 600;
}

.contact-form-title {
    color: #1f3a8a;
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    font-weight: 700;
    margin-bottom: 0.65rem;
}

.contact-form-subtitle {
    color: #64748b;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.contact-label {
    display: block;
    margin-bottom: 0.5rem;
    color: #334155;
    font-weight: 600;
    font-size: 0.95rem;
}

.contact-input {
    border-radius: 16px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    background: rgba(255, 255, 255, 0.75) !important;
    color: #334155;
    padding: 0.9rem 1rem;
}

.contact-input::placeholder {
    color: #94a3b8;
}

.contact-input:focus {
    border-color: rgba(59, 130, 246, 0.35);
    box-shadow: 0 0 0 0.2rem rgba(96, 165, 250, 0.12);
    background: rgba(255, 255, 255, 0.95) !important;
}

.contact-textarea {
    min-height: 180px;
    resize: vertical;
}

.contact-form-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

.contact-note {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    color: #64748b;
    line-height: 1.6;
    font-size: 0.95rem;
}

.contact-note i {
    color: #2563eb;
}

.contact-submit-btn {
    min-width: 180px;
    padding: 0.9rem 1.4rem;
    font-weight: 600;
}

.contact-bottom-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
    margin-top: 2rem;
}

.contact-bottom-card {
    padding: 1.25rem;
}

@media (max-width: 991px) {
    .contact-hero-card {
        padding: 2rem;
    }

    .contact-bottom-grid {
        grid-template-columns: 1fr;
    }

    .contact-form-footer {
        flex-direction: column;
        align-items: stretch;
    }

    .contact-submit-btn {
        width: 100%;
    }
}

@media (max-width: 575px) {
    .contact-section {
        padding-top: 1.5rem !important;
        padding-bottom: 2rem !important;
    }

    .contact-hero-card {
        padding: 1.25rem;
        border-radius: 24px;
    }

    .contact-form-card {
        padding: 1.2rem;
        border-radius: 22px;
    }

    .contact-info-card,
    .contact-mini-banner,
    .contact-bottom-card {
        padding: 1rem;
    }

    .contact-info-card,
    .contact-mini-banner {
        flex-direction: column;
    }

    .contact-title {
        font-size: 2rem;
    }

    .contact-lead {
        font-size: 1rem;
    }
}

.auth-page-row {
    min-height: calc(100vh - 104px) !important;
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.auth-form-shell {
    max-width: 500px;
    margin: 0 auto;
    padding: 2.5rem 2.25rem;
    border-radius: 32px;
    background: rgba(255, 255, 255, 0.58);
    border: 1px solid rgba(255, 255, 255, 0.48);
    backdrop-filter: blur(16px);
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.1);
}

.auth-logo-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 2rem;
}

.auth-logo-image {
    height: 132px;
    width: auto;
    object-fit: contain;
}

.auth-form-layout {
    width: 100%;
}

.auth-input-clean {
    background: rgba(255, 255, 255, 0.85) !important;
    border: 1px solid rgba(148, 163, 184, 0.2);
    color: #334155;
}

.auth-input-clean::placeholder {
    color: #94a3b8;
}

.auth-input-clean:focus {
    background: #fff !important;
    border-color: rgba(99, 102, 241, 0.32);
    box-shadow: 0 0 0 0.2rem rgba(99, 102, 241, 0.12);
}

.auth-submit-btn {
    min-height: 54px;
}

@media (max-width: 991px) {
    .auth-form-shell {
        max-width: 100%;
    }
}

@media (max-width: 575px) {
    .auth-form-shell {
        padding: 1.25rem;
        border-radius: 24px;
    }

    .auth-logo-image {
        height: 104px;
    }
}

.footer-aurora {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 10% 20%, rgba(96, 165, 250, 0.18), transparent 24%),
        radial-gradient(circle at 85% 15%, rgba(192, 132, 252, 0.2), transparent 26%),
        linear-gradient(135deg, #0f172a 0%, #172554 45%, #312e81 100%);
    border-top: none;
}

.footer-aurora::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.04), transparent 30%, rgba(255, 255, 255, 0.03) 70%, transparent 100%);
    pointer-events: none;
}

.footer-shell {
    position: relative;
    z-index: 1;
}

.footer-topband {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    padding: 1.4rem 1.5rem;
    margin-bottom: 2rem;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
}

.footer-kicker {
    display: inline-block;
    margin-bottom: 0.75rem;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: rgba(96, 165, 250, 0.18);
    color: #bfdbfe;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.04em;
}

.footer-big-title {
    max-width: 700px;
    margin: 0;
    color: #ffffff;
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    line-height: 1.15;
    font-weight: 700;
}

.footer-big-text {
    max-width: 680px;
    margin: 0.9rem 0 0;
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.8;
    font-size: 1rem;
}

.footer-topband-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    align-items: center;
}

.footer-cta-primary,
.footer-cta-secondary {
    min-width: 170px;
    padding: 0.85rem 1.2rem;
    border-radius: 14px;
    text-align: center;
}

.footer-cta-secondary {
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
}

.footer-cta-secondary:hover {
    background: rgba(255, 255, 255, 0.24);
    color: #fff;
}

.footer-grid-modern {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.footer-brand-panel,
.footer-link-panel,
.footer-contact-panel {
    padding: 1.4rem;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.footer-brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    margin-bottom: 1rem;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.12);
}

.footer-brand-mark img {
    max-width: 44px;
    height: auto;
}

.footer-brand-name {
    color: #fff;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.85rem;
}

.footer-brand-copy {
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.8;
    margin-bottom: 1.2rem;
}

.footer-panel-title {
    color: #fff;
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 1rem;
}

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

.footer-links-modern a {
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.98rem;
}

.footer-links-modern a:hover {
    color: #ffffff;
    padding-left: 6px;
}

.footer-contact-modern li {
    margin-bottom: 1rem;
    align-items: center;
}

.footer-contact-modern i {
    width: 42px;
    height: 42px;
    margin-top: 0;
    border-radius: 14px;
    background: rgba(96, 165, 250, 0.16);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #bfdbfe;
    min-width: 42px;
}

.footer-contact-modern div {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.footer-contact-label {
    color: rgba(255, 255, 255, 0.56);
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.footer-support-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    margin-top: 0.6rem;
    padding: 0.8rem 1rem;
    border-radius: 999px;
    background: rgba(196, 181, 253, 0.14);
    color: #e9d5ff;
    font-weight: 600;
}

.footer-bottom-modern {
    align-items: center;
}

.footer-bottom-modern .footer-legal a {
    color: rgba(255, 255, 255, 0.78);
}

.footer-bottom-modern .footer-legal a:hover {
    color: #fff;
}

@media (max-width: 991px) {
    .footer-topband {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-grid-modern {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 767px) {
    .footer-topband {
        padding: 1.2rem;
        border-radius: 22px;
    }

    .footer-grid-modern {
        grid-template-columns: 1fr;
    }

    .footer-brand-panel,
    .footer-link-panel,
    .footer-contact-panel {
        padding: 1.2rem;
    }
}

@media (max-width: 575px) {
    .footer-big-title {
        font-size: 1.7rem;
    }

    .footer-topband-actions {
        width: 100%;
    }

    .footer-cta-primary,
    .footer-cta-secondary {
        width: 100%;
    }

    .footer-support-chip {
        width: 100%;
        justify-content: center;
        border-radius: 18px;
    }
}

.ai-workspace {
    display: grid;
    grid-template-columns: 340px minmax(0, 1fr);
    gap: 1.25rem;
    min-height: calc(100vh - 160px);
}

.ai-sidebar,
.ai-chat-panel {
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.58);
    border: 1px solid rgba(255, 255, 255, 0.48);
    backdrop-filter: blur(18px);
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.08);
}

.ai-sidebar {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.ai-sidebar-top {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.ai-sidebar-kicker {
    display: inline-block;
    margin-bottom: 0.45rem;
    color: #5b61e6;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.ai-sidebar-title {
    margin: 0;
    color: #1f3a8a;
    font-size: 2rem;
    font-weight: 700;
}

.ai-new-chat-btn {
    align-self: flex-start;
    border-radius: 16px;
    padding: 0.85rem 1rem;
}

.ai-sidebar-list {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    overflow: auto;
}

.ai-conversation-card {
    width: 100%;
    padding: 1rem;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.68);
    text-align: left;
    transition: all 0.2s ease;
}

.ai-conversation-card:hover,
.ai-conversation-card.active {
    border-color: rgba(99, 102, 241, 0.22);
    background: rgba(238, 242, 255, 0.92);
    transform: translateY(-1px);
}

.ai-conversation-card-top {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    align-items: flex-start;
    margin-bottom: 0.5rem;
}

.ai-conversation-card-top h3 {
    margin: 0;
    color: #334155;
    font-size: 1rem;
    font-weight: 700;
}

.ai-conversation-card-top span,
.ai-conversation-card p {
    color: #64748b;
    font-size: 0.86rem;
}

.ai-conversation-card p {
    margin: 0;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ai-sidebar-empty,
.ai-chat-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.85rem;
    text-align: center;
    color: #64748b;
    padding: 2.2rem 1rem;
}

.ai-chat-panel {
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 160px);
    max-height: calc(100vh - 160px);
    overflow: hidden;
}

.ai-chat-header {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: flex-start;
    padding: 1.4rem 1.5rem 1rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.14);
}

.ai-chat-header-kicker {
    display: inline-block;
    margin-bottom: 0.4rem;
    color: #5b61e6;
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.ai-chat-header h2 {
    margin: 0;
    color: #1f3a8a;
    font-size: 1.6rem;
    font-weight: 700;
}

.ai-chat-header-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.8rem;
    color: #64748b;
    font-size: 0.9rem;
}

.ai-chat-body {
    flex: 1;
    overflow: auto;
    padding: 1.5rem;
}

.ai-message-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.ai-message-row {
    display: flex;
}

.ai-message-row.user {
    justify-content: flex-end;
}

.ai-message-row.assistant {
    justify-content: flex-start;
}

.ai-message-bubble {
    max-width: min(760px, 88%);
    padding: 1rem 1.05rem;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(148, 163, 184, 0.12);
}

.ai-message-row.user .ai-message-bubble {
    background: linear-gradient(135deg, #4f46e5, #6366f1);
    color: #fff;
}

.ai-message-bubble--thinking {
    background: linear-gradient(135deg, rgba(246, 248, 255, 0.98), rgba(231, 239, 255, 0.95));
    border-color: rgba(99, 102, 241, 0.18);
    box-shadow: 0 12px 30px rgba(91, 97, 230, 0.1);
}

.ai-message-meta {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.5rem;
    font-size: 0.82rem;
}

.ai-message-row.user .ai-message-meta span {
    color: rgba(255, 255, 255, 0.8);
}

.ai-message-row.assistant .ai-message-meta,
.ai-message-row.assistant .ai-message-text {
    color: #334155;
}

.ai-message-text {
    margin: 0;
    line-height: 1.8;
    white-space: pre-wrap;
}

.ai-message-thinking {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
}

.ai-thinking-dots {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.ai-thinking-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #5b61e6;
    opacity: 0.35;
    animation: aiThinkingPulse 1.15s infinite ease-in-out;
}

.ai-thinking-dots span:nth-child(2) {
    animation-delay: 0.16s;
}

.ai-thinking-dots span:nth-child(3) {
    animation-delay: 0.32s;
}

@keyframes aiThinkingPulse {
    0%,
    80%,
    100% {
        transform: translateY(0) scale(0.9);
        opacity: 0.35;
    }

    40% {
        transform: translateY(-3px) scale(1);
        opacity: 1;
    }
}

.ai-message-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin-top: 0.9rem;
    padding: 0.45rem 0.7rem;
    border-radius: 999px;
    background: rgba(219, 234, 254, 0.85);
    color: #2563eb;
    font-size: 0.82rem;
    font-weight: 600;
}

.ai-message-sources {
    margin-top: 0.9rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.ai-message-sources-title {
    color: #64748b;
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.ai-message-sources a {
    color: #2563eb;
    text-decoration: none;
    font-size: 0.92rem;
}

.ai-message-sources a:hover {
    text-decoration: underline;
}

.ai-chat-empty-icon {
    width: 80px;
    height: 80px;
    border-radius: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(99, 102, 241, 0.12);
    color: #5b61e6;
    font-size: 2rem;
}

.ai-chat-empty h3 {
    margin: 0;
    color: #1f3a8a;
    font-size: 1.5rem;
    font-weight: 700;
}

.ai-chat-empty p {
    max-width: 520px;
    margin: 0;
    line-height: 1.8;
}

.ai-chat-composer {
    padding: 1rem 1.25rem 1.25rem;
    border-top: 1px solid rgba(148, 163, 184, 0.14);
}

.ai-chat-textarea {
    min-height: 88px;
    resize: vertical;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.82) !important;
}

.ai-chat-composer-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-top: 0.85rem;
}

.ai-send-btn {
    min-width: 150px;
    border-radius: 16px;
}

.ai-chat-header-mobile-actions {
    display: none;
}

.ai-mobile-back-btn {
    border-radius: 999px;
    padding: 0.65rem 0.95rem;
    border: 1px solid rgba(99, 102, 241, 0.18);
    background: rgba(99, 102, 241, 0.08);
    color: #4f46e5;
    font-weight: 600;
}

@media (max-width: 991px) {
    .ai-workspace {
        grid-template-columns: 1fr;
    }

    .ai-workspace.ai-workspace-mobile-chat {
        display: block;
    }

    .ai-sidebar,
    .ai-chat-panel {
        min-height: auto;
    }

    .ai-mobile-hidden {
        display: none !important;
    }

    .ai-chat-panel {
        min-height: calc(100vh - 140px);
        max-height: calc(100vh - 140px);
    }

    .ai-chat-header {
        flex-direction: column;
    }

    .ai-chat-header-mobile-actions {
        display: block;
        width: 100%;
    }

    .ai-chat-header-meta {
        justify-content: flex-start;
    }
}

@media (max-width: 575px) {
    .ai-workspace {
        gap: 1rem;
    }

    .ai-sidebar,
    .ai-chat-panel {
        border-radius: 22px;
    }

    .ai-chat-body,
    .ai-chat-composer,
    .ai-chat-header,
    .ai-sidebar {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .ai-message-bubble {
        max-width: 100%;
    }

    .ai-chat-composer-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .ai-send-btn {
        width: 100%;
    }

    .ai-chat-panel {
        min-height: calc(100vh - 126px);
        max-height: calc(100vh - 126px);
    }
}

.modern-courses-page {
    min-height: calc(100vh - 104px);
}

.courses-hero-panel,
.courses-filter-panel,
.courses-toolbar-panel,
.adaptive-learning-panel,
.courses-recommend-panel,
.course-glass-card,
.learning-sidebar-card,
.learning-topbar,
.learning-content-area > .card,
.learning-content-area .card.border-0,
.learning-empty-state {
    background: rgba(255, 255, 255, 0.58);
    border: 1px solid rgba(255, 255, 255, 0.48);
    backdrop-filter: blur(18px);
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.08);
}

.courses-hero-panel,
.courses-filter-panel,
.courses-toolbar-panel,
.adaptive-learning-panel,
.courses-recommend-panel {
    border-radius: 30px;
    padding: 1.5rem;
}

.courses-kicker,
.adaptive-kicker,
.learning-panel-kicker {
    display: inline-block;
    margin-bottom: 0.5rem;
    color: #5b61e6;
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.courses-hero-title {
    margin: 0 0 0.75rem;
    color: #1f3a8a;
    font-size: clamp(2.2rem, 4vw, 3.6rem);
    line-height: 1.05;
    font-weight: 700;
}

.courses-hero-text,
.adaptive-learning-head p {
    color: #64748b;
    line-height: 1.85;
    margin: 0;
}

.courses-hero-stats {
    display: grid;
    gap: 1rem;
}

.courses-hero-stat {
    padding: 1rem 1.1rem;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.52);
}

.courses-hero-stat strong {
    display: block;
    color: #4f46e5;
    font-size: 1.8rem;
    font-weight: 700;
}

.courses-hero-stat span {
    color: #64748b;
    font-size: 0.92rem;
}

.courses-filter-head,
.adaptive-learning-head,
.courses-toolbar-panel {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
}

.courses-filter-head h2,
.adaptive-learning-head h2 {
    margin: 0;
    color: #1f3a8a;
    font-size: 1.35rem;
    font-weight: 700;
}

.courses-search-wrap {
    position: relative;
    margin-top: 1rem;
}

.courses-search-wrap i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
}

.courses-search-input {
    padding-left: 2.7rem;
    border-radius: 18px;
    min-height: 54px;
    background: rgba(255, 255, 255, 0.82) !important;
}

.courses-filter-note,
.courses-toolbar-copy small {
    color: #64748b;
    line-height: 1.7;
}

.courses-side-summary {
    display: grid;
    gap: 0.85rem;
    margin-top: 1.2rem;
}

.courses-side-summary-item {
    padding: 0.95rem 1rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.46);
}

.courses-side-summary-item span {
    display: block;
    color: #64748b;
    font-size: 0.84rem;
}

.courses-side-summary-item strong {
    display: block;
    margin-top: 0.2rem;
    color: #334155;
    font-size: 1.1rem;
}

.courses-toolbar-copy p {
    color: #334155;
}

.courses-toolbar-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.courses-sort-select {
    width: auto;
    min-width: 180px;
    border-radius: 14px;
}

.courses-empty-panel {
    border-radius: 26px;
    padding: 3rem 1.5rem;
    text-align: center;
    color: #64748b;
    background: rgba(255, 255, 255, 0.58);
    border: 1px solid rgba(255, 255, 255, 0.48);
}

.courses-empty-panel i {
    font-size: 2.4rem;
    color: #818cf8;
    margin-bottom: 0.9rem;
}

.course-glass-card {
    height: 100%;
    border-radius: 28px;
    overflow: hidden;
}

.course-glass-image-wrap {
    position: relative;
    height: 220px;
}

.course-glass-image,
.course-glass-placeholder {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.course-glass-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(224, 231, 255, 0.9), rgba(191, 219, 254, 0.75));
    color: #5b61e6;
    font-size: 2.6rem;
}

.course-glass-badge,
.course-glass-enrolled,
.course-glass-recommended-badge {
    position: absolute;
    border-radius: 999px;
    padding: 0.45rem 0.75rem;
    font-size: 0.8rem;
    font-weight: 700;
}

.course-glass-badge {
    top: 1rem;
    right: 1rem;
    background: rgba(79, 70, 229, 0.9);
    color: #fff;
}

.course-glass-enrolled {
    left: 1rem;
    bottom: 1rem;
    background: rgba(34, 197, 94, 0.9);
    color: #fff;
}

.course-glass-recommended-badge {
    top: 1rem;
    right: 1rem;
    background: rgba(250, 204, 21, 0.92);
    color: #422006;
}

.course-glass-body {
    padding: 1.25rem;
}

.course-glass-category {
    color: #6366f1;
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.65rem;
}

.course-glass-title {
    color: #1f3a8a;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.6rem;
}

.course-glass-description {
    color: #64748b;
    line-height: 1.75;
    min-height: 78px;
}

.course-glass-metrics {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    margin: 1rem 0 1.1rem;
}

.course-glass-metrics div {
    padding: 0.85rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.45);
    text-align: center;
}

.course-glass-metrics span {
    display: block;
    color: #64748b;
    font-size: 0.82rem;
    margin-bottom: 0.2rem;
}

.course-glass-metrics strong {
    color: #334155;
    font-size: 1rem;
}

.course-glass-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin-bottom: 1rem;
    color: #64748b;
    font-size: 0.86rem;
}

.course-glass-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.adaptive-empty-state {
    margin-top: 1rem;
    color: #64748b;
    line-height: 1.8;
}

.adaptive-card {
    height: 100%;
    padding: 1.15rem;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.46);
}

.adaptive-card-label {
    color: #4f46e5;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.65rem;
}

.adaptive-card h3 {
    color: #1f3a8a;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.55rem;
}

.adaptive-card p {
    color: #64748b;
    line-height: 1.75;
    margin-bottom: 0.8rem;
}

.adaptive-card small {
    color: #94a3b8;
}

.learning-theme-shell {
    padding: 1rem;
    background: transparent;
}

.learning-theme-grid {
    display: flex;
    flex-wrap: nowrap!important;
    align-items: stretch;
    gap: 1rem;
    width: 80%;
    max-width: 1480px;
    margin: 0 auto!important;
}

.learning-mobile-toolbar {
    display: none;
}

.learning-mobile-toggle {
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.52);
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(16px);
    color: #1f3a8a;
    font-weight: 600;
}

.learning-mobile-current {
    padding: 0.85rem 1rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.54);
    border: 1px solid rgba(255, 255, 255, 0.48);
    color: #334155;
    line-height: 1.45;
}

.learning-sidebar-column,
.learning-main-column {
    background: transparent !important;
    border: none !important;
}

.learning-sidebar-column {
    flex: 0 0 45%;
    max-width: 45%;
    width: 45%;
    overflow-y: auto;
    min-width: 320px;
    border-radius: 26px;
}

.learning-main-column {
    flex: 0 0 55%;
    max-width: 55%;
    width: 55%;
    min-width: 0;
}

.learning-sidebar-inner {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-height: 100%;
}

.learning-sidebar-card,
.learning-topbar {
    border-radius: 26px;
    padding: 1rem;
}

.learning-course-overview .progress {
    background: rgba(148, 163, 184, 0.18);
}

.learning-course-overview {
    order: 1;
}

.topics-list.learning-sidebar-card {
    order: 2;
}

.adaptive-learning-mini-panel {
    order: 3;
}

.learning-course-cover {
    overflow: hidden;
    border-radius: 20px;
}

.learning-course-cover img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.learning-course-description {
    margin: 0.75rem 0;
    color: #64748b;
    line-height: 1.7;
    font-size: 0.92rem;
}

.learning-course-meta {
    display: grid;
    gap: 0.45rem;
    margin-bottom: 0.85rem;
    color: #475569;
    font-size: 0.88rem;
}

.learning-course-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.learning-back-btn {
    border-radius: 14px;
}

.adaptive-mini-item {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    padding: 0.8rem 0.9rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.45);
}

.adaptive-mini-item strong {
    color: #4f46e5;
    font-size: 0.86rem;
}

.adaptive-mini-item span {
    color: #64748b;
    font-size: 0.86rem;
}

.learning-sidebar-card .btn {
    border-radius: 14px;
}

.learning-topbar {
    margin-bottom: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.learning-content-area {
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.34);
    padding: 1.5rem !important;
}

.learning-content-area .ratio,
.learning-content-area iframe,
.learning-content-area video,
.learning-content-area img {
    max-width: 100%;
}

.learning-content-area .ql-editor {
    padding: 0;
    font-size: 1rem;
    line-height: 1.75;
    word-break: break-word;
}

.learning-content-area .table,
.learning-content-area table {
    display: block;
    width: 100%;
    overflow-x: auto;
}

.learning-content-area > div > .card,
.learning-content-area > .card,
.learning-content-area .card.border-0 {
    border-radius: 24px !important;
    overflow: hidden;
}

.learning-empty-state {
    border-radius: 26px;
    padding: 3rem 1.5rem;
}

.learning-empty-state i {
    color: #818cf8;
}

.topics-list.learning-sidebar-card {
    padding: 1rem;
}

.topics-list.learning-sidebar-card .btn {
    white-space: normal;
    line-height: 1.5;
}

.topics-list.learning-sidebar-card .btn-primary {
    color: white!Important;
    background: linear-gradient(135deg, #4f46e5, #6366f1);
    border: none;
}

.topics-list.learning-sidebar-card .btn-outline-secondary,
.topics-list.learning-sidebar-card .btn-outline-info,
.topics-list.learning-sidebar-card .btn-outline-success {
    background: rgba(255, 255, 255, 0.58);
    /* color: black; */
    border-color: rgba(148, 163, 184, 0.22);
}

@media (max-width: 1199px) {
    .learning-sidebar-column {
        flex: 0 0 42%;
        max-width: 42%;
        width: 42%;
        min-width: 280px;
    }

    .learning-main-column {
        flex: 0 0 58%;
        max-width: 58%;
        width: 58%;
    }

    .learning-course-cover img {
        height: 160px;
    }
}

@media (max-width: 991px) {
    .learning-mobile-current {
        display: none;
    }
    .courses-filter-head,
    .adaptive-learning-head,
    .courses-toolbar-panel {
        flex-direction: column;
        align-items: flex-start;
    }

    .courses-toolbar-actions {
        width: 100%;
    }

    .courses-sort-select {
        width: 100%;
    }

    .learning-theme-grid {
        width: 90%;
        margin: auto!important;
        flex-direction: column;
    }

    .learning-mobile-toolbar {
        display: flex;
        width: 90%;
        margin: auto;
        gap: 0.75rem;
        margin-bottom: 0.85rem;
    }

    .learning-sidebar-column {
        border-radius: 26px;
        display: none;
        flex: 1 1 100%;
        max-width: 100%;
        width: 100%;
        overflow: visible;
        min-width: 0;
    }

    .learning-sidebar-column.mobile-open {
        display: block;
    }

    .learning-main-column {
        flex: 1 1 100%;
        max-width: 100%;
        width: 100%;
    }

    .learning-topbar {
        display: none;
        align-items: flex-start !important;
        padding: 1rem !important;
    }

    .learning-topbar.mobile-open {
        display: flex;
    }

    .learning-topbar > div:last-child {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
        width: 100%;
    }

    .learning-topbar > div:last-child .btn,
    .learning-topbar > div:last-child a {
        margin-right: 0 !important;
    }

    .learning-content-area {
        min-height: auto;
    }

    .topics-list.learning-sidebar-card .btn {
        padding: 0.85rem 0.9rem;
    }

    .topics-list.learning-sidebar-card .mt-2.ms-3 {
        margin-left: 0 !important;
    }
}

@media ( max-width: 767px ) {
    .buttons-learning .ms-auto {
        margin: 0!important;
    }

    .quiz-number {
        gap: 10px;
    }

    .quiz-guide {
        flex-direction: row;
    }
}

@media (max-width: 575px) {
    .courses-hero-panel,
    .courses-filter-panel,
    .courses-toolbar-panel,
    .adaptive-learning-panel,
    .courses-recommend-panel {
        padding: 1.1rem;
        border-radius: 24px;
    }

    .course-glass-image-wrap {
        height: 190px;
    }

    .course-glass-description {
        min-height: auto;
    }

    .course-glass-metrics {
        grid-template-columns: 1fr;
    }

    .learning-theme-shell {
        padding: 0.6rem;
    }

    .learning-theme-grid {
        gap: 0.75rem;
    }


    .learning-sidebar-inner {
        padding: 0 !important;
        gap: 0.75rem;
    }

    .learning-sidebar-card,
    .learning-topbar,
    .learning-empty-state {
        border-radius: 22px;
    }

    .learning-sidebar-card,
    .topics-list.learning-sidebar-card,
    .learning-topbar {
        padding: 0.9rem;
    }

    .learning-content-area {
        padding: 1rem !important;
        border-radius: 22px;
    }

    .learning-course-cover img {
        height: 140px;
    }

    .learning-topbar {
        flex-direction: column;
        gap: 0.75rem;
    }

    .learning-topbar > div,
    .learning-topbar > div:last-child {
        width: 100%;
    }

    .learning-topbar > div:last-child .btn,
    .learning-topbar > div:last-child a {
        flex: 1 1 100%;
        width: 100%;
    }

    .learning-course-description {
        font-size: 0.88rem;
    }

    .learning-course-meta {
        gap: 0.35rem;
        font-size: 0.84rem;
    }

    .adaptive-mini-item {
        padding: 0.75rem 0.8rem;
    }

    .learning-content-area .card-body,
    .learning-content-area .bg-primary.text-white.p-4.rounded-top,
    .learning-content-area .p-4 {
        padding: 1rem !important;
    }

    .learning-content-area h4,
    .learning-content-area .h4 {
        font-size: 1.15rem;
    }

    .learning-content-area .row.text-center.mb-4 > [class*="col-"] {
        margin-bottom: 0.75rem;
    }

    .learning-empty-state {
        padding: 2rem 1rem;
    }

    .learning-empty-state i {
        font-size: 2.2rem !important;
    }

    .topics-list.learning-sidebar-card .btn {
        font-size: 0.92rem;
    }

    .topics-list.learning-sidebar-card .float-end {
        float: none !important;
        display: inline-flex;
        align-items: center;
        gap: 0.25rem;
        margin-top: 0.35rem;
    }
}

.course-learning-ai-sidebar {
    background: rgba(236, 242, 255, 0.82) !important;
    backdrop-filter: blur(22px);
    border-left: 1px solid rgba(255, 255, 255, 0.52);
    box-shadow: -18px 0 50px rgba(79, 70, 229, 0.14);
}

.course-learning-ai-header {
    background:
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.28), transparent 42%),
        linear-gradient(135deg, #4338ca, #6366f1 55%, #7c3aed);
    color: #fff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
    padding: 1.25rem 1.25rem 1rem;
}

.courses-search .col-lg-3 {
    flex: none;
}

.course-learning-ai-kicker {
    display: inline-block;
    margin-bottom: 0.35rem;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.78);
}

.course-learning-ai-title {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 700;
}

.course-learning-ai-title i {
    margin-right: 0.45rem;
}

.course-learning-ai-body {
    background:
        linear-gradient(180deg, rgba(248, 250, 255, 0.92), rgba(238, 242, 255, 0.86));
}

.course-learning-ai-tabs {
    padding: 0.8rem 0.9rem 0;
    gap: 0.55rem;
    background: transparent;
}

.course-learning-ai-tab {
    border: 1px solid rgba(148, 163, 184, 0.18) !important;
    border-radius: 16px !important;
    background: rgba(255, 255, 255, 0.68) !important;
    color: #475569 !important;
    font-weight: 600;
    transition: all 0.2s ease;
}

.course-learning-ai-tab.active {
    background: linear-gradient(135deg, #4f46e5, #6366f1) !important;
    color: #fff !important;
    box-shadow: 0 14px 26px rgba(79, 70, 229, 0.22);
}

.course-learning-ai-content {
    padding: 1rem !important;
    background: transparent !important;
}

.course-learning-ai-content h6,
.course-learning-ai-section-title {
    color: #1f3a8a;
    font-size: 1rem;
    font-weight: 700;
}

.course-learning-ai-chat-stream,
.course-learning-ai-result-card {
    background: rgba(255, 255, 255, 0.72) !important;
    border: 1px solid rgba(255, 255, 255, 0.58);
    border-radius: 22px !important;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

.course-learning-ai-chat-stream {
    padding: 1rem;
}

.course-learning-ai-empty i {
    color: #6366f1;
}

.course-learning-ai-empty p {
    margin: 0;
    color: #64748b;
}

.course-learning-ai-message-row:last-child {
    margin-bottom: 0 !important;
}

.course-learning-ai-bubble {
    max-width: 84%;
    border-radius: 20px !important;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.07);
}

.course-learning-ai-bubble-user {
    background: linear-gradient(135deg, #4f46e5, #6366f1);
    color: #fff;
}

.course-learning-ai-bubble-assistant {
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(148, 163, 184, 0.18);
    color: #334155;
}

.course-learning-ai-source-badge {
    background: rgba(224, 231, 255, 0.68) !important;
    border: none;
    color: #3730a3;
    border-radius: 12px;
}

.course-learning-ai-composer {
    gap: 0.65rem;
    align-items: stretch;
}

.course-learning-ai-textarea {
    border-radius: 18px !important;
    border: 1px solid rgba(148, 163, 184, 0.2);
    background: rgba(255, 255, 255, 0.88);
    min-height: 86px;
    resize: none;
    box-shadow: none !important;
}

.course-learning-ai-textarea:focus {
    border-color: rgba(99, 102, 241, 0.55);
}

.course-learning-ai-send {
    border-radius: 18px !important;
    padding-inline: 1rem;
    background: linear-gradient(135deg, #4f46e5, #6366f1) !important;
    border: none !important;
}

.course-learning-ai-result-card .card-body {
    padding: 1rem 1.1rem;
}

.course-learning-ai-sidebar .alert-sm {
    border-radius: 14px;
}

@media (max-width: 575px) {
    .course-learning-ai-header,
    .course-learning-ai-content {
        padding-left: 0.9rem !important;
        padding-right: 0.9rem !important;
    }

    .course-learning-ai-tabs {
        padding: 0.75rem 0.75rem 0;
        gap: 0.45rem;
    }

    .course-learning-ai-tab {
        font-size: 0.84rem;
        padding: 0.7rem 0.4rem;
    }

    .course-learning-ai-chat-stream {
        padding: 0.85rem;
    }

    .course-learning-ai-bubble {
        max-width: 92%;
    }

    .course-learning-ai-composer {
        flex-direction: column;
    }

    .course-learning-ai-send {
        width: 100%;
    }
}

.student-dashboard-theme {
    min-height: calc(100vh - 104px);
    padding: 1rem 0 2rem;
    background:
        radial-gradient(circle at top left, rgba(224, 231, 255, 0.9), transparent 34%),
        radial-gradient(circle at bottom right, rgba(191, 219, 254, 0.82), transparent 28%),
        linear-gradient(180deg, #eef4ff, #e7efff 58%, #edf3ff);
}

.student-dashboard-theme .student-dashboard-inner {
    width: min(92%, 1380px);
    margin: 0 auto;
}

.dashboard-hero,
.dashboard-tabs-wrap,
.dashboard-panel,
.dashboard-info-card,
.dashboard-stat-card,
.dashboard-course-card,
.dashboard-empty-panel {
    background: rgba(255, 255, 255, 0.62);
    border: 1px solid rgba(255, 255, 255, 0.58);
    backdrop-filter: blur(18px);
    box-shadow: 0 22px 55px rgba(15, 23, 42, 0.08);
}

.dashboard-hero,
.dashboard-tabs-wrap,
.dashboard-panel,
.dashboard-info-card,
.dashboard-empty-panel {
    border-radius: 30px;
}

.dashboard-hero {
    padding: 1.75rem;
}

.dashboard-kicker {
    display: inline-block;
    margin-bottom: 0.55rem;
    color: #5b61e6;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.dashboard-hero-title {
    margin: 0 0 0.75rem;
    color: #1f3a8a;
    font-size: clamp(2.1rem, 4vw, 3.4rem);
    font-weight: 700;
    line-height: 1.05;
}

.dashboard-hero-text,
.dashboard-panel-text,
.dashboard-info-card p {
    margin: 0;
    color: #64748b;
    line-height: 1.75;
}

.dashboard-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin-top: 1.25rem;
}

.dashboard-profile-chip {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.1rem 1.2rem;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.52);
}

.dashboard-profile-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    box-shadow: 0 18px 28px rgba(79, 70, 229, 0.2);
}

.dashboard-profile-chip strong,
.dashboard-profile-chip span {
    display: block;
}

.dashboard-profile-chip strong {
    color: #1e293b;
}

.dashboard-profile-chip span {
    color: #64748b;
    margin-top: 0.25rem;
}

.dashboard-stat-card {
    height: 100%;
    border-radius: 28px;
    padding: 1.15rem;
    position: relative;
    overflow: hidden;
}

.dashboard-stat-card::after {
    content: "";
    position: absolute;
    inset: auto -40px -40px auto;
    width: 130px;
    height: 130px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
}

.dashboard-stat-card span,
.dashboard-stat-card strong {
    display: block;
    position: relative;
    z-index: 1;
}

.dashboard-stat-card span {
    color: #64748b;
    font-size: 0.88rem;
}

.dashboard-stat-card strong {
    margin-top: 0.5rem;
    color: #1f2937;
    font-size: 2rem;
    font-weight: 700;
}

.dashboard-stat-icon {
    width: 54px;
    height: 54px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    color: #fff;
    font-size: 1.2rem;
}

.dashboard-stat-indigo .dashboard-stat-icon { background: linear-gradient(135deg, #4f46e5, #6366f1); }
.dashboard-stat-green .dashboard-stat-icon { background: linear-gradient(135deg, #059669, #10b981); }
.dashboard-stat-blue .dashboard-stat-icon { background: linear-gradient(135deg, #0284c7, #38bdf8); }
.dashboard-stat-amber .dashboard-stat-icon { background: linear-gradient(135deg, #d97706, #f59e0b); }

.dashboard-tabs-wrap {
    padding: 0.75rem;
}

.dashboard-tabs-scroll {
    display: flex;
    gap: 0.75rem;
    overflow-x: auto;
    scrollbar-width: none;
}

.dashboard-tabs-scroll::-webkit-scrollbar {
    display: none;
}

.dashboard-tab-btn {
    flex: 0 0 auto;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 18px;
    padding: 0.9rem 1.1rem;
    background: rgba(255, 255, 255, 0.62);
    color: #475569;
    font-weight: 600;
    transition: all 0.2s ease;
}

.dashboard-tab-btn.active {
    background: linear-gradient(135deg, #4f46e5, #6366f1);
    color: #fff;
    box-shadow: 0 16px 28px rgba(79, 70, 229, 0.22);
}

.dashboard-course-card {
    height: 100%;
    border-radius: 30px;
    overflow: hidden;
}

.dashboard-course-cover {
    position: relative;
    height: 220px;
}

.dashboard-course-cover img,
.dashboard-course-placeholder {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dashboard-course-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(224, 231, 255, 0.92), rgba(191, 219, 254, 0.82));
    color: #5b61e6;
    font-size: 2.4rem;
}

.dashboard-course-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.42rem 0.72rem;
    border-radius: 999px;
    background: rgba(79, 70, 229, 0.92);
    color: #fff;
    font-size: 0.76rem;
    font-weight: 700;
}

.dashboard-course-body {
    padding: 1.25rem;
}

.dashboard-course-body h3,
.dashboard-panel-head h2,
.dashboard-ai-card h3,
.dashboard-info-card h2,
.dashboard-empty-panel h3,
.dashboard-question-item h3 {
    color: #1f3a8a;
    font-weight: 700;
}

.dashboard-course-body h3 {
    font-size: 1.2rem;
    margin-bottom: 0.55rem;
}

.dashboard-course-body p {
    color: #64748b;
    line-height: 1.75;
    min-height: 72px;
}

.dashboard-progress-block + .dashboard-progress-block {
    margin-top: 0.9rem;
}

.dashboard-progress-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.4rem;
    color: #64748b;
    font-size: 0.88rem;
}

.dashboard-progress-row strong {
    color: #334155;
}

.dashboard-progress-bar {
    height: 8px;
    background: rgba(148, 163, 184, 0.18);
}

.dashboard-panel,
.dashboard-info-card {
    padding: 1.4rem;
}

.dashboard-panel-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.15rem;
}

.dashboard-profile-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.dashboard-detail-item {
    padding: 1rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.48);
}

.dashboard-detail-item-wide {
    grid-column: 1 / -1;
}

.dashboard-detail-item label {
    display: block;
    margin-bottom: 0.35rem;
    color: #64748b;
    font-size: 0.86rem;
}

.dashboard-detail-item strong {
    color: #1e293b;
    font-size: 1rem;
    font-weight: 600;
}

.dashboard-actions-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.2rem;
}

.dashboard-mini-stats {
    display: grid;
    gap: 0.8rem;
}

.dashboard-mini-stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 0.95rem 1rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.5);
}

.dashboard-mini-stat span {
    color: #64748b;
    font-size: 0.9rem;
}

.dashboard-mini-stat strong {
    color: #1f2937;
}

.dashboard-danger-panel {
    border: 1px solid rgba(248, 113, 113, 0.22);
}

.dashboard-ai-card {
    height: 100%;
    padding: 1.1rem;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.5);
}

.dashboard-ai-card i {
    font-size: 1.7rem;
    color: #5b61e6;
    margin-bottom: 0.9rem;
}

.dashboard-ai-card h3 {
    font-size: 1.05rem;
    margin-bottom: 0.45rem;
}

.dashboard-ai-card p {
    color: #64748b;
    line-height: 1.7;
    min-height: 72px;
}

.dashboard-question-list {
    display: grid;
    gap: 0.9rem;
}

.dashboard-question-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.5);
}

.dashboard-question-item h3 {
    margin: 0 0 0.35rem;
    font-size: 1rem;
}

.dashboard-question-item small,
.dashboard-empty-inline span {
    color: #64748b;
}

.dashboard-tip-list {
    display: grid;
    gap: 0.8rem;
}

.dashboard-tip-item {
    padding: 0.95rem 1rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.5);
    color: #475569;
    line-height: 1.65;
}

.dashboard-info-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
}

.dashboard-empty-panel,
.dashboard-empty-inline {
    text-align: center;
}

.dashboard-empty-panel {
    padding: 3rem 1.5rem;
}

.dashboard-empty-panel i,
.dashboard-empty-inline i {
    color: #818cf8;
}

.dashboard-empty-panel i {
    font-size: 2.5rem;
    margin-bottom: 0.85rem;
}

.dashboard-empty-inline {
    padding: 1rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.48);
}

@media (max-width: 991px) {
    .student-dashboard-theme .student-dashboard-inner {
        width: 95%;
    }

    .dashboard-hero,
    .dashboard-panel,
    .dashboard-info-card,
    .dashboard-empty-panel {
        padding: 1.2rem;
    }

    .dashboard-info-card,
    .dashboard-panel-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .dashboard-question-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .dashboard-question-item .btn {
        width: 100%;
    }
}

@media (max-width: 767px) {
    .student-dashboard-theme {
        padding: 0.6rem 0 1.25rem;
    }

    .student-dashboard-theme .student-dashboard-inner {
        width: 100%;
        padding: 0 0.75rem;
    }

    .dashboard-hero-title {
        font-size: 2rem;
    }

    .dashboard-profile-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-hero-actions,
    .dashboard-actions-row {
        flex-direction: column;
    }

    .dashboard-hero-actions .btn,
    .dashboard-actions-row .btn,
    .dashboard-info-card .btn {
        width: 100%;
    }

    .dashboard-course-cover {
        height: 190px;
    }

    .dashboard-course-body p,
    .dashboard-ai-card p {
        min-height: auto;
    }

    .dashboard-profile-chip {
        padding: 0.95rem 1rem;
    }

    .dashboard-stat-card {
        padding: 1rem;
        border-radius: 24px;
    }

    .dashboard-stat-card strong {
        font-size: 1.55rem;
    }
}
.global-ai-bubble {
    position: fixed;
    right: 24px;
    bottom: 48px;
    z-index: 1200;
    display: flex;
    align-items: flex-end;
    gap: 14px;
    pointer-events: none;
}

.global-ai-bubble__hint {
    max-width: 220px;
    padding: 12px 16px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(233, 227, 255, 0.82)),
        rgba(255, 255, 255, 0.8);
    box-shadow: 0 18px 45px rgba(77, 59, 163, 0.48);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    color: #4d4298;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.4;
    text-shadow: 0 3px 14px rgba(77, 66, 152, 0.18);
}

.global-ai-bubble__button {
    pointer-events: auto;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-height: 64px;
    padding: 14px 22px 14px 16px;
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 999px;
    background:
        linear-gradient(135deg, rgba(120, 109, 255, 0.94), rgba(87, 189, 255, 0.88)),
        rgba(115, 105, 236, 0.92);
    box-shadow: 0 18px 42px rgba(76, 62, 168, 0.28);
    color: #fff;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
}

.global-ai-bubble__button:hover {
    transform: translateY(-3px);
    box-shadow: 0 24px 46px rgba(76, 62, 168, 0.35);
    filter: saturate(1.05);
}

.global-ai-bubble__button:focus-visible {
    outline: 3px solid rgba(124, 207, 255, 0.45);
    outline-offset: 3px;
}

.global-ai-bubble__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    font-size: 1.1rem;
}

.global-ai-bubble__text {
    font-size: 0.98rem;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.global-ai-bubble-hint-enter-active,
.global-ai-bubble-hint-leave-active {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.global-ai-bubble-hint-enter-from,
.global-ai-bubble-hint-leave-to {
    opacity: 0;
    transform: translateX(-8px) translateY(10px);
}

@media (max-width: 768px) {
    .global-ai-bubble {
        right: 16px;
        left: auto;
        bottom: 16px;
        gap: 10px;
        align-items: flex-end;
        flex-direction: column;
    }

    .global-ai-bubble__hint {
        max-width: none;
        align-self: flex-end;
        font-size: 0.9rem;
    }

    .global-ai-bubble__button {
        width: fit-content;
        min-height: 58px;
        padding: 12px 18px 12px 14px;
    }

    .global-ai-bubble__text {
        font-size: 0.92rem;
    }
}

.theme-toggle-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    min-width: 48px;
    min-height: 48px;
    padding: 0.75rem 0.95rem;
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.62);
    color: #334155;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.theme-toggle-btn:hover {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.82);
}

.theme-toggle-btn-mobile {
    width: 100%;
    justify-content: flex-start;
    margin-bottom: 0.5rem;
}

html.dark-mode,
html.dark-mode body,
body.dark-mode {
    background:
        radial-gradient(circle at 12% 18%, rgba(59, 130, 246, 0.18), transparent 22%),
        radial-gradient(circle at 82% 14%, rgba(168, 85, 247, 0.22), transparent 20%),
        radial-gradient(circle at 68% 62%, rgba(14, 165, 233, 0.12), transparent 24%),
        radial-gradient(circle at 22% 78%, rgba(236, 72, 153, 0.1), transparent 20%),
        linear-gradient(180deg, #030712 0%, #081120 34%, #0b1730 68%, #0d1b38 100%);
    color: #e2e8f0;
    background-attachment: fixed;
}

html.dark-mode body::before {
    opacity: 0.08;
}

html.dark-mode .header-glass,
html.dark-mode .header-glass .container,
html.dark-mode .mobile-glass-menu,
html.dark-mode .mobile-glass-menu-inner,
html.dark-mode .global-ai-bubble__hint,
html.dark-mode .ai-sidebar,
html.dark-mode .ai-chat-panel,
html.dark-mode .adaptive-learning-panel,
html.dark-mode .dashboard-tab-btn,
html.dark-mode .courses-hero-stat,
html.dark-mode .courses-side-summary-item,
html.dark-mode .course-glass-sidebar,
html.dark-mode .course-glass-main,
html.dark-mode .course-glass-card,
html.dark-mode .course-glass-highlight,
html.dark-mode .course-learning-ai-card,
html.dark-mode .dashboard-glass-hero,
html.dark-mode .dashboard-stat-card,
html.dark-mode .dashboard-course-card,
html.dark-mode .dashboard-panel,
html.dark-mode .auth-card-glass,
html.dark-mode .about-glass-card,
html.dark-mode .contact-glass-card,
html.dark-mode .contact-detail-card,
html.dark-mode .course-card-glass,
html.dark-mode .course-filter-glass,
html.dark-mode .footer-topband,
html.dark-mode .footer-brand-panel,
html.dark-mode .dashboard-course-placeholder,
html.dark-mode .footer-link-panel,
html.dark-mode .footer-contact-panel,
html.dark-mode .dropdown-menu,
html.dark-mode .modal-content,
html.dark-mode .card,
html.dark-mode .list-group-item,
html.dark-mode .course-glass-metrics-inner,
html.dark-mode .learning-sidebar-inner,
html.dark-mode .learning-topbar,
html.dark-mode .learning-empty-state,
html.dark-mode .bottom-progress-barr,
html.dark-mode .learning-content-area,
html.dark-mode .learning-sidebar-column,
html.dark-mode .learning-mobile-toggle,
html.dark-mode .offcanvas,
html.dark-mode .alert {
    background: linear-gradient(180deg, rgba(7, 14, 28, 0.88), rgba(13, 24, 42, 0.82)) !important;
    border-color: rgba(148, 163, 184, 0.12) !important;
    color: #e2e8f0 !important;
    box-shadow: 0 22px 60px rgba(2, 6, 23, 0.48);
}

html.dark-mode .dashboard-tab-btn.active {
    background: linear-gradient(135deg, #4f46e5, #6366f1)!important;
    color: #fff!important;
    box-shadow: 0 16px 28px rgba(79, 70, 229, 0.22)!important;
}

html.dark-mode .dashboard-hero,html.dark-mode .dashboard-tabs-wrap {
    border: 0!Important;
}

html.dark-mode .header-glass {
    background: transparent !important;
    box-shadow: none;
}

html.dark-mode .header-glass .container {
    background: linear-gradient(180deg, rgba(4, 10, 22, 0.88), rgba(10, 19, 34, 0.8)) !important;
    border-color: rgba(96, 165, 250, 0.12) !important;
    box-shadow: 0 20px 55px rgba(2, 6, 23, 0.55);
    border-radius: 26px;
}

html.dark-mode .header-glass .container .header-inner {
    background: transparent!important;
}

html.dark-mode .mobile-glass-menu-inner {
    background: linear-gradient(180deg, rgba(4, 10, 22, 0.94), rgba(10, 19, 34, 0.9)) !important;
}

html.dark-mode .nav-link-custom,
html.dark-mode .mobile-nav-link,
html.dark-mode .footer-links-modern a,
html.dark-mode .footer-contact-modern div,
html.dark-mode .footer-big-text,
html.dark-mode .dashboard-profile-line,
html.dark-mode .dashboard-course-meta,
html.dark-mode .course-glass-meta,
html.dark-mode .course-glass-description,
html.dark-mode .ai-conversation-card p,
html.dark-mode .ai-chat-header-meta,
html.dark-mode .text-muted,
html.dark-mode p,
html.dark-mode li,
html.dark-mode span,
html.dark-mode label,
html.dark-mode small {
    color: #cbd5e1 !important;
}

html.dark-mode h1,
html.dark-mode h2,
html.dark-mode h3,
html.dark-mode h4,
html.dark-mode h5,
html.dark-mode h6,
html.dark-mode strong,
html.dark-mode em,
html.dark-mode .footer-big-title,
html.dark-mode .footer-panel-title,
html.dark-mode .footer-brand-name,
html.dark-mode .ai-sidebar-title,
html.dark-mode .ai-chat-header h2,
html.dark-mode .dashboard-hero-title,
html.dark-mode .course-glass-title,
html.dark-mode .about-section-title,
html.dark-mode .contact-section-title {
    color: #f8fafc !important;
}

html.dark-mode .theme-toggle-btn,
html.dark-mode .btn-light-custom,
html.dark-mode .mobile-menu-toggle {
    background: rgba(15, 23, 42, 0.72) !important;
    color: #f8fafc !important;
    border-color: rgba(148, 163, 184, 0.22) !important;
}

html.dark-mode .theme-toggle-btn:hover,
html.dark-mode .btn-light-custom:hover,
html.dark-mode .mobile-menu-toggle:hover {
    background: rgba(30, 41, 59, 0.92) !important;
}

html.dark-mode .form-control,
html.dark-mode .form-select,
html.dark-mode textarea,
html.dark-mode input {
    background: rgba(15, 23, 42, 0.78) !important;
    color: #f8fafc !important;
    border-color: rgba(148, 163, 184, 0.2) !important;
}

html.dark-mode .form-control::placeholder,
html.dark-mode textarea::placeholder,
html.dark-mode input::placeholder {
    color: #94a3b8 !important;
}

html.dark-mode .ai-conversation-card {
    background: linear-gradient(180deg, rgba(9, 16, 32, 0.92), rgba(14, 24, 45, 0.84));
    border-color: rgba(148, 163, 184, 0.12);
}

html.dark-mode .ai-conversation-card:hover,
html.dark-mode .ai-conversation-card.active {
    background: linear-gradient(180deg, rgba(22, 34, 59, 0.96), rgba(28, 42, 72, 0.9));
}

html.dark-mode .ai-message-bubble {
    background: linear-gradient(180deg, rgba(9, 16, 32, 0.94), rgba(14, 24, 45, 0.88));
    border-color: rgba(148, 163, 184, 0.14);
}

html.dark-mode .ai-message-row.assistant .ai-message-meta,
html.dark-mode .ai-message-row.assistant .ai-message-text,
html.dark-mode .ai-message-sources-title,
html.dark-mode .ai-message-sources a {
    color: #e2e8f0 !important;
}

html.dark-mode .footer-aurora {
    background:
        radial-gradient(circle at top left, rgba(37, 99, 235, 0.22), transparent 34%),
        radial-gradient(circle at bottom right, rgba(168, 85, 247, 0.24), transparent 32%),
        linear-gradient(180deg, rgba(4, 10, 24, 0.98), rgba(10, 18, 36, 0.99));
    border-top: 1px solid rgba(148, 163, 184, 0.12);
}

html.dark-mode .hero-wrapper,
html.dark-mode .student-dashboard,
html.dark-mode .student-dashboard-theme,
html.dark-mode .about-page,
html.dark-mode .contact-page,
html.dark-mode .ai-page {
    background: transparent !important;
}

html.dark-mode .hero-card,
html.dark-mode .about-hero-card,
html.dark-mode .contact-hero-card,
html.dark-mode .courses-hero-panel,
html.dark-mode .dashboard-glass-hero {
    background:
        linear-gradient(180deg, rgba(8, 14, 28, 0.86), rgba(13, 24, 42, 0.8)),
        rgba(8, 14, 28, 0.82) !important;
    border-color: rgba(148, 163, 184, 0.12) !important;
    box-shadow: 0 24px 70px rgba(2, 6, 23, 0.5);
}

html.dark-mode .hero-image,
html.dark-mode .about-visual-image {
    filter: drop-shadow(0 26px 46px rgba(2, 6, 23, 0.6));
}

html.dark-mode .about-section,
html.dark-mode .contact-section,
html.dark-mode .auth-page-row,
html.dark-mode .modern-courses-page,
html.dark-mode .course-learning-page,
html.dark-mode .course-learning-shell,
html.dark-mode .student-dashboard-inner,
html.dark-mode main,
html.dark-mode section {
    background: transparent !important;
}

html.dark-mode .about-mini-card,
html.dark-mode .about-stat-item,
html.dark-mode .contact-sidebar,
html.dark-mode .contact-form-card,
html.dark-mode .contact-info-card,
html.dark-mode .contact-mini-banner,
html.dark-mode .contact-bottom-card,
html.dark-mode .auth-form-shell,
html.dark-mode .courses-filter-panel,
html.dark-mode .courses-toolbar-panel,
html.dark-mode .courses-recommend-panel,
html.dark-mode .adaptive-card,
html.dark-mode .learning-sidebar-card,
html.dark-mode .topics-list.learning-sidebar-card,
html.dark-mode .learning-content-area > div > .card,
html.dark-mode .learning-content-area > .card,
html.dark-mode .learning-content-area .card.border-0,
html.dark-mode .course-learning-ai-sidebar,
html.dark-mode .course-learning-ai-header,
html.dark-mode .course-learning-ai-body,
html.dark-mode .course-learning-ai-chat-stream,
html.dark-mode .course-learning-ai-result-card,
html.dark-mode .dashboard-ai-card,
html.dark-mode .dashboard-info-card,
html.dark-mode .dashboard-empty-panel,
html.dark-mode .dashboard-empty-inline,
html.dark-mode .dashboard-question-item,
html.dark-mode .dashboard-mini-stat,
html.dark-mode .dashboard-tip-item,
html.dark-mode .dashboard-profile-chip,
html.dark-mode .courses-empty-panel,
html.dark-mode .course-glass-placeholder,
html.dark-mode .option-card,
html.dark-mode .option-letter,
html.dark-mode .footer-shell {
    background: linear-gradient(180deg, rgba(11, 19, 36, 0.94), rgba(17, 28, 48, 0.9)) !important;
    border: 1px solid rgba(96, 165, 250, 0.08) !important;
    color: #e2e8f0 !important;
    box-shadow: 0 28px 72px rgba(2, 6, 23, 0.56) !important;
}

html.dark-mode .contact-input,
html.dark-mode .auth-input-clean,
html.dark-mode .courses-search-input,
html.dark-mode .courses-sort-select {
    background: rgba(9, 16, 32, 0.82) !important;
    border-color: rgba(148, 163, 184, 0.18) !important;
    color: #f8fafc !important;
}

html.dark-mode .about-lead,
html.dark-mode .about-description,
html.dark-mode .about-mini-text,
html.dark-mode .about-stat-label,
html.dark-mode .contact-lead,
html.dark-mode .contact-info-text,
html.dark-mode .contact-mini-banner-text,
html.dark-mode .contact-bottom-text,
html.dark-mode .contact-note,
html.dark-mode .auth-form-shell p,
html.dark-mode .courses-hero-text,
html.dark-mode .adaptive-card p,
html.dark-mode .adaptive-card small,
html.dark-mode .learning-sidebar-card,
html.dark-mode .learning-content-area,
html.dark-mode .dashboard-panel-text,
html.dark-mode .dashboard-empty-panel p,
html.dark-mode .dashboard-empty-inline,
html.dark-mode .dashboard-question-item p,
html.dark-mode .dashboard-mini-stat span,
html.dark-mode .dashboard-tip-item,
html.dark-mode .footer-brand-copy {
    color: #cbd5e1 !important;
}

html.dark-mode .about-mini-title,
html.dark-mode .about-stat-number,
html.dark-mode .contact-title,
html.dark-mode .contact-info-title,
html.dark-mode .contact-mini-banner-title,
html.dark-mode .contact-bottom-title,
html.dark-mode .contact-form-title,
html.dark-mode .auth-logo-wrap,
html.dark-mode .adaptive-card h3,
html.dark-mode .dashboard-question-item strong,
html.dark-mode .dashboard-mini-stat strong {
    color: #f8fafc !important;
}

html.dark-mode .topics-list.learning-sidebar-card .btn-outline-secondary,
html.dark-mode .topics-list.learning-sidebar-card .btn-outline-info,
html.dark-mode .topics-list.learning-sidebar-card .btn-outline-success,
html.dark-mode .topics-list.learning-sidebar-card .btn {
    background: rgba(8, 14, 28, 0.76) !important;
    border-color: rgba(148, 163, 184, 0.16) !important;
    color: #e2e8f0 !important;
}

html.dark-mode .topics-list.learning-sidebar-card .btn-primary {
    background: linear-gradient(135deg, #3b82f6, #6366f1) !important;
    color: #fff !important;
}

html.dark-mode .course-learning-ai-tab {
    background: rgba(8, 14, 28, 0.75) !important;
    color: #cbd5e1 !important;
    border-color: rgba(148, 163, 184, 0.14) !important;
}

html.dark-mode .course-learning-ai-tab.active {
    background: linear-gradient(135deg, #3b82f6, #6366f1) !important;
    color: #fff !important;
}

html.dark-mode .hero-wrapper .container.py-5,
html.dark-mode .container.py-5,
html.dark-mode .container-fluid.p-0 {
    background: transparent !important;
}


html.dark-mode .hero-card {
    box-shadow: none!Important;
}

html.dark-mode .footer-shell {
    background: transparent!important;
    box-shadow: none!important;
    border: none!Important;
}

html.dark-mode .contact-sidebar {
    background: transparent ! Important;
    box-shadow: none ! Important;
    border: none !important;
}

html.dark-mode .learning-theme-grid {
    display: flex;
}
html.dark-mode .score-badge {
    color: #0d6efd!important;
}

html.dark-mode .dropdown-dark-item:hover{
    background: transparent;
}

html.dark-mode .dropdown-dark-item, html.dark-mode .ai-mobile-back-btn  {
    color: white!important;
}

.global-toast-stack {
    position: fixed;
    top: 112px;
    right: 24px;
    z-index: 2000;
    width: min(380px, calc(100vw - 32px));
    pointer-events: none;
}

.header-logo-image {
    height: 50px;
    width: auto;
    display: block;
}

.global-toast-stack > div {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.global-toast {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 14px;
    align-items: start;
    padding: 16px 18px;
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background:
        linear-gradient(145deg, rgba(22, 26, 58, 0.92), rgba(10, 14, 34, 0.88));
    box-shadow: 0 22px 55px rgba(5, 10, 30, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.05) inset;
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    pointer-events: auto;
    color: #f7f8ff;
}

.global-toast--success {
    border-color: rgba(96, 232, 180, 0.28);
}

.global-toast--error {
    border-color: rgba(255, 124, 148, 0.32);
}

.global-toast__icon {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.08);
    font-size: 1rem;
}

.global-toast--success .global-toast__icon {
    color: #63e6be;
    background: rgba(99, 230, 190, 0.14);
}

.global-toast--error .global-toast__icon {
    color: #ff8da1;
    background: rgba(255, 141, 161, 0.14);
}

.global-toast__content strong {
    display: block;
    margin-bottom: 4px;
    font-size: 0.96rem;
    font-weight: 700;
}

.global-toast__content p {
    margin: 0;
    color: rgba(244, 246, 255, 0.88);
    line-height: 1.5;
    font-size: 0.93rem;
}

.global-toast__close {
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.88);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, transform 0.2s ease;
}

.global-toast__close:hover {
    background: rgba(255, 255, 255, 0.14);
    transform: scale(1.05);
}

.global-toast-enter-active,
.global-toast-leave-active {
    transition: opacity 0.24s ease, transform 0.24s ease;
}

.global-toast-enter-from,
.global-toast-leave-to {
    opacity: 0;
    transform: translateY(-10px) translateX(20px);
}

.global-toast-move {
    transition: transform 0.24s ease;
}

.auth-form-shell > .alert.alert-dismissible,
.student-dashboard-theme .alert.alert-dismissible.fade.show.mb-4,
.ai-page .alert.alert-danger.mx-4.mb-0.mt-3 {
    display: none !important;
}

@media (max-width: 991px) {
    .global-toast-stack {
        top: 92px;
        right: 16px;
        left: 16px;
        width: auto;
    }

    .global-toast {
        padding: 15px 16px;
        border-radius: 18px;
    }
}

.homepage-shell {
    position: relative;
    z-index: 1;
}

.homepage-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
}

.homepage-stat-card,
.homepage-section-card,
.homepage-course-card,
.homepage-cta-card,
.homepage-empty-card {
    position: relative;
    overflow: hidden;
    border-radius: 32px;
    border: 1px solid rgba(255, 255, 255, 0.45);
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.68), rgba(255, 255, 255, 0.2) 40%, rgba(255, 255, 255, 0.3) 100%);
    box-shadow: 0 28px 70px rgba(49, 46, 129, 0.12);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
}

.homepage-stat-card {
    padding: 1.6rem;
}

.homepage-stat-card span,
.homepage-kicker {
    display: inline-block;
    margin-bottom: 0.55rem;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #6366f1;
    font-weight: 800;
}

.homepage-stat-card strong {
    display: block;
    margin-bottom: 0.6rem;
    font-size: clamp(1.7rem, 3vw, 2.3rem);
    color: #1e1b4b;
}

.homepage-stat-card p,
.homepage-copy,
.homepage-feature-card p,
.homepage-course-body p,
.homepage-cta-card p,
.homepage-empty-card p {
    margin: 0;
    color: #5b6478;
    line-height: 1.75;
}

.homepage-section-card {
    padding: clamp(1.5rem, 3vw, 2.4rem);
}

.homepage-section-head {
    margin-bottom: 1.8rem;
}

.homepage-section-head--split {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: flex-end;
}

.homepage-title {
    margin: 0 0 0.75rem;
    max-width: 900px;
    font-size: clamp(1.9rem, 3.2vw, 2.8rem);
    line-height: 1.15;
    color: #1f2347;
}

.homepage-feature-card {
    height: 100%;
    padding: 1.35rem;
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.58);
    border: 1px solid rgba(255, 255, 255, 0.35);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.homepage-feature-icon {
    width: 58px;
    height: 58px;
    margin-bottom: 1rem;
    border-radius: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.18), rgba(14, 165, 233, 0.18));
    color: #4f46e5;
    font-size: 1.2rem;
}

.homepage-feature-card h3,
.homepage-course-body h3,
.homepage-empty-card h3,
.homepage-cta-card h2 {
    color: #1f2347;
}

.homepage-course-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.homepage-course-image-wrap {
    height: 220px;
    overflow: hidden;
}

.homepage-course-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.homepage-course-image--fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.16), rgba(236, 72, 153, 0.18));
    color: #4f46e5;
    font-size: 2rem;
}

.homepage-course-body {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    padding: 1.4rem;
    flex: 1;
}

.homepage-course-meta {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
    font-size: 0.86rem;
    color: #6366f1;
    font-weight: 700;
}

.homepage-course-actions,
.homepage-cta-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: auto;
}

.homepage-inline-btn {
    white-space: nowrap;
}

.homepage-empty-card,
.homepage-cta-card {
    padding: clamp(1.6rem, 3vw, 2.5rem);
}

.homepage-empty-card {
    text-align: center;
}

.homepage-empty-card i {
    font-size: 2rem;
    color: #6366f1;
    margin-bottom: 1rem;
}

.homepage-cta-card {
    display: flex;
    justify-content: space-between;
    gap: 1.5rem;
    align-items: center;
}

html.dark-mode .homepage-stat-card,
html.dark-mode .homepage-section-card,
html.dark-mode .homepage-course-card,
html.dark-mode .homepage-cta-card,
html.dark-mode .homepage-empty-card,
html.dark-mode .homepage-feature-card {
    background: linear-gradient(180deg, rgba(10, 19, 39, 0.92), rgba(16, 26, 49, 0.88)) !important;
    border-color: rgba(96, 165, 250, 0.1) !important;
    box-shadow: 0 28px 72px rgba(2, 6, 23, 0.46) !important;
}

html.dark-mode .homepage-title,
html.dark-mode .homepage-feature-card h3,
html.dark-mode .homepage-course-body h3,
html.dark-mode .homepage-cta-card h2,
html.dark-mode .homepage-empty-card h3,
html.dark-mode .homepage-stat-card strong {
    color: #f8fafc !important;
}

html.dark-mode .homepage-stat-card p,
html.dark-mode .homepage-copy,
html.dark-mode .homepage-feature-card p,
html.dark-mode .homepage-course-body p,
html.dark-mode .homepage-cta-card p,
html.dark-mode .homepage-empty-card p {
    color: #cbd5e1 !important;
}

@media (max-width: 991px) {
    .homepage-stats-grid {
        grid-template-columns: 1fr;
    }

    .homepage-section-head--split,
    .homepage-cta-card {
        flex-direction: column;
        align-items: flex-start;
    }
}
