/* Home page – hero search split + trust signals (no inline CSS) */

/* ---- Design tokens (premium refresh) ---- */
.home-hero-search,
.home-trust-signals {
  --home-primary: #CC0000;
  --home-primary-dark: #c1121f;
  --home-trust-bg: #ffffff;
  --home-accent-gold: #c9a227;
  --home-accent-gold-light: #f5e6c8;
  --home-bg: #ffffff;
  --home-bg-soft: #fafafa;
  --home-text: #0f172a;
  --home-text-muted: #272727;
  --home-border: #e2e8f0;
}

/* ---- Section backgrounds (alternate white & soft gray) ---- */
.hero-section.hero-home {
  background-color: #0b1220;
  /* fallback behind image */
}

.home-hero-search-bg {
  background: #ffffff;
}

/* Override .options-section.set-bg from custom-global (white) */
.options-section,
.options-section.set-bg {
  background-color: #f9fafb;
  background-image: none;
}

/* Section pembeda: About / Schedule / Experts beda jelas (background + label) */
.home-about-section {
  background: #ffffff;
  border-top: 1px solid #e5e7eb;
}

.schedule-section {
  padding: 4rem 0 4rem;
  background: #eef2f6;
}

.team-member-section.home-experts-section {
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
}

/* ========== Section title & subtitle seragam di semua section home ========== */
.page-home .section-title,
.page-home .options-section-header {
  text-align: center;
  margin-bottom: 2rem;
}

/* Ukuran & style sama dengan .home-hero-headline / .home-hero-subheadline */
.page-home .section-title h2,
.page-home .options-section-headline,
.page-home .home-about-section .ha-text h2 {
  font-family: "Segoe UI", SegoeUI, "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: #171822;
  margin-bottom: 0.6rem;
  line-height: 1.3;
  letter-spacing: 0;
}

/* Home: Topik Populer pakai background putih-abu, jadi tidak perlu override teks */
.page-home .home-popular-topics-section {
  background: #f9fafb;
  border-top: 1px solid #e2e8f0;
}

.page-home .section-title p,
.page-home .options-section-subheadline {
  font-size: 1rem;
  font-weight: 400;
  color: #272727;
  margin-bottom: 0;
  line-height: 1.55;
  margin-left: auto;
  margin-right: auto;
}

.page-home .home-about-section .ha-text h2 {
  margin-bottom: 0.95rem;
}

.page-home .contact-section .section-title {
  text-align: left;
}

.page-home .contact-section .section-title p {
  margin-left: 0;
  margin-right: 0;
  max-width: none;
}

/* Satu style aksen merah untuk semua title (3 warna: hitam–merah–hitam) */
.page-home .section-title-accent,
.page-home .options-section-headline-accent,
.page-home .schedule-section-title-accent {
  color: #CC0000 !important;
  font-weight: 700;
}

/* Label section (eyebrow) supaya beda jelas: About vs Paket Program vs Para Ahli */
.page-home .section-eyebrow {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #CC0000;
  margin-bottom: 0.5rem;
  position: relative;
}

/* Strip kiri untuk About (teks kiri) */
.page-home .section-eyebrow::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 0.875rem;
  background: #CC0000;
  border-radius: 2px;
}

.page-home .section-eyebrow--about {
  padding-left: 1rem;
  color: #CC0000;
}

.page-home .section-eyebrow--about::before {
  background: #CC0000;
}

.page-home .section-eyebrow--schedule {
  color: #b91c1c;
}

.page-home .section-eyebrow--schedule::before {
  background: #b91c1c;
}

.page-home .section-eyebrow--experts {
  color: #991b1b;
}

.page-home .section-eyebrow--experts::before {
  background: #991b1b;
}

/* Schedule & Experts (judul center): garis horizontal di atas teks, tidak menimpa */
.page-home .section-title .section-eyebrow,
.page-home .schedule-section-title .section-eyebrow {
  text-align: center;
  padding-left: 0;
  padding-top: 0.25rem;
}

.page-home .section-title .section-eyebrow::before,
.page-home .schedule-section-title .section-eyebrow::before {
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  width: 32px;
  height: 3px;
  border-radius: 2px;
}

.page-home .home-about-section .ha-text .section-eyebrow {
  text-align: left;
  padding-left: 1rem;
}

.page-home .home-about-section .ha-text .section-eyebrow::before {
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 0.875rem;
}

/* ---- Improved button styling consistency ---- */
.page-home .primary-btn,
.page-home .btn.primary-btn,
.page-home .home-search-btn,
.page-home a.primary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: #CC0000 !important;
  background-image: none !important;
  color: #fff !important;
  border: none !important;
  border-radius: 50px;
  padding: 12px 24px;
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.2s ease, box-shadow 0.2s ease;
  min-height: 44px;
  box-shadow: 0 2px 8px rgba(204, 0, 0, 0.25);
}

