
/* =====================================
   TECHSPHE EDUCATION CENTRE
===================================== */

.edu-hero {
    padding: 105px 8%;
    text-align: center;
    background:
        radial-gradient(circle at 80% 25%, rgba(22,119,232,.18), transparent 35%),
        linear-gradient(135deg, #071321, #0D1E30);
}

.edu-hero-content {
    max-width: 850px;
    margin: auto;
}

.edu-eyebrow {
    display: inline-block;
    color: var(--teal);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 17px;
}

.edu-hero h1 {
    color: var(--text);
    font-size: clamp(38px, 6vw, 65px);
    line-height: 1.12;
    margin-bottom: 22px;
}

.edu-hero h1 span {
    display: block;
    color: var(--teal);
}

.edu-hero p {
    max-width: 700px;
    margin: 0 auto 30px;
    color: var(--muted);
    line-height: 1.8;
}

.edu-primary-button {
    display: inline-block;
    padding: 14px 25px;
    border-radius: 7px;
    background: var(--primary);
    color: white;
    text-decoration: none;
    font-weight: 700;
    transition: .25s ease;
}

.edu-primary-button:hover {
    background: #0c63c7;
    transform: translateY(-2px);
}


/* INTRODUCTION */

.edu-intro {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 35px;
    padding: 70px 8%;
}

.edu-intro > div:first-child {
    max-width: 680px;
}

.edu-intro h2,
.edu-section-heading h2 {
    color: var(--text);
    font-size: clamp(28px, 4vw, 40px);
    margin-bottom: 15px;
}

.edu-intro p,
.edu-section-heading p {
    color: var(--muted);
    line-height: 1.8;
}

.edu-intro-stat {
    min-width: 175px;
    padding: 25px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    text-align: center;
}

.edu-intro-stat span {
    color: var(--teal);
    font-size: 48px;
    font-weight: 800;
}

.edu-intro-stat p {
    font-size: 13px;
}


/* SECTION HEADINGS */

.edu-section-heading {
    max-width: 700px;
    margin: 0 auto 40px;
    text-align: center;
}


/* LEARNING LIBRARY */

.learning-library {
    padding: 75px 8%;
    background: rgba(13,30,48,.45);
}

.edu-search-wrap {
    display: flex;
    gap: 15px;
    max-width: 850px;
    margin: 0 auto 15px;
}

.edu-search-wrap input,
.edu-search-wrap select {
    min-width: 0;
    padding: 14px;
    background: var(--surface);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 7px;
    font-size: 14px;
    outline: none;
}

.edu-search-wrap input {
    flex: 1;
}

.edu-search-wrap select {
    width: 230px;
}

.edu-search-wrap input:focus,
.edu-search-wrap select:focus {
    border-color: var(--teal);
}

.edu-search-wrap input::placeholder {
    color: var(--muted);
}

.edu-results {
    max-width: 850px;
    margin: 0 auto 25px;
    color: var(--muted);
    font-size: 13px;
}


/* LESSON CARDS */

.lesson-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.lesson-card {
    padding: 25px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 11px;
    transition: .25s ease;
}

.lesson-card:hover {
    border-color: rgba(32,214,194,.5);
    transform: translateY(-4px);
}

.lesson-icon {
    font-size: 32px;
    margin-bottom: 17px;
}

.lesson-number {
    display: block;
    color: var(--teal);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.5px;
    margin-bottom: 12px;
}

.lesson-card h3 {
    color: var(--text);
    font-size: 20px;
    margin-bottom: 12px;
}

.lesson-card p {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 18px;
}

.lesson-card ul {
    padding-left: 18px;
    margin-bottom: 22px;
}

.lesson-card li {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.7;
    margin-bottom: 7px;
}

.lesson-card li::marker {
    color: var(--teal);
}

.lesson-link {
    color: var(--teal);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.lesson-link:hover {
    text-decoration: underline;
}

.edu-empty {
    padding: 40px 15px;
    text-align: center;
    color: var(--muted);
}

.edu-empty h3 {
    color: var(--text);
    margin-bottom: 10px;
}


/* DETAILED LESSONS */

.lesson-details {
    padding: 85px 8%;
}

.lesson-detail {
    max-width: 950px;
    margin: 0 auto 30px;
    padding: 35px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    scroll-margin-top: 100px;
}

.detail-heading {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 28px;
}

.detail-heading > span {
    color: var(--teal);
    font-size: 32px;
    font-weight: 800;
}

.detail-heading h3 {
    color: var(--text);
    font-size: 24px;
    margin-bottom: 5px;
}

.detail-heading p {
    color: var(--muted);
    font-size: 13px;
}

.lesson-detail > p {
    color: var(--muted);
    line-height: 1.8;
    font-size: 14px;
    margin-bottom: 20px;
}

.lesson-detail h4 {
    color: var(--teal);
    margin: 25px 0 12px;
    font-size: 16px;
}

.lesson-detail ul,
.lesson-detail ol {
    padding-left: 23px;
    margin-bottom: 20px;
}

.lesson-detail li {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 9px;
}

.lesson-detail li::marker {
    color: var(--teal);
}

.lesson-detail strong {
    color: var(--text);
}

.lesson-tip {
    padding: 18px;
    margin: 25px 0;
    background: rgba(32,214,194,.07);
    border-left: 3px solid var(--teal);
    border-radius: 5px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.7;
}

.lesson-tip strong {
    color: var(--teal);
}

.url-example {
    padding: 17px;
    margin: 15px 0;
    background: #06101D;
    border: 1px solid var(--border);
    border-radius: 7px;
    color: var(--teal);
    overflow-wrap: anywhere;
    font-family: monospace;
}

.url-example span {
    color: var(--muted);
}

.fake-message {
    padding: 22px;
    margin: 20px 0;
    background: #06101D;
    border: 1px solid rgba(255,170,60,.3);
    border-radius: 8px;
}

.fake-message p {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.8;
    margin: 12px 0;
}

.fake-message strong {
    color: var(--text);
}

.message-label {
    display: inline-block;
    color: #ffb454;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1px;
}


/* CHECKLIST */

.edu-checklist-section {
    padding: 80px 8%;
    background: var(--surface);
}

.edu-checklist {
    max-width: 800px;
    margin: auto;
    padding: 30px;
    background: #091727;
    border: 1px solid var(--border);
    border-radius: 12px;
}

.edu-checklist label {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 15px 0;
    border-bottom: 1px solid var(--border);
    color: var(--text);
    font-size: 14px;
    line-height: 1.6;
    cursor: pointer;
}

.edu-checklist input {
    width: 17px;
    height: 17px;
    flex-shrink: 0;
    accent-color: var(--teal);
    margin-top: 2px;
}

.checklist-progress {
    margin-top: 25px;
}

.checklist-progress-track,
.quiz-progress-track {
    height: 8px;
    background: var(--surface-light);
    border-radius: 20px;
    overflow: hidden;
}

#checklistProgress,
#quizProgress {
    height: 100%;
    width: 0%;
    background: var(--teal);
    border-radius: 20px;
    transition: width .25s ease;
}

.checklist-progress p {
    color: var(--muted);
    font-size: 13px;
    margin-top: 12px;
}


/* QUIZ */

.edu-quiz-section {
    padding: 85px 8%;
}

.edu-quiz {
    max-width: 750px;
    margin: auto;
    padding: 30px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
}

.quiz-top {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    color: var(--teal);
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 18px;
}

.edu-quiz .quiz-progress-track {
    margin-bottom: 30px;
}

.edu-quiz h3 {
    color: var(--text);
    font-size: 21px;
    line-height: 1.5;
    margin-bottom: 22px;
}

.quiz-options {
    display: grid;
    gap: 12px;
}

.quiz-option {
    width: 100%;
    padding: 15px;
    text-align: left;
    background: #091727;
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 7px;
    cursor: pointer;
    font-size: 14px;
    line-height: 1.5;
}

.quiz-option:hover:not(:disabled) {
    border-color: var(--teal);
}

.quiz-option:disabled {
    cursor: default;
    opacity: 1;
}

.quiz-option.correct {
    border-color: #20b99a;
    background: rgba(32,185,154,.12);
}

.quiz-option.incorrect {
    border-color: #e16c6c;
    background: rgba(225,108,108,.1);
}

#quizFeedback {
    min-height: 45px;
    margin: 20px 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.6;
}

