/*
Theme Name: HerTech - Perempuan Berdaya AI
Theme URI: https://s.id/hertech
Author: ICT Watch / Internet Sehat
Author URI: https://www.ictwatch.id
Description: Tema WordPress clean berlatar putih untuk pelaporan program HerTech: Perempuan Berdaya AI. Dilengkapi kustomisasi lengkap melalui Appearance > Customize (Hero, Tentang Program, Statistik Pencapaian, Wilayah Intervensi, Kurikulum s.id/hertech, Galeri Kegiatan, Mitra Kolaborasi, dan Kontak).
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: hertech
*/

:root {
  --ht-primary: #FF2B2B;
  --ht-secondary: #F97316;
  --ht-ink: #0F172A;
  --ht-muted: #475569;
  --ht-border: #E2E8F0;
  --ht-bg: #FFFFFF;
  --ht-bg-soft: #F8FAFC;
  --ht-radius: 18px;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background-color: var(--ht-bg);
  color: var(--ht-ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

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

.ht-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.ht-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #F1F5F9;
}

.ht-header-inner {
  height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.ht-brand img, .ht-brand .custom-logo {
  height: 50px;
  width: auto;
  object-fit: contain;
}

.ht-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.ht-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 26px;
}

.ht-nav a {
  font-size: 14px;
  font-weight: 600;
  color: var(--ht-muted);
  transition: color 0.2s ease;
}

.ht-nav a:hover {
  color: var(--ht-ink);
}

.ht-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  padding: 12px 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
}

.ht-btn-primary {
  background-color: var(--ht-primary);
  color: #FFFFFF;
  box-shadow: 0 8px 20px -6px rgba(255, 43, 43, 0.35);
}

.ht-btn-primary:hover {
  filter: brightness(0.92);
  transform: translateY(-1px);
}

.ht-btn-outline {
  background: #FFFFFF;
  color: var(--ht-ink);
  border-color: var(--ht-border);
}

.ht-btn-outline:hover {
  background: var(--ht-bg-soft);
}

.ht-menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--ht-border);
  border-radius: 10px;
  padding: 8px 10px;
  cursor: pointer;
  color: var(--ht-ink);
}

/* Sections */
.ht-section {
  padding: 84px 0;
}

.ht-section-soft {
  background-color: var(--ht-bg-soft);
  border-top: 1px solid #F1F5F9;
  border-bottom: 1px solid #F1F5F9;
}

.ht-eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ht-primary);
  margin-bottom: 10px;
}

.ht-title {
  margin: 0;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.02em;
  color: var(--ht-ink);
}

.ht-subtitle {
  margin: 14px 0 0;
  font-size: 16px;
  color: var(--ht-muted);
  max-width: 660px;
}

/* Hero */
.ht-hero {
  padding: 72px 0 92px;
  border-bottom: 1px solid #F1F5F9;
  background: radial-gradient(circle at 92% 10%, rgba(255, 43, 43, 0.05), transparent 36%), #FFFFFF;
}

.ht-hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.ht-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 43, 43, 0.08);
  color: var(--ht-primary);
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 20px;
}

.ht-hero h1 {
  margin: 0;
  font-size: clamp(34px, 4.6vw, 52px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.025em;
}

.ht-hero p {
  margin: 20px 0 28px;
  font-size: 17px;
  color: var(--ht-muted);
}

.ht-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.ht-hero-card {
  background: var(--ht-bg-soft);
  border: 1px solid var(--ht-border);
  border-radius: 26px;
  padding: 16px;
  box-shadow: 0 20px 45px -20px rgba(15, 23, 42, 0.12);
}

/* Hero Photo Carousel */
.ht-carousel {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  background: #0F172A;
  aspect-ratio: 4 / 3;
}

.ht-carousel-track {
  display: flex;
  height: 100%;
  transition: transform 0.5s ease;
}

.ht-carousel-slide {
  min-width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  align-items: flex-end;
}

.ht-carousel-slide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ht-carousel-caption {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 28px 20px 42px;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.85), transparent);
  color: #FFFFFF;
  font-size: 14px;
  font-weight: 700;
}

.ht-carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.92);
  color: #0F172A;
  font-size: 18px;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
}

.ht-carousel-btn:hover {
  background: #FFFFFF;
}

.ht-carousel-prev { left: 12px; }
.ht-carousel-next { right: 12px; }

.ht-carousel-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.4);
}

.ht-carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: none;
  padding: 0;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: width 0.2s ease, background 0.2s ease;
}

.ht-carousel-dot.is-active {
  width: 22px;
  background: #FFFFFF;
}

/* OpenStreetMap Container */
.ht-map-container {
  width: 100%;
  height: 380px;
  border-radius: 18px;
  border: 1px solid var(--ht-border);
  margin-top: 20px;
  overflow: hidden;
  background: #F1F5F9;
}

.ht-map-container .leaflet-pane,
.ht-map-container .leaflet-top,
.ht-map-container .leaflet-bottom {
  z-index: 10 !important;
}

/* About */
.ht-about-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 48px;
  align-items: start;
}

.ht-about-text p {
  margin: 0 0 18px;
  color: var(--ht-muted);
  font-size: 16px;
}

