/*
Theme Name: Taichi Community
Theme URI: https://yourdomain.com/
Author: Nama Anda
Description: Tema WordPress untuk komunitas Taichi, desain zen, minimalis, dan mobile-friendly.
Version: 1.0
License: GNU General Public License v2 or later
Text Domain: taichi-community
*/

body {
  font-family: 'Segoe UI', 'Arial', sans-serif;
  background: linear-gradient(135deg, #f8f9f6 70%, #e0f2f1 100%);
  color: #23423a;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  transition: background 0.7s;
}
.container { max-width: 1100px; margin: 0 auto; padding: 0 1.5rem; }
h1, h2, h3, h4 { font-family: 'Segoe UI', 'Arial', sans-serif; margin-bottom: 0.5em; }
a { color: #357a38; text-decoration: none; transition: color 0.3s; }
a:hover, a:focus { color: #388e3c; }
a.cta-btn {
  background: linear-gradient(90deg, #b2dfdb 60%, #81c784 100%);
  color: #23423a;
  padding: 0.7em 1.5em;
  border-radius: 30px;
  font-weight: bold;
  transition: background 0.3s, box-shadow 0.3s, color 0.3s, transform 0.2s;
  display: inline-block;
  margin-top: 1em;
  box-shadow: 0 2px 8px rgba(53,122,56,0.07);
  position: relative;
  overflow: hidden;
}
a.cta-btn:hover, a.cta-btn:focus {
  background: linear-gradient(90deg, #81c784 60%, #b2dfdb 100%);
  color: #fff;
  box-shadow: 0 6px 24px rgba(53,122,56,0.18);
  transform: translateY(-2px) scale(1.04);
}
a.cta-btn.large { font-size: 1.2em; padding: 1em 2.5em; }
.header-flex, .footer-flex, .profile-flex { display: flex; align-items: center; justify-content: space-between; }
.logo img, .custom-logo { height: 48px !important; border-radius: 50%; box-shadow: 0 2px 8px #b2dfdb55; background: #fff; padding: 4px; }
.main-nav { display: flex; gap: 2.5em; position: relative; list-style: none; padding-left: 0; }
.main-nav a {
  position: relative;
  padding: 0.7em 1.2em;
  border-radius: 14px;
  font-weight: 600;
  font-size: 1.08em;
  background: none;
  border: none;
  box-shadow: none;
  transition: background 0.3s, color 0.3s, box-shadow 0.3s, transform 0.2s;
}
.main-nav a::after {
  content: '';
  display: block;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, #81c784 0%, #4caf50 100%);
  border-radius: 2px;
  transition: width 0.3s;
  position: absolute;
  left: 0;
  bottom: 0;
}
.main-nav a:hover::after, .main-nav a:focus::after {
  width: 100%;
}
.main-nav a:hover, .main-nav a:focus {
  background: #e0f2f1;
  color: #357a38;
  box-shadow: 0 2px 12px #b2dfdb55;
  transform: translateY(-2px) scale(1.05);
}
.main-nav a:active {
  color: #fff;
  background: #388e3c;
}
.cta-desktop { margin-left: 2em; }
.mobile-menu-icon { display: none; flex-direction: column; cursor: pointer; gap: 5px; }
.mobile-menu-icon span { width: 28px; height: 3px; background: #357a38; border-radius: 2px; }
.mobile-nav { display: none; flex-direction: column; background: #f8f9f6; position: absolute; top: 70px; right: 0; width: 200px; box-shadow: 0 4px 16px rgba(0,0,0,0.07); }
.mobile-nav.open { display: flex; }
.hero-section { position: relative; min-height: 60vh; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.hero-bg img, .hero-bg video { width: 100vw; height: 60vh; object-fit: cover; filter: brightness(0.7) blur(0.5px); transition: filter 0.5s; }
.hero-section:hover .hero-bg img { filter: brightness(0.8) blur(2px); }
.hero-content { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); text-align: center; color: #fff; text-shadow: 0 2px 8px #23423a88; }
.intro-taichi { background: #e0f2f1; padding: 3em 0; text-align: center; }
.benefits-grid { display: flex; justify-content: center; gap: 2em; margin-top: 2em; }
.benefit {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 12px #b2dfdb33;
  padding: 1.5em 1em;
  transition: box-shadow 0.3s, transform 0.2s;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 180px;
  position: relative;
}
.benefit img {
  height: 48px;
  margin-bottom: 0.5em;
  filter: drop-shadow(0 2px 8px #81c78455) brightness(1.1);
  transition: transform 0.3s;
}
.benefit:hover {
  box-shadow: 0 8px 32px #81c78444;
  transform: translateY(-4px) scale(1.04);
}
.benefit:hover img {
  transform: rotate(-8deg) scale(1.15);
}
.class-schedule { background: #fff; padding: 3em 0; }
.class-grid { display: flex; gap: 2em; justify-content: center; }
.class-card {
  background: linear-gradient(135deg, #e0f2f1 80%, #b2dfdb 100%);
  border-radius: 16px;
  padding: 2em;
  min-width: 220px;
  box-shadow: 0 2px 8px rgba(53,122,56,0.07);
  text-align: center;
  transition: box-shadow 0.3s, transform 0.2s;
  position: relative;
}
.class-card:hover {
  box-shadow: 0 8px 32px #81c78444;
  transform: translateY(-4px) scale(1.04);
}
.class-card a {
  margin-top: 1em;
  display: inline-block;
  font-size: 1em;
  background: #357a38;
  color: #fff;
  border-radius: 20px;
  padding: 0.5em 1.2em;
  transition: background 0.3s, color 0.3s, transform 0.2s;
}
.class-card a:hover {
  background: #81c784;
  color: #23423a;
  transform: scale(1.08);
}
.instructor-profile { background: #f8f9f6; padding: 3em 0; }
.profile-flex { gap: 2em; }
.profile-photo img, .profile-photo .custom-logo-link img { border-radius: 50%; width: 140px; height: 140px; object-fit: cover; box-shadow: 0 2px 12px #b2dfdb55; background: #fff; }
.profile-info ul { padding-left: 1.2em; }
.testimonials { background: #e0f2f1; padding: 3em 0; }
.testimonials-grid { display: flex; gap: 2em; justify-content: center; }
.testimonial {
  background: #fff;
  border-radius: 12px;
  padding: 1.5em;
  min-width: 220px;
  box-shadow: 0 2px 8px rgba(53,122,56,0.07);
  position: relative;
  transition: box-shadow 0.3s, transform 0.2s;
}
.testimonial::before {
  content: '\201C';
  font-size: 3em;
  color: #b2dfdb;
  position: absolute;
  left: 12px;
  top: 0;
  opacity: 0.3;
}
.testimonial:hover {
  box-shadow: 0 8px 32px #81c78444;
  transform: translateY(-4px) scale(1.04);
}
.cta-join {
  background: linear-gradient(90deg, #e0f2f1 60%, #b2dfdb 100%);
  padding: 3em 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-join::after {
  content: '';
  position: absolute;
  left: -40px;
  top: -40px;
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, #81c78455 60%, transparent 100%);
  z-index: 0;
  animation: pulse 2.5s infinite alternate;
}
@keyframes pulse {
  0% { transform: scale(1); opacity: 0.7; }
  100% { transform: scale(1.2); opacity: 0.3; }
}
.taichi-footer { background: #23423a; color: #fff; padding: 2em 0; }
.footer-flex { flex-direction: column; align-items: flex-start; gap: 1.5em; }
.footer-nav { display: flex; gap: 1.5em; margin-bottom: 1em; }
.footer-social a { margin-right: 1em; }
.footer-social img { filter: brightness(0) invert(1); transition: filter 0.3s, transform 0.2s; }
.footer-social a:hover img { filter: brightness(0.7) invert(0.7); transform: scale(1.2) rotate(-10deg); }
.badge {
  display: inline-block;
  background: linear-gradient(90deg, #81c784 60%, #b2dfdb 100%);
  color: #23423a;
  border-radius: 12px;
  padding: 0.2em 0.8em;
  font-size: 0.95em;
  font-weight: 600;
  margin: 0 0.3em;
  box-shadow: 0 2px 8px #b2dfdb33;
  transition: background 0.3s, color 0.3s, transform 0.2s;
}
.badge:hover {
  background: linear-gradient(90deg, #b2dfdb 60%, #81c784 100%);
  color: #357a38;
  transform: scale(1.08) rotate(-3deg);
}
@media (max-width: 900px) {
  .header-flex, .class-grid, .benefits-grid, .testimonials-grid, .profile-flex { flex-direction: column; gap: 1.5em; }
  .cta-desktop { display: none; }
  .mobile-menu-icon { display: flex; }
  .desktop-nav { display: none; }
  .profile-photo { margin-bottom: 1em; }
}
@media (max-width: 600px) {
  .container { padding: 0 0.5em; }
  .hero-content h1 { font-size: 1.5em; }
  .class-card, .testimonial { min-width: unset; }
}

/* Banner berjalan sponsor */
.sponsor-banner {
  width: 100vw;
  overflow: hidden;
  background: #e0f2f1;
  border-top: 2px solid #b2dfdb;
  border-bottom: 2px solid #b2dfdb;
  padding: 0.5em 0;
  position: relative;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
}
.sponsor-banner .banner-inner {
  display: flex;
  align-items: center;
  gap: 2.5em;
  white-space: nowrap;
  animation: banner-scroll 18s linear infinite;
}
.sponsor-banner .sponsor-logo {
  height: 38px;
  width: auto;
  object-fit: contain;
  margin: 0 1em;
  vertical-align: middle;
  filter: drop-shadow(0 2px 8px #357a3822);
  transition: transform 0.3s;
  background: #fff;
  border-radius: 8px;
  padding: 2px 8px;
  box-sizing: border-box;
}
.sponsor-banner .sponsor-logo:hover {
  transform: scale(1.15) rotate(-5deg);
}
.sponsor-banner .banner-text {
  font-weight: bold;
  color: #357a38;
  margin-right: 2em;
  font-size: 1.1em;
}
@media (max-width: 700px) {
  .sponsor-banner .banner-inner {
    gap: 1em;
  }
  .sponsor-banner .sponsor-logo {
    height: 28px;
    padding: 1px 4px;
  }
}

/* Floating Chatbox */
#floating-chatbox {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 340px;
  max-width: 95vw;
  z-index: 9999;
  background: #fff;
  border-radius: 18px 18px 0 0;
  box-shadow: 0 8px 32px #357a3844;
  transition: box-shadow 0.3s, transform 0.2s;
  overflow: hidden;
  font-size: 1em;
}
#floating-chatbox.closed {
  height: 54px;
  width: 180px;
  cursor: pointer;
  border-radius: 18px;
  box-shadow: 0 2px 12px #357a3844;
}
#floating-chatbox-header {
  background: linear-gradient(90deg, #b2dfdb 60%, #81c784 100%);
  color: #23423a;
  padding: 0.7em 1em;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}
#floating-chatbox-header .close-btn {
  font-size: 1.3em;
  color: #357a38;
  background: none;
  border: none;
  cursor: pointer;
  margin-left: 1em;
}
#floating-chatbox-messages {
  max-height: 260px;
  min-height: 120px;
  overflow-y: auto;
  padding: 1em;
  background: #f8f9f6;
}
#floating-chatbox-form {
  display: flex;
  gap: 0.5em;
  padding: 0.7em 1em 1em 1em;
  background: #fff;
}
#floating-chatbox-form input, #floating-chatbox-form textarea {
  border-radius: 8px;
  border: 1px solid #b2dfdb;
  padding: 0.4em 0.7em;
  font-size: 1em;
}
#floating-chatbox-form input[name=nama] {
  width: 30%;
}
#floating-chatbox-form textarea {
  width: 60%;
  resize: none;
  min-height: 32px;
  max-height: 60px;
}
#floating-chatbox-form button {
  background: #357a38;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 0.4em 1em;
  font-weight: bold;
  transition: background 0.2s;
}
#floating-chatbox-form button:hover {
  background: #81c784;
  color: #23423a;
}
.floating-chatbox-msg {
  margin-bottom: 0.7em;
  padding-bottom: 0.3em;
  border-bottom: 1px solid #e0f2f1;
}
.floating-chatbox-msg:last-child {
  border-bottom: none;
}
.floating-chatbox-msg .nama {
  font-weight: bold;
  color: #357a38;
  margin-right: 0.5em;
}
.floating-chatbox-msg .waktu {
  color: #888;
  font-size: 0.85em;
}

/* Sponsor Banner Fix */
.sponsor-banner {
  width: 100vw;
  overflow: hidden;
  background: #e0f2f1;
  border-top: 2px solid #b2dfdb;
  border-bottom: 2px solid #b2dfdb;
  padding: 0.5em 0;
  position: relative;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
}
.sponsor-banner .banner-inner {
  display: flex;
  align-items: center;
  gap: 2.5em;
  white-space: nowrap;
  animation: banner-scroll 18s linear infinite;
}
.sponsor-banner .sponsor-logo {
  height: 38px;
  width: auto;
  object-fit: contain;
  margin: 0 1em;
  vertical-align: middle;
  filter: drop-shadow(0 2px 8px #357a3822);
  transition: transform 0.3s;
  background: #fff;
  border-radius: 8px;
  padding: 2px 8px;
  box-sizing: border-box;
}
.sponsor-banner .sponsor-logo:hover {
  transform: scale(1.15) rotate(-5deg);
}
.sponsor-banner .banner-text {
  font-weight: bold;
  color: #357a38;
  margin-right: 2em;
  font-size: 1.1em;
}
@media (max-width: 700px) {
  .sponsor-banner .banner-inner {
    gap: 1em;
  }
  .sponsor-banner .sponsor-logo {
    height: 28px;
    padding: 1px 4px;
  }
}

/* Floating Chatbox */
#floating-chatbox {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 340px;
  max-width: 95vw;
  z-index: 9999;
  background: #fff;
  border-radius: 18px 18px 0 0;
  box-shadow: 0 8px 32px #357a3844;
  transition: box-shadow 0.3s, transform 0.2s;
  overflow: hidden;
  font-size: 1em;
}
#floating-chatbox.closed {
  height: 54px;
  width: 180px;
  cursor: pointer;
  border-radius: 18px;
  box-shadow: 0 2px 12px #357a3844;
}
#floating-chatbox-header {
  background: linear-gradient(90deg, #b2dfdb 60%, #81c784 100%);
  color: #23423a;
  padding: 0.7em 1em;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}
#floating-chatbox-header .close-btn {
  font-size: 1.3em;
  color: #357a38;
  background: none;
  border: none;
  cursor: pointer;
  margin-left: 1em;
}
#floating-chatbox-messages {
  max-height: 260px;
  min-height: 120px;
  overflow-y: auto;
  padding: 1em;
  background: #f8f9f6;
}
#floating-chatbox-form {
  display: flex;
  gap: 0.5em;
  padding: 0.7em 1em 1em 1em;
  background: #fff;
}
#floating-chatbox-form input, #floating-chatbox-form textarea {
  border-radius: 8px;
  border: 1px solid #b2dfdb;
  padding: 0.4em 0.7em;
  font-size: 1em;
}
#floating-chatbox-form input[name=nama] {
  width: 30%;
}
#floating-chatbox-form textarea {
  width: 60%;
  resize: none;
  min-height: 32px;
  max-height: 60px;
}
#floating-chatbox-form button {
  background: #357a38;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 0.4em 1em;
  font-weight: bold;
  transition: background 0.2s;
}
#floating-chatbox-form button:hover {
  background: #81c784;
  color: #23423a;
}
.floating-chatbox-msg {
  margin-bottom: 0.7em;
  padding-bottom: 0.3em;
  border-bottom: 1px solid #e0f2f1;
}
.floating-chatbox-msg:last-child {
  border-bottom: none;
}
.floating-chatbox-msg .nama {
  font-weight: bold;
  color: #357a38;
  margin-right: 0.5em;
}
.floating-chatbox-msg .waktu {
  color: #888;
  font-size: 0.85em;
}

/* Animasi show up saat scroll */
.showup {
  opacity: 0;
  transform: translateY(40px) scale(0.98);
  transition: opacity 0.7s cubic-bezier(.77,0,.18,1), transform 0.7s cubic-bezier(.77,0,.18,1);
}
.showup.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Mega Menu Styling */
.main-nav {
  display: flex;
  gap: 2.5em;
  position: relative;
  list-style: none;
  padding-left: 0;
}
.main-nav > li {
  position: relative;
  list-style: none;
}
.main-nav > li > a {
  padding: 0.7em 1.2em;
  border-radius: 14px;
  font-weight: 600;
  font-size: 1.08em;
  background: none;
  border: none;
  box-shadow: none;
  transition: background 0.3s, color 0.3s, box-shadow 0.3s, transform 0.2s;
}
.main-nav > li > a:hover, .main-nav > li > a:focus {
  background: #e0f2f1;
  color: #357a38;
  box-shadow: 0 2px 12px #b2dfdb55;
  transform: translateY(-2px) scale(1.05);
}
/* Hide default dot/bullet */
.main-nav li::marker, .main-nav li:before {
  content: none !important;
}
/* Mega menu dropdown */
.main-nav > li:hover > .mega-menu, .main-nav > li:focus-within > .mega-menu {
  display: flex;
}
.mega-menu {
  display: none;
  position: absolute;
  left: 0;
  top: 100%;
  background: #fff;
  box-shadow: 0 8px 32px #81c78444;
  border-radius: 18px;
  padding: 2em 2em;
  min-width: 480px;
  gap: 2em;
  z-index: 100;
  animation: megafade 0.4s;
}
@keyframes megafade {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.mega-menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.mega-menu li {
  margin-bottom: 0.7em;
}
.mega-menu a {
  color: #23423a;
  font-weight: 500;
  padding: 0.3em 0.7em;
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;
}
.mega-menu a:hover {
  background: #e0f2f1;
  color: #357a38;
}
