/* ===== UniSchool – Site Styles ===== */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&family=Inter:wght@400;500;600&display=swap');

html {
    font-size: 15px;
    scroll-behavior: smooth;
}
@media (min-width: 768px) {
    html { font-size: 16px; }
}

body {
    font-family: var(--font-body);
    color: var(--text);
    background: var(--bg);
    margin: 0;
    line-height: 1.7;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--neutral-900);
}

a { color: var(--brand-primary); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---------- Buttons ---------- */
.btn-brand {
    background: var(--brand-secondary);
    color: #1c1c1c;
    border: none;
    border-radius: 8px;
    padding: .7rem 1.4rem;
    font-weight: 600;
    font-family: var(--font-body);
    transition: box-shadow .2s, transform .15s;
}
.btn-brand:hover {
    box-shadow: 0 4px 14px rgba(255,185,0,.4);
    transform: translateY(-1px);
    color: #1c1c1c;
    text-decoration: none;
}

.btn-outline-brand {
    background: transparent;
    color: var(--brand-primary);
    border: 2px solid var(--brand-primary);
    border-radius: 8px;
    padding: .65rem 1.3rem;
    font-weight: 600;
    font-family: var(--font-body);
    transition: background .2s, color .2s;
}
.btn-outline-brand:hover {
    background: var(--brand-primary);
    color: #fff;
    text-decoration: none;
}

.btn-white {
    background: #fff;
    color: var(--brand-primary);
    border: 2px solid #fff;
    border-radius: 8px;
    padding: .65rem 1.3rem;
    font-weight: 600;
}
.btn-white:hover {
    background: var(--neutral-50);
    color: var(--brand-primary);
    text-decoration: none;
}

/* ---------- Badge ---------- */
.badge-brand {
    background: var(--brand-primary);
    color: #fff;
    border-radius: 6px;
    padding: .25rem .6rem;
    font-size: .8rem;
    font-weight: 600;
}
.badge-accent {
    background: var(--brand-secondary);
    color: #1c1c1c;
    border-radius: 6px;
    padding: .25rem .6rem;
    font-size: .8rem;
    font-weight: 600;
}

/* ---------- Navbar ---------- */
.navbar-unischool {
    background: #fff;
    border-bottom: 1px solid var(--border);
    transition: box-shadow .3s;
    padding: .6rem 0;
    z-index: 1030;
}
.navbar-unischool.scrolled {
    box-shadow: 0 2px 16px rgba(0,0,0,.08);
}
.navbar-unischool .navbar-brand {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.4rem;
    color: var(--brand-primary);
}
.navbar-unischool .nav-link {
    color: var(--neutral-700);
    font-weight: 500;
    font-size: .95rem;
    padding: .5rem .8rem !important;
    transition: color .2s;
}
.navbar-unischool .nav-link:hover,
.navbar-unischool .nav-link.active {
    color: var(--brand-primary);
}

/* ---------- Hero ---------- */
.hero {
    background:
        radial-gradient(80% 120% at 90% -10%, rgba(255,185,0,.18) 0%, transparent 60%),
        radial-gradient(80% 120% at -10% 110%, rgba(0,77,150,.15) 0%, transparent 60%);
}
.hero h1 {
    font-size: 2.8rem;
    font-weight: 700;
    line-height: 1.2;
}
.hero .lead {
    font-size: 1.15rem;
    color: var(--neutral-700);
}
@media (max-width: 767px) {
    .hero { padding: 3rem 0 2.5rem; }
    .hero h1 { font-size: 2rem; }
}

/* ---------- Section styles ---------- */
.section { padding: 4rem 0; }
.section-alt { background: var(--neutral-50); }
.section-blue {
    background: var(--brand-primary);
    color: #fff;
}
.section-blue h2,
.section-blue h3 { color: #fff; }

.section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: .5rem;
}
.section-subtitle {
    color: var(--muted);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

/* ---------- Cards ---------- */
.card-uni {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    background: #fff;
    padding: 2rem;
    height: 100%;
    transition: transform .2s, box-shadow .2s;
}
.card-uni:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0,0,0,.1);
}
.card-uni .card-icon {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    color: var(--brand-primary);
}
.card-uni h3,
.card-uni .card-h {
    font-size: 1.15rem;
    font-weight: 600;
}

