/* ── Variables ── */
:root {
  --primary: #1B3A6B;
  --primary-dark: #122a52;
  --accent: #D4201B;
  --light-bg: #F7F8FA;
  --text: #2D3748;
  --text-muted: #718096;
  --border: #E2E8F0;
  --white: #ffffff;
  --section-pad: 80px;
}

/* ── Base ── */
* { box-sizing: border-box; }
body { font-family: 'Inter', sans-serif; color: var(--text); background: var(--white); }
h1,h2,h3,h4,h5,h6 { font-weight: 700; }
.fw-700 { font-weight: 700; }
img { max-width: 100%; }
a { text-decoration: none; }

/* ── Top bar ── */
#topBar {
  background: var(--primary-dark);
  padding: 6px 0;
  font-size: 0.78rem;
}
#topBar a { color: rgba(255,255,255,0.65); transition: color 0.2s; }
#topBar a:hover { color: #fff; }
.top-contact { gap: 1.2rem !important; }
.top-social {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 0.7rem; color: rgba(255,255,255,0.7);
  transition: all 0.2s;
}
.top-social:hover { background: var(--accent); color: #fff; }

/* ── Navbar ── */
#mainNav {
  background: var(--primary);
  padding: 14px 0;
  transition: all 0.3s;
  box-shadow: 0 2px 20px rgba(0,0,0,0.15);
}
#mainNav .navbar-brand span { font-size: 1.3rem; letter-spacing: -0.3px; }
#mainNav .nav-link { color: rgba(255,255,255,0.85) !important; font-size: 0.9rem; font-weight: 500; padding: 8px 12px !important; border-radius: 6px; transition: all 0.2s; }
#mainNav .nav-link:hover { color: #fff !important; background: rgba(255,255,255,0.1); }
#mainNav .dropdown-menu { border: none; box-shadow: 0 10px 40px rgba(0,0,0,0.12); border-radius: 10px; padding: 8px; margin-top: 8px; }
#mainNav .dropdown-item { border-radius: 6px; padding: 8px 14px; font-size: 0.88rem; font-weight: 500; color: var(--text); transition: all 0.2s; }
#mainNav .dropdown-item:hover { background: var(--light-bg); color: var(--primary); }

