/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Nunito:ital,wght@0,400;0,600;0,700;0,800;1,400&family=Poppins:wght@400;500;600;700;800&display=swap');

/* CSS Variables */
:root {
  --primary-blue: #1E90FF;
  --deep-navy: #003366;
  --light-blue: #87CEEB;
  --white: #FFFFFF;
  --bg-soft: #F5F8FB;
  --text-dark: #2C2C3E;
  --text-light: #64748B;
  --accent-gold: #FF9F1C;
  --accent-red: #E63946;
  
  --primary-rgb: 30, 144, 255;
  --navy-rgb: 0, 51, 102;
  
  /* Layout variables */
  --max-width: 1200px;
  --header-height: 90px;
  
  /* Animations */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  --transition-slow: 0.6s cubic-bezier(0.25, 1, 0.5, 1);
  
  /* Shadows */
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.02);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 10px 10px -5px rgba(0, 0, 0, 0.03);
  --shadow-premium: 0 30px 60px -15px rgba(0, 51, 102, 0.12);
  
  /* Borders */
  --radius-sm: 4px; /* RECTANGLE - changed from 8px */
  --radius-md: 8px;  /* Changed from 16px */
  --radius-lg: 12px; /* Changed from 24px */
}

/* Global Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  width: 100%;
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--text-dark);
  background-color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
  width: 100%;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', sans-serif;
  color: var(--deep-navy);
  font-weight: 700;
  line-height: 1.25;
}

h1 { font-size: 2.75rem; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.25rem; }

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

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

/* Common Layout Containers */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

section {
  padding: 5.5rem 0;
  position: relative;
}

.section-bg-soft {
  background-color: var(--bg-soft);
}

.section-bg-dark {
  background-color: var(--deep-navy);
  color: var(--white);
}

.section-bg-dark h2, 
.section-bg-dark h3, 
.section-bg-dark h4 {
  color: var(--white);
}

/* Header & Navigation */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 1000;
  transition: var(--transition-normal);
  display: flex;
  align-items: center;
  background-color: transparent; /* Transparent on load */
  box-shadow: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

header.scrolled {
  background-color: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  height: 76px;
  box-shadow: var(--shadow-md);
  border-bottom: none;
}

header.menu-open {
  background-color: var(--white) !important;
  box-shadow: var(--shadow-lg);
  border-bottom: none;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-img {
  height: 82px;
  width: auto;
  transition: var(--transition-normal);
}

header.scrolled .logo-img,
header.menu-open .logo-img {
  height: 64px;
}

.logo-text {
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  color: var(--white); /* White text on dark hero load */
  font-size: 1.55rem;
  line-height: 1.1;
  display: flex;
  flex-direction: column;
  transition: var(--transition-normal);
}

header.scrolled .logo-text,
header.menu-open .logo-text {
  color: var(--deep-navy);
}

/* Nav Menu */
.nav-menu {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.nav-link {
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.9); /* White text on hero load */
  padding: 0.5rem 0.25rem;
  position: relative;
  transition: var(--transition-normal);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 3px;
  background-color: var(--primary-blue);
  border-radius: 2px;
  transition: var(--transition-normal);
}

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

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

header.scrolled .nav-link {
  color: var(--deep-navy);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1001;
}

.mobile-menu-btn span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--white); /* White span on load */
  margin: 5px 0;
  transition: var(--transition-normal);
  border-radius: 2px;
}

header.scrolled .mobile-menu-btn span,
header.menu-open .mobile-menu-btn span {
  background-color: var(--deep-navy);
}

/* Buttons - RECTANGLE / SQUARE */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius-sm); /* Rectangle */
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition-normal);
  box-shadow: var(--shadow-sm);
  gap: 0.5rem;
}

.btn-primary {
  background-color: var(--primary-blue);
  color: var(--white);
}

.btn-primary:hover {
  background-color: var(--deep-navy);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background-color: var(--deep-navy);
  color: var(--white);
}

.btn-secondary:hover {
  background-color: var(--primary-blue);
  box-shadow: var(--shadow-md);
}

