/* ===== GOOGLE FONTS ===== */
@import url("https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700;900&display=swap");

/* ===== CSS VARIABLES ===== */
:root {
  --primary: #1a3fa0;
  --primary-dark: #0d2670;
  --primary-light: #2e55c8;
  --secondary: #c0182a;
  --secondary-light: #e8203a;
  --gold: #ffd166;
  --gold-dark: #e6b800;
  --white: #ffffff;
  --offwhite: #f8f9fc;
  --light-gray: #f1f3f8;
  --gray: #6b7280;
  --charcoal: #1c1c2e;
  --font-heading: "Playfair Display", Georgia, serif;
  --transition: all 0.3s ease;
  --shadow-sm: 0 2px 8px rgba(26, 63, 160, 0.1);
  --shadow-md: 0 4px 20px rgba(26, 63, 160, 0.15);
  --shadow-lg: 0 8px 40px rgba(26, 63, 160, 0.2);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family:
    "Segoe UI",
    system-ui,
    -apple-system,
    sans-serif;
  color: var(--charcoal);
  background: var(--white);
  overflow-x: hidden;
  line-height: 1.7;
}

/* ===== TYPOGRAPHY ===== */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--charcoal);
}

h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
}
h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.5rem);
}
h3 {
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
}

p {
  line-height: 1.8;
  color: var(--gray);
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--secondary);
}

img {
  max-width: 100%;
  height: auto;
}

/* ===== UTILITY CLASSES ===== */
.text-primary-brand {
  color: var(--primary) !important;
}
.text-secondary-brand {
  color: var(--secondary) !important;
}
.text-gold {
  color: var(--gold-dark) !important;
}
.bg-primary-brand {
  background-color: var(--primary) !important;
}
.bg-secondary-brand {
  background-color: var(--secondary) !important;
}
.bg-offwhite {
  background-color: var(--offwhite) !important;
}
.bg-light-gray {
  background-color: var(--light-gray) !important;
}
.font-heading {
  font-family: var(--font-heading) !important;
}
.section-padding {
  padding: 5rem 0;
}
.section-padding-sm {
  padding: 3rem 0;
}

/* Section label above headings */
.section-tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--secondary);
  margin-bottom: 0.6rem;
}

/* Decorative underline for section titles */
.section-title {
  position: relative;
  margin-bottom: 1rem;
}

.section-title::after {
  content: "";
  display: block;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--secondary), var(--gold));
  border-radius: 2px;
  margin-top: 0.75rem;
}

.section-title.text-center::after {
  margin-left: auto;
  margin-right: auto;
}

/* ===== BUTTONS ===== */
.btn-villa-primary {
  background: var(--primary);
  color: var(--white);
  border: 2px solid var(--primary);
  padding: 0.75rem 2rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}

.btn-villa-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-villa-secondary {
  background: var(--secondary);
  color: var(--white);
  border: 2px solid var(--secondary);
  padding: 0.75rem 2rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}

.btn-villa-secondary:hover {
  background: var(--secondary-light);
  border-color: var(--secondary-light);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-villa-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.6);
  padding: 0.75rem 2rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}

.btn-villa-outline:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--white);
  color: var(--white);
}

.btn-whatsapp {
  background: #25d366;
  color: var(--white);
  border: 2px solid #25d366;
  padding: 0.75rem 2rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}

.btn-whatsapp:hover {
  background: #1fb855;
  border-color: #1fb855;
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.35);
}

/* ===== NAVBAR ===== */
#mainNavbar {
  background: var(--primary-dark);
  border-bottom: 3px solid var(--secondary);
  padding: 0;
  transition: var(--transition);
  z-index: 1050;
}

/* Navbar shrink on scroll — JS will add .scrolled class */
#mainNavbar.scrolled {
  box-shadow: var(--shadow-lg);
  padding: 0;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding: 0.6rem 0;
  text-decoration: none;
}

.navbar-logo {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.3);
  flex-shrink: 0;
  transition: var(--transition);
}

#mainNavbar.scrolled .navbar-logo {
  width: 44px;
  height: 44px;
}

.navbar-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.navbar-brand-text .school-name {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.01em;
}

.navbar-brand-text .school-motto {
  font-size: 0.65rem;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 500;
}

/* Nav links */
.navbar-nav .nav-link {
  color: rgba(255, 255, 255, 0.85) !important;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 1.5rem 1rem !important;
  transition: var(--transition);
  position: relative;
}

.navbar-nav .nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 1rem;
  right: 1rem;
  height: 3px;
  background: var(--gold);
  border-radius: 2px 2px 0 0;
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--white) !important;
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
  transform: scaleX(1);
}

/* Navbar toggler (mobile) */
.navbar-toggler {
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 0.4rem 0.65rem;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.85%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* WhatsApp CTA in navbar */
.nav-whatsapp-btn {
  background: #25d366;
  color: var(--white) !important;
  padding: 0.5rem 1.25rem !important;
  border-radius: var(--radius-sm);
  font-weight: 600 !important;
  margin-left: 0.5rem;
  white-space: nowrap;
}

.nav-whatsapp-btn:hover {
  background: #1fb855 !important;
  color: var(--white) !important;
  transform: translateY(-1px);
}

.nav-whatsapp-btn::after {
  display: none !important;
}

/* Mobile nav adjustments */
@media (max-width: 991.98px) {
  .navbar-nav .nav-link {
    padding: 0.75rem 0 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }
  .navbar-nav .nav-link::after {
    display: none;
  }
  .nav-whatsapp-btn {
    margin: 0.75rem 0 0.5rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
  }
  .navbar-collapse {
    padding: 0.5rem 0 1rem;
  }
}

/* ===== TOP INFO BAR (above navbar) ===== */
.top-info-bar {
  background: var(--primary);
  padding: 0.4rem 0;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.85);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.top-info-bar a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  transition: var(--transition);
}

.top-info-bar a:hover {
  color: var(--gold);
}

.top-info-bar .info-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.top-info-bar .info-item i {
  color: var(--gold);
  font-size: 0.75rem;
}

/* ===== HERO SECTION ===== */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-align: center;
  padding-top: 0;
}

/* Force content to be visible and centered */
.hero-section .hero-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 6rem 1.5rem 3rem;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url("../assets/hero.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
  transform: scale(1.05);
  transition: transform 8s ease;
}

