/* 
 * BHC Zone - Main Stylesheet
 * Matching original Astro design
 */

/* ===== Design Tokens ===== */
:root {
  --ink-900: #0f172a;
  --ink-700: #334155;
  --ink-500: #64748b;
  --surface-0: #f8fafc;
  --surface-1: #ffffff;
  --surface-2: #f1f5f9;
  --ring-soft: rgba(15, 23, 42, 0.08);
  --ring-strong: rgba(15, 23, 42, 0.14);
  --glass-bg: rgba(255, 255, 255, 0.75);
  --glass-border: rgba(255, 255, 255, 0.5);
  --shadow-sm: 0 8px 24px rgba(15, 23, 42, 0.08);
  --shadow-md: 0 20px 45px rgba(15, 23, 42, 0.14);
  --shadow-lg: 0 30px 80px rgba(15, 23, 42, 0.18);
  --border-radius-sm: 14px;
  --border-radius-md: 22px;
  --border-radius-lg: 36px;
  --transition-smooth: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-spring: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ===== Base ===== */
html, body {
  overflow-x: hidden;
  max-width: 100vw;
}

body {
  font-family: 'Manrope', sans-serif;
  line-height: 1.7;
  color: var(--ink-900);
  scroll-behavior: smooth;
  background: var(--surface-0);
  padding-top: 80px; /* fixed-top navbar offset */
}

a {
  color: var(--primaryColor, #3bb88b);
}

a:hover,
a:focus {
  color: var(--primaryDark, #458545);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  image-rendering: auto;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  letter-spacing: -0.03em;
}

/* ===== Section Utilities ===== */
.section-padding { padding: 96px 0; }
.section-title {
  font-size: clamp(2rem, 2vw + 1.6rem, 3.1rem);
  margin-bottom: 1.2rem;
  color: var(--ink-900);
}
.section-subtitle {
  font-size: 1.125rem;
  color: var(--ink-500);
  margin-bottom: 3rem;
}
.min-vh-60 { min-height: 60vh; }

/* ===== Navbar ===== */
.navbar {
  background: rgba(255, 255, 255, 0.9) !important;
  backdrop-filter: blur(16px);
  box-shadow: 0 8px 30px rgba(15, 23, 42, 0.08);
  transition: all 0.3s ease;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.6);
}

.navbar.navbar-scrolled {
  padding: 0.5rem 0;
  background: rgba(255, 255, 255, 0.97) !important;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.12);
}

.navbar-brand {
  display: flex;
  align-items: center;
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--ink-900) !important;
  text-decoration: none;
  transition: all 0.3s ease;
}
.navbar-brand:hover { transform: translateY(-2px); }
.navbar-brand .brand-text {
  font-family: 'Space Grotesk', sans-serif;
  margin-left: 0.5rem;
  color: var(--primaryColor, #3bb88b);
  line-height: 1.2;
}
@media (max-width: 768px) {
  .navbar-brand .brand-text {
    font-size: clamp(0.72rem, 0.3rem + 3vw, 1rem);
    white-space: nowrap;
  }
}

.navbar-brand img {
  height: 40px;
  width: auto;
  max-height: 40px;
  max-width: 160px;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
}

.nav-link {
  font-weight: 600;
  color: var(--ink-700) !important;
  padding: 0.5rem 1rem !important;
  transition: all 0.3s ease;
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primaryColor, #3bb88b), var(--secondaryColor, #b8d5b3));
  transition: width 0.3s ease;
}
.nav-link:hover { color: var(--primaryColor, #3bb88b) !important; }
.nav-link:hover::after { width: 80%; }

/* Language switcher */
.language-switcher .lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--ring-strong);
  background: rgba(255, 255, 255, 0.95);
  color: var(--ink-700);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  line-height: 1;
  transition: var(--transition-smooth);
}

.language-switcher .lang-toggle:hover,
.language-switcher .lang-toggle:focus {
  color: var(--ink-900);
  background: var(--surface-1);
  border-color: rgba(var(--primaryRgb, 59,184,139), 0.45);
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.08);
}

.language-switcher .lang-toggle::after {
  margin-left: 0.4rem;
}

