/*
 * ExamAtlas Duolingo Unified UI V1
 * Shared visual system for landing, training, setup, test and result pages.
 */
:root {
    --ea-duo-blue: #2563eb;
    --ea-duo-blue-dark: #1d4ed8;
    --ea-duo-cyan: #0891b2;
    --ea-duo-slate: #0f172a;
    --ea-duo-muted: #64748b;
    --ea-duo-line: #dbe5ef;
    --ea-duo-soft: #f6f9fc;
    --ea-duo-white: #ffffff;
    --ea-duo-radius-lg: 28px;
    --ea-duo-radius-md: 22px;
    --ea-duo-shadow: 0 16px 42px rgba(15, 23, 42, .08);
}

.det2-page,
.det-page {
    background: var(--ea-duo-soft);
    color: var(--ea-duo-slate);
    min-height: 100vh;
    font-family: "IBM Plex Sans Arabic", "Inter", system-ui, sans-serif;
}

.det2-container,
.det-container {
    width: min(1180px, calc(100% - 32px));
    margin-inline: auto;
}

.det2-hero {
    position: relative;
    overflow: hidden;
    width: 100vw;
    margin-inline: calc(50% - 50vw);
    background:
        radial-gradient(circle at 12% 15%, rgba(255,255,255,.16), transparent 32%),
        linear-gradient(135deg, #0f4c81 0%, #2563eb 52%, #0891b2 100%);
    color: #fff;
}

.det2-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(90deg, rgba(15,23,42,.02), rgba(15,23,42,.18));
}

.det2-hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(320px, .92fr);
    align-items: center;
    gap: 48px;
    min-height: 480px;
    padding-block: 58px;
}

.det2-kicker,
.det-eyebrow,
.det-task-label {
    display: inline-flex;
    align-items: center;
    width: max-content;
    max-width: 100%;
    border-radius: 999px;
    background: rgba(255,255,255,.14);
    border: 1px solid rgba(255,255,255,.25);
    color: inherit;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.5;
}

.det2-title,
.det-title {
    margin: 16px 0 0;
    font-size: clamp(32px, 4.1vw, 54px);
    line-height: 1.35;
    font-weight: 800;
    letter-spacing: -.025em;
}

.det2-lead,
.det-lead {
    max-width: 760px;
    margin: 18px 0 0;
    color: #eaf6ff;
    font-size: 17px;
    line-height: 2;
    font-weight: 500;
}

.det2-actions,
.det-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-top: 26px;
}

.det2-btn,
.det-button,
.det2-card-link,
.det-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    border-radius: 14px;
    padding: 12px 18px;
    border: 1px solid transparent;
    text-decoration: none;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.5;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
}

.det2-btn:hover,
.det-button:hover,
.det2-card-link:hover,
.det-link:hover {
    transform: translateY(-1px);
}

.det2-btn-primary,
.det-button-primary,
.det-button-blue,
.det2-card-link {
    background: var(--ea-duo-blue);
    color: #fff;
    box-shadow: 0 10px 22px rgba(37,99,235,.18);
}

.det2-btn-primary:hover,
.det-button-primary:hover,
.det-button-blue:hover,
.det2-card-link:hover {
    background: var(--ea-duo-blue-dark);
}

.det2-btn-dark,
.det-dark {
    background: var(--ea-duo-slate);
    color: #fff;
}

.det2-btn-light,
.det-button-light,
.det-button-ghost,
.det-link {
    background: #fff;
    color: var(--ea-duo-blue-dark);
    border-color: #bfdbfe;
}

.det2-visual {
    position: relative;
    min-height: 330px;
    overflow: hidden;
    border-radius: 30px;
    border: 1px solid rgba(255,255,255,.26);
    background: rgba(255,255,255,.10);
    box-shadow: 0 24px 58px rgba(15,23,42,.20);
}

.det2-visual img {
    width: 100%;
    height: 100%;
    min-height: 330px;
    display: block;
    object-fit: cover;
    object-position: center;
}

.det2-visual-icon {
    display: grid;
    place-items: center;
    min-height: 330px;
}

.det2-visual-icon svg {
    width: 128px;
    height: 128px;
    color: #fff;
}

.det2-section,
.det-section {
    padding-block: 72px;
}

.det2-section-white,
.det-section-white {
    background: #fff;
}

.det2-head,
.det-section-head {
    max-width: 790px;
    margin-bottom: 30px;
}

.det2-head small,
.det-section-head small {
    color: var(--ea-duo-blue);
    font-weight: 800;
    font-size: 13px;
}

.det2-head h2,
.det-section-head h2,
.det2-article h2,
.det-article-header h1,
.det-box h2,
.det-notice h2 {
    margin: 8px 0 0;
    color: var(--ea-duo-slate);
    font-weight: 800;
    line-height: 1.45;
}

