/* ==========================================================================
   ExamLearn - Static info pages (About Us, Contact Us)
   ========================================================================== */

.info-page { min-height: 60vh; }

/* ---------- Hero ---------- */
.info-hero {
    background: #ffffff;
    border: 1px solid #edf2f7;
    border-radius: var(--radius-xl);
    padding: 40px 44px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.03);
    position: relative;
    overflow: hidden;
}
.info-hero::before {
    content: '';
    position: absolute;
    top: -120px; right: -120px;
    width: 320px; height: 320px;
    background: radial-gradient(circle, rgba(var(--t-500-rgb, 99, 102, 241), 0.12) 0%, transparent 70%);
    pointer-events: none;
}
.info-hero-compact { padding: 32px 44px; }

.info-eyebrow {
    display: inline-flex; align-items: center; gap: 6px;
    background: var(--t-50, #eef2ff);
    color: var(--primary-dark);
    font-size: 12px; font-weight: 600;
    padding: 6px 12px;
    border-radius: 999px;
    margin-bottom: 14px;
}
.info-hero-title {
    font-size: 38px;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.2;
    color: var(--text-main);
    margin-bottom: 14px;
}
.info-hero-subtitle {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-muted);
    max-width: 680px;
}

/* ---------- Buttons ---------- */
.info-btn-primary {
    background: var(--primary-gradient);
    color: #fff;
    border: none;
    font-weight: 600;
    font-size: 14px;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    box-shadow: 0 6px 16px rgba(var(--t-500-rgb, 99, 102, 241), 0.3);
    transition: transform .2s, box-shadow .2s;
}
.info-btn-primary:hover,
.info-btn-primary:focus { color: #fff; transform: translateY(-1px); box-shadow: 0 10px 22px rgba(var(--t-500-rgb, 99, 102, 241), 0.38); }
.info-btn-primary:disabled { color: #fff; opacity: .75; }

.info-btn-outline {
    background: transparent;
    color: var(--primary);
    border: 1px solid var(--primary);
    font-weight: 600;
    font-size: 14px;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
}
.info-btn-outline:hover { background: var(--primary); color: #fff; }

.info-btn-light {
    background: #fff;
    color: var(--primary-dark);
    font-weight: 700;
    font-size: 14px;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    white-space: nowrap;
}
.info-btn-light:hover { background: var(--t-50, #eef2ff); color: var(--primary-dark); }

/* ---------- Stats ---------- */
.info-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}
.info-stat {
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 18px;
}
.info-stat-icon {
    width: 40px; height: 40px;
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 18px;
    margin-bottom: 10px;
}
.info-stat-val { font-size: 22px; font-weight: 800; color: var(--text-main); line-height: 1.2; }
.info-stat-label { font-size: 12px; color: var(--text-muted); font-weight: 500; }

/* ---------- Cards ---------- */
.info-card {
    background: #ffffff;
    border: 1px solid #edf2f7;
    border-radius: var(--radius-lg);
    padding: 28px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}
.info-card-icon {
    width: 48px; height: 48px;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 22px;
    margin-bottom: 16px;
}
.info-card-title { font-size: 20px; font-weight: 700; color: var(--text-main); margin-bottom: 10px; }
.info-card-text { font-size: 14px; line-height: 1.7; color: var(--text-muted); margin-bottom: 0; }

/* ---------- Section heads ---------- */
.info-section-head { margin-bottom: 18px; }
.info-section-title { font-size: 22px; font-weight: 800; color: var(--text-main); margin-bottom: 4px; letter-spacing: -0.01em; }
.info-section-subtitle { font-size: 14px; color: var(--text-muted); margin-bottom: 0; }

/* ---------- Feature tiles ---------- */
.info-feature {
    display: flex; align-items: flex-start; gap: 14px;
    height: 100%;
    background: #ffffff;
    border: 1px solid #edf2f7;
    border-radius: var(--radius-lg);
    padding: 20px;
    color: inherit;
    position: relative;
    transition: border-color .2s, transform .2s, box-shadow .2s;
}
.info-feature:hover {
    border-color: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(var(--t-500-rgb, 99, 102, 241), 0.1);
}
.info-feature-icon {
    flex-shrink: 0;
    width: 44px; height: 44px;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 20px;
}
.info-feature-title { font-size: 15px; font-weight: 700; color: var(--text-main); margin-bottom: 4px; padding-right: 20px; }
.info-feature-text { font-size: 13px; line-height: 1.6; color: var(--text-muted); margin-bottom: 0; }
.info-feature-arrow {
    position: absolute; top: 20px; right: 18px;
    color: #94a3b8;
    transition: color .2s, transform .2s;
}
.info-feature:hover .info-feature-arrow { color: var(--primary); transform: translateX(3px); }

/* ---------- Values ---------- */
.info-value > i {
    font-size: 26px;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.info-value-title { font-size: 15px; font-weight: 700; color: var(--text-main); margin: 10px 0 6px; }
.info-value-text { font-size: 13px; line-height: 1.6; color: var(--text-muted); margin-bottom: 0; }

/* ---------- CTA ---------- */
.info-cta {
    display: flex; align-items: center; justify-content: space-between; gap: 20px;
    background: var(--primary-gradient);
    border-radius: var(--radius-xl);
    padding: 32px 40px;
    color: #fff;
    box-shadow: 0 12px 32px rgba(var(--t-500-rgb, 99, 102, 241), 0.3);
}
.info-cta-title { font-size: 22px; font-weight: 800; margin-bottom: 4px; }
.info-cta-text { font-size: 14px; opacity: .9; margin-bottom: 0; }

/* ---------- Contact form ---------- */
.info-form .form-label { font-size: 13px; font-weight: 600; color: var(--text-main); margin-bottom: 6px; }
.info-form .form-control,
.info-form .form-select {
    font-size: 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    min-height: 44px;
}
.info-form .form-control:focus,
.info-form .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(var(--t-500-rgb, 99, 102, 241), 0.15);
}
.info-form .form-control.is-invalid,
.info-form .form-select.is-invalid { border-color: #dc3545; }

.info-input-wrap { position: relative; }
.info-input-wrap > i {
    position: absolute; top: 50%; left: 14px;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 15px;
    pointer-events: none;
    z-index: 2;
}
.info-input-wrap .form-control,
.info-input-wrap .form-select { padding-left: 40px; }

.info-counter { font-size: 12px; color: var(--text-muted); margin-top: 4px; }

/* Honeypot - visually hidden, not display:none so naive bots still see it */
.info-hp {
    position: absolute !important;
    left: -10000px; top: auto;
    width: 1px; height: 1px;
    overflow: hidden;
}

/* ---------- Contact info list ---------- */
.info-contact-list { list-style: none; padding: 0; margin: 0; }
.info-contact-list li {
    display: flex; align-items: center; gap: 14px;
    padding: 12px 0;
    border-bottom: 1px dashed var(--border);
}
.info-contact-list li:last-child { border-bottom: none; padding-bottom: 0; }
.info-contact-list li:first-child { padding-top: 0; }
.info-contact-icon {
    flex-shrink: 0;
    width: 42px; height: 42px;
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 17px;
}
.info-contact-label { display: block; font-size: 12px; color: var(--text-muted); font-weight: 500; }
.info-contact-val { display: block; font-size: 14px; font-weight: 600; color: var(--text-main); word-break: break-word; }
a.info-contact-val:hover { color: var(--primary); }

.info-social { display: flex; flex-wrap: wrap; gap: 10px; }
.info-social a {
    width: 40px; height: 40px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: var(--bg-light);
    border: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 16px;
    transition: all .2s;
}
.info-social a:hover { background: var(--primary); border-color: var(--primary); color: #fff; }

/* ---------- FAQ accordion ---------- */
.info-accordion .accordion-item {
    border: 1px solid var(--border);
    border-radius: var(--radius-sm) !important;
    margin-bottom: 10px;
    overflow: hidden;
}
.info-accordion .accordion-button {
    font-size: 14px; font-weight: 600;
    color: var(--text-main);
    padding: 16px 18px;
}
.info-accordion .accordion-button:not(.collapsed) {
    background: var(--t-50, #eef2ff);
    color: var(--primary-dark);
    box-shadow: none;
}
.info-accordion .accordion-button:focus { box-shadow: 0 0 0 3px rgba(var(--t-500-rgb, 99, 102, 241), 0.15); }
.info-accordion .accordion-body { font-size: 14px; line-height: 1.7; color: var(--text-muted); }

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
    .info-hero, .info-hero-compact { padding: 28px 24px; }
    .info-hero-title { font-size: 30px; }
    .info-cta { flex-direction: column; align-items: flex-start; padding: 28px 24px; }
}
@media (max-width: 575px) {
    .info-hero-title { font-size: 26px; }
    .info-card { padding: 22px 18px; }
    .info-stat { padding: 14px; }
    .info-stat-val { font-size: 18px; }
}

/* ==========================================================================
   Dark mode
   ========================================================================== */
[data-bs-theme="dark"] .info-hero,
html.dark-theme .info-hero,
[data-bs-theme="dark"] .info-card,
html.dark-theme .info-card,
[data-bs-theme="dark"] .info-feature,
html.dark-theme .info-feature {
    background: #161b22;
    border-color: #30363d;
    box-shadow: none;
}
[data-bs-theme="dark"] .info-stat,
html.dark-theme .info-stat,
[data-bs-theme="dark"] .info-social a,
html.dark-theme .info-social a {
    background: #1c2128;
    border-color: #30363d;
}
[data-bs-theme="dark"] .info-social a:hover,
html.dark-theme .info-social a:hover { background: var(--primary); border-color: var(--primary); color: #fff; }

[data-bs-theme="dark"] .info-eyebrow,
html.dark-theme .info-eyebrow {
    background: rgba(var(--t-500-rgb, 99, 102, 241), 0.15);
    color: var(--t-300, #a5b4fc);
}
[data-bs-theme="dark"] .bg-soft-blue,   html.dark-theme .bg-soft-blue   { background: rgba(59, 130, 246, 0.15); color: #60a5fa; }
[data-bs-theme="dark"] .bg-soft-purple, html.dark-theme .bg-soft-purple { background: rgba(139, 92, 246, 0.15); color: #a78bfa; }
[data-bs-theme="dark"] .bg-soft-orange, html.dark-theme .bg-soft-orange { background: rgba(249, 115, 22, 0.15); color: #fb923c; }
[data-bs-theme="dark"] .bg-soft-green,  html.dark-theme .bg-soft-green  { background: rgba(34, 197, 94, 0.15);  color: #4ade80; }

[data-bs-theme="dark"] .info-form .form-control,
html.dark-theme .info-form .form-control,
[data-bs-theme="dark"] .info-form .form-select,
html.dark-theme .info-form .form-select {
    background-color: #0d1117;
    border-color: #30363d;
    color: #f0f6fc;
}
[data-bs-theme="dark"] .info-form .form-control::placeholder,
html.dark-theme .info-form .form-control::placeholder { color: #6e7681; }

[data-bs-theme="dark"] .info-accordion .accordion-item,
html.dark-theme .info-accordion .accordion-item { background: #161b22; border-color: #30363d; }
[data-bs-theme="dark"] .info-accordion .accordion-button,
html.dark-theme .info-accordion .accordion-button { background: #161b22; color: #f0f6fc; }
[data-bs-theme="dark"] .info-accordion .accordion-button:not(.collapsed),
html.dark-theme .info-accordion .accordion-button:not(.collapsed) { background: rgba(var(--t-500-rgb, 99, 102, 241), 0.15); color: var(--t-300, #a5b4fc); }

[data-bs-theme="dark"] .info-btn-light,
html.dark-theme .info-btn-light { background: #fff; color: var(--primary-dark); }

/* ---------- Admin-managed content helpers ---------- */
.info-prewrap { white-space: pre-line; }
.info-map { padding: 0; overflow: hidden; }
.info-map iframe { display: block; width: 100%; height: 360px; border: 0; }

/* ---------- Legal pages (Terms of Service, Privacy Policy) ---------- */
.legal-updated { font-size: 13px; font-weight: 500; color: var(--text-muted); }
.legal-body { padding: 32px 36px; }
.legal-section { scroll-margin-top: 90px; }
.legal-section + .legal-section { margin-top: 28px; }
.legal-section h2 { font-size: 19px; font-weight: 700; color: var(--text-main); margin-bottom: 10px; }
.legal-section p,
.legal-section li { font-size: 15px; line-height: 1.75; color: var(--text-muted); }
.legal-section p { margin-bottom: 12px; }
.legal-section ul { padding-left: 22px; margin-bottom: 12px; }
.legal-section li { margin-bottom: 4px; }
.legal-section strong { color: var(--text-main); font-weight: 600; }
.legal-toc { position: sticky; top: 90px; padding: 22px; }
.legal-toc-title { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--text-muted); margin-bottom: 10px; }
.legal-toc ol { padding-left: 20px; margin: 0; }
.legal-toc li { font-size: 13px; line-height: 1.5; padding: 3px 0; color: var(--text-muted); }
.legal-toc a { color: var(--text-main); text-decoration: none; }
.legal-toc a:hover { color: var(--primary); }
.legal-contact {
    display: flex; gap: 16px; align-items: flex-start;
    margin-top: 32px; padding: 20px 22px;
    background: var(--t-50, #eef2ff); border-radius: var(--radius-lg);
}
.legal-contact > i { font-size: 26px; color: var(--primary); line-height: 1; }
.legal-contact h2 { font-size: 16px; font-weight: 700; color: var(--text-main); margin-bottom: 4px; }
.legal-contact p { font-size: 14px; color: var(--text-muted); }
.legal-related { margin-top: 18px; font-size: 13px; color: var(--text-muted); }
@media (max-width: 991px) {
    .legal-toc { position: static; }
    .legal-body { padding: 24px 20px; }
}
[data-bs-theme="dark"] .legal-contact,
html.dark-theme .legal-contact { background: rgba(var(--t-500-rgb, 99, 102, 241), 0.12); }
