@import url('../../fonts/poppins/poppins.css');

/**
 * TEMA RESMI SMA NEGERI TUPAN (SMANTUPAN THEME)
 * Versi: 3.6 (Local Poppins Font & High Contrast)
 * Karakteristik: Font Lokal Poppins di Seluruh Frontend, Kontras Tinggi, Tajam
 */

/* ==================================================
   1. ROOT VARIABLES (KOMPATIBILITAS SEMUA VIEW)
   ================================================== */
:root {
  --primary-orange: #ff6600;
  --primary-teal: #00897B;
  --smantupan-primary: #ff6600;
  --smantupan-primary-hover: #ea580c;
  --smantupan-blue: #1e3a8a;
  --smantupan-blue-dark: #0f172a;
  --smantupan-bg: #f8fafc;
  --smantupan-border: #cbd5e1;
  --smantupan-text: #0f172a;
  --smantupan-muted: #475569;
}

/* ==================================================
   2. DASAR & FONT POPPINS DI SELURUH ELEMEN
   ================================================== */
*, *::before, *::after {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
}

html {
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden !important;
  max-width: 100vw;
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
  background-color: #f8fafc !important; /* Soft Gray untuk membuat kartu putih pop kontras */
  color: #1e293b !important; /* Slate 800 - Tajam dan Mudah Dibaca */
  -webkit-font-smoothing: antialiased;
}

[x-cloak] { display: none !important; }

/* Tipografi Kontras Tinggi (Default di area konten terang) */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
  color: #0f172a; /* Hitam Pekat Slate 900 */
  font-weight: 800;
  letter-spacing: -0.02em;
}

p, span, li, a, input, textarea, select, button {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
  color: #334155; /* Slate 700 - Nyaman di mata dan tidak pudar */
}

/* Konten Artikel & Berita (Memastikan Poppins di seluruh konten teks) */
.article-content,
.article-content *,
.article-content p,
.article-content span,
.article-content div,
.article-content li,
.article-intro,
.article-intro p {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
}

.text-muted {
  color: #475569 !important; /* Slate 600 - Jauh lebih terbaca */
}

a {
  transition: all 0.2s ease;
}

/* ==================================================
   3. HEADER FIXED PERMANEN
   ================================================== */
header.fixed,
header[class*="fixed"] {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  z-index: 9999 !important;
  background-color: #ffffff !important;
  border-bottom: 2px solid #e2e8f0 !important;
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.08) !important;
}

.smantupan-topbar {
  background: #f1f5f9;
  border-bottom: 1px solid #e2e8f0;
  font-size: 0.825rem;
  color: #334155;
  font-weight: 500;
}
.smantupan-topbar a {
  color: #334155;
}
.smantupan-topbar a:hover {
  color: var(--smantupan-primary);
}

.smantupan-btn-login {
  background: linear-gradient(135deg, #ff6600, #ea580c) !important;
  color: #ffffff !important;
  font-weight: 800 !important;
  font-size: 0.85rem !important;
  padding: 9px 24px !important;
  border-radius: 50px !important;
  display: inline-flex !important;
  align-items: center !important;
  box-shadow: 0 4px 14px rgba(255, 102, 0, 0.35) !important;
  transition: all 0.25s ease !important;
  text-decoration: none !important;
}
.smantupan-btn-login:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 20px rgba(255, 102, 0, 0.45) !important;
  color: #ffffff !important;
}

/* ==================================================
   4. SEMUA TOMBOL BERIKAN KONTRAS TINGGI & JELAS
   ================================================== */
