/* =====================================================================
   USK Campus Campaign - style.css
   Tema: hijau tua (#1c5c34), hijau terang (#2f9e52), emas (#d4af37)
   Mobile-first, responsive
   ===================================================================== */

:root {
    --usk-green-dark: #123b23;
    --usk-green: #1c6b3a;
    --usk-green-mid: #2f9e52;
    --usk-green-light: #eaf5ee;
    --usk-gold: #d4af37;
    --usk-text: #1f2a24;
    --usk-muted: #5b6b62;
    --usk-white: #ffffff;
    --usk-border: #d9e6de;
    --radius-md: 14px;
    --radius-lg: 22px;
    --shadow-card: 0 6px 18px rgba(18, 59, 35, 0.08);
    --max-width: 1100px;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', 'Poppins', Arial, sans-serif;
    color: var(--usk-text);
    background: var(--usk-white);
    -webkit-text-size-adjust: 100%;
}

img { max-width: 100%; display: block; }

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

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 18px;
}

/* ---------------- Header / Logo ---------------- */
.site-header {
    padding: 22px 0 10px;
    text-align: center;
}

.site-header .logo-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}

.site-header img.logo {
    height: 90px;
    width: auto;
}

.site-header .logo-text {
    text-align: left;
    line-height: 1.05;
}

.site-header .logo-text .usk-big {
    font-size: 30px;
    font-weight: 800;
    color: var(--usk-text);
    letter-spacing: 1px;
}

.site-header .logo-text .usk-small {
    font-size: 11px;
    color: var(--usk-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ---------------- Tab menu ---------------- */
.tab-nav {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 14px 18px 18px;
    max-width: var(--max-width);
    margin: 0 auto;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
}

.tab-nav::-webkit-scrollbar { height: 6px; }
.tab-nav::-webkit-scrollbar-thumb { background: var(--usk-border); border-radius: 10px; }

.tab-btn {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    border-radius: 999px;
    border: 1.5px solid var(--usk-green-mid);
    color: var(--usk-green);
    font-weight: 600;
    font-size: 14px;
    background: var(--usk-white);
    white-space: nowrap;
    transition: all .15s ease;
    position: relative;
}

.tab-btn.active {
    background: var(--usk-green-mid);
    color: var(--usk-white);
    border-color: var(--usk-green-mid);
}

.tab-btn.locked {
    color: #a8b3ad;
    border-color: var(--usk-border);
    background: #f4f7f5;
}

.tab-btn .lock-icon { font-size: 12px; }

/* ---------------- Hero ---------------- */
.hero {
    background: linear-gradient(120deg, var(--usk-green-light) 0%, #ffffff 55%);
    border-radius: 0;
    padding: 36px 0 0;
    overflow: hidden;
}

.hero-inner {
    display: flex;
    flex-direction: column;
    gap: 26px;
    padding-bottom: 30px;
}

.hero-text h1 {
    font-size: 32px;
    line-height: 1.15;
    margin: 10px 0 14px;
    font-weight: 800;
    color: var(--usk-text);
}

.hero-text h1 .highlight { color: var(--usk-green-mid); }

.hero-underline {
    width: 60px;
    height: 4px;
    background: var(--usk-gold);
    border-radius: 4px;
    margin-bottom: 16px;
}

.hero-text p {
    color: var(--usk-muted);
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 22px;
    max-width: 480px;
}

.btn-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--usk-green);
    color: var(--usk-white);
    padding: 13px 26px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 14px;
    border: none;
    cursor: pointer;
    box-shadow: var(--shadow-card);
}

.btn-cta:hover { background: var(--usk-green-dark); }

.hero-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-card);
}

.hero-image img { width: 100%; height: 100%; object-fit: cover; }

/* ---------------- Feature cards ---------------- */
.features {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin: 26px 0 40px;
}

