/* ==========================================================================
   FRONTEND DESIGN SYSTEM - 7 KEBIASAAN ANAK INDONESIA HEBAT (SMPN 29 BATAM)
   ========================================================================== */

:root {
  --primary-blue: #0284c7;
  --primary-dark: #0369a1;
  --primary-deep: #0f172a;
  --primary-light: #e0f2fe;
  --accent-cyan: #38bdf8;
  --accent-green: #10b981;
  --accent-green-light: #d1fae5;
  --accent-yellow: #f59e0b;
  --accent-yellow-light: #fef3c7;
  --accent-orange: #f97316;
  --accent-orange-light: #ffedd5;
  --accent-purple: #8b5cf6;
  --accent-purple-light: #ede9fe;
  --accent-red: #ef4444;
  --accent-red-light: #fee2e2;

  --navy-bg: #0b1f3a;
  --navy-footer: #081930;
  --navy-card: #0f2747;

  --text-dark: #0f172a;
  --text-muted: #64748b;
  --text-light: #f8fafc;
  --bg-soft: #f8fafc;
  --bg-alt: #f0f7ff;
  --card-border: #e2e8f0;
  --card-shadow: 0 10px 25px -5px rgba(2, 132, 199, 0.08), 0 8px 10px -6px rgba(2, 132, 199, 0.05);
  --card-hover-shadow: 0 20px 30px -10px rgba(2, 132, 199, 0.18), 0 10px 15px -5px rgba(2, 132, 199, 0.1);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-pill: 9999px;
  --transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
  font-family: 'Plus Jakarta Sans', 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--text-dark);
  background-color: #fcfdfd;
  overflow-x: hidden;
  line-height: 1.6;
}

/* ================= HEADER & NAVBAR ================= */
.main-header {
  position: sticky;
  top: 0;
  z-index: 1040;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
  transition: var(--transition);
}

.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-logo {
  width: 44px;
  height: 44px;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.brand-wrapper:hover .brand-logo {
  transform: rotate(-6deg) scale(1.05);
}

.brand-title {
  font-weight: 800;
  font-size: 1.05rem;
  color: #0b1f3a;
  line-height: 1.2;
}

.brand-subtitle {
  font-size: 0.72rem;
  font-weight: 600;
  color: #0284c7;
  letter-spacing: 0.3px;
}

.nav-link-custom {
  font-weight: 600;
  font-size: 0.93rem;
  color: #475569 !important;
  padding: 8px 16px !important;
  border-radius: var(--radius-pill);
  transition: var(--transition);
  position: relative;
}

.nav-link-custom:hover {
  color: var(--primary-blue) !important;
  background-color: rgba(2, 132, 199, 0.06);
}

.nav-link-custom.active {
  color: var(--primary-blue) !important;
  font-weight: 700;
}

.nav-link-custom.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 20%;
  right: 20%;
  height: 3px;
  background: var(--primary-blue);
  border-radius: 4px;
}

.btn-admin-pill {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  color: #ffffff !important;
  font-weight: 600;
  font-size: 0.88rem;
  padding: 8px 22px;
  border-radius: var(--radius-pill);
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.28);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  transition: var(--transition);
}

.btn-admin-pill:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(2, 132, 199, 0.38);
  color: #ffffff;
}

/* ================= HERO SECTION ================= */
.hero-wrapper {
  background: linear-gradient(180deg, #edf7ff 0%, #f7fbff 60%, #ffffff 100%);
  padding: 48px 0 36px 0;
  position: relative;
  overflow: hidden;
}

.hero-wrapper::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -80px;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.15) 0%, rgba(255, 255, 255, 0) 70%);
  pointer-events: none;
}

.hero-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #e0f2fe;
  color: #0284c7;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: 14px;
  border: 1px solid #bae6fd;
}

.hero-title {
  font-size: 2.35rem;
  font-weight: 800;
  line-height: 1.25;
  color: #0b1f3a;
  margin-bottom: 16px;
}

.hero-title .highlight-blue {
  color: #0284c7;
}

.hero-title .highlight-green {
  color: #10b981;
}

.hero-description {
  font-size: 1.02rem;
  color: #475569;
  line-height: 1.65;
  margin-bottom: 24px;
  max-width: 540px;
}

.hero-btn-primary {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  color: #ffffff !important;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 12px 28px;
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  box-shadow: 0 8px 18px rgba(2, 132, 199, 0.3);
  transition: var(--transition);
}

.hero-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(2, 132, 199, 0.4);
}

.hero-btn-secondary {
  background: #ffffff;
  color: #0284c7 !important;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  border: 1.5px solid #0284c7;
  transition: var(--transition);
}

.hero-btn-secondary:hover {
  background: #f0f9ff;
  transform: translateY(-2px);
}

.hero-image-box {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 40px -15px rgba(2, 132, 199, 0.25);
  border: 4px solid #ffffff;
  transition: transform 0.4s ease;
}

.hero-image-box:hover {
  transform: scale(1.02);
}