/* Tombol Oranye Solid (Baca Berita, Hubungi Kami, Daftar, dll.) */
.btn-orange-solid,
.btn.btn-orange-solid,
.btn-selengkapnya,
.btn-apply-siloka,
a.button.bg_oran {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: linear-gradient(135deg, #ff6600, #ea580c) !important;
  color: #ffffff !important;
  font-weight: 800 !important;
  font-size: 0.875rem !important;
  padding: 12px 28px !important;
  border-radius: 50px !important;
  border: none !important;
  box-shadow: 0 4px 16px rgba(255, 102, 0, 0.38) !important;
  transition: all 0.25s ease !important;
  text-decoration: none !important;
}

.btn-orange-solid:hover,
.btn.btn-orange-solid:hover,
.btn-selengkapnya:hover,
.btn-apply-siloka:hover,
a.button.bg_oran:hover {
  background: linear-gradient(135deg, #ea580c, #c2410c) !important;
  color: #ffffff !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 22px rgba(255, 102, 0, 0.5) !important;
}

.btn-orange-solid i,
.btn-selengkapnya i,
.btn-apply-siloka i {
  color: #ffffff !important;
}

/* Tombol Outline Oranye */
.btn-outline-orange,
.btn.btn-outline-orange {
  display: inline-flex !important;
  align-items: center !important;
  background: #ffffff !important;
  color: #ff6600 !important;
  border: 2px solid #ff6600 !important;
  font-weight: 800 !important;
  font-size: 0.875rem !important;
  padding: 10px 24px !important;
  border-radius: 50px !important;
  transition: all 0.25s ease !important;
  text-decoration: none !important;
}
.btn-outline-orange:hover,
.btn.btn-outline-orange:hover {
  background: #ff6600 !important;
  color: #ffffff !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 4px 16px rgba(255, 102, 0, 0.35) !important;
}

/* Link Tombol Berita Kecil */
.btn-news {
  color: #ff6600 !important;
  font-weight: 800 !important;
  font-size: 0.875rem !important;
  display: inline-flex !important;
  align-items: center !important;
}
.btn-news:hover {
  color: #ea580c !important;
  text-decoration: underline !important;
}

/* ==================================================
   5. HEADER HALAMAN DALAM (PAGE TITLE BANNER)
   ================================================== */
.smantupan-page-title,
.page-title,
section.page-title {
  margin-top: 0 !important;
  padding: 55px 0 !important;
  background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%) !important;
  border-bottom: 3px solid #ff6600 !important;
  text-align: center;
  position: relative;
}
.smantupan-page-title h1,
.page-title h1,
section.page-title h1 {
  font-size: 2.35rem !important;
  font-weight: 900 !important;
  color: #ffffff !important;
  letter-spacing: -0.5px;
  margin-bottom: 8px !important;
}
.smantupan-page-title p,
.page-title p,
section.page-title p {
  color: #cbd5e1 !important;
  font-size: 1rem !important;
  margin-bottom: 0 !important;
  font-weight: 500;
}

/* ==================================================
   6. KARTU KONTEN DENGAN ELEVASI & KONTRAS KUAT
   ================================================== */
.card,
.smantupan-card,
.sidebar-panel,
.featured-article,
.news-card-modern,
.news-stat-card,
.feature-card {
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important; /* Border tegas terlihat */
  border-radius: 18px !important;
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.08) !important;
  transition: all 0.3s ease !important;
}

.card:hover,
.smantupan-card:hover,
.feature-card:hover,
.news-card-modern:hover {
  box-shadow: 0 12px 30px -4px rgba(15, 23, 42, 0.14) !important;
  border-color: #94a3b8 !important;
}

/* Feature Cards (Fasilitas & Layanan) */
.feature-card {
  padding: 32px 24px !important;
  border-top: 4px solid var(--smantupan-primary) !important;
  text-align: center;
}
.feature-icon {
  width: 62px;
  height: 62px;
  background: rgba(255, 102, 0, 0.12) !important;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: #ff6600 !important;
  margin: 0 auto 18px;
}
.feature-card h5 {
  color: #0f172a !important;
  font-weight: 800 !important;
  font-size: 1.1rem !important;
}
.feature-card p {
  color: #475569 !important;
  font-size: 0.875rem !important;
  line-height: 1.6;
}

/* Speech Card (Sambutan Kepala Sekolah) */
.speech-card,
.welcome-speech-card {
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  border-left: 4px solid #ff6600 !important;
  border-radius: 14px !important;
  padding: 22px !important;
  position: relative;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05) !important;
}
.speech-quote,
.welcome-speech-quote {
  position: absolute;
  top: 10px;
  right: 18px;
  font-size: 3rem;
  color: rgba(255, 102, 0, 0.2) !important;
  line-height: 1;
}