/* Stats */
.ht-stats-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
  margin-top: 42px;
}

.ht-stat-card {
  background: #FFFFFF;
  border: 1px solid var(--ht-border);
  border-radius: var(--ht-radius);
  padding: 26px 18px;
  text-align: center;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.ht-stat-card:hover {
  border-color: var(--ht-primary);
  transform: translateY(-2px);
}

.ht-stat-num {
  font-size: 34px;
  font-weight: 800;
  color: var(--ht-primary);
  line-height: 1.1;
}

.ht-stat-card:nth-child(even) .ht-stat-num {
  color: var(--ht-ink);
}

.ht-stat-card:nth-child(5) .ht-stat-num {
  color: var(--ht-secondary);
}

.ht-stat-label {
  margin-top: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ht-muted);
}

/* Regions */
.ht-regions-box {
  margin-top: 32px;
  background: #FFFFFF;
  border: 1px solid var(--ht-border);
  border-radius: 24px;
  padding: 32px;
}

.ht-regions-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.ht-region-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--ht-bg-soft);
  border: 1px solid var(--ht-border);
  font-size: 13px;
  font-weight: 600;
  color: #334155;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.ht-region-pill:hover {
  border-color: var(--ht-primary);
  background: #FFFFFF;
}

.ht-region-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ht-primary);
}

/* Curriculum */
.ht-curriculum-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.ht-card {
  background: #FFFFFF;
  border: 1px solid var(--ht-border);
  border-radius: 20px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.ht-card:hover {
  border-color: rgba(255, 43, 43, 0.35);
  box-shadow: 0 18px 36px -20px rgba(15, 23, 42, 0.14);
}

.ht-card-num {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(255, 43, 43, 0.08);
  color: var(--ht-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 16px;
  margin-bottom: 18px;
}

.ht-card h3 {
  margin: 0 0 10px;
  font-size: 19px;
  font-weight: 800;
}

.ht-card p {
  margin: 0;
  font-size: 14px;
  color: var(--ht-muted);
  flex: 1;
}

/* Gallery */
.ht-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 36px;
}

.ht-gallery-item {
  background: #FFFFFF;
  border: 1px solid var(--ht-border);
  border-radius: 18px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ht-gallery-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 30px -16px rgba(15, 23, 42, 0.16);
}

.ht-gallery-img-wrap {
  aspect-ratio: 16 / 10;
  background: #F1F5F9;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ht-gallery-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ht-gallery-caption {
  padding: 14px 16px;
  font-size: 14px;
  font-weight: 700;
  color: var(--ht-ink);
}

/* Lightbox */
.ht-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.88);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.ht-lightbox.is-open {
  display: flex;
}

.ht-lightbox-inner {
  max-width: 960px;
  width: 100%;
  text-align: center;
}

.ht-lightbox-inner img {
  max-height: 78vh;
  margin: 0 auto;
  border-radius: 14px;
}

.ht-lightbox-caption {
  color: #FFFFFF;
  margin-top: 14px;
  font-weight: 600;
  font-size: 15px;
}

.ht-lightbox-close {
  position: fixed;
  top: 20px;
  right: 24px;
  background: #FFFFFF;
  color: #0F172A;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 22px;
  font-weight: 700;
  cursor: pointer;
}

/* Partners */
.ht-partners-image {
  margin: 32px auto 0;
  max-width: 920px;
  border-radius: 20px;
  border: 1px solid var(--ht-border);
  padding: 20px;
  background: #FFFFFF;
}

/* Footer */
.ht-footer {
  background: #0F172A;
  color: #CBD5E1;
  padding: 64px 0 36px;
}

.ht-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid #1E293B;
}

.ht-footer-logo-box {
  display: inline-block;
  background: #FFFFFF;
  padding: 8px 16px;
  border-radius: 12px;
  margin-bottom: 16px;
}

.ht-footer-logo-box img {
  height: 38px;
  width: auto;
}

.ht-footer h4 {
  color: #FFFFFF;
  margin: 0 0 14px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

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

.ht-footer li {
  margin-bottom: 8px;
  font-size: 14px;
}

.ht-footer a:hover {
  color: #FFFFFF;
}

.ht-footer-bottom {
  padding-top: 24px;
  font-size: 13px;
  color: #64748B;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
}

/* Blog / Page Content */
.ht-article-wrap {
  max-width: 820px;
  margin: 0 auto;
  padding: 64px 24px;
}

/* Responsive */
@media (max-width: 992px) {
  .ht-hero-grid,
  .ht-about-grid,
  .ht-footer-grid {
    grid-template-columns: 1fr;
  }
  .ht-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .ht-curriculum-grid,
  .ht-gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .ht-menu-toggle {
    display: inline-flex;
  }
  .ht-nav {
    display: none;
    position: absolute;
    top: 82px;
    left: 0;
    right: 0;
    background: #FFFFFF;
    border-bottom: 1px solid var(--ht-border);
    padding: 20px 24px;
    flex-direction: column;
    align-items: flex-start;
  }
  .ht-nav.is-open {
    display: flex;
  }
  .ht-nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
  .ht-curriculum-grid,
  .ht-gallery-grid {
    grid-template-columns: 1fr;
  }
}
