/* ==============================
   LPK WEBSITE - MAIN STYLESHEET
   ============================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Noto+Sans+JP:wght@300;400;500;700&display=swap');

:root {
  --primary: #1a3a5c;
  --primary-light: #2a5080;
  --accent: #e84040;
  --accent-light: #ff5555;
  --white: #ffffff;
  --off-white: #f8fafc;
  --muted: #f1f5f9;
  --border: #e2e8f0;
  --text: #1e293b;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.10);
  --shadow-lg: 0 10px 40px rgba(0,0,0,0.12);
  --shadow-xl: 0 20px 60px rgba(0,0,0,0.15);
  --radius: 4px;
  --transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter', 'Noto Sans JP', sans-serif; color: var(--text); background: var(--white); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

/* ======== UTILITIES ======== */
.container { max-width: 1280px; margin: 0 auto; padding: 0 1.5rem; }
@media(min-width:640px) { .container { padding: 0 2rem; } }
@media(min-width:1024px) { .container { padding: 0 2.5rem; } }

.section-label { display: inline-block; color: var(--accent); font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.15em; margin-bottom: 0.75rem; }
.section-title { font-size: clamp(1.8rem, 3vw, 2.5rem); font-weight: 800; color: var(--text); line-height: 1.2; }
.section-subtitle { margin-top: 1rem; color: var(--text-muted); font-size: 1.05rem; line-height: 1.7; max-width: 640px; }
.section-header { text-align: center; margin-bottom: 4rem; }
.section-header .section-subtitle { margin-left: auto; margin-right: auto; }

.btn { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.875rem 2rem; font-size: 0.9rem; font-weight: 600; border: none; cursor: pointer; transition: var(--transition); border-radius: var(--radius); text-decoration: none; }
.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover { background: var(--primary-light); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-accent { background: var(--accent); color: white; }
.btn-accent:hover { background: var(--accent-light); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(232,64,64,0.35); }
.btn-outline { background: transparent; color: white; border: 2px solid rgba(255,255,255,0.4); backdrop-filter: blur(4px); }
.btn-outline:hover { background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.7); }
.btn-outline-dark { background: transparent; color: var(--primary); border: 2px solid var(--primary); }
.btn-outline-dark:hover { background: var(--primary); color: white; }

/* ======== ANIMATIONS ======== */
@keyframes fadeUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes kenBurns { from { transform: scale(1.1); } to { transform: scale(1); } }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes countUp { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideIn { from { transform: translateX(-20px); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@keyframes pulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.05); } }

.animate-on-scroll { opacity: 0; transform: translateY(30px); transition: opacity 0.7s ease, transform 0.7s ease; }
.animate-on-scroll.visible { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.15s !important; }
.delay-2 { transition-delay: 0.3s !important; }
.delay-3 { transition-delay: 0.45s !important; }
.delay-4 { transition-delay: 0.6s !important; }