.page-home .primary-btn:hover,
.page-home .btn.primary-btn:hover,
.page-home .home-search-btn:hover,
.page-home a.primary-btn:hover {
  background: #a30000 !important;
  background-image: none !important;
  color: #fff !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(204, 0, 0, 0.4);
}

.page-home .primary-btn:active,
.page-home .home-search-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(204, 0, 0, 0.25);
}

/* Improved focus states for accessibility */
.page-home .primary-btn:focus,
.page-home .btn.primary-btn:focus,
.page-home .home-search-btn:focus,
.page-home a.primary-btn:focus {
  outline: 2px solid #CC0000;
  outline-offset: 2px;
}

@media (max-width: 767px) {

  .page-home .section-title h2,
  .page-home .options-section-headline,
  .page-home .home-about-section .ha-text h2 {
    font-size: 1.65rem;
  }

  .page-home .section-title p,
  .page-home .options-section-subheadline {
    font-size: 1rem;
  }
}

/* ========== Redesign: Paket Program Terbaru & Terpopuler (kontras + tab jelas) ========== */
.page-home .schedule-section {
  background: #eef2f6;
  padding-top: 4rem;
  padding-bottom: 4rem;
}

/* Permainan warna: kata aksen — solid red default, gradient di browser modern */
/* Tab: container pill — wrapper agar background abu tidak full width */
.page-home .schedule-tab__toggle-wrap {
  display: flex;
  justify-content: center;
}

.page-home .schedule-tab .nav-tabs {
  display: inline-flex;
  justify-content: center;
  width: auto;
  padding: 6px;
  background: #e2e8f0;
  border-radius: 999px;
  border: none;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.06);
}

.page-home .schedule-tab .nav-tabs .nav-item {
  width: auto;
  padding: 0;
  margin: 0;
}

.page-home .schedule-tab .nav-tabs .nav-item .nav-link {
  padding: 12px 24px;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: #272727 !important;
  font-weight: 600;
  transition: background 0.2s, color 0.2s;
}

.page-home .schedule-tab .nav-tabs .nav-item .nav-link h5 {
  color: inherit !important;
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
}

.page-home .schedule-tab .nav-tabs .nav-item .nav-link:hover {
  background: rgba(255, 255, 255, 0.7);
  color: #171822 !important;
}

.page-home .schedule-tab .nav-tabs .nav-item .nav-link.active {
  background: #CC0000 !important;
  color: #ffffff !important;
  box-shadow: 0 2px 8px rgba(204, 0, 0, 0.4);
}

#latest.active {
  background: #0f172a !important;
  color: #ffffff !important;
  box-shadow: 0 2px 8px rgba(204, 0, 0, 0.4);
}

.page-home .schedule-tab .nav-tabs .nav-item .nav-link.active h5 {
  color: #ffffff !important;
}

.page-home .schedule-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-home .schedule-tab .tab-content {
  width: 100%;
}

/* Grid 2 kolom desktop untuk kartu program */
.page-home .schedule-program-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 992px) {
  .page-home .schedule-program-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.schedule-program-card__header {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
}

/* Kartu program: thumbnail kiri + body kanan, badge, meta, CTA */
.page-home .schedule-program-card--link {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  background: #fff;
  /* border-radius: 12px; */
  border: 1px solid #e5e7eb;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  transition: box-shadow 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.page-home .schedule-program-card--link:hover {
  border-color: #d1d5db;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  color: inherit;
}

.page-home .schedule-program-card--link:hover .schedule-program-card__cta {
  background: #a30000 !important;
  box-shadow: 0 4px 14px rgba(204, 0, 0, 0.45);
}

.page-home .schedule-program-card__thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  background: #f1f5f9;
  flex-shrink: 0;
}

.page-home .schedule-program-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.page-home .schedule-program-card__thumb-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: #94a3b8;
  font-size: 0.875rem;
}

.page-home .schedule-program-card__thumb-placeholder i {
  font-size: 2rem;
}

.page-home .schedule-program-card__badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #fff;
}

.page-home .schedule-program-card__badge--terpopuler {
  /* background: #CC0000; */
  background: #0f172a;
}

.page-home .schedule-program-card__badge--terbaru {
  background: #0f172a;
}

.page-home .schedule-program-card__body {
  padding: 1rem 1rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}

.page-home .schedule-program-card__title {
  font-family: "Segoe UI", SegoeUI, "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: #171822;
  margin: 0;
  line-height: 1.35;
  display: -webkit-box;
  display: box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.page-home .schedule-program-card__instructor {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  font-size: 1rem;
  font-weight: 500;
  color: #272727;
}

.page-home .schedule-program-card__instructor i {
  color: #CC0000;
  flex-shrink: 0;
}

.page-home .schedule-program-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
  font-size: 1rem;
  color: #272727;
}

