/* ═══════════════════════════════════════════════════
   Auckland Royal Academy — Main Stylesheet
   Professional University Design — Lightweight
   ═══════════════════════════════════════════════════ */

:root {
    --primary: #1a3a6b;
    --primary-light: #2c5aa0;
    --primary-dark: #0f2544;
    --accent: #c8a84e;
    --accent-light: #dfc06a;
    --bg: #ffffff;
    --bg-light: #f8f9fb;
    --bg-warm: #faf8f5;
    --text: #1f2937;
    --text-light: #6b7280;
    --text-lighter: #9ca3af;
    --border: #e5e7eb;
    --radius: 8px;
    --shadow: 0 1px 3px rgba(0,0,0,.08);
    --shadow-lg: 0 10px 40px rgba(0,0,0,.1);
    --transition: .3s ease;
}

/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; }
body { font-family: 'Segoe UI', system-ui, -apple-system, sans-serif; color: var(--text); line-height: 1.7; margin: 0; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; }
a { color: var(--primary-light); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary-dark); }
h1,h2,h3,h4,h5 { line-height: 1.3; color: var(--primary-dark); }

/* ─── HEADER / NAVBAR ─────────────────────────────── */
.site-header {
    background: var(--primary-dark);
    position: sticky; top: 0; z-index: 1000;
    box-shadow: 0 2px 20px rgba(0,0,0,.15);
}
.site-header .navbar { padding: 0; }
.site-header .navbar-brand { display: flex; align-items: center; gap: 10px; padding: 10px 0; }
.site-header .navbar-brand .logo { width: 38px; height: 38px; border-radius: 4px; }
.site-header .site-title { color: #fff; font-weight: 600; font-size: 16px; letter-spacing: .3px; }
.site-header .nav-link { color: rgba(255,255,255,.85); font-size: 14px; font-weight: 500; padding: 18px 16px !important; transition: var(--transition); border-bottom: 3px solid transparent; }
.site-header .nav-link:hover, .site-header .nav-link.active { color: #fff; border-bottom-color: var(--accent); background: rgba(255,255,255,.06); }

/* ─── HERO SECTION ────────────────────────────────── */
.hero-section {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
    color: #fff; padding: 80px 0 90px; position: relative; overflow: hidden;
}
.hero-section::before {
    content: ''; position: absolute; inset: 0;
    background: url('../images/hero-pattern.png') repeat; opacity: .08;
}
.hero-section .container { position: relative; z-index: 2; }
.hero-title { font-size: clamp(32px, 5vw, 52px); font-weight: 700; margin-bottom: 16px; line-height: 1.15; color: #fff; }
.hero-title span { color: var(--accent); }
.hero-subtitle { font-size: 20px; font-weight: 300; margin-bottom: 8px; color: rgba(255,255,255,.9); letter-spacing: .5px; }
.hero-text { font-size: 16px; color: rgba(255,255,255,.75); margin-bottom: 32px; max-width: 540px; }
.hero-buttons { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-buttons .btn { padding: 14px 32px; font-weight: 600; font-size: 15px; border-radius: 6px; }
.hero-buttons .btn-primary { background: var(--accent); border-color: var(--accent); color: var(--primary-dark); }
.hero-buttons .btn-primary:hover { background: var(--accent-light); border-color: var(--accent-light); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(200,168,78,.3); }
.hero-buttons .btn-outline-primary { border: 2px solid rgba(255,255,255,.4); color: #fff; background: transparent; }
.hero-buttons .btn-outline-primary:hover { background: rgba(255,255,255,.1); border-color: #fff; }
.hero-image { text-align: center; }
.hero-image img { max-height: 360px; filter: drop-shadow(0 20px 40px rgba(0,0,0,.3)); }

/* ─── SECTION STYLES ──────────────────────────────── */
.section-header { text-align: center; margin-bottom: 48px; }
.section-header h2 { font-size: 32px; font-weight: 700; margin-bottom: 12px; color: var(--primary-dark); }
.section-header p { font-size: 16px; color: var(--text-light); max-width: 600px; margin: 0 auto; }
section { padding: 80px 0; }

/* ─── SCHOLARSHIP CARDS ───────────────────────────── */
.featured-scholarships { background: var(--bg-light); }
.scholarship-card {
    background: #fff; border-radius: 12px; padding: 28px;
    box-shadow: var(--shadow); border: 1px solid var(--border);
    transition: var(--transition); height: 100%; display: flex; flex-direction: column;
}
.scholarship-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--primary-light); }
.scholarship-category { display: inline-block; background: rgba(26,58,107,.08); color: var(--primary); font-size: 12px; font-weight: 600; padding: 4px 12px; border-radius: 20px; margin-bottom: 14px; text-transform: uppercase; letter-spacing: .5px; }
.scholarship-title { font-size: 20px; font-weight: 600; margin-bottom: 10px; color: var(--primary-dark); }
.scholarship-amount { font-size: 24px; font-weight: 700; color: var(--accent); margin-bottom: 8px; }
.scholarship-deadline { font-size: 14px; color: var(--text-light); margin-bottom: 14px; }
.scholarship-description { font-size: 14px; color: var(--text-light); line-height: 1.6; flex-grow: 1; }
.scholarship-footer { margin-top: 20px; display: flex; gap: 10px; }
.scholarship-footer .btn { font-size: 14px; padding: 8px 18px; border-radius: 6px; }

/* ─── SCHOLARSHIP TYPES GRID ──────────────────────── */
.scholarship-types-section { background: var(--bg-warm); }
.scholarship-type-card {
    display: block; background: #fff; border-radius: 12px; padding: 30px 24px;
    text-align: center; transition: var(--transition); border: 1px solid var(--border);
    color: var(--text); text-decoration: none; height: 100%;
}
.scholarship-type-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--primary-light); color: var(--text); text-decoration: none; }
.scholarship-type-icon { width: 60px; height: 60px; border-radius: 12px; background: rgba(26,58,107,.08); display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; font-size: 24px; color: var(--primary); }
.scholarship-type-card h3 { font-size: 16px; font-weight: 600; margin-bottom: 8px; }
.scholarship-type-card p { font-size: 13px; color: var(--text-light); margin-bottom: 12px; }
.scholarship-type-link { font-size: 13px; color: var(--primary-light); font-weight: 600; }

/* ─── PAGE HEADER ─────────────────────────────────── */
.page-header {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: #fff; padding: 48px 0;
}
.page-header .page-title { font-size: 32px; font-weight: 700; margin-bottom: 10px; color: #fff; }
.page-header .breadcrumb { background: none; padding: 0; margin: 0; }
.page-header .breadcrumb-item a { color: rgba(255,255,255,.7); }
.page-header .breadcrumb-item.active { color: var(--accent); }
.page-header .breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,.4); }

/* ─── SCHOLARSHIPS LIST ───────────────────────────── */
.scholarships-filter { background: #fff; border-radius: 12px; padding: 24px; box-shadow: var(--shadow); border: 1px solid var(--border); position: sticky; top: 80px; }
.scholarships-filter h3 { font-size: 18px; margin-bottom: 20px; }
.filter-group { margin-bottom: 20px; }
.filter-group h4 { font-size: 14px; font-weight: 600; margin-bottom: 10px; color: var(--primary-dark); }
.scholarship-item { background: #fff; border-radius: 12px; padding: 24px; margin-bottom: 16px; box-shadow: var(--shadow); border: 1px solid var(--border); transition: var(--transition); }
.scholarship-item:hover { box-shadow: var(--shadow-lg); }
.scholarships-header { margin-bottom: 24px; display: flex; justify-content: space-between; align-items: center; }

/* ─── DETAIL PAGE ─────────────────────────────────── */
.scholarship-detail-section { padding: 48px 0; }
.scholarship-detail-content { background: #fff; border-radius: 12px; padding: 36px; box-shadow: var(--shadow); }
.scholarship-sidebar .scholarship-summary, .scholarship-sidebar .related-scholarships, .scholarship-sidebar .application-cta {
    background: #fff; border-radius: 12px; padding: 24px; box-shadow: var(--shadow); margin-bottom: 20px; border: 1px solid var(--border);
}
.summary-list { list-style: none; padding: 0; }
.summary-list li { padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.summary-list li:last-child { border-bottom: none; }

/* ─── APPLICATION FORM ────────────────────────────── */
.application-form .form-section { background: #fff; border-radius: 12px; padding: 30px; margin-bottom: 24px; box-shadow: var(--shadow); border: 1px solid var(--border); }
.application-form .form-section h3 { font-size: 20px; margin-bottom: 24px; padding-bottom: 12px; border-bottom: 2px solid var(--border); color: var(--primary-dark); }
.form-label { font-size: 14px; font-weight: 600; color: var(--text); }
.form-control, .form-select { border-radius: 6px; border: 1.5px solid var(--border); padding: 10px 14px; font-size: 14px; transition: var(--transition); }
.form-control:focus, .form-select:focus { border-color: var(--primary-light); box-shadow: 0 0 0 3px rgba(26,58,107,.1); }

/* ─── SUCCESS PAGE ────────────────────────────────── */
.success-section { padding: 60px 0; }
.success-icon { font-size: 64px; color: #059669; margin-bottom: 20px; }
.success-content { text-align: center; max-width: 800px; margin: 0 auto; }
.reference-display { font-size: 32px; font-weight: 700; color: var(--primary); background: var(--bg-light); padding: 20px; border-radius: 12px; border: 2px dashed var(--primary-light); letter-spacing: 3px; display: inline-block; margin: 16px 0; }
.qr-code-img { max-width: 220px; border-radius: 8px; border: 1px solid var(--border); padding: 8px; background: #fff; }

/* ─── CHECK STATUS ────────────────────────────────── */
.status-form { max-width: 500px; margin: 0 auto; }
.status-result { background: #fff; border-radius: 12px; padding: 30px; box-shadow: var(--shadow); margin-top: 30px; }

/* ─── FOOTER ──────────────────────────────────────── */
.footer-spacer { display: none; }
.main-footer { background: var(--primary-dark); color: rgba(255,255,255,.8); padding: 60px 0 0; }
.main-footer h4, .footer-heading { color: var(--accent); font-size: 16px; margin-bottom: 20px; }
.footer-links { list-style: none; padding: 0; }
.footer-links li { margin-bottom: 8px; }
.footer-links li a { color: rgba(255,255,255,.7); font-size: 14px; transition: var(--transition); }
.footer-links li a:hover { color: var(--accent); padding-left: 4px; }
.footer-contact { list-style: none; padding: 0; }
.footer-contact li { margin-bottom: 10px; font-size: 14px; color: rgba(255,255,255,.7); }
.footer-contact li i { width: 20px; color: var(--accent); margin-right: 8px; }
.footer-logo img { max-height: 50px; filter: brightness(0) invert(1); }
.social-links { display: flex; gap: 10px; margin-top: 16px; }
.social-links .social-link { width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.1); display: flex; align-items: center; justify-content: center; color: #fff; transition: var(--transition); }
.social-links .social-link:hover { background: var(--accent); color: var(--primary-dark); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 20px 0; margin-top: 40px; }
.footer-bottom p { margin: 0; font-size: 13px; }
.footer-bottom-links { list-style: none; padding: 0; display: flex; gap: 20px; justify-content: flex-end; margin: 0; }
.footer-bottom-links a { color: rgba(255,255,255,.6); font-size: 13px; }

/* ─── BACK TO TOP ─────────────────────────────────── */
.back-to-top { position: fixed; bottom: 24px; right: 24px; width: 42px; height: 42px; border-radius: 50%; background: var(--primary); color: #fff; display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: var(--transition); z-index: 999; box-shadow: 0 4px 12px rgba(0,0,0,.2); }
.back-to-top.visible { opacity: 1; visibility: visible; }
.back-to-top:hover { background: var(--primary-dark); transform: translateY(-3px); color: #fff; }

/* ─── BUTTONS ─────────────────────────────────────── */
.btn-primary { background: var(--primary); border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); }
.btn-outline-primary { color: var(--primary); border-color: var(--primary); }
.btn-outline-primary:hover { background: var(--primary); border-color: var(--primary); color: #fff; }

/* ─── ALERTS ──────────────────────────────────────── */
.alert { border-radius: 8px; font-size: 14px; border: none; }

/* ─── RESPONSIVE ──────────────────────────────────── */
@media (max-width: 992px) {
    .hero-section { padding: 50px 0 60px; text-align: center; }
    .hero-text { max-width: 100%; margin-left: auto; margin-right: auto; }
    .hero-buttons { justify-content: center; }
    .hero-image { margin-top: 40px; }
    .hero-image img { max-height: 240px; }
    section { padding: 50px 0; }
    .section-header h2 { font-size: 26px; }
}
@media (max-width: 768px) {
    .hero-title { font-size: 28px; }
    .hero-subtitle { font-size: 16px; }
    .hero-buttons .btn { padding: 12px 24px; font-size: 14px; width: 100%; text-align: center; }
    .page-header { padding: 30px 0; }
    .page-header .page-title { font-size: 24px; }
    .scholarship-card { padding: 20px; }
    .scholarship-amount { font-size: 20px; }
    .footer-bottom-links { justify-content: center; flex-wrap: wrap; }
    .site-header .nav-link { padding: 12px 16px !important; }
    .reference-display { font-size: 20px; letter-spacing: 1px; padding: 14px; }
    .scholarships-filter { position: static; margin-bottom: 20px; }
}
@media (max-width: 576px) {
    .container { padding-left: 16px; padding-right: 16px; }
    .scholarship-footer { flex-direction: column; }
    .scholarship-footer .btn { width: 100%; text-align: center; }
}
