/* General page settings */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #f7f9ff;
    color: #101340;
}

/* Header */
header {
    width: 100%;
    padding: 22px 8%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
}

.logo {
    font-size: 26px;
    font-weight: bold;
    color: #101340;
}

.logo span {
    color: #5b5ff5;
}

nav a {
    text-decoration: none;
    color: #101340;
    margin: 0 18px;
    font-weight: 600;
}

nav a:hover {
    color: #5b5ff5;
}

.top-btn {
    background: linear-gradient(90deg, #6554f4, #16c7c7);
    color: white;
    border: none;
    padding: 12px 22px;
    border-radius: 12px;
    font-weight: bold;
    cursor: pointer;
}

/* Hero Section */
.hero {
    margin: 20px auto;
    width: 92%;
    min-height: 470px;
    background: linear-gradient(120deg, #eef0ff, #dffaff);
    border-radius: 25px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 60px 8%;
    position: relative;
    overflow: hidden;
}

.hero-text {
    width: 50%;
}

.hero-text h1 {
    font-size: 58px;
    line-height: 1.1;
    margin-bottom: 25px;
}

.hero-text h1 span {
    color: #5b5ff5;
}

.hero-text p {
    font-size: 19px;
    line-height: 1.6;
    margin-bottom: 30px;
    color: #33395f;
}

.hero-buttons {
    display: flex;
    gap: 18px;
    margin-bottom: 25px;
}

.primary-btn,
.secondary-btn {
    padding: 15px 30px;
    border-radius: 13px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
}

.primary-btn {
    background: #6c4df6;
    color: white;
    border: none;
}

.secondary-btn {
    background: white;
    color: #101340;
    border: 2px solid #d5d9f2;
}

.small-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    font-weight: bold;
    color: #30345f;
}

/* Hero Robot Area */
.hero-image {
    width: 45%;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.robot {
    width: 280px;
    height: 280px;
    background: white;
    border-radius: 50%;
    font-size: 150px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 20px 50px rgba(60, 60, 120, 0.18);
}

.floating-card {
    position: absolute;
    background: white;
    padding: 18px;
    border-radius: 18px;
    box-shadow: 0 12px 35px rgba(70, 70, 120, 0.15);
    max-width: 220px;
}

.floating-card p {
    margin-top: 8px;
    font-size: 14px;
    color: #41466e;
}

.card-one {
    top: 20px;
    left: 0;
}

.card-two {
    bottom: 20px;
    right: 0;
}

/* Features */
.features {
    width: 82%;
    margin: 35px auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

.feature-card {
    background: white;
    padding: 28px;
    border-radius: 20px;
    box-shadow: 0 12px 30px rgba(60, 60, 120, 0.08);
}

.icon {
    font-size: 36px;
    margin-bottom: 15px;
}

.feature-card h3 {
    margin-bottom: 12px;
}

.feature-card p {
    color: #454b6e;
    line-height: 1.5;
}

/* Learning Areas */
.learning {
    width: 82%;
    margin: 55px auto;
    text-align: center;
}

.learning h2 {
    font-size: 32px;
    margin-bottom: 30px;
}

.learning-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

.learning-card {
    background: white;
    padding: 30px;
    border-radius: 20px;
    text-align: left;
    box-shadow: 0 12px 30px rgba(60, 60, 120, 0.08);
}

.learning-card h3 {
    margin-bottom: 12px;
    color: #101340;
}

.learning-card p {
    color: #454b6e;
    margin-bottom: 20px;
    line-height: 1.5;
}

.learning-card a {
    text-decoration: none;
    color: #5b5ff5;
    font-weight: bold;
}

/* Testimonial */
.testimonial {
    width: 82%;
    margin: 50px auto;
    background: #f0edff;
    padding: 35px;
    border-radius: 22px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.testimonial p {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 12px;
}


/* Responsive design for smaller screens */
@media (max-width: 900px) {
    header {
        flex-direction: column;
        gap: 18px;
    }

    nav {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero {
        flex-direction: column;
        text-align: center;
    }

    .hero-text,
    .hero-image {
        width: 100%;
    }

    .hero-text h1 {
        font-size: 40px;
    }

    .hero-buttons,
    .small-tags {
        justify-content: center;
    }

    .features,
    .learning-grid,
    .testimonial{
        grid-template-columns: 1fr;
    }
}

/* General page hero for extra pages */
.page-hero,
.dashboard-hero {
    width: 92%;
    margin: 25px auto;
    padding: 70px 8%;
    background: linear-gradient(120deg, #eef0ff, #dffaff);
    border-radius: 25px;
    text-align: center;
}

.page-hero h1,
.dashboard-hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
    color: #101340;
}

.page-hero p,
.dashboard-hero p {
    max-width: 760px;
    margin: 0 auto;
    font-size: 19px;
    line-height: 1.6;
    color: #33395f;
}

/* Page cards */
.page-grid {
    width: 82%;
    margin: 45px auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

.page-card {
    background: white;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 12px 30px rgba(60, 60, 120, 0.08);
}

.page-card h3 {
    margin-bottom: 12px;
    color: #101340;
}

.page-card p {
    color: #454b6e;
    line-height: 1.6;
    margin-bottom: 20px;
}

.small-btn {
    padding: 11px 20px;
    font-size: 14px;
}

/* About page */
.about-section {
    width: 82%;
    margin: 45px auto;
    background: white;
    padding: 45px;
    border-radius: 22px;
    box-shadow: 0 12px 30px rgba(60, 60, 120, 0.08);
}

.about-text h2 {
    margin-top: 25px;
    margin-bottom: 12px;
    color: #101340;
}

.about-text h2:first-child {
    margin-top: 0;
}

.about-text p,
.about-text li {
    font-size: 17px;
    color: #454b6e;
    line-height: 1.7;
}

.about-text ul {
    margin-left: 25px;
    margin-top: 12px;
}

/* Dashboards */
.dashboard-layout {
    width: 82%;
    margin: 45px auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.dashboard-card {
    background: white;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 12px 30px rgba(60, 60, 120, 0.08);
}

.dashboard-card h2 {
    margin-bottom: 15px;
    color: #101340;
}

.dashboard-card p,
.dashboard-card li {
    color: #454b6e;
    line-height: 1.7;
}

.dashboard-card ul {
    margin-left: 22px;
}

.large-card {
    grid-column: span 2;
}

.progress-bar {
    width: 100%;
    height: 16px;
    background: #e2e5f5;
    border-radius: 20px;
    margin: 18px 0;
    overflow: hidden;
}

.progress-fill {
    width: 75%;
    height: 100%;
    background: linear-gradient(90deg, #6554f4, #16c7c7);
}

.dashboard-card input {
    width: 100%;
    padding: 14px;
    border: 2px solid #d5d9f2;
    border-radius: 12px;
    margin: 15px 0;
    font-size: 15px;
}

/* Responsive pages */
@media (max-width: 900px) {
    .page-grid,
    .dashboard-layout {
        grid-template-columns: 1fr;
    }

    .large-card {
        grid-column: span 1;
    }

    .page-hero h1,
    .dashboard-hero h1 {
        font-size: 36px;
    }
}


/* Futuristic animations */

/* Smooth page loading */
body {
    animation: pageFadeIn 0.8s ease-in-out;
}

@keyframes pageFadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hero floating animation */
.hero-image {
    animation: floatHero 5s ease-in-out infinite;
}

@keyframes floatHero {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-12px);
    }

    100% {
        transform: translateY(0);
    }
}

/* Robot glow */
.robot {
    position: relative;
    animation: robotPulse 3s ease-in-out infinite;
}

@keyframes robotPulse {
    0% {
        box-shadow: 0 20px 50px rgba(60, 60, 120, 0.18);
    }

    50% {
        box-shadow: 0 25px 70px rgba(101, 84, 244, 0.35);
    }

    100% {
        box-shadow: 0 20px 50px rgba(60, 60, 120, 0.18);
    }
}

/* Floating AI cards */
.floating-card {
    animation: floatingCard 4s ease-in-out infinite;
}

.card-two {
    animation-delay: 1.2s;
}

@keyframes floatingCard {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0);
    }
}

/* Scroll reveal */
.reveal {
    opacity: 0;
    transform: translateY(35px);
    transition: all 0.8s ease;
}

.reveal.show {
    opacity: 1;
    transform: translateY(0);
}

/* Card hover effect */
.feature-card,
.learning-card,
.page-card,
.dashboard-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover,
.learning-card:hover,
.page-card:hover,
.dashboard-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 45px rgba(60, 60, 120, 0.16);
}

/* Futuristic mouse glow */
.mouse-glow {
    position: fixed;
    width: 180px;
    height: 180px;
    background: radial-gradient(circle, rgba(101, 84, 244, 0.18), transparent 70%);
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 0;
    transition: top 0.08s ease, left 0.08s ease;
}

header,
main,
.hero,
.features,
.learning,
.testimonial,
.page-hero,
.dashboard-hero,
.page-grid,
.dashboard-layout {
    position: relative;
    z-index: 1;
}

/* Active navigation link */
nav a.active-link {
    color: #5b5ff5;
    border-bottom: 3px solid #5b5ff5;
    padding-bottom: 6px;
}

/* Animated progress bar */
.progress-fill {
    transition: width 1.4s ease-in-out;
}

/* Futuristic button glow */
.primary-btn,
.top-btn {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.primary-btn:hover,
.top-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(101, 84, 244, 0.35);
}

/* Respect users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }
}

/* Stronger futuristic visual effects */

.hero {
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    width: 420px;
    height: 420px;
    background: radial-gradient(circle, rgba(101, 84, 244, 0.22), transparent 70%);
    top: -120px;
    right: 180px;
    border-radius: 50%;
    animation: orbitGlow 7s ease-in-out infinite;
}

.hero::after {
    content: "";
    position: absolute;
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(22, 199, 199, 0.22), transparent 70%);
    bottom: -90px;
    left: 120px;
    border-radius: 50%;
    animation: orbitGlowTwo 8s ease-in-out infinite;
}

@keyframes orbitGlow {
    0% {
        transform: translate(0, 0) scale(1);
        opacity: 0.6;
    }

    50% {
        transform: translate(-40px, 40px) scale(1.15);
        opacity: 1;
    }

    100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.6;
    }
}

@keyframes orbitGlowTwo {
    0% {
        transform: translate(0, 0) scale(1);
        opacity: 0.5;
    }

    50% {
        transform: translate(50px, -30px) scale(1.2);
        opacity: 0.9;
    }

    100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.5;
    }
}