.page-home .schedule-program-card__meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.page-home .schedule-program-card__meta-item i {
  color: #94a3b8;
}

.page-home .schedule-program-card__mode {
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 0.95rem;
  font-weight: 600;
}

.page-home .schedule-program-card__mode--offline {
  background: #fef2f2;
  color: #b91c1c;
}

.page-home .schedule-program-card__mode--online {
  background: #eff6ff;
  color: #1d4ed8;
}

.page-home .schedule-program-card__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: auto;
  padding: 4rem 0 4rem;
  font-size: 1rem;
  font-weight: 600;
  /* border-radius: 8px; */
  transition: background 0.2s, box-shadow 0.2s;
}

.page-home .schedule-program-card__cta i {
  font-size: 0.95rem;
}

@media (max-width: 767px) {
  .page-home .schedule-program-card__cta_new {
    width: 100%;
  }

  .home-about-section {
    padding: 2rem 0 !important;
    background: #eef2f6;
  }
}

.schedule-program-card__cta_new {
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  transition: color 0.2s ease;
  background-color: #CC0000;
  width: 30%;
  justify-content: center;
  padding: 8px !important;
}

.schedule-program-card__cta_new:hover {
  background-color: #9e0303;
  transition: color 0.2s ease;
}

@media (max-width: 767px) {
  .page-home .schedule-tab .nav-tabs {
    flex-wrap: wrap;
    justify-content: center;
    padding: 6px;
    max-width: 280px;
  }

  .page-home .schedule-tab .nav-tabs .nav-item .nav-link {
    padding: 10px 18px;
  }

  .page-home .schedule-tab .nav-tabs .nav-item .nav-link h5 {
    font-size: 0.875rem;
  }

  .page-home .schedule-program-card__body {
    padding: 1rem 1rem 1.25rem;
  }

  .page-home .schedule-program-card__title {
    font-size: 1rem;
  }
}

.team-member-section {
  padding: 4rem 0 4rem;
  background: #ffffff;
}

.latest-blog {
  /* Default */
  padding: 4rem 0 4rem;
  background: #ffffff;
}

/* Home: section Topik Populer is separate now */

.contact-section {
  background: #eef2f6;
  padding: 4rem 0 4rem;
}

/* Navbar di home: awalnya transparan; setelah scroll .sticky (layout.js) → putih + logo gelap */
.page-home .header-section {
  background-color: transparent;
  border-bottom-color: transparent;
}

.page-home .header-section.sticky {
  background-color: #ffffff;
  border-bottom: 1px solid #e5e5e5;
}

/* ---- Hero (original layout, fluid typography) ---- */
.hero-section.hero-home {
  background-position-y: 38%;
  padding-bottom: 100px;
  margin-top: -90px;
  height: 100vh;
  min-height: 100vh;
  min-height: 100dvh;
}

.hero-section.hero-home .container {
  flex: 0 0 auto;
}

.trust-home-section {
  height: 75%;
  justify-content: center;
  display: flex;
}

.hero-section.hero-home .row {
  align-items: center;
}

.home-about-section .row {
  align-items: start;
}

.hero-section.hero-home .hero-text .hero-title {
  margin-top: 5%;
}

.page-home .hero-section.hero-home .hero-text .hero-title {
  font-size: clamp(1.75rem, 1.4rem + 2.6vw, 3.75rem);
  line-height: 1.2;
  margin-bottom: clamp(0.75rem, 0.4rem + 1vw, 2rem);
}

.hero-section.hero-home .hero-subtitle {
  color: #fff;
  font-size: clamp(0.95rem, 0.85rem + 0.6vw, 1.5rem);
  line-height: 1.4;
  margin-bottom: clamp(0.75rem, 0.5rem + 0.8vw, 1.5rem);
}

.hero-section.hero-home .hero-cta {
  margin-top: clamp(0.5rem, 1vh, 1.5rem);
}

/* ---- Hero yang memuat kartu agenda event (partials.hero-event-slider) ----
   Hero jadi kolom flex: blok teks hero mengisi ruang yang tersisa di atas dan
   kartu event menempel di dasar banner. Kelasnya hanya dipasang kalau memang
   ada event mendatang (lihat Pages/home.blade.php), jadi tanpa event hero tetap
   seperti semula: tinggi tetap 100vh dengan teks di 75% bagian atas, tanpa
   bidang putih di bawah.

   height: auto menggantikan height: 100vh - min-height di aturan dasar sudah
   menjaga hero setinggi layar, dan dengan height tetap, hero pada layar sangat
   pendek akan memotong kartunya.

   z-index menaikkan hero di atas section berikutnya: bayangan kartu jatuh ke
   luar kotak hero, dan tanpa ini latar putih section pencarian menimpanya -
   bayangannya terpotong rata persis di garis batas. */