/* ---------- Pricing cards ---------- */
.pricing-card {
    border: 2px solid var(--border);
    border-radius: var(--radius);
    padding: 2.5rem 2rem;
    text-align: center;
    height: 100%;
    transition: transform .2s, border-color .2s;
    background: #fff;
}
.pricing-card:hover {
    transform: translateY(-4px);
    border-color: var(--brand-primary);
}
.pricing-card.featured {
    border-color: var(--brand-secondary);
    box-shadow: 0 8px 30px rgba(255,185,0,.18);
    position: relative;
}
.pricing-card .price {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--brand-primary);
}
.pricing-card .price-period {
    color: var(--muted);
    font-size: .9rem;
}
.pricing-card ul {
    text-align: left;
    list-style: none;
    padding: 0;
}
.pricing-card ul li {
    padding: .4rem 0;
    border-bottom: 1px solid var(--neutral-200);
    font-size: .95rem;
}

/* ---------- Testimonials ---------- */
.testimonial-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    position: relative;
}
.testimonial-card::before {
    content: "\201C";
    font-size: 3rem;
    color: var(--brand-secondary);
    position: absolute;
    top: .5rem;
    left: 1.2rem;
    line-height: 1;
}
.testimonial-card .quote {
    font-style: italic;
    color: var(--neutral-700);
    padding-top: 1rem;
}
.testimonial-card .author {
    font-weight: 600;
    color: var(--brand-primary);
    margin-top: .8rem;
}
.testimonial-card .testimonial-source {
    display: flex;
    align-items: center;
    gap: .8rem;
    margin-top: 1rem;
}
.testimonial-card .testimonial-source img {
    object-fit: contain;
    flex-shrink: 0;
}
.testimonial-card .testimonial-source .author {
    margin-top: 0;
}
.testimonial-card .testimonial-source .school {
    color: var(--muted);
    font-size: .9rem;
}

/* ---------- FAQ ---------- */
.faq-item .accordion-button {
    font-weight: 600;
    font-family: var(--font-body);
    color: var(--neutral-900);
    background: transparent;
}
.faq-item .accordion-button:not(.collapsed) {
    color: var(--brand-primary);
    background: var(--neutral-50);
    box-shadow: none;
}
.faq-item .accordion-button:focus { box-shadow: none; }

/* ---------- Partners ---------- */
.partner-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: .3rem;
    background: var(--neutral-50);
    border-radius: 8px;
    font-weight: 600;
    color: var(--muted);
    font-size: .9rem;
}

/* ---------- Footer ---------- */
.footer-unischool {
    background: var(--neutral-900);
    color: var(--neutral-200);
    padding: 3rem 0 1.5rem;
}
.footer-unischool h5,
.footer-unischool .footer-title {
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
}
.footer-unischool a {
    color: var(--neutral-200);
    font-size: .9rem;
    transition: color .2s;
}
.footer-unischool a:hover {
    color: var(--brand-secondary);
    text-decoration: none;
}
.footer-unischool .social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,.1);
    color: #fff;
    margin-right: .4rem;
    transition: background .2s;
}
.footer-unischool .social-icon:hover {
    background: var(--brand-secondary);
    color: #1c1c1c;
    text-decoration: none;
}
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.1);
    margin-top: 2rem;
    padding-top: 1rem;
    font-size: .85rem;
    color: var(--neutral-500);
}

/* ---------- Blog ---------- */
.blog-card {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform .2s;
    background: #fff;
    height: 100%;
}
.blog-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}
.blog-card .blog-body {
    padding: 1.5rem;
}
.blog-card .blog-meta {
    font-size: .85rem;
    color: var(--muted);
}

