
/* Blog & Community (shared across pages) */
.bc-section {
  padding: 64px 0;
  background: transparent;
}

.bc-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.bc-block {
  border-radius: 16px;
  padding: 24px 24px 28px;
  background: #f0f2f5;
  text-align: center;
  box-sizing: border-box;
  overflow: hidden;
}

.bc-block-blog {
  background: #eef2f5;
}

.bc-block-community {
  background: #f0f4f2;
}

.bc-title {
  font-family: "Abril Fatface", serif;
  font-size: 1.4rem;
  font-weight: 400;
  margin-bottom: 12px;
}

.bc-image {
  display: block;
  width: 100%;
  max-width: 400px;
  aspect-ratio: 5 / 3;
  object-fit: cover;
  border-radius: 12px;
  margin: 0 auto 12px;
}

.bc-text {
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 16px;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.bc-button {
  display: inline-block;
  padding: 8px 60px;
  border-radius: 999px;
  background: #222;
  color: #fff;
  font-size: 0.9rem;
  text-decoration: none;
  transition: box-shadow 0.2s ease, transform 0.2s ease, background-color 0.2s ease;
}

@media (hover: hover) and (pointer: fine) {
  .bc-button:hover {
    background-color: #333;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  }

  .bc-button:active {
    transform: scale(0.95);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  }
}

/* Footer (shared across pages) */
.site-footer {
  margin-top: 64px;
  background: transparent;
  color: #111;
  font-size: 0.9rem;
}

/* Contact band */
.footer-contact {
  padding: 40px 0;
  background: #1d1d1d;
}

.footer-contact-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  text-align: center;
  color: #fff;
}

.footer-contact-title {
  font-family: "Abril Fatface", serif;
  font-size: 1.4rem;
  font-weight: 400;
  margin-bottom: 8px;
}

.footer-contact-body {
  max-width: 520px;
  line-height: 1.6;
}

.footer-contact-button {
  display: inline-block;
  padding: 10px 72px;
  border-radius: 999px;
  background: #fff;
  color: #111;
  font-size: 0.95rem;
  text-decoration: none;
  transition: box-shadow 0.2s ease, transform 0.2s ease, background-color 0.2s ease;
}

@media (hover: hover) and (pointer: fine) {
  .footer-contact-button:hover {
    background-color: #f5f5f5;
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.4);
  }

  .footer-contact-button:active {
    transform: scale(0.95);
    box-shadow: 0 2px 4px rgba(255, 255, 255, 0.2);
  }
}

/* Bottom bar */
.footer-bottom {
  border-top: 1px solid #ddd;
  padding: 16px 0;
  background: transparent;
}

.footer-bottom-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.footer-copy {
  color: #aaa;
}

.footer-badge {
  border: none;
  padding: 0;
  width: auto;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  position: relative;
  background: transparent;
}

.footer-text-ring {
  position: relative;
  height: 200px;
  width: 200px;
}

.footer-text-ring__text {
  position: absolute;
  top: 50%;
  left: 50%;
  display: block;
  animation: footer-spin 10s linear infinite;
  transform-origin: center center;
}

