/* ============================================================
   X-Link Academy - Main Stylesheet
   Color Palette:
   --navy:  #0D1B3E  (primary dark)
   --gold:  #F5A623  (accent gold)
   --light: #F8F9FA
   --white: #FFFFFF
   ============================================================ */

:root {
  --navy: #0D1B3E;
  --navy-mid: #1a2d5a;
  --navy-light: #253d72;
  --gold: #F5A623;
  --gold-dark: #d4891a;
  --light-bg: #F4F6FB;
  --text-dark: #1a1a2e;
  --text-mid: #4a5568;
  --shadow: 0 4px 20px rgba(13,27,62,0.12);
  --shadow-hover: 0 8px 32px rgba(13,27,62,0.22);
  --radius: 12px;
  --transition: all 0.3s ease;
}

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', 'Noto Sans', sans-serif;
  color: var(--text-dark);
  background: #fff;
  overflow-x: hidden;
}

/* RTL support for Arabic */
body.rtl {
  direction: rtl;
  text-align: right;
}

body.rtl .navbar-nav { flex-direction: row-reverse; }
body.rtl .ms-auto { margin-right: auto !important; margin-left: 0 !important; }
body.rtl .me-2 { margin-left: 0.5rem !important; margin-right: 0 !important; }
/* 悬浮图标始终固定在右侧，不随 RTL 翻转 */
body.rtl .floating-social { left: auto !important; right: 0 !important; }
body.rtl .floating-lang   { left: auto !important; right: 0 !important; }
body.rtl .fl-panel        { left: auto !important; right: 44px !important; }
body.rtl .fl-backdrop     { direction: ltr; }
/* 圆角始终朝左（贴右侧屏幕边缘） */
body.rtl .floating-social a,
body.rtl .floating-social button { border-radius: 8px 0 0 8px; }
body.rtl .fl-toggle               { border-radius: 8px 0 0 8px; }
body.rtl #backToTop               { left: auto; right: 1.5rem; }

/* ---- Scrollbar ---- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--light-bg); }
::-webkit-scrollbar-thumb { background: var(--navy-mid); border-radius: 3px; }

/* ============================================================
   NAVBAR
   ============================================================ */
#mainNav {
  background: var(--navy) !important;
  padding: 0.5rem 0;
  transition: var(--transition);
  z-index: 1030;
}

#mainNav.scrolled {
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
  padding: 0.25rem 0;
}

#mainNav .navbar-brand img {
  height: 52px;
  width: auto;
  transition: var(--transition);
  border: 2px solid rgba(255, 255, 255, 0.75);
  border-radius: 10px;
  padding: 3px;
  background: rgba(255, 255, 255, 0.08);
}

#mainNav.scrolled .navbar-brand img {
  height: 42px;
  border-color: rgba(255, 255, 255, 0.6);
}

#mainNav .nav-link {
  color: rgba(255,255,255,0.85) !important;
  font-weight: 500;
  font-size: 0.92rem;
  padding: 0.5rem 0.8rem !important;
  transition: var(--transition);
  position: relative;
  letter-spacing: 0.02em;
}

#mainNav .nav-link::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: var(--transition);
  border-radius: 2px;
}

#mainNav .nav-link:hover,
#mainNav .nav-link.active {
  color: var(--gold) !important;
}

#mainNav .nav-link:hover::after,
#mainNav .nav-link.active::after {
  width: 60%;
}

.navbar-toggler {
  border-color: rgba(255,255,255,0.3) !important;
}

.navbar-toggler-icon {
  filter: invert(1);
}

/* Language selector */
#langSelector {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.35);
  color: rgba(255,255,255,0.85);
  font-size: 0.85rem;
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  cursor: pointer;
  transition: var(--transition);
}

#langSelector:hover,
#langSelector:focus {
  border-color: var(--gold);
  color: var(--gold);
  outline: none;
}

#langSelector option { background: var(--navy); color: #fff; }

/* ============================================================
   HERO CAROUSEL
   ============================================================ */
#heroCarousel {
  margin-top: 64px; /* compensate fixed navbar */
}

.hero-slide {
  position: relative;
  width: 100%;
  height: 580px;
  overflow: hidden;
  background: var(--navy);
}