.hero-section:hover .hero-bg {
  transform: scale(1);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(13, 38, 112, 0.88) 0%,
    rgba(13, 38, 112, 0.78) 50%,
    rgba(192, 24, 42, 0.55) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  flex: 1;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5rem 1rem 3rem;
  opacity: 1 !important;
  transform: none !important;
}

.hero-content .container {
  max-width: 820px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 209, 102, 0.15);
  border: 1px solid rgba(255, 209, 102, 0.4);
  color: var(--gold);
  padding: 0.4rem 1.2rem;
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.hero-content h1 {
  color: var(--white);
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 1.5rem;
}

.hero-content h1 em {
  color: var(--gold);
  font-style: normal;
}

.hero-content .lead {
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  line-height: 1.85;
  margin-bottom: 2.5rem;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

/* Trust bar inside hero */
.hero-trust-bar {
  position: relative;
  z-index: 2;
  width: 100%;
  backdrop-filter: blur(8px);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding: 1rem 1.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 2rem;
  margin-top: auto;
}

.hero-trust-bar .trust-item {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.82rem;
  font-weight: 500;
}

.hero-trust-bar .trust-item i {
  color: var(--gold);
  font-size: 0.85rem;
}

/* ===== STATS STRIP ===== */
.stats-strip {
  background: var(--primary-dark);
  padding: 2.5rem 0;
}

.stat-item {
  text-align: center;
  padding: 0.5rem 1.5rem;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
}

.stat-item:last-child {
  border-right: none;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 900;
  color: var(--gold);
  line-height: 1;
  display: block;
}

.stat-label {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 0.4rem;
  line-height: 1.4;
}

@media (max-width: 767.98px) {
  .stat-item {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem;
  }
  .stat-item:last-child {
    border-bottom: none;
  }
}

/* ===== CARDS ===== */
.villa-card {
  background: var(--white);
  border: 1px solid rgba(26, 63, 160, 0.08);
  border-radius: var(--radius-md);
  padding: 2rem;
  height: 100%;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.villa-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(26, 63, 160, 0.15);
}

.villa-card .card-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
  background: var(--light-gray);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  font-size: 1.5rem;
  color: var(--primary);
  transition: var(--transition);
}

.villa-card:hover .card-icon {
  background: var(--primary);
  color: var(--white);
}

/* ===== FOOTER ===== */
.main-footer {
  background: var(--primary-dark);
  color: rgba(255, 255, 255, 0.8);
  padding: 4rem 0 0;
}

.footer-brand .school-name {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--white);
  font-weight: 700;
}

.footer-brand .school-motto {
  font-size: 0.78rem;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.875rem;
  line-height: 1.8;
  margin-top: 0.75rem;
}

.footer-heading {
  font-family: var(--font-heading);
  font-size: 1rem;
  color: var(--white);
  font-weight: 700;
  margin-bottom: 1.25rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--secondary);
  display: inline-block;
}

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

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

.footer-links li a {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.875rem;
  text-decoration: none;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.footer-links li a:hover {
  color: var(--gold);
  padding-left: 4px;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.875rem;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.65);
}

.footer-contact-item i {
  color: var(--gold);
  margin-top: 3px;
  flex-shrink: 0;
  font-size: 0.9rem;
}

.footer-contact-item a {
  color: rgba(255, 255, 255, 0.65);
}

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

.social-links {
  display: flex;
  gap: 0.6rem;
  margin-top: 1.25rem;
  flex-wrap: wrap;
}

.social-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.85rem;
  text-decoration: none;
  transition: var(--transition);
}

.social-btn:hover {
  background: var(--secondary);
  border-color: var(--secondary);
  color: var(--white);
  transform: translateY(-2px);
}

.footer-bottom {
  background: rgba(0, 0, 0, 0.2);
  padding: 1.25rem 0;
  margin-top: 3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-bottom p {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.4);
  margin: 0;
}

/* ===== BACK TO TOP BUTTON ===== */
#backToTop {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--secondary);
  color: var(--white);
  border: none;
  font-size: 1rem;
  cursor: pointer;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
  box-shadow: var(--shadow-md);
}

#backToTop.visible {
  opacity: 1;
  pointer-events: all;
}

#backToTop:hover {
  background: var(--primary);
  transform: translateY(-3px);
}

/* ===== ANIMATIONS ===== */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}

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

.fade-up:nth-child(2) {
  transition-delay: 0.1s;
}
.fade-up:nth-child(3) {
  transition-delay: 0.2s;
}
.fade-up:nth-child(4) {
  transition-delay: 0.3s;
}
.fade-up:nth-child(5) {
  transition-delay: 0.4s;
}
.fade-up:nth-child(6) {
  transition-delay: 0.5s;
}

/* ===== RESPONSIVE HELPERS ===== */
@media (max-width: 575.98px) {
  .section-padding {
    padding: 3.5rem 0;
  }
  .hero-content h1 {
    font-size: 2rem;
  }
  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }
  .hero-buttons a,
  .hero-buttons button {
    width: 100%;
    justify-content: center;
  }
  .top-info-bar .d-none-xs {
    display: none;
  }
}

/* ===== WHY CHOOSE US CARDS ===== */
.why-card {
  border-left: 4px solid var(--primary) !important;
  border-top: 1px solid rgba(26, 63, 160, 0.15) !important;
  border-right: 1px solid rgba(26, 63, 160, 0.15) !important;
  border-bottom: 1px solid rgba(26, 63, 160, 0.15) !important;
  border-radius: 0 var(--radius-md) var(--radius-md) 0 !important;
  transition: var(--transition);
}

.why-card:hover {
  border-left-color: var(--secondary) !important;
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.why-card .card-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
  background: var(--light-gray);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  font-size: 1.4rem;
  color: var(--primary);
  transition: var(--transition);
}

.why-card:hover .card-icon {
  background: var(--primary);
  color: var(--white);
}

.why-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: 0.75rem;
}

.why-card p {
  font-size: 0.9rem;
  color: var(--gray);
  line-height: 1.8;
  margin: 0;
}

/* ===== WHY CHOOSE US — PHOTO BACKGROUND ===== */
#why-us {
  position: relative;
  overflow: hidden;
}

#why-us .why-bg {
  position: absolute;
  inset: 0;
  background-image: url("../assets/campus.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  z-index: 0;
}

#why-us .why-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.55) 0%,
    rgba(248, 249, 252, 0.5) 100%
  );
  z-index: 1;
}

#why-us .container {
  position: relative;
  z-index: 2;
}

/* Keep cards crisp and white on top of the photo bg */
.why-card {
  background: rgba(255, 255, 255, 0.96) !important;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12) !important;
}

