/* ============================================================
   MODERN — tampilan sederhana & modern (tema YBM, Samudra)
   Seluruh warna memakai variabel tema. Dimuat setelah file tema.
   ============================================================ */
:root { --radius: 14px; --radius-lg: 20px; --radius-xl: 28px; }
body { background: var(--surface); color: var(--text); }
.text-gradient { background: none; -webkit-text-fill-color: currentColor; color: var(--accent-dark); }
[data-theme="dark"] .text-gradient { color: var(--accent); }

/* ---------- Tombol ---------- */
.btn { border-radius: 12px; font-weight: 700; padding: 14px 26px; }
.btn-primary { background: var(--primary); color: #fff; box-shadow: none; }
.btn-primary:hover { background: var(--primary-dark); box-shadow: 0 10px 24px rgba(0,0,0,.18); }
.btn-outline-dark { border-color: var(--primary); color: var(--primary); }
.btn-outline-dark:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ---------- Header ---------- */
.header-top { background: var(--primary-dark); border: 0; }
.header-top-left i { color: var(--accent); }
.header { background: var(--surface); border-bottom: 1px solid var(--border); box-shadow: none; }
[data-theme="dark"] .header { background: var(--header-bg); }
.logo { color: var(--primary); }
.logo i { width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; border-radius: 12px; background: var(--accent); color: var(--on-accent); font-size: 1.05rem; box-shadow: none; }
.nav a, .nav-dd-btn { color: var(--text); font-weight: 600; border-radius: 10px; }
.nav a:hover, .nav a.active, .nav-dd-btn:hover { color: var(--primary); background: var(--nav-active); }
.nav a::after, .nav-dd-btn::after { background: var(--accent); height: 3px; }
.nav a.nav-spmb { background: var(--accent); color: var(--on-accent); margin-left: 8px; box-shadow: none; }
.nav a.nav-spmb:hover { background: var(--accent-dark); color: var(--on-accent); }
.nav a.nav-spmb::after { display: none; }
.dark-toggle:hover, .nav-toggle:hover { background: var(--accent); color: var(--on-accent); }

/* ---------- Hero ---------- */
.hero { min-height: min(84vh, 740px); padding: 84px 0 132px; background: linear-gradient(115deg, var(--primary-dark) 0%, var(--hero-end, var(--primary)) 100%); }
.hero::before, .hero::after { content: none; }
.hero.hero--photo { background: var(--hero-img) center / cover no-repeat; }
.hero--photo::before { content: ''; background: linear-gradient(100deg, var(--primary-dark) 0%, var(--primary-dark) 35%, var(--hero-end, var(--primary)) 100%); opacity: var(--hero-ov, .65); }
.hero-shape { display: none; }
.hero-grid { grid-template-columns: 1.25fr .75fr; gap: 56px; }
.hero-badge { background: rgba(255,255,255,.14); color: #fff; border: 1px solid rgba(255,255,255,.28); font-weight: 600; box-shadow: none; padding: 7px 16px; }
.hero-badge i { color: var(--accent); }
.hero-content h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; line-height: 1.08; letter-spacing: -.02em; color: #fff; }
.hero-content h1 .text-gradient { color: var(--accent); }
.hero-content p { color: rgba(255,255,255,.86); max-width: 540px; }
.hero-buttons .btn-primary { background: var(--accent); color: var(--on-accent); box-shadow: none; }
.hero-buttons .btn-primary:hover { background: var(--accent-dark); box-shadow: 0 10px 26px rgba(0,0,0,.25); }
.btn-outline { border-color: rgba(255,255,255,.55); color: #fff; }
.btn-outline:hover { background: rgba(255,255,255,.14); }
.hero-visual::before { content: none; }

/* ---------- Akses cepat (menumpuk di tepi bawah hero) ---------- */

/* ---------- Statistik: pita gelap ---------- */

/* ---------- Bagian & judul (rata kiri) ---------- */
.section { padding: 92px 0; }
.section.bg-surface { background: var(--bg); }
.section.bg-surface::before { content: none; }
.section-title { text-align: left; max-width: none; margin: 0 0 42px; }
.section-title .st-badge { background: none; border: 0; padding: 0; margin-bottom: 10px; color: var(--accent-dark); font-size: .78rem; letter-spacing: .14em; display: inline-flex; align-items: center; gap: 10px; }
.section-title .st-badge::before { content: ''; width: 28px; height: 3px; border-radius: 3px; background: var(--accent); }
[data-theme="dark"] .section-title .st-badge { color: var(--accent); }
.section-title h2 { font-size: clamp(1.8rem, 3.6vw, 2.5rem); font-weight: 800; letter-spacing: -.015em; color: var(--text); }
.section-title h2::after { content: none; }
.section-title p { max-width: 620px; font-size: 1rem; }

/* ---------- Profil ---------- */
.about-image::before { content: none; }
.ai-main { border-radius: 24px; box-shadow: none; }
.ai-main img { height: 440px; }
.ai-card { background: var(--accent); border-radius: 18px; }
.ai-card h4, .ai-card p, .ai-card i { color: var(--on-accent); }
.about-content h3 { font-size: 1.7rem; font-weight: 800; color: var(--text); }
.about-visi, .about-misi { background: none; border: 0; border-left: 3px solid var(--accent); border-radius: 0; padding: 2px 0 2px 16px; margin-bottom: 16px; }
.about-visi strong, .about-misi strong { color: var(--primary); }
.al-item i { color: var(--accent-dark); }

/* ---------- Kartu: datar & ringan ---------- */
.programs-card, .extracurricular-card, .achievement-card, .testimonial-card, .news-card, .event-card, .faq-item, .ki-card, .teacher-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 18px; box-shadow: none;
}
.programs-card:hover, .news-card:hover, .event-card:hover, .teacher-card:hover, .extracurricular-card:hover, .achievement-card:hover { transform: translateY(-4px); border-color: var(--accent); box-shadow: 0 16px 36px rgba(0,0,0,.08); }

/* Program: nomor besar */
.programs-grid { counter-reset: prog; gap: 18px; }
.programs-card { padding: 28px 26px 26px; }
.programs-card::before { content: none; }
.programs-card::after { counter-increment: prog; content: counter(prog, decimal-leading-zero); position: absolute; top: 20px; right: 24px; font-family: var(--font); font-weight: 800; font-size: 1.7rem; color: var(--border); line-height: 1; }
.pc-icon { background: var(--accent-glow); color: var(--primary); border-radius: 16px; }
.programs-card:hover .pc-icon { background: var(--accent); color: var(--on-accent); }
.programs-card h3 { color: var(--text); font-size: 1.08rem; }
.pc-link, .bc-link { color: var(--primary); font-weight: 700; }
.pc-link:hover, .bc-link:hover { color: var(--accent-dark); }

/* Dua kolom */
.duo-col { background: var(--surface); border: 1px solid var(--border); border-radius: 22px; box-shadow: none; }
.duo-icon { background: var(--accent-glow); color: var(--primary); }
.duo-head h2 { color: var(--text); }
.mini-card, .ach-row, .tea-card, .tes-card { background: var(--bg); border: 1px solid transparent; }
.mini-card:hover, .ach-row:hover, .tea-card:hover { border-color: var(--accent); }
.mini-card .ec-icon { background: var(--primary); color: #fff; }
.tea-card img, .ach-photo { border-color: var(--accent); }
.tea-card h4, .mini-card h3, .ach-info strong, .tes-card figcaption strong { color: var(--text); }
.tes-card { border-left: 4px solid var(--accent); border-radius: 14px; }
.duo-more { border-color: var(--border); color: var(--primary); }
.duo-more:hover { border-color: var(--accent); background: var(--accent-glow); }

/* ---------- Mitra industri ---------- */
.partner-logo { border-radius: 14px; }

/* ---------- Berita: 1 besar + 2 ringkas ---------- */
@media (min-width: 861px) {
  .news-grid { display: grid; grid-template-columns: 1.35fr 1fr; grid-auto-rows: auto; gap: 20px; }
  .news-grid .news-card:first-child { grid-row: 1 / span 2; display: flex; flex-direction: column; }
  .news-grid .news-card:first-child .bc-img { height: 100%; min-height: 280px; flex: 1; }
  .news-grid .news-card:first-child .bc-body h3 { font-size: 1.35rem; }
  .news-grid .news-card:not(:first-child) { display: grid; grid-template-columns: 150px 1fr; }
  .news-grid .news-card:not(:first-child) .bc-img { height: 100%; min-height: 130px; }
  .news-grid .news-card:not(:first-child) .bc-body { padding: 16px 18px; }
  .news-grid .news-card:not(:first-child) .bc-body p { display: none; }
  .news-grid .news-card:not(:first-child) .bc-meta { margin-bottom: 6px; }
}
.bc-cat { background: var(--accent); color: var(--on-accent); font-weight: 700; border-radius: 8px; }
.bc-body h3 { color: var(--text); }

/* ---------- Agenda: 2 kolom ---------- */
.event-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
.event-card { display: flex; gap: 18px; padding: 18px; align-items: stretch; overflow: hidden; }
.ac-date { background: var(--primary); color: #fff; border-radius: 14px; min-width: 84px; width: 84px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 10px 6px; border: 0; }
.acd-day { color: var(--accent); font-size: 2rem; font-weight: 800; line-height: 1; }
.acd-month { color: rgba(255,255,255,.88); font-size: .74rem; font-weight: 600; margin-top: 4px; text-align: center; }
.ac-body { min-width: 0; }
.ac-body h3 { color: var(--text); font-size: 1.02rem; }
.ac-meta i { color: var(--accent-dark); }
@media (max-width: 760px) { .event-grid { grid-template-columns: 1fr; } }

/* ---------- Galeri ---------- */
.gallery-grid { gap: 12px; }
.gallery-item { border-radius: 16px; overflow: hidden; }
.gi-overlay { background: rgba(0,0,0,.45); }
.gi-overlay i { background: var(--accent); color: var(--on-accent); }

/* ---------- FAQ ---------- */
.faq-list { max-width: 860px; margin: 0; }
.faq-item { overflow: hidden; margin-bottom: 12px; }
.faq-question { color: var(--text); font-weight: 700; }
.faq-question:hover, .faq-question i { color: var(--primary); }
.faq-item.active { border-color: var(--accent); }

/* ---------- Banner ajakan ---------- */

/* ---------- Footer ---------- */
.footer { background: var(--primary-dark); }
.footer-shape { display: none; }
.footer-col h4 { color: #fff; }
.footer-col h4::after { background: var(--accent); }
.footer-col a:hover, .footer-bottom a { color: var(--accent); }
.footer-brand p, .footer-col a { color: rgba(255,255,255,.76); }
.footer-social a { background: rgba(255,255,255,.1); color: #fff; }
.footer-social a:hover { background: var(--accent); color: var(--on-accent); }
.footer-contact { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.12); border-radius: 22px; }
.fc-info li i { background: var(--accent); color: var(--on-accent); }
.fc-form .btn { background: var(--accent); color: var(--on-accent); }
.footer-bottom { background: rgba(0,0,0,.2); border: 0; color: rgba(255,255,255,.82); }
.back-to-top { background: var(--accent); color: var(--on-accent); }

/* ---------- Halaman dalam: banner ---------- */
.page-banner { background: linear-gradient(115deg, var(--primary-dark), var(--hero-end, var(--primary))); }
.page-banner-shape { display: none; }
.page-banner-badge { background: rgba(255,255,255,.14); color: #fff; border: 1px solid rgba(255,255,255,.28); }
.page-banner h1 .text-gradient { color: var(--accent); }

/* ---------- Responsif ---------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .hero { padding: 56px 0 130px; }
  .section { padding: 64px 0; }
}