.hero-section.hero-home--with-events {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  height: auto;
  padding-bottom: 0;
}

/* Bidang putih di dasar hero. Separuh bawah kartu tiket duduk di atasnya, jadi
   kartunya tampak menumpang di garis batas hero dan section putih berikutnya -
   tanpa perlu kartunya benar-benar keluar dari hero. Tingginya dibaca dari
   events.css (--ev-hero-overlap) supaya satu angka saja yang mengaturnya di
   tiap breakpoint. */
.hero-section.hero-home--with-events::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: var(--ev-hero-overlap, 84px);
  background: #ffffff;
}

/* Menimpa height: 75% milik .trust-home-section: teks hero sekarang terpusat di
   ruang di atas kartu, bukan di 75% bagian atas hero. */
.hero-section.hero-home--with-events .trust-home-section {
  height: auto;
  flex: 1 1 auto;
  align-items: center;
}

/* ---- Search section (full width, breathing room) ---- */
.home-hero-search {
  position: relative;
  width: 100%;
  padding: 4rem 0 4rem;
  overflow: hidden;
  font-family: "Segoe UI", SegoeUI, "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.home-hero-search-bg {
  position: absolute;
  inset: 0;
  background: #ffffff;
  z-index: 0;
}

.home-hero-search-container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.25rem;
  box-sizing: border-box;
}

.home-hero-search-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 2.5rem;
  align-items: center;
  min-height: 0;
  width: 100%;
}

.home-hero-headline {
  font-family: "Segoe UI", SegoeUI, "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: #000000;
  margin: 0 0 0.6rem 0;
  padding-top: 0;
  line-height: 1.3;
  letter-spacing: 0;
}

.home-hero-headline-accent {
  color: #CC0000;
}

p {
  color: #272727;
}

.home-hero-subheadline {
  font-size: 1rem;
  font-weight: 400;
  color: #272727;
  line-height: 1.55;
  margin: 0 0 0.5rem 0;
}

.home-search-card {
  background: var(--home-bg);
  border-radius: 20px;
  padding: 1.25rem 1.5rem 1.4rem;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06), 0 0 0 1px var(--home-border);
  border: none;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
  height: 100%;
}

.home-search-card:hover {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08), 0 0 0 1px var(--home-border);
}

.home-search-form {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.home-search-row {
  display: grid;
  grid-template-columns: 1fr 200px;
  gap: 0.65rem;
  align-items: end;
}

/* new search */
.home-search-group {
  display: flex;
  width: 100%;
  border: 1px solid var(--home-border);
  background: var(--home-bg-soft);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.home-search-new {
  display: none;
}

/* tampil di tablet & mobile */
@media (max-width: 768px) {
  .home-search-new {
    display: flex;
    flex-direction: column;
    gap: 6px;
  }

  .home-search-group {
    display: none;
  }
}

/* Tablet specific styles */
@media (min-width: 769px) and (max-width: 1023px) {
  /* Header tablet adjustments */
  .header-section .container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
  
  .nav-menu .mainmenu ul li {
    margin-right: 15px;
  }
  
  .nav-menu .mainmenu ul li a {
    font-size: 0.9rem;
    padding: 0.5rem 0;
  }
  
  .logo img {
    max-height: 40px;
    width: auto;
  }
  
  /* Hero search section tablet adjustments */
  .home-hero-search-container {
    padding: 2rem 1rem;
  }
  
  .home-hero-search-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .home-hero-headline {
    font-size: 2rem;
  }
  
  .home-hero-subheadline {
    font-size: 1rem;
  }
  
  /* Search form tablet layout */
  .home-search-group {
    flex-direction: column;
    gap: 0.75rem;
  }
  
  .home-search-input-new {
    width: 100%;
  }
  
  .home-search-category-new {
    width: 100%;
  }
  
  .home-search-btn-new {
    width: 100%;
  }
  
  /* Trust signals tablet layout */
  .home-trust-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }
  
  .home-trust-item {
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
  }
  
  /* Program grid tablet layout */
  .page-home .schedule-program-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  /* Section titles tablet adjustments */
  .page-home .section-title h2,
  .page-home .options-section-headline,
  .page-home .home-about-section .ha-text h2 {
    font-size: 2rem;
  }
  
  /* About section tablet layout */
  .home-about-section .row {
    align-items: start;
  }
  
  .home-about-section .ha-text {
    padding: 0 1rem;
  }
  
  /* Options cards tablet layout */
  .options-section .options-cards-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  
  /* Trending topics tablet layout */
  .home-popular-topics-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
  }
  
  .home-search-trending-tag {
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
  }
  
  /* Footer tablet adjustments */
  .footer-section .container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
  
  .footer-partner-label {
    font-size: 0.9rem;
    margin-bottom: 1rem;
  }
  
  #partner-carousel .splide__slide img {
    max-height: 40px;
    width: auto;
  }
  
  /* Contact form tablet adjustments */
  .contact-section .container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
  
  .contact-section .row {
    gap: 2rem;
  }
}


