/* 
  Sunshine Education - Premium Modular CSS
  Refined based on optimized page-trangchu structure.
*/

:root {
  /* Brand Core Colors */
  --ss-blue: #0088CC;
  /* Primary Action Color */
  --ss-navy: #1B365D;
  /* Brand Dark / Structure */
  --ss-accent: #F39C12;
  /* Vibrant Accent from Icon */

  /* System Mapping */
  --ss-primary: var(--ss-blue);
  --ss-dark: var(--ss-navy);
  --ss-dark-deeper: #0F172A;

  /* Helper Colors */
  --ss-gray: #64748B;
  --ss-red: #E8336D;

  --ss-glass: rgba(255, 255, 255, 0.95);
  --ss-card-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
  --ss-radius-md: 16px;
  --ss-radius-lg: 24px;
}

/* ── RESET & BASE ── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  width: 100%;
  font-family: 'Be Vietnam Pro', sans-serif;
  color: #1E293B;
  background: #f5f7fa;
  overflow: visible !important;
  line-height: 1.6;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── FLATSOME BREAKOUT RESET (CRITICAL FOR FULL WIDTH DESKTOP) ── */
html,
body {
  margin: 0 !important;
  padding: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  overflow-x: hidden !important;
}

/* Force Flatsome parent wrappers to stretch full screen width */
#wrapper,
#main,
#content,
#sunshine-homepage,
#sunshine-page,
.ss-home-wrapper {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: visible !important;
}

/* Reset Flatsome grid system restrictions to achieve 100% full-bleed sections */
#wrapper .row,
#wrapper .col,
#wrapper .col-inner,
#main .row,
#main .col,
#main .col-inner {
  max-width: 100% !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

.ss-main-layout {
  width: 100%;
  overflow-x: clip !important;
  overflow-x: hidden;
  position: relative;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.2s;
}

img {
  max-width: 100%;
  display: block;
}

/* ── LAYOUT CHUNG ── */
.ss-sec-inner,
.ss-topbar-inner,
.ss-search-inner,
.ss-series-inner,
.ss-hdr {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.ss-card {
  background: #fff;
  border-radius: var(--ss-radius-md);
  box-shadow: var(--ss-card-shadow);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.4s ease;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.03);
}

.ss-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}

/* ── HEADER + TOPBAR WRAPPER (Smart sticky) ── */
.ss-site-header {
  position: -webkit-sticky !important;
  position: sticky !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  z-index: 99999;
  transition: margin-top 0.44s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.36s ease;
}

.ss-site-header.ss-visible {
  margin-top: 0;
  opacity: 1;
}

/* Admin Bar Fix */
body.admin-bar .ss-site-header {
  top: 32px;
}

@media screen and (max-width: 782px) {
  body.admin-bar .ss-site-header {
    top: 46px;
  }
}

/* ── TOPBAR ── */
.ss-topbar {
  background: var(--ss-gray);
  padding: 8px 0;
  max-height: 50px;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease, opacity 0.3s ease;
  opacity: 1;
}

.ss-topbar-inner {
  display: flex;
  justify-content: flex-end;
  gap: 20px;
  color: #ffffff;
  font-size: 11px;
  font-weight: 600;
}

.ss-topbar-inner span,
.ss-topbar-inner a {
  color: #ffffff !important;
}

.ss-site-header.scrolled .ss-topbar {
  max-height: 0;
  padding: 0;
  opacity: 0;
}

/* ── HEADER ── */
.ss-header {
  background: var(--ss-glass);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.ss-site-header.scrolled .ss-header {
  padding: 0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  background: rgba(255, 255, 255, 0.9);
  border-bottom-color: rgba(0, 0, 0, 0.05);
}

.ss-hdr {
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.ss-site-header.scrolled .ss-logo img {
  height: 40px;
}

.ss-logo img {
  height: 48px;
  width: auto;
  transition: height 0.3s ease;
}

/* ── NAVIGATION ── */
.ss-nav {
  display: flex;
  align-items: center;
  gap: 2px;
}

.ss-nl {
  color: #333;
  font-size: 13px;
  font-weight: 600;
  padding: 10px 14px;
  border-radius: 8px;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  display: flex;
  align-items: center;
  gap: 4px;
}

.ss-nl>a {
  color: inherit !important;
  display: block;
}

.ss-nl::before {
  content: "";
  position: absolute;
  bottom: 6px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--ss-blue);
  transition: all 0.3s ease;
  transform: translateX(-50%);
  border-radius: 2px;
}

.ss-nl:hover {
  color: var(--ss-accent);
  background: rgba(0, 136, 204, 0.05);
}

.ss-nl:hover::before {
  width: 20px;
}

.ss-nl.arr::after {
  content: "▾";
  font-size: 10px;
  opacity: 0.5;
  transition: transform 0.3s;
}

.ss-nl.arr.open::after {
  transform: rotate(180deg);
  color: var(--ss-blue);
}

/* Dropdown */
.ss-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 12px;
  box-shadow: 0 15px 45px rgba(0, 0, 0, .15);
  padding: 10px 0;
  display: none;
  z-index: 100000;
  margin-top: 5px;
  pointer-events: auto;
}

.ss-dropdown::before {
  content: "";
  position: absolute;
  top: -15px;
  left: 0;
  right: 0;
  height: 15px;
  background: transparent;
}

.ss-nl.open>.ss-dropdown {
  display: block;
}

.ss-dropdown a {
  display: block;
  padding: 10px 16px;
  font-size: 13px;
  color: #444;
  font-weight: 500;
  transition: all .2s;
}

.ss-dropdown a:hover {
  background: #f8f9fa;
  color: var(--ss-blue);
  padding-left: 20px;
}

/* Mega Menu (Desktop Mode) */
.ss-megamenu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(15px);
  width: 900px;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: var(--ss-radius-md);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
  padding: 30px;
  opacity: 0;
  visibility: hidden;
  display: block;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 100000;
  margin-top: 12px;
  pointer-events: auto;
}

.ss-megamenu::before {
  content: "";
  position: absolute;
  top: -20px;
  left: 0;
  right: 0;
  height: 20px;
  background: transparent;
}

.ss-nl.open>.ss-megamenu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.ss-mega-grid {
  display: grid;
  grid-template-columns: 1.1fr 1.3fr 1.6fr 1fr;
  /* custom layout spacing */
  gap: 28px;
  text-align: left;
}

.ss-mega-col {
  display: flex;
  flex-direction: column;
}

.ss-mega-hdr {
  font-size: 12px;
  font-weight: 800;
  color: var(--ss-navy);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding-bottom: 10px;
  border-bottom: 2px solid rgba(0, 136, 204, 0.1);
  margin-bottom: 14px;
  position: relative;
}

.ss-mega-hdr::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 24px;
  height: 2px;
  background: var(--ss-accent);
}

.ss-mega-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ss-mega-links a {
  font-size: 13px !important;
  color: #555 !important;
  font-weight: 600 !important;
  line-height: 1.4 !important;
  padding: 4px 0 !important;
  transition: all 0.2s ease !important;
  display: inline-block !important;
  white-space: normal !important;
}

.ss-mega-links a:hover {
  color: var(--ss-blue) !important;
  transform: translateX(4px) !important;
  background: transparent !important;
  padding-left: 0 !important;
}

/* ── BUTTONS ── */
.ss-btn-reg {
  background: var(--ss-blue);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  padding: 5px 45px 5px 24px;
  margin-bottom: 0px;
  /* Space for the absolute dot */
  border-radius: 50px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  border: none;
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  flex-shrink: 0;
  font-family: 'Be Vietnam Pro', sans-serif;
  box-shadow: 0 4px 12px rgba(0, 136, 204, 0.2);
  letter-spacing: 0.02em;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.ss-btn-reg:hover {
  color: var(--ss-navy);
  box-shadow: 0 12px 28px rgba(243, 156, 18, 0.5);
}

.ss-btn-dot {
  position: absolute;
  right: 20px;
  top: 50%;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ss-accent);
  transform: translateY(-50%);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: -1;
  pointer-events: none;
}

.ss-btn-reg:hover .ss-btn-dot {
  transform: translateY(-50%) scale(100);
}

.ss-shimmer {
  position: relative;
  overflow: hidden;
}

.ss-shimmer::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transform: rotate(45deg);
  animation: ss-shimmer 3s infinite;
}

@keyframes ss-shimmer {
  0% {
    left: -100%;
    top: -100%;
  }

  100% {
    left: 100%;
    top: 100%;
  }
}

/* Dot expansion handled via absolute positioning in ss-btn-reg block */

/* ── HERO ── */
.ss-hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  /* Full viewport height for premium feel */
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #020617;
  width: 100%;
}

.ss-hero-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: transform 6s ease-out, opacity 1s ease-in-out;
  opacity: 0;
  transform: scale(1.1);
}

.ss-hero-img.active {
  opacity: 1;
  transform: scale(1);
}

.ss-hero-content {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  margin: 0 auto;
  padding: 120px 24px;
  text-align: center;
}

.ss-hero-h1 {
  font-size: clamp(32px, 5vw, 64px);
  /* Responsive font size */
  font-weight: 900;
  line-height: 1.25;
  margin-bottom: 24px;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
  letter-spacing: -0.02em;
}