/* ======== NAVBAR ======== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 500;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}
.navbar.scrolled { box-shadow: var(--shadow-md); }
.navbar-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.navbar-logo img { height: 52px; max-width: 240px; width: auto; object-fit: contain; display: block; }
.navbar-logo span { font-size: 1.25rem; font-weight: 800; color: var(--primary); }
.navbar-menu { display: flex; align-items: center; gap: 0.25rem; }
.navbar-menu a, .navbar-menu .dropdown-toggle { display: flex; align-items: center; gap: 0.3rem; padding: 0.5rem 1rem; font-size: 0.875rem; font-weight: 500; color: var(--text); border-radius: var(--radius); transition: var(--transition); cursor: pointer; background: none; border: none; font-family: inherit; }
.navbar-menu a:hover, .navbar-menu .dropdown-toggle:hover { color: var(--accent); background: var(--muted); }
.navbar-menu a.active-nav { color: var(--accent); }
.navbar-cta { margin-left: 1rem; padding: 0.625rem 1.5rem !important; background: var(--primary) !important; color: white !important; }
.navbar-cta:hover { background: var(--accent) !important; color: white !important; }

/* Dropdown */
.dropdown { position: relative; }
.dropdown-toggle { cursor: pointer; user-select: none; }
.dropdown-toggle svg { width: 14px; height: 14px; transition: transform 0.3s; flex-shrink: 0; pointer-events: none; }
.dropdown:hover .dropdown-toggle svg,
.dropdown.is-open .dropdown-toggle svg { transform: rotate(180deg); }
.dropdown-menu { position: absolute; top: calc(100% + 4px); left: 0; min-width: 230px; background: white; border: 1px solid var(--border); border-radius: 8px; box-shadow: var(--shadow-lg); padding: 0.5rem; opacity: 0; visibility: hidden; transform: translateY(-8px); transition: all 0.25s cubic-bezier(0.4,0,0.2,1); pointer-events: none; z-index: 1000; }
.dropdown:hover .dropdown-menu,
.dropdown.is-open .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); pointer-events: auto; }
.dropdown-menu a { display: block; padding: 0.65rem 1rem; font-size: 0.875rem; border-radius: 6px; transition: var(--transition); color: var(--text); }
.dropdown-menu a:hover { background: var(--muted); color: var(--accent); }

/* ======== HAMBURGER BUTTON ======== */
.navbar-hamburger {
  display: none;
  background: none;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  padding: 0;
  color: var(--text);
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, color 0.2s ease;
  flex-shrink: 0;
}
.navbar-hamburger:hover {
  background: var(--muted);
  color: var(--primary);
}
.navbar-hamburger svg {
  width: 22px;
  height: 22px;
  display: block;
  pointer-events: none;
}

/* ======== MOBILE BACKDROP ======== */
.mobile-nav-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  z-index: 9000;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.mobile-nav-backdrop.active {
  opacity: 1;
}

/* ======== MOBILE DRAWER ======== */
.navbar-mobile {
  position: fixed;
  top: 0;
  right: 0;
  height: 100%;
  width: min(320px, 88vw);
  background: #ffffff;
  z-index: 9100;
  display: flex;
  flex-direction: column;
  box-shadow: -4px 0 24px rgba(0,0,0,0.18);
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}
.navbar-mobile.open {
  transform: translateX(0);
}

/* Drawer Header */
.mobile-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.1rem;
  border-bottom: 1px solid var(--border);
  background: #ffffff;
  flex-shrink: 0;
  min-height: 64px;
}
.mobile-nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex: 1;
  min-width: 0;
}
.mobile-nav-logo img {
  height: 36px;
  max-width: 160px;
  width: auto;
  object-fit: contain;
  display: block;
}
.mobile-nav-logo span {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mobile-nav-close {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1.5px solid var(--border);
  background: var(--off-white);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-left: 0.5rem;
}
.mobile-nav-close:hover {
  background: #fee2e2;
  color: #ef4444;
  border-color: #fca5a5;
  transform: rotate(90deg);
}
.mobile-nav-close svg {
  display: block;
  pointer-events: none;
}

/* Drawer Body */
.mobile-nav-body {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 0.85rem 0.85rem 1.25rem;
  display: flex;
  flex-direction: column;
}
.mobile-nav-list {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.mobile-nav-item {
  width: 100%;
}
.mobile-link {
  display: flex;
  align-items: center;
  padding: 0.8rem 0.9rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}
.mobile-link:hover,
.mobile-link:active {
  background: var(--muted);
  color: var(--primary);
}
.mobile-link.active-nav {
  background: #eff6ff;
  color: #1d4ed8;
  font-weight: 700;
}

/* Accordion Parent Button */
.mobile-parent {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 0.9rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  background: none;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  transition: background 0.15s ease, color 0.15s ease;
}
.mobile-parent:hover,
.mobile-parent:active {
  background: var(--muted);
}
.parent-label {
  flex: 1;
}
.parent-chevron {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-left: 0.5rem;
  transition: transform 0.25s ease;
  color: var(--text-muted);
}
.has-submenu.submenu-open > .mobile-parent {
  background: var(--muted);
  color: var(--primary);
}
.has-submenu.submenu-open > .mobile-parent .parent-chevron {
  transform: rotate(180deg);
  color: var(--primary);
}

/* Accordion Submenu */
.mobile-submenu {
  margin-top: 0.15rem;
  margin-left: 0.75rem;
  padding-left: 0.75rem;
  border-left: 2px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.mobile-sub-link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.65rem 0.75rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-muted);
  border-radius: 7px;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}
.mobile-sub-link .sub-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #cbd5e1;
  flex-shrink: 0;
  transition: background 0.15s ease;
}
.mobile-sub-link:hover,
.mobile-sub-link:active {
  color: var(--primary);
  background: var(--muted);
}
.mobile-sub-link:hover .sub-dot {
  background: var(--accent);
}
.mobile-sub-link.active-nav {
  color: var(--accent);
  font-weight: 600;
  background: #fef2f2;
}
.mobile-sub-link.active-nav .sub-dot {
  background: var(--accent);
}