.language-switcher .dropdown-menu {
  border-radius: 14px;
  border: 1px solid var(--ring-soft);
  box-shadow: var(--shadow-sm);
  padding: 0.35rem;
  min-width: 10.5rem;
}

.language-switcher .dropdown-item {
  border-radius: 10px;
  font-weight: 500;
  color: var(--ink-700);
  padding: 0.45rem 0.65rem;
}

.language-switcher .dropdown-item.active {
  background-color: var(--primaryColor, #3bb88b);
  color: white;
}

@media (max-width: 991px) {
  .navbar-collapse {
    background: white;
    padding: 1rem;
    border-radius: 12px;
    margin-top: 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  }

  .language-switcher {
    margin-top: 0.5rem;
  }

  .language-switcher .lang-toggle {
    width: fit-content;
  }
}

/* ===== Hero Section ===== */
.hero-section {
  position: relative;
  background: linear-gradient(140deg,
    rgba(var(--primaryRgb, 59,184,139), 0.08) 0%,
    rgba(255,255,255,0.95) 55%,
    rgba(var(--secondaryRgb, 184,213,179), 0.12) 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background:
    radial-gradient(circle at 15% 15%, rgba(var(--primaryRgb, 59,184,139), 0.2), transparent 55%),
    radial-gradient(circle at 85% 10%, rgba(var(--secondaryRgb, 184,213,179), 0.18), transparent 50%),
    radial-gradient(circle at 50% 85%, rgba(var(--primaryRgb, 59,184,139), 0.12), transparent 60%);
  pointer-events: none;
}

.hero-title {
  font-size: clamp(1.3rem, 0.5rem + 5.5vw, 4.4rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  margin-top: 3rem;
  color: var(--ink-900);
}

.hero-subtitle {
  font-size: 1.2rem;
  line-height: 1.8;
  margin-bottom: 2rem;
  color: var(--ink-500);
}

.hero-buttons { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero-buttons .btn-outline-light {
  border: 2px solid var(--primaryColor, #3bb88b) !important;
  color: var(--primaryColor, #3bb88b) !important;
  background: transparent !important;
}
.hero-buttons .btn-outline-light:hover {
  background: var(--primaryColor, #3bb88b) !important;
  color: white !important;
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(var(--primaryRgb, 59,184,139), 0.3);
}

.hero-media {
  position: relative;
  width: 100%;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.18);
  background: linear-gradient(135deg,
    rgba(var(--primaryRgb, 59,184,139), 0.18),
    rgba(var(--secondaryRgb, 184,213,179), 0.18));
  border: 1px solid rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(12px);
}

.hero-image {
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: 70vh;
  display: block;
  object-fit: cover;
  object-position: center top;
}

.media-placeholder {
  aspect-ratio: 16/9;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.25);
  backdrop-filter: blur(10px);
  color: var(--ink-900);
  padding: 3rem;
  text-align: center;
}
.media-placeholder i { font-size: 5rem; margin-bottom: 1rem; opacity: 0.8; }
.media-placeholder p { font-size: 1.2rem; font-weight: 600; margin: 0; }

@media (max-width: 991px) {
  .hero-title { margin-top: 8rem; }
  .hero-subtitle { font-size: 1.1rem; }
  .hero-media { margin-top: 3rem; }
}
@media (max-width: 576px) {
  .hero-title { margin-top: 10rem; }
  .hero-buttons { flex-direction: column; }
  .hero-buttons .btn { width: 100%; }
}

/* ===== About Section ===== */
.about-content > div { width: 100%; }

.about-image {
  border-radius: var(--border-radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  height: 450px;
}
.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.about-content-gradient {
  background: linear-gradient(135deg,
    rgba(var(--primaryRgb, 59,184,139), 0.06),
    rgba(var(--secondaryRgb, 184,213,179), 0.1));
  border-radius: var(--border-radius-md);
  padding: 2.5rem;
  border-left: 4px solid var(--primaryColor, #3bb88b);
}
.about-content-full {
  border-radius: var(--border-radius-md);
  padding: 2.5rem;
  background: var(--surface-1);
}
.about-content-highlight {
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--ring-soft);
}

.about-section {
  position: relative;
  background: linear-gradient(180deg,
    rgba(var(--primaryRgb, 59,184,139), 0.08) 0%,
    rgba(255, 255, 255, 0.92) 55%,
    rgba(var(--secondaryRgb, 184,213,179), 0.1) 100%);
}

.about-section .section-title {
  position: relative;
  display: inline-block;
  margin-bottom: 1.15rem;
  padding-bottom: 0.9rem;
}

.about-section .section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 72px;
  height: 4px;
  border-radius: 999px;
  transform: translateX(-50%);
  background: var(--primaryColor, #3bb88b);
}

.about-section .section-subtitle {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

/* Quill Editor / Rich Text Styles */
.ql-editor { padding: 0; font-size: 1.1rem; line-height: 1.8; color: var(--ink-500); }
.ql-editor h1, .ql-editor h2, .ql-editor h3,
.ql-editor h4, .ql-editor h5, .ql-editor h6 {
  color: var(--primaryColor, #3bb88b);
  margin-bottom: 1rem;
  margin-top: 1.5rem;
}
.ql-editor h1 { font-size: 2.5rem; }
.ql-editor h2 { font-size: 2rem; }
.ql-editor h3 { font-size: 1.75rem; }
.ql-editor h4 { font-size: 1.5rem; }
.ql-editor p { margin-bottom: 1rem; }
.ql-editor ul, .ql-editor ol { margin-bottom: 1rem; padding-left: 2rem; }
.ql-editor li { margin-bottom: 0.5rem; }
.ql-editor strong { font-weight: 700; color: var(--ink-900); }
.ql-editor a { color: var(--primaryColor, #3bb88b); text-decoration: none; }
.ql-editor a:hover { color: var(--primaryDark, #458545); text-decoration: underline; }
.ql-editor blockquote {
  border-left: 4px solid var(--primaryColor, #3bb88b);
  padding-left: 1.5rem;
  margin: 1.5rem 0;
  font-style: italic;
  color: var(--ink-500);
}
.ql-editor img { max-width: 100%; height: auto; border-radius: 8px; margin: 1rem 0; }

/* ===== Statistics Section ===== */
.bg-primary-gradient {
  background: linear-gradient(135deg, var(--primaryColor, #3bb88b), var(--primaryLight, #98de99));
  position: relative;
  overflow: hidden;
}
.bg-primary-gradient::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.1;
}
.stat-card { padding: 2rem 1.5rem; position: relative; z-index: 1; }
.stat-number {
  font-size: 3.5rem;
  font-weight: 700;
  color: white;
  margin-bottom: 0.5rem;
  line-height: 1;
  text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.stat-title {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.95);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
@media (max-width: 991px) {
  .stat-number { font-size: 2.5rem; }
  .stat-title { font-size: 1rem; }
}
@media (max-width: 575px) {
  .stat-card { padding: 1.5rem 1rem; }
  .stat-number { font-size: 2rem; }
  .stat-title { font-size: 0.9rem; }
}

/* ===== Team Section ===== */
.team-view { display: none; }
.team-view.active { display: flex !important; }

/* INLINE VIEW */
#inline-view .team-member {
  border-radius: 15px;
  overflow: hidden;
  background: white;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  height: 100%;
}
#inline-view .team-member:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}
#inline-view .team-member-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3/4;
}
#inline-view .team-member-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  transition: transform 0.5s ease;
}
#inline-view .team-member:hover .team-member-image img { transform: scale(1.04); }

#inline-view .team-social {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 100%);
  padding: 20px;
  display: flex;
  justify-content: center;
  gap: 15px;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s ease;
}
#inline-view .team-member:hover .team-social { opacity: 1; transform: translateY(0); }
#inline-view .team-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  color: white;
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
  text-decoration: none;
}
#inline-view .team-social a:hover { background: var(--bs-primary); transform: translateY(-5px); }

#inline-view .team-member-content { padding: 25px 20px; flex: 1; display: flex; flex-direction: column; }
#inline-view .team-member-content h4 {
  color: var(--primaryColor, #3bb88b);
  margin-bottom: 8px;
  font-weight: 700;
  font-size: 1.4rem;
}
#inline-view .team-member-content .position {
  color: var(--secondaryColor, #b8d5b3);
  font-style: italic;
  margin-bottom: 15px;
  font-size: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex-grow: 1;
}
#inline-view .team-member-content .team-quote {
  color: #888;
  font-style: italic;
  font-size: 0.88rem;
  margin-bottom: 15px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
#inline-view .view-details-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 30px;
  border: 2px solid var(--primaryColor, #3bb88b);
  border-radius: 25px;
  background: transparent;
  color: var(--primaryColor, #3bb88b);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  margin-top: 10px;
}
#inline-view .view-details-btn:hover {
  background: var(--primaryColor, #3bb88b);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(var(--primaryRgb, 59,184,139), 0.3);
}
#inline-view .view-details-btn i { font-size: 1.1rem; }

/* Inline expanded details */
.member-details-inline {
  background: white;
  margin: 30px 0;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.1);
  overflow: hidden;
  animation: slideDown 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.inline-container { padding: 40px; position: relative; }
.close-btn-inline {
  position: absolute;
  top: 20px; right: 20px;
  width: 40px; height: 40px;
  border-radius: 50%;
  border: none;
  background: #e9ecef;
  color: #495057;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
}
.close-btn-inline:hover { background: #dc3545; color: white; transform: rotate(90deg); }

.member-sidebar { display: flex; flex-direction: column; gap: 25px; }
.member-avatar-wrapper {
  position: relative;
  margin: 0 auto;
  width: 220px;
  height: 220px;
}
.member-avatar-inline {
  width: 100%;
  height: 100%;
  border-radius: 20px;
  object-fit: cover;
  object-position: center top;
  image-rendering: auto;
  image-rendering: smooth;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  border: 5px solid white;
  animation: fadeInScale 0.6s ease-out;
}
.avatar-badge {
  position: absolute;
  bottom: -10px; right: -10px;
  width: 50px; height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primaryColor, #3bb88b), var(--secondaryColor, #b8d5b3));
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 5px 15px rgba(var(--primaryRgb, 59,184,139), 0.4);
  animation: bounceIn 0.8s ease-out 0.3s both;
}
.avatar-badge i { color: white; font-size: 1.3rem; }

.member-basic-info { text-align: center; }
.member-name-inline { color: var(--primaryColor, #3bb88b); font-size: 1.8rem; font-weight: 700; margin-bottom: 8px; }
.member-position-inline { color: var(--secondaryColor, #b8d5b3); font-size: 1.1rem; font-style: italic; margin: 0; }

.contact-card {
  background: linear-gradient(135deg,
    rgba(var(--primaryRgb, 59,184,139), 0.05),
    rgba(var(--secondaryRgb, 184,213,179), 0.05));
  padding: 25px;
  border-radius: 15px;
  border-left: 4px solid var(--primaryColor, #3bb88b);
}
.contact-card h4 {
  color: var(--primaryColor, #3bb88b);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.contact-list { display: flex; flex-direction: column; gap: 12px; }
.contact-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  background: white;
  border-radius: 10px;
  text-decoration: none;
  color: #495057;
  transition: all 0.3s ease;
}
.contact-link i { font-size: 1.1rem; color: var(--primaryColor, #3bb88b); min-width: 20px; }
.contact-link:hover { transform: translateX(5px); background: #f8f9fa; }

.social-card {
  background: linear-gradient(135deg, var(--primaryColor, #3bb88b), var(--secondaryColor, #b8d5b3));
  padding: 25px;
  border-radius: 15px;
}
.social-card h4 { color: white; font-size: 1.1rem; font-weight: 600; margin-bottom: 15px; display: flex; align-items: center; gap: 10px; }
.social-buttons { display: flex; gap: 12px; justify-content: center; }
.social-btn {
  width: 45px; height: 45px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.3rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
}
.social-btn:hover { background: white; color: var(--primaryColor, #3bb88b); transform: translateY(-5px) rotate(360deg); }

.member-details-content { display: flex; flex-direction: column; gap: 30px; }
.section-box { animation: fadeInUp 0.6s ease-out 0.4s both; }
.section-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 3px solid var(--primaryColor, #3bb88b);
}
.section-header i { font-size: 1.8rem; color: var(--primaryColor, #3bb88b); }
.section-header h4 { color: var(--primaryColor, #3bb88b); font-size: 1.4rem; font-weight: 700; margin: 0; }
.description-text { color: #495057; font-size: 1.05rem; line-height: 1.8; white-space: pre-wrap; }

.cta-section { text-align: center; margin-top: 20px; }
.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 15px;
  padding: 18px 40px;
  background: linear-gradient(135deg, var(--primaryColor, #3bb88b), var(--secondaryColor, #b8d5b3));
  color: white;
  font-size: 1.15rem;
  font-weight: 600;
  border-radius: 50px;
  text-decoration: none;
  box-shadow: 0 8px 25px rgba(var(--primaryRgb, 59,184,139), 0.3);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.cta-button:hover { transform: translateY(-3px); box-shadow: 0 15px 40px rgba(var(--primaryRgb, 59,184,139), 0.4); color: white; }
.cta-button i { font-size: 1.3rem; transition: transform 0.3s ease; }
.cta-button:hover i:last-child { transform: translateX(5px); }

/* Animations */
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInScale {
  from { opacity: 0; transform: scale(0.8); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-30px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes bounceIn {
  0% { opacity: 0; transform: scale(0); }
  50% { transform: scale(1.2); }
  100% { opacity: 1; transform: scale(1); }
}
@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
.spin { animation: spin 1s linear infinite; }

@media (max-width: 991.98px) {
  .member-sidebar { margin-bottom: 30px; }
  .member-avatar-wrapper { width: 180px; height: 180px; }
}
@media (max-width: 768px) {
  .inline-container { padding: 25px; }
}
@media (max-width: 576px) {
  .cta-button { width: 100%; justify-content: center; }
}

/* ===== Services Section ===== */
.bg-light-soft {
  background-color: var(--surface-2) !important;
}

.service-card {
  background: var(--glass-bg);
  padding: 2.75rem;
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(12px);
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-md);
}

.service-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--primaryColor, #3bb88b), var(--primaryLight, #98de99));
  border-radius: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  font-size: 2.5rem;
  color: white;
  transition: all 0.3s ease;
  box-shadow: 0 12px 30px rgba(var(--primaryRgb, 59,184,139), 0.25);
}

.service-card:hover .service-icon {
  transform: scale(1.1) rotate(5deg);
}

.service-card h3 {
  font-size: 1.5rem;
  color: var(--ink-900);
  margin-bottom: 1rem;
}

.service-card .ql-editor {
  color: var(--ink-500);
  line-height: 1.7;
  font-size: 1.05rem;
  flex-grow: 1;
}

/* ===== Programs Section ===== */
.program-card {
  background: var(--surface-1);
  border-radius: var(--border-radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  height: 100%;
  border: 1px solid rgba(15, 23, 42, 0.06);
}

.program-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
}

.program-image {
  position: relative;
  height: 250px;
  overflow: hidden;
}

.image-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--primaryColor, #3bb88b), var(--primaryLight, #98de99));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.1rem;
  font-weight: 600;
}

.image-placeholder i {
  font-size: 3rem;
  margin-bottom: 0.5rem;
  display: block;
}

.program-content {
  padding: 2rem;
}

.program-content h4 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--ink-900);
  margin-bottom: 0.75rem;
}

.program-date {
  font-size: 0.95rem;
  color: var(--primaryColor, #3bb88b);
  font-weight: 600;
  margin-bottom: 1rem;
}

/* ===== Blog Section ===== */
.blog-card {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.blog-image {
  position: relative;
  height: 250px;
  overflow: hidden;
}

.blog-image img {
  transition: transform 0.3s ease;
}

.blog-card:hover .blog-image img {
  transform: scale(1.05);
}

.blog-date {
  position: absolute;
  top: 20px;
  left: 20px;
  background: white;
  border-radius: 10px;
  padding: 8px 12px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.blog-date .day {
  display: block;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primaryColor, #3bb88b);
  line-height: 1;
}

.blog-date .month {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: #666;
  text-transform: uppercase;
}

.blog-content {
  padding: 2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.blog-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  font-size: 0.85rem;
}

.blog-category {
  background: var(--primaryLight, #98de99);
  color: var(--primaryDark, #458545);
  padding: 4px 12px;
  border-radius: 15px;
  font-weight: 600;
}

.blog-reading-time {
  color: #999;
  font-weight: 500;
}

.blog-title {
  margin-bottom: 1rem;
  flex: 1;
}

.blog-title a {
  color: #333;
  text-decoration: none;
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.4;
  transition: color 0.3s ease;
}

.blog-title a:hover {
  color: var(--primaryColor, #3bb88b);
}

.blog-excerpt {
  color: #666;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  flex: 1;
}

.read-more {
  color: var(--primaryColor, #3bb88b);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  align-self: flex-start;
}

.read-more:hover {
  color: var(--primaryDark, #458545);
  transform: translateX(5px);
}

/* ===== Contact Section ===== */
.contact-form-wrapper {
  background: #fff;
  border-radius: 20px;
  padding: 3rem;
  box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}
.contact-info {
  text-align: center;
  padding: 2rem 1rem;
  transition: all 0.3s ease;
}
.contact-info-link {
  text-decoration: none;
  color: inherit;
  display: block;
}
.contact-info-link:hover .contact-info { transform: translateY(-5px); }
.contact-icon {
  font-size: 3rem;
  color: var(--primaryColor, #3bb88b);
  margin-bottom: 1rem;
  display: block;
  transition: all 0.3s ease;
}
.contact-info-link:hover .contact-icon { color: var(--primaryDark, #458545); }
.contact-info h5 { font-size: 1.25rem; font-weight: 600; color: #333; margin-bottom: 1rem; }
.contact-info p { color: #666; margin: 0; }
.contact-info-link p { color: var(--primaryColor, #3bb88b); font-weight: 500; }
.contact-info a { color: var(--primaryColor, #3bb88b); text-decoration: none; }
.contact-info a:hover { color: var(--primaryDark, #458545); }
@media (max-width: 768px) {
  .contact-form-wrapper { padding: 2rem 1.5rem; }
}

/* ===== Newsletter Section ===== */
.newsletter-section {
  background: linear-gradient(135deg, var(--primaryColor, #3bb88b), var(--primaryDark, #458545));
  color: white;
  padding: 4rem 0;
  margin-top: 3rem;
  position: relative;
  overflow: hidden;
}
.newsletter-section::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  pointer-events: none;
}
.newsletter-title { font-size: 2.5rem; font-weight: 700; margin-bottom: 1rem; position: relative; z-index: 1; }
.newsletter-subtitle { font-size: 1.2rem; margin-bottom: 2.5rem; opacity: 0.9; position: relative; z-index: 1; }
.newsletter-form { position: relative; z-index: 1; }
.newsletter-form .input-group {
  max-width: 500px;
  margin: 0 auto;
  display: flex;
  border-radius: 50px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}
.newsletter-form .form-control {
  border: none;
  padding: 1rem 1.5rem;
  font-size: 1rem;
  flex: 1;
  background: white;
  border-radius: 0;
}
.newsletter-form .form-control:focus { box-shadow: none; border-color: transparent; }
.newsletter-form .btn {
  border: none;
  padding: 1rem 2rem;
  font-weight: 600;
  background: rgba(255,255,255,0.2);
  color: white;
  border-radius: 0;
  transition: all 0.3s ease;
  white-space: nowrap;
}
.newsletter-form .btn:hover:not(:disabled) { background: rgba(255,255,255,0.3); }
.newsletter-alert { border-radius: 10px; border: none; font-weight: 500; padding: 0.75rem 1rem; font-size: 0.95rem; }
.newsletter-section .newsletter-alert.alert-success {
  background: rgba(255, 255, 255, 0.95);
  color: #14532d;
}
.newsletter-section .newsletter-alert.alert-danger {
  background: rgba(255, 255, 255, 0.95);
  color: #7f1d1d;
}
@media (max-width: 768px) {
  .newsletter-title { font-size: 2rem; }
  .newsletter-form .input-group { flex-direction: column; border-radius: 15px; max-width: 100%; }
  .newsletter-form .input-group > .form-control {
    width: 100%;
    min-width: 100%;
    flex: 0 0 auto;
    border-radius: 15px 15px 0 0;
  }
  .newsletter-form .input-group > .btn {
    width: 100%;
    flex: 0 0 auto;
  }
  .newsletter-form .btn { border-radius: 0 0 15px 15px; padding: 1rem; width: 100%; }
}

/* ===== Footer ===== */
.footer {
  background: linear-gradient(180deg, #1a1a1a 0%, #0a0a0a 100%);
  color: #ffffff;
  padding: 4rem 0 2rem;
  margin-top: 5rem;
}
.footer-brand {
  max-width: 100%;
  align-items: center;
}
.footer-brand-logo {
  height: 40px !important;
  width: auto !important;
  max-height: 40px !important;
  max-width: 140px;
  object-fit: contain;
  display: inline-block;
  flex-shrink: 0;
}
.footer-brand-title {
  font-size: 1.75rem;
  line-height: 1.2;
  word-break: keep-all;
}
.footer-title { color: var(--primaryColor, #3bb88b); font-size: 1.75rem; margin-bottom: 1rem; }
.footer-description { color: #aaa; line-height: 1.7; margin-bottom: 1.5rem; }
.footer-subtitle { color: white; font-size: 1.25rem; margin-bottom: 1.5rem; font-weight: 600; }
.footer .social-links { display: flex; gap: 1rem; }
.footer .social-links a {
  width: 40px; height: 40px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.2rem;
  transition: all 0.3s ease;
  text-decoration: none;
}
.footer .social-links a:hover { background: var(--primaryColor, #3bb88b); transform: translateY(-3px); }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 0.75rem; }
.footer-links a { color: #aaa; text-decoration: none; transition: all 0.3s ease; display: inline-block; }
.footer-links a:hover { color: var(--primaryColor, #3bb88b); padding-left: 5px; }
.footer-contact { list-style: none; padding: 0; margin: 0; }
.footer-contact li { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1rem; color: #aaa; }
.footer-contact i { color: var(--primaryColor, #3bb88b); font-size: 1.2rem; }
.footer-contact a { color: #aaa; text-decoration: none; transition: color 0.3s ease; }
.footer-contact a:hover { color: var(--primaryColor, #3bb88b); }
.footer-bottom { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid rgba(255,255,255,0.1); text-align: center; }
.footer-bottom p { color: #666; margin: 0; font-size: 0.95rem; }

/* Back to top */
.btn-back-to-top {
  position: fixed;
  bottom: 20px; right: 20px;
  width: 50px; height: 50px;
  background: var(--primaryColor, #3bb88b);
  color: white;
  border: none;
  border-radius: 50%;
  display: none;
  justify-content: center;
  align-items: center;
  font-size: 18px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
  z-index: 1000;
}
.btn-back-to-top:hover { background: var(--primaryDark, #458545); transform: translateY(-2px); }
.btn-back-to-top.visible { display: flex; }
@media (max-width: 480px) {
  .btn-back-to-top { bottom: 90px; right: 16px; width: 45px; height: 45px; }
}

/* ===== Cookie Banner ===== */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 9998;
  background: rgba(15, 23, 42, 0.97);
  backdrop-filter: blur(12px);
  padding: 1.5rem 0;
  border-top: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 -4px 20px rgba(0,0,0,0.3);
}
.cookie-banner-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.cookie-banner-text { flex: 1; min-width: 250px; }
.cookie-banner-title { color: white; font-size: 1.1rem; font-weight: 700; margin-bottom: 0.4rem; }
.cookie-banner-description { color: rgba(255,255,255,0.75); font-size: 0.9rem; margin: 0; }
.cookie-banner-actions { display: flex; gap: 0.75rem; flex-shrink: 0; }
@media (max-width: 576px) {
  .cookie-banner-content { flex-direction: column; align-items: flex-start; }
  .cookie-banner-actions { width: 100%; }
  .cookie-banner-actions .btn { flex: 1; }
}

/* ===== Chat Widget ===== */
.chat-widget {
  position: fixed;
  bottom: 1.5rem; right: 1.5rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.75rem;
}
.chat-toggle {
  width: 56px; height: 56px;
  font-size: 1.25rem;
  flex-shrink: 0;
  border-radius: 50%;
}
.chat-box {
  width: 340px;
  max-width: calc(100vw - 2rem);
  border-radius: 1rem !important;
  overflow: hidden;
}
.chat-message { margin-bottom: 0.75rem; display: flex; gap: 0.5rem; }
.chat-message.user { flex-direction: row-reverse; }
.chat-bubble {
  max-width: 80%;
  padding: 0.5rem 0.75rem;
  border-radius: 0.75rem;
  font-size: 0.9rem;
  line-height: 1.4;
}
.chat-message.assistant .chat-bubble { background: #f1f5f9; color: #1e293b; border-bottom-left-radius: 0.2rem; }
.chat-message.user .chat-bubble { background: var(--primaryColor, #3bb88b); color: white; border-bottom-right-radius: 0.2rem; }
.chat-typing span {
  display: inline-block;
  width: 6px; height: 6px;
  background: #94a3b8;
  border-radius: 50%;
  margin: 0 1px;
  animation: typing 0.8s infinite alternate;
}
.chat-typing span:nth-child(2) { animation-delay: 0.2s; }
.chat-typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes typing { from { transform: translateY(0); } to { transform: translateY(-6px); } }

/* ===== Buttons ===== */
.btn-primary {
  background-color: var(--primaryColor, #3bb88b) !important;
  border-color: var(--primaryColor, #3bb88b) !important;
  border-radius: 25px;
  font-weight: 600;
  transition: all 0.3s ease;
}
.btn-primary:hover:not(:disabled) {
  background-color: var(--primaryDark, #458545) !important;
  border-color: var(--primaryDark, #458545) !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(var(--primaryRgb, 59,184,139), 0.3);
}
.btn-primary:disabled { background-color: #6c757d !important; border-color: #6c757d !important; transform: none; box-shadow: none; }
.btn-outline-primary {
  color: var(--primaryColor, #3bb88b) !important;
  border-color: var(--primaryColor, #3bb88b) !important;
  border-radius: 25px;
  font-weight: 600;
}
.btn-outline-primary:hover {
  background-color: var(--primaryColor, #3bb88b) !important;
  color: white !important;
}
.text-primary { color: var(--primaryColor, #3bb88b) !important; }
.bg-primary { background-color: rgba(var(--primaryRgb, 59,184,139), var(--bs-bg-opacity, 1)) !important; }
.border-primary { border-color: var(--primaryColor, #3bb88b) !important; }

/* ===== Form Controls ===== */
.form-control {
  border: 2px solid #e9ecef;
  border-radius: 10px;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  transition: all 0.3s ease;
}
.form-select {
  border: 2px solid #e9ecef;
  border-radius: 10px;
  padding: 0.75rem 2.5rem 0.75rem 1rem;
  font-size: 1rem;
  transition: all 0.3s ease;
}
.form-control:focus {
  border-color: var(--primaryColor, #3bb88b);
  box-shadow: 0 0 0 0.2rem rgba(var(--primaryRgb, 59,184,139), 0.25);
}
.form-select:focus {
  border-color: var(--primaryColor, #3bb88b);
  box-shadow: 0 0 0 0.2rem rgba(var(--primaryRgb, 59,184,139), 0.25);
}
.form-label { font-weight: 600; color: #333; margin-bottom: 0.5rem; }
.alert { border-radius: 10px; border: none; padding: 1rem 1.25rem; font-weight: 500; }
.alert-success { background-color: rgba(var(--primaryRgb, 59,184,139), 0.1); color: var(--primaryDark, #458545); }
.alert-danger { background-color: rgba(220,53,69,0.1); color: #dc3545; }
