/* ================================================
   Academia Marbella Study Centre — Global Styles
   ================================================ */

@import url('https://fonts.googleapis.com/css2?family=Raleway:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,400&display=swap');

/* ─── CSS Custom Properties (Logo Brand Palette) ── */
:root {
  --red:        #E40D2C;
  --red-dark:   #BC0A24;
  --blue:       #20A8DF;
  --blue-dark:  #148BBD;
  --navy:       #1B2E7A;
  --navy-dark:  #111D52;
  --white:      #FFFFFF;
  --off-white:  #F8F9FA;
  --grey:       #5A6572;
  --grey-light: #E9ECEF;
  --text:       #222222;

  --font:       'Raleway', sans-serif;
  --shadow:     0 4px 24px rgba(17,29,82,0.10);
  --shadow-lg:  0 8px 40px rgba(17,29,82,0.16);
  --radius:     4px;
  --transition: 0.3s ease;
}

/* ─── Reset & Base ───────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  font-size: 16px;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ─── Typography ─────────────────────────────────── */
h1, h2, h3, h4, h5 { font-family: var(--font); font-weight: 700; line-height: 1.2; }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.5rem); }
p  { font-size: 1rem; line-height: 1.75; color: var(--grey); }

/* ─── Utilities ──────────────────────────────────── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section-header { text-align: center; margin-bottom: 3rem; }
.section-header h2 { color: var(--navy); font-weight: 800; text-transform: uppercase; letter-spacing: 1px; }
.section-header h2 span { color: var(--red); }
.section-header p { max-width: 600px; margin: 1rem auto 0; }
.btn {
  position: relative;
  display: inline-block;
  padding: 13px 32px;
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  border-radius: 2px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
  margin-bottom: 10px;
}
.btn::after {
  content: '';
  position: absolute;
  bottom: -11px;
  left: 22px;
  width: 0;
  height: 0;
  border-left: 7px solid transparent;
  border-right: 12px solid transparent;
  border-top: 10px solid transparent;
  transform: skewX(-18deg);
  transition: border-top-color var(--transition);
  pointer-events: none;
}
.btn-red { background: var(--red); color: var(--white); }
.btn-red::after { border-top-color: var(--red); }
.btn-red:hover { background: var(--red-dark); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-red:hover::after { border-top-color: var(--red-dark); }

.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy::after { border-top-color: var(--navy); }
.btn-navy:hover { background: var(--navy-dark); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-navy:hover::after { border-top-color: var(--navy-dark); }

.btn-blue { background: var(--blue); color: var(--white); }
.btn-blue::after { border-top-color: var(--blue); left: auto; right: 22px; transform: skewX(18deg); }
.btn-blue:hover { background: var(--blue-dark); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-blue:hover::after { border-top-color: var(--blue-dark); }

.btn-outline-white { background: transparent; color: var(--white); border-color: var(--white); }
.btn-outline-white::after { border-top-color: var(--white); left: auto; right: 22px; transform: skewX(18deg); }
.btn-outline-white:hover { background: var(--white); color: var(--navy); }
.btn-outline-white:hover::after { border-top-color: var(--white); }

/* ─── Header ─────────────────────────────────────── */
#site-header { position: sticky; top: 0; z-index: 1000; box-shadow: var(--shadow); }

/* Top Bar */
.top-bar {
  background: var(--navy);
  padding: 8px 0;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.85);
}
.top-bar .container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
}
.top-bar-left { display: flex; gap: 1.8rem; align-items: center; justify-content: center; flex-wrap: wrap; }
.top-bar-left a { color: rgba(255,255,255,0.85); transition: color var(--transition); }
.top-bar-left a:hover { color: var(--white); }
.top-bar-left i { margin-right: 5px; color: var(--blue); }
.top-bar-right .btn-red { padding: 7px 20px; font-size: 0.80rem; border-radius: 2px; margin-bottom: 0; }
.top-bar-right .btn-red::after { bottom: -7px; left: 16px; border-left-width: 5px; border-right-width: 9px; border-top-width: 7px; }

/* Main Nav */
.main-nav {
  background: var(--white);
  padding: 0;
  border-bottom: 3px solid var(--red);
}
.main-nav .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 72px;
}
.nav-logo { display: flex; align-items: center; }
.nav-logo img { height: 56px; width: auto; }
.nav-logo .wordmark {
  margin-left: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1.3;
  border-left: 2px solid var(--red);
  padding-left: 12px;
  display: none; /* hidden when logo has text */
}

/* Nav Menu */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 0;
}
.nav-item {
  position: relative;
}
.nav-link {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0 14px;
  height: 72px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  color: var(--navy);
  transition: color var(--transition);
  white-space: nowrap;
}
.nav-link:hover, .nav-item:hover > .nav-link { color: var(--red); }
.nav-link i.arrow { font-size: 0.65rem; margin-left: 2px; transition: transform var(--transition); }
.nav-item:hover > .nav-link i.arrow { transform: rotate(180deg); }