/* ── Brand mark ── */
.logo-wrap {
  width: 40px; height: 40px;
  background: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  padding: 3px;
  box-shadow: 0 0 0 2px rgba(255,255,255,0.2);
}
.logo-wrap img { width: 100%; height: 100%; object-fit: contain; border-radius: 50%; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-size: 1rem; font-weight: 800; letter-spacing: 0.5px; color: #fff; }
.brand-sub { font-size: 0.6rem; font-weight: 500; letter-spacing: 3px; color: rgba(255,255,255,0.55); margin-top: 2px; }

/* ── Buttons ── */
.btn-accent { background: var(--accent); color: #fff; font-weight: 600; border: none; border-radius: 8px; padding: 10px 24px; transition: all 0.2s; }
.btn-accent:hover { background: #b81a15; color: #fff; transform: translateY(-1px); box-shadow: 0 4px 15px rgba(212,32,27,0.35); }
.btn-primary-solid { background: var(--primary); color: #fff; font-weight: 600; border: none; border-radius: 8px; padding: 12px 30px; transition: all 0.2s; }
.btn-primary-solid:hover { background: var(--primary-dark); color: #fff; transform: translateY(-1px); }
.btn-outline-light-custom { border: 2px solid rgba(255,255,255,0.6); color: #fff; font-weight: 600; border-radius: 8px; padding: 10px 24px; transition: all 0.2s; }
.btn-outline-light-custom:hover { background: #fff; color: var(--primary); }
.text-accent { color: var(--accent) !important; }

/* ── Section ── */
.section { padding: var(--section-pad) 0; }
.section-light { background: var(--light-bg); }
.section-tint { background: #eef2fb; }
.section-dark { background: var(--primary); color: #fff; }
.section-label {
  font-size: 0.73rem; font-weight: 700; letter-spacing: 2.5px; text-transform: uppercase;
  color: var(--accent); display: inline-block;
  padding-bottom: 4px; border-bottom: 2px solid var(--accent);
}
.section-title { font-size: clamp(1.6rem, 3vw, 2.2rem); color: var(--text); margin-bottom: 0.5rem; }
.section-title-white { color: #fff; }
.section-subtitle { color: var(--text-muted); max-width: 560px; margin: 0 auto; }

/* ── Hero ── */
.hero-carousel { position: relative; }
.hero-slide {
  min-height: 90vh;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  position: relative;
}
.hero-slide::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(120deg, rgba(10,28,70,0.88) 0%, rgba(27,58,107,0.55) 60%, rgba(10,28,70,0.3) 100%);
}
.hero-content { position: relative; z-index: 2; }
.hero-heading { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 800; color: #fff; line-height: 1.15; }
.hero-sub { font-size: clamp(1rem, 2vw, 1.2rem); color: rgba(255,255,255,0.85); max-width: 560px; }
.hero-placeholder { min-height: 90vh; background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%); display: flex; align-items: center; }

/* Hero badge + pulse */
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.15); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.3);
  color: #fff; font-size: 0.82rem; font-weight: 600; letter-spacing: 0.5px;
  padding: 6px 14px; border-radius: 50px;
}
.pulse-dot {
  width: 8px; height: 8px; border-radius: 50%; background: #4ade80; flex-shrink: 0;
  box-shadow: 0 0 0 0 rgba(74,222,128,0.7);
  animation: pulse-ring 1.8s ease-out infinite;
}
@keyframes pulse-ring {
  0%   { box-shadow: 0 0 0 0 rgba(74,222,128,0.7); }
  70%  { box-shadow: 0 0 0 8px rgba(74,222,128,0); }
  100% { box-shadow: 0 0 0 0 rgba(74,222,128,0); }
}

/* Notice ticker strip */
.notice-ticker {
  background: var(--primary-dark); color: #fff;
  padding: 10px 0; font-size: 0.875rem;
  border-bottom: 3px solid var(--accent);
}
.ticker-label {
  background: var(--accent); color: #fff; font-size: 0.7rem; font-weight: 700;
  letter-spacing: 1px; text-transform: uppercase;
  padding: 3px 10px; border-radius: 4px; white-space: nowrap; flex-shrink: 0;
}
.ticker-text { color: rgba(255,255,255,0.9); flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ticker-link { color: var(--accent); font-weight: 600; white-space: nowrap; flex-shrink: 0; font-size: 0.82rem; }
.ticker-link:hover { color: #ff6b67; }

/* ── Stats / Achievements ── */
.stats-section { background: linear-gradient(135deg, var(--primary) 0%, #1e4d9a 100%); padding: 60px 0; }
.stat-card { text-align: center; padding: 2rem 1.25rem; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.15); border-radius: 16px; transition: transform 0.25s, background 0.25s; }
.stat-card:hover { transform: translateY(-4px); background: rgba(255,255,255,0.14); }
.stat-icon { width: 60px; height: 60px; background: rgba(255,255,255,0.15); border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; margin-bottom: 1rem; font-size: 1.5rem; color: #fff; }
.stat-value { font-size: 2.6rem; font-weight: 800; color: #fff; line-height: 1; }
.stat-label { font-size: 0.88rem; color: rgba(255,255,255,0.75); margin-top: 0.4rem; font-weight: 500; letter-spacing: 0.3px; }

/* ── Service Cards ── */
.service-card { border: none; border-radius: 16px; overflow: hidden; box-shadow: 0 4px 24px rgba(0,0,0,0.07); transition: all 0.3s; height: 100%; border-top: 3px solid transparent; }
.service-card:hover { transform: translateY(-7px); box-shadow: 0 14px 40px rgba(27,58,107,0.14); border-top-color: var(--primary); }
.service-card-icon { width: 64px; height: 64px; border-radius: 16px; display: flex; align-items: center; justify-content: center; font-size: 1.6rem; margin-bottom: 1.25rem; }
.service-card-icon.student { background: rgba(27,58,107,0.1); color: var(--primary); }
.service-card-icon.worker { background: rgba(212,32,27,0.1); color: var(--accent); }

/* ── Process Steps ── */
/* Process timeline */
.timeline { position: relative; padding-left: 32px; }
.timeline::before { content: ''; position: absolute; left: 20px; top: 0; bottom: 0; width: 2px; background: linear-gradient(to bottom, var(--primary), rgba(27,58,107,0.15)); }
.timeline-accent::before { background: linear-gradient(to bottom, var(--accent), rgba(212,32,27,0.15)); }
.timeline-item { position: relative; margin-bottom: 1.75rem; padding-left: 1.75rem; }
.timeline-item:last-child { margin-bottom: 0; }
.timeline-badge { position: absolute; left: -32px; width: 40px; height: 40px; border-radius: 50%; background: var(--primary); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 0.88rem; border: 3px solid #fff; box-shadow: 0 2px 10px rgba(27,58,107,0.25); flex-shrink: 0; }
.timeline-accent .timeline-badge { background: var(--accent); box-shadow: 0 2px 10px rgba(212,32,27,0.25); }
.timeline-card { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 1.1rem 1.25rem; box-shadow: 0 2px 8px rgba(0,0,0,0.04); transition: box-shadow 0.2s, transform 0.2s; }
.timeline-card:hover { box-shadow: 0 6px 20px rgba(27,58,107,0.1); transform: translateX(3px); }
.timeline-icon { width: 32px; height: 32px; border-radius: 8px; background: rgba(27,58,107,0.08); display: flex; align-items: center; justify-content: center; font-size: 0.9rem; color: var(--primary); flex-shrink: 0; }
.timeline-icon-accent { background: rgba(212,32,27,0.08); color: var(--accent); }

/* ── Partner Logos ── */
.partner-logo-card { border: 1px solid var(--border); border-radius: 12px; padding: 1.5rem; display: flex; align-items: center; justify-content: center; transition: all 0.2s; background: #fff; }
.partner-logo-card:hover { border-color: var(--primary); box-shadow: 0 4px 16px rgba(27,58,107,0.1); }
.partner-logo-card img { max-height: 60px; object-fit: contain; filter: grayscale(30%); transition: filter 0.2s; }
.partner-logo-card:hover img { filter: grayscale(0); }
.partner-name-fallback { font-size: 0.85rem; font-weight: 600; color: var(--text-muted); text-align: center; }

/* ── Testimonials ── */
.testimonial-card { background: #fff; border-radius: 16px; padding: 2rem; box-shadow: 0 4px 24px rgba(0,0,0,0.07); border: 1px solid var(--border); transition: box-shadow 0.2s; }
.testimonial-card:hover { box-shadow: 0 8px 32px rgba(27,58,107,0.12); }
.testimonial-avatar { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; border: 2px solid var(--border); }
.testimonial-avatar-placeholder { width: 52px; height: 52px; border-radius: 50%; background: linear-gradient(135deg, var(--primary), #2a5298); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1.2rem; flex-shrink: 0; }
.testimonial-btn { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--border); background: #fff; color: var(--primary); display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all 0.2s; font-size: 0.8rem; }
.testimonial-btn:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.carousel-indicators-inline { display: flex; gap: 6px; align-items: center; }
.carousel-indicators-inline button { width: 8px; height: 8px; border-radius: 50%; border: none; background: var(--border); padding: 0; transition: all 0.2s; }
.carousel-indicators-inline button.active { background: var(--primary); width: 22px; border-radius: 4px; }
.quote-icon { color: var(--accent); font-size: 2rem; line-height: 1; }

/* ── Notice Cards ── */
.notice-badge { font-size: 0.72rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; padding: 4px 10px; border-radius: 20px; }
.badge-announcement { background: rgba(27,58,107,0.1); color: var(--primary); }
.badge-deadline { background: rgba(212,32,27,0.1); color: var(--accent); }
.badge-intake { background: rgba(16,185,129,0.1); color: #059669; }
.badge-campaign { background: rgba(245,158,11,0.1); color: #d97706; }
.notice-card { border: 1px solid var(--border); border-radius: 12px; padding: 1.5rem; transition: all 0.2s; background: #fff; }
.notice-card:hover { border-color: var(--primary); box-shadow: 0 4px 16px rgba(27,58,107,0.1); }

/* Notice cards — homepage grid */
.notice-card-full {
  border: 1px solid var(--border); border-radius: 14px; padding: 1.6rem;
  background: #fff; transition: all 0.25s; color: var(--text);
}
.notice-card-full:hover {
  border-color: var(--primary); box-shadow: 0 8px 28px rgba(27,58,107,0.1);
  transform: translateY(-4px); color: var(--text);
}
.notice-card-title { font-size: 0.97rem; font-weight: 700; color: var(--text); line-height: 1.4; }
.notice-card-excerpt { font-size: 0.85rem; color: var(--text-muted); line-height: 1.65; }
.notice-read-link { font-size: 0.8rem; font-weight: 700; color: var(--primary); }
.notice-card-full:hover .notice-read-link { color: var(--accent); }

/* Outline brand button */
.btn-outline-brand {
  border: 2px solid var(--primary); color: var(--primary); font-weight: 600;
  border-radius: 8px; padding: 10px 28px; transition: all 0.2s; background: transparent;
}
.btn-outline-brand:hover { background: var(--primary); color: #fff; }

/* ── Profile Cards (public students / candidates) ── */
.profile-card { background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 1.75rem 1rem; transition: all 0.25s; }
.profile-card:hover { border-color: var(--primary); box-shadow: 0 8px 28px rgba(27,58,107,0.1); transform: translateY(-3px); }
.profile-avatar { width: 88px; height: 88px; border-radius: 50%; object-fit: cover; border: 3px solid var(--border); }
.profile-avatar-placeholder { width: 88px; height: 88px; border-radius: 50%; background: linear-gradient(135deg, var(--primary), #2a5298); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 1.6rem; font-weight: 700; }
.jlpt-badge { display: inline-block; background: rgba(27,58,107,0.08); color: var(--primary); font-size: 0.72rem; font-weight: 700; padding: 3px 10px; border-radius: 20px; letter-spacing: 0.5px; }
.candidate-title { display: block; font-size: 0.78rem; color: var(--text-muted); font-weight: 500; line-height: 1.3; margin-top: 2px; }

/* ── Team Cards ── */
.team-card { padding: 1.5rem 1rem; }
.team-photo-wrap { width: 110px; height: 110px; border-radius: 50%; overflow: hidden; border: 3px solid var(--border); box-shadow: 0 4px 16px rgba(0,0,0,0.1); }
.team-photo { width: 100%; height: 100%; object-fit: cover; }

/* ── Rich text content ── */
.rich-content p { margin-bottom: 0.75rem; }
.rich-content ul, .rich-content ol { padding-left: 1.25rem; margin-bottom: 0.75rem; }
.rich-content li { margin-bottom: 0.25rem; }
.rich-content strong { color: var(--text); }

/* ── CTA Section ── */
.cta-section { background: linear-gradient(135deg, var(--primary) 0%, #2a5298 100%); padding: var(--section-pad) 0; position: relative; overflow: hidden; }
.cta-section::before { content: ''; position: absolute; inset: 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.03'%3E%3Ccircle cx='30' cy='30' r='20'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E"); }

/* ── Gallery ── */
.gallery-img { border-radius: 10px; object-fit: cover; width: 100%; height: 220px; transition: transform 0.3s; cursor: pointer; }
.gallery-img:hover { transform: scale(1.02); }

/* ── Detail pages ── */
.detail-cover { height: 380px; object-fit: cover; border-radius: 16px; width: 100%; }
.info-item { display: flex; gap: 0.75rem; align-items: flex-start; padding: 0.5rem 0; border-bottom: 1px solid var(--border); }
.info-item:last-child { border-bottom: none; }
.info-icon { color: var(--primary); width: 20px; flex-shrink: 0; margin-top: 2px; }

/* ── Page Hero ── */
.page-hero { background: linear-gradient(135deg, var(--primary) 0%, #2a5298 100%); padding: 60px 0 50px; color: #fff; }
.page-hero h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.breadcrumb-item, .breadcrumb-item a { color: rgba(255,255,255,0.7); font-size: 0.85rem; }
.breadcrumb-item.active { color: #fff; }
.breadcrumb-divider { color: rgba(255,255,255,0.4); }

/* ── Footer ── */
.footer { background: #0f1f3d; }
.footer-top { border-bottom: 1px solid rgba(255,255,255,0.06); }
.footer-heading { color: rgba(255,255,255,0.9); font-weight: 600; font-size: 0.85rem; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 1rem; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 0.6rem; }
.footer-links a, .footer-links li { color: rgba(255,255,255,0.5); font-size: 0.87rem; transition: color 0.2s; }
.footer-links a:hover { color: #fff; }
.footer-bottom { background: rgba(0,0,0,0.2); }
.text-muted-light { color: rgba(255,255,255,0.45) !important; }
.social-link { width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.7); display: flex; align-items: center; justify-content: center; transition: all 0.2s; font-size: 0.85rem; }
.social-link:hover { background: var(--accent); color: #fff; }

/* ── Sidebar ── */
.sticky-sidebar { position: sticky; top: 90px; }
.mb-col-block { margin-bottom: 3.5rem; }
.col-divider { border: none; border-top: 1px solid var(--border); margin: 3rem 0; }

.sidebar-panel { border: 1px solid var(--border); border-radius: 14px; overflow: hidden; background: #fff; box-shadow: 0 2px 12px rgba(0,0,0,0.06); }
.sidebar-panel-header { background: var(--primary); color: #fff; padding: .9rem 1.25rem; font-size: .9rem; }
.sidebar-filter-bar { padding: .6rem 1rem; border-bottom: 1px solid var(--border); display: flex; flex-wrap: wrap; gap: .35rem; background: #fafbfc; }
.sidebar-filter-btn { font-size: .7rem; font-weight: 600; padding: 3px 9px; border-radius: 20px; border: 1px solid var(--border); background: #fff; cursor: pointer; color: #666; transition: all .15s; line-height: 1.6; }
.sidebar-filter-btn.active, .sidebar-filter-btn:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.sidebar-panel-footer { padding: .85rem 1rem; border-top: 1px solid var(--border); background: #fafbfc; }

/* Notice sidebar items */
.sidebar-notices-list { max-height: 480px; overflow-y: auto; }
.sidebar-notice-item { display: block; padding: .85rem 1.25rem; border-bottom: 1px solid var(--border); transition: background .15s; }
.sidebar-notice-item:last-child { border-bottom: none; }
.sidebar-notice-item:hover { background: #f5f7fa; }
.sidebar-notice-title { font-size: .88rem; font-weight: 600; color: var(--text-dark); line-height: 1.35; margin-top: .2rem; }

/* Service link sidebar items */
.sidebar-links-list { max-height: 520px; overflow-y: auto; }
.sidebar-link-item { display: block; padding: .9rem 1.25rem; border-bottom: 1px solid var(--border); transition: background .15s; }
.sidebar-link-item:last-child { border-bottom: none; }
.sidebar-link-item:hover { background: #f5f7fa; }
.sidebar-link-icon { color: var(--primary); font-size: .95rem; width: 18px; flex-shrink: 0; margin-top: 2px; }
.sidebar-link-title { font-size: .88rem; font-weight: 600; color: var(--text-dark); line-height: 1.35; }
.sidebar-link-desc { font-size: .78rem; color: #888; margin-top: 2px; line-height: 1.4; }

/* Extra notice badges for link types */
.notice-badge.badge-policy { background: #e8f0fe; color: #1b3a6b; }
.notice-badge.badge-news { background: #e6f4ea; color: #2d6a4f; }
.notice-badge.badge-video { background: #fce8e6; color: #c5221f; }
.notice-badge.badge-other { background: #f1f3f4; color: #5f6368; }

/* FAQ accordion */
.faq-filter-bar { gap: 0.5rem; }
.faq-filter-btn { font-size: 0.82rem; font-weight: 600; padding: 6px 16px; border-radius: 20px; border: 1px solid var(--border); background: #fff; cursor: pointer; color: #666; transition: all .15s; }
.faq-filter-btn.active, .faq-filter-btn:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.faq-item { border: 1px solid var(--border) !important; border-radius: 10px !important; margin-bottom: 0.6rem; overflow: hidden; }
.faq-btn { font-size: 0.95rem; font-weight: 600; color: var(--text); background: #fff; border: none; box-shadow: none !important; padding: 1rem 1.25rem; }
.faq-btn:not(.collapsed) { color: var(--primary); background: #f0f4ff; }
.faq-btn::after { filter: none; }
.faq-body { font-size: 0.9rem; color: var(--text-muted); line-height: 1.7; padding: 0.75rem 1.25rem 1.1rem; border-top: 1px solid var(--border); }

/* Floating WhatsApp button */
.whatsapp-fab {
  position: fixed; bottom: 28px; right: 28px; z-index: 1050;
  width: 58px; height: 58px; border-radius: 50%;
  background: #25D366; color: #fff; font-size: 1.8rem;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.5);
  transition: transform 0.2s, box-shadow 0.2s;
  animation: wa-pulse 2.5s ease-out infinite;
}
.whatsapp-fab:hover { transform: scale(1.1); box-shadow: 0 6px 28px rgba(37,211,102,0.65); color: #fff; }
@keyframes wa-pulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(37,211,102,0.5); }
  50%       { box-shadow: 0 4px 20px rgba(37,211,102,0.5), 0 0 0 12px rgba(37,211,102,0.12); }
}

/* Why Choose Us cards */
.why-card { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 1.5rem 1.25rem; height: 100%; transition: transform 0.22s, box-shadow 0.22s, border-color 0.22s; }
.why-card:hover { transform: translateY(-5px); box-shadow: 0 8px 28px rgba(27,58,107,0.12); border-color: var(--primary); }
.why-icon { width: 52px; height: 52px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; margin-bottom: 0.9rem; }
.why-title { font-size: 0.92rem; font-weight: 700; color: var(--text); margin-bottom: 0.4rem; }
.why-desc { font-size: 0.82rem; color: var(--text-muted); line-height: 1.5; margin: 0; }

/* Partner map */
.partner-map { height: 480px; border-radius: 14px; border: 1px solid var(--border); overflow: hidden; }
.partner-map-sm { height: 360px; }
.map-marker { width: 16px; height: 16px; border-radius: 50%; border: 2.5px solid #fff; box-shadow: 0 2px 6px rgba(0,0,0,0.35); }
.map-dot-legend { display: inline-block; width: 13px; height: 13px; border-radius: 50%; flex-shrink: 0; }
.map-legend { font-size: .85rem; color: var(--text-muted); }

/* Scroll-to-top button */
.scroll-top-btn {
  position: fixed; bottom: 98px; right: 30px; z-index: 1040;
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--primary); color: #fff; border: none;
  font-size: 0.9rem; cursor: pointer;
  box-shadow: 0 3px 12px rgba(27,58,107,0.35);
  opacity: 0; transform: translateY(12px);
  transition: opacity 0.25s, transform 0.25s;
  display: flex; align-items: center; justify-content: center;
}
.scroll-top-btn.visible { opacity: 1; transform: translateY(0); }
.scroll-top-btn:hover { background: var(--primary-dark); }

/* Active nav link */
#navMenu .nav-link.active,
#navMenu .dropdown-item.active { color: var(--accent) !important; font-weight: 600; }

/* Smooth scroll */
html { scroll-behavior: smooth; }

/* ── Booking Page ── */
.booking-hero {
  background: linear-gradient(135deg, var(--primary) 0%, #1e4d9a 60%, #2a5298 100%);
  padding: 80px 0 70px; color: #fff; position: relative; overflow: hidden;
}
.booking-hero::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='40' cy='40' r='30' fill='none' stroke='%23ffffff' stroke-width='1' stroke-opacity='0.04'/%3E%3C/svg%3E") repeat;
}
.booking-hero-title { font-size: clamp(2rem, 4.5vw, 3rem); font-weight: 800; line-height: 1.15; color: #fff; }
.booking-hero-sub { font-size: 1.05rem; color: rgba(255,255,255,0.85); max-width: 540px; line-height: 1.7; }
.booking-pill {
  display: inline-flex; align-items: center;
  background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.25);
  color: rgba(255,255,255,0.9); font-size: 0.82rem; font-weight: 500;
  padding: 6px 14px; border-radius: 50px;
}
.booking-hero-graphic {
  width: 220px; height: 220px; border-radius: 50%;
  background: rgba(255,255,255,0.08); border: 2px solid rgba(255,255,255,0.15);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 5rem; color: rgba(255,255,255,0.6);
  margin: 0 auto;
}

.booking-panel {
  background: #fff; border: 1px solid var(--border); border-radius: 20px;
  padding: 2.5rem; box-shadow: 0 8px 40px rgba(27,58,107,0.08);
}
.booking-step-header { display: flex; align-items: flex-start; gap: 1rem; }
.booking-step-num {
  width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0;
  background: var(--primary); color: #fff; font-weight: 800; font-size: 0.9rem;
  display: flex; align-items: center; justify-content: center;
}
.booking-divider { border: none; border-top: 1px dashed var(--border); margin: 2rem 0; }

.booking-date-input {
  width: 100%; max-width: 300px; padding: 12px 16px;
  border: 2px solid var(--border); border-radius: 10px;
  font-size: 0.95rem; font-family: inherit; color: var(--text);
  transition: border-color 0.2s; outline: none;
}
.booking-date-input:focus { border-color: var(--primary); }

.slots-grid { display: flex; flex-wrap: wrap; gap: 10px; -webkit-box-orient: horizontal; }
.slot-pill {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 12px 20px; border-radius: 12px; border: 2px solid var(--border);
  background: #fff; cursor: pointer; transition: all 0.2s;
  font-weight: 700; font-size: 0.9rem; color: var(--text); min-width: 100px;
}
.slot-pill.available:hover { border-color: var(--primary); background: #eef2fb; color: var(--primary); transform: translateY(-2px); box-shadow: 0 4px 12px rgba(27,58,107,0.12); }
.slot-pill.booked { opacity: 0.4; cursor: not-allowed; text-decoration: line-through; }
.slot-dur { font-size: 0.72rem; font-weight: 500; color: var(--text-muted); margin-top: 3px; }
.slot-pill.available:hover .slot-dur { color: var(--primary); }

/* How it works cards */
.how-card { padding: 1.75rem 1.25rem; background: #fff; border: 1px solid var(--border); border-radius: 16px; }
.how-num {
  width: 48px; height: 48px; border-radius: 50%; margin: 0 auto;
  background: linear-gradient(135deg, var(--primary), #2a5298);
  color: #fff; font-weight: 800; font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center;
}

/* ── Booking Modal ── */
.bm-dialog { max-width: 860px; }
.booking-modal-content { border: none; border-radius: 20px; overflow: hidden; box-shadow: 0 24px 70px rgba(0,0,0,0.22); min-height: 520px; }

/* Left panel */
.bm-left {
  background: linear-gradient(160deg, #0f2447 0%, var(--primary) 55%, #1e4d9a 100%);
  padding: 2rem 2rem 2rem; position: relative; min-height: 520px;
}
.bm-close-left { position: absolute; top: 1rem; right: 1rem; opacity: .6; }
.bm-close-left:hover { opacity: 1; }

/* Big visual icon */
.bm-visual-wrap { position: relative; display: flex; justify-content: center; padding: 1.5rem 0 1rem; }
.bm-icon-ring {
  width: 120px; height: 120px; border-radius: 50%;
  background: rgba(255,255,255,0.1); border: 2px solid rgba(255,255,255,0.2);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 0 20px rgba(255,255,255,0.04);
}
.bm-main-icon { font-size: 3rem; color: #fff; }

/* Floating badges around icon */
.bm-float-badge {
  position: absolute; background: rgba(255,255,255,0.15);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,0.25);
  color: #fff; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.4px;
  padding: 5px 12px; border-radius: 50px; white-space: nowrap;
  display: flex; align-items: center;
}
.bm-fb-1 { top: 10px; right: 10px; }
.bm-fb-2 { bottom: 10px; left: 0px; }
.bm-fb-3 { bottom: 30px; right: 0px; }

/* Pitch text */
.bm-pitch { padding: 0 0.25rem 0.5rem; }
.bm-pitch-label { font-size: 0.68rem; font-weight: 700; letter-spacing: 2.5px; text-transform: uppercase; color: rgba(255,255,255,0.55); margin-bottom: 0.6rem; }
.bm-pitch-title { font-size: 1.55rem; font-weight: 800; color: #fff; line-height: 1.25; margin-bottom: 0.75rem; }
.bm-pitch-sub { font-size: 0.83rem; color: rgba(255,255,255,0.72); line-height: 1.65; margin-bottom: 1.1rem; }
.bm-features { display: flex; flex-direction: column; gap: 0.55rem; }
.bm-features .bm-feature-item + .bm-feature-item { margin-top: 0.55rem; }
.bm-feature-item { display: flex; align-items: center; gap: 0.65rem; font-size: 0.83rem; color: rgba(255,255,255,0.85); font-weight: 500; }
.bm-feature-item i { width: 28px; height: 28px; border-radius: 8px; background: rgba(255,255,255,0.12); display: flex; align-items: center; justify-content: center; font-size: 0.78rem; flex-shrink: 0; }

/* Right panel */
.bm-right { background: #fff; min-width: 0; }

/* Mobile pitch strip (replaces left panel on small screens) */
.bm-mobile-pitch {
  background: linear-gradient(135deg, #0f2447, var(--primary));
  padding: 0.9rem 1.2rem; color: #fff;
}
.bm-mobile-icon {
  width: 38px; height: 38px; border-radius: 10px; flex-shrink: 0;
  background: rgba(255,255,255,0.15);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; color: #fff;
}
.bm-mobile-pills { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.bm-mobile-pills span {
  background: rgba(255,255,255,0.15); border: 1px solid rgba(255,255,255,0.25);
  color: rgba(255,255,255,0.9); font-size: 0.7rem; font-weight: 600;
  padding: 3px 10px; border-radius: 50px;
  display: inline-flex; align-items: center;
}
.bm-right-header { padding: 1.4rem 1.75rem 1rem; border-bottom: 1px solid var(--border); }
.bm-right-body { padding: 1.5rem 1.75rem; }
.bm-right-footer { padding: 1rem 1.75rem; border-top: 1px solid var(--border); display: flex; justify-content: flex-end; gap: 0.75rem; }

/* Steps */
.bm-step-label { font-size: 0.68rem; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--accent); margin-bottom: 0.6rem; display: block; }
.bm-back-btn { background: none; border: none; padding: 0; font-size: 0.84rem; color: var(--text-muted); cursor: pointer; display: inline-flex; align-items: center; gap: 4px; transition: color .15s; }
.bm-back-btn:hover { color: var(--primary); }
.bm-selected-slot { display: flex; align-items: center; gap: 1rem; background: #eef2fb; border-radius: 12px; padding: 0.9rem 1.1rem; }
.bm-slot-badge-icon { width: 40px; height: 40px; border-radius: 10px; background: var(--primary); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1rem; flex-shrink: 0; }
.booking-input { border: 2px solid var(--border); border-radius: 10px; padding: 10px 14px; font-size: 0.9rem; transition: border-color 0.2s; }
.booking-input:focus { border-color: var(--primary); box-shadow: none; outline: none; }
.field-error { font-size: 0.78rem; color: var(--accent); margin-top: 4px; min-height: 18px; }

.booking-success-icon {
  width: 80px; height: 80px; border-radius: 50%; margin: 0 auto;
  background: linear-gradient(135deg, #27ae60, #2ecc71);
  color: #fff; font-size: 2rem;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(39,174,96,0.3);
}

/* Nav CTA buttons — shared pill shape */
.btn-book-nav,
.btn-contact-nav {
  border-radius: 20px; padding: 7px 18px; font-size: 0.82rem;
  font-weight: 700; transition: all 0.2s; white-space: nowrap; border-width: 1.5px; border-style: solid;
}

/* Book Consultation — solid accent (primary CTA) */
.btn-book-nav {
  background: var(--accent); color: #fff; border-color: var(--accent);
}
.btn-book-nav:hover {
  background: #b81a15; border-color: #b81a15; color: #fff;
  transform: translateY(-1px); box-shadow: 0 4px 12px rgba(212,32,27,0.35);
}

/* Contact Us — white outline (secondary) */
.btn-contact-nav {
  background: transparent; color: rgba(255,255,255,0.88); border-color: rgba(255,255,255,0.45);
}
.btn-contact-nav:hover {
  background: rgba(255,255,255,0.1); color: #fff; border-color: rgba(255,255,255,0.85);
  transform: translateY(-1px);
}

/* Homepage booking banner */
.booking-banner {
  background: linear-gradient(135deg, #0f2447 0%, var(--primary) 100%);
  border-radius: 20px; padding: 3rem 3.5rem; color: #fff;
  position: relative; overflow: hidden;
}
.booking-banner::before {
  content: ''; position: absolute; right: -60px; top: -60px;
  width: 280px; height: 280px; border-radius: 50%;
  background: rgba(255,255,255,0.04); pointer-events: none;
}
.booking-banner-title { font-size: clamp(1.4rem, 2.5vw, 1.9rem); font-weight: 800; line-height: 1.3; }
.booking-banner-sub { font-size: 0.92rem; color: rgba(255,255,255,0.8); line-height: 1.65; max-width: 420px; }

/* ── Responsive ── */

/* Booking modal — tablet and below (left panel hidden, right fills) */
@media (max-width: 991px) {
  /* Modal sizing */
  .bm-dialog { max-width: 100%; margin: 0.75rem; }
  .booking-modal-content { min-height: auto; border-radius: 16px; }

  /* Right panel padding */
  .bm-right-header { padding: 1rem 1.2rem 0.8rem; }
  .bm-right-body {
    padding: 1rem 1.2rem;
    -webkit-overflow-scrolling: touch;
    max-height: 65vh;
    overflow-y: auto;
  }
  .bm-right-footer { padding: 0.75rem 1.2rem; }

  /* Modal date input: constrain to avoid it looking oversized on iPhone */
  #bm-datePicker { width: 100%; max-width: 220px; font-size: 0.88rem; padding: 9px 12px; }

  /* Navbar action buttons: full-width, properly stacked */
  .btn-nav-full { display: block; width: 100%; text-align: center; }
}

/* Mobile — 768px and below */
@media (max-width: 768px) {
  :root { --section-pad: 50px; }

  /* Hero */
  .hero-slide { min-height: 65vh; }
  .hero-placeholder { min-height: 65vh; }

  /* Maps */
  .partner-map { height: 300px; }
  .partner-map-sm { height: 260px; }

  /* Sidebar */
  .sticky-sidebar { position: static; }

  /* Booking banner */
  .booking-banner { padding: 2rem 1.5rem; text-align: center; }
  .booking-banner-sub { max-width: 100%; }
  .booking-panel { padding: 1.5rem; }
  .booking-date-input { max-width: 100%; }

  /* Slot pills — smaller on mobile */
  .slot-pill { min-width: 80px; padding: 10px 14px; font-size: 0.82rem; }

  /* Slots grid gap fallback for older iOS Safari */
  .slots-grid { display: flex; flex-wrap: wrap; }
  .slots-grid .slot-pill { margin: 5px; }

  /* Why cards — tighter on mobile */
  .why-card { padding: 1.25rem 1rem; }

  /* Notice cards */
  .notice-card-full { padding: 1.25rem; }

  /* Booking banner button full width on small mobile */
  .booking-banner .btn { width: 100%; }

  /* Stat cards */
  .stat-value { font-size: 2rem; }
}

/* =====================================================
   Language Switcher — Top Bar (desktop)
   ===================================================== */
.top-lang-divider {
  display: inline-block;
  width: 1px; height: 14px;
  background: rgba(255,255,255,0.25);
  margin: 0 10px;
  vertical-align: middle;
}

.top-lang-btn {
  color: rgba(255,255,255,0.72);
  font-size: .75rem;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: .02em;
  transition: color .15s;
}
.top-lang-btn:hover,
.top-lang-btn:focus { color: #fff; text-decoration: none; }
.top-lang-btn::after { margin-left: 4px; }

.top-lang-menu {
  min-width: 140px;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.14);
  border: 1px solid rgba(0,0,0,0.08);
  font-size: .84rem;
  z-index: 1050;
}
#topBar .top-lang-menu .dropdown-item { padding: 7px 14px; color: #1a1a2e; }
#topBar .top-lang-menu .dropdown-item:hover { background: #f5f5f5; color: #1a1a2e; }
#topBar .top-lang-menu .dropdown-item.active { background: var(--primary); color: #fff; }

/* =====================================================
   Language Switcher — Footer (all screens)
   ===================================================== */
.footer-lang-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 6px;
}

.footer-lang-link {
  color: rgba(255,255,255,0.45);
  font-size: .78rem;
  font-weight: 500;
  text-decoration: none;
  transition: color .15s;
  padding: 2px 4px;
}
.footer-lang-link:hover { color: rgba(255,255,255,0.85); text-decoration: none; }
.footer-lang-link.active { color: #fff; font-weight: 700; }

.footer-lang-sep {
  color: rgba(255,255,255,0.2);
  font-size: .78rem;
  margin: 0 6px;
  user-select: none;
}

/* =====================================================
   Bengali & Japanese font overrides via :lang()
   ===================================================== */
:lang(bn) body,
:lang(bn) h1, :lang(bn) h2, :lang(bn) h3, :lang(bn) h4, :lang(bn) h5, :lang(bn) h6,
:lang(bn) p, :lang(bn) a, :lang(bn) button, :lang(bn) label, :lang(bn) input, :lang(bn) textarea, :lang(bn) span {
  font-family: 'Noto Sans Bengali', 'Inter', sans-serif;
}

:lang(ja) body,
:lang(ja) h1, :lang(ja) h2, :lang(ja) h3, :lang(ja) h4, :lang(ja) h5, :lang(ja) h6,
:lang(ja) p, :lang(ja) a, :lang(ja) button, :lang(ja) label, :lang(ja) input, :lang(ja) textarea, :lang(ja) span {
  font-family: 'Noto Sans JP', 'Inter', sans-serif;
}