.btn-white {
  background-color: var(--white);
  color: var(--deep-navy);
}

.btn-white:hover {
  background-color: var(--primary-blue);
  color: var(--white);
  box-shadow: var(--shadow-md);
}

.btn-outline-white {
  background-color: transparent;
  border-color: var(--white);
  color: var(--white);
}

.btn-outline-white:hover {
  background-color: var(--white);
  color: var(--deep-navy);
}

.btn-outline-blue {
  background-color: transparent;
  border-color: var(--primary-blue);
  color: var(--primary-blue);
}

.btn-outline-blue:hover {
  background-color: var(--primary-blue);
  color: var(--white);
}

.btn-sm {
  padding: 0.5rem 1.25rem;
  font-size: 0.85rem;
}

/* Values Bar */
.values-bar {
  background-color: var(--deep-navy);
  color: var(--white);
  padding: 1.5rem 0;
  box-shadow: inset 0 -4px 10px rgba(0, 0, 0, 0.1);
  position: relative;
  z-index: 10;
}

.values-container {
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
}

.value-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 1px;
}

.value-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--light-blue);
  font-size: 1.1rem;
  border: 1px solid rgba(135, 206, 235, 0.3);
}

/* Hero Section - COVER WHOLE SCREEN */
.hero {
  position: relative;
  min-height: 100vh; /* Cover the whole screen */
  min-height: 100dvh;
  display: flex;
  align-items: center;
  padding-top: 0; /* Centered layout */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: var(--deep-navy);
  color: var(--white);
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgba(0, 51, 102, 0.72) 0%, rgba(0, 51, 102, 0.4) 55%, rgba(0, 51, 102, 0.15) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 750px;
  padding-top: 60px; /* Accounts for floating header */
}

.hero-content h1 {
  font-size: 3.8rem;
  color: var(--white);
  margin-bottom: 1.5rem;
  font-weight: 800;
  line-height: 1.15;
}

.hero-content p {
  font-size: 1.3rem;
  margin-bottom: 2.25rem;
  color: #E2E8F0;
  font-weight: 300;
}

.hero-btns {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Page Header component */
.page-header {
  background-color: var(--deep-navy);
  color: var(--white);
  padding: calc(var(--header-height) + 4rem) 0 5rem;
  text-align: center;
}

.page-header h1 {
  color: var(--white);
  font-size: 3rem;
  margin-bottom: 1rem;
}

.page-header p {
  font-size: 1.2rem;
  max-width: 650px;
  margin: 0 auto;
  color: #E2E8F0;
  font-weight: 300;
}

/* Section Header */
.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 4rem;
}

.section-subtitle {
  color: var(--primary-blue);
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 0.5rem;
  display: block;
}

.section-header h2 {
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
  padding-bottom: 1rem;
}

.section-header h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background-color: var(--primary-blue);
  border-radius: 2px;
}

.section-header p {
  font-size: 1.1rem;
  color: var(--text-light);
}

/* Responsive Grid System (REPLACES INLINE STYLES) */
.grid-2-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}

.grid-approach-1 {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 4rem;
  align-items: center;
}

.grid-approach-2 {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  align-items: center;
}

.grid-approach-3 {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3.5rem;
  align-items: flex-start;
}

.grid-approach-4 {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 4rem;
  align-items: center;
}

.grid-careers {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4rem;
  align-items: flex-start;
}

/* Welcome Section */
.welcome-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 4rem;
  align-items: center;
}

.welcome-content h3 {
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--primary-blue);
  margin-bottom: 1rem;
}

.welcome-content p {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
  color: var(--text-dark);
}

.welcome-image-wrapper {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-premium);
}

.welcome-image-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 6px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-lg);
  pointer-events: none;
}

/* Ethos Quote Section */
.ethos-quote {
  background-color: rgba(0, 51, 102, 0.95);
  background-image: url('../assets/images/hero_bg.png');
  background-blend-mode: multiply;
  background-size: cover;
  background-position: center;
  color: var(--white);
  padding: 5rem 0;
  text-align: center;
  position: relative;
}