/* Drawer Footer */
.mobile-nav-footer {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.mobile-cta-btn {
  width: 100%;
  justify-content: center;
  padding: 0.8rem 1rem;
  font-weight: 700;
  font-size: 0.9rem;
  border-radius: 8px;
}
.mobile-wa-btn {
  width: 100%;
  justify-content: center;
  padding: 0.8rem 1rem;
  font-weight: 700;
  font-size: 0.875rem;
  border-radius: 8px;
  background: #25d366;
  color: white !important;
  border: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  transition: background 0.2s ease;
}
.mobile-wa-btn:hover {
  background: #1eb954;
}

/* ======== RESPONSIVE BREAKPOINT ======== */
@media (max-width: 1023px) {
  .navbar-inner {
    height: 64px;
  }
  .navbar-logo img {
    height: 42px;
    max-width: 180px;
  }
  .navbar-logo span {
    font-size: 1.05rem;
  }
  .navbar-menu {
    display: none !important;
  }
  .navbar-hamburger {
    display: flex !important;
  }
}

/* ======== HERO ======== */
.hero { position: relative; overflow: hidden; min-height: 680px; display: flex; align-items: center; }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.5s ease; z-index: 1; }
.hero-slide.active { opacity: 1; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; animation: kenBurns 12s ease-out forwards; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(26,58,92,0.82) 0%, rgba(26,58,92,0.55) 50%, rgba(26,58,92,0.35) 100%); z-index: 2; }
.hero-overlay2 { position: absolute; inset: 0; background: linear-gradient(to top, rgba(26,58,92,0.7) 0%, transparent 50%); z-index: 2; }
.hero-content { position: relative; z-index: 3; color: white; max-width: 700px; }
.hero-content-wrapper { display: grid; }
.hero-content-wrapper > * { grid-column: 1; grid-row: 1; transition: opacity 0.8s ease, transform 0.8s ease; }
.hero-content-wrapper > *:not(.hero-active-content) { opacity: 0; transform: translateY(20px); pointer-events: none; }
.hero-content-wrapper > *.hero-active-content { opacity: 1; transform: translateY(0); pointer-events: auto; }
.hero-badge { display: inline-flex; align-items: center; gap: 0.5rem; background: rgba(255,255,255,0.15); backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,0.25); border-radius: 99px; padding: 0.375rem 1rem; font-size: 0.8rem; font-weight: 600; color: rgba(255,255,255,0.9); margin-bottom: 1.5rem; }
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); font-weight: 800; line-height: 1.15; white-space: pre-line; text-shadow: 0 2px 12px rgba(0,0,0,0.25); margin-bottom: 1.25rem; }
.hero p { font-size: 1.1rem; color: rgba(255,255,255,0.88); line-height: 1.7; max-width: 560px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.5rem; }
.hero-dots { display: flex; gap: 0.5rem; margin-top: 3rem; }
.hero-dot { width: 28px; height: 4px; border-radius: 99px; background: rgba(255,255,255,0.3); border: none; cursor: pointer; transition: var(--transition); overflow: hidden; position: relative; padding: 0; }
.hero-dot.active { width: 56px; background: rgba(255,255,255,0.4); }
.hero-dot-progress { position: absolute; inset-y-0; left: 0; height: 100%; background: white; border-radius: 99px; transition: none; }
@media (max-width: 640px) { .hero { min-height: 580px; } .hero h1 { font-size: 2rem; } }