/* Stats Section (Siswa Aktif, Guru, dll.) */
.qual_1li1 {
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06) !important;
}
.qual_1li1 h5 {
  color: #0f172a !important;
  font-weight: 800 !important;
  font-size: 0.95rem !important;
}
.qual_1li1 h2 {
  color: #ff6600 !important;
  font-weight: 900 !important;
}
.qual_1r h6 {
  color: #ff6600 !important;
  font-weight: 800 !important;
  letter-spacing: 1.5px;
}
.qual_1r h3 {
  color: #0f172a !important;
  font-weight: 900 !important;
  font-size: 1.6rem !important;
}
.qual_1r p {
  color: #334155 !important;
  font-size: 0.95rem !important;
  line-height: 1.7;
}

/* Subtitle & Badge */
.section-subtitle {
  color: #ff6600 !important;
  font-weight: 800 !important;
  font-size: 0.78rem !important;
  text-transform: uppercase;
  letter-spacing: 2px !important;
  display: block;
  margin-bottom: 8px;
}
.section-main-title {
  color: #0f172a !important;
  font-weight: 900 !important;
  font-size: 2.1rem !important;
}

.news-chip {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 700;
  background: rgba(255, 102, 0, 0.1) !important;
  color: #ff6600 !important;
  border: 1px solid rgba(255, 102, 0, 0.25) !important;
  text-decoration: none;
}
.news-chip:hover {
  background: #ff6600 !important;
  color: #ffffff !important;
}

/* ==================================================
   7. FOOTER KONTRAS TINGGI & TEKS TERANG
   ================================================== */
footer,
footer.footer,
footer.smantupan-footer,
.smantupan-footer {
  background: #090d16 !important; /* Deep Dark Slate */
  color: #f1f5f9 !important; /* Terang dan Jelas */
  border-top: 4px solid #ff6600 !important;
}

footer h1, footer h2, footer h3, footer h4, footer h5, footer h6 {
  color: #ffffff !important;
  font-weight: 800 !important;
}

footer p,
footer li,
footer div {
  color: #e2e8f0 !important; /* Terang di atas gelap */
}

footer span {
  color: #e2e8f0 !important;
}

footer a {
  color: #f8fafc !important; /* Putih Terang untuk Link */
  text-decoration: none !important;
  font-weight: 600 !important;
}

footer a:hover {
  color: #ff9933 !important; /* Oranye Terang saat disorot */
  text-decoration: underline !important;
}

footer ul li a {
  color: #f8fafc !important;
}

footer i {
  color: #ff6600 !important;
}

footer .visitor-counter,
footer .visitor-counter span,
footer .visitor-counter strong {
  color: #ffffff !important;
}

