/* ==========================================================================
   English Sensei homepage — supplemental styles layered on top of
   template_files/main.css (the "kitton" theme). Brand tokens below are
   pulled from that stylesheet so new components match it exactly.
   ========================================================================== */

:root {
  --es-navy: #0e2c53;
  --es-purple: #92278f;
  --es-purple-dark: #782075;
  --es-orange: #f26522;
  --es-text: #707070;
  --es-cream: #fff8eb;
}

/* ---------- Language toggle ---------- */
.jp-text { display: block; }
.en-text { display: none; }
.lang-en .jp-text { display: none; }
.lang-en .en-text { display: block; }
span.jp-text, span.en-text { display: inline; }
.lang-en span.jp-text { display: none; }
.lang-en span.en-text { display: inline; }
li.jp-text, li.en-text { display: list-item; }
.lang-en li.jp-text { display: none; }
.lang-en li.en-text { display: list-item; }

.lang-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 18px;
  margin-left: 15px;
  border: 1px solid var(--es-purple);
  border-radius: 20px;
  background: transparent;
  color: var(--es-purple);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all ease 0.3s;
}
.lang-toggle:hover {
  background: var(--es-purple);
  color: #fff;
}

/* ---------- Hero ---------- */
.hero-section {
  padding: 160px 0 110px;
  position: relative;
}
.hero-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(14, 44, 83, 0.78) 0%, rgba(14, 44, 83, 0.55) 100%);
}
.hero-section .container { position: relative; z-index: 2; }
.hero-content { max-width: 680px; }
.hero-content .cate {
  display: inline-block;
  color: #fff;
  background: var(--es-purple);
  padding: 6px 18px;
  border-radius: 20px;
  font-size: 14px;
  margin-bottom: 18px;
}
.hero-content h1 {
  color: #fff;
  font-size: 34px;
  margin-bottom: 18px;
}
@media (min-width: 768px) {
  .hero-content h1 { font-size: 48px; }
}
.hero-content p {
  color: #f1f1f1;
  font-size: 17px;
  margin-bottom: 30px;
}
.hero-buttons .custom-button {
  display: inline-block;
  margin-right: 15px;
  margin-bottom: 10px;
}
.hero-buttons .custom-button.outline {
  color: #fff;
}
.hero-buttons .custom-button.outline::before {
  background: transparent;
  border: 2px solid #fff;
}
.hero-buttons .custom-button.outline::after {
  background: transparent;
}

/* ---------- Intro / About feature blocks ---------- */
.intro-block {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 30px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(14, 44, 83, 0.08);
  padding: 30px;
  margin-bottom: 30px;
}
.intro-block:last-child { margin-bottom: 0; }
.intro-block .intro-thumb {
  flex: 0 0 260px;
  max-width: 260px;
}
.intro-block .intro-thumb img {
  width: 100%;
  border-radius: 10px;
  display: block;
}
.intro-block .intro-content { flex: 1 1 320px; }
.intro-block .intro-content h3 { margin-bottom: 12px; }
.intro-block .trial-note {
  display: inline-block;
  margin-top: 16px;
  font-weight: 700;
  color: var(--es-purple);
}

/* ---------- Tuition / pricing ---------- */
.pricing-table-wrapper {
  overflow-x: auto;
  margin-bottom: 40px;
}
.pricing-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  min-width: 480px;
}
.pricing-table caption {
  text-align: left;
  caption-side: top;
  font-weight: 700;
  color: var(--es-navy);
  font-size: 18px;
  padding-bottom: 14px;
}
.pricing-table th, .pricing-table td {
  border: 1px solid #eee;
  padding: 12px 16px;
  text-align: center;
}
.pricing-table thead th {
  background: var(--es-navy);
  color: #fff;
  font-weight: 700;
}
.pricing-table td:first-child, .pricing-table th:first-child {
  text-align: left;
  font-weight: 700;
  color: var(--es-navy);
}
.pricing-table tbody tr:nth-child(even) { background: var(--es-cream); }

/* ---------- Testimonials ---------- */
.testimonial-video {
  max-width: 720px;
  margin: 0 auto 40px;
}
.testimonial-video iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  border-radius: 10px;
  border: 0;
}
.testimonial-letters {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
}
.testimonial-letters img {
  max-width: 340px;
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(14, 44, 83, 0.1);
}

/* ---------- Contact ---------- */
.contact-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
}
.contact-location { flex: 1 1 280px; }
.contact-location .map-thumb { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.contact-location .map-thumb img { width: 50px; height: auto; }
.contact-location address { font-style: normal; line-height: 1.9; }
.contact-form-col { flex: 1 1 360px; }
.contact-form-col label {
  display: block;
  font-weight: 700;
  color: var(--es-navy);
  margin-bottom: 6px;
}
.contact-form-col .form-group { margin-bottom: 18px; }
.contact-form-col input[type="text"],
.contact-form-col input[type="email"],
.contact-form-col textarea {
  width: 100%;
  border: 1px solid #e2e2e2;
  border-radius: 6px;
  padding: 12px 14px;
  font-family: inherit;
  font-size: 15px;
}
.contact-form-col textarea { resize: vertical; }
.contact-form-col button.custom-button {
  border: 0;
  background: transparent;
  cursor: pointer;
}
.form-status {
  display: none;
  padding: 14px 18px;
  border-radius: 8px;
  margin-bottom: 20px;
  font-weight: 700;
}
.form-status.show { display: block; }
.form-status.success { background: #e6f6ea; color: #1c7c3c; }
.form-status.error { background: #fdeaea; color: #b3261e; }

/* ---------- Footer contact list ---------- */
.footer-widget .contact li { margin-bottom: 10px; }
/* The theme colors these icons the same navy as the footer (invisible), green on phones. */
.footer-widget.widget-about .contact li i { color: var(--es-orange); }

@media (max-width: 767px) {
  .hero-section { padding: 120px 0 70px; }
  .intro-block { padding: 20px; }
  .intro-block .intro-thumb { flex: 0 0 100%; max-width: 220px; margin: 0 auto; }
}