.hero-slide img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  filter: brightness(0.45);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(13,27,62,0.85) 0%,
    rgba(13,27,62,0.4) 60%,
    transparent 100%
  );
}

.hero-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2rem 5%;
  max-width: 700px;
}

.hero-content .badge-label {
  display: inline-block;
  background: var(--gold);
  color: var(--navy);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.3rem 0.9rem;
  border-radius: 30px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}

.hero-content h1 {
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 1rem;
  text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.hero-content p {
  font-size: clamp(0.9rem, 1.5vw, 1.1rem);
  color: rgba(255,255,255,0.88);
  margin-bottom: 1.8rem;
  line-height: 1.6;
}

.hero-content .btn-gold {
  background: var(--gold);
  color: var(--navy);
  border: none;
  font-weight: 700;
  padding: 0.65rem 1.8rem;
  border-radius: 30px;
  transition: var(--transition);
  font-size: 0.95rem;
}

.hero-content .btn-gold:hover {
  background: var(--gold-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(245,166,35,0.4);
}

.hero-content .btn-outline-light-custom {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.7);
  font-weight: 600;
  padding: 0.65rem 1.8rem;
  border-radius: 30px;
  transition: var(--transition);
  font-size: 0.95rem;
}

.hero-content .btn-outline-light-custom:hover {
  background: rgba(255,255,255,0.15);
  border-color: #fff;
  transform: translateY(-2px);
}

/* Carousel controls */
.carousel-control-prev,
.carousel-control-next {
  width: 5%;
  opacity: 0.6;
  transition: opacity 0.3s;
}

.carousel-control-prev:hover,
.carousel-control-next:hover { opacity: 1; }

.carousel-indicators [data-bs-target] {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: rgba(255,255,255,0.5);
  border: none;
  transition: var(--transition);
}

.carousel-indicators .active {
  background-color: var(--gold);
  transform: scale(1.3);
}

/* ============================================================
   SECTION COMMON
   ============================================================ */
section { padding: 80px 0; }

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header .section-label {
  display: inline-block;
  color: var(--gold);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 0.5rem;
}

.section-header h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 0.75rem;
}

.section-header p {
  color: var(--text-mid);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto;
}

.divider-gold {
  display: block;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--gold), var(--gold-dark));
  border-radius: 2px;
  margin: 0.8rem auto 0;
}

/* ============================================================
   ABOUT SECTION
   ============================================================ */
#about {
  background: #fff;
}

.about-intro-card {
  background: var(--light-bg);
  border-radius: var(--radius);
  padding: 2.5rem;
  height: 100%;
}

.about-intro-card h3 {
  color: var(--navy);
  font-weight: 700;
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

.about-intro-card p {
  color: var(--text-mid);
  line-height: 1.8;
  font-size: 0.97rem;
}

.milestone-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.milestone-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid rgba(13,27,62,0.08);
  font-size: 0.93rem;
  color: var(--text-mid);
}

.milestone-list li:last-child { border-bottom: none; }

.milestone-list .milestone-dot {
  width: 10px;
  height: 10px;
  min-width: 10px;
  border-radius: 50%;
  background: var(--gold);
  margin-top: 0.4rem;
}

.stat-box {
  background: var(--navy);
  color: #fff;
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  transition: var(--transition);
}

.stat-box:hover {
  background: var(--navy-mid);
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.stat-box .stat-num {
  font-size: 2rem;
  font-weight: 800;
  color: var(--gold);
  line-height: 1;
}

.stat-box .stat-label {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.75);
  margin-top: 0.3rem;
}

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 2rem;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 4/3;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-item:hover img { transform: scale(1.08); }

.gallery-item .gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(13,27,62,0.5);
  opacity: 0;
  transition: opacity 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-item:hover .gallery-overlay { opacity: 1; }

.gallery-overlay i { color: #fff; font-size: 1.5rem; }

/* ============================================================
   COURSES SECTION
   ============================================================ */
#courses {
  background: var(--light-bg);
}

.course-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 1.8rem;
  height: 100%;
  border: 1px solid rgba(13,27,62,0.07);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.course-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--gold), var(--gold-dark));
}