/* Utilitas Warna Cepat */
.col_oran { color: #ff6600 !important; }
.bg_oran { background-color: #ff6600 !important; }

/* ==================================================
   8. TABEL & DAFTAR KONTRAS TINGGI (PPDB, BIAYA, DATA SISWA)
   ================================================== */
table,
.table {
  color: #0f172a !important;
  border-color: #cbd5e1 !important;
  background-color: #ffffff !important;
  border-radius: 12px !important;
  overflow: hidden !important;
}

table thead th,
.table thead th,
.table th {
  background-color: #0f172a !important; /* Header Tabel Biru Dongker Gelap */
  color: #ffffff !important;
  font-weight: 800 !important;
  text-transform: uppercase;
  font-size: 0.8rem !important;
  letter-spacing: 0.5px;
  padding: 14px 16px !important;
  border: none !important;
}

table tbody td,
.table tbody td,
.table td {
  color: #1e293b !important;
  font-weight: 500 !important;
  padding: 12px 16px !important;
  border-bottom: 1px solid #e2e8f0 !important;
  vertical-align: middle !important;
}

table tbody tr:hover,
.table tbody tr:hover {
  background-color: #f1f5f9 !important;
}

/* ==================================================
   9. FORMULIR & INPUT KONTRAS TINGGI (PENDAFTARAN, KONTAK)
   ================================================== */
label,
.form-label {
  color: #0f172a !important;
  font-weight: 800 !important;
  font-size: 0.875rem !important;
  margin-bottom: 6px !important;
}

.form-control,
.form-select,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="tel"],
select,
textarea {
  background-color: #ffffff !important;
  color: #0f172a !important;
  border: 1.5px solid #94a3b8 !important; /* Border abu-abu tegas terlihat jelas */
  border-radius: 10px !important;
  padding: 10px 14px !important;
  font-size: 0.925rem !important;
  font-weight: 500 !important;
}

.form-control:focus,
.form-select:focus,
input:focus,
select:focus,
textarea:focus {
  border-color: #ff6600 !important;
  box-shadow: 0 0 0 3px rgba(255, 102, 0, 0.25) !important;
  outline: none !important;
}

/* ==================================================
   10. KARTU GALERI, PRESTASI, EKSTRAKURIKULER, UNDUHAN
   ================================================== */
.gallery-item,
.album-card,
.achievement-card,
.program-card,
.facility-card,
.download-card,
.alumni-card {
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 16px !important;
  overflow: hidden !important;
  box-shadow: 0 4px 16px -2px rgba(15, 23, 42, 0.08) !important;
  transition: all 0.25s ease !important;
}

.gallery-item:hover,
.album-card:hover,
.achievement-card:hover,
.program-card:hover,
.facility-card:hover,
.download-card:hover,
.alumni-card:hover {
  border-color: #ff6600 !important;
  transform: translateY(-4px) !important;
  box-shadow: 0 12px 28px -4px rgba(15, 23, 42, 0.16) !important;
}

/* Badges Kontras */
.badge {
  font-weight: 800 !important;
  letter-spacing: 0.5px;
  padding: 6px 12px !important;
  border-radius: 6px !important;
}
.badge.bg-primary {
  background-color: #1e3a8a !important;
  color: #ffffff !important;
}
.badge.bg-warning {
  background-color: #f59e0b !important;
  color: #0f172a !important;
}
.badge.bg-success {
  background-color: #10b981 !important;
  color: #ffffff !important;
}

/* ==================================================
   FOOTER RESMI SMANTUPAN - ULTRA HIGH CONTRAST & READABLE
   ================================================== */
footer,
footer.smantupan-footer,
.smantupan-footer {
  background-color: #090d16 !important; /* Navy Gelap Solid */
  color: #f8fafc !important;
  border-top: 4px solid #ff6600 !important;
}

/* Judul Kolom Footer */
footer h5,
footer h5.text-white,
.smantupan-footer h5 {
  color: #ffffff !important;
  font-weight: 800 !important;
  letter-spacing: 0.05em !important;
}

/* Paragraf & Deskripsi Sekolah di Footer */
footer p,
.smantupan-footer p {
  color: #f1f5f9 !important; /* Slate 100 - Terang, Tajam, & Nyaman Dibaca */
  font-weight: 400 !important;
  font-size: 0.925rem !important;
  line-height: 1.75 !important;
  opacity: 1 !important;
}

/* Teks Span & List Items di Footer */
footer span,
.smantupan-footer span,
footer li,
.smantupan-footer li {
  color: #f8fafc !important; /* Putih Bersih */
  font-weight: 400 !important;
}

/* Link Menu / Navigasi / Layanan di Footer */
footer a,
.smantupan-footer a,
footer ul li a,
.smantupan-footer ul li a {
  color: #f8fafc !important; /* Putih Bersih & Kontras */
  font-weight: 500 !important;
  text-decoration: none !important;
  transition: all 0.2s ease !important;
}

footer a:hover,
.smantupan-footer a:hover,
footer ul li a:hover,
.smantupan-footer ul li a:hover {
  color: #ff9933 !important; /* Oranye Terang saat disorot */
  transform: translateX(4px) !important;
}

/* Icon Panah Kecil Navigasi */
footer .bi-chevron-right,
.smantupan-footer .bi-chevron-right {
  color: #ff6600 !important;
  font-weight: 800 !important;
}

/* Icon Kontak */
footer .bi-geo-alt-fill,
footer .bi-envelope-fill,
footer .bi-telephone-fill,
.smantupan-footer .bi-geo-alt-fill,
.smantupan-footer .bi-envelope-fill,
.smantupan-footer .bi-telephone-fill {
  color: #ff8800 !important;
}

/* Footer Bottom Bar (Hak Cipta & Counter) */
footer .border-t,
.smantupan-footer .border-t {
  border-color: rgba(255, 255, 255, 0.15) !important;
}

footer .border-t p,
.smantupan-footer .border-t p {
  color: #e2e8f0 !important; /* Terang dan Jelas */
  font-size: 0.85rem !important;
}

footer .border-t strong,
.smantupan-footer .border-t strong {
  color: #ffffff !important;
}

/* ==================================================
   HERO SLIDER & DARK BANNERS - ULTRA HIGH CONTRAST
   ================================================== */
/* Slider Beranda (Home Carousel) */
.carousel-caption,
.carousel-item .carousel-caption,
#carouselExampleCaptions .carousel-caption {
  background: rgba(9, 13, 22, 0.88) !important;
  backdrop-filter: blur(16px) !important;
  border-radius: 18px !important;
  border-left: 6px solid #ff6600 !important;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.6) !important;
  color: #ffffff !important;
}