/* keyword input */
.home-search-input-new {
  display: flex;
  align-items: center;
  flex: 1;
  padding: 0 10px;
}

.home-search-input-new input {
  flex: 1;
  border: none;
  padding: 14px 10px;
  font-size: 15px;
  outline: none;
  background: transparent;
}

.home-search-icon-new {
  flex-shrink: 0;
  width: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  pointer-events: none;
  opacity: 0.9;
}

/* category select */
.home-search-category-new {
  border: none;
  padding: 0 15px;
  color: #272727;
  margin: 5px;
  font-size: 14px;
  border-left: 2px solid #eee;
  outline: none;
  background-color: transparent;
  margin-right: 5px;
}

/* button */
.home-search-btn-new {
  border: none;
  background: var(--home-primary);
  color: white;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  font-weight: 500;
}

.home-search-btn-new:hover {
  opacity: .9;
}

.row {
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  margin-right: -15px;
  margin-left: -15px;
}

/* new search */

.home-search-label {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  color: #272727;
  margin-bottom: 0.35rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.home-search-label i {
  margin-right: 0.35rem;
  opacity: 0.85;
}

.home-search-input-wrap {
  display: flex;
  align-items: center;
  border: 1px solid var(--home-border);
  border-radius: 12px;
  background: var(--home-bg-soft);
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.home-search-input-wrap:focus-within {
  border-color: var(--home-primary);
  box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.12);
  background: var(--home-bg);
}

.home-search-input-wrap .home-search-icon {
  flex-shrink: 0;
  width: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--home-primary);
  font-size: 1.05rem;
  pointer-events: none;
  opacity: 0.9;
}

.home-search-input-wrap .home-search-input {
  flex: 1;
  min-width: 0;
  padding: 0.85rem 1.15rem 0.85rem 0.95rem;
  border: none;
  border-radius: 0;
  font-size: 1rem;
  background: transparent;
  transition: background 0.2s;
}

.home-search-input-wrap .home-search-input::placeholder {
  color: #272727;
}

.home-search-input-wrap .home-search-input:focus {
  outline: none;
  background: transparent;
}

.home-search-filter-wrap {
  flex-shrink: 0;
}

.home-search-filter-wrap .home-search-label {
  margin-bottom: 0.3rem;
}

.home-search-filter {
  width: 100%;
  padding: 0.8rem 1.75rem 0.8rem 0.85rem;
  border: 1px solid var(--home-border);
  border-radius: 12px;
  font-size: 0.95rem;
  background: var(--home-bg-soft);
  color: var(--home-text);
  cursor: pointer;
  appearance: auto;
}

.home-search-filter:focus {
  outline: none;
  border-color: var(--home-primary);
}

.home-search-btn {
  padding: 0.8rem 1.5rem;
  background: linear-gradient(135deg, var(--home-primary) 0%, var(--home-primary-dark) 100%);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
  align-self: flex-start;
  box-shadow: 0 4px 14px rgba(230, 57, 70, 0.35);
}

.home-search-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(230, 57, 70, 0.4);
  background: linear-gradient(135deg, var(--home-primary-dark) 0%, #9d0f1a 100%);
}

.home-search-btn:active {
  transform: translateY(0);
}

.home-search-cta-micro {
  font-size: 0.95rem;
  color: #272727;
  margin: 0;
  line-height: 1.4;
}

.home-search-trending {
  margin-top: 0;
  padding-top: 0.55rem;
  /* border-top: 1px solid #e2e8f0; */
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.65rem;
}

.home-search-trending-label {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: #272727;
  font-size: 1rem;
  font-weight: 600;
  flex-shrink: 0;
}

.home-search-trending-label i.fa-fire {
  color: #ea580c;
}

.home-search-trending-tags {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
}

.home-search-trending-tag {
  display: inline-block;
  padding: 0.4rem 0.85rem;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 9999px;
  color: #272727;
  font-size: 1rem;
  font-weight: 400;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}

.home-search-trending-tag:hover {
  background: #fef2f2;
  border-color: #fecaca;
  color: var(--home-primary);
}

/* Home: Topik Populer section */
.home-popular-topics-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}