/* ===== PLE RESULTS SECTION ===== */

/* Big result cards */
.result-big-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 2rem 1rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(26, 63, 160, 0.1);
  transition: var(--transition);
  height: 100%;
}

.result-big-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.result-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-size: 1.3rem;
  color: var(--white);
}

.result-number {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 900;
  line-height: 1;
  margin-bottom: 0.4rem;
}

.result-label {
  font-size: 1rem;
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: 0.2rem;
}

.result-sublabel {
  font-size: 0.78rem;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Results table wrapper */
.results-table-wrapper {
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  border: 1px solid rgba(26, 63, 160, 0.1);
}

.results-table-header {
  background: var(--primary-dark);
  color: var(--white);
  padding: 1rem 1.5rem;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

/* Table styles */
.results-table thead th {
  background: var(--primary);
  color: var(--white);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  padding: 0.875rem 1.25rem;
  border: none;
}

.results-table tbody td {
  padding: 0.75rem 1.25rem;
  font-size: 0.9rem;
  vertical-align: middle;
  border-bottom: 1px solid rgba(26, 63, 160, 0.06);
  color: var(--charcoal);
}

/* Division I rows — subtle blue tint */
.div-one-row {
  background: rgba(26, 63, 160, 0.02);
}

.div-one-row:hover {
  background: rgba(26, 63, 160, 0.06) !important;
}

/* Division II rows — subtle red tint */
.div-two-row {
  background: rgba(192, 24, 42, 0.02);
}

.div-two-row:hover {
  background: rgba(192, 24, 42, 0.06) !important;
}

/* Total row — homepage only */
#ple-results .results-total-row td {
    background: var(--light-gray);
    font-weight: 700;
    font-size: 0.95rem;
    padding: 1rem 1.25rem !important;
    border-top: 2px solid rgba(26, 63, 160, 0.2) !important;
}


/* Result number badges */
.result-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-weight: 700;
  font-size: 0.875rem;
}

.badge-gold {
  background: rgba(230, 184, 0, 0.15);
  color: var(--gold-dark);
}
.badge-blue {
  background: rgba(26, 63, 160, 0.12);
  color: var(--primary);
}
.badge-red {
  background: rgba(192, 24, 42, 0.12);
  color: var(--secondary);
}
.badge-dark {
  background: var(--charcoal);
  color: var(--white);
}

/* Division badges */
.div-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.div-one {
  background: rgba(26, 63, 160, 0.12);
  color: var(--primary);
}
.div-two {
  background: rgba(192, 24, 42, 0.12);
  color: var(--secondary);
}

/* Performance bar */
.perf-bar {
  background: rgba(0, 0, 0, 0.08);
  border-radius: 100px;
  height: 8px;
  width: 100%;
  min-width: 80px;
  overflow: hidden;
}

.perf-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  border-radius: 100px;
  transition: width 1s ease;
}

.perf-fill.perf-red {
  background: linear-gradient(90deg, var(--secondary), var(--secondary-light));
}

/* Bottom note */
.results-note {
  font-size: 0.82rem;
  color: var(--gray);
  font-style: italic;
}
/* ===== FAITH & CATHOLIC VALUES SECTION ===== */
.faith-values-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.faith-values-list li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.faith-value-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--primary);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
  margin-top: 2px;
  transition: var(--transition);
}

.faith-values-list li:hover .faith-value-icon {
  background: var(--secondary);
}

.faith-values-list li strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: 0.2rem;
}

.faith-values-list li p {
  font-size: 0.85rem;
  color: var(--gray);
  margin: 0;
  line-height: 1.6;
}

/* ===== FAITH PHOTO COLUMN ===== */
.faith-photo-col {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 600px;
  display: flex;
  align-items: stretch;
  justify-content: center;
  padding: 1.5rem;
}

.faith-photo-bg {
  position: absolute;
  inset: 0;
  background-image: url("../assets/faith.jpg");
  background-size: cover;
  background-position: center top;
  z-index: 0;
}

.faith-photo-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(13, 38, 112, 0.75) 0%,
    rgba(13, 38, 112, 0.65) 100%
  );
  z-index: 1;
}

/* ===== FAITH LEGACY CARD ===== */
.faith-legacy-card {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.97);
  border-radius: var(--radius-md);
  border-top: 4px solid var(--gold);
  box-shadow: var(--shadow-lg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.faith-legacy-top {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--light-gray);
}

.faith-logo {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(26, 63, 160, 0.15);
  flex-shrink: 0;
}

.faith-legacy-top h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: 0.2rem;
  line-height: 1.3;
}

.faith-legacy-top p {
  font-size: 0.75rem;
  color: var(--gray);
  margin: 0;
}

.faith-quote {
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-style: italic;
  color: var(--charcoal);
  line-height: 1.75;
  border-left: 4px solid var(--secondary);
  padding-left: 1rem;
  margin: 0 0 1.25rem;
  flex: 1;
}

/* Mini stats */
.faith-mini-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--light-gray);
  margin-top: auto;
}

.faith-mini-stat {
  text-align: center;
}

.faith-stat-number {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--primary);
  line-height: 1;
}

.faith-stat-label {
  display: block;
  font-size: 0.68rem;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-top: 0.3rem;
  line-height: 1.3;
}