.carousel-caption h1,
.carousel-caption h2,
.carousel-caption h3,
.carousel-caption h2 span,
#carouselExampleCaptions .carousel-caption h2,
#carouselExampleCaptions .carousel-caption h2 span {
  color: #ffffff !important;
  font-weight: 800 !important;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.85) !important;
}

.carousel-caption p,
#carouselExampleCaptions .carousel-caption p {
  color: #f1f5f9 !important;
  font-size: 1.1rem !important;
  font-weight: 500 !important;
  line-height: 1.65 !important;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.85) !important;
}

/* Halaman Berita & Detail Berita Hero */
.news-hero,
.news-detail-hero,
section.news-hero,
section.news-detail-hero {
  background: linear-gradient(135deg, #090d16 0%, #1e293b 50%, #ea580c 100%) !important;
  color: #ffffff !important;
}

.news-hero h1,
.news-hero h2,
.news-detail-hero h1,
.news-detail-hero h2,
.news-title,
.news-detail-title,
h1.news-title,
h1.news-detail-title {
  color: #ffffff !important;
  font-weight: 900 !important;
  text-shadow: 0 3px 14px rgba(0, 0, 0, 0.75) !important;
}

.news-hero p,
.news-detail-hero p,
.news-lead,
.news-detail-lead,
p.news-lead,
p.news-detail-lead {
  color: #f1f5f9 !important;
  font-weight: 400 !important;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5) !important;
}

/* ==================================================
   KOTAK SUMBER REFERENSI ARTIKEL & LINK BERITA
   ================================================== */
.article-source-box,
.article-content h6 {
  display: flex !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 8px 12px !important;
  font-size: 0.875rem !important;
  font-weight: 500 !important;
  color: #475569 !important;
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  border-left: 4px solid #ff6600 !important;
  border-radius: 12px !important;
  padding: 14px 20px !important;
  margin-top: 2rem !important;
  margin-bottom: 1.5rem !important;
  width: 100% !important;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04) !important;
  word-break: break-all !important;
}

.article-source-box strong,
.article-content h6 strong,
.article-content h6 em {
  font-style: normal !important;
  font-weight: 700 !important;
  color: #0f172a !important;
  font-size: 0.875rem !important;
}

.article-source-box a,
.article-content h6 a,
.article-content a {
  color: #ea580c !important;
  font-weight: 600 !important;
  text-decoration: underline !important;
  text-underline-offset: 3px;
  word-break: break-all !important;
  transition: color 0.2s ease !important;
}

.article-source-box a:hover,
.article-content h6 a:hover,
.article-content a:hover {
  color: #c2410c !important;
}

/* Sembunyikan tag kosong yang tersisa dari copy-paste artikel */
.article-content h1:empty,
.article-content h2:empty,
.article-content h3:empty,
.article-content h4:empty,
.article-content h5:empty,
.article-content h6:empty,
.article-content p:empty {
  display: none !important;
}

