/* Public marketing site (Home, Announcements, About Us, Contact Us, User
   Manual, FAQ) -- distinct from style.css (the web chat widget) and the
   admin panel's own inline theme, but sharing the same purple/teal brand
   used on the app icon and the Student Guide PDF. */

:root {
    --brand-navy: #150f2e;
    --brand-purple: #7c4dff;
    --brand-purple-dark: #5b34c9;
    --brand-teal: #1fb3a3;
    --text: #241a3d;
    --text-muted: #6b6180;
    --paper: #fffdfb;
    --surface: #ffffff;
    --surface-tint: #f2ecff;
    --border: #e0d6fb;
    --radius: 12px;
    --shadow: 0 1px 2px rgba(21, 15, 46, 0.05), 0 6px 20px rgba(21, 15, 46, 0.06);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
    font-family: -apple-system, 'Helvetica Neue', Arial, sans-serif;
    background: var(--paper);
    color: var(--text);
    line-height: 1.6;
}
a { color: var(--brand-purple-dark); }
.mm { font-family: 'Noto Sans Myanmar', -apple-system, sans-serif; }

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: var(--brand-navy);
    color: #f2eefe;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
}
.site-header-inner {
    max-width: 1080px;
    margin: 0 auto;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}
.site-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 17px;
    color: #fff;
    text-decoration: none;
}
.site-brand img { width: 30px; height: 30px; border-radius: 7px; }
.site-nav { display: flex; flex-wrap: wrap; gap: 4px; }
.site-nav a {
    color: rgba(255, 255, 255, 0.78);
    text-decoration: none;
    font-size: 13.5px;
    font-weight: 600;
    padding: 8px 12px;
    border-radius: 7px;
    transition: background 0.15s ease, color 0.15s ease;
}
.site-nav a:hover, .site-nav a.active { color: #fff; background: rgba(255, 255, 255, 0.12); }
.lang-switch { display: flex; gap: 4px; flex-shrink: 0; }
.lang-switch a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 12px;
    font-weight: 700;
    padding: 5px 9px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    transition: background 0.15s ease, color 0.15s ease;
}
.lang-switch a.active, .lang-switch a:hover { color: #fff; background: rgba(255, 255, 255, 0.14); }

main.site-main { max-width: 880px; margin: 0 auto; padding: 40px 20px 64px; }

.site-hero {
    text-align: center;
    padding: 20px 10px 44px;
}
.site-hero h1 { font-size: 28px; margin: 0 0 10px; color: var(--brand-purple-dark); }
.site-hero p { color: var(--text-muted); font-size: 15px; max-width: 620px; margin: 0 auto; }

h1.page-title { font-size: 26px; color: var(--brand-purple-dark); margin: 0 0 6px; }
p.page-subtitle { color: var(--text-muted); margin: 0 0 32px; }

.section-heading { font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--brand-teal); margin: 0 0 14px; }

.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; margin-bottom: 12px; }
.app-card, .content-card, .announcement-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 20px;
}
.app-card { display: flex; flex-direction: column; gap: 10px; }
.app-card h3 { margin: 0; font-size: 17px; }
.app-card .platform-badge {
    display: inline-block;
    align-self: flex-start;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--brand-purple-dark);
    background: var(--surface-tint);
    border-radius: 999px;
    padding: 3px 10px;
}
.app-card p { margin: 0; font-size: 13.5px; color: var(--text-muted); flex: 1; }

.btn {
    display: inline-block;
    background: var(--brand-purple);
    color: #fff;
    text-decoration: none;
    font-size: 13.5px;
    font-weight: 700;
    padding: 9px 18px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    text-align: center;
    transition: filter 0.12s ease;
}
.btn:hover { filter: brightness(1.08); color: #fff; }
.btn-outline { background: #fff; color: var(--brand-purple-dark); border: 1px solid var(--border); }

.announcement-card { margin-bottom: 16px; }
.announcement-card .date { font-size: 12px; color: var(--text-muted); font-weight: 600; margin-bottom: 6px; }
.announcement-card h3 { margin: 0 0 8px; font-size: 17px; }
.announcement-card p { margin: 0; white-space: pre-wrap; }

.lang-block { margin-bottom: 26px; }
.lang-block .body-text, .faq-answer .body-text { white-space: pre-wrap; }

.faq-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 12px;
    padding: 4px 20px;
}
.faq-item summary { cursor: pointer; font-weight: 700; padding: 14px 0; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item .faq-answer { padding: 14px 0 16px; border-top: 1px solid var(--border); }

.manual-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 28px;
    text-align: center;
    margin-bottom: 30px;
}
.manual-card .btn { margin-top: 14px; font-size: 14.5px; padding: 12px 26px; }

.form-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 26px;
}
.form-group { margin-bottom: 16px; }
.form-label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 6px; }
.form-control {
    display: block;
    width: 100%;
    padding: 9px 12px;
    font-size: 14px;
    font-family: inherit;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fff;
    color: var(--text);
}
.form-control:focus { outline: none; border-color: var(--brand-purple); box-shadow: 0 0 0 3px rgba(124, 77, 255, 0.15); }
.hp-field { position: absolute; left: -9999px; top: -9999px; }
.flash-success {
    background: rgba(31, 179, 163, 0.1);
    border: 1px solid var(--brand-teal);
    color: #0d7d71;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 20px;
    font-size: 14px;
}
.flash-error {
    background: rgba(198, 40, 40, 0.08);
    border: 1px solid #c62828;
    color: #a12222;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 20px;
    font-size: 14px;
}

.empty-state { text-align: center; color: var(--text-muted); font-style: italic; padding: 40px 20px; }

.site-footer {
    border-top: 1px solid var(--border);
    padding: 24px 20px;
    text-align: center;
    color: var(--text-muted);
    font-size: 12.5px;
}
.site-footer a { color: var(--text-muted); text-decoration: underline; }