/* ===== FORCE FADE-UP VISIBLE ===== */
.fade-up {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

/* ===== TESTIMONIALS SECTION ===== */
.testi-card {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 2rem;
    height: 100%;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(26, 63, 160, 0.08);
    border-bottom: 4px solid var(--primary);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: var(--transition);
    position: relative;
}

.testi-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

/* Featured middle card */
.testi-featured {
    border-bottom: 4px solid var(--secondary);
    background: var(--primary-dark);
}

.testi-featured .testi-text {
    color: rgba(255, 255, 255, 0.9) !important;
}

.testi-featured .testi-info strong {
    color: var(--white) !important;
}

.testi-featured .testi-info span {
    color: rgba(255, 255, 255, 0.65) !important;
}

.testi-featured .testi-quote-icon {
    color: var(--gold) !important;
}

.testi-featured .testi-stars i {
    color: var(--gold) !important;
}

/* Quote icon */
.testi-quote-icon {
    font-size: 1.75rem;
    color: rgba(26, 63, 160, 0.15);
    line-height: 1;
}

/* Stars */
.testi-stars {
    display: flex;
    gap: 0.2rem;
}

.testi-stars i {
    color: var(--gold-dark);
    font-size: 0.85rem;
}

/* Quote text */
.testi-text {
    font-size: 0.9rem;
    color: var(--gray);
    line-height: 1.85;
    font-style: italic;
    flex: 1;
    margin: 0;
}

/* Author row */
.testi-author {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(26, 63, 160, 0.08);
    margin-top: auto;
}

/* Avatar circle with initials */
.testi-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.testi-featured .testi-author {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.testi-featured .testi-avatar {
    background: var(--secondary);
}

.testi-info strong {
    display: block;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--charcoal);
    margin-bottom: 0.15rem;
}

.testi-info span {
    font-size: 0.78rem;
    color: var(--gray);
}

/* Bottom note */
.testi-note {
    font-size: 0.85rem;
    color: var(--gray);
    margin: 0;
}

/* ===== ENROLLMENT CTA SECTION ===== */
.enroll-section {
    background: linear-gradient(
        135deg,
        var(--primary-dark) 0%,
        var(--primary) 100%
    );
}

.enroll-perks {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.enroll-perks li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.enroll-perk-icon {
    width: 42px;
    height: 42px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.enroll-perks li strong {
    display: block;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 0.2rem;
}

.enroll-perks li p {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.65);
    margin: 0;
    line-height: 1.6;
}

.enroll-direct-contact {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}

.enroll-phone-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--gold);
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    transition: var(--transition);
}

.enroll-phone-link:hover {
    color: var(--white);
}

/* Form Card */
.enroll-form-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-lg);
}

.enroll-form-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--charcoal);
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--light-gray);
}

.enroll-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--charcoal);
    margin-bottom: 0.4rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.required { color: var(--secondary); }

.input-icon-wrap {
    position: relative;
}

.input-icon-wrap i {
    position: absolute;
    left: 0.875rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray);
    font-size: 0.85rem;
    pointer-events: none;
}

.enroll-input {
    width: 100%;
    padding: 0.7rem 0.875rem 0.7rem 2.5rem;
    border: 1.5px solid #e5e7eb;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.9rem;
    color: var(--charcoal);
    background: var(--white);
    outline: none;
    transition: border-color 0.2s;
    appearance: none;
}

.enroll-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(26, 63, 160, 0.08);
}

.enroll-textarea {
    padding-top: 0.7rem !important;
    resize: vertical;
    min-height: 90px;
}

.input-icon-wrap:has(.enroll-textarea) i {
    top: 1rem;
    transform: none;
}

.enroll-submit-btn {
    width: 100%;
    background: var(--primary);
    color: var(--white);
    border: none;
    padding: 0.9rem;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.enroll-submit-btn:hover:not(:disabled) {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.enroll-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Alert messages */
.enroll-alert {
    padding: 0.875rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.enroll-alert-success {
    background: rgba(26, 122, 74, 0.1);
    border: 1px solid rgba(26, 122, 74, 0.3);
    color: #1a7a4a;
}

.enroll-alert-error {
    background: rgba(192, 24, 42, 0.08);
    border: 1px solid rgba(192, 24, 42, 0.3);
    color: var(--secondary);
}

.enroll-disclaimer {
    font-size: 0.75rem;
    color: var(--gray);
    text-align: center;
    margin: 0;
}

/* ===================================================
   ABOUT PAGE STYLES
=================================================== */

/* Page Hero (reusable for all inner pages) */
.page-hero {
    position: relative;
    background: linear-gradient(
        135deg,
        var(--primary-dark) 0%,
        var(--primary) 100%
    );
    padding: 7rem 0 4rem;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="40" fill="rgba(255,255,255,0.03)"/><circle cx="80" cy="80" r="60" fill="rgba(255,255,255,0.02)"/></svg>');
    background-size: cover;
}

.page-hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(13, 38, 112, 0.3);
}

/* Breadcrumb */
.page-breadcrumb {
    position: relative;
    z-index: 2;
    padding: 1rem 0 0;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.6);
    margin-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.page-breadcrumb a {
    color: rgba(255,255,255,0.65);
    text-decoration: none;
    transition: var(--transition);
}

.page-breadcrumb a:hover { color: var(--gold); }

.page-breadcrumb i {
    font-size: 0.6rem;
    margin: 0 0.5rem;
    color: rgba(255,255,255,0.4);
}

.page-breadcrumb span { color: var(--gold); }

/* ===== ABOUT IMAGE ===== */
.about-img-wrap {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: visible;
}

.about-main-img {
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    display: block;
    object-fit: cover;
    height: 480px;
}

.about-img-badge {
    position: absolute;
    bottom: -1rem;
    right: -1rem;
    background: var(--secondary);
    color: white;
    border-radius: var(--radius-md);
    padding: 1rem 1.25rem;
    text-align: center;
    box-shadow: var(--shadow-md);
}

.badge-year {
    display: block;
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 900;
    line-height: 1;
}

.badge-text {
    display: block;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    opacity: 0.9;
    margin-top: 0.2rem;
}

/* ===== TIMELINE ===== */
.about-timeline {
    position: relative;
    padding-left: 1.5rem;
    margin-top: 1.5rem;
}

.about-timeline::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 8px;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--primary), var(--light-gray));
}

.timeline-item {
    position: relative;
    margin-bottom: 1.25rem;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.timeline-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--white);
    border: 3px solid var(--primary);
    flex-shrink: 0;
    margin-top: 2px;
    position: absolute;
    left: -1.5rem;
    top: 2px;
    transition: var(--transition);
}

.timeline-dot.active {
    background: var(--secondary);
    border-color: var(--secondary);
    box-shadow: 0 0 0 4px rgba(192,24,42,0.15);
}

.timeline-content strong {
    display: block;
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.2rem;
}

.timeline-content p {
    font-size: 0.82rem;
    color: var(--gray);
    margin: 0;
    line-height: 1.6;
}

/* ===== MISSION & VISION CARDS ===== */
.mv-card {
    border-radius: var(--radius-lg);
    padding: 2.5rem 2rem;
    height: 100%;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.mv-card:hover { transform: translateY(-5px); }

.mission-card {
    background: var(--primary);
    color: white;
}

.vision-card {
    background: var(--secondary);
    color: white;
}

.mv-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-sm);
    background: rgba(255,255,255,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: white;
    margin-bottom: 1.25rem;
}

.mv-card h3 {
    font-size: 1.3rem;
    color: white;
    margin-bottom: 1rem;
}