.ethos-container {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
}

.ethos-quote blockquote {
  font-family: 'Nunito', sans-serif;
  font-style: italic;
  font-size: 1.85rem;
  line-height: 1.4;
  margin-bottom: 1.5rem;
  font-weight: 600;
}

.ethos-quote p {
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--light-blue);
  font-weight: 700;
}

.dolphin-wave-svg {
  width: 60px;
  height: 60px;
  margin-bottom: 1.5rem;
  fill: var(--light-blue);
}

/* Cards Grid */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.card {
  background-color: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(0, 51, 102, 0.05);
}

.card:hover {
  box-shadow: var(--shadow-premium);
  border-color: rgba(30, 144, 255, 0.15);
}

.card-img-wrapper {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-slow);
}

.card:hover .card-img {
  /* scale transform removed */
}

.card-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background-color: var(--deep-navy);
  color: var(--white);
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  box-shadow: var(--shadow-sm);
  z-index: 20;
}

.card-badge-ofsted {
  background-color: var(--accent-gold);
  color: var(--deep-navy);
}

.card-content {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-title {
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
}

.card-text {
  color: var(--text-light);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.card-meta {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  font-size: 0.85rem;
  color: var(--text-light);
}

.card-meta span {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

/* Why Choose Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
}

.feature-item {
  display: flex;
  gap: 1.25rem;
}

.feature-icon-box {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-sm);
  background-color: rgba(30, 144, 255, 0.08);
  color: var(--primary-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
  transition: var(--transition-normal);
  border: 1px solid rgba(30, 144, 255, 0.15);
}

.feature-item:hover .feature-icon-box {
  background-color: var(--primary-blue);
  color: var(--white);
}

.feature-content h4 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.feature-content p {
  font-size: 0.95rem;
  color: var(--text-light);
}

/* Ofsted Badge Section */
.ofsted-section {
  background-color: var(--bg-soft);
  text-align: center;
  padding: 4rem 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.ofsted-badge-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  max-width: 600px;
  margin: 0 auto;
}

.ofsted-logo-mock {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #005A9C;
  color: var(--white);
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: 1.8rem;
  padding: 0.75rem 2rem;
  border-radius: 4px;
  letter-spacing: 1px;
  box-shadow: var(--shadow-sm);
}

.ofsted-logo-mock span {
  color: var(--accent-gold);
}

.ofsted-text {
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--deep-navy);
}

.ofsted-link {
  font-size: 0.9rem;
  color: var(--primary-blue);
  font-weight: 600;
  text-decoration: underline;
}

/* CTA Strip */
.cta-strip {
  background-color: var(--deep-navy);
  color: var(--white);
  padding: 3rem 0;
  text-align: center;
}

.cta-strip-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
}

.cta-strip-text h3 {
  color: var(--white);
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
}

.cta-strip-text p {
  color: #CBD5E1;
  font-size: 1.05rem;
}

/* Wave Dividers */
.wave-divider {
  position: absolute;
  width: 100%;
  height: 40px;
  left: 0;
  z-index: 5;
  pointer-events: none;
}

.wave-top {
  top: -1px;
}

.wave-bottom {
  bottom: -1px;
}

/* Form Styles */
.form-card {
  background-color: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-premium);
  padding: 3rem;
  border: 1px solid rgba(0, 51, 102, 0.05);
}

.form-title {
  margin-bottom: 2rem;
  font-size: 1.75rem;
  border-bottom: 2px solid var(--bg-soft);
  padding-bottom: 1rem;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group.full-width {
  grid-column: span 2;
}

.form-label {
  display: block;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--deep-navy);
  margin-bottom: 0.5rem;
}

.form-input, .form-textarea, .form-select {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 2px solid #E2E8F0;
  border-radius: var(--radius-sm);
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  color: var(--text-dark);
  background-color: var(--bg-soft);
  transition: var(--transition-fast);
}