.ss-hero-h1 .ss-hero-en {
  font-size: 0.52em;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.95);
  display: inline-block;
  margin-bottom: 8px;
  background: linear-gradient(to right, #ffffff 60%, rgba(255, 255, 255, 0.75));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.ss-hero-h1 .ss-hero-vn {
  background: linear-gradient(135deg, #38bdf8 0%, var(--ss-blue) 50%, var(--ss-accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  text-transform: uppercase;
}

.ss-hero-sub {
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(14px, 2vw, 18px);
  line-height: 1.6;
  margin-bottom: 40px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.ss-hero-sub .ss-highlight {
  color: var(--ss-accent);
  font-weight: 800;
  text-shadow: 0 0 20px rgba(243, 156, 18, 0.2);
}

.ss-hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--ss-blue);
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  padding: 16px 56px 16px 36px;
  /* Space for the absolute dot */
  border-radius: 50px;
  cursor: pointer;
  border: none;
  transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
  font-family: 'Be Vietnam Pro', sans-serif;
  box-shadow: 0 8px 25px rgba(0, 136, 204, 0.25);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.ss-hero-btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 35px rgba(243, 156, 18, 0.4);
  color: var(--ss-navy);
}

.ss-hero-btn:hover .ss-btn-dot {
  transform: translateY(-50%) scale(120);
}

.ss-hero-dots {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 10;
}

.ss-hero-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: all 0.4s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.ss-hero-dot.active {
  background: var(--ss-accent);
  width: 32px;
  border-radius: 10px;
}

/* ── SEARCH BAR ── */
.ss-search-bar {
  background: transparent;
  padding: 0;
  position: relative;
  z-index: 10;
  margin-top: -60px;
  /* Float over the hero content */
}

.ss-search-inner {
  background: #fff;
  border-radius: var(--ss-radius-md);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  padding: 24px 30px;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: nowrap;
  /* Keep on one line for desktop */
}

.ss-search-lbl {
  color: #64748B;
  font-size: 14px;
  line-height: 1.4;
  flex-shrink: 0;
  border-right: 1px solid #E2E8F0;
  padding-right: 20px;
}

.ss-search-lbl strong {
  color: var(--ss-blue);
  font-weight: 800;
  display: block;
  font-size: 16px;
}

.ss-search-lbl span {
  color: var(--ss-accent);
  font-weight: 600;
  display: block;
}

.ss-sfields {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
}

.ss-sfield {
  flex: 1;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  display: flex;
  align-items: center;
  cursor: pointer;
  transition: all 0.3s ease;
  height: 56px;
  position: relative;
}

.ss-sfield:hover,
.ss-sfield:focus-within {
  background: #fff;
  border-color: var(--ss-blue);
  box-shadow: 0 0 0 4px rgba(0, 136, 204, 0.1);
}

.ss-sfield span {
  position: absolute;
  left: 16px;
  font-size: 20px;
  color: var(--ss-blue);
}

.ss-sfield select {
  background: transparent;
  border: none;
  color: #1E293B;
  font-size: 14px;
  width: 100%;
  height: 100%;
  cursor: pointer;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  font-weight: 600;
  margin-bottom: 0px;
  padding: 10px 40px;
}

.ss-sfield em {
  position: absolute;
  right: 16px;
  pointer-events: none;
  color: #94A3B8;
  font-size: 12px;
}

.ss-btn-xem {
  background: var(--ss-navy);
  color: var(--ss-accent);
  font-size: 14px;
  font-weight: 800;
  padding: 0 32px;
  border-radius: 12px;
  height: 56px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  border: none;
  white-space: nowrap;
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  font-family: 'Be Vietnam Pro', sans-serif;
  box-shadow: 0 4px 12px rgba(27, 54, 93, 0.2);
  position: relative;
  overflow: hidden;
}

.ss-btn-xem:hover {
  background: var(--ss-blue);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(0, 136, 204, 0.4);
  animation: ss-pulse-glow 1.5s infinite;
}

.ss-btn-xem::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}

.ss-btn-xem:hover::after {
  transform: translateX(100%);
}

/* ── SECTIONS ── */
.ss-sec {
  padding: 52px 0;
}

.ss-sec-hdr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.ss-sec-hdr h2 {
  font-size: 22px;
  font-weight: 800;
  color: var(--ss-navy);
  margin: 0;
}

.ss-sec-hdr a {
  font-size: 14.5px;
  color: var(--ss-blue);
  font-weight: 800;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  white-space: nowrap;
  flex-shrink: 0;
  display: inline-block;
}

.ss-sec-hdr a:hover {
  color: var(--ss-accent);
  transform: translateX(6px);
}

/* ── PROGRAMS ── */
.ss-prog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.ss-prog-card {
  border-radius: var(--ss-radius-md);
  overflow: hidden;
  position: relative;
  cursor: pointer;
  aspect-ratio: 4/3;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  display: block;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.ss-prog-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.15);
}

.ss-prog-card-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.ss-prog-card:hover .ss-prog-card-bg {
  transform: scale(1.1);
}

.ss-prog-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(1, 108, 162, 0.5) 0%, rgba(0, 136, 204, 0.15) 60%, transparent 100%);
  transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.ss-prog-card:hover .ss-prog-card-overlay {
  background: linear-gradient(to top, rgba(1, 108, 162, 0.65) 0%, rgba(0, 136, 204, 0.3) 70%, rgba(0, 136, 204, 0.05) 100%);
}

.ss-prog-card-body {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px;
  z-index: 2;
}

.ss-prog-card-label {
  display: inline-block;
  background: var(--ss-accent);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 6px;
  margin-bottom: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.ss-prog-card-title {
  color: #fff;
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 6px;
  line-height: 1.3;
}

.ss-prog-card-age {
  color: rgba(255, 255, 255, 0.9);
  font-size: 16px;
  font-weight: 500;
}

.ss-prog-card-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 6px 16px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 30px;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateY(10px);
}

.ss-prog-card-btn svg {
  transition: transform 0.3s ease;
}

.ss-prog-card-btn:hover {
  background: #fff;
  color: var(--ss-navy);
  border-color: #fff;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.ss-prog-card-btn:hover svg {
  transform: translateX(4px);
}

.ss-prog-card:hover .ss-prog-card-btn {
  opacity: 1;
  transform: translateY(0);
}

/* ── PROMO SLIDER ── */
.ss-promo-container {
  position: relative;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 24px;
}

.ss-promo-wrapper {
  overflow: hidden;
  position: relative;
  width: 100%;
  border-radius: 24px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}

@media (max-width: 900px) {
  .ss-promo-container {
    padding: 0 15px;
  }

  .ss-promo-wrapper {
    border-radius: 20px;
  }
}

.ss-promo-slides {
  display: flex;
  align-items: stretch;
  /* Make all slides same height as the tallest one */
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.ss-promo-slide {
  flex: 0 0 100%;
  display: flex;
  /* Allow inner grid to fill height */
}

.ss-promo-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 0;
  border-radius: 24px;
  overflow: hidden;
  height: 380px;
  width: 100%;
}

@media (max-width: 900px) {
  .ss-promo-grid {
    border-radius: 20px;
  }
}