.mv-card p {
    color: rgba(255,255,255,0.88);
    font-size: 0.9rem;
    line-height: 1.85;
    margin: 0;
}

.mv-footer {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255,255,255,0.2);
    font-size: 0.78rem;
    color: rgba(255,255,255,0.7);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* ===== CORE VALUES ===== */
.value-card {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 2rem;
    border: 1px solid rgba(26,63,160,0.08);
    box-shadow: var(--shadow-sm);
    height: 100%;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.value-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.value-number {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 900;
    color: rgba(26,63,160,0.06);
    position: absolute;
    top: 0.5rem;
    right: 1rem;
    line-height: 1;
}

.value-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    background: var(--light-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--primary);
    margin-bottom: 1rem;
    transition: var(--transition);
}

.value-card:hover .value-icon {
    background: var(--primary);
    color: white;
}

.value-card h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--charcoal);
    margin-bottom: 0.5rem;
}

.value-card p {
    font-size: 0.85rem;
    color: var(--gray);
    line-height: 1.7;
    margin: 0;
}

/* ===== HEAD TEACHER CARD ===== */
.headteacher-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(26,63,160,0.08);
    border-top: 5px solid var(--primary);
}

.ht-photo-wrap {
    position: relative;
    display: inline-block;
}

.ht-photo {
    width: 220px;
    height: 260px;
    object-fit: cover;
    object-position: top;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    border: 4px solid var(--white);
    outline: 3px solid var(--primary);
}

.ht-name-badge {
    background: var(--primary);
    color: white;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 0.4rem 0.875rem;
    border-radius: 100px;
    margin-top: 0.875rem;
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.ht-content { padding-left: 1rem; }

.ht-name {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 900;
    color: var(--charcoal);
    margin-bottom: 0.3rem;
}

.ht-title {
    font-size: 0.875rem;
    color: var(--gray);
    margin-bottom: 1.25rem;
    font-weight: 500;
}

.ht-quote {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-style: italic;
    color: var(--charcoal);
    border-left: 4px solid var(--secondary);
    padding-left: 1rem;
    margin: 0 0 1.25rem;
    line-height: 1.75;
}

.ht-bio {
    font-size: 0.875rem;
    color: var(--gray);
    line-height: 1.8;
    margin-bottom: 1.25rem;
}

.ht-stats {
    display: flex;
    gap: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--light-gray);
}

.ht-stat { text-align: center; }

.ht-stat-num {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 900;
    color: var(--primary);
    line-height: 1;
}

.ht-stat-label {
    display: block;
    font-size: 0.72rem;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-top: 0.2rem;
}

/* ===== FACILITIES ===== */
.facility-card {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 2rem;
    border: 1px solid rgba(26,63,160,0.08);
    box-shadow: var(--shadow-sm);
    height: 100%;
    transition: var(--transition);
    border-bottom: 4px solid transparent;
}

.facility-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-bottom-color: var(--primary);
}

.facility-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-sm);
    background: var(--light-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: var(--primary);
    margin-bottom: 1rem;
    transition: var(--transition);
}

.facility-card:hover .facility-icon {
    background: var(--primary);
    color: white;
}

.facility-card h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--charcoal);
    margin-bottom: 0.5rem;
}

.facility-card p {
    font-size: 0.85rem;
    color: var(--gray);
    line-height: 1.7;
    margin: 0;
}

/* Responsive about page */
@media (max-width: 767.98px) {
    .ht-content { padding-left: 0; }
    .ht-photo { width: 160px; height: 190px; }
    .about-main-img { height: 300px; }
    .about-img-badge { bottom: -0.5rem; right: -0.5rem; }
}

/* ===================================================
   RESULTS PAGE STYLES
=================================================== */

/* Year selector tabs */
.results-year-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.year-tab {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 1.1rem;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 600;
    color: rgba(255,255,255,0.65);
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    text-decoration: none;
    transition: var(--transition);
}

.year-tab:hover {
    color: white;
    background: rgba(255,255,255,0.15);
}

.year-tab.active {
    background: var(--gold);
    color: var(--charcoal);
    border-color: var(--gold);
    font-weight: 700;
}

.year-tab-latest {
    background: var(--secondary);
    color: white;
    font-size: 0.6rem;
    padding: 0.1rem 0.4rem;
    border-radius: 100px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Aggregate bar chart */
.agg-chart-wrap {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(26,63,160,0.08);
}

.agg-chart-row {
    display: grid;
    grid-template-columns: 70px 1fr 40px 110px;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.6rem;
}

.agg-chart-label {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--charcoal);
    white-space: nowrap;
}

.agg-chart-bar-wrap {
    height: 20px;
    background: var(--light-gray);
    border-radius: 100px;
    overflow: hidden;
}

.agg-chart-bar {
    height: 100%;
    border-radius: 100px;
    transition: width 1s ease;
}

.bar-div1 {
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
}

.bar-div2 {
    background: linear-gradient(90deg, var(--secondary), var(--secondary-light));
}

.agg-chart-count {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--charcoal);
    text-align: center;
}

.agg-chart-div {
    text-align: right;
}

/* Active year row in comparison table */
.active-year-row {
    background: rgba(26,63,160,0.04) !important;
}

.active-year-row td {
    border-left: 3px solid var(--primary);
}

@media (max-width: 575.98px) {
    .agg-chart-row {
        grid-template-columns: 60px 1fr 30px;
    }
    .agg-chart-div { display: none; }
}


/* ===== PERFORMANCE CIRCLES ===== */
.perf-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    font-weight: 700;
    font-size: 0.875rem;
    flex-shrink: 0;
}

.perf-circle-blue {
    background: rgba(26,63,160,0.10);
    color: var(--primary);
}

.perf-circle-red {
    background: rgba(192,24,42,0.10);
    color: var(--secondary);
}

.perf-circle-gray {
    background: rgba(107,114,128,0.10);
    color: var(--gray);
}

/* ===== RESULTS PAGINATION ===== */
.results-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1.25rem;
    border-top: 1px solid rgba(26,63,160,0.08);
    flex-wrap: wrap;
}

.page-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.45rem 1rem;
    border-radius: 6px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--gray);
    background: var(--light);
    border: 1px solid var(--border);
    text-decoration: none;
    transition: var(--transition);
}

.page-btn:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.page-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    pointer-events: none;
}

/* ===== ALL TIME FOOTER ROW FIX ===== */
/* ===== RESULTS TABLE TFOOT — ALL TIME ROW ===== */
.results-table tfoot tr {
    background: var(--primary-dark) !important;
}