.home-popular-topics-empty {
  color: #272727;
  font-size: 0.95rem;
}

/* Right column: overlapping speaker cards */
.home-hero-search-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.home-hero-visual-frame {
  width: 100%;
  max-width: 300px;
  position: relative;
  min-height: 220px;
}

.home-hero-speaker-collage {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
  position: relative;
}

.home-hero-collage-item {
  display: block;
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 1;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  background: var(--home-bg-soft);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.home-hero-collage-item:nth-child(1) {
  transform: rotate(-3deg);
}

.home-hero-collage-item:nth-child(2) {
  transform: rotate(2deg);
}

.home-hero-collage-item:nth-child(3) {
  transform: rotate(2deg);
}

.home-hero-collage-item:nth-child(4) {
  transform: rotate(-2deg);
}

.home-hero-collage-item:hover {
  transform: rotate(0deg) scale(1.04);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
  z-index: 2;
}

.home-hero-collage-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.home-hero-visual-placeholder {
  width: 100%;
  aspect-ratio: 1;
  max-width: 200px;
  margin: 0 auto;
  border-radius: 14px;
  background: linear-gradient(145deg, #e2e8f0 0%, #cbd5e1 100%);
}

/* ---- Trust signals (soft block) ---- */
.home-trust-signals {
  position: relative;
  padding: 0 0 4rem;
  background: var(--home-trust-bg);
  border-bottom: none;
  font-family: "Segoe UI", SegoeUI, "Helvetica Neue", Helvetica, Arial, sans-serif;
  background: #ffffff;
}

.home-trust-signals::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 22px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 22'%3E%3Cpath fill='%23ffffff' d='M0 0v22h1440V0q-360 11-720 0T0 0z'/%3E%3C/svg%3E") no-repeat center top;
  background-size: 100% 22px;
  pointer-events: none;
}

.home-trust-grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0 auto;
  gap: 2rem;
}

.home-trust-item {
  flex: 1;
  /* biar semua item sama lebar */
  display: flex;
  align-items: center;
  justify-content: center;
  /* konten di tengah */
  gap: 0.95rem;
  font-size: 1rem;
  color: var(--home-text-muted);
  text-align: center;
}

.home-trust-text {
  display: flex;
  flex-direction: column;
  align-items: start;
  gap: 0.25rem;
  width: 250px;
}

.home-trust-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--home-primary);
  width: 100%;
  letter-spacing: -0.02em;
}

.home-trust-label {
  font-weight: 600;
  width: 100%;
  color: var(--home-text);
}

.home-trust-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(230, 57, 70, 0.12);
  color: var(--home-primary);
  font-size: 1rem;
}

/* ---- Responsive ---- */
@media (max-width: 991px) {
  .home-hero-search-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    min-width: 0;
  }

  .home-hero-search-content {
    min-width: 0;
  }

  .home-hero-search-visual {
    order: -1;
    min-width: 0;
  }

  .home-hero-visual-frame {
    max-width: 220px;
    margin: 0 auto;
  }

  .home-hero-speaker-collage {
    margin: 0 auto;
  }

  .home-hero-collage-item:nth-child(1),
  .home-hero-collage-item:nth-child(2),
  .home-hero-collage-item:nth-child(3),
  .home-hero-collage-item:nth-child(4) {
    transform: none;
  }

  .home-hero-headline {
    text-align: center;
  }

  .home-hero-subheadline {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }

  .home-search-card {
    min-width: 0;
  }

  .home-search-btn {
    align-self: stretch;
  }
}

@media (max-width: 767px) {
  /* Hide the speaker collage / visual on phones — keep the hero focused on search */
  .home-hero-search-visual {
    display: none;
  }

  .home-hero-search {
    padding: 2rem 0 3rem;
    overflow-x: hidden;
  }

  .home-hero-search-container {
    padding-left: 1rem;
    padding-right: 1rem;
    min-width: 0;
  }

  .home-hero-search-grid {
    min-width: 0;
    gap: 1.5rem;
  }

  .home-hero-search-content {
    min-width: 0;
  }

  .home-hero-headline {
    font-size: 1.65rem;
    word-break: break-word;
  }

  .home-hero-subheadline {
    max-width: 100%;
  }

  .home-search-card {
    min-width: 0;
    padding: 1rem 1.1rem 1.2rem;
  }

  .home-search-form {
    min-width: 0;
  }

  .home-search-row {
    grid-template-columns: 1fr;
    gap: 0.5rem;
    min-width: 0;
  }

  .home-search-input-wrap {
    min-width: 0;
  }

  .home-search-filter-wrap {
    min-width: 0;
  }

  .home-search-filter {
    width: 100%;
    max-width: 100%;
  }

  .home-search-btn {
    align-self: stretch;
    width: 100%;
    justify-content: center;
  }

  .home-search-trending {
    flex-direction: column;
    padding: 0;
    align-items: flex-start;
    min-width: 0;
    width: 100%;
  }

  .home-search-trending-tags {
    width: 100%;
    min-width: 0;
  }

  .home-trust-grid {
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
  }
}