.ss-promo-left {
  padding: 40px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.ss-promo-airc {
  position: absolute;
  top: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
}

.ss-promo-left-txt {
  font-size: 14px;
  line-height: 1.6;
  font-weight: 600;
  max-width: 180px;
}

.ss-promo-right {
  position: relative;
  overflow: hidden;
  padding: 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.ss-promo-glow {
  position: absolute;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(59, 125, 216, 0.25) 0%, transparent 70%);
  top: 50%;
  left: 60%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.ss-promo-brand {
  font-size: 12px;
  font-weight: 800;
  color: #fff;
  letter-spacing: 2px;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.ss-promo-title {
  font-size: 46px;
  font-weight: 900;
  color: #fff;
  line-height: 1;
  margin-bottom: 20px;
}

.ss-promo-title span {
  display: block;
  background: linear-gradient(to right, #ffd700, #fff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.ss-promo-sub {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 5px;
  opacity: 0.9;
}

.ss-promo-sub-gold {
  color: #f39c12;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 1px;
  margin-bottom: 30px;
}

.ss-promo-btn {
  display: inline-flex;
  align-items: center;
  background: #fff;
  color: #020b1a;
  padding: 12px 30px;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 800;
  transition: transform 0.2s;
  align-self: flex-start;
}

.ss-promo-btn:hover {
  transform: scale(1.05);
}

.ss-promo-chars {
  position: absolute;
  right: 40px;
  bottom: 0;
  height: 90%;
  z-index: 1;
  pointer-events: none;
}

.ss-promo-chars img {
  height: 100%;
  width: auto;
  object-fit: contain;
}

.ss-promo-nav {
  position: absolute;
  top: 50%;
  left: 5px;
  right: 5px;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  pointer-events: none;
  z-index: 10;
}

.ss-p-nav-btn {
  width: 44px;
  height: 44px;
  background: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  pointer-events: auto;
  transition: all 0.3s;
  font-size: 18px;
  color: #333;
}

.ss-p-nav-btn:hover {
  background: var(--ss-accent);
  color: #fff;
  transform: scale(1.1);
}

/* ── NEWS ── */
.ss-sec-Sunshineverse {
  background: #F8FAFC;
}

.ss-news-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.ss-news-main {
  border-radius: var(--ss-radius-md);
  overflow: hidden;
  background: #fff;
  box-shadow: var(--ss-card-shadow);
  transition: all 0.4s ease;
  border: 1px solid rgba(0, 0, 0, 0.03);
}

.ss-news-main:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}

.ss-news-main-img {
  height: 260px;
  overflow: hidden;
}

.ss-news-main-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.ss-news-main:hover .ss-news-main-img img {
  transform: scale(1.05);
}

.ss-news-main-body {
  padding: 30px;
}

.ss-news-tag {
  display: inline-block;
  background: rgba(0, 136, 204, 0.1);
  color: var(--ss-blue);
  font-size: 11px;
  font-weight: 800;
  padding: 5px 14px;
  border-radius: 8px;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.ss-news-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--ss-dark-deeper);
  line-height: 1.4;
  margin-bottom: 12px;
}

.ss-news-desc {
  font-size: 15px;
  color: #64748B;
  line-height: 1.7;
}

.ss-news-date {
  font-size: 12px;
  color: #94A3B8;
  margin-top: 15px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.ss-news-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.ss-news-item {
  display: flex;
  gap: 20px;
  background: #fff;
  border-radius: var(--ss-radius-md);
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.03);
}

.ss-news-item:hover {
  transform: translateX(8px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.ss-news-item-img {
  width: 120px;
  height: 100px;
  flex-shrink: 0;
  overflow: hidden;
}

.ss-news-item-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ss-news-item-body {
  padding: 15px 20px 15px 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.ss-news-item-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--ss-dark-deeper);
  line-height: 1.5;
  margin-bottom: 6px;
}

.ss-news-item-date {
  font-size: 12px;
  color: #94A3B8;
}

/* ── SLIDERS (Teachers, Students) ── */
.ss-slider-wrapper {
  position: relative;
}

.ss-slider-container {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding: 10px 0 30px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.ss-slider-container::-webkit-scrollbar {
  display: none;
}

.ss-slider-item {
  flex: 0 0 300px;
  scroll-snap-align: start;
}

.ss-slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff;
  color: #333;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  z-index: 10;
}

.ss-slider-btn:hover {
  background: var(--ss-accent);
  color: #fff;
  transform: translateY(-50%) scale(1.1);
}

.ss-slider-btn.prev {
  left: -22px;
}

.ss-slider-btn.next {
  right: -22px;
}

/* Media Card */
.ss-media-card {
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  display: block;
}

.ss-media-card-img {
  height: 280px;
  overflow: hidden;
}

.ss-media-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s;
}

.ss-media-card:hover img {
  transform: scale(1.05);
}

.ss-media-body {
  padding: 18px;
}

.ss-media-tag {
  color: var(--ss-red);
  font-size: 10px;
  font-weight: 800;
  margin-bottom: 8px;
}

.ss-media-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--ss-navy);
  margin-bottom: 5px;
}

/* Students */
.ss-sec-students {
  background: linear-gradient(180deg, #F0F7FF 0%, #FFFFFF 100%);
  padding: 80px 0;
}

.ss-student-card {
  border-radius: 20px;
  /* More rounded for premium feel */
  overflow: hidden;
  position: relative;
  aspect-ratio: 3/5;
  cursor: pointer;
  display: block;
  box-shadow: 0 10px 30px rgba(27, 54, 93, 0.08);
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.ss-student-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 45px rgba(27, 54, 93, 0.15);
}

.ss-student-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(.85);
  transition: filter .3s;
}

.ss-student-card:hover img {
  filter: brightness(1);
}

.ss-student-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px 14px;
  background: linear-gradient(to top, rgba(0, 0, 0, .8), transparent);
}

.ss-student-name {
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}

.ss-student-score {
  color: var(--ss-accent);
  font-size: 12px;
  font-weight: 600;
  margin-top: 3px;
}

/* Facilities */
/* ── FACILITIES SECTION ── */
.ss-sec-facilities {
  padding: 60px 0 80px;
}

/* Main preview image */
.ss-fac-main {
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 16/7;
  margin-bottom: 10px;
  position: relative;
  background: #e2e8f0;
}

.ss-fac-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.5s ease;
}

/* Progress bars */
.ss-fac-progress {
  display: flex;
  gap: 5px;
  margin-bottom: 10px;
}

.ss-fac-pb {
  flex: 1;
  height: 3px;
  background: rgba(0, 0, 0, 0.12);
  border-radius: 2px;
  overflow: hidden;
}

.ss-fac-pb .ss-fac-fill {
  height: 100%;
  width: 0;
  background: var(--ss-navy);
  border-radius: 2px;
  transition: width 4s linear;
}

.ss-fac-pb.active .ss-fac-fill {
  width: 100%;
}

/* Thumbnail strip */
.ss-fac-strip-wrap {
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  cursor: grab;
  /* Fade out edges on desktop to hint scroll */
  -webkit-mask-image: linear-gradient(to right, transparent 0, black 20px, black calc(100% - 20px), transparent 100%);
  mask-image: linear-gradient(to right, transparent 0, black 20px, black calc(100% - 20px), transparent 100%);
}

.ss-fac-strip-wrap::-webkit-scrollbar {
  display: none;
}

.ss-fac-strip-wrap.dragging {
  cursor: grabbing;
}

.ss-fac-strip {
  display: flex;
  gap: 10px;
  width: max-content;
}

.ss-fac-thumb {
  width: 150px;
  height: 95px;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
  cursor: pointer;
  border: 2.5px solid transparent;
  transition: border-color 0.25s, opacity 0.25s;
  background: #e2e8f0;
}

.ss-fac-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ss-fac-thumb.active {
  border-color: var(--ss-navy);
  opacity: 1;
}

.ss-fac-thumb:not(.active) {
  opacity: 0.6;
}

.ss-fac-thumb:hover:not(.active) {
  opacity: 0.85;
}

/* ── Mobile Facilities Gallery ── */
@media (max-width: 768px) {
  .ss-sec-facilities {
    padding: 40px 0 50px;
    /* Prevent anything inside from bleeding out */
    overflow: hidden;
  }

  /* Lock section inner to viewport width */
  .ss-sec-facilities .ss-sec-inner {
    overflow: hidden;
  }

  /* Main image - 16:9 fits portrait screens without being too tall */
  .ss-fac-main {
    aspect-ratio: 16/9;
    border-radius: 10px;
    margin-bottom: 8px;
    width: 100%;
  }

  /* Thicker progress bar – easier to see */
  .ss-fac-pb {
    height: 4px;
  }

  /* Strip wrapper must stay within parent width */
  .ss-fac-strip-wrap {
    -webkit-mask-image: none;
    mask-image: none;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    /* Show thin scrollbar as visual hint on mobile */
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, 0.15) transparent;
    padding-bottom: 6px;
    /* Touch scroll */
    -webkit-overflow-scrolling: touch;
  }

  /* Thumbnails: smaller so ~4 fit on screen at once */
  .ss-fac-thumb {
    width: 72px;
    height: 52px;
    border-radius: 7px;
    border-width: 2px;
    flex-shrink: 0;
  }

  .ss-fac-strip {
    gap: 6px;
    /* Do not constrain width - let it scroll naturally */
    width: max-content;
    padding: 2px 2px 2px 2px;
  }
}

/* Stats */
.ss-sec-stats {
  background: var(--ss-navy);
  padding: 52px 0;
  margin: 30px 0px;
  position: relative;
  overflow: hidden;
}

.ss-stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

.ss-stat-num {
  font-size: 40px;
  font-weight: 900;
  color: var(--ss-accent);
  transition: transform 0.3s ease;
}

.ss-stat-lbl {
  font-size: 13px;
  color: rgba(255, 255, 255, .7);
  margin-top: 8px;
  line-height: 1.5;
}

/* Premium Mobile Optimization for Stats Section */
@media (max-width: 850px) {
  .ss-stats-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 36px 20px;
  }

  .ss-sec-stats {
    padding: 40px 0;
  }

  .ss-stat-num {
    font-size: 34px;
  }

  .ss-stat-lbl {
    font-size: 12.5px;
  }

  .ss-stat-lbl br {
    display: none;
    /* remove hardcoded line breaks on mobile for natural text wrapping */
  }
}

@media (max-width: 480px) {
  .ss-stats-row {
    grid-template-columns: 1fr;
    /* 1 column layout on very small screens for maximum readability */
    gap: 28px;
  }

  .ss-stat-num {
    font-size: 32px;
  }
}

/* Map */
.ss-sec-map {
  background: #f7f8fc;
  padding: 60px 0;
  position: relative;
  z-index: 5;
}

.ss-map-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 24px;
}

.ss-map-panel {
  background: #fff;
  border-radius: 14px;
  padding: 20px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, .07);
  z-index: 2;
}