/* Dropdown */
.dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  min-width: 220px;
  box-shadow: var(--shadow-lg);
  border-top: 3px solid var(--red);
  z-index: 999;
}
.dropdown.dropdown-right { left: auto; right: 0; }
.nav-item:hover > .dropdown { display: block; }
.dropdown-item {
  position: relative;
}
.dropdown-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 18px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  border-bottom: 1px solid var(--grey-light);
  transition: background var(--transition), color var(--transition);
}
.dropdown-link:hover { background: var(--off-white); color: var(--red); }
.dropdown-link i { font-size: 0.65rem; }

/* Sub-dropdown */
.sub-dropdown {
  display: none;
  position: absolute;
  top: 0;
  left: 100%;
  background: var(--white);
  min-width: 200px;
  box-shadow: var(--shadow-lg);
  border-top: 3px solid var(--blue);
  z-index: 1000;
}
.dropdown-item:hover > .sub-dropdown { display: block; }
.sub-dropdown-link {
  display: block;
  padding: 11px 18px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  border-bottom: 1px solid var(--grey-light);
  transition: background var(--transition), color var(--transition);
}
.sub-dropdown-link:hover { background: var(--off-white); color: var(--blue); }

/* Contact button in nav */
.nav-contact-btn {
  margin-left: 10px;
}
.nav-contact-btn .btn-red {
  padding: 10px 22px;
  font-size: 0.8rem;
  border-radius: 2px;
  margin-bottom: 0;
}
.nav-contact-btn .btn-red::after {
  bottom: -8px;
  left: 16px;
  border-left-width: 6px;
  border-right-width: 10px;
  border-top-width: 8px;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  background: none;
  border: none;
}
.hamburger span {
  display: block;
  width: 25px;
  height: 2px;
  background: var(--navy);
  transition: all var(--transition);
  border-radius: 2px;
}
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ─── Floating Contact Dock (Bottom-Right) ─────── */
.floating-sidebar {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 950;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  padding: 8px;
  border-radius: 50px;
  box-shadow: 0 8px 30px rgba(17, 29, 82, 0.22);
  border: 1px solid rgba(17, 29, 82, 0.08);
}
.floating-sidebar a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: var(--white);
  font-size: 1.15rem;
  transition: transform var(--transition), box-shadow var(--transition), opacity var(--transition);
}
.float-wa { background: #25D366; }
.float-ph { background: var(--red); }
.float-em { background: var(--navy); }
.floating-sidebar a:hover {
  transform: translateY(-4px) scale(1.06);
  box-shadow: 0 6px 16px rgba(17, 29, 82, 0.25);
}
@media (max-width: 480px) {
  .floating-sidebar { right: 16px; bottom: 16px; padding: 6px; gap: 6px; }
  .floating-sidebar a { width: 40px; height: 40px; font-size: 1rem; }
}

/* ─── Hero Slider (Cross-Fade & Staggered Fade-In) ─ */
.hero {
  position: relative;
  height: 86vh;
  min-height: 540px;
  max-height: 760px;
  overflow: hidden;
  background: var(--navy-dark);
}
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1s ease, visibility 1s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  z-index: 1;
}
.hero-slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}
.hero-slide-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.06);
  transition: transform 6.5s ease-out;
}
.hero-slide.active .hero-slide-bg {
  transform: scale(1);
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(17,29,82,0.80) 0%, rgba(27,46,122,0.62) 55%, rgba(228,13,44,0.48) 100%);
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 24px;
  max-width: 860px;
}

/* Staggered Fade-In for text elements when slide activates */
.hero-slide .hero-eyebrow,
.hero-slide h1,
.hero-slide .hero-sub,
.hero-slide .hero-buttons {
  opacity: 0;
  transform: translateY(22px);
}
.hero-slide.active .hero-eyebrow {
  animation: heroFadeIn 0.75s ease 0.15s forwards;
}
.hero-slide.active h1 {
  animation: heroFadeIn 0.85s ease 0.35s forwards;
}
.hero-slide.active .hero-sub {
  animation: heroFadeIn 0.85s ease 0.55s forwards;
}
.hero-slide.active .hero-buttons {
  animation: heroFadeIn 0.85s ease 0.75s forwards;
}
@keyframes heroFadeIn {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 48px;
  height: 48px;
  border-radius: 2px;
  border: 2px solid rgba(255,255,255,0.45);
  background: rgba(17,29,82,0.45);
  color: var(--white);
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  backdrop-filter: blur(4px);
}
.hero-nav-btn:hover {
  background: var(--red);
  border-color: var(--red);
}
.hero-prev { left: 22px; }
.hero-next { right: 22px; }