.det2-head h2,
.det-section-head h2 {
    font-size: clamp(27px, 3vw, 38px);
}

.det2-head p,
.det-section-head p,
.det2-article p,
.det2-box p,
.det2-faq p,
.det-box p,
.det-notice p,
.det-article-header p {
    color: #475569;
    line-height: 1.95;
    font-weight: 500;
}

.det2-grid-2,
.det-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.det2-grid-3,
.det-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.det2-grid-4,
.det-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.det2-card,
.det2-box,
.det2-faq,
.det-box,
.det-card,
.det-notice,
.det-test-card,
.det-result-stat,
.det-status {
    border: 1px solid var(--ea-duo-line);
    border-radius: var(--ea-duo-radius-md);
    background: #fff;
    box-shadow: 0 9px 28px rgba(15,23,42,.055);
}

.det2-card {
    overflow: hidden;
    height: 100%;
}

.det2-card-media {
    min-height: 160px;
    display: grid;
    place-items: center;
    background: linear-gradient(145deg, #eff6ff, #ecfeff);
    border-bottom: 1px solid #dbeafe;
    overflow: hidden;
}

.det2-card-media img {
    width: 100%;
    height: 100%;
    max-height: 230px;
    object-fit: cover;
}

.det2-card-icon svg,
.det2-device-icon svg {
    width: 72px;
    height: 72px;
    color: var(--ea-duo-blue);
}

.det2-card-body {
    padding: 22px;
}

.det2-card-body h3,
.det2-box h3,
.det2-faq h3 {
    margin: 0;
    color: var(--ea-duo-slate);
    font-size: 20px;
    line-height: 1.55;
    font-weight: 800;
}

.det2-card-body p,
.det2-box p,
.det2-faq p {
    margin: 12px 0 0;
}

.det2-card-link {
    margin-top: 18px;
    width: 100%;
}

.det2-box,
.det2-faq,
.det-box,
.det-notice {
    padding: 22px;
}

.det2-stack,
.det-stack {
    display: grid;
    gap: 15px;
}

.det2-stats,
.det-status-grid,
.det-result-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-top: 22px;
}

.det2-stat,
.det-stat,
.det-status,
.det-result-stat {
    border: 1px solid var(--ea-duo-line);
    border-radius: 18px;
    background: rgba(255,255,255,.96);
    padding: 15px;
    text-align: center;
}

.det2-stat small,
.det-stat small,
.det-status small,
.det-result-stat small {
    display: block;
    color: var(--ea-duo-muted);
    font-size: 12px;
    font-weight: 800;
}

.det2-stat strong,
.det-stat strong,
.det-status strong,
.det-result-stat strong {
    display: block;
    margin-top: 6px;
    color: var(--ea-duo-slate);
    font-size: 17px;
    font-weight: 800;
}

.det2-content,
.det-two-column {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 28px;
    align-items: start;
}

.det2-article,
.det-article-header {
    min-width: 0;
}

.det2-article h2 {
    margin-top: 34px;
    font-size: 28px;
}

.det2-article h2:first-child {
    margin-top: 0;
}

.det2-sidebar {
    display: grid;
    gap: 16px;
    position: sticky;
    top: 96px;
}

.det2-dark,
.det-dark {
    border-radius: var(--ea-duo-radius-md);
    padding: 24px;
    background: var(--ea-duo-slate);
    color: #fff;
    box-shadow: var(--ea-duo-shadow);
}

.det2-dark h2,
.det-dark h2 {
    color: #fff;
}

.det2-dark p,
.det-dark p {
    color: #cbd5e1;
    line-height: 1.9;
}

.det2-note,
.det-panel-note,
.det-message {
    border: 1px solid #bfdbfe;
    border-radius: 18px;
    background: #eff6ff;
    color: #1e3a8a;
    padding: 15px 17px;
    line-height: 1.85;
    font-weight: 600;
}