.robot {
    animation: robotFloatStrong 3.5s ease-in-out infinite, robotPulse 3s ease-in-out infinite;
}

@keyframes robotFloatStrong {
    0% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-18px) rotate(2deg);
    }

    100% {
        transform: translateY(0) rotate(0deg);
    }
}

.floating-card {
    animation: cardFloatStrong 3.5s ease-in-out infinite;
}

@keyframes cardFloatStrong {
    0% {
        transform: translateY(0) scale(1);
    }

    50% {
        transform: translateY(-16px) scale(1.03);
    }

    100% {
        transform: translateY(0) scale(1);
    }
}

.feature-card:hover,
.learning-card:hover,
.page-card:hover,
.dashboard-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 25px 55px rgba(101, 84, 244, 0.22);
}

/* VERY VISIBLE FUTURISTIC ANIMATIONS */

/* Neon animated background in hero */
.hero {
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    width: 650px;
    height: 650px;
    top: -220px;
    right: -120px;
    background: radial-gradient(circle, rgba(101, 84, 244, 0.45), transparent 65%);
    border-radius: 50%;
    animation: neonPulseOne 4s ease-in-out infinite;
    z-index: 0;
}

.hero::after {
    content: "";
    position: absolute;
    width: 520px;
    height: 520px;
    bottom: -200px;
    left: -100px;
    background: radial-gradient(circle, rgba(22, 199, 199, 0.45), transparent 65%);
    border-radius: 50%;
    animation: neonPulseTwo 5s ease-in-out infinite;
    z-index: 0;
}

.hero-text,
.hero-image {
    position: relative;
    z-index: 2;
}

@keyframes neonPulseOne {
    0% {
        transform: translate(0, 0) scale(1);
        opacity: 0.4;
    }

    50% {
        transform: translate(-80px, 80px) scale(1.25);
        opacity: 1;
    }

    100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.4;
    }
}

@keyframes neonPulseTwo {
    0% {
        transform: translate(0, 0) scale(1);
        opacity: 0.4;
    }

    50% {
        transform: translate(100px, -70px) scale(1.25);
        opacity: 1;
    }

    100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.4;
    }
}

/* Make robot movement more visible */
.robot {
    animation: robotBounce 2.5s ease-in-out infinite, robotNeonGlow 2.5s ease-in-out infinite !important;
}

@keyframes robotBounce {
    0% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-30px) rotate(4deg);
    }

    100% {
        transform: translateY(0) rotate(0deg);
    }
}

@keyframes robotNeonGlow {
    0% {
        box-shadow: 0 20px 50px rgba(60, 60, 120, 0.18);
    }

    50% {
        box-shadow: 0 25px 90px rgba(101, 84, 244, 0.75);
    }

    100% {
        box-shadow: 0 20px 50px rgba(60, 60, 120, 0.18);
    }
}

/* Floating AI cards */
.floating-card {
    animation: floatingStrong 2.8s ease-in-out infinite !important;
}