.hero-dots {
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  gap: 10px;
  align-items: center;
}
.hero-dot {
  width: 12px;
  height: 12px;
  border-radius: 2px;
  border: 2px solid rgba(255,255,255,0.7);
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: all var(--transition);
}
.hero-dot.active {
  width: 34px;
  background: var(--red);
  border-color: var(--red);
}

@media (max-width: 768px) {
  .hero-nav-btn { display: none; }
}
.hero-eyebrow {
  position: relative;
  display: inline-block;
  background: var(--red);
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  padding: 9px 22px;
  margin-bottom: 28px;
  border-radius: 2px;
  box-shadow: 0 6px 20px rgba(228,13,44,0.35);
}
.hero-eyebrow::after {
  content: '';
  position: absolute;
  bottom: -11px;
  left: 26px;
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-right: 14px solid transparent;
  border-top: 12px solid var(--red);
  transform: skewX(-16deg);
}
.hero h1 {
  color: var(--white);
  font-size: clamp(1.8rem, 5vw, 3.4rem);
  font-weight: 900;
  margin-bottom: 20px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.3);
}
.hero h1 span { color: var(--blue); }
.hero-sub {
  color: rgba(255,255,255,0.9);
  font-size: 1.1rem;
  margin-bottom: 36px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}
.hero-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ─── About Section ──────────────────────────────── */
.about-section {
  padding: 90px 0;
  background: var(--white);
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.about-image { position: relative; border-radius: var(--radius); overflow: visible; }
.about-image img { width: 100%; height: 420px; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.about-badge {
  position: absolute;
  bottom: -18px;
  right: 18px;
  background: var(--red);
  color: var(--white);
  padding: 16px 22px;
  border-radius: 2px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.78rem;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  line-height: 1.2;
  box-shadow: var(--shadow-lg);
}
.about-badge::after {
  content: '';
  position: absolute;
  bottom: -12px;
  left: 22px;
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 14px solid transparent;
  border-top: 13px solid var(--red);
  transform: skewX(-16deg);
}
.about-badge span { font-size: 2.1rem; font-weight: 900; line-height: 1; margin-bottom: 3px; }
.about-content h2 { color: var(--navy); margin-bottom: 16px; }
.about-content h2 span { color: var(--red); }
.about-content p { margin-bottom: 14px; }
.about-list { margin: 20px 0 28px; }
.about-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 10px;
  font-size: 0.95rem;
  color: var(--text);
}
.about-list li i { color: var(--blue); margin-top: 3px; flex-shrink: 0; }
.about-buttons { display: flex; gap: 14px; flex-wrap: wrap; }

/* ─── Services Section ───────────────────────────── */
.services-section {
  padding: 90px 0;
  background: var(--off-white);
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.service-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.service-card-img {
  height: 160px;
  overflow: hidden;
}
.service-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.service-card:hover .service-card-img img { transform: scale(1.05); }
.service-card-body {
  padding: 22px 20px 10px;
  flex: 1;
}
.service-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--white);
  margin-bottom: 14px;
}
.icon-red { background: var(--red); }
.icon-blue { background: var(--blue); }
.icon-navy { background: var(--navy); }
.service-card h3 { font-size: 1rem; color: var(--navy); font-weight: 800; text-transform: uppercase; margin-bottom: 8px; letter-spacing: 0.3px; }
.service-card p { font-size: 0.88rem; line-height: 1.6; }
.service-card-footer {
  padding: 12px 20px 16px;
  border-top: 1px solid var(--grey-light);
  margin-top: 12px;
}
.learn-more {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--red);
  letter-spacing: 0.5px;
  transition: gap var(--transition);
}
.learn-more:hover { gap: 10px; color: var(--red-dark); }

/* ─── Why Choose Us ──────────────────────────────── */
.features-section {
  padding: 90px 0;
  background: var(--navy);
  position: relative;
  overflow: hidden;
}
.features-section::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: rgba(255,255,255,0.03);
}
.features-section .section-header h2 { color: var(--white); }
.features-section .section-header p { color: rgba(255,255,255,0.7); }
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.feature-card {
  background: rgba(255,255,255,0.06);
  border-top: 4px solid var(--red);
  border-radius: var(--radius);
  padding: 36px 28px;
  text-align: center;
  transition: background var(--transition), transform var(--transition);
}
.feature-card:hover { background: rgba(255,255,255,0.10); transform: translateY(-4px); }
.feature-card:nth-child(2) { border-top-color: var(--blue); }
.feature-card:nth-child(3) { border-top-color: var(--red); }
.feature-icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 1.8rem;
  color: var(--white);
}
.fi-red { background: rgba(232,25,44,0.2); }
.fi-blue { background: rgba(0,180,216,0.2); }
.feature-card h3 { color: var(--white); font-size: 1.1rem; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 12px; }
.feature-card p { color: rgba(255,255,255,0.7); font-size: 0.9rem; }