.ss-map-panel h3 {
  font-size: 15px;
  color: var(--ss-navy);
  margin-bottom: 14px;
}

.ss-center-name {
  font-weight: 700;
  font-size: 15px;
  color: var(--ss-navy);
}

.ss-center-addr {
  font-size: 13.5px;
  color: var(--ss-gray);
  margin-top: 2px;
  line-height: 1.5;
}

.ss-center-phone {
  font-size: 13px;
  color: var(--ss-blue);
  font-weight: 600;
  margin-top: 4px;
}

.ss-center-item {
  padding: 12px;
  border-radius: 10px;
  border: 1px solid #eee;
  margin-bottom: 8px;
  cursor: pointer;
  transition: 0.2s;
}

.ss-center-item:hover,
.ss-center-item.active {
  border-color: var(--ss-blue);
  background: #f0f7ff;
}

/* Action buttons inside branch card */
.ss-center-actions {
  display: none;
  /* hidden on desktop - map iframe is interactive enough */
}

.ss-center-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: 0.2s;
  white-space: nowrap;
}

.ss-center-btn-call {
  background: var(--ss-blue);
  color: #fff;
}

.ss-center-btn-call:hover {
  background: #0369a1;
  color: #fff;
}

.ss-center-btn-dir {
  background: #f1f5f9;
  color: var(--ss-navy);
  border: 1px solid #e2e8f0;
}

.ss-center-btn-dir:hover {
  background: #e2e8f0;
  color: var(--ss-navy);
}

.ss-map-placeholder {
  position: relative !important;
  width: 100% !important;
  height: 450px !important;
  border-radius: 14px !important;
  overflow: hidden !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  background: #E2E8F0 !important;
  z-index: 1;
}

.ss-map-placeholder iframe {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  border: 0 !important;
  display: block !important;
}

/* ── Mobile Map ── */
@media (max-width: 900px) {
  .ss-sec-map {
    padding: 40px 0;
  }

  .ss-map-placeholder {
    height: 320px !important;
  }
}