.form-input:focus, .form-textarea:focus, .form-select:focus {
  border-color: var(--primary-blue);
  background-color: var(--white);
  outline: none;
  box-shadow: 0 0 0 4px rgba(30, 144, 255, 0.15);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

/* Profiles & Details Layout (Our Homes Page) */
.profile-card {
  background-color: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-premium);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  margin-bottom: 4rem;
  border: 1px solid rgba(0, 51, 102, 0.05);
}

.profile-details-column {
  padding: 3.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.profile-media-column {
  background-size: cover;
  background-position: center;
  position: relative;
  min-height: 400px;
}

.profile-badge {
  background-color: var(--accent-gold);
  color: var(--deep-navy);
  font-weight: 800;
  padding: 0.4rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  display: inline-block;
  margin-bottom: 1rem;
}

.profile-title {
  font-size: 2.25rem;
  margin-bottom: 1.5rem;
}

.profile-meta-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.profile-meta-item {
  display: flex;
  flex-direction: column;
}

.profile-meta-label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-light);
  letter-spacing: 0.5px;
}

.profile-meta-value {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--deep-navy);
}

.profile-desc {
  font-size: 1.05rem;
  margin-bottom: 2rem;
  color: var(--text-dark);
}

.profile-btns {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Approach & Framework Layout */
.approach-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  align-items: center;
}

.approach-image {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-premium);
  overflow: hidden;
}

.approach-details h3 {
  font-size: 1.85rem;
  margin-bottom: 1.25rem;
  position: relative;
  display: inline-block;
  padding-bottom: 0.5rem;
}

.approach-details h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background-color: var(--primary-blue);
}

.approach-details p {
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
}

.approach-details ul {
  list-style-type: none;
  margin-bottom: 1.5rem;
}

.approach-details ul li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 0.75rem;
  font-size: 1rem;
}

.approach-details ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--primary-blue);
  font-weight: bold;
}

/* PACE Model Block */
.pace-box {
  background-color: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: 2.5rem;
  margin-top: 3rem;
  border-left: 6px solid var(--primary-blue);
}

.pace-letters {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.pace-letter-card {
  text-align: center;
  background-color: var(--bg-soft);
  padding: 1.5rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
}

.pace-letter {
  font-family: 'Poppins', sans-serif;
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary-blue);
  line-height: 1;
  margin-bottom: 0.25rem;
}

.pace-word {
  font-weight: 700;
  color: var(--deep-navy);
  font-size: 1rem;
}

/* School list on Education Page */
.school-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
}

.school-tag {
  background-color: var(--white);
  border: 1px solid rgba(0, 51, 102, 0.08);
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  color: var(--deep-navy);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-fast);
}

.school-tag:hover {
  background-color: var(--bg-soft);
  border-color: var(--primary-blue);
}

.school-icon {
  color: var(--primary-blue);
  font-size: 1.2rem;
}

/* Contact Details Page Elements */
.contact-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 4rem;
}