/* ─── International School Section ──────────────── */
.intl-section {
  padding: 90px 0;
  background: var(--white);
}
.intl-intro {
  max-width: 700px;
  margin: 0 auto 50px;
  text-align: center;
}
.intl-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.intl-card {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.intl-card-header {
  padding: 28px 30px 22px;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 16px;
}
.intl-card-header.blue-bg { background: var(--blue); }
.intl-card-header.red-bg  { background: var(--red); }
.intl-card-header i { font-size: 2rem; opacity: 0.85; }
.intl-card-header h3 { font-size: 1.3rem; font-weight: 800; margin-bottom: 4px; }
.intl-card-header p  { font-size: 0.85rem; opacity: 0.9; }
.intl-card-body { background: var(--white); padding: 24px 30px; }
.ks-list { display: flex; flex-direction: column; gap: 14px; }
.ks-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--grey-light);
}
.ks-item:last-child { border-bottom: none; padding-bottom: 0; }
.ks-badge {
  background: var(--navy);
  color: var(--white);
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  white-space: nowrap;
  flex-shrink: 0;
}
.ks-badge.blue { background: var(--blue); }
.ks-badge.red  { background: var(--red); }
.ks-text h4 { font-size: 0.92rem; font-weight: 700; color: var(--navy); margin-bottom: 4px; }
.ks-text p  { font-size: 0.84rem; }
.intl-cta { text-align: center; margin-top: 44px; }
.intl-cta p { margin-bottom: 16px; }

/* ─── Summer School ──────────────────────────────── */
.summer-section {
  padding: 90px 0;
  background: linear-gradient(135deg, var(--blue) 0%, var(--navy) 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.summer-section::after {
  content: '☀';
  position: absolute;
  font-size: 300px;
  color: rgba(255,255,255,0.04);
  right: -40px;
  top: -60px;
  line-height: 1;
}
.summer-section .section-header h2 { color: var(--white); }
.summer-section .section-header p { color: rgba(255,255,255,0.8); }
.summer-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 20px;
}
.summer-card {
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 8px;
  padding: 36px 24px;
  color: var(--white);
  transition: background var(--transition), transform var(--transition);
}
.summer-card:hover { background: rgba(255,255,255,0.20); transform: translateY(-4px); }
.summer-card i { font-size: 2.5rem; margin-bottom: 16px; color: rgba(255,255,255,0.9); }
.summer-card h3 { font-size: 1.05rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 10px; }
.summer-card p { font-size: 0.88rem; color: rgba(255,255,255,0.8); line-height: 1.65; }
.summer-cta { margin-top: 44px; }
.summer-cta p { color: rgba(255,255,255,0.85); margin-bottom: 20px; font-size: 1.05rem; }

/* ─── Testimonials ───────────────────────────────── */
.testimonials-section {
  padding: 90px 0;
  background: var(--red);
  position: relative;
  overflow: hidden;
}
.testimonials-section::before {
  content: '\201C';
  position: absolute;
  top: -20px;
  left: 30px;
  font-size: 300px;
  color: rgba(255,255,255,0.06);
  font-family: Georgia, serif;
  line-height: 1;
}
.testimonials-section .section-header h2 { color: var(--white); }
.testimonials-section .section-header p { color: rgba(255,255,255,0.8); }
.carousel-wrapper { position: relative; overflow: hidden; }
.carousel-track {
  display: flex;
  transition: transform 0.5s ease;
}
.testimonial-slide {
  min-width: 100%;
  padding: 0 20px;
  display: flex;
  gap: 28px;
  justify-content: center;
  flex-wrap: wrap;
}
.testimonial-card {
  background: var(--white);
  border-radius: 8px;
  padding: 32px 28px;
  max-width: 360px;
  flex: 1;
  min-width: 280px;
  position: relative;
  box-shadow: var(--shadow);
}
.testimonial-card::before {
  content: '\201C';
  position: absolute;
  top: 12px;
  left: 20px;
  font-size: 60px;
  color: var(--red);
  font-family: Georgia, serif;
  line-height: 1;
  opacity: 0.3;
}
.testimonial-card p {
  font-size: 0.95rem;
  color: var(--text);
  font-style: italic;
  line-height: 1.7;
  margin-bottom: 20px;
  margin-top: 20px;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}
.author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--white);
  flex-shrink: 0;
}
.av-red  { background: var(--red); }
.av-blue { background: var(--blue); }
.av-navy { background: var(--navy); }
.author-info strong { display: block; font-size: 0.9rem; color: var(--navy); font-weight: 700; }
.author-info span { font-size: 0.8rem; color: var(--grey); }
.carousel-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-top: 36px;
}
.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  border: none;
  transition: background var(--transition), transform var(--transition);
  padding: 0;
}
.carousel-dot.active { background: var(--white); transform: scale(1.3); }
.carousel-btn {
  background: rgba(255,255,255,0.2);
  border: 2px solid rgba(255,255,255,0.5);
  color: var(--white);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 0.85rem;
  transition: background var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}