.det-message-success { border-color: #bbf7d0; background: #f0fdf4; color: #166534; }
.det-message-error { border-color: #fecaca; background: #fff1f2; color: #9f1239; }

.det-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    padding-top: 24px;
    color: var(--ea-duo-muted);
    font-size: 14px;
}

.det-breadcrumb a { color: var(--ea-duo-blue-dark); text-decoration: none; font-weight: 700; }

.det-article-header {
    margin-top: 22px;
    padding: 34px;
    border-radius: var(--ea-duo-radius-lg);
    background: linear-gradient(135deg, #0f4c81, #2563eb 58%, #0891b2);
    color: #fff;
    box-shadow: var(--ea-duo-shadow);
}

.det-article-header h1 { color: #fff; font-size: clamp(30px, 4vw, 46px); }
.det-article-header p { color: #eaf6ff; }

.det-setup,
.det-test-wrap {
    padding-block: 38px 72px;
}

.det-setup > .det-link { margin-bottom: 16px; }

.det-test-card {
    overflow: hidden;
}

.det-test-head,
.det-result-hero {
    padding: 30px;
    background: linear-gradient(135deg, #0f4c81, #2563eb 58%, #0891b2);
    color: #fff;
}

.det-test-head-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}

.det-test-head h1,
.det-result-hero h1 {
    margin: 10px 0 0;
    color: #fff;
    font-size: clamp(26px, 3.5vw, 40px);
    font-weight: 800;
    line-height: 1.4;
}

.det-timer {
    min-width: 120px;
    border: 1px solid rgba(255,255,255,.25);
    border-radius: 18px;
    background: rgba(255,255,255,.12);
    padding: 12px 15px;
    text-align: center;
}

.det-timer small { display: block; color: #dbeafe; font-weight: 700; }
.det-timer strong { display: block; margin-top: 4px; font-size: 22px; }

.det-progress {
    height: 9px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255,255,255,.18);
    margin-top: 20px;
}

.det-progress span { display: block; height: 100%; border-radius: inherit; background: #fff; }

.det-progress-label {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 9px;
    color: #dbeafe;
    font-size: 13px;
    font-weight: 700;
}

.det-test-body { padding: 26px; }
.det-instruction { margin: 18px 0 0; font-size: 25px; line-height: 1.55; font-weight: 800; }
.det-prompt { margin: 20px 0 0; font-size: 20px; line-height: 1.85; color: #1e293b; font-weight: 700; }
.det-passage, .det-audio, .det-recorder { margin-top: 18px; border: 1px solid var(--ea-duo-line); border-radius: 18px; background: #f8fafc; padding: 18px; line-height: 1.9; }
.det-image { display: block; width: 100%; max-height: 420px; object-fit: contain; margin-top: 18px; border-radius: 18px; background: #f8fafc; }
.det-options { display: grid; gap: 11px; margin-top: 20px; }
.det-option { border: 1px solid var(--ea-duo-line); border-radius: 16px; background: #fff; padding: 14px; cursor: pointer; transition: .18s ease; }
.det-option:hover { border-color: #93c5fd; background: #eff6ff; }
.det-textarea { width: 100%; min-height: 180px; margin-top: 18px; border: 1px solid var(--ea-duo-line); border-radius: 16px; padding: 15px; font: inherit; line-height: 1.8; }
.det-hidden { display: none !important; }

.det-result-hero { border-radius: var(--ea-duo-radius-lg); text-align: center; box-shadow: var(--ea-duo-shadow); }
.det-score { margin-top: 16px; font-size: clamp(48px, 8vw, 82px); line-height: 1; font-weight: 900; }
.det-result-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.ea-duo-private-page {
    min-height: 100vh;
    background: var(--ea-duo-soft);
    padding: 32px 16px 54px;
}

.ea-duo-private-note {
    width: min(1024px, 100%);
    margin: 0 auto 18px;
    border: 1px solid #bfdbfe;
    border-radius: 18px;
    background: #eff6ff;
    color: #1e3a8a;
    padding: 15px 18px;
    line-height: 1.85;
}

@media (max-width: 980px) {
    .det2-hero-grid { grid-template-columns: 1fr; gap: 28px; min-height: auto; padding-block: 42px; }
    .det2-visual { min-height: 270px; }
    .det2-visual img { min-height: 270px; }
    .det2-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .det2-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .det2-content, .det-two-column { grid-template-columns: 1fr; }
    .det2-sidebar { position: static; }
}

@media (max-width: 680px) {
    .det2-container, .det-container { width: min(100% - 20px, 1180px); }
    .det2-section, .det-section { padding-block: 48px; }
    .det2-hero-grid { padding-block: 30px; }
    .det2-title, .det-title { font-size: 30px; }
    .det2-lead, .det-lead { font-size: 15px; }
    .det2-visual { min-height: 220px; border-radius: 22px; }
    .det2-visual img { min-height: 220px; }
    .det2-grid-4, .det2-grid-3, .det2-grid-2, .det-grid-4, .det-grid-3, .det-grid-2 { grid-template-columns: 1fr; }
    .det2-stats, .det-status-grid, .det-result-grid { grid-template-columns: 1fr 1fr; }
    .det2-card-body, .det2-box, .det2-faq, .det-box, .det-notice { padding: 17px; }
    .det2-actions, .det-actions { display: grid; grid-template-columns: 1fr; }
    .det2-btn, .det-button, .det2-card-link, .det-link { width: 100%; }
    .det-test-head-row { display: block; }
    .det-timer { margin-top: 15px; }
    .det-test-body, .det-test-head, .det-result-hero { padding: 20px 16px; }
    .det-result-grid { grid-template-columns: 1fr; }
}