.feature-card {
    background: var(--usk-white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
    padding: 26px 18px;
    text-align: center;
    border: 1px solid var(--usk-border);
}

.feature-card .icon-circle {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--usk-green-light);
    color: var(--usk-green);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
    font-size: 24px;
}

.feature-card h3 {
    font-size: 16px;
    margin: 0 0 8px;
    color: var(--usk-text);
}

.feature-card p {
    font-size: 13px;
    color: var(--usk-muted);
    line-height: 1.5;
    margin: 0;
}

/* ---------------- Content section (per tab page) ---------------- */
.content-block {
    background: var(--usk-white);
    border: 1px solid var(--usk-border);
    border-radius: var(--radius-md);
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: var(--shadow-card);
}

.content-block h2 {
    color: var(--usk-green-dark);
    font-size: 18px;
    margin: 0 0 10px;
}

.content-block p {
    color: var(--usk-muted);
    line-height: 1.65;
    margin: 0;
}

/* ---------------- Locked state ---------------- */
.locked-box {
    text-align: center;
    padding: 60px 20px;
    background: var(--usk-green-light);
    border-radius: var(--radius-lg);
    margin: 30px auto;
}

.locked-box .lock-emoji { font-size: 44px; margin-bottom: 14px; }

.locked-box h2 {
    color: var(--usk-green-dark);
    margin: 0 0 10px;
}

.locked-box p { color: var(--usk-muted); margin: 0 0 6px; }

.locked-box .badge-date {
    display: inline-block;
    margin-top: 12px;
    background: var(--usk-gold);
    color: var(--usk-green-dark);
    font-weight: 700;
    padding: 6px 16px;
    border-radius: 999px;
    font-size: 13px;
}

/* ---------------- Pledge form ---------------- */
.pledge-section {
    background: var(--usk-green-light);
    border-radius: var(--radius-lg);
    padding: 26px 18px;
    margin: 30px 0;
}

.pledge-section h2 {
    color: var(--usk-green-dark);
    margin-top: 0;
}

.pledge-form { display: grid; gap: 12px; margin-top: 16px; }

.pledge-form input,
.pledge-form textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--usk-border);
    border-radius: 10px;
    font-size: 14px;
    font-family: inherit;
}

.pledge-form textarea { resize: vertical; min-height: 90px; }

.pledge-form button {
    justify-self: start;
}

.form-msg {
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 14px;
    margin-bottom: 14px;
}

.form-msg.success { background: #e4f6ea; color: var(--usk-green-dark); }
.form-msg.error { background: #fdeaea; color: #a12b2b; }

/* ---------------- Footer ---------------- */
.site-footer {
    background: var(--usk-green-dark);
    color: var(--usk-white);
    padding: 30px 0;
    margin-top: 40px;
}

.footer-quote {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 24px;
}

.footer-quote .quote-mark { color: var(--usk-gold); font-size: 30px; line-height: 1; }
.footer-quote .quote-underline {
    width: 40px; height: 3px; background: var(--usk-gold);
    margin-top: 8px; border-radius: 4px;
}

.footer-values {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
    text-align: center;
}

.footer-values .value-item .val-icon { font-size: 24px; color: var(--usk-gold); margin-bottom: 6px; }
.footer-values .value-item span { display: block; font-size: 13px; }

/* ---------------- Back link ---------------- */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: var(--usk-green);
    font-weight: 600;
    margin: 18px 0;
}

/* ---------------- Responsive breakpoints ---------------- */
@media (min-width: 640px) {
    .features { grid-template-columns: repeat(2, 1fr); }
    .footer-values { grid-template-columns: repeat(4, 1fr); }
}

@media (min-width: 900px) {
    .hero-inner {
        flex-direction: row;
        align-items: center;
    }
    .hero-text { flex: 1; }
    .hero-image { flex: 1; height: 380px; }
    .hero-text h1 { font-size: 42px; }
    .features { grid-template-columns: repeat(5, 1fr); }
    .site-header .logo-text { text-align: left; }
}