.carousel-btn:hover { background: rgba(255,255,255,0.35); }

/* ─── Gallery ────────────────────────────────────── */
.gallery-section {
  padding: 90px 0;
  background: var(--off-white);
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  aspect-ratio: 4/3;
  cursor: pointer;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.gallery-item:hover img { transform: scale(1.07); }
.gallery-item-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,53,102,0.6) 0%, transparent 60%);
  opacity: 0;
  transition: opacity var(--transition);
  display: flex;
  align-items: flex-end;
  padding: 16px;
}
.gallery-item:hover .gallery-item-overlay { opacity: 1; }
.gallery-item-overlay i { color: var(--white); font-size: 1.8rem; }

/* ─── Contact Section ────────────────────────────── */
.contact-section {
  padding: 90px 0;
  background: var(--white);
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 60px;
  align-items: start;
}
.contact-info h2 { color: var(--navy); margin-bottom: 14px; }
.contact-info h2 span { color: var(--red); }
.contact-info > p { margin-bottom: 32px; }
.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
}
.contact-icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--white);
  flex-shrink: 0;
}
.ci-red  { background: var(--red); }
.ci-blue { background: var(--blue); }
.ci-navy { background: var(--navy); }
.contact-detail-text strong { display: block; font-size: 0.9rem; color: var(--navy); font-weight: 700; margin-bottom: 4px; }
.contact-detail-text p, .contact-detail-text a { font-size: 0.9rem; color: var(--grey); }
.contact-detail-text a:hover { color: var(--red); }
.contact-social { display: flex; gap: 12px; margin-top: 28px; }
.social-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 0.95rem;
  transition: transform var(--transition), opacity var(--transition);
}
.social-btn:hover { transform: translateY(-3px); opacity: 0.85; }
.sb-ig { background: linear-gradient(135deg, #405de6, #5851db, #833ab4, #c13584, #e1306c, #fd1d1d); }
.sb-wa { background: #25D366; }
.sb-fb { background: #1877F2; }

/* Contact Form */
.contact-form {
  background: var(--off-white);
  padding: 44px 40px;
  border-radius: 8px;
  box-shadow: var(--shadow);
}
.contact-form h3 { color: var(--navy); margin-bottom: 24px; font-size: 1.3rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.form-group label { font-size: 0.82rem; font-weight: 700; color: var(--navy); text-transform: uppercase; letter-spacing: 0.3px; }
.form-group input,
.form-group select,
.form-group textarea {
  padding: 12px 16px;
  border: 2px solid var(--grey-light);
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 0.92rem;
  color: var(--text);
  background: var(--white);
  transition: border-color var(--transition);
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--blue); }
.form-group input.error,
.form-group textarea.error { border-color: var(--red); }
.form-group textarea { resize: vertical; min-height: 110px; }
.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.82rem;
  color: var(--grey);
  margin-bottom: 20px;
}
.form-checkbox input[type="checkbox"] { margin-top: 3px; accent-color: var(--red); }
.form-checkbox a { color: var(--red); text-decoration: underline; }
.form-submit { width: 100%; padding: 15px; font-size: 0.9rem; }

/* Map */
.map-section {
  height: 380px;
}
.map-section iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* ─── Footer ─────────────────────────────────────── */
.site-footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,0.8);
  padding: 0;
}
.footer-main {
  padding: 60px 0 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}
.footer-col h4 {
  color: var(--white);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--red);
  display: inline-block;
}
.footer-logo { height: 52px; width: auto; margin-bottom: 16px; }
.footer-brand p { font-size: 0.84rem; line-height: 1.7; margin-bottom: 20px; }
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.1);
  color: var(--white);
  font-size: 0.85rem;
  transition: background var(--transition), transform var(--transition);
}
.footer-social a:hover { background: var(--red); transform: translateY(-2px); }
.footer-social a.ig:hover { background: linear-gradient(135deg, #405de6, #833ab4, #e1306c, #fd1d1d); }
.footer-links li { margin-bottom: 10px; }
.footer-links a {
  font-size: 0.84rem;
  color: rgba(255,255,255,0.7);
  transition: color var(--transition);
  display: flex;
  align-items: center;
  gap: 6px;
}
.footer-links a i { font-size: 0.65rem; color: var(--red); }
.footer-links a:hover { color: var(--white); }
.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
}
.footer-contact-item i { color: var(--blue); margin-top: 3px; flex-shrink: 0; font-size: 0.85rem; }
.footer-contact-item span { font-size: 0.84rem; color: rgba(255,255,255,0.7); }
.footer-bottom {
  background: rgba(0,0,0,0.25);
  padding: 16px 0;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.footer-bottom .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.footer-bottom p { font-size: 0.78rem; color: rgba(255,255,255,0.5); }
.footer-bottom-links { display: flex; gap: 20px; }
.footer-bottom-links a { font-size: 0.78rem; color: rgba(255,255,255,0.5); transition: color var(--transition); }
.footer-bottom-links a:hover { color: var(--white); }

/* ─── International School Page ─────────────────── */
.page-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
  padding: 100px 0 70px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: rgba(0,180,216,0.08);
  top: -100px;
  right: -100px;
}
.page-hero::after {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: rgba(232,25,44,0.07);
  bottom: -80px;
  left: -80px;
}
.page-hero-content { position: relative; z-index: 1; }
.page-hero h1 { color: var(--white); font-size: clamp(1.8rem, 4vw, 3rem); margin-bottom: 16px; }
.page-hero h1 span { color: var(--blue); }
.page-hero p { color: rgba(255,255,255,0.8); max-width: 600px; margin: 0 auto; font-size: 1.05rem; }
.breadcrumb {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.6);
}
.breadcrumb a { color: var(--blue); }
.breadcrumb span { color: rgba(255,255,255,0.4); }