@media (max-width: 480px) {
  .home-hero-headline {
    font-size: 1.4rem;
  }

  .home-search-card {
    padding: 0.9rem 1rem 1rem;
  }

  .home-search-input-wrap .home-search-input {
    font-size: 16px;
    /* avoids zoom on focus on iOS */
  }

  .home-search-trending-tags {
    max-width: 100%;
    overflow-x: auto;
    flex-wrap: wrap;
    padding-bottom: 0.25rem;
    -webkit-overflow-scrolling: touch;
    gap: 0.35rem;
  }

  .home-search-trending-tag {
    flex-shrink: 0;
    padding: 0.35rem 0.7rem;
    font-size: 0.95rem;
  }
}

/* Mobile: kecilkan font trending tag (search & topik populer) di home */
@media (max-width: 767px) {
  .home-search-trending-tag {
    font-size: 0.78rem;
    padding: 0.3rem 0.65rem;
  }
}

/* About section */
.ha-text .about-desc {
  text-align: justify;
  font-size: 1.0625rem;
  line-height: 1.75;
  letter-spacing: 0.01em;
  color: #4b5563;
  margin-bottom: 2rem;
  padding-left: 1rem;
  padding-right: 1rem;
}

.ha-text .about-title {
  font-family: "Segoe UI", SegoeUI, "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: clamp(2.25rem, 1.8rem + 1.5vw, 3.25rem);
  font-weight: 700;
  color: #171822;
  line-height: 1.25;
  letter-spacing: 0;
  margin: 0 0 0.95rem 0;
}

.ha-text .about-title .about-title-accent {
  color: #CC0000;
}

/* Schedule / program list */
.st-content .sc-pic .placeholder-text {
  display: flex;
}

.st-content .sc-pic .placeholder-text.has-poster {
  display: none !important;
}

.st-content .sc-pic img[src=""],
.st-content .sc-pic img[src*="undefined"] {
  display: none;
}

.st-content-link {
  text-decoration: none;
  color: inherit;
}

/* Options section – 3 cards: photo + red overlay, white card, brand CTA */
.options-section {
  --home-primary: #CC0000;
  --home-primary-dark: #c1121f;
  --options-card-border: #e5e7eb;
  --options-card-text: #111827;
  --options-card-desc: #4b5563;
  padding: 4rem 0 4rem;
}

/* Section title: same font as hero (Plus Jakarta Sans, bold), accent word in red */
.options-section-header {
  text-align: center;
  margin-bottom: 2rem;
}

.options-section-headline {
  font-family: "Segoe UI", SegoeUI, "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 3rem !important;
  font-weight: 700;
  color: #000000;
  margin: 0 0 0.6rem 0;
  line-height: 1.3;
  letter-spacing: 0;
}

.options-section-headline-accent {
  color: #CC0000;
}

.options-section-subheadline {
  font-family: "Segoe UI", SegoeUI, "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 1rem;
  font-weight: 400;
  color: #6b7280;
  line-height: 1.55;
  margin: 0;
  margin-left: auto;
  margin-right: auto;
}

.options-section .options-cards-row {
  margin-left: -0.5rem;
  margin-right: -0.5rem;
}

.options-card-link {
  display: block;
  height: 100%;
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--options-card-border, #e5e7eb);
  /* border-radius: 8px; */
  background: #ffffff;
  overflow: hidden;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.options-card-link:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  border-color: rgba(230, 57, 70, 0.4);
}

.options-card-link:hover .options-card-cta {
  color: var(--home-primary);
}

.options-card-image-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  min-height: 200px;
  overflow: hidden;
  background: #f3f4f6;
}

.options-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.options-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(230, 57, 70, 0.25) 0%, rgba(230, 57, 70, 0.45) 100%);
  pointer-events: none;
}

.options-card-body {
  padding: 1.5rem 1.25rem 1.75rem;
}

.options-card-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--options-card-text, #111827);
  margin: 0 0 0.5rem 0;
  line-height: 1.3;
  text-transform: none;
  letter-spacing: normal;
}

