/* =========================================================
   Regency College Kandy
   "Why Choose Us" + Stats + Our Law + "Get in Touch" section
   Palette: navy #172238 / #100b3c, gold #f5a425, white
   ========================================================= */

:root {
  --rc-navy: #172238;
  --rc-navy-deep: #100b3c;
  --rc-gold: #f5a425;
  --rc-gold-dark: #e0901a;
  --rc-white: #ffffff;
  --rc-text-soft: #d5dbea;
  --rc-glass: rgba(255, 255, 255, 0.06);
  --rc-glass-border: rgba(255, 255, 255, 0.14);
  --rc-radius: 18px;
  --rc-gap: clamp(16px, 2.5vw, 28px);
}

/* ---------- 1. Section titles: clear and prominent ---------- */
.section-heading { margin-bottom: clamp(30px, 5vw, 60px); }
.section-heading h2 {
  display: inline-block;
  border: 0 !important;
  padding: 0 0 14px !important;
  color: var(--rc-white) !important;
  font-size: clamp(24px, 3.4vw, 38px) !important;
  font-weight: 800 !important;
  letter-spacing: 0.5px;
  text-transform: none;
  position: relative;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}
.section-heading h2::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 64px;
  height: 4px;
  border-radius: 4px;
  background: var(--rc-gold);
  transform: translateX(-50%);
}
.section-heading h2::before { display: none !important; } /* old thin vertical line */
.section-heading h2 { margin-top: clamp(50px, 7vw, 90px) !important; }

.rc-eyebrow {
  display: inline-block;
  color: var(--rc-gold);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin: 0 0 10px;
}
.rc-title {
  color: var(--rc-white);
  font-size: clamp(28px, 3.6vw, 42px);
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 16px;
}
.rc-title span { color: var(--rc-gold); }

/* ---------- 5. Feature cards ---------- */
.rc-features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--rc-gap);
  margin: clamp(40px, 6vw, 70px) 0 var(--rc-gap);
}
.rc-feature {
  background: var(--rc-glass);
  border: 1px solid var(--rc-glass-border);
  border-radius: var(--rc-radius);
  padding: 28px 22px;
  text-align: center;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}
.rc-feature:hover {
  transform: translateY(-6px);
  border-color: var(--rc-gold);
  background: rgba(255, 255, 255, 0.09);
}
.rc-feature__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: rgba(245, 164, 37, 0.14);
  color: var(--rc-gold);
  font-size: 28px;
  margin-bottom: 16px;
}
.rc-feature h3 {
  color: var(--rc-white);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.35;
  margin: 0 0 8px;
}
.rc-feature p {
  color: var(--rc-text-soft);
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
}

/* ---------- 4. Stats / counter bar ---------- */
.rc-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: linear-gradient(135deg, var(--rc-gold) 0%, #f7b84a 100%);
  border-radius: var(--rc-radius);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.35);
  overflow: hidden;
  margin-bottom: clamp(40px, 6vw, 70px);
}
.rc-stat {
  padding: clamp(20px, 3vw, 32px) 12px;
  text-align: center;
  position: relative;
}
.rc-stat + .rc-stat::before {
  content: "";
  position: absolute;
  left: 0;
  top: 22%;
  height: 56%;
  width: 1px;
  background: rgba(16, 11, 60, 0.2);
}
.rc-stat__num {
  display: block;
  color: var(--rc-navy-deep);
  font-size: clamp(32px, 4.2vw, 50px);
  font-weight: 800;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.rc-stat__label {
  display: block;
  color: var(--rc-navy);
  font-size: clamp(12px, 1.2vw, 14px);
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-top: 8px;
}

/* ---------- Our Law: compact value chips ---------- */
.rc-values { text-align: center; margin-bottom: clamp(40px, 6vw, 70px); }
.rc-values ul {
  list-style: none;
  padding: 0;
  margin: 6px 0 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}
.rc-values li {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--rc-glass);
  border: 1px solid var(--rc-glass-border);
  color: var(--rc-white);
  font-size: 15px;
  font-weight: 600;
  border-radius: 40px;
  padding: 10px 18px;
}
.rc-values li i { color: var(--rc-gold); }