@keyframes footer-spin {
  0% {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  100% {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

.footer-text-ring__char {
  position: absolute;
  top: 50%;
  left: 50%;
  display: block;
  text-transform: uppercase;
  font-size: clamp(14px, 0.8333333333vw, 16px);
  font-weight: 700;
  transform: translate(-50%, -50%) rotate(calc(360deg / var(--total) * var(--index))) translateY(calc(var(--radius, 7.343942196103912) * -1ch));
  white-space: nowrap;
}

.footer-text-ring__char--dot {
  display: block;
  height: 9px;
  width: 1rem;
}

.footer-text-ring__char--dot img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.footer-text-ring__heart {
  position: absolute;
  top: 50%;
  left: 50%;
  margin-top: 0.25rem;
  display: block;
  height: 67px;
  width: 70px;
  transform: translate(-50%, -50%);
  z-index: 1;
}

/* Responsive */
@media (max-width: 768px) {
  .bc-inner {
    grid-template-columns: 1fr;
  }

  .bc-title {
    font-family: "Abril Fatface", serif;
  }

  .footer-contact-title {
    font-family: "Abril Fatface", serif;
  }

  .bc-text {
    padding-left: 16px;
    padding-right: 16px;
  }

  .footer-bottom-inner {
    flex-direction: column;
    align-items: center;
    gap: 24px;
  }

  .footer-copy {
    order: 2;
    text-align: center;
  }

  .footer-badge {
    order: 1;
  }
}
:root {
  --bg: #ffffff;
  --text: #0d1b2a;
  --muted: #4a5568;
  --accent: #f5b400;
  --border: #e2e8f0;
}

* {
  box-sizing: border-box;
}

/* Scroll animation for content sections */
/* Base animation: slide up from bottom with saturation effect */
.slide-up {
  opacity: 0;
  transform: translateY(60px);
  filter: saturate(0%);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.8s cubic-bezier(0.4, 0, 0.2, 1),
              filter 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.slide-up.visible {
  opacity: 1;
  transform: translateY(0);
  filter: saturate(100%);
}

/* Image wipe animation: reveal from bottom (wipe up) */
.practical-photo,
.partner-photo,
.achievement-image,
.inhouse-photo,
.blog-card-image {
  position: relative;
  overflow: hidden;
}

/* Apply wipe animation to all content images */
.practical-photo img,
.partner-photo img,
.achievement-image img,
.about-practical-image img,
.about-practical img,
.inhouse-photo img,
.program-slider-placeholder img,
.blog-card-image img,
.blog-article-hero-image img,
.blog-article-image,
.news-image-wrapper img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  clip-path: inset(0 0 100% 0);
  transition: clip-path 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* bc-image has specific sizing, so handle separately */
.bc-image {
  clip-path: inset(0 0 100% 0);
  transition: clip-path 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.practical-photo.visible img,
.partner-photo.visible img,
.achievement-image.visible img,
.about-practical-image.visible img,
.about-practical.visible img,
.inhouse-photo.visible img,
.program-slider-placeholder.visible img,
.blog-card-image.visible img,
.blog-article-hero-image.visible img,
.blog-article-image.visible,
.news-image-wrapper.visible img,
.bc-image.visible {
  clip-path: inset(0 0 0 0);
}

/* Also handle images inside visible parent containers */
.blog-card.visible .blog-card-image img,
.bc-block.visible .bc-image {
  clip-path: inset(0 0 0 0);
}

/* Stagger animation for grid items */
.practical-photos .practical-photo:nth-child(1),
.partner-grid .partner-photo:nth-child(1) {
  transition-delay: 0.1s;
}

.practical-photos .practical-photo:nth-child(1) img,
.partner-grid .partner-photo:nth-child(1) img {
  transition-delay: 0.1s;
}

.practical-photos .practical-photo:nth-child(2),
.partner-grid .partner-photo:nth-child(2) {
  transition-delay: 0.2s;
}

.practical-photos .practical-photo:nth-child(2) img,
.partner-grid .partner-photo:nth-child(2) img {
  transition-delay: 0.2s;
}

.practical-photos .practical-photo:nth-child(3),
.partner-grid .partner-photo:nth-child(3) {
  transition-delay: 0.3s;
}

.practical-photos .practical-photo:nth-child(3) img,
.partner-grid .partner-photo:nth-child(3) img {
  transition-delay: 0.3s;
}

.practical-photos .practical-photo:nth-child(4),
.partner-grid .partner-photo:nth-child(4) {
  transition-delay: 0.4s;
}

.practical-photos .practical-photo:nth-child(4) img,
.partner-grid .partner-photo:nth-child(4) img {
  transition-delay: 0.4s;
}

/* Text word-by-word animation */
.text-animate {
  overflow: visible;
}

.text-animate .word {
  display: inline-block;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
}

.text-animate.visible .word {
  opacity: 1;
  transform: translateY(0);
}

body {
  margin: 0;
  font-family: "Maitree", serif;
  color: var(--text);
  background: #ffffff;
  line-height: 1.6;
  position: relative;
}

a {
  font-family: "Maitree", serif;
}

/* Particle background canvas */
.particles-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
  opacity: 0.6;
}

.site-header {
  position: relative;
  width: 100%;
  background: #ffffff;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}

.site-header-fixed {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  width: 100%;
  background: #ffffff;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  display: block;
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.site-header-fixed.nav-open {
  z-index: 1001;
}

.site-header-fixed.scrolled {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.site-header-fixed .header-inner {
  padding: 8px 16px;
}

.logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.logo-image {
  display: block;
  height: 48px;
  width: auto;
}

.site-header-fixed .logo-image {
  height: 40px;
  width: 40px;
  object-fit: contain;
}

.main-nav {
  margin-left: 248px;
  display: flex;
  align-items: center;
  gap: 50px;
}

.main-nav ul {
  display: flex;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-nav a {
  text-decoration: none;
  color: #222;
  font-size: 0.95rem;
  font-weight: 700;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  text-decoration: underline;
}

.main-nav a.active {
  color: #666;
  text-decoration: underline;
}

/* Language Switcher */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 8px;
}

.lang-switcher button {
  background: none;
  border: none;
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 600;
  color: #222;
  cursor: pointer;
  transition: color 0.2s ease;
  font-family: "Maitree", serif;
}

.lang-switcher button:hover {
  color: #4a6cf7;
}

.lang-switcher button.active {
  color: #4a6cf7;
  text-decoration: underline;
}

.lang-switcher .lang-separator {
  color: #ccc;
  font-size: 12px;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

.site-header-fixed .menu-toggle {
  display: block;
  position: relative;
  width: 28px;
  height: 22px;
  margin-left: auto;
  cursor: pointer;
  z-index: 1002;
}

.site-header-fixed .menu-toggle span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 3px;
  background: #333;
  border-radius: 2px;
}

.site-header-fixed .menu-toggle span:nth-child(1) {
  top: 0;
}

.site-header-fixed .menu-toggle span:nth-child(2) {
  top: 9px;
}

.site-header-fixed .menu-toggle span:nth-child(3) {
  top: 18px;
}

.site-header-fixed .main-nav {
  display: none;
  position: fixed;
  top: 56px;
  left: 0;
  right: 0;
  width: 100%;
  max-height: calc(100vh - 56px);
  overflow-y: auto;
  background: #ffffff;
  padding: 12px 0;
  border-bottom: 1px solid #eee;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  z-index: 999;
  opacity: 0;
  transform: translateY(-100%);
  transition: opacity 0.4s ease, transform 0.4s ease;
  flex-direction: column;
  align-items: stretch;
  margin-left: 0;
}

.site-header-fixed.nav-open .main-nav {
  display: flex;
  opacity: 1;
  transform: translateY(0);
  flex-direction: column;
  align-items: center;
  margin-left: 0;
}

.site-header-fixed.nav-open .main-nav .lang-switcher {
  justify-content: center;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #eee;
  width: 100%;
}

.site-header-fixed .main-nav ul {
  display: flex;
  flex-direction: column;
  gap: 0;
  text-align: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-header-fixed .main-nav li {
  margin: 8px 0;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.site-header-fixed.nav-open .main-nav li {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger animation for menu items - appear after background */
.site-header-fixed.nav-open .main-nav li:nth-child(1) {
  transition-delay: 0.4s;
}

.site-header-fixed.nav-open .main-nav li:nth-child(2) {
  transition-delay: 0.45s;
}

.site-header-fixed.nav-open .main-nav li:nth-child(3) {
  transition-delay: 0.5s;
}

.site-header-fixed.nav-open .main-nav li:nth-child(4) {
  transition-delay: 0.55s;
}

.site-header-fixed.nav-open .main-nav li:nth-child(5) {
  transition-delay: 0.6s;
}

.site-header-fixed.nav-open .main-nav li:nth-child(6) {
  transition-delay: 0.65s;
}

.menu-toggle:focus-visible {
  outline: 2px solid #94a3b8;
  outline-offset: 2px;
}

@media (max-width: 768px) {
  .header-inner {
    flex-wrap: wrap;
    position: relative;
  }

  .main-nav {
    margin-left: 0 !important;
    gap: 0;
    flex-direction: column;
  }

  .site-header .main-nav,
  .site-header-fixed .main-nav {
    margin-left: 0 !important;
  }

  .lang-switcher {
    display: none;
  }

  .main-nav .lang-switcher {
    display: flex;
    justify-content: center;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #eee;
  }

  .lang-switcher button {
    font-size: 12px;
    padding: 4px 6px;
  }

  .lang-switcher .lang-separator {
    font-size: 12px;
  }

  .menu-toggle {
    display: block;
    position: relative;
    width: 28px;
    height: 22px;
    margin-left: auto;
    cursor: pointer;
    z-index: 1002;
  }

  .menu-toggle span {
    position: absolute;
    left: 0;
    width: 100%;
    height: 3px;
    background: #333;
    border-radius: 2px;
  }

  .menu-toggle span:nth-child(1) {
    top: 0;
  }

  .menu-toggle span:nth-child(2) {
    top: 9px;
  }

  .menu-toggle span:nth-child(3) {
    top: 18px;
  }

  .main-nav {
    margin-left: 0 !important;
    display: none;
    position: fixed;
    top: 0;
    left: 0 !important;
    right: 0;
    width: 100% !important;
    max-height: 100vh;
    overflow-y: auto;
    background: #ffffff;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    z-index: 999;
    opacity: 0;
    transform: translateY(-100%);
    transition: opacity 0.4s ease, transform 0.4s ease;
    flex-direction: column;
    align-items: stretch;
  }
  
  .site-header .main-nav,
  .site-header-fixed .main-nav {
    margin-left: 0 !important;
    left: 0 !important;
    width: 100% !important;
  }

  .main-nav ul {
    display: flex;
    flex-direction: column;
    gap: 0;
    text-align: center;
    list-style: none;
    margin: 0;
    padding: 0;
  }

  .main-nav li {
    margin: 8px 0;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
  }

  .site-header.nav-open .main-nav,
  .site-header-fixed.nav-open .main-nav {
    display: flex;
    opacity: 1;
    transform: translateY(0);
    margin-left: 0 !important;
  }

  .site-header.nav-open .main-nav li {
    opacity: 1;
    transform: translateY(0);
  }

  /* Stagger animation for menu items - appear after background */
  .site-header.nav-open .main-nav li:nth-child(1) {
    transition-delay: 0.4s;
  }

  .site-header.nav-open .main-nav li:nth-child(2) {
    transition-delay: 0.45s;
  }

  .site-header.nav-open .main-nav li:nth-child(3) {
    transition-delay: 0.5s;
  }

  .site-header.nav-open .main-nav li:nth-child(4) {
    transition-delay: 0.55s;
  }

  .site-header.nav-open .main-nav li:nth-child(5) {
    transition-delay: 0.6s;
  }

  .site-header.nav-open .main-nav li:nth-child(6) {
    transition-delay: 0.65s;
  }
}
