/* ===== 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%);
    padding: 5rem 0 4rem;
}
.hero h1 {
    font-size: 2.8rem;
    font-weight: 700;
    line-height: 1.2;
    max-width: 700px;
}
.hero .lead {
    font-size: 1.15rem;
    color: var(--neutral-700);
    max-width: 600px;
    line-height: 1.7;
}
@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 {
    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;
}
.pricing-card ul li::before {
    content: "? ";
    color: var(--brand-primary);
    font-weight: 700;
}

/* ---------- Testimonials ---------- */
.testimonial-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    position: relative;
}
.testimonial-card::before {
    content: "?";
    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;
}

/* ---------- 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;
    padding: .8rem 1.5rem;
    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 {
    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;
}