/* ======== PROGRAMS SECTION ======== */
.programs-section { padding: 6rem 0; background: white; }
.program-card { display: flex; flex-direction: column; background: white; border: 1px solid var(--border); padding: 2rem; transition: var(--transition); height: 100%; }
.program-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-xl); border-color: rgba(232,64,64,0.2); }
.program-icon { width: 56px; height: 56px; background: var(--muted); display: flex; align-items: center; justify-content: center; color: var(--accent); transition: var(--transition); margin-bottom: 1.5rem; }
.program-card:hover .program-icon { background: var(--accent); color: white; transform: scale(1.1) rotate(3deg); }
.program-card h3 { font-size: 1.2rem; font-weight: 700; color: var(--text); transition: color 0.3s; }
.program-card:hover h3 { color: var(--accent); }
.program-card p { margin-top: 0.75rem; color: var(--text-muted); font-size: 0.9rem; line-height: 1.7; flex: 1; }
.program-link { display: flex; align-items: center; gap: 0.5rem; margin-top: 1.5rem; color: var(--accent); font-size: 0.875rem; font-weight: 600; }
.program-link svg { width: 16px; height: 16px; transition: transform 0.3s; }
.program-card:hover .program-link svg { transform: translateX(4px); }
.programs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 2rem; }

/* ======== ABOUT SECTION ======== */
.about-section { padding: 6rem 0; background: var(--off-white); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; }
.about-image-wrapper { position: relative; }
.about-image-wrapper img { width: 100%; height: 480px; object-fit: cover; border-radius: 12px; box-shadow: var(--shadow-xl); }
.about-image-badge { position: absolute; bottom: -20px; right: -20px; background: var(--accent); color: white; padding: 1.5rem; border-radius: 12px; text-align: center; box-shadow: var(--shadow-lg); }
.about-image-badge .num { font-size: 2rem; font-weight: 800; line-height: 1; }
.about-image-badge .lbl { font-size: 0.75rem; font-weight: 500; opacity: 0.9; }
.about-content .section-subtitle { max-width: none; }
.about-content p { color: var(--text-muted); line-height: 1.8; margin-bottom: 1rem; }
.about-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 2rem; }
.about-stat { background: white; padding: 1.25rem; border-radius: 10px; border: 1px solid var(--border); text-align: center; }
.about-stat .num { font-size: 1.75rem; font-weight: 800; color: var(--primary); display: block; }
.about-stat .lbl { font-size: 0.8rem; color: var(--text-muted); font-weight: 500; display: block; margin-top: 0.25rem; }
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; gap: 3rem; }
  .about-image-wrapper img { height: 300px; }
  .about-image-badge { right: 10px; bottom: -10px; }
}