#nextQuestion,
#restartQuiz {
    padding: 13px 22px;
    background: var(--primary);
    border: none;
    border-radius: 7px;
    color: white;
    font-weight: 700;
    cursor: pointer;
}

#nextQuestion:disabled {
    opacity: .45;
    cursor: not-allowed;
}

#quizResult {
    text-align: center;
    padding-top: 15px;
}

#quizResult p {
    color: var(--muted);
    line-height: 1.7;
    margin-bottom: 20px;
}


/* RESOURCES */

.edu-resources {
    padding: 80px 8%;
    background: rgba(13,30,48,.45);
}

.resource-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.resource-card {
    padding: 25px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
}

.resource-card > span {
    font-size: 27px;
}

.resource-card h3 {
    color: var(--text);
    font-size: 18px;
    margin: 15px 0 10px;
}

.resource-card p {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.7;
    min-height: 88px;
    margin-bottom: 20px;
}

.resource-card a {
    color: var(--teal);
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
}

.resource-card a:hover {
    text-decoration: underline;
}

.resource-disclaimer {
    max-width: 850px;
    margin: 30px auto 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.7;
    text-align: center;
}


/* FINAL CTA */

.edu-final-cta {
    padding: 80px 8%;
    text-align: center;
    background:
        radial-gradient(circle at center, rgba(22,119,232,.17), transparent 65%),
        #071321;
}

.edu-final-cta h2 {
    color: var(--text);
    font-size: clamp(27px, 4vw, 40px);
    margin-bottom: 18px;
}

.edu-final-cta p {
    color: var(--muted);
    line-height: 1.8;
    margin-bottom: 25px;
}


/* RESPONSIVE */

@media (max-width: 950px) {

    .lesson-grid,
    .resource-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

}

@media (max-width: 650px) {

    .edu-hero {
        padding: 75px 6%;
    }

    .edu-intro {
        flex-direction: column;
        align-items: stretch;
        padding: 55px 7%;
    }

    .edu-intro-stat {
        min-width: 0;
    }

    .learning-library,
    .lesson-details,
    .edu-resources {
        padding: 60px 6%;
    }

    .edu-search-wrap {
        flex-direction: column;
    }

    .edu-search-wrap select {
        width: 100%;
    }

    .lesson-grid,
    .resource-grid {
        grid-template-columns: 1fr;
    }

    .lesson-detail {
        padding: 22px;
    }

    .detail-heading {
        gap: 13px;
    }

    .detail-heading > span {
        font-size: 25px;
    }

    .detail-heading h3 {
        font-size: 20px;
    }

    .edu-checklist-section,
    .edu-quiz-section {
        padding: 60px 6%;
    }

    .edu-checklist,
    .edu-quiz {
        padding: 22px;
    }

    .resource-card p {
        min-height: 0;
    }

}