.card-two {
    animation-delay: 1s !important;
}

@keyframes floatingStrong {
    0% {
        transform: translateY(0) scale(1);
    }

    50% {
        transform: translateY(-25px) scale(1.06);
    }

    100% {
        transform: translateY(0) scale(1);
    }
}

/* Make buttons clearly animated */
.primary-btn,
.top-btn {
    background-size: 250% 250%;
    animation: buttonMove 2.5s ease infinite;
}

@keyframes buttonMove {
    0% {
        background-position: left center;
    }

    50% {
        background-position: right center;
    }

    100% {
        background-position: left center;
    }
}

/* Make mouse glow visible above the page */
.mouse-glow {
    position: fixed;
    width: 260px;
    height: 260px;
    background: radial-gradient(circle, rgba(101, 84, 244, 0.28), transparent 70%);
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 9999;
    transition: top 0.08s ease, left 0.08s ease;
    mix-blend-mode: multiply;
}

/* Strong card hover */
.feature-card:hover,
.learning-card:hover,
.page-card:hover,
.dashboard-card:hover {
    transform: translateY(-18px) scale(1.04);
    box-shadow: 0 30px 70px rgba(101, 84, 244, 0.35);
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.auth-form label {
    font-weight: bold;
    color: #101340;
}

.auth-form input,
.auth-form select {
    padding: 14px;
    border: 2px solid #d5d9f2;
    border-radius: 12px;
    font-size: 16px;
}

.auth-form button {
    margin-top: 10px;
}

.table-wrapper {
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.admin-table th,
.admin-table td {
    padding: 14px;
    border-bottom: 1px solid #d5d9f2;
    text-align: left;
}

.admin-table th {
    background: #f0f3ff;
    color: #101340;
}

.inline-form {
    display: flex;
    gap: 10px;
    align-items: center;
}

.inline-form select {
    padding: 10px;
    border: 2px solid #d5d9f2;
    border-radius: 10px;
}

.status-badge {
    padding: 6px 12px;
    border-radius: 999px;
    font-weight: bold;
    font-size: 13px;
}

.status-pending {
    background: #fff3cd;
    color: #856404;
}

.status-approved {
    background: #d4edda;
    color: #155724;
}

.status-blocked {
    background: #f8d7da;
    color: #721c24;
}

.success-message {
    background: #d4edda;
    color: #155724;
    padding: 14px;
    border-radius: 12px;
    margin-bottom: 20px;
}

.auth-box {
    max-width: 620px;
}

.error-message,
.warning-message,
.success-message {
    padding: 16px 18px;
    border-radius: 14px;
    margin-bottom: 22px;
    font-weight: 600;
    line-height: 1.5;
}

.error-message {
    background: #ffe3e3;
    color: #8a1f1f;
    border: 1px solid #ffb3b3;
}

.warning-message {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffe08a;
}

.success-message {
    background: #d4edda;
    color: #155724;
    border: 1px solid #a8d8b2;
}

.auth-link {
    margin-top: 20px;
    color: #454b6e;
}

.auth-link a {
    color: #5b5ff5;
    font-weight: bold;
    text-decoration: none;
}

/* User Management Page */

.admin-panel {
    width: 82%;
    margin: 45px auto;
    background: white;
    padding: 35px;
    border-radius: 22px;
    box-shadow: 0 12px 30px rgba(60, 60, 120, 0.08);
}

.admin-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 25px;
    margin-bottom: 25px;
}

.admin-top h2 {
    font-size: 28px;
    margin-bottom: 8px;
    color: #101340;
}

.admin-top p {
    color: #454b6e;
    line-height: 1.5;
}

.table-wrapper {
    width: 100%;
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 950px;
}

.admin-table th {
    background: #f0f3ff;
    color: #101340;
    padding: 16px;
    text-align: left;
    font-size: 15px;
}

.admin-table td {
    padding: 16px;
    border-bottom: 1px solid #e1e5f5;
    color: #30345f;
    vertical-align: middle;
}

.admin-table tr:hover {
    background: #f8f9ff;
}

.inline-form {
    display: flex;
    align-items: center;
    gap: 10px;
}

.inline-form select {
    padding: 10px 12px;
    border: 2px solid #d5d9f2;
    border-radius: 10px;
    background: white;
    color: #101340;
    font-weight: 600;
}

.status-badge,
.role-badge {
    display: inline-block;
    padding: 7px 13px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: bold;
}

.status-pending {
    background: #fff3cd;
    color: #856404;
}

.status-approved {
    background: #d4edda;
    color: #155724;
}

.status-blocked {
    background: #f8d7da;
    color: #721c24;
}

.role-student {
    background: #e7f0ff;
    color: #1f4f9f;
}

.role-teacher {
    background: #e9ddff;
    color: #4c2b8a;
}

.role-manager {
    background: #dff9f6;
    color: #0f766e;
}

.role-owner {
    background: #ffe4d6;
    color: #9a3412;
}

.danger-btn {
    background: #dc3545;
    color: white;
    border: none;
    padding: 11px 18px;
    border-radius: 12px;
    font-weight: bold;
    cursor: pointer;
}

.danger-btn:hover {
    background: #bb2d3b;
}

.muted-text {
    color: #7b819f;
    font-size: 14px;
}

.empty-state {
    background: #f8f9ff;
    padding: 30px;
    border-radius: 18px;
    text-align: center;
}

.empty-state h3 {
    margin-bottom: 10px;
    color: #101340;
}

.success-message {
    background: #d4edda;
    color: #155724;
    padding: 15px 18px;
    border-radius: 14px;
    margin-bottom: 20px;
    font-weight: bold;
}

@media (max-width: 900px) {
    .admin-panel {
        width: 92%;
        padding: 22px;
    }

    .admin-top {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* =========================================================
   USER MANAGEMENT - ROUTE-SPECIFIC STYLES
   =========================================================
   User Management presentation has moved to:
   assets/css/user-management.css

   Shared status/message styles remain global above.
   ========================================================= */

/* Teacher student list */

.teacher-student-list {
    display: grid;
    gap: 16px;
    margin-top: 22px;
}

.teacher-student-card {
    background: #f8f9ff;
    border: 1px solid #e1e5f5;
    padding: 18px;
    border-radius: 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
}

.teacher-student-card h3 {
    color: #101340;
    margin-bottom: 5px;
}

.teacher-student-card p {
    color: #454b6e;
    margin-bottom: 5px;
}

.teacher-student-card small {
    color: #7b819f;
}

/* Teacher student list */

.teacher-student-list {
    display: grid;
    gap: 16px;
    margin-top: 22px;
}

.teacher-student-card {
    background: #f8f9ff;
    border: 1px solid #e1e5f5;
    padding: 18px;
    border-radius: 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
}

.teacher-student-card h3 {
    color: #101340;
    margin-bottom: 5px;
}

.teacher-student-card p {
    color: #454b6e;
    margin-bottom: 5px;
}

.teacher-student-card small {
    color: #7b819f;
}

/* Student progress list for teacher dashboard */

.progress-student-list {
    display: grid;
    gap: 18px;
    margin-top: 22px;
}

.progress-student-card {
    background: #f8f9ff;
    border: 1px solid #e1e5f5;
    padding: 22px;
    border-radius: 18px;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 28px;
    align-items: start;
}

.progress-student-info h3 {
    color: #101340;
    margin-bottom: 6px;
}

.progress-student-info p {
    color: #454b6e;
    margin-bottom: 12px;
}

.student-progress-details p {
    margin-bottom: 6px;
    color: #30345f;
}

.mini-progress-bar {
    width: 100%;
    height: 10px;
    background: #e2e5f5;
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 14px;
}

.mini-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #6554f4, #16c7c7);
    border-radius: 999px;
}

@media (max-width: 900px) {
    .teacher-student-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .progress-student-card {
        grid-template-columns: 1fr;
    }
}

/* Teacher dashboard student dropdown */

.student-selector-box {
    margin-top: 22px;
    margin-bottom: 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.student-select {
    width: 100%;
    padding: 15px;
    border: 2px solid #d5d9f2;
    border-radius: 14px;
    font-size: 16px;
    color: #101340;
    background: white;
}

.student-preview {
    background: #f8f9ff;
    border: 1px solid #e1e5f5;
    padding: 24px;
    border-radius: 20px;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 28px;
    margin-top: 20px;
}

.hidden-preview {
    display: none;
}

.student-preview h3 {
    color: #101340;
    margin-bottom: 6px;
}

.student-preview p {
    color: #454b6e;
    margin-bottom: 10px;
}

@media (max-width: 900px) {
    .student-preview {
        grid-template-columns: 1fr;
    }
}

/* Improved teacher student selector */

.student-progress-panel {
    margin-top: 24px;
    background: #f8f9ff;
    border: 1px solid #e1e5f5;
    padding: 28px;
    border-radius: 22px;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 30px;
    align-items: start;
}

.student-select-area {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.student-select-area label {
    font-weight: bold;
    color: #101340;
}

.student-select {
    width: 100%;
    padding: 15px;
    border: 2px solid #d5d9f2;
    border-radius: 14px;
    font-size: 16px;
    background: white;
    color: #101340;
}

.student-progress-info {
    background: white;
    padding: 22px;
    border-radius: 18px;
}

.student-progress-info h3 {
    color: #101340;
    margin-bottom: 12px;
}

.student-progress-info ul {
    margin-left: 20px;
    color: #454b6e;
    line-height: 1.8;
}

.mini-progress-bar {
    width: 100%;
    height: 12px;
    background: #e2e5f5;
    border-radius: 999px;
    overflow: hidden;
    margin: 8px 0 18px;
}

.mini-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #6554f4, #16c7c7);
    border-radius: 999px;
}

@media (max-width: 900px) {
    .student-progress-panel {
        grid-template-columns: 1fr;
    }
}

/* Student Portal Dashboard */

.student-portal-layout {
    width: 82%;
    margin: 45px auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.student-portal-card {
    background: white;
    padding: 30px;
    border-radius: 22px;
    box-shadow: 0 12px 30px rgba(60, 60, 120, 0.08);
}

.large-student-card {
    grid-column: span 2;
}

.student-profile-card {
    display: flex;
    align-items: center;
    gap: 22px;
}

.student-avatar-large {
    width: 80px;
    height: 80px;
    border-radius: 22px;
    background: linear-gradient(135deg, #6554f4, #16c7c7);
    color: white;
    font-size: 34px;
    font-weight: bold;
    display: flex;
    justify-content: center;
    align-items: center;
}

.student-portal-card h2 {
    color: #101340;
    margin-bottom: 12px;
}

.student-portal-card p,
.student-portal-card li {
    color: #454b6e;
    line-height: 1.6;
}

.big-progress-number {
    font-size: 46px;
    font-weight: bold;
    color: #5b5ff5;
    margin: 18px 0;
}

.student-skill-row {
    display: flex;
    justify-content: space-between;
    margin-top: 16px;
    color: #101340;
}

.student-task-list {
    margin-left: 20px;
}

.student-ai-input {
    width: 100%;
    padding: 14px;
    border: 2px solid #d5d9f2;
    border-radius: 12px;
    margin: 15px 0;
    font-size: 15px;
}

.achievement-list,
.quick-action-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.achievement-list span {
    background: #f0f3ff;
    padding: 12px 16px;
    border-radius: 14px;
    font-weight: bold;
    color: #101340;
}

.activity-timeline {
    display: grid;
    gap: 16px;
}

.activity-timeline div {
    background: #f8f9ff;
    padding: 18px;
    border-radius: 16px;
    border-left: 5px solid #6554f4;
}

.small-muted-text {
    color: #7b819f;
    font-size: 14px;
    margin-top: 10px;
}

@media (max-width: 900px) {
    .student-portal-layout {
        width: 92%;
        grid-template-columns: 1fr;
    }

    .large-student-card {
        grid-column: span 1;
    }

    .student-profile-card {
        flex-direction: column;
        align-items: flex-start;
    }
}

.submission-list {
    display: grid;
    gap: 18px;
    margin-top: 20px;
}

.submission-card {
    background: #f8f9ff;
    border: 1px solid #e1e5f5;
    padding: 20px;
    border-radius: 18px;
}

.submission-card h3 {
    color: #101340;
    margin-bottom: 8px;
}

.submission-card p {
    color: #454b6e;
    margin-bottom: 8px;
}

.submission-card a {
    color: #5b5ff5;
    font-weight: bold;
    text-decoration: none;
}


/* ===== Brand ===== */


/* ===== Section Headers ===== */


/* ===== Navigation Links ===== */


/* ===== Bottom Bar ===== */


/* ====================================================
   RESPONSIVE BREAKPOINTS
   ==================================================== */

/* Tablets & small laptops */


/* Mobile phones */


/* Very small phones */


/* ====================================================
   DM HEADER – Modern, Responsive with Hamburger Menu
   ==================================================== */

.dm-header {
    background: rgba(6, 17, 58, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(108, 99, 255, 0.15);
    padding: 0 5%;
    position: relative;
    top: auto;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.dm-header-inner {
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

/* ===== Logo ===== */
.logo {
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.5px;
    white-space: nowrap;
}

.logo span {
    background: linear-gradient(135deg, #6c63ff, #16c7c7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== Hamburger Button ===== */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    z-index: 1001;
}

.hamburger-line {
    width: 28px;
    height: 3px;
    background: #ffffff;
    border-radius: 999px;
    transition: all 0.3s ease;
    transform-origin: center;
}

/* Hamburger animation to X */
.hamburger.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
}

.hamburger.active .hamburger-line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.hamburger.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
}

/* ===== Navigation Menu ===== */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-menu a {
    color: #b8c6ff;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.92rem;
    padding: 8px 14px;
    border-radius: 8px;
    transition: all 0.25s ease;
    white-space: nowrap;
}

.nav-menu a:hover {
    color: #16c7c7;
    background: rgba(22, 199, 199, 0.08);
}

.nav-menu a.nav-logout {
    color: #ff6b6b;
}

.nav-menu a.nav-logout:hover {
    background: rgba(255, 107, 107, 0.12);
    color: #ff6b6b;
}

/* ===== CTA Buttons ===== */
.top-btn {
    background: linear-gradient(135deg, #6c63ff, #16c7c7);
    color: #ffffff;
    border: none;
    padding: 10px 24px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(108, 99, 255, 0.3);
    white-space: nowrap;
}

.top-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(108, 99, 255, 0.45);
}

.top-btn:active {
    transform: scale(0.97);
}

.nav-cta-mobile {
    display: none;
}

/* ====================================================
   RESPONSIVE BREAKPOINTS
   ==================================================== */

/* Tablets & smaller laptops */
@media (max-width: 1024px) {
    .nav-menu a {
        font-size: 0.85rem;
        padding: 6px 10px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .dm-header {
        padding: 0 4%;
    }

    .dm-header-inner {
        height: 60px;
    }

    .logo {
        font-size: 20px;
    }

    /* Show hamburger */
    .hamburger {
        display: flex;
    }

    /* Hide desktop CTA */
    .nav-cta-desktop {
        display: none;
    }

    /* Mobile menu - slides from right */
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: rgba(6, 17, 58, 0.98);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        flex-direction: column;
        align-items: stretch;
        padding: 80px 24px 30px;
        gap: 4px;
        transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: -10px 0 40px rgba(0, 0, 0, 0.4);
        overflow-y: auto;
    }

    .nav-menu.open {
        right: 0;
    }

    .nav-menu a {
        font-size: 1rem;
        padding: 12px 16px;
        border-radius: 10px;
        white-space: normal;
        width: 100%;
        text-align: left;
        border-left: 3px solid transparent;
    }

    .nav-menu a:hover {
        border-left-color: #16c7c7;
        background: rgba(22, 199, 199, 0.06);
    }

    .nav-menu a.nav-logout {
        border-left-color: #ff6b6b;
    }

    .nav-menu a.nav-logout:hover {
        border-left-color: #ff6b6b;
        background: rgba(255, 107, 107, 0.08);
    }

    /* Show mobile CTA */
    .nav-cta-mobile {
        display: block;
        margin-top: 16px;
        padding-top: 16px;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
    }

    .nav-cta-mobile .top-btn {
        width: 100%;
        text-align: center;
        padding: 14px;
        font-size: 1rem;
    }
}

/* Very small phones */
@media (max-width: 400px) {
    .dm-header-inner {
        height: 54px;
    }

    .logo {
        font-size: 17px;
    }

    .hamburger-line {
        width: 24px;
        height: 2.5px;
    }

    .nav-menu {
        width: 100%;
        padding: 70px 20px 25px;
    }

    .nav-menu a {
        font-size: 0.95rem;
        padding: 10px 14px;
    }
}


/* ============================= */

/* ============================= */

/* ============================= */

/* ============================= */


/* Brand */


/* Dividers */


/* Creator */


/* Sections */


/* Copyright column */


/* Tablet */


/* Mobile */


/* old CSS above */

/* ============================= */

/* Put this at the very bottom */
/* ============================= */


/* ============================= */

/* ============================= */


/* Brand */


/* Dividers */


/* Creator */


/* Sections */


/* Social logos */


.college-text-logo {
    background: linear-gradient(135deg, #ff4d7d, #7c3aed, #ff9900);
}

/* Copyright column */


/* Tablet */


/* Mobile */


/* ============================= */

/* ============================= */

/* ============================= */

/* ============================= */


/* Brand */


/* Dividers */


/* Creator */


/* Sections */


/* Social Logos */


/* Bottom Bar */


/* Tablet */


/* Mobile */



/* ============================= */
/* HEADER / MOBILE MENU FIX */
/* ============================= */

/* Desktop default */
.hamburger {
    display: none;
}

.nav-cta-mobile {
    display: none;
}

/* Mobile */
@media (max-width: 900px) {

    .dm-header {
        position: sticky;
        top: 0;
        z-index: 9999;
        background: #111a44;
    }

    .dm-header-inner {
        position: relative;
        display: flex;
        align-items: center;
        justify-content: space-between;
        min-height: 74px;
        padding: 0 22px;
    }

    .logo {
        font-size: 24px;
        font-weight: 800;
        color: #ffffff;
        z-index: 10001;
    }

    .logo span {
        color: #4da3ff;
    }

    /* Show hamburger on mobile */
    .hamburger {
        display: flex !important;
        flex-direction: column;
        justify-content: center;
        gap: 6px;
        width: 44px;
        height: 44px;
        background: transparent;
        border: none;
        cursor: pointer;
        z-index: 10001;
    }

    .hamburger-line {
        display: block;
        width: 28px;
        height: 3px;
        background: #ffffff;
        border-radius: 10px;
        transition: 0.3s ease;
    }

    /* Hide desktop CTA on mobile */
    .nav-cta-desktop {
        display: none !important;
    }

    /* Mobile menu closed by default */
    .nav-menu {
        position: fixed;
        top: 74px;
        right: -100%;
        width: 78%;
        max-width: 320px;
        height: calc(100vh - 74px);
        background: #07143d;
        display: flex !important;
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        padding: 28px 24px;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.28);
        transition: right 0.3s ease;
        z-index: 10000;
        overflow-y: auto;
    }

    /* Mobile menu open */
    .nav-menu.active {
        right: 0;
    }

    .nav-menu a {
        width: 100%;
        color: #dbe4ff;
        text-decoration: none;
        font-size: 17px;
        font-weight: 600;
        padding: 15px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .nav-menu a:hover {
        color: #22d3ee;
    }

    .nav-cta-mobile {
        display: block;
        width: 100%;
        margin-top: 22px;
    }

    .nav-cta-mobile a {
        border-bottom: none;
        padding: 0;
    }

    .nav-cta-mobile .top-btn {
        width: 100%;
        margin-top: 8px;
    }

    /* Hamburger animation when open */
    .hamburger.active .hamburger-line:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }

    .hamburger.active .hamburger-line:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .hamburger-line:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }
}

/* Desktop */
@media (min-width: 901px) {
    .nav-menu {
        display: flex;
        align-items: center;
    }

    .hamburger {
        display: none !important;
    }

    .nav-cta-mobile {
        display: none !important;
    }

    .nav-cta-desktop {
        display: block;
    }
}

/* ============================= */
/* HEADER MOBILE MENU FIX */
/* ============================= */

/* Desktop */
.hamburger {
    display: none;
}

.nav-cta-mobile {
    display: none;
}

/* Mobile */
@media (max-width: 900px) {

    .dm-header {
        position: sticky;
        top: 0;
        z-index: 9999;
        background: #111a44;
    }

    .dm-header-inner {
        position: relative;
        min-height: 74px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0 22px;
    }

    .logo {
        font-size: 24px;
        font-weight: 800;
        color: #ffffff;
        z-index: 10001;
    }

    .logo span {
        color: #4da3ff;
    }

    .hamburger {
        display: flex !important;
        flex-direction: column;
        justify-content: center;
        gap: 6px;
        width: 44px;
        height: 44px;
        background: transparent;
        border: none;
        cursor: pointer;
        z-index: 10001;
    }

    .hamburger-line {
        display: block;
        width: 28px;
        height: 3px;
        background: #ffffff;
        border-radius: 20px;
        transition: 0.3s ease;
    }

    .nav-cta-desktop {
        display: none !important;
    }

    .nav-menu {
        position: fixed;
        top: 74px;
        right: -100%;
        width: 78%;
        max-width: 330px;
        height: calc(100vh - 74px);
        background: #07143d;
        display: flex !important;
        flex-direction: column;
        align-items: flex-start;
        padding: 28px 24px;
        gap: 0;
        z-index: 10000;
        box-shadow: -12px 0 30px rgba(0, 0, 0, 0.35);
        transition: right 0.3s ease;
        overflow-y: auto;
    }

    .nav-menu.open {
        right: 0;
    }

    .nav-menu a {
        width: 100%;
        padding: 15px 0;
        color: #dbe4ff;
        text-decoration: none;
        font-size: 17px;
        font-weight: 600;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .nav-menu a:hover,
    .nav-menu a.active-link {
        color: #22d3ee;
    }

    .nav-cta-mobile {
        display: block;
        width: 100%;
        margin-top: 22px;
    }

    .nav-cta-mobile a {
        border-bottom: none;
        padding: 0;
    }

    .nav-cta-mobile .top-btn {
        width: 100%;
        margin-top: 8px;
    }

    .hamburger.active .hamburger-line:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }

    .hamburger.active .hamburger-line:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .hamburger-line:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }
}

/* Desktop */
@media (min-width: 901px) {
    .nav-menu {
        display: flex !important;
        align-items: center;
    }

    .hamburger {
        display: none !important;
    }

    .nav-cta-mobile {
        display: none !important;
    }

    .nav-cta-desktop {
        display: block !important;
    }
}


/* ================================================= */
/* FINAL MOBILE HEADER FIX - FORCE OVERRIDE */
/* ================================================= */

@media (max-width: 900px) {

    html,
    body {
        max-width: 100%;
        overflow-x: hidden !important;
    }

    .dm-header {
        width: 100% !important;
        background: #111a44 !important;
        position: sticky !important;
        top: 0 !important;
        z-index: 9999 !important;
        overflow: visible !important;
    }

    .dm-header-inner {
        width: 100% !important;
        min-height: 74px !important;
        padding: 0 18px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        box-sizing: border-box !important;
        position: relative !important;
    }

    .logo {
        display: block !important;
        font-size: 22px !important;
        font-weight: 800 !important;
        color: #ffffff !important;
        white-space: nowrap !important;
        margin: 0 !important;
        padding: 0 !important;
        max-width: calc(100% - 70px) !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    .logo span {
        color: #4da3ff !important;
    }

    .hamburger {
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 6px !important;
        width: 44px !important;
        height: 44px !important;
        background: transparent !important;
        border: none !important;
        cursor: pointer !important;
        z-index: 10001 !important;
        margin: 0 !important;
        padding: 0 !important;
        flex-shrink: 0 !important;
    }

    .hamburger-line {
        display: block !important;
        width: 28px !important;
        height: 3px !important;
        background: #ffffff !important;
        border-radius: 20px !important;
        transition: 0.3s ease !important;
    }

    .nav-cta-desktop {
        display: none !important;
    }

    .nav-cta-mobile {
        display: block !important;
        width: 100% !important;
        margin-top: 20px !important;
    }

    /* IMPORTANT: mobile menu is completely hidden when closed */
    .nav-menu {
        display: none !important;
    }

    /* IMPORTANT: mobile menu only appears when JS adds .open */
    .nav-menu.open {
        display: flex !important;
        position: fixed !important;
        top: 74px !important;
        right: 0 !important;
        left: auto !important;
        width: 78vw !important;
        max-width: 300px !important;
        height: calc(100vh - 74px) !important;
        background: #07143d !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 0 !important;
        padding: 28px 24px !important;
        box-sizing: border-box !important;
        z-index: 10000 !important;
        box-shadow: -12px 0 30px rgba(0, 0, 0, 0.35) !important;
        overflow-y: auto !important;
    }

    .nav-menu.open a {
        width: 100% !important;
        display: block !important;
        color: #dbe4ff !important;
        text-decoration: none !important;
        font-size: 17px !important;
        font-weight: 700 !important;
        padding: 15px 0 !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
        box-sizing: border-box !important;
    }

    .nav-menu.open a:hover,
    .nav-menu.open a.active-link {
        color: #22d3ee !important;
    }

    .nav-menu.open .top-btn {
        width: 100% !important;
        margin-top: 10px !important;
    }

    .hamburger.active .hamburger-line:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px) !important;
    }

    .hamburger.active .hamburger-line:nth-child(2) {
        opacity: 0 !important;
    }

    .hamburger.active .hamburger-line:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px) !important;
    }
}

/* Desktop reset */
@media (min-width: 901px) {
    .hamburger {
        display: none !important;
    }

    .nav-menu {
        display: flex !important;
    }

    .nav-cta-mobile {
        display: none !important;
    }

    .nav-cta-desktop {
        display: block !important;
    }
}


/* ============================= */

/* ============================= */


/* Brand */


/* Dividers */


/* Creator */


/* Sections */


/* Social Logos */


/* Bottom Bar */


/* Hide old copyright block if it still exists */


/* Tablet */


/* Mobile */



/* Remove underline from hero buttons */
.hero-buttons a,
.hero-buttons a:link,
.hero-buttons a:visited,
.hero-buttons a:hover,
.hero-buttons a:focus,
.hero-buttons a:active,
.hero-buttons .primary-btn,
.hero-buttons .secondary-btn {
    text-decoration: none !important;
    border-bottom: none !important;
}


.task-create-card {
    max-width: 850px;
    margin: 40px auto;
}

.task-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 24px;
}

.task-form label {
    font-weight: 800;
    color: #101636;
}

.task-form input,
.task-form select,
.task-form textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #d8ddf2;
    border-radius: 14px;
    font-size: 15px;
    font-family: inherit;
    background: #ffffff;
    color: #101636;
}