/* ======== TEAM SECTION ======== */
.team-section { padding: 6rem 0; background: white; }
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 2rem; }
.team-card { text-align: center; background: white; border: 1px solid var(--border); padding: 2rem 1.5rem; transition: var(--transition); }
.team-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.team-avatar { width: 100px; height: 100px; border-radius: 50%; object-fit: cover; margin: 0 auto 1.25rem; border: 3px solid var(--border); }
.team-avatar-placeholder { width: 100px; height: 100px; border-radius: 50%; background: var(--muted); display: flex; align-items: center; justify-content: center; margin: 0 auto 1.25rem; color: var(--text-muted); font-size: 2rem; font-weight: 700; }
.team-card h3 { font-size: 1.05rem; font-weight: 700; color: var(--text); }
.team-card .position { font-size: 0.825rem; color: var(--accent); font-weight: 600; margin-top: 0.25rem; }
.team-card p { font-size: 0.85rem; color: var(--text-muted); margin-top: 0.75rem; line-height: 1.6; }

/* ======== FACILITIES SECTION ======== */
.facilities-section { padding: 6rem 0; background: var(--off-white); }
.facilities-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.5rem; }
.facility-card { background: white; border: 1px solid var(--border); overflow: hidden; transition: var(--transition); }
.facility-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.facility-img { width: 100%; height: 200px; object-fit: cover; }
.facility-img-placeholder { width: 100%; height: 200px; background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%); display: flex; align-items: center; justify-content: center; color: white; font-size: 2.5rem; }
.facility-body { padding: 1.25rem; }
.facility-body h3 { font-size: 1rem; font-weight: 700; color: var(--text); }
.facility-body p { font-size: 0.875rem; color: var(--text-muted); margin-top: 0.5rem; line-height: 1.6; }