.intl-intro-section {
  padding: 70px 0;
  background: var(--white);
}
.intl-intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}
.intl-intro-content h2 { color: var(--navy); margin-bottom: 16px; }
.intl-stage-section { padding: 70px 0; }
.intl-stage-section.bg-light { background: var(--off-white); }
.stage-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 36px;
}
.stage-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: var(--white);
  flex-shrink: 0;
}
.si-blue { background: var(--blue); }
.si-red  { background: var(--red); }
.stage-header h2 { color: var(--navy); margin: 0; }
.stage-header p  { color: var(--grey); font-size: 0.9rem; margin: 0; }
.ks-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.ks-detail-card {
  background: var(--white);
  border-radius: 8px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.ks-detail-card.bg-light { background: var(--off-white); }
.ks-card-header {
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.ks-card-header.blue { background: var(--blue); }
.ks-card-header.red  { background: var(--red); }
.ks-card-header i { font-size: 1.4rem; color: var(--white); }
.ks-card-header h3 { color: var(--white); font-size: 1rem; font-weight: 800; margin: 0; }
.ks-card-header span { color: rgba(255,255,255,0.85); font-size: 0.8rem; }
.ks-card-body { padding: 24px; }
.ks-card-body h4 { color: var(--navy); font-size: 0.9rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 12px; margin-top: 16px; }
.ks-card-body h4:first-child { margin-top: 0; }
.ks-card-body ul { padding-left: 0; }
.ks-card-body ul li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--grey);
  margin-bottom: 8px;
}
.ks-card-body ul li i { color: var(--blue); margin-top: 3px; font-size: 0.8rem; }
.ks-card-body ul li.red-dot i { color: var(--red); }
.ks-card-body ul li i.fa-circle { font-size: 0.55rem; margin-top: 5px; color: var(--blue); }
.ks-card-body ul li.red-dot i.fa-circle { color: var(--red); }

/* ─── Animations ─────────────────────────────────── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
.animate-in {
  opacity: 0;
  animation: fadeInUp 0.6s ease forwards;
}

/* ─── Responsive ─────────────────────────────────── */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid   { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .about-grid,
  .contact-grid,
  .intl-grid,
  .intl-intro-grid { grid-template-columns: 1fr; }
  .about-image img { height: 300px; }
  .about-badge { right: 10px; bottom: 10px; }
  .features-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
  .summer-cards  { grid-template-columns: 1fr; max-width: 360px; margin: 20px auto 0; }
  .ks-detail-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  /* Nav */
  .hamburger { display: flex; }
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: min(320px, 90vw);
    height: 100vh;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    padding: 80px 0 30px;
    box-shadow: var(--shadow-lg);
    transition: right var(--transition);
    overflow-y: auto;
    z-index: 998;
    gap: 0;
  }
  .nav-menu.open { right: 0; }
  .nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    z-index: 997;
  }
  .nav-overlay.show { display: block; }
  .nav-item { width: 100%; }
  .nav-link { height: auto; padding: 14px 24px; border-bottom: 1px solid var(--grey-light); }
  .dropdown {
    position: static;
    box-shadow: none;
    border-top: none;
    background: var(--off-white);
    display: none;
  }
  .dropdown.mobile-open { display: block; }
  .dropdown-link { padding: 10px 36px; }
  .sub-dropdown { position: static; box-shadow: none; border-top: none; background: var(--grey-light); }
  .sub-dropdown.mobile-open { display: block; }
  .sub-dropdown-link { padding: 10px 48px; }
  .nav-contact-btn { padding: 20px 24px; width: 100%; }
  .nav-contact-btn .btn-red { width: 100%; text-align: center; }

  .form-row { grid-template-columns: 1fr; }
  .contact-form { padding: 28px 22px; }
  .intl-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; max-width: 380px; margin: 0 auto; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid  { grid-template-columns: 1fr; }
  .footer-bottom .container { flex-direction: column; text-align: center; }
  .top-bar-left { gap: 0.8rem; font-size: 0.75rem; }
}