.task-form textarea {
    resize: vertical;
}

.task-form input:focus,
.task-form select:focus,
.task-form textarea:focus {
    outline: none;
    border-color: #6d63ff;
    box-shadow: 0 0 0 4px rgba(109, 99, 255, 0.12);
}


.task-empty-box {
    background: #f7f8ff;
    border: 1px solid #e2e6fb;
    border-radius: 18px;
    padding: 24px;
    margin-top: 24px;
}

.student-task-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 16px;
}

.student-task-item {
    background: #f7f8ff;
    border: 1px solid #e2e6fb;
    border-radius: 16px;
    padding: 18px;
}

.student-task-item h3 {
    margin: 0 0 10px;
    color: #101636;
}

.student-task-item p {
    margin: 0 0 10px;
}

.task-detail-card {
    max-width: 900px;
    margin: 40px auto;
}

.task-meta,
.task-info-box {
    background: #f7f8ff;
    border: 1px solid #e2e6fb;
    border-radius: 18px;
    padding: 20px;
    margin: 20px 0;
}

.task-info-box h2 {
    margin-top: 0;
    color: #101636;
}

.task-form-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 22px;
}


/* ============================= */
/* Student Task Page */
/* ============================= */

.task-page-wrapper {
    max-width: 1180px;
    margin: 0 auto;
    padding: 70px 7% 80px;
}