.options-card-desc {
  font-size: 1rem;
  line-height: 1.5;
  color: var(--options-card-desc, #4b5563);
  margin: 0 0 1rem 0;
  /* text-align: justify; */
  max-width: 100%;
}

.options-card-cta {
  font-size: 1rem;
  font-weight: 600;
  color: var(--home-primary);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  transition: color 0.2s ease;
}

.options-card-cta .arrow_right {
  margin-left: 0.15rem;
}

@media (min-width: 992px) {
  .options-section .options-cards-row {
    margin-right: 0;
  }
}

@media (max-width: 767px) {
  .options-section-headline {
    font-size: 1.65rem;
  }
}

/* ========== Home: Jelajahi Inspirasi (card sama seperti Speakers) ========== */
.home-experts-section .section-title {
  margin-bottom: 2rem;
}

.home-experts-section .section-title h2 {
  margin-bottom: 0.5rem;
}

.home-speakers-grid {
  margin-left: -0.5rem;
  margin-right: -0.5rem;
}

.home-speaker-card {
  background: #fff;
  /* border-radius: 20px; */
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  border: 1px solid #f0efed;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s;
}

.home-speaker-card:hover {
  box-shadow: 0 6px 28px rgba(0, 0, 0, 0.1);
}

.home-speaker-card__photo {
  position: relative;
  display: block;
  height: 280px;
  width: 100%;
  overflow: hidden;
  background: #0a0a0a;
}

.home-speaker-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.home-speaker-card__badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: #cc0000;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 2px 12px rgba(204, 0, 0, 0.35);
}

.home-speaker-card__badge i {
  font-size: 14px;
}

.home-speaker-card__body {
  padding: 1rem 1rem 1rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.home-speaker-card__name {
  font-family: "Segoe UI", SegoeUI, "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: #111;
  margin: 0 0 2px 0;
  line-height: 1.3;
}

.home-speaker-card__name a {
  color: inherit;
  text-decoration: none;
}

.home-speaker-card__name a:hover {
  color: #8b0000;
}

.home-speaker-card__role {
  font-size: 0.875rem;
  color: #888;
  margin: 0 0 0.5rem 0;
  line-height: 1.4;
}

.home-speaker-card__link {
  font-size: 1rem;
  font-weight: 600;
  color: #cc0000;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: auto;
  transition: color 0.2s;
}

.home-speaker-card__link:hover {
  color: #8b0000;
  text-decoration: underline;
}

.home-speaker-card__link i {
  font-size: 0.95rem;
  transition: transform 0.2s;
}

.home-speaker-card__link:hover i {
  transform: translateX(3px);
}

/* ========== Home desktop: roomier, consistent left/right gutter ==========
   Bootstrap's default 15px container padding leaves content hugging the edges
   on laptops (a 1140px container nearly fills a ~1280px screen). Give every
   home section the same comfortable 2rem gutter. Scoped to .page-home so the
   header, footer and other pages are untouched. */
@media (min-width: 992px) {
  .page-home .container,
  .page-home .home-hero-search-container {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

/* ========== Home mobile responsive ========== */
@media (max-width: 991px) {

  .page-home .team-member-section .container,
  .page-home .home-about-section .container,
  .page-home .schedule-section .container,
  .page-home .latest-blog .container {
    /* Match the gutter used by every other home section (see the
       max-width:767px rule below) so horizontal edges align across sections. */
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .home-speakers-grid {
    margin-left: 0;
    margin-right: 0;
  }

  .home-speaker-card__photo {
    height: 260px;
  }
}

@media (max-width: 767px) {
  /* Unified horizontal padding: every section on the home page shares the same
     left/right gutter so cards and content align visually across the screen. */
  .page-home .container,
  .page-home .hero-section.hero-home .container,
  .page-home .options-section .container,
  .page-home .team-member-section .container,
  .page-home .latest-blog .container,
  .page-home .contact-section .container,
  .page-home .home-hero-search-container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .home-speaker-card__photo {
    height: 240px;
  }

  .home-speaker-card__body {
    padding: 1rem 1rem 1.25rem;
  }

  .home-speaker-card__name {
    font-size: 1.1rem;
  }

  .page-home .spad,
  .page-home .schedule-section.spad,
  .page-home .latest-blog.spad {
    padding-top: 2rem;
    padding-bottom: 2rem;
  }

  /* About content inherits container gutter only — no extra horizontal padding. */
  .page-home .home-about-section .ha-text {
    padding-left: 0;
    padding-right: 0;
  }

  /* Speakers grid: align card edges with other sections (match Bootstrap row -15px). */
  .home-speakers-grid,
  .options-section .options-cards-row {
    margin-left: -15px;
    margin-right: -15px;
  }
}

/* Tablet / large phone band: options cards still used the 0.5rem gutter here while
   every other section uses Bootstrap's -15px row, leaving the "Layanan Profesional"
   cards inset ~7px more than the rest. Match -15px so the horizontal edges align. */
@media (min-width: 768px) and (max-width: 991px) {
  .options-section .options-cards-row {
    margin-left: -15px;
    margin-right: -15px;
  }
}