/* ==========================================================
   LOOP Academy – bilingual + SEO upgrade (shared, all pages)
   Indonesian is the default language. EN shows after toggle.
   ========================================================== */

/* ---------- language show/hide ---------- */
html[data-lang="id"] .en { display: none !important; }
html[data-lang="en"] .id { display: none !important; }

/* ---------- language switch (in header) ---------- */
.lang-toggle {
  display: flex;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  padding: 3px;
  flex-shrink: 0;
}
.lang-toggle button {
  border: 0;
  background: transparent;
  color: #fff;
  font-weight: 800;
  padding: 5px 11px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 9.5pt;
}
.lang-toggle button.on { background: #fff; color: var(--orange3); }
body.robotics-theme .lang-toggle button.on { color: #0b5ed7; }

/* ---------- homepage hero ---------- */
#About #welcome .welcome-text .text-container h1 .h1-sub {
  display: block;
  font-size: 17pt;
  line-height: 1.3;
  color: #862b0d;
  font-weight: 800;
  margin-top: 6px;
}
#About #welcome .welcome-text .text-container .tagline {
  font-size: 14pt;
  font-weight: 700;
  color: #862b0d;
  margin: 12px 0 0 0;
  padding: 0;
  letter-spacing: 0;
}
#About #welcome .welcome-text .text-container .tagline + p { margin-top: 18px; }

/* ---------- track chips as links ---------- */
#tracks .track .chips a {
  font-size: 9pt;
  padding: 3px 10px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  transition: 0.2s;
}
#tracks .track.coding .chips a { background: #fff1de; color: var(--orange3); }
#tracks .track.robotics .chips a { background: #e3efff; color: #0b5ed7; }
#tracks .track .chips a:hover { transform: translateY(-2px); box-shadow: 0 3px 8px rgba(0,0,0,.12); }

/* ---------- generic content section ---------- */
.seo-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 60px 24px;
  box-sizing: border-box;
  text-align: center;
}
.seo-section > h2 {
  font-weight: 900;
  font-size: 26pt;
  color: #862b0d;
  margin-bottom: 10px;
}
.seo-section > .sub {
  max-width: 720px;
  margin: 0 auto 30px auto;
  line-height: 1.6;
  color: #4a3a2a;
}
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  text-align: left;
}
.info-card {
  background: #fff;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  border-top: 6px solid var(--orange2);
}
.info-card.blue { border-top-color: #0b5ed7; }
.info-card.navy { border-top-color: var(--blue2); }
.info-card .ic { font-size: 28pt; line-height: 1; margin-bottom: 10px; }
.info-card h3 { font-weight: 900; font-size: 14pt; margin-bottom: 8px; color: #2b1d10; }
.info-card p { line-height: 1.55; font-size: 11pt; color: #4a3a2a; }
.info-card a.more {
  display: inline-block;
  margin-top: 12px;
  font-weight: 800;
  color: var(--orange3);
  text-decoration: none;
}
.info-card.blue a.more { color: #0b5ed7; }

/* event cards with photo */
.event-card { padding: 0; overflow: hidden; }
.event-card img { width: 100%; height: 170px; object-fit: cover; display: block; }
.event-card .body { padding: 20px 22px 24px; }

/* ---------- mini FAQ ---------- */
.mini-faq { max-width: 820px; margin: 0 auto; text-align: left; }
.mini-faq details {
  background: #fff;
  border-radius: 12px;
  margin-bottom: 10px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.06);
  overflow: hidden;
}
.mini-faq summary {
  cursor: pointer;
  padding: 16px 20px;
  font-weight: 800;
  list-style: none;
  position: relative;
  padding-right: 44px;
}
.mini-faq summary::-webkit-details-marker { display: none; }
.mini-faq summary::after {
  content: "+";
  position: absolute;
  right: 20px;
  top: 12px;
  font-size: 18pt;
  color: var(--orange3);
}
.mini-faq details[open] summary::after { content: "–"; }
.mini-faq details p { padding: 0 20px 18px; line-height: 1.6; color: #4a3a2a; }
.mini-faq .all { text-align: center; margin-top: 18px; }
.mini-faq .all a { font-weight: 800; color: var(--orange3); }

/* ---------- team heading (was H1) ---------- */
#our-team > h2 { text-align: center; font-size: 26pt; }

/* ---------- Coding page ---------- */
#Products .page-intro {
  max-width: 820px;
  margin: 0 auto 10px auto;
  padding: 0 24px;
  text-align: center;
  line-height: 1.65;
  color: #4a3a2a;
}
.breadcrumb {
  max-width: 1100px;
  margin: 0 auto;
  padding: 14px 24px 0;
  font-size: 10pt;
  color: #7a6a5a;
}
.breadcrumb a { color: var(--orange3); text-decoration: none; font-weight: 700; }

.age-path {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  max-width: 1000px;
  margin: 24px auto 10px;
  padding: 0 16px;
}
.age-path a {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  background: #fff;
  border-radius: 14px;
  padding: 10px 16px;
  min-width: 120px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
  transition: 0.2s;
}
.age-path a:hover { transform: translateY(-3px); }
.age-path a b { color: var(--orange3); font-size: 10pt; }
.age-path a strong { color: #2b1d10; font-size: 12pt; }

#cards .card { height: auto; min-height: 560px; padding-bottom: 90px; }
#cards .card .product-description h2 {
  margin: 0;
  padding: 0;
  margin-top: 2em;
  font-family: 'Mansalva', cursive;
  font-weight: normal;
  font-size: 22pt;
}
#cards .card .detail-link {
  position: absolute;
  bottom: 78px;
  left: 0;
  right: 0;
  font-weight: 800;
  color: var(--orange3);
  text-decoration: none;
  font-size: 11pt;
}
#cards .card .detail-link:hover { text-decoration: underline; }

/* ---------- mobile ---------- */
@media only screen and (max-width: 900px) {
  #About #welcome .welcome-text .text-container h1 { flex-wrap: wrap; }
  #About #welcome .welcome-text .text-container span::after { display: none; }
  #About #welcome .welcome-text .text-container h1 .h1-sub { font-size: 5vw; text-align: left; width: 100%; }
  #About #welcome .welcome-text .text-container .tagline { font-size: 12pt; }
  .seo-section { padding: 40px 16px; }
  .seo-section > h2 { font-size: 19pt; }
  .lang-toggle button { padding: 4px 9px; font-size: 9pt; }
}

/* ---------- click-to-play YouTube (faster page) ---------- */
.yt-facade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  padding: 0;
  cursor: pointer;
  background-size: cover;
  background-position: center;
  background-color: #222;
}
.yt-facade::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 62px;
  height: 44px;
  transform: translate(-50%, -50%);
  border-radius: 12px;
  background: #ff0000 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M8 5v14l11-7z'/%3E%3C/svg%3E") center / 26px no-repeat;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}
.yt-facade:hover::after { background-color: #cc0000; }


/* Products page H1 keeps the old "Products" heading look */
#Products > h1 { text-align: center; }
/* Register intro on photo background */
#Register .reg-intro { max-width: 560px; margin: 0 auto 16px; text-align: center; line-height: 1.6; color: #fff; font-size: 11.5pt; font-weight: 700; text-shadow: 0 1px 4px rgba(0,0,0,.8); background: rgba(0,0,0,.35); border-radius: 12px; padding: 10px 16px; }
#Register .reg-intro a { color: #ffd166; font-weight: 800; }
/* homepage course strip & FAQ links */
.mini-faq details p a { color: var(--orange3); font-weight: 700; }
#lokasi .info-card .ic, #kursus .age-path a { font-family: inherit; }