/* ---------- Feature tabs ---------- */
.feature-tabs .nav-link {
    font-weight: 600;
    color: var(--neutral-700);
    border: none;
    padding: .7rem 1.2rem;
    border-bottom: 3px solid transparent;
}
.feature-tabs .nav-link.active {
    color: var(--brand-primary);
    border-bottom-color: var(--brand-primary);
    background: transparent;
}

/* ---------- Case study ---------- */
.case-card {
    border-left: 4px solid var(--brand-primary);
    background: var(--neutral-50);
    border-radius: 0 var(--radius) var(--radius) 0;
    padding: 2rem;
    margin-bottom: 2rem;
}
.case-card h4 {
    color: var(--brand-primary);
    font-weight: 700;
}

/* ---------- Exam library ---------- */
.exam-card {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    background: #fff;
    transition: box-shadow .2s;
}
.exam-card:hover {
    box-shadow: var(--shadow);
}

/* ---------- Admin area ---------- */
.admin-sidebar {
    background: var(--neutral-900);
    min-height: 100vh;
    padding: 1.5rem 1rem;
}
.admin-sidebar a {
    color: var(--neutral-200);
    display: block;
    padding: .5rem .8rem;
    border-radius: 6px;
    font-size: .9rem;
    margin-bottom: .2rem;
}
.admin-sidebar a:hover,
.admin-sidebar a.active {
    background: var(--brand-primary);
    color: #fff;
    text-decoration: none;
}

/* ---------- Language switcher ---------- */
.lang-switch {
    font-size: .85rem;
    font-weight: 600;
}
.lang-switch a {
    color: var(--muted);
    padding: 2px 6px;
    border-radius: 4px;
}
.lang-switch a.active-lang {
    color: var(--brand-primary);
    background: rgba(0,77,150,.08);
}

/* ---------- Misc ---------- */
.text-brand { color: var(--brand-primary) !important; }
.text-accent { color: var(--brand-secondary) !important; }
.bg-brand { background-color: var(--brand-primary) !important; }
.bg-accent { background-color: var(--brand-secondary) !important; }

.form-control:focus {
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 .2rem rgba(0,77,150,.15);
}

/* Cookie banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--neutral-900);
    color: #fff;
    padding: 1rem 2rem;
    z-index: 9999;
    font-size: .9rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: .5rem;
}
.cookie-banner.d-none { display: none !important; }

/* Module icon grid */
.module-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}
.module-item {
    background: var(--neutral-50);
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    font-weight: 500;
    font-size: .95rem;
    transition: background .2s;
}
.module-item:hover {
    background: rgba(0,77,150,.06);
}

/* Legal pages */
.legal-content h2 {
    font-size: 1.4rem;
    margin-top: 2rem;
    padding-bottom: .5rem;
    border-bottom: 2px solid var(--border);
}
.legal-content h3 {
    font-size: 1.15rem;
    margin-top: 1.5rem;
}