/* ======== TESTIMONIALS ======== */
.testimonials-section { padding: 6rem 0; background: white; overflow: hidden; }
.testimonials-track { display: flex; gap: 1.5rem; transition: transform 0.6s cubic-bezier(0.4,0,0.2,1); }
.testimonial-card { flex: 0 0 360px; background: var(--off-white); border: 1px solid var(--border); padding: 2rem; transition: var(--transition); }
.testimonial-card:hover { box-shadow: var(--shadow-lg); border-color: rgba(232,64,64,0.2); }
.testimonial-stars { display: flex; gap: 2px; color: #f59e0b; margin-bottom: 1rem; }
.testimonial-card p { color: var(--text-muted); font-size: 0.925rem; line-height: 1.75; font-style: italic; }
.testimonial-footer { display: flex; align-items: center; gap: 0.875rem; margin-top: 1.25rem; }
.testimonial-avatar { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.testimonial-avatar-placeholder { width: 48px; height: 48px; border-radius: 50%; background: var(--primary); color: white; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1.1rem; flex-shrink: 0; }
.testimonial-footer .name { font-size: 0.9rem; font-weight: 700; color: var(--text); }
.testimonial-footer .prog { font-size: 0.78rem; color: var(--text-muted); }
.testimonials-controls { display: flex; justify-content: center; gap: 0.75rem; margin-top: 3rem; }
.testimonials-btn { width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--border); background: white; cursor: pointer; display: flex; align-items: center; justify-content: center; color: var(--text); transition: var(--transition); }
.testimonials-btn:hover { border-color: var(--primary); background: var(--primary); color: white; }
.testimonials-btn svg { width: 18px; height: 18px; }

/* ======== GALLERY ======== */
.gallery-section { padding: 6rem 0; background: var(--off-white); }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1rem; }
.gallery-item { position: relative; overflow: hidden; aspect-ratio: 4/3; cursor: pointer; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item-overlay { position: absolute; inset: 0; background: rgba(26,58,92,0.7); opacity: 0; display: flex; align-items: center; justify-content: center; transition: opacity 0.3s; color: white; flex-direction: column; gap: 0.5rem; }
.gallery-item:hover .gallery-item-overlay { opacity: 1; }
.gallery-item-overlay span { font-weight: 600; font-size: 0.9rem; }

/* ======== CTA SECTION ======== */
.cta-section { padding: 6rem 0; background: var(--primary); color: white; position: relative; overflow: hidden; }
.cta-section::before { content: ''; position: absolute; top: -50%; right: -10%; width: 600px; height: 600px; border-radius: 50%; background: rgba(255,255,255,0.03); }
.cta-section::after { content: ''; position: absolute; bottom: -30%; left: -5%; width: 400px; height: 400px; border-radius: 50%; background: rgba(232,64,64,0.07); }
.cta-inner { position: relative; z-index: 1; text-align: center; max-width: 700px; margin: 0 auto; }
.cta-inner h2 { font-size: clamp(1.8rem, 3vw, 2.8rem); font-weight: 800; margin-bottom: 1rem; }
.cta-inner p { color: rgba(255,255,255,0.75); font-size: 1.05rem; line-height: 1.7; }
.cta-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; margin-top: 2.5rem; }
.cta-actions .btn { font-size: 0.95rem; padding: 1rem 2.25rem; }
.cta-btn-white { background: white; color: var(--primary); }
.cta-btn-white:hover { background: #f0f4f8; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(255,255,255,0.2); color: var(--primary); }

/* ======== CONSULTATION FORM ======== */
.konsultasi-section { padding: 6rem 0; }
.konsultasi-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 5rem; align-items: start; }
.konsultasi-info h2 { font-size: 2rem; font-weight: 800; margin-bottom: 1rem; }
.konsultasi-info p { color: var(--text-muted); line-height: 1.8; }
.konsultasi-contact-list { margin-top: 2rem; display: flex; flex-direction: column; gap: 1rem; }
.contact-item { display: flex; align-items: center; gap: 1rem; }
.contact-icon { width: 44px; height: 44px; background: var(--muted); border-radius: 10px; display: flex; align-items: center; justify-content: center; color: var(--primary); flex-shrink: 0; }
.contact-icon svg { width: 20px; height: 20px; }
.contact-item strong { font-weight: 600; display: block; font-size: 0.9rem; }
.contact-item span { color: var(--text-muted); font-size: 0.875rem; }
.form-card { background: white; border: 1px solid var(--border); padding: 2.5rem; border-radius: 12px; box-shadow: var(--shadow-lg); }
.form-group { margin-bottom: 1.25rem; }
.form-label { display: block; font-size: 0.875rem; font-weight: 600; color: var(--text); margin-bottom: 0.5rem; }
.form-control { width: 100%; padding: 0.75rem 1rem; border: 1.5px solid var(--border); border-radius: 8px; font-size: 0.9rem; font-family: inherit; color: var(--text); background: white; transition: border-color 0.3s, box-shadow 0.3s; }
.form-control:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(26,58,92,0.1); }
.form-control.is-invalid { border-color: var(--accent); }
select.form-control { cursor: pointer; }
textarea.form-control { min-height: 120px; resize: vertical; }
.form-submit { width: 100%; justify-content: center; padding: 1rem; font-size: 1rem; }
.alert { padding: 1rem 1.25rem; border-radius: 8px; margin-bottom: 1.5rem; font-size: 0.9rem; font-weight: 500; }
.alert-success { background: #f0fff4; border: 1px solid #bbf7d0; color: #15803d; }
.alert-error { background: #fff0f0; border: 1px solid #fecaca; color: #dc2626; }
@media (max-width: 900px) { .konsultasi-grid { grid-template-columns: 1fr; gap: 3rem; } }

/* ======== FOOTER ======== */
.footer { background: var(--primary); color: white; padding: 5rem 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 3rem; }
.footer-brand img { height: 52px; width: auto; max-width: 240px; object-fit: contain; background: #ffffff; padding: 6px 14px; border-radius: 10px; margin-bottom: 1.25rem; box-shadow: 0 4px 14px rgba(0,0,0,0.25); display: inline-block; }
.footer-brand p { font-size: 0.875rem; color: rgba(255,255,255,0.65); line-height: 1.8; }
.footer-social { display: flex; gap: 0.75rem; margin-top: 1.5rem; }
.footer-social a { width: 38px; height: 38px; border-radius: 8px; background: rgba(255,255,255,0.1); display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.7); transition: var(--transition); }
.footer-social a:hover { background: var(--accent); color: white; transform: translateY(-2px); }
.footer-social svg { width: 18px; height: 18px; }
.footer-col h4 { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: rgba(255,255,255,0.5); margin-bottom: 1.25rem; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.625rem; }
.footer-col ul li a { font-size: 0.875rem; color: rgba(255,255,255,0.7); transition: color 0.25s; }
.footer-col ul li a:hover { color: white; }
.footer-contact-item { display: flex; align-items: flex-start; gap: 0.75rem; margin-bottom: 0.875rem; }
.footer-contact-item svg { width: 16px; height: 16px; color: rgba(255,255,255,0.4); flex-shrink: 0; margin-top: 2px; }
.footer-contact-item span { font-size: 0.875rem; color: rgba(255,255,255,0.7); line-height: 1.5; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); margin-top: 3.5rem; padding: 1.5rem 0; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
.footer-bottom p { font-size: 0.8rem; color: rgba(255,255,255,0.4); }
.footer-bottom-links { display: flex; gap: 1.5rem; }
.footer-bottom-links a { font-size: 0.8rem; color: rgba(255,255,255,0.4); transition: color 0.25s; }
.footer-bottom-links a:hover { color: white; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .footer-grid { grid-template-columns: 1fr; gap: 2rem; } .footer-bottom { flex-direction: column; text-align: center; } }

/* ======== PAGE BANNER ======== */
.page-banner { background: var(--primary); color: white; padding: 5rem 0; position: relative; overflow: hidden; }
.page-banner::before { content: ''; position: absolute; top: 0; right: 0; width: 50%; height: 100%; background: linear-gradient(135deg, transparent, rgba(232,64,64,0.1)); }
.page-banner-content { position: relative; z-index: 1; }
.page-banner h1 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; margin-bottom: 0.75rem; }
.page-banner p { color: rgba(255,255,255,0.75); font-size: 1.05rem; }
.breadcrumb { display: flex; align-items: center; gap: 0.5rem; font-size: 0.85rem; color: rgba(255,255,255,0.6); margin-bottom: 1.25rem; }
.breadcrumb a { color: rgba(255,255,255,0.6); transition: color 0.25s; }
.breadcrumb a:hover { color: white; }
.breadcrumb span { color: rgba(255,255,255,0.3); }

/* ======== GALLERY LIGHTBOX ======== */
.lightbox { position: fixed; inset: 0; background: rgba(0,0,0,0.92); z-index: 9999; display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: all 0.35s; }
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox img { max-width: 90vw; max-height: 88vh; object-fit: contain; border-radius: 4px; box-shadow: var(--shadow-xl); }
.lightbox-close { position: absolute; top: 1.5rem; right: 1.5rem; width: 44px; height: 44px; background: rgba(255,255,255,0.1); border: none; border-radius: 50%; color: white; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: var(--transition); }
.lightbox-close:hover { background: var(--accent); }
.lightbox-close svg { width: 20px; height: 20px; }

/* ======== WHATSAPP FLOAT ======== */
.wa-float { position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 999; }
.wa-float a { width: 58px; height: 58px; background: #25D366; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 20px rgba(37,211,102,0.5); transition: var(--transition); animation: pulse 2s ease-in-out infinite; }
.wa-float a:hover { transform: scale(1.1); box-shadow: 0 6px 28px rgba(37,211,102,0.6); }
.wa-float svg { width: 30px; height: 30px; color: white; }

/* ======== UTILS ======== */
.text-center { text-align: center; }
.text-accent { color: var(--accent); }
.mt-auto { margin-top: auto; }
.hidden { display: none; }

/* ======== PROGRAM ARTICLE BODY STYLING ======== */
.program-article-body h2,
.program-article-body h3 {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--primary);
  margin-top: 2rem;
  margin-bottom: 0.85rem;
  line-height: 1.3;
}
.program-article-body h4 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}
.program-article-body p {
  color: var(--text);
  line-height: 1.85;
  margin-bottom: 1.25rem;
}
.program-article-body ul,
.program-article-body ol {
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
  color: var(--text);
}
.program-article-body li {
  margin-bottom: 0.6rem;
  line-height: 1.7;
}
.program-article-body strong {
  color: var(--text);
  font-weight: 700;
}
.program-article-body blockquote {
  border-left: 4px solid var(--accent);
  background: var(--off-white);
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  font-style: italic;
  color: var(--text-muted);
  border-radius: 0 8px 8px 0;
}