.course-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: transparent;
}

.course-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--navy), var(--navy-mid));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.2rem;
  font-size: 1.4rem;
  color: var(--gold);
}

.course-card h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.4rem;
}

.course-age {
  display: inline-block;
  font-size: 0.75rem;
  color: var(--gold-dark);
  font-weight: 600;
  background: rgba(245,166,35,0.1);
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
  margin-bottom: 0.8rem;
}

.course-card p {
  font-size: 0.88rem;
  color: var(--text-mid);
  line-height: 1.7;
  margin: 0;
}

/* ============================================================
   TEACHERS SECTION
   ============================================================ */
#teachers {
  background: #fff;
}

.team-tab {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.team-tab-btn {
  background: var(--light-bg);
  color: var(--navy);
  border: 2px solid transparent;
  padding: 0.6rem 1.5rem;
  border-radius: 30px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition);
}

.team-tab-btn.active,
.team-tab-btn:hover {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}

.teacher-card {
  background: var(--light-bg);
  border-radius: var(--radius);
  padding: 1.8rem;
  height: 100%;
  transition: var(--transition);
  border: 1px solid transparent;
}

.teacher-card:hover {
  border-color: var(--gold);
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}

.teacher-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: var(--gold);
  margin-bottom: 1rem;
  border: 3px solid var(--gold);
}

.teacher-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.2rem;
}

.teacher-exp {
  font-size: 0.8rem;
  color: var(--gold-dark);
  font-weight: 600;
  margin-bottom: 0.6rem;
}

.teacher-card p {
  font-size: 0.85rem;
  color: var(--text-mid);
  line-height: 1.65;
  margin-bottom: 0.6rem;
}

.teacher-tag {
  display: inline-block;
  font-size: 0.72rem;
  background: rgba(13,27,62,0.08);
  color: var(--navy);
  padding: 0.2rem 0.55rem;
  border-radius: 20px;
  margin: 0.15rem;
}

/* ============================================================
   ACTIVITIES SECTION
   ============================================================ */
#activities {
  background: var(--navy);
  color: #fff;
}

#activities .section-header h2 { color: #fff; }
#activities .section-header p { color: rgba(255,255,255,0.75); }

.camp-intro-box {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  padding: 2rem;
  margin-bottom: 2.5rem;
}

.camp-intro-box h3 {
  color: var(--gold);
  font-weight: 700;
  font-size: 1.4rem;
  margin-bottom: 0.8rem;
}

.camp-intro-box p {
  color: rgba(255,255,255,0.82);
  line-height: 1.8;
  font-size: 0.97rem;
}

.camp-schedule {
  background: rgba(255,255,255,0.05);
  border-radius: var(--radius);
  padding: 1.5rem 2rem;
  margin-bottom: 1.5rem;
}

.camp-schedule h4 {
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 1rem;
  font-size: 1rem;
}

.camp-schedule ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.camp-schedule ul li {
  padding: 0.4rem 0;
  color: rgba(255,255,255,0.82);
  font-size: 0.93rem;
}

.camp-schedule ul li::before {
  content: '▶';
  color: var(--gold);
  margin-right: 0.6rem;
  font-size: 0.65rem;
}

.camp-feature-list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
  margin-bottom: 1.5rem;
}

.camp-feature-list li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.82);
}

.camp-feature-list li i {
  color: var(--gold);
  font-size: 1rem;
  min-width: 18px;
}

/* Activity Photo Grid */
.activity-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.activity-grid-item {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 3/4;
  cursor: pointer;
}

.activity-grid-item:nth-child(1),
.activity-grid-item:nth-child(6) {
  grid-column: span 2;
  aspect-ratio: 16/9;
}

.activity-grid-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.4s ease, filter 0.4s ease;
  filter: brightness(0.85);
}

.activity-grid-item:hover img {
  transform: scale(1.06);
  filter: brightness(1);
}

/* ============================================================
   PARTNERS SECTION
   ============================================================ */
#partners {
  background: var(--light-bg);
}

.partner-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  text-align: center;
  transition: var(--transition);
  border: 1px solid rgba(13,27,62,0.07);
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.partner-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--gold);
}