.task-hero-card {
    background: linear-gradient(135deg, #eef2ff, #dffbff);
    border-radius: 28px;
    padding: 42px;
    margin-bottom: 34px;
    box-shadow: 0 18px 45px rgba(20, 30, 80, 0.08);
}

.task-hero-card h1 {
    margin: 0 0 14px;
    color: #090f35;
    font-size: 42px;
    line-height: 1.15;
}

.task-hero-card p {
    margin: 0;
    color: #344064;
    font-size: 18px;
    line-height: 1.6;
}

.task-label {
    color: #6d63ff !important;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.4px;
    font-size: 13px !important;
    margin-bottom: 14px !important;
}

.task-page-grid {
    display: grid;
    grid-template-columns: 1.5fr 0.8fr;
    gap: 28px;
    align-items: start;
}

.task-page-card {
    background: #ffffff;
    border-radius: 24px;
    padding: 32px;
    box-shadow: 0 18px 45px rgba(20, 30, 80, 0.08);
    border: 1px solid #e4e8f8;
}

.task-page-card h2 {
    margin: 0 0 18px;
    color: #090f35;
    font-size: 24px;
}

.task-content-box {
    background: #f7f8ff;
    border: 1px solid #e2e6fb;
    border-radius: 18px;
    padding: 22px;
    color: #2f395f;
    font-size: 17px;
    line-height: 1.7;
    margin-bottom: 30px;
}

.success-box {
    border-left: 5px solid #22d3ee;
}

.task-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 26px;
}

