:root {
    --navy: #0b1f3a;
    --navy-light: #14305a;
    --gold: #c9a227;
    --gold-light: #e6c866;
    --bg: #f7f8fa;
    --text: #1c2530;
    --muted: #5c6773;
    --border: #e3e6ea;
    --success: #1e8e3e;
    --danger: #c62828;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

h1, h2, h3, .brand-serif {
    font-family: 'Libre Baskerville', Georgia, serif;
    color: var(--navy);
}

a { text-decoration: none; color: inherit; }

.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }

/* Header */
.site-header {
    background: var(--navy);
    padding: 18px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}
.site-header .container { display: flex; justify-content: space-between; align-items: center; }
.logo { color: #fff; font-family: 'Libre Baskerville', serif; font-size: 22px; font-weight: 700; }
.logo span { color: var(--gold); }
.nav-links { display: flex; gap: 28px; }
.nav-links a { color: #d9dee5; font-size: 15px; transition: color .2s; }
.nav-links a:hover { color: var(--gold-light); }

/* Hero */
.hero {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
    color: #fff;
    padding: 80px 0 60px;
    text-align: center;
}
.hero h1 { color: #fff; font-size: 40px; margin-bottom: 16px; }
.hero p { color: #c3ccd8; font-size: 18px; max-width: 640px; margin: 0 auto 28px; }
.badge {
    display: inline-block;
    background: rgba(201,162,39,0.15);
    color: var(--gold-light);
    border: 1px solid var(--gold);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    margin-bottom: 20px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 13px 28px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    border: none;
    transition: transform .15s, box-shadow .15s;
}
.btn-primary { background: var(--gold); color: var(--navy); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(201,162,39,.35); }
.btn-outline { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.4); }
.btn-outline:hover { border-color: #fff; }
.btn-block { width: 100%; text-align: center; }

/* Course grid */
.section { padding: 64px 0; }
.section-title { text-align: center; margin-bottom: 40px; }
.section-title h2 { font-size: 30px; }
.section-title p { color: var(--muted); margin-top: 8px; }

.course-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 28px;
}
.course-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform .2s, box-shadow .2s;
}
.course-card:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(11,31,58,.10); }
.course-thumb {
    height: 160px;
    background: linear-gradient(135deg, var(--navy), var(--navy-light));
    display: flex; align-items: center; justify-content: center;
    color: var(--gold-light); font-family: 'Libre Baskerville', serif; font-size: 20px; text-align: center; padding: 16px;
}
.course-body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.course-cat { color: var(--gold); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 8px; }
.course-body h3 { font-size: 19px; margin-bottom: 8px; }
.course-body p { color: var(--muted); font-size: 14px; flex: 1; margin-bottom: 16px; }
.course-meta { display: flex; gap: 14px; font-size: 13px; color: var(--muted); margin-bottom: 16px; }
.price-row { display: flex; align-items: baseline; gap: 10px; margin-bottom: 16px; }
.price-now { font-size: 24px; font-weight: 700; color: var(--navy); }
.price-old { font-size: 15px; color: var(--muted); text-decoration: line-through; }

/* Course detail */
.course-detail-hero { background: var(--navy); color: #fff; padding: 56px 0; }
.course-detail-hero h1 { color: #fff; font-size: 34px; margin-bottom: 14px; }
.course-detail-hero p { color: #c3ccd8; font-size: 17px; max-width: 700px; }
.detail-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 40px; margin-top: -40px; }
@media (max-width: 860px) { .detail-grid { grid-template-columns: 1fr; } }
.card { background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 28px; margin-bottom: 24px; }
.curriculum-list { list-style: none; }
.curriculum-list li { padding: 12px 0; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 12px; }
.curriculum-list li:last-child { border-bottom: none; }
.curriculum-num { background: var(--navy); color: var(--gold-light); width: 26px; height: 26px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; flex-shrink: 0; }

.buy-box { position: sticky; top: 90px; }
.buy-box .price-now { font-size: 32px; }

/* Forms */
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.form-group input, .form-group select, .form-group textarea {
    width: 100%; padding: 11px 14px; border: 1px solid var(--border); border-radius: 6px; font-size: 15px; font-family: inherit;
}
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--navy); }

/* Success page */
.success-box { max-width: 560px; margin: 80px auto; text-align: center; padding: 0 24px; }
.success-icon { width: 72px; height: 72px; background: var(--success); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 24px; color: #fff; font-size: 32px; }
.delivery-content { background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 24px; margin-top: 24px; text-align: left; }

/* Footer */
.site-footer { background: var(--navy); color: #b5bfcc; padding: 40px 0; text-align: center; font-size: 14px; margin-top: 60px; }
.site-footer a { color: var(--gold-light); }

/* Admin */
.admin-body { background: var(--bg); }
.admin-header { background: var(--navy); color: #fff; padding: 16px 0; }
.admin-header .container { display: flex; justify-content: space-between; align-items: center; }
.admin-wrap { max-width: 1000px; margin: 32px auto; padding: 0 24px; }
.table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 8px; overflow: hidden; }
.table th, .table td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--border); font-size: 14px; }
.table th { background: #f0f2f5; font-weight: 600; color: var(--muted); text-transform: uppercase; font-size: 12px; }
.status-pill { padding: 3px 10px; border-radius: 12px; font-size: 12px; font-weight: 600; }
.status-paid { background: #e3f4e6; color: var(--success); }
.status-pending { background: #fdf2dc; color: #a06a00; }
.status-failed { background: #fbe4e4; color: var(--danger); }
.alert { padding: 12px 16px; border-radius: 6px; margin-bottom: 20px; font-size: 14px; }
.alert-error { background: #fbe4e4; color: var(--danger); }
.alert-success { background: #e3f4e6; color: var(--success); }