/* ======== PROGRAM DETAIL LAYOUT ======== */
.program-detail-layout {
  display: grid;
  grid-template-columns: 2.2fr 1fr;
  gap: 3.5rem;
  align-items: start;
}
@media (max-width: 900px) {
  .program-detail-layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

/* =======================================================
   KOMPREHENSIF MOBILE & TABLET RESPONSIVE ENHANCEMENTS
   ======================================================= */

/* Mencegah konten dan tabel meluap ke luar layar di perangkat mobile */
.custom-page-content table,
.program-article-body table,
.blog-content table {
  width: 100%;
  display: block;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-collapse: collapse;
}

/* Tablet & Mobile (< 768px) */
@media (max-width: 768px) {
  /* Kurangi padding vertikal section agar tidak terlalu banyak ruang kosong di mobile */
  .programs-section,
  .about-section,
  .team-section,
  .facilities-section,
  .testimonials-section,
  .gallery-section,
  .cta-section,
  .konsultasi-section {
    padding: 3.5rem 0;
  }

  .page-banner {
    padding: 3.5rem 0;
  }
  .page-banner h1 {
    font-size: 1.85rem;
  }

  /* Testimonials carousel responsif: kartu tidak boleh melebihi lebar layar */
  .testimonial-card {
    flex: 0 0 min(340px, calc(100vw - 3.5rem));
    padding: 1.5rem;
  }

  /* Form konsultasi */
  .form-card {
    padding: 1.75rem 1.25rem;
  }

  /* Tombol CTA dan aksi */
  .cta-actions .btn {
    padding: 0.85rem 1.75rem;
  }
}

/* Layar Smartphone Kecil (< 480px) */
@media (max-width: 480px) {
  .hero {
    min-height: 520px;
  }
  .hero h1 {
    font-size: 1.75rem;
    line-height: 1.25;
  }
  .hero p {
    font-size: 0.925rem;
  }
  .hero-actions {
    flex-direction: column;
    width: 100%;
    gap: 0.75rem;
  }
  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }

  /* Tombol aksi CTA beranda */
  .cta-actions {
    flex-direction: column;
    width: 100%;
  }
  .cta-actions .btn {
    width: 100%;
    justify-content: center;
  }

  /* Galeri 2 kolom di mobile agar hemat tempat dan estetik */
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
  }

  /* Tim 2 kolom di mobile */
  .team-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 0.85rem;
  }
  .team-card {
    padding: 1.25rem 0.75rem;
  }
  .team-avatar, .team-avatar-placeholder {
    width: 72px;
    height: 72px;
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
  }
  .team-card h3 {
    font-size: 0.925rem;
  }

  /* About stats di smartphone kecil */
  .about-stats {
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
  }
  .about-stat {
    padding: 0.85rem 0.5rem;
  }
  .about-stat .num {
    font-size: 1.35rem;
  }
  .about-stat .lbl {
    font-size: 0.72rem;
  }

  /* Floating WhatsApp button diperkecil di mobile agar tidak menutupi tombol lain */
  .wa-float {
    bottom: 1rem;
    right: 1rem;
  }
  .wa-float a {
    width: 50px;
    height: 50px;
  }
  .wa-float svg {
    width: 26px;
    height: 26px;
  }

  /* Footer bottom link */
  .footer-bottom-links {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }
}