.results-table tfoot tr td {
    background: var(--primary-dark) !important;
    color: white !important;
    border-color: rgba(255,255,255,0.1) !important;
    border-top: 2px solid rgba(255,255,255,0.15) !important;
    padding: 1rem 1.25rem !important;
}

.results-table tfoot td strong {
    color: var(--gold) !important;
    font-size: 1rem !important;
}

.results-table tfoot td span {
    color: rgba(255,255,255,0.7) !important;
}

.results-table tfoot .perf-circle {
    background: rgba(255,209,102,0.15) !important;
    color: var(--gold) !important;
    border: 1px solid rgba(255,209,102,0.3) !important;
}

.results-table tfoot .year-tab-latest {
    opacity: 0.7;
}

/* Also fix the homepage results total row — keep it light gray */
#ple-results .results-total-row td {
    background: var(--light-gray) !important;
    color: var(--charcoal) !important;
}

/* Fix page-btn border variable */
.page-btn {
    border: 1px solid #e5e7eb !important;
}


/* ===================================================
   GALLERY PAGE STYLES
=================================================== */

/* Hero stats */
.gallery-hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem;
}

.gallery-hero-stat span {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 900;
    color: var(--gold);
    line-height: 1;
}

.gallery-hero-stat small {
    display: block;
    font-size: 0.72rem;
    color: rgba(255,255,255,0.6);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-top: 0.2rem;
}

.gallery-hero-divider {
    width: 1px;
    height: 36px;
    background: rgba(255,255,255,0.2);
}

/* Count badge */
.gallery-count-badge {
    display: inline-block;
    background: rgba(26,63,160,0.08);
    border: 1px solid rgba(26,63,160,0.15);
    color: var(--primary);
    font-size: 0.82rem;
    font-weight: 600;
    padding: 0.4rem 1rem;
    border-radius: 100px;
    margin-top: 0.75rem;
}

/* ===== MASONRY GRID ===== */
.gallery-masonry {
    columns: 4;
    column-gap: 1rem;
}

.gallery-masonry-item {
    break-inside: avoid;
    margin-bottom: 1rem;
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
    cursor: pointer;
    display: block;
}

.gallery-masonry-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.4s ease;
}

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

/* Hover overlay */
.gallery-item-hover {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(13,38,112,0.85) 0%,
        rgba(13,38,112,0.3) 50%,
        transparent 100%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: flex-end;
    padding: 1rem;
}

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

.gallery-item-hover-content {
    color: white;
    width: 100%;
}

.gallery-item-hover-content i {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.5rem;
    color: white;
    opacity: 0.9;
    background: rgba(255,255,255,0.15);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}

.gallery-item-hover-content p {
    font-size: 0.85rem;
    font-weight: 600;
    color: white;
    margin: 0 0 0.2rem;
    line-height: 1.3;
}

.gallery-item-hover-content span {
    font-size: 0.72rem;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 600;
}

/* Responsive columns */
@media (max-width: 1199.98px) {
    .gallery-masonry { columns: 3; }
}

@media (max-width: 767.98px) {
    .gallery-masonry { columns: 2; }
}

@media (max-width: 479.98px) {
    .gallery-masonry { columns: 1; }
}

/* Empty state */
.gallery-empty {
    padding: 5rem 2rem;
    text-align: center;
    color: var(--gray);
}

.gallery-empty i {
    font-size: 4rem;
    opacity: 0.2;
    display: block;
    margin-bottom: 1.5rem;
    color: var(--primary);
}

.gallery-empty h3 {
    font-size: 1.4rem;
    color: var(--charcoal);
    margin-bottom: 0.75rem;
}

.gallery-empty p {
    font-size: 0.9rem;
    max-width: 400px;
    margin: 0 auto;
}

/* ===== GALLERY PAGINATION ===== */
.gallery-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.gallery-page-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.5rem 1.1rem;
    border-radius: 7px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gray);
    background: var(--white);
    border: 1px solid #e5e7eb;
    text-decoration: none;
    transition: var(--transition);
}

.gallery-page-btn:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.gallery-page-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    pointer-events: none;
}

/* ===== LIGHTBOX ===== */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.95);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.lightbox.active {
    opacity: 1;
    pointer-events: all;
}

.lightbox-inner {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 5rem;
}

/* Close button */
.lightbox-close {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: white;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    z-index: 2;
}

.lightbox-close:hover {
    background: var(--secondary);
    border-color: var(--secondary);
}

/* Nav buttons */
.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: white;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    z-index: 2;
}

.lightbox-nav:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: translateY(-50%) scale(1.05);
}

.lightbox-prev { left: 1.25rem; }
.lightbox-next { right: 1.25rem; }

/* Image */
.lightbox-img-wrap {
    position: relative;
    max-width: 90vw;
    max-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

#lightboxImg {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: var(--radius-md);
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    transition: opacity 0.25s ease;
    display: block;
}

/* Loader */
.lightbox-loader {
    position: absolute;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
}

/* Caption */
.lightbox-caption {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    z-index: 2;
}

.lightbox-caption-title {
    color: white;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.2rem;
}

.lightbox-caption-cat {
    color: var(--gold);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.lightbox-caption-counter {
    color: rgba(255,255,255,0.5);
    font-size: 0.75rem;
}

/* Mobile lightbox */
@media (max-width: 767.98px) {
    .lightbox-inner { padding: 3.5rem 1rem 4rem; }
    .lightbox-prev  { left: 0.5rem; }
    .lightbox-next  { right: 0.5rem; }
    .lightbox-nav   { width: 38px; height: 38px; font-size: 0.85rem; }
}


/* ===================================================
   ENROLL PAGE STYLES
=================================================== */

/* Info Cards */
.enroll-info-card {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    border: 1px solid rgba(26,63,160,0.08);
    box-shadow: var(--shadow-sm);
}

.enroll-info-title {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    color: var(--charcoal);
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--light-gray);
}