.hero-image-box img {
  width: 100%;
  height: auto;
  display: block;
}

/* ================= SECTION BADGES & TITLES ================= */
.section-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #e0f2fe;
  color: #0284c7;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: 10px;
  border: 1px solid #bae6fd;
}

.section-title-main {
  font-size: 1.85rem;
  font-weight: 800;
  color: #0b1f3a;
  line-height: 1.3;
  margin-bottom: 8px;
}

.section-subtitle-sub {
  font-size: 0.98rem;
  color: #64748b;
  margin-bottom: 28px;
}

/* ================= INFO CARD BANNER (APA ITU 7 KEBIASAAN) ================= */
.info-program-card {
  background: #ffffff;
  border-radius: var(--radius-xl);
  border: 1px solid #e0f2fe;
  padding: 32px;
  box-shadow: var(--card-shadow);
  position: relative;
  overflow: hidden;
}

.quote-bubble-card {
  background: linear-gradient(145deg, #f0f9ff 0%, #e0f2fe 100%);
  border-radius: var(--radius-lg);
  border: 1px solid #bae6fd;
  padding: 24px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
}

.quote-bubble-card i.quote-icon {
  font-size: 2rem;
  color: #0284c7;
  opacity: 0.8;
  margin-bottom: 10px;
}

.feature-pill-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #f8fafc;
  border: 1px solid #f1f5f9;
  border-radius: var(--radius-md);
  padding: 12px 16px;
  transition: var(--transition);
}

.feature-pill-item:hover {
  background: #ffffff;
  border-color: #bae6fd;
  box-shadow: 0 6px 14px rgba(2, 132, 199, 0.08);
  transform: translateY(-2px);
}

.feature-pill-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

/* ================= 7 KEBIASAAN CARDS GRID ================= */
.kebiasaan-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid #e2e8f0;
  box-shadow: var(--card-shadow);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  position: relative;
}

.kebiasaan-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--card-hover-shadow);
  border-color: #93c5fd;
}

.kebiasaan-card-top {
  position: relative;
  padding: 16px 16px 8px 16px;
}