.contact-info-panel {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.contact-info-block h3 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.contact-info-icon {
  color: var(--primary-blue);
}

.contact-list {
  list-style: none;
}

.contact-list li {
  display: flex;
  margin-bottom: 0.75rem;
  font-size: 1.05rem;
}

.contact-list-label {
  font-weight: 700;
  width: 140px;
  color: var(--deep-navy);
  flex-shrink: 0;
}

.contact-list-value {
  color: var(--text-dark);
  word-break: break-word;
  overflow-wrap: anywhere;
}

.contact-alert-box {
  background-color: rgba(230, 57, 70, 0.05);
  border-left: 4px solid var(--accent-red);
  padding: 1.5rem;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
}

.contact-alert-box strong {
  color: var(--deep-navy);
}

.contact-map-mock {
  width: 100%;
  height: 350px;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
  position: relative;
  background-color: #E6F3F7;
}

.contact-map-iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* Careers Cards */
.job-card {
  background-color: var(--white);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  padding: 2.5rem;
  border: 1px solid rgba(0, 51, 102, 0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
  margin-bottom: 1.5rem;
  transition: var(--transition-normal);
}

.job-card:hover {
  border-color: var(--primary-blue);
  box-shadow: var(--shadow-lg);
}

.job-info h3 {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}

.job-tags {
  display: flex;
  gap: 0.75rem;
}

.job-tag-badge {
  background-color: var(--bg-soft);
  color: var(--text-light);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 600;
}

/* Footer styling */
footer {
  background-color: var(--deep-navy);
  color: var(--white);
  padding: 5rem 0 2rem;
  font-size: 0.95rem;
  border-top: none;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1fr;
  gap: 4rem;
  margin-bottom: 3.5rem;
}

.footer-brand-column {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-logo-img {
  height: 48px;
  width: auto;
}

.footer-logo-text {
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--white);
  line-height: 1.1;
  display: flex;
  flex-direction: column;
}

.footer-tagline {
  color: var(--light-blue);
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
}

.footer-desc {
  color: #CBD5E1;
  line-height: 1.6;
}

.footer-links-column h4,
.footer-contact-column h4 {
  color: var(--white);
  font-size: 1.15rem;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-links-column h4::after,
.footer-contact-column h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background-color: var(--primary-blue);
}

.footer-links {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem 1.5rem;
}

.footer-links a {
  color: #CBD5E1;
}

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

.footer-contact-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-contact-list li {
  display: flex;
  gap: 0.75rem;
  color: #CBD5E1;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.footer-contact-icon {
  color: var(--light-blue);
  flex-shrink: 0;
  margin-top: 0.25rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  color: #94A3B8;
  font-size: 0.85rem;
}

.footer-bottom-text {
  max-width: 600px;
  line-height: 1.5;
}

.footer-ofsted-badge {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background-color: #002855;
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
}

.footer-ofsted-logo {
  background-color: #005A9C;
  color: var(--white);
  font-weight: 800;
  font-size: 1rem;
  padding: 0.25rem 0.5rem;
  border-radius: 2px;
}

.footer-ofsted-logo span {
  color: var(--accent-gold);
}

/* Animations using reveal class removed */

/* Welcome & Homes Sections Slideshow */
.homes-slideshow {
  position: relative;
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
  background-color: var(--deep-navy);
}

/* For profile columns, override aspect ratio so it fills height nicely */
.profile-media-column .homes-slideshow {
  aspect-ratio: auto;
  min-height: 280px;
  max-height: 380px;
}

/* For card image wrappers, fill the fixed 220px card height */
.card-img-wrapper .homes-slideshow {
  aspect-ratio: auto;
  height: 220px;
}

/* Smaller nav buttons for card context */
.card-img-wrapper .homes-slide-prev,
.card-img-wrapper .homes-slide-next {
  width: 32px;
  height: 32px;
  font-size: 0.8rem;
}

/* Smaller dots for card context, push up from bottom */
.card-img-wrapper .homes-slide-dots {
  bottom: 8px;
}

.card-img-wrapper .homes-slide-dot {
  width: 8px;
  height: 8px;
}

.homes-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease-in-out, visibility 0.5s ease-in-out;
  z-index: 1;
}

.homes-slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}

.homes-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Slide Caption Overlay */
.homes-slide-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
  color: var(--white);
  padding: 2rem 1.5rem 1rem;
  font-family: 'Poppins', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  text-align: center;
  z-index: 3;
  letter-spacing: 0.5px;
}

/* Navigation Chevron Buttons */
.homes-slide-prev,
.homes-slide-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 51, 102, 0.7);
  color: var(--white);
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: background-color 0.2s ease, transform 0.2s ease;
  font-size: 1rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.homes-slide-prev {
  left: 15px;
}

.homes-slide-next {
  right: 15px;
}

.homes-slide-prev:hover,
.homes-slide-next:hover {
  background-color: var(--primary-blue);
}

.homes-slide-prev:active,
.homes-slide-next:active {
  transform: translateY(-50%) scale(0.9);
}

/* Dots Indicators */
.homes-slide-dots {
  position: absolute;
  bottom: 50px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.6rem;
  z-index: 10;
}