/* ---------- 2 + 3. Get in Touch card ---------- */
.rc-contact {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  align-items: stretch;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--rc-glass-border);
  border-radius: calc(var(--rc-radius) + 6px);
  overflow: hidden;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.35);
}
.rc-contact__media { position: relative; min-height: 320px; }
.rc-contact__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.rc-contact__media::after { /* soft blend into the card */
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 60%, rgba(23, 34, 56, 0.55));
}
.rc-contact__body {
  padding: clamp(28px, 4vw, 52px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.rc-contact__body p {
  color: var(--rc-text-soft);
  font-size: 16px;
  line-height: 1.75;
  margin: 0 0 26px;
}

/* Buttons */
.rc-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 22px; }
.rc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 22px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none !important;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}
.rc-btn:hover { transform: translateY(-2px); }
.rc-btn:focus-visible { outline: 3px solid var(--rc-white); outline-offset: 3px; }
.rc-btn--gold { background: var(--rc-gold); color: var(--rc-navy-deep) !important; box-shadow: 0 8px 20px rgba(245, 164, 37, 0.35); }
.rc-btn--gold:hover { background: var(--rc-gold-dark); }
.rc-btn--light { background: var(--rc-white); color: var(--rc-navy-deep) !important; }
.rc-btn--light:hover { background: #eef1f8; }
.rc-btn--ghost { border: 2px solid rgba(255, 255, 255, 0.5); color: var(--rc-white) !important; }
.rc-btn--ghost:hover { border-color: var(--rc-gold); color: var(--rc-gold) !important; }

/* Helpful links */
.rc-links { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-bottom: 22px; }
.rc-links a {
  color: var(--rc-gold);
  font-weight: 600;
  font-size: 15px;
  border-bottom: 1px solid transparent;
}
.rc-links a:hover { border-bottom-color: var(--rc-gold); color: var(--rc-gold); }

/* Social row */
.rc-social { display: flex; align-items: center; gap: 10px; }
.rc-social span { color: var(--rc-text-soft); font-size: 14px; margin-right: 4px; }
.rc-social a {
  width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: var(--rc-white);
  font-size: 17px;
  transition: background 0.2s ease;
}
.rc-social a:hover { background: var(--rc-gold); color: var(--rc-navy-deep); }

/* ---------- 6. Responsive ---------- */
@media (max-width: 1100px) {
  .rc-features { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .rc-contact { grid-template-columns: 1fr; }
  .rc-contact__media { min-height: 0; aspect-ratio: 16 / 9; }
  .rc-contact__media::after { background: linear-gradient(180deg, transparent 60%, rgba(23, 34, 56, 0.55)); }
}
@media (max-width: 767px) {
  .rc-stats { grid-template-columns: repeat(2, 1fr); }
  .rc-stat:nth-child(3)::before { display: none; }
  .rc-stat:nth-child(n+3) { border-top: 1px solid rgba(16, 11, 60, 0.2); }
}
@media (max-width: 575px) {
  .rc-features { grid-template-columns: 1fr; }
  .rc-feature { display: grid; grid-template-columns: 56px 1fr; gap: 4px 16px; text-align: left; padding: 20px; }
  .rc-feature__icon { width: 56px; height: 56px; font-size: 24px; margin: 0; grid-row: span 2; }
  .rc-cta { flex-direction: column; }
  .rc-btn { width: 100%; }
  .rc-values li { font-size: 14px; }
}

/* Visitors who prefer less motion */
@media (prefers-reduced-motion: reduce) {
  .rc-feature, .rc-btn { transition: none; }
  .rc-feature:hover, .rc-btn:hover { transform: none; }
}

/* ---------- Meet Our Teachers (homepage) ---------- */
.rc-team { margin-top: clamp(50px, 7vw, 90px); text-align: center; }
.rc-team .section-heading h2 { margin-top: 0 !important; }
.rc-team__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--rc-gap);
  text-align: center;
}
.rc-teacher {
  background: var(--rc-glass);
  border: 1px solid var(--rc-glass-border);
  border-radius: var(--rc-radius);
  padding: 18px 18px 22px;
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.rc-teacher:hover { transform: translateY(-6px); border-color: var(--rc-gold); }
.rc-teacher__photo {
  aspect-ratio: 1 / 1;
  border-radius: 14px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  border: 3px solid rgba(245, 164, 37, 0.6);
}
.rc-teacher__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.rc-teacher__photo i { font-size: 64px; color: rgba(255, 255, 255, 0.35); }
.rc-teacher h3 { color: var(--rc-white); font-size: 18px; font-weight: 700; margin: 0 0 4px; line-height: 1.3; }
.rc-teacher__role { color: var(--rc-gold); font-size: 14px; font-weight: 700; margin: 0 0 8px; }
.rc-teacher__qual { color: var(--rc-text-soft); font-size: 13.5px; line-height: 1.6; margin: 0; }
.rc-team__more { margin-top: 30px; }

@media (max-width: 1100px) { .rc-team__grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 767px)  { .rc-team__grid { grid-template-columns: repeat(2, 1fr); gap: 14px; } .rc-teacher { padding: 12px 12px 16px; } .rc-teacher h3 { font-size: 15px; } .rc-teacher__qual { font-size: 12.5px; } }
@media (prefers-reduced-motion: reduce) { .rc-teacher { transition: none; } .rc-teacher:hover { transform: none; } }