/* Benefits list */
.enroll-benefits {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.enroll-benefits li {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    font-size: 0.875rem;
    color: var(--gray);
    line-height: 1.5;
}

.enroll-benefits li i {
    color: #1a7a4a;
    margin-top: 2px;
    flex-shrink: 0;
    font-size: 0.9rem;
}

.enroll-benefits li strong { color: var(--charcoal); }

/* Fee options */
.fee-options {
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
}

.fee-option {
    display: flex;
    align-items: flex-start;
    gap: 0.875rem;
    padding: 0.875rem;
    background: var(--light-gray);
    border-radius: var(--radius-sm);
}

.fee-option-icon {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.fee-option strong {
    display: block;
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--charcoal);
    margin-bottom: 0.15rem;
}

.fee-option p {
    font-size: 0.78rem;
    color: var(--gray);
    margin: 0;
    line-height: 1.4;
}

/* Term dates */
.term-dates {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.term-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.term-badge {
    padding: 0.3rem 0.875rem;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 700;
    white-space: nowrap;
    flex-shrink: 0;
}

.term-1 { background: rgba(26,63,160,0.1); color: var(--primary); }
.term-2 { background: rgba(230,184,0,0.15); color: var(--gold-dark); }
.term-3 { background: rgba(192,24,42,0.1); color: var(--secondary); }

.term-info strong {
    display: block;
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--charcoal);
}

.term-info p {
    font-size: 0.78rem;
    color: var(--gray);
    margin: 0;
}

/* Visit steps */
.visit-steps {
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
}

.visit-step {
    display: flex;
    align-items: flex-start;
    gap: 0.875rem;
}

.visit-step-num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    flex-shrink: 0;
}

.visit-step p {
    font-size: 0.875rem;
    color: var(--gray);
    margin: 0;
    line-height: 1.6;
}

.visit-step a {
    color: var(--primary);
    font-weight: 600;
}

/* ===== STEPPED FORM CARD ===== */
.stepped-form-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(26,63,160,0.08);
    overflow: hidden;
    position: sticky;
    top: 80px;
}

.stepped-form-header {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    padding: 1.5rem 2rem;
    color: white;
}

.stepped-form-header h3 {
    font-size: 1.15rem;
    color: white;
    margin-bottom: 0.25rem;
}

.stepped-form-header p {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.75);
    margin: 0;
}

/* Step indicators */
.step-indicators {
    display: flex;
    align-items: center;
    padding: 1.25rem 2rem;
    background: var(--light-gray);
    border-bottom: 1px solid var(--border, #e5e7eb);
}

.step-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    flex: 1;
}

.step-ind-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--white);
    border: 2px solid #d1d5db;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--gray);
    transition: var(--transition);
}

.step-ind-label {
    font-size: 0.7rem;
    color: var(--gray);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-align: center;
    transition: var(--transition);
}

.step-indicator.active .step-ind-circle {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.step-indicator.active .step-ind-label {
    color: var(--primary);
}

.step-indicator.completed .step-ind-circle {
    background: #1a7a4a;
    border-color: #1a7a4a;
    color: white;
}

.step-indicator.completed .step-ind-circle::before {
    content: '✓';
}

.step-indicator.completed .step-ind-circle {
    font-size: 0;
}

.step-indicator.completed .step-ind-circle::before {
    font-size: 0.875rem;
}

.step-connector {
    flex: 1;
    height: 2px;
    background: #d1d5db;
    margin: 0 0.5rem;
    margin-bottom: 1.5rem;
    transition: var(--transition);
    max-width: 60px;
}

/* Form steps */
.form-step {
    display: none;
    padding: 1.75rem 2rem;
}

.form-step.active { display: block; }

.step-title {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    color: var(--charcoal);
    margin-bottom: 1.5rem;
    padding-bottom: 0.875rem;
    border-bottom: 2px solid var(--light-gray);
}

.step-title i {
    color: var(--primary);
    font-size: 1rem;
}

/* Step actions */
.step-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1.75rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--light-gray);
}

.step-btn-next {
    background: var(--primary);
    color: white;
    border: none;
    padding: 0.75rem 1.75rem;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
}

.step-btn-next:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.step-btn-back {
    background: transparent;
    color: var(--gray);
    border: 1px solid #d1d5db;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
}

.step-btn-back:hover {
    background: var(--light-gray);
    color: var(--charcoal);
}

.step-btn-submit {
    background: var(--secondary);
    color: white;
    border: none;
    padding: 0.875rem 2rem;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
}

.step-btn-submit:hover:not(:disabled) {
    background: var(--secondary-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.step-btn-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Boarding options */
.boarding-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.boarding-option { cursor: pointer; }

.boarding-option input[type="radio"] { display: none; }

.boarding-card {
    border: 2px solid #e5e7eb;
    border-radius: var(--radius-md);
    padding: 1.25rem;
    text-align: center;
    transition: var(--transition);
    background: var(--white);
}

.boarding-card i {
    font-size: 1.5rem;
    color: var(--gray);
    display: block;
    margin-bottom: 0.5rem;
    transition: var(--transition);
}

.boarding-card strong {
    display: block;
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--charcoal);
    margin-bottom: 0.25rem;
}

.boarding-card p {
    font-size: 0.75rem;
    color: var(--gray);
    margin: 0;
}

.boarding-option input:checked + .boarding-card {
    border-color: var(--primary);
    background: rgba(26,63,160,0.04);
}

.boarding-option input:checked + .boarding-card i {
    color: var(--primary);
}

.boarding-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-sm);
}

/* Review box */
.review-box {
    background: var(--light-gray);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    border: 1px solid rgba(26,63,160,0.08);
}

.review-box-title {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.875rem;
}

.review-grid {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.review-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
    padding: 0.375rem 0;
    border-bottom: 1px solid rgba(26,63,160,0.06);
}

.review-item:last-child { border-bottom: none; }

.review-label {
    color: var(--gray);
    font-weight: 500;
}

.review-value {
    font-weight: 700;
    color: var(--charcoal);
}

.review-disclaimer {
    font-size: 0.75rem;
    color: var(--gray);
    text-align: center;
    margin: 1rem 0 0;
}

/* Success state */
.enroll-success {
    text-align: center;
    padding: 2rem 1rem;
}

.success-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1a7a4a, #2d9b56);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin: 0 auto 1.5rem;
    box-shadow: 0 8px 24px rgba(26,122,74,0.3);
}

.enroll-success h3 {
    font-size: 1.4rem;
    color: var(--charcoal);
    margin-bottom: 0.75rem;
}

.enroll-success p {
    font-size: 0.9rem;
    color: var(--gray);
    line-height: 1.8;
    max-width: 380px;
    margin: 0 auto 1.5rem;
}

.success-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Trust items */
.enroll-trust-item {
    padding: 1.25rem;
    text-align: center;
}

.enroll-trust-item i {
    font-size: 1.5rem;
    color: var(--primary);
    display: block;
    margin-bottom: 0.5rem;
}