@media (max-width: 480px) {
  .hero { height: 95vh; }
  .hero-buttons { flex-direction: column; align-items: center; }
  .gallery-grid { grid-template-columns: 1fr; }
  .summer-cards { grid-template-columns: 1fr; }
  .page-hero { padding: 80px 0 50px; }
}

/* ══════════════════════════════════════════════════
   CORPORATE SPEECH-BUBBLE IDENTITY & NEW PAGES
   (Inspired by Marbella Study Centre logo & @marbellastudy)
   ══════════════════════════════════════════════════ */

/* Speech-bubble rectangular tag / badge */
.bubble-tag {
  position: relative;
  display: inline-block;
  background: var(--red);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 7px 18px;
  border-radius: 2px;
  margin-bottom: 22px;
}
.bubble-tag::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 20px;
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 12px solid transparent;
  border-top: 11px solid var(--red);
  transform: skewX(-16deg);
}
.bubble-tag.blue { background: var(--blue); }
.bubble-tag.blue::after { border-top-color: var(--blue); left: auto; right: 20px; transform: skewX(16deg); }
.bubble-tag.navy { background: var(--navy); }
.bubble-tag.navy::after { border-top-color: var(--navy); }

/* Speech-bubble card header pointer */
.intl-card-header,
.ks-card-header,
.bubble-header {
  position: relative;
}
.intl-card-header::after,
.ks-card-header::after,
.bubble-header::after {
  content: '';
  position: absolute;
  bottom: -11px;
  left: 34px;
  width: 0;
  height: 0;
  border-left: 9px solid transparent;
  border-right: 13px solid transparent;
  border-top: 12px solid var(--blue);
  z-index: 2;
}
.intl-card-header.red-bg::after,
.ks-card-header.red::after,
.bubble-header.red::after {
  border-top-color: var(--red);
}
.bubble-header.navy::after {
  border-top-color: var(--navy);
}

/* Speech-bubble pointer on testimonial cards */
.testimonial-card {
  margin-bottom: 14px;
}
.testimonial-card::after {
  content: '';
  position: absolute;
  bottom: -13px;
  left: 40px;
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-right: 14px solid transparent;
  border-top: 14px solid var(--white);
}

/* Speech-bubble callout banner */
.bubble-callout {
  position: relative;
  background: var(--navy);
  color: var(--white);
  padding: 30px 34px;
  border-radius: 3px;
  border-left: 6px solid var(--red);
  margin: 28px 0 36px;
  box-shadow: var(--shadow);
}
.bubble-callout::after {
  content: '';
  position: absolute;
  bottom: -14px;
  left: 36px;
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-right: 16px solid transparent;
  border-top: 15px solid var(--navy);
}
.bubble-callout.blue-box {
  background: var(--blue);
  border-left-color: var(--navy);
}
.bubble-callout.blue-box::after { border-top-color: var(--blue); }
.bubble-callout h3 { color: var(--white); margin-bottom: 10px; font-size: 1.2rem; }
.bubble-callout p { color: rgba(255,255,255,0.92); margin: 0; }

/* Detailed Services / Content Sections */
.content-section {
  padding: 76px 0;
  background: var(--white);
}
.content-section.bg-light {
  background: var(--off-white);
}
.content-section.bg-navy {
  background: var(--navy);
  color: var(--white);
}
.content-section.bg-navy h2,
.content-section.bg-navy h3 { color: var(--white); }
.content-section.bg-navy p { color: rgba(255,255,255,0.84); }

.detail-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}
.detail-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.detail-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.info-card {
  background: var(--white);
  border-radius: 4px;
  box-shadow: var(--shadow);
  overflow: hidden;
  border-top: 4px solid var(--navy);
  height: 100%;
  display: flex;
  flex-direction: column;
}
.info-card.accent-red  { border-top-color: var(--red); }
.info-card.accent-blue { border-top-color: var(--blue); }
.info-card-header {
  padding: 20px 24px;
  background: var(--navy);
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 14px;
}
.info-card-header.red  { background: var(--red); }
.info-card-header.blue { background: var(--blue); }
.info-card-header i { font-size: 1.4rem; }
.info-card-header h3 { font-size: 1.05rem; margin: 0; color: var(--white); text-transform: uppercase; letter-spacing: 0.4px; }
.info-card-header span { display: block; font-size: 0.8rem; opacity: 0.88; font-weight: 500; }
.info-card-body {
  padding: 26px 24px;
  flex: 1;
}
.info-card-body p { margin-bottom: 14px; font-size: 0.94rem; }
.info-card-body p:last-child { margin-bottom: 0; }