.kebiasaan-badge-num {
  position: absolute;
  top: 14px;
  left: 14px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.95rem;
  color: #ffffff;
  z-index: 2;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.badge-num-1 { background: #f97316; }
.badge-num-2 { background: #0284c7; }
.badge-num-3 { background: #10b981; }
.badge-num-4 { background: #f59e0b; }
.badge-num-5 { background: #059669; }
.badge-num-6 { background: #0ea5e9; }
.badge-num-7 { background: #8b5cf6; }

.kebiasaan-thumb-box {
  width: 100%;
  height: 145px;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #f1f5f9;
  position: relative;
}

.kebiasaan-thumb-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.4s ease;
}

.kebiasaan-card:hover .kebiasaan-thumb-box img {
  transform: scale(1.06);
}

.kebiasaan-body {
  padding: 12px 18px 18px 18px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.kebiasaan-title {
  font-weight: 800;
  font-size: 1.05rem;
  color: #0b1f3a;
  margin-bottom: 6px;
  line-height: 1.3;
}

.kebiasaan-desc {
  font-size: 0.86rem;
  color: #64748b;
  line-height: 1.5;
  margin-bottom: 14px;
  flex-grow: 1;
}

.kebiasaan-btn-action {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #f0f9ff;
  color: #0284c7;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  border: none;
  transition: var(--transition);
  cursor: pointer;
  text-decoration: none;
}

.kebiasaan-card:hover .kebiasaan-btn-action {
  background: #0284c7;
  color: #ffffff;
  transform: translateX(4px);
}

/* ================= STEP TIMELINE CARDS ================= */
.step-item-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid #e2e8f0;
  padding: 20px 16px;
  text-align: center;
  height: 100%;
  position: relative;
  transition: var(--transition);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.step-item-card:hover {
  transform: translateY(-4px);
  border-color: #0284c7;
  box-shadow: var(--card-shadow);
}

.step-badge-num {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.step-title {
  font-weight: 700;
  font-size: 0.95rem;
  color: #0b1f3a;
  margin-bottom: 6px;
}

.step-desc {
  font-size: 0.8rem;
  color: #64748b;
  line-height: 1.45;
  margin-bottom: 0;
}

/* ================= VIDEO PENGENALAN & PROFIL SMPN 29 ================= */
.school-profile-banner {
  background: #ffffff;
  border-radius: var(--radius-xl);
  border: 1px solid #e2e8f0;
  box-shadow: var(--card-shadow);
  overflow: hidden;
}

.profile-video-thumb {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  cursor: pointer;
}

.profile-video-thumb img {
  width: 100%;
  height: auto;
  display: block;
}

.play-button-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 58px;
  height: 58px;
  background: rgba(2, 132, 199, 0.92);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 1.5rem;
  box-shadow: 0 0 0 8px rgba(255, 255, 255, 0.5);
  transition: var(--transition);
}

.profile-video-thumb:hover .play-button-overlay {
  transform: translate(-50%, -50%) scale(1.1);
  background: #0284c7;
  box-shadow: 0 0 0 12px rgba(255, 255, 255, 0.7);
}

/* ================= CTA BANNER ================= */
.cta-banner-wrapper {
  background: linear-gradient(135deg, #0284c7 0%, #1e40af 100%);
  border-radius: var(--radius-xl);
  color: #ffffff;
  padding: 40px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 40px -10px rgba(2, 132, 199, 0.35);
}

.cta-banner-wrapper::after {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0) 70%);
}

.cta-title {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 12px;
}

.cta-desc {
  font-size: 1rem;
  color: #e0f2fe;
  margin-bottom: 24px;
  max-width: 520px;
}

.cta-btn-white {
  background: #ffffff;
  color: #0284c7 !important;
  font-weight: 800;
  font-size: 0.95rem;
  padding: 12px 28px;
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.15);
  transition: var(--transition);
}

.cta-btn-white:hover {
  background: #f8fafc;
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}

/* ================= STATISTIK PROGRAM ================= */
.stat-card-item {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
  transition: var(--transition);
}

.stat-card-item:hover {
  transform: translateY(-3px);
  border-color: #93c5fd;
  box-shadow: var(--card-shadow);
}

.stat-icon-box {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  flex-shrink: 0;
}

.stat-value {
  font-size: 1.8rem;
  font-weight: 800;
  color: #0b1f3a;
  line-height: 1.1;
}

.stat-label {
  font-size: 0.85rem;
  color: #64748b;
  font-weight: 600;
}

/* ================= GALERI TABS & CARDS ================= */
.galeri-filter-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 36px;
}

.galeri-tab-btn {
  background: #ffffff;
  color: #475569;
  border: 1.5px solid #e2e8f0;
  padding: 9px 22px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
  cursor: pointer;
  text-decoration: none;
}

.galeri-tab-btn:hover {
  background: #f0f9ff;
  color: #0284c7;
  border-color: #bae6fd;
}

.galeri-tab-btn.active {
  background: #0284c7;
  color: #ffffff;
  border-color: #0284c7;
  box-shadow: 0 6px 16px rgba(2, 132, 199, 0.3);
}

.galeri-card-item {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid #e2e8f0;
  box-shadow: var(--card-shadow);
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.galeri-card-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--card-hover-shadow);
  border-color: #93c5fd;
}

.galeri-thumb-wrap {
  width: 100%;
  height: 180px;
  background: #f1f5f9;
  overflow: hidden;
  position: relative;
  cursor: pointer;
}

.galeri-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.galeri-card-item:hover .galeri-thumb-wrap img {
  transform: scale(1.06);
}

.galeri-duration-badge {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(15, 23, 42, 0.85);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  backdrop-filter: blur(4px);
}

.galeri-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.galeri-title {
  font-weight: 700;
  font-size: 0.98rem;
  color: #0b1f3a;
  line-height: 1.35;
  margin-bottom: 6px;
}

.galeri-desc {
  font-size: 0.83rem;
  color: #64748b;
  line-height: 1.45;
  margin-bottom: 12px;
  flex-grow: 1;
}

.galeri-tag-kebiasaan {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  background: #f0f9ff;
  color: #0284c7;
  border: 1px solid #bae6fd;
}

/* ================= FOOTER ================= */
.main-footer {
  background: var(--navy-footer);
  color: #cbd5e1;
  padding-top: 56px;
  padding-bottom: 24px;
  margin-top: 60px;
  border-top: 3px solid #0284c7;
}

.footer-heading {
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 20px;
  position: relative;
}

.footer-links-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links-list li {
  margin-bottom: 10px;
}

.footer-links-list a {
  color: #94a3b8;
  text-decoration: none;
  font-size: 0.9rem;
  transition: var(--transition);
}

.footer-links-list a:hover {
  color: #38bdf8;
  padding-left: 4px;
}

.footer-contact-item {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 0.88rem;
  color: #94a3b8;
}

.footer-contact-item i {
  color: #38bdf8;
  font-size: 1.1rem;
  margin-top: 2px;
}

.footer-social-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 8px;
  transition: var(--transition);
  text-decoration: none;
}

.footer-social-btn:hover {
  background: #0284c7;
  color: #ffffff;
  transform: translateY(-2px);
}

.footer-bottom-bar {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 40px;
  padding-top: 20px;
  font-size: 0.82rem;
  color: #64748b;
}

/* ================= MODAL & LIGHTBOX ================= */
.modal-video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
  overflow: hidden;
  border-radius: 12px;
}

.modal-video-wrapper iframe,
.modal-video-wrapper video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Responsive tweaks */
@media (max-width: 991.98px) {
  .hero-title {
    font-size: 1.95rem;
  }
  .cta-title {
    font-size: 1.6rem;
  }
  .info-program-card {
    padding: 24px;
  }
}

@media (max-width: 767.98px) {
  .hero-title {
    font-size: 1.65rem;
  }
  .hero-wrapper {
    padding: 30px 0;
  }
}