.enroll-trust-item strong {
    display: block;
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--charcoal);
    margin-bottom: 0.2rem;
}

.enroll-trust-item p {
    font-size: 0.78rem;
    color: var(--gray);
    margin: 0;
}

/* Mobile enroll */
@media (max-width: 767.98px) {
    .form-step { padding: 1.25rem; }
    .stepped-form-header { padding: 1.25rem; }
    .step-indicators { padding: 1rem; }
    .boarding-options { grid-template-columns: 1fr 1fr; }
    .step-ind-label { display: none; }
    .stepped-form-card { position: static; }
}

/* ===================================================
   CONTACT PAGE STYLES
=================================================== */

/* Quick contact cards */
.contact-quick-card {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 1.1rem 1.25rem;
    background: var(--white);
    border-radius: var(--radius-md);
    border: 1px solid rgba(26,63,160,0.08);
    box-shadow: var(--shadow-sm);
    text-decoration: none;
    transition: var(--transition);
}

.contact-quick-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.cqc-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
    color: white;
}

.contact-whatsapp .cqc-icon { background: #25d366; }
.contact-call     .cqc-icon { background: var(--primary); }
.contact-email    .cqc-icon { background: var(--secondary); }
.contact-location .cqc-icon { background: var(--gold-dark); }

.cqc-text { flex: 1; min-width: 0; }

.cqc-text strong {
    display: block;
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--charcoal);
    margin-bottom: 0.1rem;
}

.cqc-text span {
    display: block;
    font-size: 0.78rem;
    color: var(--primary);
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cqc-text small {
    display: block;
    font-size: 0.7rem;
    color: var(--gray);
    margin-top: 0.1rem;
}

.cqc-arrow {
    color: var(--gray);
    font-size: 0.75rem;
    transition: var(--transition);
    flex-shrink: 0;
}

.contact-quick-card:hover .cqc-arrow {
    color: var(--primary);
    transform: translateX(3px);
}

/* Contact form card */
.contact-form-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(26,63,160,0.08);
    overflow: hidden;
}

.contact-form-header {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    padding: 1.5rem 2rem;
    color: white;
}

.contact-form-header h3 {
    font-size: 1.1rem;
    color: white;
    margin-bottom: 0.25rem;
}

.contact-form-header p {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.75);
    margin: 0;
}

.contact-form-body { padding: 1.75rem 2rem; }

/* Contact success */
.contact-success {
    text-align: center;
    padding: 2rem 1rem;
}

.contact-success-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1a7a4a, #2d9b56);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 1.25rem;
    box-shadow: 0 8px 24px rgba(26,122,74,0.25);
}

.contact-success h4 {
    font-size: 1.2rem;
    color: var(--charcoal);
    margin-bottom: 0.5rem;
}

.contact-success p {
    font-size: 0.875rem;
    color: var(--gray);
    max-width: 360px;
    margin: 0 auto;
    line-height: 1.7;
}

/* Contact details card */
.contact-details-card {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    border: 1px solid rgba(26,63,160,0.08);
    box-shadow: var(--shadow-sm);
}

.contact-details-title {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    color: var(--charcoal);
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--light-gray);
}

.contact-detail-item {
    display: flex;
    align-items: flex-start;
    gap: 0.875rem;
    padding: 0.875rem 0;
    border-bottom: 1px solid var(--light-gray);
}

.contact-detail-item:last-of-type { border-bottom: none; }

.contact-detail-icon {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    background: rgba(26,63,160,0.08);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.contact-detail-item strong {
    display: block;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--charcoal);
    margin-bottom: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.contact-detail-item p {
    font-size: 0.82rem;
    color: var(--gray);
    margin: 0;
    line-height: 1.7;
}

.contact-detail-item a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.contact-detail-item a:hover { color: var(--secondary); }

/* Social links */
.contact-social {
    padding-top: 1rem;
    display: flex;
    align-items: center;
    gap: 0.875rem;
    flex-wrap: wrap;
}

.contact-social strong {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--charcoal);
}

.contact-social-links {
    display: flex;
    gap: 0.5rem;
}

.contact-social-btn {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    text-decoration: none;
    color: white;
    transition: var(--transition);
}

.contact-social-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
    color: white;
}

.facebook  { background: #1877f2; }
.whatsapp  { background: #25d366; }
.tiktok    { background: #000000; }
.youtube   { background: #ff0000; }

/* Google Map card */
.contact-map-card {
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid rgba(26,63,160,0.08);
    box-shadow: var(--shadow-sm);
}

.contact-map-header {
    background: var(--primary-dark);
    color: white;
    padding: 0.875rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 700;
    font-family: var(--font-heading);
}

.contact-map-wrap { line-height: 0; }

.contact-map-footer {
    padding: 0.875rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
    border-top: 1px solid var(--light-gray);
}

.contact-map-footer div {
    font-size: 0.8rem;
    color: var(--charcoal);
    font-weight: 500;
}

.contact-directions-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    padding: 0.4rem 0.875rem;
    border-radius: 100px;
    border: 1px solid rgba(26,63,160,0.2);
    transition: var(--transition);
}

.contact-directions-btn:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* Mobile contact */
@media (max-width: 767.98px) {
    .contact-form-body  { padding: 1.25rem; }
    .contact-form-header { padding: 1.25rem; }
    .cqc-text span { font-size: 0.72rem; }
}


/* ===== STAFF SECTION ===== */
.staff-section-title {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--charcoal);
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--light-gray);
    margin-bottom: 0;
}

.staff-card {
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(26,63,160,0.08);
    transition: var(--transition);
    height: 100%;
}

.staff-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.staff-photo-wrap {
    position: relative;
    overflow: hidden;
}

.staff-photo {
    width: 100%;
    height: 240px;
    object-fit: cover;
    object-position: top;
    display: block;
    transition: transform 0.4s ease;
}

.staff-card:hover .staff-photo {
    transform: scale(1.05);
}

.staff-role-badge {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--primary);
    color: white;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.4rem 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    text-align: center;
}

.staff-info {
    padding: 1.1rem;
}

.staff-name {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    color: var(--charcoal);
    margin-bottom: 0.2rem;
}

.staff-title {
    font-size: 0.75rem;
    color: var(--primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.staff-desc {
    font-size: 0.8rem;
    color: var(--gray);
    line-height: 1.6;
    margin: 0;
}

/* Mobile staff */
@media (max-width: 767.98px) {
    .staff-photo { height: 200px; }
}