.check-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 14px 0;
}
.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.92rem;
  color: var(--text);
  line-height: 1.55;
}
.check-list li i {
  color: var(--blue);
  margin-top: 4px;
  flex-shrink: 0;
  font-size: 0.88rem;
}
.check-list.red-icons li i { color: var(--red); }

/* Assessment Timeline / Stepper */
.assessment-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin: 26px 0;
}
.assessment-step {
  background: var(--white);
  border: 1px solid var(--grey-light);
  border-left: 4px solid var(--blue);
  border-radius: 4px;
  padding: 18px 20px;
  box-shadow: 0 2px 12px rgba(17,29,82,0.06);
}
.assessment-step.step-break { border-left-color: var(--red); }
.step-time {
  display: inline-block;
  background: var(--navy);
  color: var(--white);
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 3px 10px;
  border-radius: 2px;
  margin-bottom: 8px;
}
.assessment-step.step-break .step-time { background: var(--red); }
.assessment-step h4 { font-size: 0.94rem; color: var(--navy); margin-bottom: 4px; }
.assessment-step p { font-size: 0.84rem; margin: 0; }

/* Timetable Tables */
.timetable-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  box-shadow: var(--shadow);
  border-radius: 4px;
  overflow: hidden;
}
.timetable-table th {
  background: var(--navy);
  color: var(--white);
  text-align: left;
  padding: 14px 20px;
  font-size: 0.84rem;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}
.timetable-table td {
  padding: 14px 20px;
  border-bottom: 1px solid var(--grey-light);
  font-size: 0.94rem;
  color: var(--text);
}
.timetable-table tr:last-child td { border-bottom: none; }
.timetable-table tr:nth-child(even) td { background: var(--off-white); }
.time-pill {
  display: inline-block;
  background: rgba(32,168,223,0.14);
  color: var(--navy);
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 3px;
  font-size: 0.86rem;
}

/* Values Strip */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 26px 0;
}
.value-box {
  position: relative;
  background: var(--white);
  padding: 26px 22px;
  border-top: 4px solid var(--red);
  border-radius: 3px;
  box-shadow: var(--shadow);
  text-align: center;
}
.value-box:nth-child(2) { border-top-color: var(--blue); }
.value-box:nth-child(3) { border-top-color: var(--navy); }
.value-box i { font-size: 1.8rem; color: var(--red); margin-bottom: 12px; }
.value-box:nth-child(2) i { color: var(--blue); }
.value-box:nth-child(3) i { color: var(--navy); }
.value-box h4 { color: var(--navy); font-size: 1rem; margin-bottom: 6px; }
.value-box p { font-size: 0.86rem; margin: 0; }

/* Legal Pages Typography */
.legal-content {
  max-width: 920px;
  margin: 0 auto;
  background: var(--white);
  padding: 48px 52px;
  border-radius: 6px;
  box-shadow: var(--shadow);
  border-top: 5px solid var(--navy);
}
.legal-content h2 {
  color: var(--navy);
  font-size: 1.4rem;
  margin: 32px 0 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--grey-light);
}
.legal-content h2:first-child { margin-top: 0; }
.legal-content h3 { color: var(--red); font-size: 1.05rem; margin: 22px 0 8px; }
.legal-content p { margin-bottom: 12px; font-size: 0.94rem; color: var(--text); }
.legal-content ul { list-style: disc; padding-left: 22px; margin: 10px 0 16px; }
.legal-content ul li { font-size: 0.92rem; color: var(--text); margin-bottom: 6px; line-height: 1.6; }
.legal-table {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0 24px;
  font-size: 0.86rem;
}
.legal-table th {
  background: var(--navy);
  color: var(--white);
  padding: 10px 14px;
  text-align: left;
}
.legal-table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--grey-light);
  vertical-align: top;
}
.legal-table tr:nth-child(even) td { background: var(--off-white); }

/* Quick Anchor Pills on subpages */
.subnav-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 26px;
}
.subnav-pills a {
  background: rgba(255,255,255,0.14);
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.28);
  padding: 7px 16px;
  border-radius: 2px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  transition: all var(--transition);
}
.subnav-pills a:hover {
  background: var(--red);
  border-color: var(--red);
}

/* Active nav link */
.nav-link.active { color: var(--red); }

@media (max-width: 900px) {
  .detail-grid-2,
  .detail-grid-3,
  .detail-grid-4,
  .values-grid { grid-template-columns: 1fr; }
  .legal-content { padding: 30px 22px; }
}