@media (max-width: 768px) {
  .ss-sec-map {
    padding: 36px 0;
  }

  /* Stack panel above map on mobile */
  .ss-map-layout {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .ss-map-panel {
    padding: 16px;
    border-radius: 12px;
  }

  .ss-map-panel h3 {
    font-size: 14px;
    margin-bottom: 10px;
  }

  /* Larger tap targets for branch items */
  .ss-center-item {
    padding: 14px 12px;
    margin-bottom: 10px;
    display: flex;
    flex-direction: column;
    gap: 4px;
  }

  .ss-center-name {
    font-size: 15px;
  }

  .ss-center-addr {
    font-size: 13px;
  }

  .ss-center-phone {
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 4px;
  }

  /* Compact map on mobile — enough to see location */
  .ss-map-placeholder {
    height: 260px !important;
    border-radius: 12px !important;
  }

  /* Show action buttons on mobile */
  .ss-center-actions {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    flex-wrap: wrap;
  }

  .ss-center-btn {
    flex: 1;
    min-width: 120px;
    justify-content: center;
    padding: 10px 12px;
    font-size: 13px;
    border-radius: 10px;
  }
}

/* ── FOOTER MAIN ── */
.ss-footer {
  background: var(--ss-dark-deeper);
  padding: 80px 0 0;
  color: rgba(255, 255, 255, 0.6);
}

.ss-footer-grid {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px 60px;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
  gap: 60px;
}

.ss-footer-logo {
  font-size: 28px;
  font-weight: 900;
  color: #fff;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.ss-footer-desc {
  font-size: 14px;
  margin-top: 12px;
  line-height: 1.8;
  max-width: 320px;
}

.ss-footer-socials {
  display: flex;
  gap: 12px;
  margin-top: 30px;
}

.ss-s-btn {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.ss-s-btn:hover {
  background: var(--ss-blue);
  transform: translateY(-5px);
  border-color: var(--ss-blue);
}

.ss-footer-col h4 {
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  margin-bottom: 28px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.ss-footer-col ul {
  list-style: none;
}

.ss-footer-col ul li {
  margin-bottom: 14px;
}

.ss-footer-col ul li a {
  color: rgba(255, 255, 255, 0.5);
  font-size: 14px;
  transition: all 0.2s;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.ss-footer-col ul li a:hover {
  color: var(--ss-accent);
  padding-left: 5px;
}

.ss-footer-col ul li a svg {
  margin-top: 3px;
  opacity: 0.7;
}

/* Partner Logos */
.ss-footer-partners {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 40px 24px;
  max-width: 1280px;
  margin: 0 auto;
}

.ss-partner-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 60px;
  flex-wrap: wrap;
  filter: grayscale(1) opacity(0.5);
  transition: all 0.5s ease;
}

.ss-partner-grid:hover {
  filter: grayscale(0) opacity(1);
}

.ss-partner-grid img {
  height: 40px;
  width: auto;
  object-fit: contain;
}

.ss-footer-bottom {
  background: rgba(0, 0, 0, 0.2);
  padding: 24px 24px;
}

.ss-footer-bottom-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ss-footer-copy {
  color: rgba(255, 255, 255, 0.3);
  font-size: 12px;
}

.ss-footer-certs {
  display: flex;
  gap: 12px;
  align-items: center;
}

.ss-cert {
  background: rgba(255, 255, 255, 0.03);
  color: rgba(255, 255, 255, 0.4);
  font-size: 11px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

/* ── STICKY BOTTOM ── */
.ss-sticky-bottom {
  position: fixed !important;
  bottom: 12px !important;
  left: 50% !important;
  z-index: 999999 !important;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  transform: translateX(-50%);
}

.ss-sticky-bottom.ss-sbv {
  opacity: 1 !important;
  pointer-events: auto !important;
}

.ss-sb-register {
  background: var(--ss-accent);
  color: var(--ss-navy);
  padding: 8px 24px;
  border-radius: 28px;
  font-weight: 800;
  font-size: 13.5px;
  box-shadow: 0 6px 24px rgba(243, 156, 18, 0.5);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ── REVEAL ── */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* ── BACK TOP ── */
.ss-back-top {
  position: fixed;
  bottom: 30px;
  right: 20px;
  width: 44px;
  height: 44px;
  background: var(--ss-blue);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: 0.3s;
  z-index: 9998;
}

.ss-back-top.show {
  opacity: 1;
  visibility: visible;
}

.ss-back-top:hover {
  background: var(--ss-navy);
  transform: translateY(-8px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

@keyframes ss-pulse-glow {
  0% {
    box-shadow: 0 15px 35px rgba(0, 136, 204, 0.4);
  }

  50% {
    box-shadow: 0 15px 45px rgba(0, 136, 204, 0.7);
  }

  100% {
    box-shadow: 0 15px 35px rgba(0, 136, 204, 0.4);
  }
}

/* ── MOBILE MENU ── */
.ss-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
}

.ss-hamburger span {
  width: 22px;
  height: 2px;
  background: #333;
  border-radius: 2px;
}

.ss-mobile-menu {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0);
  /* Start transparent dark mask */
  backdrop-filter: blur(0px);
  /* Start no blur */
  -webkit-backdrop-filter: blur(0px);
  z-index: 999999;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.4s ease, visibility 0.4s ease, background-color 0.4s ease, backdrop-filter 0.4s ease, -webkit-backdrop-filter 0.4s ease !important;
  display: block !important;
  /* Transition relies on opacity and visibility, not display none/flex */
}

.ss-mobile-menu.open {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  background: rgba(15, 23, 42, 0.6) !important;
  /* Premium fade-in dark mask */
  backdrop-filter: blur(4px) !important;
  /* Sleek glass backdrop blur */
  -webkit-backdrop-filter: blur(4px) !important;
}

.ss-mobile-inner {
  background: #ffffff;
  width: 300px;
  /* Slightly wider for modern typography spacing */
  max-width: 85vw;
  height: 100%;
  padding: 28px 24px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  box-shadow: 20px 0 50px rgba(0, 0, 0, 0.15);

  /* Smooth Slide-out using professional Spring-like Cubic Bezier */
  transform: translateX(-100%) !important;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.ss-mobile-menu.open .ss-mobile-inner {
  transform: translateX(0) !important;
}

.ss-mobile-close {
  align-self: flex-end;
  font-size: 24px;
  cursor: pointer;
  margin-bottom: 12px;
}

.ss-mobile-link {
  padding: 12px 8px;
  font-size: 15px;
  font-weight: 600;
  border-bottom: 1px solid #f0f0f0;
  display: flex;
  justify-content: space-between;
}

.ss-mobile-sub {
  display: none;
  flex-direction: column;
  background: #f8f9fc;
  border-radius: 8px;
}

.ss-mobile-sub.open {
  display: flex;
}

.ss-mobile-sub a {
  padding: 11px 20px;
  font-size: 13.5px;
  color: #444;
  border-bottom: 1px solid #eef0f5;
}

.ss-m-sub-cat {
  padding: 14px 20px 6px;
  font-size: 10.5px;
  font-weight: 800;
  color: var(--ss-navy);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-bottom: 1px solid rgba(0, 136, 204, 0.08);
}

.ss-mobile-sub .ss-m-sub-link {
  padding: 8px 24px !important;
  font-size: 12.5px !important;
  color: #555 !important;
  border-bottom: none !important;
  text-transform: none !important;
}

.ss-mobile-sub .ss-m-sub-link:hover {
  color: var(--ss-blue) !important;
  background: transparent !important;
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {

  /* Sunshine Custom Topbar Fix */
  .ss-topbar {
    max-height: 80px !important;
    padding: 8px 12px !important;
  }

  .ss-site-header.scrolled .ss-topbar {
    max-height: 0 !important;
    padding: 0 !important;
    opacity: 0 !important;
  }

  .ss-topbar-inner {
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    text-align: center !important;
  }

  .ss-topbar-inner span {
    font-size: 10.5px !important;
    line-height: 1.3 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px !important;
  }

  /* Flatsome Standard Topbar Mobile Responsive Fix */
  #top-bar,
  .header-top {
    height: auto !important;
    min-height: unset !important;
    padding: 8px 12px !important;
  }

  .top-bar-social {
    display: block !important;
    text-align: center !important;
    font-size: 11px !important;
    line-height: 1.5 !important;
    color: rgba(255, 255, 255, 0.8) !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  .top-bar-social .icon-envelop {
    display: inline-block !important;
    margin-top: 6px !important;
  }

  .top-bar-social .icon-envelop::before {
    content: "\A" !important;
    white-space: pre !important;
  }

  .top-bar-social i {
    margin-right: 5px !important;
  }

  /* Responsive Topbar layout styling */
  .ss-topbar {
    max-height: 100px !important;
    height: auto !important;
    padding: 8px 12px !important;
  }

  .ss-topbar-inner {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px !important;
    text-align: center !important;
    width: 100% !important;
  }

  .ss-topbar-inner span {
    display: inline-block !important;
    line-height: 1.4 !important;
  }

  .ss-hdr {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
  }

  .ss-sec-hdr {
    align-items: flex-end;
    gap: 12px;
  }

  .ss-sec-hdr h2 {
    font-size: 20px !important;
    line-height: 1.3 !important;
    flex: 1;
  }

  .ss-logo {
    position: absolute !important;
    left: 50% !important;
    top: 50% !important;
    transform: translate(-50%, -50%) !important;
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 1 !important;
  }

  .ss-logo img {
    height: 90px !important;
    max-height: none !important;
    width: auto !important;
    display: block !important;
    transition: none !important;
  }

  .ss-nav,
  .ss-btn-reg {
    display: none;
  }

  .ss-hamburger {
    display: flex !important;
    margin-left: auto !important;
    margin-right: 0 !important;
    position: relative !important;
    z-index: 5 !important;
  }

  .ss-hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .ss-hero-right {
    display: none;
  }

  .ss-hero-h1 {
    font-size: 28px;
    line-height: 1.2;
  }

  .ss-hero-sub {
    font-size: 15px;
    margin-left: auto;
    margin-right: auto;
  }

  .ss-sec-title {
    font-size: 22px;
    margin-bottom: 25px;
  }

  .ss-prog-grid,
  .ss-news-grid,
  .ss-media-grid,
  .ss-students-grid,
  .ss-map-layout,
  .ss-footer-grid {
    grid-template-columns: 1fr;
  }

  /* Search Bar Mobile Fix */
  .ss-search-bar {
    margin-top: -25px;
  }

  .ss-search-inner {
    flex-direction: column;
    align-items: stretch;
    padding: 20px;
    gap: 15px;
  }

  .ss-search-lbl {
    border-right: none;
    border-bottom: 1px solid #E2E8F0;
    padding-right: 0;
    padding-bottom: 15px;
    text-align: center;
  }

  .ss-sfields {
    flex-direction: column;
    width: 100%;
  }

  .ss-sfield {
    width: 100%;
  }

  .ss-btn-xem {
    width: 100%;
    justify-content: center;
  }

  /* Promo Slider Mobile Fix */
  .ss-promo-grid {
    grid-template-columns: 1fr;
    height: 100%;
    /* Fill the height provided by the flex parent */
    display: flex;
    flex-direction: column;
    flex: 1;
  }

  .ss-promo-left {
    padding: 30px;
    height: auto;
    min-height: 200px;
  }

  .ss-promo-right {
    padding: 40px 20px 100px;
    /* Increased bottom padding for characters */
    height: auto;
    flex: 1;
    /* Stretch to fill the container height */
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .ss-promo-title {
    font-size: 24px;
  }

  .ss-promo-chars {
    right: 20px;
    height: 150px;
    bottom: 0;
  }

  .ss-promo-nav {
    left: 0px;
    right: 0px;
  }

  .ss-p-nav-btn {
    width: 36px;
    height: 36px;
    font-size: 14px;
  }

  .ss-sb-register {
    padding: 6px 16px;
    font-size: 12px;
    white-space: nowrap;
  }

  .ss-site-header {
    margin-top: 0;
    opacity: 1;
  }

  .ss-footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .ss-footer-grid {
    grid-template-columns: 1fr;
  }

  .ss-footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 15px;
  }
}

/* -- CONTACT -- */
.ss-sec-contact {
  background: #fff;
  padding: 140px 0 100px;
}

.ss-sec-contact {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #F8FAFC 0%, #F1F5F9 100%);
  z-index: 1;
  scroll-margin-top: 100px;
}

/* Glassmorphism neon glows */
.ss-contact-glow-1 {
  position: absolute;
  top: -100px;
  left: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(0, 136, 204, 0.08) 0%, transparent 70%);
  pointer-events: none;
  z-index: -1;
}

.ss-contact-glow-2 {
  position: absolute;
  bottom: -150px;
  right: -100px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(243, 156, 18, 0.06) 0%, transparent 70%);
  pointer-events: none;
  z-index: -1;
}

.ss-contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.ss-contact-tag {
  color: var(--ss-blue);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 1px;
  margin-bottom: 15px;
}

.ss-contact-title {
  font-size: 38px;
  font-weight: 850;
  color: var(--ss-navy);
  line-height: 1.25;
  margin-bottom: 20px;
}

.ss-contact-desc {
  color: #64748B;
  font-size: 15.5px;
  line-height: 1.6;
  margin-bottom: 30px;
}

/* High-conversion Dotted Benefit Checklist Card */
.ss-contact-benefits {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 40px;
  background: rgba(255, 255, 255, 0.6);
  padding: 20px 24px;
  border-radius: var(--ss-radius-md);
  border: 1.5px dashed rgba(0, 136, 204, 0.15);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.ss-benefit-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ss-benefit-icon {
  width: 22px;
  height: 22px;
  background: rgba(0, 136, 204, 0.1);
  color: var(--ss-blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ss-benefit-text {
  font-size: 13.5px;
  color: #475569;
  font-weight: 600;
}

.ss-contact-methods {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ss-cm-item {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 16px 20px;
  background: #ffffff;
  border-radius: var(--ss-radius-md);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
  border: 1px solid rgba(0, 0, 0, 0.02);
  transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

.ss-cm-item:hover {
  transform: translateX(8px);
  box-shadow: 0 10px 30px rgba(0, 136, 204, 0.06);
  border-color: rgba(0, 136, 204, 0.15);
}

.ss-cm-icon {
  width: 46px;
  height: 46px;
  background: rgba(0, 136, 204, 0.06);
  color: var(--ss-blue);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.ss-cm-item:hover .ss-cm-icon {
  background: var(--ss-blue);
  color: #fff;
  transform: scale(1.05) rotate(-5deg);
  box-shadow: 0 6px 15px rgba(0, 136, 204, 0.2);
}

.ss-cm-txt-box {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ss-cm-lbl {
  font-size: 10px;
  font-weight: 800;
  color: #94A3B8;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.ss-cm-txt {
  font-size: 14.5px;
  color: var(--ss-navy);
  font-weight: 700;
  line-height: 1.4;
}

.ss-contact-form-box {
  position: relative;
  overflow: hidden;
  background: #ffffff;
  padding: 45px 35px;
  border-radius: var(--ss-radius-lg);
  box-shadow: 0 30px 60px rgba(0, 136, 204, 0.08);
  border: 1px solid rgba(0, 136, 204, 0.05);
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  scroll-margin-top: 100px;
}

.ss-contact-form-box:hover {
  transform: translateY(-6px);
  box-shadow: 0 40px 80px rgba(0, 136, 204, 0.12);
}

.ss-form-top-accent {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--ss-blue) 0%, var(--ss-accent) 100%);
}

.ss-form-title {
  font-size: clamp(20px, 2.5vw, 24px);
  font-weight: 800;
  color: var(--ss-navy);
  text-align: center;
  text-transform: uppercase;
  margin-bottom: 30px;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.ss-form-group {
  margin-bottom: 16px;
  width: 100%;
}

.ss-form-label {
  display: block;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--ss-navy);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
  padding-left: 16px;
  /* Align beautifully with the pill padding */
  text-align: left;
}

/* Style CF7 inputs to look like beautiful pill shapes from screenshot */
.ss-contact-form-box input[type="text"],
.ss-contact-form-box input[type="email"],
.ss-contact-form-box input[type="tel"],
.ss-contact-form-box select,
.ss-contact-form-box textarea {
  width: 100% !important;
  background: #ffffff !important;
  border: 1.5px solid #E2E8F0 !important;
  border-radius: 50px !important;
  /* Perfect Pill Shape like Screenshot */
  padding: 2px 24px !important;
  font-size: 14.5px !important;
  color: #333 !important;
  font-family: 'Be Vietnam Pro', sans-serif !important;
  outline: none !important;
  transition: all 0.3s ease !important;
  box-sizing: border-box !important;
}

/* Textarea doesn't need to be a full pill, but nicely rounded */
.ss-contact-form-box textarea {
  border-radius: 18px !important;
  min-height: 100px !important;
  resize: vertical !important;
}

/* Custom styling for select dropdowns to hide native arrow and style properly */
.ss-contact-form-box select {
  appearance: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2364748B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 20px center !important;
  background-size: 16px !important;
  padding-right: 45px !important;
}

.ss-contact-form-box input:focus,
.ss-contact-form-box select:focus,
.ss-contact-form-box textarea:focus {
  border-color: var(--ss-blue) !important;
  background: #ffffff !important;
  box-shadow: 0 0 0 4px rgba(0, 136, 204, 0.1) !important;
}

/* Placeholder color styling */
.ss-contact-form-box input::placeholder,
.ss-contact-form-box textarea::placeholder {
  color: #94A3B8 !important;
  opacity: 1 !important;
}

/* Select default state (blank option) styling */
.ss-contact-form-box select:invalid,
.ss-contact-form-box select option[value=""] {
  color: #94A3B8 !important;
}

/* Premium submit button */
.ss-form-submit {
  margin-top: 24px;
}

/* Highly specific and bulletproof submit button styles to bypass aggressive Flatsome/theme rules */
#ss-contact-section .ss-btn-submit,
.ss-contact-form-box .ss-btn-submit,
.wpcf7-form .ss-btn-submit {
  width: 100% !important;
  background: var(--ss-blue) !important;
  color: #fff !important;
  font-size: 14px !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
  padding: 15px 30px !important;
  border-radius: 50px !important;
  border: 1px solid var(--ss-blue) !important;
  /* Enforce solid blue border */
  cursor: pointer !important;
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1) !important;
  letter-spacing: 0.04em !important;
  box-shadow: 0 8px 20px rgba(0, 136, 204, 0.2) !important;
  text-align: center !important;
  display: block !important;
  height: auto !important;
  line-height: 1 !important;
}

#ss-contact-section .ss-btn-submit:hover,
.ss-contact-form-box .ss-btn-submit:hover,
.wpcf7-form .ss-btn-submit:hover {
  background: var(--ss-navy) !important;
  border-color: var(--ss-navy) !important;
  color: #fff !important;
  box-shadow: 0 12px 28px rgba(27, 54, 93, 0.3) !important;
  transform: translateY(-2px) !important;
}

#ss-contact-section .ss-btn-submit:focus,
#ss-contact-section .ss-btn-submit:active,
#ss-contact-section .ss-btn-submit:focus-visible,
.ss-contact-form-box .ss-btn-submit:focus,
.ss-contact-form-box .ss-btn-submit:active,
.ss-contact-form-box .ss-btn-submit:focus-visible,
.wpcf7-form .ss-btn-submit:focus,
.wpcf7-form .ss-btn-submit:active,
.wpcf7-form .ss-btn-submit:focus-visible {
  background: var(--ss-navy) !important;
  border-color: var(--ss-navy) !important;
  color: #fff !important;
  outline: none !important;
  box-shadow: 0 8px 20px rgba(27, 54, 93, 0.2) !important;
}

#ss-contact-section .ss-btn-submit:disabled,
#ss-contact-section .ss-btn-submit[disabled],
.ss-contact-form-box .ss-btn-submit:disabled,
.ss-contact-form-box .ss-btn-submit[disabled],
.wpcf7-form .ss-btn-submit:disabled,
.wpcf7-form .ss-btn-submit[disabled] {
  background: #A0AEC0 !important;
  border-color: #A0AEC0 !important;
  color: #fff !important;
  cursor: not-allowed !important;
  box-shadow: none !important;
  transform: none !important;
  opacity: 0.8 !important;
}

/* CF7 validation error display cleanup */
.ss-contact-form-box .wpcf7-not-valid-tip {
  font-size: 12px !important;
  color: var(--ss-red) !important;
  margin-top: 5px !important;
  padding-left: 20px !important;
}

.ss-contact-form-box .wpcf7-response-output {
  margin: 20px 0 0 0 !important;
  padding: 12px 18px !important;
  border-radius: 12px !important;
  font-size: 13px !important;
  border: 1.5px solid !important;
}

@media (max-width: 900px) {
  .ss-contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .ss-contact-title {
    font-size: 22px;
  }
}

/* ==========================================================================
   PREMIUM TEACHER GRID & GLASSMORPHIC MODAL SYSTEM
   ========================================================================== */

/* Grid layout for dedicated Team Page */
.ss-teacher-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 30px;
  padding: 60px 0;
}

.ss-teacher-grid .ss-media-card {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  cursor: pointer;
}

.ss-media-card {
  cursor: pointer;
}

/* Reusable Glassmorphic Modal */
.ss-modal-overlay {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  background: rgba(15, 23, 42, 0.6) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  z-index: 999999 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  opacity: 0 !important;
  pointer-events: none !important;
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.ss-modal-overlay.active {
  opacity: 1 !important;
  pointer-events: auto !important;
}

.ss-modal-box {
  background: #ffffff !important;
  border-radius: 28px !important;
  max-width: 800px !important;
  width: 90% !important;
  max-height: 85vh !important;
  box-shadow: 0 30px 60px -15px rgba(15, 23, 42, 0.3) !important;
  position: relative !important;
  transform: scale(0.92) translateY(20px) !important;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
  /* overflow: hidden removed — let body-content handle scroll,
     so the absolute close button is never clipped */
  overflow: visible !important;
  display: flex !important;
  flex-direction: column !important;
  border: 1px solid rgba(255, 255, 255, 0.8) !important;
}

.ss-modal-overlay.active .ss-modal-box {
  transform: scale(1) translateY(0) !important;
}

.ss-modal-close {
  position: absolute !important;
  top: 16px !important;
  right: 16px !important;
  width: 30px !important;
  height: 30px !important;
  border-radius: 50% !important;
  background: #f1f5f9 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  font-size: 20px !important;
  color: #64748b !important;
  transition: all 0.25s ease !important;
  z-index: 100 !important;
  border: none !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12) !important;
  line-height: 1 !important;
  margin-right: 0px;
}

.ss-modal-close:hover {
  background: var(--ss-red) !important;
  color: #ffffff !important;
  transform: rotate(90deg) !important;
}

.ss-modal-body-content {
  overflow-y: auto !important;
  overflow-x: hidden !important;
  padding: 52px 40px 40px !important;
  /* top padding = room for close button */
  display: grid !important;
  grid-template-columns: 260px 1fr !important;
  gap: 35px !important;
  border-radius: 28px !important;
  /* match modal-box border-radius for clip */
  background: #ffffff !important;
}

.ss-modal-left {
  display: flex !important;
  flex-direction: column !important;
  gap: 15px !important;
}

.ss-modal-teacher-img {
  width: 100% !important;
  aspect-ratio: 1 / 1 !important;
  object-fit: cover !important;
  border-radius: 20px !important;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08) !important;
  border: 4px solid #f8fafc !important;
}

.ss-modal-teacher-badge {
  background: rgba(0, 136, 204, 0.08) !important;
  color: var(--ss-blue) !important;
  padding: 10px 16px !important;
  border-radius: 12px !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  letter-spacing: 0.05em !important;
  text-align: center !important;
  text-transform: uppercase !important;
  border: 1px solid rgba(0, 136, 204, 0.15) !important;
}

.ss-modal-right {
  display: flex !important;
  flex-direction: column !important;
}

.ss-modal-teacher-name {
  font-size: 32px !important;
  font-weight: 900 !important;
  color: var(--ss-navy) !important;
  margin: 0 0 6px 0 !important;
  line-height: 1.2 !important;
}

.ss-modal-teacher-title {
  font-size: 15px !important;
  font-weight: 700 !important;
  color: var(--ss-blue) !important;
  text-transform: uppercase !important;
  margin-bottom: 20px !important;
  line-height: 1.4 !important;
  letter-spacing: 0.02em !important;
}

.ss-modal-divider {
  height: 2px !important;
  background: linear-gradient(to right, #e2e8f0, rgba(226, 232, 240, 0)) !important;
  margin-bottom: 25px !important;
  width: 100% !important;
}

.ss-modal-list-title {
  font-size: 16px !important;
  font-weight: 800 !important;
  color: var(--ss-navy) !important;
  margin-bottom: 15px !important;
}

.ss-modal-desc-list {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.ss-modal-desc-list li {
  position: relative !important;
  padding-left: 28px !important;
  margin-bottom: 12px !important;
  font-size: 14.5px !important;
  line-height: 1.6 !important;
  color: #475569 !important;
  font-weight: 500 !important;
}

.ss-modal-desc-list li::before {
  content: "✓" !important;
  position: absolute !important;
  left: 0 !important;
  top: 1px !important;
  color: #10B981 !important;
  /* Premium emerald check */
  font-weight: 900 !important;
  font-size: 16px !important;
}

@media (max-width: 768px) {
  .ss-modal-body-content {
    grid-template-columns: 1fr !important;
    gap: 25px !important;
    padding: 60px 20px 30px !important;
    /* top padding để tránh bị nút đóng che */
  }

  .ss-modal-left {
    align-items: center !important;
  }

  .ss-modal-teacher-img {
    max-width: 220px !important;
  }

  .ss-modal-teacher-badge {
    width: 100% !important;
    max-width: 220px !important;
  }

  .ss-modal-teacher-name {
    font-size: 26px !important;
    text-align: center !important;
  }

  .ss-modal-teacher-title {
    font-size: 14px !important;
    text-align: center !important;
    margin-bottom: 15px !important;
  }

  .ss-modal-box {
    width: 95% !important;
    max-height: 90vh !important;
    border-radius: 20px !important;
  }

  /* Mobile close button: slightly larger tap target, stays in top-right of modal */
  .ss-modal-close {
    position: absolute !important;
    top: 12px !important;
    right: 12px !important;
    width: 30px !important;
    height: 30px !important;
    font-size: 22px !important;
    background: #f1f5f9 !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15) !important;
    z-index: 100 !important;
  }
}

/* ==========================================================================
   REUSABLE SUB-PAGE BANNER & SECTION INTRO STYLES
   ========================================================================== */
.ss-page-banner {
  padding: 130px 0 100px;
  color: #fff;
  text-align: center;
}

.ss-banner-tag {
  color: #FFC72C;
  /* Premium brand gold */
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 2px;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.ss-page-banner h1 {
  font-size: 42px;
  font-weight: 900;
  margin-bottom: 15px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: #FF7A00;
  /* Vibrant Premium Orange */
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  /* Subtle depth shadow */
}

.ss-page-banner p {
  font-size: 18px;
  opacity: 0.9;
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.6;
  display: block !important;
}

/* Bulletproof fix for inline flow inside sub-page banners */
.ss-page-banner p * {
  display: inline !important;
}

.ss-page-banner p strong {
  display: inline !important;
  font-size: inherit !important;
  font-weight: 800 !important;
  border-left: none !important;
  padding-left: 0 !important;
  margin: 0 !important;
}

.ss-page-banner p strong:nth-of-type(1) {
  color: var(--ss-accent) !important;
}

.ss-page-banner p strong:nth-of-type(2) {
  color: var(--ss-blue) !important;
}

/* Reusable Section Introduction Header */
.ss-section-intro {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 50px;
}

.ss-section-intro .ss-sub-title {
  color: var(--ss-blue);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
  display: inline-block;
  margin-bottom: 10px;
}

.ss-section-intro h2 {
  font-size: 32px;
  font-weight: 900;
  color: var(--ss-navy);
  margin: 0 0 15px;
}

.ss-section-intro p {
  font-size: 15px;
  color: #64748B;
  line-height: 1.6;
  margin: 0;
}

/* ==========================================================================
   SUNSHINE "GIỚI THIỆU" (PAGE-ID-281 & CUSTOM TEMPLATE) PREMIUM STYLING
   ========================================================================== */
.page-id-281 #content,
.page-template-page-gioi-thieu .ss-page-content-sec {
  background-color: #F8FAFC !important;
  padding: 60px 0 !important;
}

.page-id-281 .col-inner,
.page-template-page-gioi-thieu .ss-editor-content {
  max-width: 1100px;
  margin: 0 auto;
  background: #ffffff;
  padding: 50px 60px !important;
  border-radius: 24px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.03);
}

/* Headings & Typography */
.page-id-281 p.has-text-align-center.has-large-font-size,
.page-template-page-gioi-thieu p.has-text-align-center.has-large-font-size {
  margin-bottom: 45px !important;
}

.page-id-281 p.has-text-align-center.has-large-font-size strong,
.page-template-page-gioi-thieu p.has-text-align-center.has-large-font-size strong {
  font-size: 32px !important;
  font-weight: 900 !important;
  color: var(--ss-navy) !important;
  letter-spacing: -0.5px !important;
  position: relative;
  display: inline-block;
  text-transform: uppercase;
}

.page-id-281 p.has-text-align-center.has-large-font-size strong::after,
.page-template-page-gioi-thieu p.has-text-align-center.has-large-font-size strong::after {
  content: '';
  position: absolute;
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--ss-blue), var(--ss-accent));
  border-radius: 2px;
}

.page-id-281 h2,
.page-template-page-gioi-thieu h2,
.page-id-281 h3,
.page-template-page-gioi-thieu h3,
.page-id-281 p strong,
.page-template-page-gioi-thieu p strong {
  color: var(--ss-navy) !important;
}

/* Customize specific titles */
.page-id-281 p>strong,
.page-template-page-gioi-thieu p>strong {
  font-size: 20px !important;
  display: block;
  margin-top: 40px !important;
  margin-bottom: 15px !important;
  color: var(--ss-blue) !important;
  border-left: 4px solid var(--ss-accent);
  padding-left: 15px;
}

/* Style main introduction text */
.page-id-281 p,
.page-template-page-gioi-thieu p {
  font-size: 15px !important;
  line-height: 1.8 !important;
  color: #475569 !important;
  margin-bottom: 20px !important;
}

/* Beautiful custom list for du hoc benefits */
.page-id-281 ul.wp-block-list,
.page-template-page-gioi-thieu ul.wp-block-list {
  list-style: none !important;
  padding-left: 0 !important;
  margin: 25px 0 !important;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.page-id-281 ul.wp-block-list li,
.page-template-page-gioi-thieu ul.wp-block-list li {
  position: relative !important;
  padding-left: 32px !important;
  font-size: 14.5px !important;
  color: #334155 !important;
  line-height: 1.6 !important;
}

.page-id-281 ul.wp-block-list li::before,
.page-template-page-gioi-thieu ul.wp-block-list li::before {
  content: "✓" !important;
  position: absolute !important;
  left: 0 !important;
  top: 2px !important;
  width: 20px !important;
  height: 20px !important;
  background: rgba(2, 132, 199, 0.1) !important;
  color: var(--ss-blue) !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 11px !important;
  font-weight: bold !important;
}

@media (max-width: 768px) {

  .page-id-281 ul.wp-block-list,
  .page-template-page-gioi-thieu ul.wp-block-list {
    grid-template-columns: 1fr;
  }

  .page-id-281 .col-inner,
  .page-template-page-gioi-thieu .ss-editor-content {
    padding: 35px 20px !important;
    border-radius: 16px;
  }
}

/* Premium Table Styling */
.page-id-281 .wp-block-table,
.page-template-page-gioi-thieu .wp-block-table {
  margin: 30px 0 45px !important;
  border-radius: 16px !important;
  overflow-x: auto !important;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.04) !important;
  border: 1px solid #E2E8F0 !important;
}

.page-id-281 .wp-block-table table,
.page-template-page-gioi-thieu .wp-block-table table {
  border: none !important;
  width: 100% !important;
  border-collapse: collapse !important;
  margin: 0 !important;
  font-size: 14px !important;
}

.page-id-281 .wp-block-table th,
.page-id-281 .wp-block-table td,
.page-template-page-gioi-thieu .wp-block-table th,
.page-template-page-gioi-thieu .wp-block-table td {
  border: none !important;
  border-bottom: 1px solid #E2E8F0 !important;
  padding: 16px 20px !important;
  text-align: left !important;
  vertical-align: middle !important;
}

.page-id-281 .wp-block-table tr:last-child td,
.page-template-page-gioi-thieu .wp-block-table tr:last-child td {
  border-bottom: none !important;
}

/* Style table headers */
.page-id-281 .wp-block-table tr:first-child,
.page-template-page-gioi-thieu .wp-block-table tr:first-child {
  background: var(--ss-navy) !important;
  color: #ffffff !important;
}

.page-id-281 .wp-block-table tr:first-child td,
.page-id-281 .wp-block-table tr:first-child th,
.page-template-page-gioi-thieu .wp-block-table tr:first-child td,
.page-template-page-gioi-thieu .wp-block-table tr:first-child th {
  font-weight: 800 !important;
  color: #ffffff !important;
  text-transform: uppercase !important;
  font-size: 12.5px !important;
  letter-spacing: 0.5px !important;
  background: var(--ss-navy) !important;
}

/* Zebra striping for table rows */
.page-id-281 .wp-block-table tr:nth-child(even):not(:first-child),
.page-template-page-gioi-thieu .wp-block-table tr:nth-child(even):not(:first-child) {
  background-color: #F8FAFC !important;
}

.page-id-281 .wp-block-table tr:hover:not(:first-child),
.page-template-page-gioi-thieu .wp-block-table tr:hover:not(:first-child) {
  background-color: rgba(2, 132, 199, 0.03) !important;
  transition: background-color 0.2s ease;
}

/* Highlight important tags inside tables */
.page-id-281 .wp-block-table td strong,
.page-template-page-gioi-thieu .wp-block-table td strong {
  color: var(--ss-navy) !important;
  font-weight: 800 !important;
}

/* Custom scrollbar for tables */
.page-id-281 .wp-block-table::-webkit-scrollbar,
.page-template-page-gioi-thieu .wp-block-table::-webkit-scrollbar {
  height: 8px;
}

.page-id-281 .wp-block-table::-webkit-scrollbar-track,
.page-template-page-gioi-thieu .wp-block-table::-webkit-scrollbar-track {
  background: #F1F5F9;
  border-radius: 0 0 16px 16px;
}

.page-id-281 .wp-block-table::-webkit-scrollbar-thumb,
.page-template-page-gioi-thieu .wp-block-table::-webkit-scrollbar-thumb {
  background: #CBD5E1;
  border-radius: 4px;
}

.page-id-281 .wp-block-table::-webkit-scrollbar-thumb:hover,
.page-template-page-gioi-thieu .wp-block-table::-webkit-scrollbar-thumb:hover {
  background: #94A3B8;
}

/* ── FACILITIES RESPONSIVE (Premium Mobile Slider) ── */
@media (max-width: 768px) {
  .ss-fac-main {
    display: none !important;
  }

  .ss-fac-progress {
    display: none !important;
  }

  .ss-fac-strip-wrap {
    overflow-x: auto !important;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    cursor: default;
    padding: 10px 0 20px;
    margin: 0 -24px;
    /* Pull out to allow full-bleed scrolling */
  }

  .ss-fac-strip-wrap::-webkit-scrollbar {
    display: none !important;
  }

  .ss-fac-strip {
    display: flex !important;
    flex-direction: row !important;
    width: max-content !important;
    gap: 16px !important;
    padding: 0 24px !important;
    /* Restore padding at start/end of track */
  }

  .ss-fac-thumb {
    width: calc(100vw - 64px) !important;
    height: auto !important;
    aspect-ratio: 16/10 !important;
    scroll-snap-align: center;
    border-radius: var(--ss-radius-md) !important;
    border: 2px solid transparent !important;
    box-shadow: var(--ss-card-shadow) !important;
    opacity: 0.65 !important;
    /* Dim inactive slides slightly for depth */
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), border-color 0.4s ease, opacity 0.4s ease !important;
    transform: scale(0.96);
  }

  .ss-fac-thumb img {
    border-radius: calc(var(--ss-radius-md) - 2px) !important;
  }

  .ss-fac-thumb.active {
    border-color: var(--ss-blue) !important;
    opacity: 1 !important;
    transform: scale(1.02);
    box-shadow: 0 12px 30px rgba(0, 136, 204, 0.15) !important;
  }
}

/* ── GLOBAL CONTACT POPUP MODAL STYLING (Compact & Premium) ── */
.ss-modal-box-contact {
  max-width: 440px !important;
  /* Compact width */
  max-height: 90vh !important;
  border-radius: 20px !important;
}

.ss-modal-box-contact .ss-contact-form-box {
  box-shadow: none !important;
  border: none !important;
  padding: 32px 24px 20px !important;
  /* Increased top padding to push title down */
  overflow-y: auto !important;
  background: transparent !important;
  height: 100% !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.ss-modal-box-contact .ss-contact-form-box:hover {
  transform: none !important;
}

.ss-modal-box-contact .ss-modal-close {
  top: 16px !important;
  right: 16px !important;
  z-index: 99999 !important;
}

.ss-modal-box-contact .ss-form-title {
  font-size: 16px !important;
  margin-top: 0px !important;
  margin-bottom: 14px !important;
  line-height: 1.3 !important;
}

.ss-modal-box-contact .ss-form-group {
  margin-bottom: 8px !important;
}

.ss-modal-box-contact .ss-form-label {
  margin-bottom: 4px !important;
  font-size: 11px !important;
  padding-left: 12px !important;
}

.ss-modal-box-contact .ss-btn-submit {
  padding: 11px 24px !important;
  font-size: 13.5px !important;
}

/* Custom Scrollbar for compact contact popup modal */
.ss-modal-box-contact .ss-contact-form-box::-webkit-scrollbar {
  width: 6px !important;
}

.ss-modal-box-contact .ss-contact-form-box::-webkit-scrollbar-track {
  background: #f1f5f9 !important;
  border-radius: 10px !important;
}

.ss-modal-box-contact .ss-contact-form-box::-webkit-scrollbar-thumb {
  background: #cbd5e1 !important;
  border-radius: 10px !important;
}

.ss-modal-box-contact .ss-contact-form-box::-webkit-scrollbar-thumb:hover {
  background: #94a3b8 !important;
}

/* Spacing and Tag resets for compact contact popup */
.ss-modal-box-contact .ss-contact-form-box p {
  margin: 0 0 10px 0 !important;
  padding: 0 !important;
}

.ss-modal-box-contact .ss-contact-form-box br {
  display: none !important;
}

.ss-modal-box-contact .ss-contact-form-box input[type="text"],
.ss-modal-box-contact .ss-contact-form-box input[type="email"],
.ss-modal-box-contact .ss-contact-form-box input[type="tel"],
.ss-modal-box-contact .ss-contact-form-box select {
  height: 40px !important;
  padding: 0 20px !important;
  font-size: 13.5px !important;
}

/* ── GLOBAL BOTTOM CTA SECTION ── */
.ss-prog-cta-sec {
  background: linear-gradient(135deg, #1b365d 0%, #0f172a 100%) !important;
  padding: 80px 24px !important;
  color: #ffffff !important;
  text-align: center !important;
  position: relative !important;
  overflow: hidden !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.ss-prog-cta-sec::before {
  content: '' !important;
  position: absolute !important;
  width: 300px !important;
  height: 300px !important;
  background: rgba(2, 132, 199, 0.15) !important;
  border-radius: 50% !important;
  top: -100px !important;
  right: -100px !important;
  filter: blur(80px) !important;
  pointer-events: none !important;
}

.ss-prog-cta-inner {
  max-width: 750px !important;
  margin: 0 auto !important;
  position: relative !important;
  z-index: 2 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
}

.ss-prog-cta-inner h2 {
  font-size: 32px !important;
  font-weight: 900 !important;
  margin: 0 0 15px 0 !important;
  color: #ffffff !important;
  letter-spacing: 0.5px !important;
  line-height: 1.3 !important;
}

.ss-prog-cta-inner p {
  font-size: 16px !important;
  color: #94a3b8 !important;
  margin: 0 0 32px 0 !important;
  line-height: 1.6 !important;
}

.ss-prog-cta-inner .ss-btn-reg {
  margin: 0 auto !important;
  padding: 14px 45px 14px 28px !important;
  font-size: 14.5px !important;
  height: auto !important;
  line-height: 1.2 !important;
}

/* Responsive CTA */
@media (max-width: 767px) {
  .ss-prog-cta-sec {
    padding: 60px 20px !important;
  }
  .ss-prog-cta-inner h2 {
    font-size: 24px !important;
  }
  .ss-prog-cta-inner p {
    font-size: 14px !important;
    margin-bottom: 24px !important;
  }
  .ss-prog-cta-inner .ss-btn-reg {
    padding: 12px 40px 12px 24px !important;
    font-size: 13px !important;
    width: 100% !important;
    justify-content: center !important;
  }
}

/* ── SCROLL REVEAL INTEGRATION FOR HOME ELEMENTS ── */
.ss-sec, 
.ss-prog-card, 
.ss-news-item, 
.ss-media-card {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.ss-sec.active, 
.ss-prog-card.active, 
.ss-news-item.active, 
.ss-media-card.active {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

/* ── IELTS PRACTICE PORTAL CTA SECTION ── */
.ss-practice-cta-section {
  padding: 80px 0;
  background: #ffffff;
  border-top: 1px solid var(--ss-border, #e2e8f0);
  width: 100%;
  box-sizing: border-box;
}

.ss-practice-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 50px;
  flex-wrap: wrap;
}

.ss-practice-cta-content {
  flex: 1.2;
  min-width: 320px;
}

.ss-practice-cta-content h2 {
  font-size: 32px;
  font-weight: 900;
  color: var(--ss-navy, #0f172a);
  margin: 0 0 15px;
  line-height: 1.25;
  text-transform: uppercase;
}

.ss-practice-cta-content p {
  font-size: 15.5px;
  color: var(--ss-gray, #475569);
  line-height: 1.6;
  margin: 0 0 25px;
}

.ss-practice-cta-graphic {
  flex: 0.8;
  min-width: 300px;
  text-align: center;
}

.ss-practice-cta-graphic img {
  width: 100%;
  height: auto;
  border-radius: 20px;
  box-shadow: 0 15px 35px rgba(15, 23, 42, 0.06);
  border: 1px solid var(--ss-border, #e2e8f0);
}

@media (max-width: 768px) {
  .ss-practice-cta-section {
    padding: 50px 0;
  }
  .ss-practice-cta-inner {
    gap: 30px;
  }
  .ss-practice-cta-content h2 {
    font-size: 26px;
  }
}