/* ---- blog author box ---- */
.author-box { display:flex; gap:1.2rem; align-items:flex-start; margin-top:3rem; padding:1.4rem; border:1px solid var(--border, #e5e7eb); border-radius:var(--radius, 12px); background:#f8fafc; }
.author-box img { width:80px; height:80px; border-radius:50%; object-fit:cover; flex-shrink:0; background:#e8f0fa; }
.author-box p { margin:0; }
.author-box .author-name { font-weight:700; font-size:1.1rem; }
.author-box .author-title { color:var(--muted, #64748b); font-size:.9rem; margin-bottom:.5rem; }
.author-box .author-bio { font-size:.95rem; }
.author-box .author-links { margin-top:.7rem; display:flex; flex-wrap:wrap; gap:.4rem 1rem; font-size:.9rem; }
@media (max-width:575px) { .author-box { flex-direction:column; } }

/* Forum posts are plain text: keep the author's line breaks. */
.forum-body { white-space: pre-wrap; overflow-wrap: anywhere; }
/* ---------- Pricing add-ons (SMS, website) ---------- */
.opt-price {
    display: inline-block;
    margin-left: .35rem;
    padding: .05rem .5rem;
    border-radius: 999px;
    background: var(--brand-secondary);
    color: #1c1c1c;
    font-size: .72rem;
    font-weight: 700;
    white-space: nowrap;
    vertical-align: middle;
}
.options-band {
    margin-top: 3rem;
    padding: 2.2rem 1.5rem 2.4rem;
    border-radius: calc(var(--radius) * 1.5);
    border: 2px dashed rgba(255, 185, 0, .85);
    background: linear-gradient(135deg, rgba(255, 185, 0, .17) 0%, rgba(0, 77, 150, .07) 100%);
}
.options-band, #pricing, #compare { scroll-margin-top: 90px; }
.options-title { font-size: 1.5rem; font-weight: 700; margin-bottom: .4rem; }
.option-card {
    display: flex;
    gap: 1.1rem;
    align-items: flex-start;
    height: 100%;
    padding: 1.5rem;
    background: #fff;
    border: 2px solid var(--brand-secondary);
    border-radius: var(--radius);
    box-shadow: 0 8px 26px rgba(255, 185, 0, .22);
    transition: transform .2s, box-shadow .2s;
}
.option-card:hover { transform: translateY(-3px); box-shadow: 0 12px 32px rgba(255, 185, 0, .34); }
.option-icon {
    flex: 0 0 3.4rem;
    width: 3.4rem;
    height: 3.4rem;
    border-radius: 50%;
    background: var(--brand-primary);
    color: var(--brand-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}
.option-body h4 { font-size: 1.15rem; font-weight: 700; margin: 0 0 .1rem; }
.option-price { margin: 0 0 .5rem; color: var(--brand-primary); }
.option-price strong { font-family: var(--font-heading); font-size: 1.9rem; line-height: 1.2; }
.option-price span { color: var(--muted); font-weight: 500; }
.option-desc { font-size: .93rem; color: var(--neutral-700); margin-bottom: .9rem; }
@media (max-width: 575px) {
    .options-band { padding: 1.6rem 1rem 1.8rem; }
    .option-card { flex-direction: column; }
}

/* ---------- Plan comparison table ---------- */
.compare-wrap {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: calc(var(--radius) * 1.3);
    box-shadow: 0 12px 38px rgba(15, 23, 42, .09);
    -webkit-overflow-scrolling: touch;
}
.compare-table {
    width: 100%;
    min-width: 660px;
    border-collapse: separate;
    border-spacing: 0;
    margin: 0;
}
.compare-table thead th {
    padding: 1.4rem .75rem 1.1rem;
    text-align: center;
    vertical-align: bottom;
    background: #fff;
    border-bottom: 2px solid var(--neutral-200);
    font-weight: 400;
}
.compare-table thead th.compare-corner {
    text-align: left;
    width: 38%;
    padding-left: 1.2rem;
    font-family: var(--font-heading);
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .07em;
    text-transform: uppercase;
    color: var(--muted);
}
.compare-table .plan-name {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--brand-primary);
}
.compare-table .plan-price {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--neutral-900);
    line-height: 1.25;
}
.compare-table .plan-price small { font-family: var(--font-body); font-size: .72rem; font-weight: 500; color: var(--muted); }
.compare-table .plan-flag {
    display: inline-block;
    margin-bottom: .4rem;
    padding: .12rem .6rem;
    border-radius: 999px;
    background: var(--brand-secondary);
    color: #1c1c1c;
    font-size: .66rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}
.compare-table thead th.plan-premium {
    background: linear-gradient(180deg, #fff3cc 0%, #fff 100%);
    border-top: 4px solid var(--brand-secondary);
}
.compare-table tbody td.col-premium,
.compare-table tfoot td.col-premium { background: rgba(255, 185, 0, .09); }
.compare-table .group-row th {
    padding: .6rem 1.2rem;
    text-align: left;
    background: var(--neutral-50);
    border-top: 1px solid var(--neutral-200);
    font-family: var(--font-heading);
    font-size: .76rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--brand-primary);
}
.compare-table .group-row th i { margin-right: .45rem; }
.compare-table tbody th[scope="row"] {
    position: sticky;
    left: 0;
    padding: .8rem 1.2rem;
    text-align: left;
    background: #fff;
    border-top: 1px solid var(--neutral-200);
    font-weight: 500;
    color: var(--neutral-900);
}
.compare-table tbody td {
    padding: .8rem .5rem;
    text-align: center;
    vertical-align: middle;
    border-top: 1px solid var(--neutral-200);
}
.compare-table tbody tr.item-row:hover > * { background-color: rgba(0, 77, 150, .05); }
.compare-table tbody tr.item-row:hover > td.col-premium { background-color: rgba(255, 185, 0, .18); }
.compare-table .cell-yes {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 50%;
    background: #dcf5e5;
    color: #15803d;
    font-size: 1.05rem;
}
.compare-table .cell-opt {
    display: inline-block;
    padding: .14rem .65rem;
    border-radius: 999px;
    background: #fff1c2;
    color: #7a5a00;
    font-size: .74rem;
    font-weight: 700;
}
.compare-table .cell-no { color: #cbd5e1; font-size: 1.25rem; line-height: 1; }
.compare-table .cell-price { font-family: var(--font-heading); font-size: 1.1rem; font-weight: 700; color: var(--brand-primary); }
.compare-table .cell-price small { font-family: var(--font-body); font-size: .75rem; font-weight: 500; color: var(--muted); }
.compare-table .row-addon th[scope="row"] i { color: var(--brand-secondary); margin-right: .4rem; }
.compare-table tfoot td { padding: 1.1rem .5rem 1.3rem; text-align: center; border-top: 2px solid var(--neutral-200); }
.compare-table tfoot td:first-child { background: #fff; }
.compare-note { max-width: 860px; margin: 1.1rem auto 0; font-size: .85rem; color: var(--muted); text-align: center; }
@media (max-width: 575px) {
    .compare-table .plan-price { font-size: 1.15rem; }
    .compare-table tbody th[scope="row"] { padding: .7rem .7rem; font-size: .88rem; }
}
/* ---------- Account deletion page ---------- */
.delete-steps { list-style: none; counter-reset: step; padding: 0; margin: 1.2rem 0; }
.delete-steps li {
    counter-increment: step;
    position: relative;
    margin-bottom: .85rem;
    padding: 1rem 1.2rem 1rem 4rem;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.delete-steps li::before {
    content: counter(step);
    position: absolute;
    left: 1.1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 2.2rem;
    height: 2.2rem;
    border-radius: 50%;
    background: var(--brand-primary);
    color: #fff;
    font-family: var(--font-heading);
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}
.delete-steps li strong { display: block; color: var(--neutral-900); }
.delete-steps li span { color: var(--neutral-700); font-size: .95rem; }
.legal-table-wrap {
    overflow-x: auto;
    margin: 1rem 0 1.2rem;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.legal-table { width: 100%; min-width: 34rem; border-collapse: separate; border-spacing: 0; font-size: .93rem; }
.legal-table thead th {
    background: linear-gradient(135deg, var(--brand-primary) 0%, #0a63b8 100%);
    color: #fff;
    font-family: var(--font-heading);
    font-size: .78rem;
    letter-spacing: .04em;
    text-transform: uppercase;
    padding: .8rem 1rem;
    text-align: left;
}
.legal-table tbody td { padding: .75rem 1rem; vertical-align: top; border-top: 1px solid var(--neutral-200); }
.legal-table tbody tr:nth-child(even) { background: var(--neutral-50); }
.tag-del, .tag-keep {
    display: inline-block;
    padding: .1rem .6rem;
    border-radius: 999px;
    font-size: .76rem;
    font-weight: 700;
}
.tag-del { background: #dcf5e5; color: #15803d; }
.tag-keep { background: #fff1c2; color: #7a5a00; }