.partner-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: var(--gold);
  margin: 0 auto 1rem;
}

.partner-card h5 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--navy);
  margin: 0;
}

.partner-card small {
  font-size: 0.78rem;
  color: var(--text-mid);
  margin-top: 0.25rem;
  display: block;
}

/* ============================================================
   CONTACT SECTION
   ============================================================ */
#contact {
  background: #fff;
}

.contact-info-card {
  background: var(--navy);
  border-radius: var(--radius);
  padding: 2.5rem;
  color: #fff;
  height: 100%;
}

.contact-info-card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 1.5rem;
}

.contact-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.4rem;
  align-items: flex-start;
}

.contact-item .contact-icon {
  width: 40px;
  height: 40px;
  min-width: 40px;
  border-radius: 10px;
  background: rgba(245,166,35,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--gold);
}

.contact-item .contact-text strong {
  display: block;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.55);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.2rem;
}

.contact-item .contact-text span,
.contact-item .contact-text a {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.9);
  text-decoration: none;
  transition: color 0.2s;
}

.contact-item .contact-text a:hover { color: var(--gold); }

.social-links-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.social-btn {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 1rem;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  transition: var(--transition);
  cursor: pointer;
  background: transparent;
}

.social-btn i { font-size: 1.1rem; }

.social-btn.whatsapp:hover { background: #25D366; border-color: #25D366; color: #fff; }
.social-btn.telegram:hover { background: #0088cc; border-color: #0088cc; color: #fff; }
.social-btn.wechat:hover   { background: #07C160; border-color: #07C160; color: #fff; }
.social-btn.facebook:hover { background: #1877f2; border-color: #1877f2; color: #fff; }

.map-embed {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-top: 2rem;
}

.map-embed iframe {
  display: block;
  width: 100%;
  height: 300px;
  border: none;
}

/* ============================================================
   FLOATING LANGUAGE SWITCHER (Mobile)
   点击地球图标 → 页面变灰 + 语言选项向左弹出
   ============================================================ */

/* 全屏遮罩 */
.fl-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 1001;
  animation: flFadeIn 0.2s ease;
}
.fl-backdrop.open { display: block; }

@keyframes flFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* 触发按钮容器 */
.floating-lang {
  position: fixed;
  right: 0;
  top: 40%;
  transform: translateY(-50%);
  z-index: 1003;
  display: none; /* 仅手机端 media query 开启 */
}

/* 地球图标按钮 */
.fl-toggle {
  width: 44px;
  height: 44px;
  border-radius: 8px 0 0 8px;
  background: var(--gold);
  border: none;
  color: var(--navy);
  font-size: 1.2rem;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: -3px 0 10px rgba(0, 0, 0, 0.3);
  position: relative;
  z-index: 1004;
}
.fl-toggle.open,
.fl-toggle:hover { background: var(--gold-dark); }

/* 语言选项面板 —— 向左弹出，与 .floating-lang 同 top/transform，无需 JS 计算 */
.fl-panel {
  position: fixed;
  top: 40%;                      /* 与 .floating-lang 保持一致 */
  transform: translateY(-50%);   /* 垂直居中对齐 */
  right: 44px;                   /* 紧贴 toggle 左边缘 */
  display: none;
  flex-direction: column;
  gap: 6px;
  z-index: 1004;
  background: var(--navy);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  padding: 10px 8px;
  box-shadow: -6px 4px 24px rgba(0, 0, 0, 0.45);
  min-width: 80px;
  animation: flSlideIn 0.2s ease;
}
.fl-panel.open { display: flex; }

@keyframes flSlideIn {
  from { opacity: 0; transform: translateY(-50%) translateX(12px); }
  to   { opacity: 1; transform: translateY(-50%) translateX(0); }
}

/* 每个语言按钮 */
.fl-item {
  width: 68px;
  height: 36px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
  line-height: 36px;
  padding: 0;
  white-space: nowrap;
}
.fl-item:hover,
.fl-item.active {
  background: var(--gold);
  color: var(--navy);
  border-color: var(--gold);
}

/* ============================================================
   FLOATING SOCIAL (Mobile right sidebar)
   ============================================================ */
.floating-social {
  position: fixed;
  right: 0;
  top: 58%;          /* 稍微偏下，与语言切换区域留出间距 */
  transform: translateY(-50%);
  z-index: 1000;
  display: none;
  flex-direction: column;
  gap: 4px;
}

.floating-social a,
.floating-social button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 8px 0 0 8px;
  font-size: 1.2rem;
  color: #fff;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.floating-social a:hover,
.floating-social button:hover { width: 52px; }

.floating-social .fs-whatsapp { background: #25D366; }
.floating-social .fs-telegram  { background: #0088cc; }
.floating-social .fs-wechat    { background: #07C160; }
.floating-social .fs-facebook  { background: #1877f2; }

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  background: var(--navy);
  color: rgba(255,255,255,0.8);
  padding: 60px 0 30px;
}

footer .footer-logo img {
  height: 60px;
  margin-bottom: 1rem;
}

footer .footer-tagline {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.6;
}

footer h5 {
  color: var(--gold);
  font-weight: 700;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 1.2rem;
}

footer .footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

footer .footer-links li { margin-bottom: 0.5rem; }

footer .footer-links a {
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  font-size: 0.88rem;
  transition: color 0.2s;
}

footer .footer-links a:hover { color: var(--gold); }

footer .footer-social {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

footer .footer-social a,
footer .footer-social button {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.75);
  font-size: 1rem;
  text-decoration: none;
  transition: var(--transition);
  cursor: pointer;
}

footer .footer-social a:hover,
footer .footer-social button:hover {
  background: var(--gold);
  color: var(--navy);
  border-color: var(--gold);
}

.footer-divider {
  border-color: rgba(255,255,255,0.1);
  margin: 2rem 0 1.5rem;
}

.footer-bottom {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.45);
  text-align: center;
}

/* ============================================================
   UTILITY CLASSES
   ============================================================ */
.btn-navy {
  background: var(--navy);
  color: #fff;
  border: none;
  padding: 0.7rem 2rem;
  border-radius: 30px;
  font-weight: 600;
  transition: var(--transition);
  font-size: 0.95rem;
}

.btn-navy:hover {
  background: var(--navy-mid);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(13,27,62,0.3);
}

.bg-navy { background-color: var(--navy) !important; }
.text-gold { color: var(--gold) !important; }
.text-navy { color: var(--navy) !important; }

/* Back to top */
#backToTop {
  position: fixed;
  bottom: 2rem;
  right: 1.5rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--navy);
  border: none;
  font-size: 1.1rem;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 999;
  box-shadow: 0 4px 12px rgba(245,166,35,0.4);
  transition: var(--transition);
}

#backToTop:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(245,166,35,0.5);
}

#backToTop.show { display: flex; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 991.98px) {
  .hero-slide { height: 420px; }
  section { padding: 60px 0; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .activity-grid { grid-template-columns: repeat(2, 1fr); }
  .activity-grid-item:nth-child(1),
  .activity-grid-item:nth-child(6) { grid-column: span 2; }
  .camp-feature-list { grid-template-columns: 1fr; }
}

@media (max-width: 767.98px) {
  #heroCarousel { margin-top: 56px; }
  .hero-slide { height: 320px; }
  .hero-content h1 { font-size: 1.5rem; }
  .hero-content p { font-size: 0.85rem; }
  .hero-content .badge-label { display: none; }
  section { padding: 48px 0; }
  .section-header { margin-bottom: 2rem; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .activity-grid { grid-template-columns: repeat(2, 1fr); }
  .social-links-grid { grid-template-columns: 1fr 1fr; }
  .floating-social { display: flex; }
  .floating-lang { display: flex; }
  #backToTop { bottom: 1rem; right: 0.8rem; }
}

@media (max-width: 575.98px) {
  .hero-slide { height: 260px; }
  .hero-content { padding: 1rem 1.2rem; }
  .hero-content h1 { font-size: 1.25rem; }
  .hero-content .btn-gold,
  .hero-content .btn-outline-light-custom { padding: 0.5rem 1.2rem; font-size: 0.85rem; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .activity-grid { grid-template-columns: 1fr 1fr; }
  .social-links-grid { grid-template-columns: 1fr; }
}

/* Loading animation */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}