.task-side-card {
    position: sticky;
    top: 110px;
}

.task-detail-row {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 15px 0;
    border-bottom: 1px solid #e8ecfb;
}

.task-detail-row span {
    color: #596582;
}

.task-detail-row strong {
    color: #101636;
    text-align: right;
}

@media (max-width: 850px) {
    .task-page-wrapper {
        padding: 45px 6% 60px;
    }

    .task-page-grid {
        grid-template-columns: 1fr;
    }

    .task-hero-card h1 {
        font-size: 32px;
    }

    .task-side-card {
        position: static;
    }
}

/* ===============================
   Privacy & Security Page
================================ */

.privacy-security-page {
    padding: 60px 24px;
    background: #f6f8ff;
}

.privacy-hero {
    max-width: 1150px;
    margin: 0 auto 35px auto;
    padding: 70px 40px;
    border-radius: 30px;
    background: linear-gradient(135deg, #e8f7ff, #eef0ff, #f4edff);
    box-shadow: 0 18px 45px rgba(20, 30, 80, 0.08);
    text-align: center;
}

.privacy-hero h1 {
    font-size: 52px;
    line-height: 1.1;
    margin-bottom: 18px;
    color: #11194d;
}

.privacy-hero p {
    max-width: 760px;
    margin: 0 auto;
    font-size: 18px;
    line-height: 1.6;
    color: #314064;
}

.privacy-content {
    max-width: 1150px;
    margin: 0 auto;
    display: grid;
    gap: 24px;
}

.privacy-card {
    background: #ffffff;
    border-radius: 24px;
    padding: 34px;
    box-shadow: 0 14px 35px rgba(20, 30, 80, 0.08);
    border: 1px solid rgba(120, 130, 255, 0.14);
}

.privacy-card h2 {
    font-size: 28px;
    margin-bottom: 14px;
    color: #11194d;
}

.privacy-card p {
    font-size: 16px;
    line-height: 1.75;
    color: #3d4b68;
    margin-bottom: 12px;
}

.security-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.security-list li {
    position: relative;
    padding: 14px 16px 14px 46px;
    margin-bottom: 12px;
    background: #f7f8ff;
    border-radius: 16px;
    color: #2e3b5c;
    line-height: 1.5;
    border: 1px solid rgba(92, 92, 255, 0.08);
}

.security-list li::before {
    content: "✓";
    position: absolute;
    left: 18px;
    top: 13px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #eef0ff;
    color: #5d5cff;
    font-weight: 800;
    text-align: center;
    line-height: 20px;
}

.privacy-highlight {
    background: linear-gradient(135deg, #11194d, #202b70);
    color: #ffffff;
}

.privacy-highlight h2,
.privacy-highlight p {
    color: #ffffff;
}

.privacy-highlight strong {
    color: #7ee7ff;
}

/* Mobile */
@media (max-width: 768px) {
    .privacy-security-page {
        padding: 35px 16px;
    }

    .privacy-hero {
        padding: 45px 24px;
        border-radius: 24px;
    }

    .privacy-hero h1 {
        font-size: 36px;
    }

    .privacy-hero p {
        font-size: 16px;
    }

    .privacy-card {
        padding: 24px;
    }

    .privacy-card h2 {
        font-size: 24px;
    }
}

/* ===============================
   Intro Lesson / Storyboard Page
================================ */

.intro-lesson-page {
    padding: 60px 24px;
    background: #f6f8ff;
}

.intro-hero {
    max-width: 1200px;
    margin: 0 auto 36px auto;
    padding: 56px;
    border-radius: 32px;
    background: linear-gradient(135deg, #eaf7ff, #eef0ff, #f4edff);
    display: grid;
    grid-template-columns: 1.5fr 0.8fr;
    gap: 32px;
    align-items: center;
    box-shadow: 0 18px 45px rgba(20, 30, 80, 0.08);
}

.intro-label {
    display: inline-block;
    margin-bottom: 12px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(108, 99, 255, 0.12);
    color: #5d5cff;
    font-weight: 800;
    font-size: 14px;
}

.intro-hero h1 {
    font-size: 56px;
    line-height: 1.05;
    color: #11194d;
    margin-bottom: 18px;
}

.intro-hero p,
.lesson-explainer p,
.section-heading p,
.student-task-box p,
.story-content p {
    color: #34415f;
    line-height: 1.7;
    font-size: 16px;
}

.intro-buttons {
    margin-top: 26px;
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.intro-buttons.center {
    justify-content: center;
}

.intro-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 24px;
    border-radius: 16px;
    text-decoration: none;
    font-weight: 800;
}

.intro-btn.primary {
    background: linear-gradient(135deg, #6c63ff, #22c1dc);
    color: #ffffff;
    box-shadow: 0 12px 26px rgba(108, 99, 255, 0.22);
}

.intro-btn.secondary {
    background: #ffffff;
    color: #11194d;
    border: 2px solid #dbe0ff;
}

.intro-hero-card {
    background: #ffffff;
    border-radius: 28px;
    padding: 34px;
    text-align: center;
    box-shadow: 0 16px 35px rgba(20, 30, 80, 0.08);
}

.character-circle {
    width: 140px;
    height: 140px;
    margin: 0 auto 20px auto;
    border-radius: 50%;
    background: linear-gradient(135deg, #eef0ff, #dff9ff);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 70px;
}

.intro-hero-card h2 {
    color: #11194d;
    font-size: 28px;
    margin-bottom: 10px;
}

.lesson-explainer,
.student-task-box {
    max-width: 1200px;
    margin: 0 auto 36px auto;
    background: #ffffff;
    border-radius: 26px;
    padding: 34px;
    box-shadow: 0 14px 35px rgba(20, 30, 80, 0.08);
}

.lesson-explainer h2,
.student-task-box h2,
.section-heading h2 {
    color: #11194d;
    font-size: 32px;
    margin-bottom: 12px;
}

.storyboard-section {
    max-width: 1200px;
    margin: 0 auto 36px auto;
}

.section-heading {
    text-align: center;
    margin-bottom: 28px;
}

.storyboard-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.story-card {
    background: #ffffff;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 14px 35px rgba(20, 30, 80, 0.08);
    border: 1px solid rgba(120, 130, 255, 0.12);
}

.story-image {
    min-height: 170px;
    background: linear-gradient(135deg, #eef0ff, #dff9ff);
    display: flex;
    align-items: center;
    justify-content: center;
}

.story-image span {
    font-size: 72px;
}

.story-content {
    padding: 24px;
}

.scene-number {
    color: #5d5cff !important;
    font-weight: 800;
    margin-bottom: 8px;
}

.story-content h3 {
    color: #11194d;
    font-size: 22px;
    margin-bottom: 12px;
}

.task-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-top: 24px;
}

.task-options div {
    background: #f7f8ff;
    border-radius: 18px;
    padding: 22px;
    border: 1px solid rgba(120, 130, 255, 0.14);
}

.task-options h3 {
    color: #11194d;
    margin-bottom: 8px;
}

/* Mobile */
@media (max-width: 900px) {
    .intro-hero {
        grid-template-columns: 1fr;
        padding: 36px 24px;
    }

    .intro-hero h1 {
        font-size: 40px;
    }

    .storyboard-grid,
    .task-options {
        grid-template-columns: 1fr;
    }
}

/* ===============================
   Storyboard Poster Section
================================ */

.poster-section {
    max-width: 1200px;
    margin: 0 auto 36px auto;
}

.poster-card {
    background: #ffffff;
    border-radius: 28px;
    padding: 34px;
    box-shadow: 0 14px 35px rgba(20, 30, 80, 0.08);
    text-align: center;
}

.poster-card h2 {
    color: #11194d;
    font-size: 34px;
    margin-bottom: 12px;
}

.poster-card p {
    color: #34415f;
    line-height: 1.7;
    font-size: 16px;
    max-width: 760px;
    margin: 0 auto 24px auto;
}

.storyboard-poster {
    width: 100%;
    max-width: 900px;
    height: auto;
    border-radius: 24px;
    box-shadow: 0 18px 45px rgba(20, 30, 80, 0.16);
    border: 1px solid rgba(120, 130, 255, 0.18);
}

@media (max-width: 768px) {
    .poster-card {
        padding: 22px;
    }

    .poster-card h2 {
        font-size: 28px;
    }

    .storyboard-poster {
        border-radius: 18px;
    }
}


/* Large screens */


/* Tablet */


/* Mobile */


/* Medium screens */


/* Tablet */


/* Mobile */


/* Medium screens */


/* Tablet */


/* Mobile */


/* =========================================================
   RESPONSIVE HEADER AND NAVIGATION
========================================================= */

header,
.main-header,
.navbar {
    width: 100%;
    max-width: 100%;
}

.navbar,
.nav-container,
.header-inner {
    box-sizing: border-box;
}

/* Tablet navigation */
@media (max-width: 1050px) {
    .nav-container,
    .header-inner {
        width: 100%;
        max-width: 100%;
        padding-left: 20px;
        padding-right: 20px;
    }

    .nav-links {
        gap: 18px;
    }

    .nav-links a {
        font-size: 0.9rem;
        white-space: nowrap;
    }
}

/* Small screens */
@media (max-width: 760px) {
    .nav-container,
    .header-inner {
        flex-wrap: wrap;
        gap: 12px;
        padding: 14px 18px;
    }

    .nav-links {
        width: 100%;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px 18px;
    }

    .nav-links a {
        display: block;
        padding: 8px 4px;
    }

    .dashboard-button,
    .dashboard-btn {
        margin-left: 0;
    }
}



.nav-cta-desktop .top-btn,
.nav-cta-desktop .top-btn.active-link,
.nav-cta-mobile .top-btn,
.nav-cta-mobile .top-btn.active-link {
    color: #ffffff !important;
    border-bottom: none !important;
    text-decoration: none !important;
}

.nav-cta-desktop .top-btn,
.nav-cta-desktop .top-btn.active-link {
    padding: 10px 24px !important;
}

.nav-cta-mobile .top-btn,
.nav-cta-mobile .top-btn.active-link {
    padding: 14px !important;
}


.nav-cta-desktop a,
.nav-cta-desktop a.active-link,
.nav-cta-mobile a,
.nav-cta-mobile a.active-link {
    border-bottom: none !important;
    text-decoration: none !important;
}