.homes-slide-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.4);
  border: 1px solid rgba(0, 0, 0, 0.2);
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.homes-slide-dot.active {
  background-color: var(--primary-blue);
  transform: scale(1.3);
  box-shadow: 0 0 6px rgba(30, 144, 255, 0.8);
}

/* Ofsted Good Rating Styling */
.ofsted-logo-mock span.ofsted-good-label {
  color: #10B981; /* Premium Emerald/Good Green rating color */
  font-weight: 800;
}

/* Responsive Media Queries */
@media (max-width: 1024px) {
  h1 { font-size: 2.5rem; }
  h2 { font-size: 2rem; }
  .hero-content h1 { font-size: 3.2rem; }
  .welcome-grid { gap: 2.5rem; }
  .profile-card { grid-template-columns: 1fr; }
  .profile-media-column { min-height: 300px; }
  .profile-details-column { padding: 2.5rem; }
}

@media (max-width: 768px) {
  :root {
    --header-height: 70px;
  }
  

  .mobile-menu-btn {
    display: block;
  }
  
  .nav-menu {
    position: fixed;
    top: var(--header-height);
    left: -100%;
    width: 100%;
    height: calc(100vh - var(--header-height));
    background-color: var(--white);
    flex-direction: column;
    align-items: center;
    padding: 3rem 1.5rem;
    gap: 2rem;
    transition: var(--transition-normal);
    box-shadow: var(--shadow-lg);
    z-index: 999;
    visibility: hidden; /* Prevent horizontal scrolling/tab index issues on load */
  }
  
  .nav-menu.open {
    left: 0;
    visibility: visible;
  }
  
  .nav-link {
    font-size: 1.2rem;
    color: var(--deep-navy) !important; /* Mobile menu drawer is white, links must be dark navy */
  }
  
  /* GRID RESPONSIVENESS OVERRIDES */
  .grid-2-col,
  .grid-approach-1,
  .grid-approach-2,
  .grid-approach-3,
  .grid-approach-4,
  .grid-careers,
  .contact-layout {
    grid-template-columns: 1fr !important;
    gap: 2.5rem !important;
    align-items: stretch !important;
  }
  
  .welcome-grid {
    grid-template-columns: 1fr;
  }
  
  .welcome-image-wrapper {
    order: -1;
    max-width: 500px;
    margin: 0 auto;
  }
  
  .cta-strip-container {
    justify-content: center;
    text-align: center;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .form-card {
    padding: 2rem 1.5rem;
  }
  
  .form-grid {
    grid-template-columns: 1fr;
  }
  
  .form-group.full-width {
    grid-column: span 1;
  }
  
  .approach-layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  
  .pace-letters {
    grid-template-columns: 1fr 1fr;
  }
  
  .contact-list li {
    flex-direction: column;
    margin-bottom: 1.25rem;
  }
  
  .contact-list-label {
    width: 100%;
    margin-bottom: 0.25rem;
  }
  
  .mobile-menu-btn.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  
  .mobile-menu-btn.open span:nth-child(2) {
    opacity: 0;
  }
  
  .mobile-menu-btn.open span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -8px);
  }
}

@media (max-width: 480px) {
  h1 { font-size: 2.2rem; }
  h2 { font-size: 1.8rem; }
  
  .logo-text {
    font-size: 1.1rem !important; /* Smaller logo text on small screens */
  }
  
  .logo-img {
    height: 56px !important;
  }
  
  .hero-content h1 { 
    font-size: 2.3rem; 
    line-height: 1.2;
  }
  .hero-content p {
    font-size: 1.1rem;
  }
  
  .hero-btns { flex-direction: column; width: 100%; }
  .btn { width: 100%; }
  
  .values-container {
    display: grid;
    grid-template-columns: 1fr 1fr; /* 2x2 grid layout on tiny viewports */
    gap: 1.25rem 0.5rem;
  }
  .value-item {
    font-size: 1rem;
    justify-content: center;
  }
  
  .pace-letters { grid-template-columns: 1fr; }
  .profile-meta-list { grid-template-columns: 1fr; }
}
