

700;800&family=Cormorant+Garamond:ital,wght@0,600;0,700;1,500;1,600&family=Inter:wght@400;500;600;700&family=Montserrat:wght@500;600;700;800;900&display=swap');

:root {
  
  --knes-navy: #192e59;
  --knes-navy-dark: #0f1d38;
  --knes-gold: #e59b27;
  --knes-red: #b71c1c;
  --knes-green: #2d7857;
  --knes-blue: #1976d2;

  
  --braunton-maroon: var(--knes-navy);
  --braunton-maroon-dark: var(--knes-navy-dark);
  --braunton-orange: var(--knes-gold);
  --braunton-green: var(--knes-green);
  --braunton-blue: var(--knes-blue);
  
  --bg-light-grey: #f7f7f8;
  --bg-events-grey: #eaebec;
  --text-dark: #1e1e1e;
  --text-muted: #555555;
  
  --font-serif: 'Cormorant Garamond', 'Cinzel', serif;
  --font-heading: 'Montserrat', sans-serif;
  --font-sans: 'Inter', sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  color: var(--text-dark);
  background-color: #ffffff;
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

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

.container-fluid {
  width: 100%;
  max-width: 1480px;
  margin: 0 auto;
  padding: 0 2rem;
}

.container {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 1.5rem;
}


.header-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1.1rem 0;
  background: linear-gradient(180deg, rgba(15, 5, 20, 0.65) 0%, rgba(15, 5, 20, 0.2) 70%, rgba(0, 0, 0, 0) 100%);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.header-wrapper.scrolled {
  position: fixed;
  background: rgb(25 46 89 / 73%);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 0.55rem 0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  border-bottom: 2px solid rgba(229, 155, 39, 0.5);
}

.header-inner-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
}


.braunton-brand,
.knes-brand {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  text-decoration: none;
  transition: transform 0.3s ease;
}

.braunton-brand:hover,
.knes-brand:hover {
  transform: translateY(-1px);
}

.logo-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.braunton-crest-logo,
.knes-crest-logo {
  
  
  object-fit: contain;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,0.45));
  transition: transform 0.3s ease, filter 0.3s ease;
}

.header-wrapper.scrolled .braunton-crest-logo,
.header-wrapper.scrolled .knes-crest-logo {
  
  height: 65px;
}

.braunton-brand:hover .braunton-crest-logo,
.knes-brand:hover .knes-crest-logo {
  transform: scale(1.05) rotate(-2deg);
  filter: drop-shadow(0 6px 14px rgba(229, 155, 39, 0.4));
}

.braunton-brand-title {
  display: flex;
  flex-direction: column;
}

.braunton-name {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  line-height: 1.1;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.header-wrapper.scrolled .braunton-name {
  font-size: 1.12rem;
}

.braunton-motto {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 700;
  color: #fcebd0;
  letter-spacing: 2.2px;
  text-transform: uppercase;
  margin-top: 3px;
  opacity: 0.95;
  display: flex;
  align-items: center;
  gap: 4px;
}


.header-right-actions {
  display: flex;
  align-items: center;
  gap: 1.1rem;
}


.ba365-header-pill {
  font-family: var(--font-heading), 'Montserrat', sans-serif;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--braunton-orange) 0%, #c47d17 100%);
  padding: 0.55rem 1.2rem;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  box-shadow: 0 4px 14px rgba(229, 155, 39, 0.35);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.ba365-header-pill:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(229, 155, 39, 0.5);
  color: #ffffff;
}


.header-search-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  color: #ffffff;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.14);
}

.header-search-icon-btn:hover {
  background: rgba(229, 155, 39, 0.25);
  border-color: var(--braunton-orange);
  color: var(--braunton-orange);
  box-shadow: 0 0 20px rgba(229, 155, 39, 0.5);
  transform: translateY(-2px) scale(1.06);
}

.header-search-icon-btn:active {
  transform: translateY(0) scale(0.96);
}

.header-search-icon-btn .search-trigger-icon {
  font-size: 1.05rem;
  color: var(--braunton-orange);
  transition: transform 0.25s ease, color 0.25s ease;
}

.header-search-icon-btn:hover .search-trigger-icon {
  transform: scale(1.15);
  color: #ffffff;
}


.creative-nav-toggle {
  display: inline-flex;
  align-items: center;
  
  padding: .8rem .8rem .8rem .8rem;
  border-radius: 9999px;
  background: rgb(225 151 37);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  color: #ffffff;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.15);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  z-index: 1005;
}

.creative-nav-toggle:hover {
  background: #ffffff;
  color: #192e59;
  border-color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
}

.creative-nav-toggle.active {
  background: #ffffff;
  color: #192e59;
  border-color: #ffffff;
}


.toggle-label-wrap {
  position: relative;
  height: 18px;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.label-text {
  font-family: var(--font-heading), 'Montserrat', sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease;
  display: block;
}

.label-text.label-menu {
  transform: translateY(0);
  opacity: 1;
}

.label-text.label-close {
  position: absolute;
  top: 0;
  left: 0;
  transform: translateY(22px);
  opacity: 0;
  color: #192e59;
}

.creative-nav-toggle.active .label-text.label-menu {
  transform: translateY(-22px);
  opacity: 0;
}

.creative-nav-toggle.active .label-text.label-close {
  transform: translateY(0);
  opacity: 1;
}


.toggle-icon-widget {
  width: 20px;
  height: 14px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
}

.toggle-bar {
  width: 100%;
  height: 2px;
  background-color: currentColor;
  border-radius: 2px;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease;
}

.toggle-bar.bar-middle {
  width: 100%;
  opacity: 1;
}

.toggle-bar.bar-bottom {
  width: 100%;
}


.creative-nav-toggle.active .toggle-bar.bar-top {
  transform: translateY(6px) rotate(45deg);
}

.creative-nav-toggle.active .toggle-bar.bar-middle {
  opacity: 0;
  transform: scaleX(0);
}

.creative-nav-toggle.active .toggle-bar.bar-bottom {
  transform: translateY(-6px) rotate(-45deg);
}


.creative-nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.creative-nav-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.nav-overlay-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 18, 38, 0.85);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.nav-overlay-curtain {
  position: relative;
  width: 100%;
  height: 100%;
  
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  padding: 1rem 4rem 3rem;
  transform: translateY(-24px);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.creative-nav-overlay.active .nav-overlay-curtain {
  transform: translateY(0);
}


.overlay-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  width: 100%;
  max-width: 1360px;
  margin: 0 auto;
}

.overlay-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.overlay-crest {
  width: 100px;
  height: 100px;
  object-fit: contain;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,0.3));
}

.overlay-brand-text {
  display: flex;
  flex-direction: column;
}

.overlay-school-name {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.overlay-school-motto {
  font-family: var(--font-heading);
  font-size: 0.68rem;
  font-weight: 700;
  color: #fcebd0;
  letter-spacing: 2px;
}

.overlay-close-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 1.25rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
}

.overlay-close-btn:hover {
  background: #ffffff;
  color: #192e59;
  border-color: #ffffff;
  transform: translateY(-2px);
}

.close-icon-circle {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  transition: transform 0.3s ease;
}

.overlay-close-btn:hover .close-icon-circle {
  background: #192e59;
  color: #ffffff;
  transform: rotate(90deg);
}


.overlay-main-grid {
  display: grid;
  grid-template-columns: 1.18fr 0.82fr;
  gap: 4.5rem;
  max-width: 1360px;
  width: 100%;
  margin: 2.2rem auto 0;
  align-items: flex-start;
}


.overlay-nav-list {
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 170px);
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 1.5rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(229, 155, 39, 0.4) rgba(255, 255, 255, 0.05);
}

.overlay-nav-list::-webkit-scrollbar {
  width: 6px;
}

.overlay-nav-list::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
}

.overlay-nav-list::-webkit-scrollbar-thumb {
  background: rgba(229, 155, 39, 0.5);
  border-radius: 10px;
}

.overlay-nav-list::-webkit-scrollbar-thumb:hover {
  background: var(--braunton-orange);
}

.nav-category-eyebrow {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--braunton-orange);
  margin-bottom: 1.2rem;
  flex-shrink: 0;
}

.eyebrow-accent-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--braunton-orange);
  box-shadow: 0 0 8px var(--braunton-orange);
}


.creative-nav-link {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  padding: 0.82rem 1.1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.72);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  cursor: pointer;
  user-select: none;
}

.creative-nav-link:hover,
.creative-nav-link.active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  border-bottom-color: rgba(229, 155, 39, 0.5);
  padding-left: 1.4rem;
}

.creative-nav-link.active {
  background: linear-gradient(90deg, rgba(229, 155, 39, 0.18) 0%, rgba(255, 255, 255, 0.04) 100%);
  border-left: 3px solid var(--braunton-orange);
}

.creative-nav-link .nav-num {
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--braunton-orange);
  opacity: 0.85;
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.creative-nav-link:hover .nav-num,
.creative-nav-link.active .nav-num {
  transform: scale(1.15);
  color: var(--braunton-orange);
  opacity: 1;
}

.creative-nav-link .nav-name {
  font-family: var(--font-heading), 'Montserrat', sans-serif;
  font-size: clamp(1.15rem, 1.8vw, 1.55rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.nav-sub-count {
  font-family: var(--font-heading);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 3px 8px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.7);
  margin-left: 0.5rem;
}

.creative-nav-link.active .nav-sub-count {
  background: rgba(229, 155, 39, 0.25);
  border-color: var(--braunton-orange);
  color: #ffffff;
}

.nav-badge-accent {
  display: inline-block;
  background: linear-gradient(135deg, var(--braunton-orange), #d98218);
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 0.62rem;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 9999px;
  letter-spacing: 0.08em;
  margin-left: 0.6rem;
  box-shadow: 0 2px 8px rgba(229, 155, 39, 0.4);
}

.creative-nav-link .nav-arrow-icon {
  margin-left: auto;
  font-size: 1.05rem;
  opacity: 0;
  transform: translateX(-10px);
  color: var(--braunton-orange);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.creative-nav-link:hover .nav-arrow-icon,
.creative-nav-link.active .nav-arrow-icon {
  opacity: 1;
  transform: translateX(0);
}


.mobile-submenu-drawer {
  display: none !important;
}


.overlay-submenu-col {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  padding: 2.2rem 2.5rem;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  min-height: 540px;
  position: sticky;
  top: 0;
  align-self: flex-start;
  display: flex;
  flex-direction: column;
}


.submenu-panel {
  display: none;
  width: 100%;
}

.submenu-panel.active {
  display: block;
  animation: submenuFadeIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes submenuFadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


.submenu-panel-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  padding-bottom: 1.3rem;
  margin-bottom: 1.5rem;
}

.submenu-eyebrow {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--braunton-orange);
  margin-bottom: 0.4rem;
}

.submenu-title {
  font-family: var(--font-heading);
  font-size: clamp(1.3rem, 1vw, 1rem);
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.4rem;
  letter-spacing: -0.01em;
}

.submenu-desc {
  font-family: var(--font-sans);
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.5;
  margin: 0;
}


.submenu-cards-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 0.85rem 1.1rem;
}


.submenu-card-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 0.8rem 1.15rem;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.submenu-card-item:hover {
  background: rgba(229, 155, 39, 0.14);
  border-color: rgba(229, 155, 39, 0.45);
  transform: translateY(-2px) translateX(3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.card-item-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(229, 155, 39, 0.15);
  border: 1px solid rgba(229, 155, 39, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--braunton-orange);
  font-size: 1rem;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.submenu-card-item:hover .card-item-icon {
  background: var(--braunton-orange);
  color: #ffffff;
  transform: scale(1.08);
}

.card-item-content {
  display: flex;
  align-items: center;
  flex-grow: 1;
  min-width: 0;
}

.card-item-title {
  font-family: var(--font-heading);
  font-size: 0.94rem;
  font-weight: 600;
  color: #ffffff;
  line-height: 1.35;
  letter-spacing: 0.01em;
  transition: color 0.25s ease;
}

.submenu-card-item:hover .card-item-title {
  color: var(--braunton-orange);
}

.card-item-arrow {
  color: rgba(255, 255, 255, 0.35);
  font-size: 0.85rem;
  transition: all 0.3s ease;
  transform: translateX(-4px);
  margin-left: auto;
  flex-shrink: 0;
}

.submenu-card-item:hover .card-item-arrow {
  color: var(--braunton-orange);
  transform: translateX(0);
}


.academics-groups-container {
  display: grid;
  grid-template-columns: 1 1fr;
  gap: 1.5rem;
}

.academics-group-box {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 1.2rem 1.3rem;
}

.academics-group-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--braunton-orange);
  padding-bottom: 0.6rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 0.8rem;
}

.academics-group-list {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.submenu-card-item.mini {
  padding: 0.58rem 0.85rem;
  gap: 0.85rem;
}

.submenu-card-item.mini .card-item-icon {
  width: 32px;
  height: 32px;
  font-size: 0.85rem;
  border-radius: 8px;
}

.submenu-card-item.mini .card-item-title {
  font-size: 0.86rem;
}


.search-fullscreen-overlay {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 10020;
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.search-fullscreen-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}


.search-fullscreen-backdrop {
  position: absolute;
  inset: 0;
  
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  z-index: 1;
}

.search-fullscreen-backdrop::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: 
    radial-gradient(circle at 85% 15%, rgba(229, 155, 39, 0.1) 0%, transparent 45%),
    radial-gradient(circle at 15% 85%, rgba(25, 46, 89, 0.6) 0%, transparent 50%);
  pointer-events: none;
}


.search-fullscreen-container {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1100px;
  height: 100%;
  margin: 0 auto;
  padding: 2.2rem 2.5rem 1.6rem;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  transform: translateY(20px) scale(0.98);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  justify-content: center;
}

.search-fullscreen-overlay.active .search-fullscreen-container {
  transform: translateY(0) scale(1);
}


.fullscreen-search-topbar {
  
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1.4rem;
  
  margin-bottom: 0;
  flex-shrink: 0;
  z-index: 15;
  right: 0;
}

.fullscreen-search-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  color: var(--braunton-orange);
  text-transform: uppercase;
}

.fullscreen-search-brand .brand-icon {
  font-size: 1.15rem;
  color: #ffffff;
}

.fullscreen-close-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  background: rgb(229 155 39);
  border: 0;
  border-radius: 9999px;
  
  color: #ffffff;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  right: 15px;
  position: absolute;
  top: 10px;
}

.fullscreen-close-btn:hover {
  
  
  
  
}

.fullscreen-close-btn .close-label {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.fullscreen-close-btn .close-icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 35px;
  height: 35px;
  background: rgba(0, 0, 0, 0.25);
  border-radius: 50%;
  font-size: 1.5rem;
}


.fullscreen-search-form-wrap {
  flex-shrink: 0;
  margin-bottom: 1.8rem;
}

.fullscreen-search-form {
  width: 100%;
}

.fullscreen-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.06);
  border: 2px solid rgba(255, 255, 255, 0.18);
  border-radius: 20px;
  padding: 1.1rem 1.6rem;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.35);
}

.fullscreen-input-wrapper:focus-within {
  border-color: var(--braunton-orange);
  background: rgba(255, 255, 255, 0.09);
  box-shadow: 0 0 35px rgba(229, 155, 39, 0.3);
  transform: translateY(-2px);
}

.search-field-icon {
  font-size: 1.7rem;
  color: var(--braunton-orange);
  margin-right: 1.2rem;
  flex-shrink: 0;
  transition: transform 0.25s ease;
}

.fullscreen-input-wrapper:focus-within .search-field-icon {
  transform: scale(1.1);
  color: #ffffff;
}

.fullscreen-search-input {
  flex-grow: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.fullscreen-search-input::placeholder {
  color: rgba(255, 255, 255, 0.45);
  font-size: 1.25rem;
  font-weight: 500;
}

.search-clear-btn {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  font-size: 1.35rem;
  padding: 4px;
  display: flex;
  align-items: center;
  transition: color 0.2s ease, transform 0.2s ease;
}

.search-clear-btn:hover {
  color: #ffffff;
  transform: scale(1.15);
}


.search-quick-tags {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.85rem 1.6rem;
  background: rgba(0, 0, 0, 0.18);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  overflow-x: auto;
  scrollbar-width: none;
}

.search-quick-tags::-webkit-scrollbar {
  display: none;
}

.quick-tags-label {
  font-family: var(--font-heading);
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--braunton-orange);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 4px;
}

.search-tag-chip {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 9999px;
  padding: 3px 10px;
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.25s ease;
}

.search-tag-chip:hover {
  background: rgba(229, 155, 39, 0.25);
  border-color: var(--braunton-orange);
  color: #ffffff;
  transform: translateY(-1px);
}


.fullscreen-results-viewport {
  flex: 1;
  overflow-y: auto;
  padding: 0.5rem 0.5rem 1rem 0;
  margin-bottom: 1.2rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(229, 155, 39, 0.45) rgba(255, 255, 255, 0.05);
}

.fullscreen-results-viewport::-webkit-scrollbar {
  width: 6px;
}

.fullscreen-results-viewport::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 10px;
}

.fullscreen-results-viewport::-webkit-scrollbar-thumb {
  background: rgba(229, 155, 39, 0.45);
  border-radius: 10px;
}


.initial-state-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.4rem;
}

.initial-group {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.initial-group-title {
  font-family: var(--font-heading);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--braunton-orange);
  margin-bottom: 0.25rem;
  display: flex;
  align-items: center;
  gap: 6px;
}


.search-result-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.8rem 1rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}

.search-result-row:hover,
.search-result-row.selected {
  background: rgba(229, 155, 39, 0.14);
  border-color: rgba(229, 155, 39, 0.4);
  transform: translateX(4px);
}

.result-badge {
  font-family: var(--font-heading);
  font-size: 0.62rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 3px 8px;
  border-radius: 6px;
  flex-shrink: 0;
}

.badge-about { background: rgba(30, 144, 255, 0.25); color: #70b5ff; border: 1px solid rgba(30, 144, 255, 0.4); }
.badge-acad { background: rgba(147, 112, 219, 0.25); color: #d0b5ff; border: 1px solid rgba(147, 112, 219, 0.4); }
.badge-adm { background: rgba(229, 155, 39, 0.25); color: #ffbe53; border: 1px solid rgba(229, 155, 39, 0.4); }
.badge-portal { background: rgba(46, 204, 113, 0.25); color: #78e8a6; border: 1px solid rgba(46, 204, 113, 0.4); }
.badge-dates { background: rgba(243, 156, 18, 0.25); color: #ffd166; border: 1px solid rgba(243, 156, 18, 0.4); }
.badge-comm { background: rgba(231, 76, 60, 0.25); color: #ff8a7d; border: 1px solid rgba(231, 76, 60, 0.4); }
.badge-cert { background: rgba(52, 152, 219, 0.25); color: #85c1e9; border: 1px solid rgba(52, 152, 219, 0.4); }
.badge-news { background: rgba(230, 126, 34, 0.25); color: #f5b041; border: 1px solid rgba(230, 126, 34, 0.4); }

.result-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex-grow: 1;
  min-width: 0;
}

.result-title {
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.result-title mark,
.result-snippet mark {
  background: rgba(229, 155, 39, 0.35);
  color: #ffffff;
  border-radius: 3px;
  padding: 0 2px;
  font-weight: 800;
}

.result-snippet {
  font-family: var(--font-sans);
  font-size: 0.76rem;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.result-arrow {
  color: rgba(255, 255, 255, 0.3);
  font-size: 0.8rem;
  transition: all 0.25s ease;
  flex-shrink: 0;
}

.search-result-row:hover .result-arrow,
.search-result-row.selected .result-arrow {
  color: var(--braunton-orange);
  transform: translateX(3px);
}


.search-matches-list {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}


.search-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2.2rem 1.5rem;
}

.empty-icon-circle {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--braunton-orange);
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

.empty-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.4rem;
}

.empty-desc {
  font-family: var(--font-sans);
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.65);
  max-width: 420px;
  margin-bottom: 1.3rem;
  line-height: 1.5;
}

.empty-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
}

.btn-empty-chip {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 9999px;
  padding: 5px 12px;
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 0.74rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s ease;
}

.btn-empty-chip:hover {
  background: var(--braunton-orange);
  border-color: var(--braunton-orange);
}

.btn-empty-contact {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(229, 155, 39, 0.2);
  border: 1px solid var(--braunton-orange);
  border-radius: 9999px;
  padding: 5px 14px;
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 0.74rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.25s ease;
}

.btn-empty-contact:hover {
  background: var(--braunton-orange);
}


.fullscreen-search-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-family: var(--font-heading);
  font-size: 0.74rem;
  color: rgba(255, 255, 255, 0.65);
  flex-shrink: 0;
}

.search-footer-hints {
  display: flex;
  align-items: center;
  gap: 1.4rem;
}

.search-footer-hints span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.kbd-key {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  padding: 2px 6px;
  font-family: var(--font-heading);
  font-size: 0.68rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.9);
}

.search-footer-info {
  display: flex;
  align-items: center;
  gap: 7px;
  font-weight: 700;
  color: var(--braunton-orange);
}

.info-pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #2ecc71;
  box-shadow: 0 0 10px #2ecc71;
  display: inline-block;
}


@media (max-width: 1024px) {
  .nav-overlay-curtain {
    padding: 1.6rem 1.4rem 2.5rem;
  }
  .overlay-main-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
  
  .overlay-submenu-col {
    display: none !important;
  }

  .overlay-nav-list {
    max-height: none;
    padding-right: 0;
    overflow: visible;
  }

  .creative-nav-link {
    padding: 0.95rem 1.1rem;
    border-radius: 14px;
    margin-bottom: 0.25rem;
  }

  .creative-nav-link .nav-arrow-icon {
    opacity: 1;
    transform: none;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), color 0.3s ease;
  }

  .creative-nav-link.expanded {
    background: linear-gradient(90deg, rgba(229, 155, 39, 0.2) 0%, rgba(255, 255, 255, 0.06) 100%);
    border-left: 3px solid var(--braunton-orange);
    border-bottom-color: rgba(229, 155, 39, 0.5);
    color: #ffffff;
  }

  .creative-nav-link.expanded .nav-arrow-icon {
    transform: rotate(90deg);
    color: var(--braunton-orange);
  }

  
  .mobile-submenu-drawer {
    display: block !important;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease, margin 0.3s ease, padding 0.3s ease;
    margin: 0;
    padding: 0;
    border: 1px solid transparent;
    border-radius: 16px;
    background: rgba(8, 19, 39, 0.95);
    box-sizing: border-box;
  }

  .mobile-submenu-drawer.open {
    opacity: 1;
    margin: 0.35rem 0 0.9rem 0;
    padding: 1.2rem 1.1rem;
    border-color: rgba(229, 155, 39, 0.35);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  }

  .mobile-submenu-drawer .submenu-panel {
    display: block !important;
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }

  .mobile-submenu-drawer .submenu-panel-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 0.85rem;
    margin-bottom: 1rem;
  }

  .mobile-submenu-drawer .submenu-eyebrow {
    font-size: 0.68rem;
    margin-bottom: 0.3rem;
  }

  .mobile-submenu-drawer .submenu-title {
    font-size: 1.25rem;
    margin-bottom: 0.3rem;
  }

  .mobile-submenu-drawer .submenu-desc {
    font-size: 0.82rem;
    line-height: 1.45;
  }

  .mobile-submenu-drawer .submenu-cards-grid {
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }

  .mobile-submenu-drawer .submenu-card-item {
    padding: 0.75rem 0.95rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
  }

  .mobile-submenu-drawer .submenu-card-item:active {
    background: rgba(229, 155, 39, 0.2);
    border-color: var(--braunton-orange);
  }

  .mobile-submenu-drawer .card-item-icon {
    width: 36px;
    height: 36px;
    font-size: 0.9rem;
    border-radius: 8px;
  }

  .mobile-submenu-drawer .card-item-title {
    font-size: 0.88rem;
  }

  .mobile-submenu-drawer .academics-groups-container {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }

  .mobile-submenu-drawer .academics-group-box {
    padding: 1rem;
    border-radius: 14px;
  }

  .mobile-submenu-drawer .academics-group-header {
    font-size: 0.78rem;
    margin-bottom: 0.65rem;
  }
}

@media (max-width: 768px) {
  .search-fullscreen-container {
    padding: 1.6rem 1.25rem 1.2rem;
  }
  .fullscreen-search-topbar {
    margin-bottom: 1.2rem;
    padding-bottom: 0.9rem;
  }
  .fullscreen-search-brand span {
    font-size: 0.72rem;
  }
  .fullscreen-search-input {
    font-size: 1.2rem;
  }
  .fullscreen-search-input::placeholder {
    font-size: 0.95rem;
  }
  .fullscreen-input-wrapper {
    padding: 0.85rem 1.15rem;
    border-radius: 16px;
  }
  .search-field-icon {
    font-size: 1.35rem;
    margin-right: 0.85rem;
  }
  .initial-state-grid {
    grid-template-columns: 1fr;
    gap: 1.1rem;
  }
  .search-footer-hints {
    display: none;
  }
}

@media (max-width: 640px) {
  .header-search-icon-btn {
    width: 38px;
    height: 38px;
  }
  .header-search-icon-btn .search-trigger-icon {
    font-size: 0.95rem;
  }
  .ba365-header-pill {
    padding: 0.45rem 0.85rem;
    font-size: 0.7rem;
  }
  .creative-nav-toggle {
    padding: 0.45rem 0.9rem;
  }
  .toggle-label-wrap {
    display: none;
  }
  .creative-nav-link .nav-name {
    font-size: 1.15rem;
  }
  .overlay-top-bar {
    padding-bottom: 1.2rem;
  }
  .overlay-submenu-col {
    padding: 1.2rem;
    border-radius: 16px;
  }
  .submenu-title {
    font-size: 1.25rem;
  }
}


.hero-viewport {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 680px;
  background-color: #0b192c;
  overflow: hidden;
}

.hero-slider-track {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1s ease-in-out, visibility 1s ease-in-out;
}

.hero-slide.active {
  opacity: 1;
  visibility: visible;
}

.hero-bg-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 6s ease-out;
}

.hero-slide.active .hero-bg-media {
  transform: scale(1);
}

.hero-dark-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.4) 0%,
    rgba(0, 0, 0, 0.3) 50%,
    rgba(0, 0, 0, 0.75) 100%
  );
}

.hero-center-box {
  position: relative;
  z-index: 10;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  text-align: center;
  color: #ffffff;
  padding-bottom: 7rem;
}

.hero-serif-title {
  font-family: 'Cormorant Garamond', 'Cinzel', serif;
  font-size: clamp(3.2rem, 6.5vw, 5.8rem);
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  line-height: 1.05;
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.6);
  margin-bottom: 0.5rem;
}

.hero-tag-sub {
  font-family: var(--font-heading);
  font-size: clamp(1.4rem, 2.8vw, 2.2rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 4px;
  color: #ffffff;
  text-shadow: 0 3px 12px rgba(0, 0, 0, 0.6);
}


.hero-slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 25;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(15, 5, 20, 0.45);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 2px solid rgba(255, 255, 255, 0.4);
  color: #ffffff;
  font-size: 1.35rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  outline: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.hero-slider-prev {
  left: 2.5rem;
}

.hero-slider-next {
  right: 2.5rem;
}

.hero-slider-arrow:hover {
  background: var(--braunton-orange);
  border-color: var(--braunton-orange);
  color: #ffffff;
  transform: translateY(-50%) scale(1.12);
  box-shadow: 0 10px 30px rgba(229, 155, 39, 0.55);
}

.hero-slider-arrow:active {
  transform: translateY(-50%) scale(0.95);
}

.hero-slider-arrow:focus-visible {
  outline: 3px solid var(--braunton-orange);
  outline-offset: 3px;
}


.hero-slider-dots {
  position: absolute;
  bottom: 5.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(15, 5, 20, 0.45);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 8px 18px;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  display: none;
}

.hero-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-dot:hover {
  background: rgba(255, 255, 255, 0.9);
  transform: scale(1.2);
}

.hero-dot.active {
  background: var(--braunton-orange);
  width: 30px;
  border-radius: 12px;
  box-shadow: 0 0 14px rgba(229, 155, 39, 0.7);
}

.hero-dot:focus-visible {
  outline: 2px solid var(--braunton-orange);
  outline-offset: 2px;
}

.hero-scroll-circle {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 2px solid var(--braunton-orange);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  cursor: pointer;
  transition: all 0.3s ease;
  background: rgba(15, 5, 20, 0.35);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.hero-scroll-circle:hover {
  background: var(--braunton-orange);
  color: #ffffff;
  transform: translateX(-50%) translateY(4px);
  box-shadow: 0 6px 20px rgba(229, 155, 39, 0.45);
}

@media (max-width: 992px) {
  .hero-slider-prev {
    left: 1.25rem;
  }
  .hero-slider-next {
    right: 1.25rem;
  }
}

@media (max-width: 768px) {
  .hero-slider-arrow {
    width: 44px;
    height: 44px;
    font-size: 1.05rem;
  }
  .hero-slider-prev {
    left: 0.75rem;
  }
  .hero-slider-next {
    right: 0.75rem;
  }
  .hero-slider-dots {
    bottom: 5rem;
    padding: 6px 12px;
    gap: 8px;
  }
  .hero-dot {
    width: 9px;
    height: 9px;
  }
  .hero-dot.active {
    width: 22px;
  }
  .hero-scroll-circle {
    bottom: 1.5rem;
    width: 42px;
    height: 42px;
    font-size: 1rem;
  }
}


.about-knes-section {
  padding: 6.5rem 0 6rem 0;
  background-color: #ffffff;
  position: relative;
  overflow: hidden;
}

.about-knes-container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 4.5rem;
  align-items: center;
}


.about-knes-visual {
  position: relative;
  width: 100%;
  max-width: 580px;
  margin: 0 auto;
}

.collage-canvas {
  position: relative;
  width: 100%;
  aspect-ratio: 555 / 570;
  max-width: 560px;
  margin: 0 auto;
}


.collage-top-img-wrap {
  position: absolute;
  top: 0;
  left: 0;
  width: 69.7%;
  height: 70.5%;
  border-radius: 36px;
  overflow: hidden;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.08);
  z-index: 1;
  background-color: #f1f5f9;
}

.collage-top-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.collage-top-img-wrap:hover img {
  transform: scale(1.05);
}


.collage-stat-orange {
  position: absolute;
  top: 4.7%;
  right: 0;
  width: 46.7%;
  background: linear-gradient(135deg, #ca831a 0%, #FFC107 100%);
  border-radius: 20px;
  padding: 1rem 1.4rem 1.6rem;
  color: #ffffff;
  box-shadow: 0 18px 40px rgba(255, 87, 34, 0.35);
  display: flex;
  flex-direction: column;
  justify-content: center;
  z-index: 4;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.collage-stat-orange:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 48px rgba(255, 87, 34, 0.45);
}

.collage-stat-orange .stat-num-row {
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.collage-stat-orange .stat-big-val {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 3.2vw, 3.2rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -1px;
}

.collage-stat-orange .stat-unit-tag {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  text-transform: uppercase;
}

.collage-stat-orange .stat-caption-text {
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 600;
  line-height: .2;
  margin-top: 0.55rem;
  color: rgba(255, 255, 255, 0.95);
}


.collage-bottom-img-frame {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 57.3%;
  height: 54.2%;
  z-index: 2;
  background-color: #ffffff;
  padding: 8px;
  clip-path: polygon(0% 32px, 32px 0%, 69.5% 0%, 100% 31.5%, 100% calc(100% - 32px), calc(100% - 32px) 100%, 32px 100%, 0% calc(100% - 32px));
  clip-path: url(#bottom-chamfer-clip);
  -webkit-clip-path: url(#bottom-chamfer-clip);
  filter: drop-shadow(0 18px 36px rgba(15, 23, 42, 0.14));
  transition: filter 0.3s ease;
}

.collage-bottom-img-inner {
  width: 100%;
  height: 100%;
  
  clip-path: url(#bottom-chamfer-clip);
  
  overflow: hidden;
  position: relative;
  background-color: #f1f5f9;
}

.collage-bottom-img-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  
}

.collage-bottom-img-frame:hover .collage-bottom-img-inner img {
  transform: scale(1.06);
}


.collage-stat-navy {
  position: absolute;
  bottom: 1.5%;
  left: 2.7%;
  width: 34.1%;
  background: #243860;
  border-radius: 28px;
  padding: 1.8rem 1.4rem;
  color: #ffffff;
  box-shadow: 0 16px 36px rgba(11, 21, 40, 0.24);
  display: flex;
  flex-direction: column;
  justify-content: center;
  z-index: 4;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.collage-stat-navy:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 44px rgba(11, 21, 40, 0.36);
}

.collage-stat-navy .stat-num-row {
  display: flex;
  align-items: baseline;
  gap: 3px;
}

.collage-stat-navy .stat-big-val {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 3.2vw, 3.2rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -1px;
  color: #ffffff;
}

.collage-stat-navy .stat-unit-tag {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
}

.collage-stat-navy .stat-caption-text {
  font-family: var(--font-sans);
  font-size: 0.86rem;
  font-weight: 600;
  line-height: 1.35;
  margin-top: 0.55rem;
  color: #cbd5e1;
}


.about-knes-content {
  display: flex;
  flex-direction: column;
}


.about-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #FFC107;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 0.85rem;
}

.about-eyebrow i,
.about-eyebrow svg {
  color: #FFC107;
  font-size: 1.05rem;
}


.about-headline {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 3.2vw, 2.75rem);
  font-weight: 800;
  color: #0F172A;
  line-height: 1.22;
  letter-spacing: -0.5px;
  margin-bottom: 1.25rem;
  font-family: var(--font-heading), 'Montserrat', sans-serif;
  font-size: clamp(2rem, 3.2vw, 2.75rem);
  font-weight: 600;
}


.about-description {
  font-family: var(--font-sans);
  font-size: 0.98rem;
  line-height: 1.75;
  color: #64748B;
  margin-bottom: 2rem;
}


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

.about-feature-card {
  display: flex;
  align-items: center;
  gap: 14px;
}

.feature-card-icon-box {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  border: 1.5px solid #E91E63;
  background-color: #e91e630f;
  color: #E91E63;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.about-feature-card:hover .feature-card-icon-box {
  background-color: #FFC107;
  color: #ffffff;
  border-color: #FFC107;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(255, 87, 34, 0.25);
}

.feature-card-title {
  font-family: var(--font-heading);
  font-size: 1.02rem;
  font-weight: 700;
  color: #0F172A;
  line-height: 1.35;
}


.about-line-divider {
  width: 100%;
  height: 1px;
  background-color: #E2E8F0;
  margin: 0.5rem 0 1.8rem 0;
}


.about-bullet-list {
  list-style: none;
  padding: 0;
  margin: 0 0 2.2rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.about-bullet-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.bullet-orange-chevrons {
  color: #ffc107;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 900;
  line-height: 1.3;
  flex-shrink: 0;
  letter-spacing: -2px;
}

.bullet-text-label {
  font-family: var(--font-sans);
  font-size: 0.94rem;
  font-weight: 600;
  color: #1E293B;
  line-height: 1.55;
}


.about-action-bar {
  display: flex;
  align-items: center;
  gap: 2.2rem;
  flex-wrap: wrap;
}


.btn-about-orange {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0.95rem 2.2rem;
  background: #FFC107;
  color: #ffffff;
  border-radius: 50px;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-decoration: none;
  box-shadow: 0 8px 22px rgb(255 193 7 / 27%);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-about-orange i,
.btn-about-orange svg {
  font-size: 0.88rem;
  transition: transform 0.3s ease;
}

.btn-about-orange:hover {
  background: #FFC107;
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgb(255 193 7 / 54%);
  color: #ffffff;
}

.btn-about-orange:hover i,
.btn-about-orange:hover svg {
  transform: translateX(3px) translateY(-2px);
}


.about-phone-contact {
  display: flex;
  align-items: center;
  gap: 14px;
}

.phone-round-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background-color: #253961;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
  transition: all 0.3s ease;
  box-shadow: 0 8px 20px rgba(11, 21, 40, 0.18);
  text-decoration: none;
}

.phone-round-icon:hover {
  background-color: #ffc107;
  transform: scale(1.08);
  box-shadow: 0 10px 24px rgb(255 193 7 / 30%);
  color: #ffffff;
}

.phone-meta-stack {
  display: flex;
  flex-direction: column;
}

.phone-meta-label {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 500;
  color: #64748B;
  line-height: 1.2;
}

.phone-meta-number {
  font-family: var(--font-heading);
  font-size: 1.18rem;
  font-weight: 800;
  color: #E91E63;
  letter-spacing: 0.3px;
  text-decoration: none;
  transition: color 0.2s ease;
}

.phone-meta-number:hover {
  color: #253961;
}


@media (max-width: 1100px) {
  .about-knes-container {
    gap: 3rem;
  }
}

@media (max-width: 991px) {
  .about-knes-section {
    padding: 4.5rem 0;
  }

  .about-knes-container {
    grid-template-columns: 1fr;
    gap: 3.5rem;
  }

  .about-knes-visual {
    max-width: 520px;
    margin: 0 auto;
  }
}

@media (max-width: 640px) {
  .collage-canvas {
    max-width: 390px;
  }

  .collage-top-img-wrap {
    border-radius: 24px;
  }

  .collage-stat-orange {
    padding: 1.1rem 0.85rem;
    border-radius: 18px;
  }

  .collage-stat-orange .stat-big-val {
    font-size: 1.8rem;
  }

  .collage-stat-orange .stat-unit-tag {
    font-size: 0.95rem;
  }

  .collage-stat-orange .stat-caption-text {
    font-size: 0.74rem;
    margin-top: 0.35rem;
  }

  .collage-stat-navy {
    padding: 1.1rem 0.85rem;
    border-radius: 18px;
  }

  .collage-stat-navy .stat-big-val {
    font-size: 1.8rem;
  }

  .collage-stat-navy .stat-unit-tag {
    font-size: 0.95rem;
  }

  .collage-stat-navy .stat-caption-text {
    font-size: 0.74rem;
    margin-top: 0.35rem;
  }

  .collage-bottom-img-frame {
    padding: 5px;
  }

  .about-features-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .about-action-bar {
    gap: 1.5rem;
  }
}


.headteacher-section {
  padding: 6.5rem 0 7rem;
  position: relative;
  overflow: hidden;
  background: 
    radial-gradient(circle at 20% 50%, rgba(35, 82, 175, 0.45) 0%, transparent 58%),
    radial-gradient(circle at 82% 20%, rgba(229, 155, 39, 0.18) 0%, transparent 48%),
    radial-gradient(circle at 75% 82%, rgba(25, 65, 135, 0.35) 0%, transparent 55%),
    radial-gradient(circle at 50% 0%, rgba(229, 155, 39, 0.12) 0%, transparent 40%),
    linear-gradient(150deg, #0b162c 0%, #122347 35%, #182e5c 65%, #0e1b36 100%);
  color: #ffffff;
  border-top: 1px solid rgba(229, 155, 39, 0.3);
  border-bottom: 1px solid rgba(229, 155, 39, 0.2);
}


.headteacher-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 5%, rgba(229, 155, 39, 0.85) 50%, transparent 95%);
  z-index: 3;
}

.headteacher-section::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 10%, rgba(229, 155, 39, 0.45) 50%, transparent 90%);
  z-index: 3;
}


.headteacher-bg-glow {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
  filter: blur(80px);
}

.headteacher-glow-left {
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(42, 104, 218, 0.32) 0%, rgba(20, 50, 110, 0) 70%);
  left: 4%;
  top: 50%;
  transform: translateY(-50%);
  animation: headteacherFloatLeft 14s ease-in-out infinite alternate;
}

.headteacher-glow-right {
  width: 460px;
  height: 460px;
  background: radial-gradient(circle, rgba(229, 155, 39, 0.15) 0%, rgba(229, 155, 39, 0) 70%);
  right: 5%;
  top: 25%;
  animation: headteacherFloatRight 12s ease-in-out infinite alternate-reverse;
}

.headteacher-glow-center {
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, rgba(30, 75, 160, 0.22) 0%, transparent 70%);
  left: 50%;
  bottom: -60px;
  transform: translateX(-50%);
}

@keyframes headteacherFloatLeft {
  0% { transform: translateY(-50%) translate(0, 0) scale(1); }
  50% { transform: translateY(-50%) translate(25px, -20px) scale(1.06); }
  100% { transform: translateY(-50%) translate(-15px, 20px) scale(0.96); }
}

@keyframes headteacherFloatRight {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-30px, 25px) scale(1.08); }
  100% { transform: translate(20px, -20px) scale(0.94); }
}


.headteacher-bg-pattern {
  position: absolute;
  inset: 0;
  background-image: 
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.05) 1.2px, transparent 1.2px),
    linear-gradient(to right, rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
  background-size: 36px 36px, 72px 72px, 72px 72px;
  pointer-events: none;
  opacity: 0.8;
  z-index: 1;
  mask-image: radial-gradient(ellipse at center, black 45%, transparent 85%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 45%, transparent 85%);
}


.headteacher-bg-crest {
  position: absolute;
  right: 2%;
  top: 50%;
  transform: translateY(-48%) rotate(-5deg);
  width: 580px;
  height: 580px;
  pointer-events: none;
  z-index: 1;
  opacity: 0.05;
  filter: drop-shadow(0 0 35px rgba(229, 155, 39, 0.35));
}

.headteacher-crest-watermark {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: brightness(2) contrast(1.1);
}

.headteacher-container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
  z-index: 2;
}


.headteacher-header-wrap {
  text-align: center;
  margin-bottom: 3.8rem;
}

.headteacher-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-heading), 'Montserrat', sans-serif;
  font-size: 0.76rem;
  font-weight: 700;
  color: #f7a934;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  margin-bottom: 0.75rem;
}

.headteacher-eyebrow::before,
.headteacher-eyebrow::after {
  content: '';
  display: inline-block;
  width: 28px;
  height: 1px;
  background: linear-gradient(90deg, transparent, #f7a934);
}

.headteacher-eyebrow::after {
  background: linear-gradient(90deg, #f7a934, transparent);
}

.headteacher-main-title {
  text-align: center;
  font-family: var(--font-heading), 'Montserrat', sans-serif;
  font-size: clamp(2rem, 3.4vw, 2.75rem);
  font-weight: 700;
  background: linear-gradient(135deg, #ffffff 0%, #fde8b8 40%, #e59b27 75%, #d18519 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  line-height: 1.25;
  margin-bottom: 1.1rem;
  filter: drop-shadow(0 2px 12px rgba(0, 0, 0, 0.35));
}

.headteacher-title-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  max-width: 320px;
  margin: 0 auto;
}

.headteacher-title-divider .divider-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(229, 155, 39, 0.7), transparent);
}

.headteacher-title-divider .divider-diamond {
  color: #e59b27;
  font-size: 0.75rem;
  display: inline-block;
  line-height: 1;
  text-shadow: 0 0 10px rgba(229, 155, 39, 0.7);
}


.headteacher-content-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3.5rem;
}


.headteacher-shield-wrap {
  position: relative;
  flex-shrink: 0;
  width: 410px;
  max-width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.headteacher-shield-glow {
  position: absolute;
  inset: -15px;
  border-radius: 30px;
  background: radial-gradient(circle at 50% 50%, rgba(45, 115, 230, 0.35) 0%, rgba(229, 155, 39, 0.12) 50%, transparent 75%);
  filter: blur(28px);
  z-index: -1;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.headteacher-shield-wrap:hover {
  transform: translateY(-6px);
}

.headteacher-shield-wrap:hover .headteacher-shield-glow {
  opacity: 1.2;
  filter: blur(32px);
}

.headteacher-shield-img {
  height: auto;
  display: block;
  object-fit: contain;
  filter: 
    drop-shadow(0 20px 35px rgba(3, 9, 20, 0.75))
    drop-shadow(0 0 30px rgba(45, 110, 220, 0.28))
    drop-shadow(0 0 10px rgba(229, 155, 39, 0.2));
  transition: filter 0.4s ease;
}

.headteacher-shield-wrap:hover .headteacher-shield-img {
  filter: 
    drop-shadow(0 25px 45px rgba(3, 9, 20, 0.85))
    drop-shadow(0 0 40px rgba(45, 110, 220, 0.4))
    drop-shadow(0 0 16px rgba(229, 155, 39, 0.35));
}


.headteacher-text-block {
  position: relative;
  flex: 1;
  max-width: 610px;
  
  
  
  
  padding: 2.6rem 2.8rem;
  
  -webkit-backdrop-filter: blur(14px);
  
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.headteacher-text-block:hover {
  
  
}


.headteacher-quote-watermark {
  position: absolute;
  top: -1.2rem;
  left: 1.5rem;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 9.5rem;
  line-height: 1;
  color: rgba(229, 155, 39, 0.12);
  pointer-events: none;
  user-select: none;
  z-index: 0;
  transition: transform 0.4s ease, color 0.4s ease;
}

.headteacher-text-block:hover .headteacher-quote-watermark {
  color: rgba(229, 155, 39, 0.18);
  transform: translateY(-2px);
}

.headteacher-paragraph {
  position: relative;
  z-index: 1;
  font-family: var(--font-sans), 'Inter', sans-serif;
  font-size: 0.96rem;
  line-height: 1.76;
  color: rgba(254, 254, 255, 0.92);
  margin-bottom: 1.35rem;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

.headteacher-paragraph:last-of-type {
  margin-bottom: 0;
}


.headteacher-signature-wrap {
  position: relative;
  z-index: 1;
  margin-top: 1.8rem;
  margin-bottom: 2.2rem;
  padding-top: 1.4rem;
  border-top: 1px solid rgba(229, 155, 39, 0.22);
  display: flex;
  align-items: center;
  gap: 1.1rem;
}

.headteacher-seal-badge {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(229, 155, 39, 0.25) 0%, rgba(229, 155, 39, 0.08) 100%);
  border: 1.5px solid rgba(229, 155, 39, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #f7a934;
  font-size: 1.15rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25), inset 0 0 8px rgba(229, 155, 39, 0.2);
}

.headteacher-signature-title {
  font-family: var(--font-heading), 'Montserrat', sans-serif;
  font-size: 0.86rem;
  font-weight: 800;
  color: #f7a934;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  line-height: 1.45;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.headteacher-signature-title small {
  display: block;
  font-size: 0.74rem;
  font-weight: 600;
  color: rgba(254, 254, 255, 0.75);
  letter-spacing: 0.06em;
  margin-top: 0.15rem;
}


.headteacher-btn-wrap {
  position: relative;
  z-index: 1;
  display: flex;
}

.btn-read-more-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 2.4rem;
  border-radius: 9999px;
  border: 1.5px solid rgba(229, 155, 39, 0.75);
  background: linear-gradient(135deg, rgba(229, 155, 39, 0.15) 0%, rgba(20, 42, 85, 0.6) 100%);
  color: #ffffff;
  font-family: var(--font-heading), 'Montserrat', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 15px rgba(5, 12, 28, 0.4), 0 0 15px rgba(229, 155, 39, 0.15);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.btn-read-more-pill .pill-arrow-icon {
  font-size: 0.78rem;
  transition: transform 0.3s ease;
}

.btn-read-more-pill:hover {
  background: linear-gradient(135deg, #f7a934 0%, #e59b27 50%, #c87a14 100%);
  color: #0b162c;
  border-color: #fce2a6;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(229, 155, 39, 0.45), 0 0 25px rgba(229, 155, 39, 0.3);
}

.btn-read-more-pill:hover .pill-arrow-icon {
  transform: translateX(4px);
}


.services-carousel-section {
  padding: 5.5rem 0 6.5rem;
  background-color: #fff;
  position: relative;
  overflow: hidden;
}

.services-container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 3rem;
  position: relative;
}


.services-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1rem;
}

.services-eyebrow-text {
  font-family: var(--font-heading), 'Montserrat', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  color: #ffc107;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.services-eyebrow-line {
  width: 32px;
  height: 2px;
  background-color: #ffc107;
  display: inline-block;
}


.services-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 3rem;
  margin-bottom: 3rem;
}

.services-main-heading {
  font-family: var(--font-heading), 'Montserrat', sans-serif;
  font-size: clamp(2rem, 3.2vw, 2.75rem);
  font-weight: 600;
  line-height: 1.15;
  color: #111827;
  letter-spacing: -0.02em;
}

.services-lead-desc {
  max-width: 480px;
  font-family: var(--font-sans), 'Inter', sans-serif;
  font-size: 0.92rem;
  line-height: 1.65;
  color: #64748B;
}


.services-cards-stage {
  position: relative;
  width: 100%;
}

.services-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
  width: 100%;
}

.service-card {
  position: relative;
  height: 390px;
  border-radius: 18px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.14);
}

.service-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

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


.service-card-orange-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 48%;
  background: linear-gradient(to top, #ffc107 0%, rgb(202 130 25) 55%, rgba(255, 84, 33, 0) 100%);
  padding: 1.5rem 1.4rem;
  display: flex;
  align-items: flex-end;
  gap: 1.1rem;
  opacity: 0;
  transform: translateY(12px);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}
.service-card-orange-overlay h3{
  color: #fff;
}
.service-card.active .service-card-orange-overlay,
.service-card:hover .service-card-orange-overlay {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.service-circle-arrow-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: #ffffff;
  color: #FF5421;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease, background-color 0.3s ease, color 0.3s ease;
}

.service-card:hover .service-circle-arrow-btn {
  transform: scale(1.08);
}

.service-overlay-summary {
  font-family: var(--font-sans), 'Inter', sans-serif;
  font-size: 0.85rem;
  line-height: 1.45;
  color: #ffffff;
  font-weight: 500;
}


.services-nav-arrow-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background-color: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
  color: #f5b50a;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s ease;
}

.services-nav-arrow-btn:hover {
  background-color: #f5b50a;
  color: #ffffff;
  border-color: #f6b60a;
  transform: translateY(-50%) scale(1.08);
}

.services-nav-arrow-btn.prev-arrow {
  left: -23px;
}

.services-nav-arrow-btn.next-arrow {
  right: -23px;
}


.scroll-to-top-indicator {
  position: absolute;
  right: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  cursor: pointer;
}

.scroll-to-top-indicator .indicator-bar {
  width: 2px;
  height: 38px;
  background: linear-gradient(to bottom, #FF5421, #e2e8f0);
}

.scroll-to-top-indicator .indicator-text {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  transform: rotate(180deg);
  font-size: 0.7rem;
  font-weight: 600;
  color: #64748B;
  letter-spacing: 0.05em;
  transition: color 0.2s ease;
}

.scroll-to-top-indicator:hover .indicator-text {
  color: #FF5421;
}


@media (max-width: 992px) {
  .headteacher-section {
    padding: 5rem 0 5.5rem;
  }
  .headteacher-content-row {
    flex-direction: column;
    text-align: center;
    gap: 3rem;
  }
  .headteacher-text-block {
    text-align: left;
    padding: 2.2rem 2rem;
  }
  .headteacher-btn-wrap {
    justify-content: center;
  }
  .headteacher-signature-wrap {
    justify-content: flex-start;
  }
  .headteacher-bg-crest {
    width: 440px;
    height: 440px;
    opacity: 0.035;
    right: -10%;
  }
  .services-container {
    padding: 0 2rem;
  }
  .services-header-row {
    flex-direction: column;
    gap: 1.5rem;
  }
  .services-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .services-nav-arrow-btn.prev-arrow {
    left: 8px;
  }
  .services-nav-arrow-btn.next-arrow {
    right: 8px;
  }
}

@media (max-width: 640px) {
  .headteacher-section {
    padding: 4.2rem 0 4.8rem;
  }
  .headteacher-shield-wrap {
    width: 100%;
    max-width: 320px;
  }
  .headteacher-text-block {
    padding: 1.8rem 1.4rem;
  }
  .headteacher-quote-watermark {
    font-size: 6.5rem;
    left: 0.6rem;
    top: -0.8rem;
  }
  .headteacher-signature-wrap {
    flex-direction: column;
    text-align: center;
    gap: 0.75rem;
  }
  .headteacher-bg-crest {
    display: none;
  }
  .services-cards-grid {
    grid-template-columns: 1fr;
  }
  .service-card {
    height: 340px;
  }
  .scroll-to-top-indicator {
    display: none;
  }
}


.news-section {
  padding: 6rem 0;
  background-color: #fff;
}

.news-section-head-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 3rem;
}

.news-section-title-exact {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--braunton-maroon);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.news-header-controls-flex {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.arrow-circle-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1.5px solid var(--braunton-orange);
  background: transparent;
  color: var(--braunton-maroon);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.arrow-circle-btn:hover {
  background: var(--braunton-orange);
  color: #ffffff;
}

.btn-pill-view-all {
  padding: 0.55rem 1.6rem;
  border-radius: 30px;
  border: 1.5px solid var(--braunton-orange);
  color: var(--braunton-maroon);
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.2s ease;
}

.btn-pill-view-all:hover {
  background: var(--braunton-orange);
  color: #ffffff;
}

.news-carousel-wrapper {
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 0.8rem 0 1.5rem 0;
}

.news-carousel-wrapper::-webkit-scrollbar {
  display: none;
}

.news-overlay-grid {
  display: flex;
  gap: 1.8rem;
  width: max-content;
}

.news-overlay-card {
  position: relative;
  width: 380px;
  height: 380px;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
  cursor: pointer;
  flex-shrink: 0;
  transition: transform 0.35s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.35s ease;
}

.news-overlay-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 35px rgba(0, 0, 0, 0.22);
}

.news-card-full-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.news-overlay-card:hover .news-card-full-img {
  transform: scale(1.08);
}

.news-card-dark-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.05) 0%,
    rgba(0, 0, 0, 0.35) 45%,
    rgba(0, 0, 0, 0.92) 100%
  );
}

.news-date-pill {
  position: absolute;
  top: 16px;
  left: 16px;
  background-color: var(--braunton-orange);
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.35rem 0.9rem;
  border-radius: 20px;
  text-transform: uppercase;
  z-index: 10;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
}

.news-card-bottom-text {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.6rem;
  color: #ffffff;
  z-index: 10;
}

.news-card-overlay-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.25;
  margin-bottom: 0.6rem;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
}

.news-card-overlay-desc {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.45;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.7);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}


.gallery-creative-section {
  padding: 6.5rem 0 7rem;
  background: linear-gradient(180deg, #253961 0%, #263b89 50%, #242f58 100%);
  position: relative;
  overflow: hidden;
}


.gallery-glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  z-index: 1;
  opacity: 0.45;
}

.gallery-glow-orb.orb-1 {
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgba(25, 46, 89, 0.22) 0%, rgba(229, 155, 39, 0.15) 100%);
  top: -80px;
  right: -100px;
}

.gallery-glow-orb.orb-2 {
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(229, 155, 39, 0.2) 0%, rgba(72, 95, 148, 0.15) 100%);
  bottom: 40px;
  left: -120px;
}

.gallery-container-rel {
  position: relative;
  z-index: 2;
}


.gallery-creative-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 2rem;
  margin-bottom: 3.5rem;
}

.gallery-header-left {
  max-width: 620px;
}

.gallery-badge-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-heading), 'Montserrat', sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--braunton-orange);
  margin-bottom: 0.6rem;
}

.gallery-badge-eyebrow .pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--braunton-orange);
  box-shadow: 0 0 10px var(--braunton-orange);
  animation: pulseDot 2s infinite ease-in-out;
}

@keyframes pulseDot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.6; }
}

.gallery-title-creative {
  
  
  
  
  
  
  
  
  font-family: var(--font-heading), 'Montserrat', sans-serif;
  font-size: clamp(2rem, 3.2vw, 2.75rem);
  font-weight: 600;
  line-height: 1.15;
  color: #ffffff;
  letter-spacing: -0.02em;
}

.gallery-subtitle-creative {
  font-family: var(--font-sans), 'Inter', sans-serif;
  font-size: 0.96rem;
  line-height: 1.65;
  color: #ffffff;
  margin-top: 10px;
}


.gallery-filter-pills {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.gallery-filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.25rem;
  border-radius: 9999px;
  background-color: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.9);
  color: #475569;
  font-family: var(--font-heading), 'Montserrat', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-filter-btn:hover {
  background-color: #fafbfc;
  color: var(--braunton-maroon);
  border-color: rgba(25, 46, 89, 0.25);
  transform: translateY(-2px);
}

.gallery-filter-btn.active {
  background: linear-gradient(135deg, var(--braunton-maroon) 0%, var(--braunton-maroon-dark) 100%);
  color: #ffffff;
  border-color: var(--braunton-maroon);
  box-shadow: 0 6px 20px rgba(25, 46, 89, 0.28);
}

.gallery-filter-btn .filter-count {
  font-size: 0.7rem;
  padding: 0.15rem 0.45rem;
  border-radius: 10px;
  background-color: rgba(0, 0, 0, 0.06);
  color: inherit;
  font-weight: 800;
  transition: background-color 0.3s ease;
}

.gallery-filter-btn.active .filter-count {
  background-color: rgba(255, 255, 255, 0.22);
}


.gallery-bento-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 240px;
  gap: 1.5rem;
  width: 100%;
}

.bento-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.07);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease, opacity 0.35s ease;
}

.bento-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 20px 42px rgba(25, 46, 89, 0.16);
}


.bento-card.bento-hero {
  grid-column: span 2;
  grid-row: span 2;
}

.bento-card.bento-tall {
  grid-column: span 1;
  grid-row: span 2;
}

.bento-card.bento-wide {
  grid-column: span 1;
  grid-row: span 1;
}

.bento-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.bento-card:hover .bento-img {
  transform: scale(1.08);
}


.bento-glass-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(15, 23, 42, 0.12) 0%,
    rgba(15, 23, 42, 0.25) 45%,
    rgba(15, 23, 42, 0.92) 100%
  );
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.5rem;
  color: #ffffff;
  transition: background 0.4s ease;
}

.bento-hero .bento-glass-overlay {
  padding: 2.2rem;
  background: linear-gradient(
    180deg,
    rgba(15, 23, 42, 0.15) 0%,
    rgba(15, 23, 42, 0.35) 45%,
    rgba(25, 46, 89, 0.95) 100%
  );
}

.bento-card:hover .bento-glass-overlay {
  background: linear-gradient(
    180deg,
    rgba(15, 23, 42, 0.1) 0%,
    rgba(15, 23, 42, 0.3) 40%,
    rgba(25, 46, 89, 0.94) 100%
  );
}


.bento-top-badges {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 0.5rem;
}

.bento-tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.38rem 0.85rem;
  border-radius: 9999px;
  font-family: var(--font-heading), 'Montserrat', sans-serif;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #ffffff;
}

.bento-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.38rem 0.85rem;
  border-radius: 9999px;
  background: rgba(229, 155, 39, 0.9);
  backdrop-filter: blur(10px);
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.badge-pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #ffffff;
  box-shadow: 0 0 6px #ffffff;
  animation: pulseDot 1.5s infinite ease-in-out;
}


.bento-bottom-info {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.bento-meta-date {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--braunton-orange);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.bento-card-title {
  font-family: var(--font-heading), 'Montserrat', sans-serif;
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.25;
  color: #ffffff;
}

.bento-hero .bento-card-title {
  font-size: 1.65rem;
  line-height: 1.2;
}

.bento-card-desc {
  font-family: var(--font-sans);
  font-size: 0.88rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.85);
  margin-top: 0.3rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}


.bento-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.bento-view-prompt {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: color 0.3s ease;
}

.bento-card:hover .bento-view-prompt {
  color: #ffffff;
}

.bento-expand-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: #ffffff;
  transition: all 0.3s ease;
}

.bento-card:hover .bento-expand-btn {
  background: #ffffff;
  color: var(--braunton-maroon);
  transform: rotate(45deg);
}


.gallery-metrics-strip {
  margin-top: 4rem;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(226, 232, 240, 0.85);
  border-radius: 22px;
  padding: 1.8rem 2.8rem;
  display: flex;
  justify-content: space-around;
  align-items: center;
  box-shadow: 0 12px 36px rgba(15, 23, 42, 0.06);
}

.metric-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.metric-number {
  font-family: var(--font-heading), 'Montserrat', sans-serif;
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--braunton-maroon);
  line-height: 1;
  margin-bottom: 0.35rem;
}

.metric-label {
  font-family: var(--font-sans), 'Inter', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.metric-divider {
  width: 1px;
  height: 40px;
  background: rgba(203, 213, 225, 0.8);
}


.gallery-lightbox-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
  padding: 1.5rem;
}

.gallery-lightbox-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.gallery-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 15, 30, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.gallery-lightbox-dialog {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 960px;
  background: #ffffff;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35);
  transform: scale(0.92);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-lightbox-modal.active .gallery-lightbox-dialog {
  transform: scale(1);
}

.lightbox-close-btn {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 20;
  transition: all 0.2s ease;
}

.lightbox-close-btn:hover {
  background: var(--braunton-maroon);
  transform: rotate(90deg);
}

.lightbox-content-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr;
}

.lightbox-media-wrap {
  position: relative;
  background: #0f172a;
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-img {
  width: 100%;
  height: 100%;
  max-height: 520px;
  object-fit: cover;
  display: block;
}

.lightbox-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #ffffff;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s ease;
}

.lightbox-nav-btn:hover {
  background: #ffffff;
  color: var(--braunton-maroon);
  transform: translateY(-50%) scale(1.1);
}

.lightbox-nav-btn.prev {
  left: 1rem;
}

.lightbox-nav-btn.next {
  right: 1rem;
}

.lightbox-text-wrap {
  padding: 3rem 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #ffffff;
}

.lightbox-category-tag {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--braunton-orange);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 0.75rem;
}

.lightbox-headline {
  font-family: var(--font-heading), 'Montserrat', sans-serif;
  font-size: 1.6rem;
  font-weight: 900;
  line-height: 1.2;
  color: var(--braunton-maroon-dark);
  margin-bottom: 0.5rem;
}

.lightbox-date {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  color: #94a3b8;
  font-weight: 600;
  margin-bottom: 1.4rem;
  display: block;
}

.lightbox-description {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  line-height: 1.7;
  color: #475569;
  margin-bottom: 1.8rem;
}

.lightbox-badge-strip {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.lightbox-mini-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.85rem;
  border-radius: 8px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #64748b;
  font-size: 0.75rem;
  font-weight: 700;
  font-family: var(--font-heading);
}


@media (max-width: 1024px) {
  .gallery-bento-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 240px;
  }
  .bento-card.bento-hero {
    grid-column: span 2;
    grid-row: span 1;
    height: 340px;
  }
  .bento-card.bento-tall {
    grid-column: span 1;
    grid-row: span 1;
    height: 240px;
  }
  .lightbox-content-grid {
    grid-template-columns: 1fr;
  }
  .lightbox-media-wrap {
    min-height: 300px;
  }
  .lightbox-text-wrap {
    padding: 2rem;
  }
}

@media (max-width: 640px) {
  .gallery-bento-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
  }
  .bento-card,
  .bento-card.bento-hero,
  .bento-card.bento-tall,
  .bento-card.bento-wide {
    grid-column: span 1;
    grid-row: span 1;
    height: 300px;
  }
  .gallery-metrics-strip {
    flex-direction: column;
    gap: 1.5rem;
    padding: 1.8rem;
  }
  .metric-divider {
    width: 60px;
    height: 1px;
  }
  .gallery-filter-pills {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 0.5rem;
  }
}



.social-banner-section {
  position: relative;
  background:
    radial-gradient(ellipse 650px 480px at 82% 18%, rgba(229, 155, 39, 0.18) 0%, transparent 60%),
    radial-gradient(ellipse 700px 520px at 18% 82%, rgba(0, 242, 214, 0.16) 0%, transparent 60%),
    radial-gradient(ellipse 950px 750px at 50% 50%, rgba(0, 168, 150, 0.4) 0%, transparent 70%),
    linear-gradient(140deg, #012e28 0%, #004b3f 22%, #006a5e 50%, #007a6d 76%, #00463c 100%);
  color: #ffffff;
  padding: 5.5rem 0 6.5rem 0;
  overflow: hidden;
  box-shadow: inset 0 25px 40px -20px rgba(0, 0, 0, 0.45), inset 0 -25px 40px -20px rgba(0, 0, 0, 0.45);
}


.social-banner-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1.5px;
  background: linear-gradient(90deg, 
    transparent 0%, 
    rgba(229, 155, 39, 0.25) 15%, 
    rgba(255, 255, 255, 0.8) 50%, 
    rgba(229, 155, 39, 0.25) 85%, 
    transparent 100%
  );
  box-shadow: 0 0 14px rgba(229, 155, 39, 0.7);
  z-index: 10;
}

.social-banner-section::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1.5px;
  background: linear-gradient(90deg, 
    transparent 0%, 
    rgba(0, 240, 215, 0.25) 15%, 
    rgba(229, 155, 39, 0.7) 50%, 
    rgba(0, 240, 215, 0.25) 85%, 
    transparent 100%
  );
  box-shadow: 0 0 14px rgba(0, 240, 215, 0.6);
  z-index: 10;
}


.social-bg-pattern-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  opacity: 0.75;
  mix-blend-mode: screen;
  mask-image: radial-gradient(ellipse 1100px 700px at 50% 50%, rgba(0, 0, 0, 0.6) 20%, rgba(0, 0, 0, 0.95) 75%, black 100%);
  -webkit-mask-image: radial-gradient(ellipse 1100px 700px at 50% 50%, rgba(0, 0, 0, 0.6) 20%, rgba(0, 0, 0, 0.95) 75%, black 100%);
}


.social-ambient-orbs {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
}

.ambient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(65px);
  pointer-events: none;
  opacity: 0.65;
}

.ambient-orb.orb-gold-1 {
  width: 420px;
  height: 420px;
  top: -80px;
  right: 6%;
  background: radial-gradient(circle, rgba(229, 155, 39, 0.38) 0%, rgba(229, 155, 39, 0.1) 50%, transparent 70%);
  animation: floatOrbGold 22s ease-in-out infinite alternate;
}

.ambient-orb.orb-cyan-1 {
  width: 480px;
  height: 480px;
  bottom: -100px;
  left: 4%;
  background: radial-gradient(circle, rgba(0, 242, 214, 0.3) 0%, rgba(0, 150, 136, 0.12) 50%, transparent 70%);
  animation: floatOrbCyan 26s ease-in-out infinite alternate;
}

.ambient-orb.orb-center-emerald {
  width: 600px;
  height: 600px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(38, 166, 154, 0.22) 0%, transparent 65%);
}

@keyframes floatOrbGold {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-35px, 45px) scale(1.12); }
  100% { transform: translate(30px, -25px) scale(0.94); }
}

@keyframes floatOrbCyan {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(45px, -40px) scale(1.1); }
  100% { transform: translate(-30px, 30px) scale(0.9); }
}


.watermark-crest-system {
  position: absolute;
  right: -30px;
  top: 50%;
  transform: translateY(-50%);
  width: 740px;
  height: 740px;
  pointer-events: none;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.crest-ambient-glow {
  position: absolute;
  width: 540px;
  height: 540px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(229, 155, 39, 0.18) 0%, rgba(0, 240, 215, 0.14) 40%, transparent 70%);
  filter: blur(45px);
}

.crest-orbit-ring {
  position: absolute;
  border-radius: 50%;
  box-sizing: border-box;
  pointer-events: none;
}

.crest-orbit-ring.ring-outer {
  width: 700px;
  height: 700px;
  border: 1px dashed rgba(229, 155, 39, 0.32);
  animation: slowRotateClockwise 85s linear infinite;
}

.crest-orbit-ring.ring-middle {
  width: 560px;
  height: 560px;
  border: 1.2px solid rgba(255, 255, 255, 0.22);
  animation: slowRotateCounter 55s linear infinite;
}

.crest-orbit-ring.ring-inner {
  width: 420px;
  height: 420px;
  border: 1px dashed rgba(0, 240, 215, 0.32);
  animation: slowRotateClockwise 40s linear infinite;
}

.orbit-pip {
  position: absolute;
  font-size: 0.9rem;
  color: rgba(229, 155, 39, 0.85);
  line-height: 1;
  text-shadow: 0 0 10px rgba(229, 155, 39, 0.9);
  transform: translate(-50%, -50%);
}

.pip-top { top: 0; left: 50%; }
.pip-right { top: 50%; left: 100%; }
.pip-bottom { top: 100%; left: 50%; }
.pip-left { top: 50%; left: 0; }


.watermark-crest-system.left-accent {
  right: auto;
  left: -180px;
  width: 620px;
  height: 620px;
  opacity: 0.55;
}

.left-accent .ring-outer {
  width: 580px;
  height: 580px;
  border-color: rgba(0, 240, 215, 0.22);
}

.left-accent .ring-middle {
  width: 450px;
  height: 450px;
  border-color: rgba(255, 255, 255, 0.15);
}

.left-accent .crest-shield-img {
  width: 52%;
  opacity: 0.14;
  filter: drop-shadow(0 0 30px rgba(0, 240, 215, 0.35));
}


.watermark-crest-bg {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.crest-shield-img {
  width: 68%;
  max-width: 540px;
  height: auto;
  opacity: 0.28;
  filter: drop-shadow(0 0 30px rgba(0, 240, 215, 0.28)) drop-shadow(0 0 60px rgba(229, 155, 39, 0.22));
  transition: opacity 0.4s ease, filter 0.4s ease;
}


.bg-sparkles-container {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.bg-sparkle {
  position: absolute;
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.8rem;
  pointer-events: none;
  animation: sparkleTwinkle 4s ease-in-out infinite;
}

.sp-gold {
  color: rgba(229, 155, 39, 0.75);
  text-shadow: 0 0 12px rgba(229, 155, 39, 0.8);
}

.sp-cyan {
  color: rgba(0, 242, 214, 0.75);
  text-shadow: 0 0 12px rgba(0, 242, 214, 0.8);
}

.sp-1 { top: 16%; left: 12%; animation-delay: 0s; font-size: 0.9rem; }
.sp-2 { top: 32%; left: 47%; animation-delay: 1.2s; font-size: 0.65rem; }
.sp-3 { top: 78%; left: 36%; animation-delay: 2.1s; font-size: 1rem; }
.sp-4 { top: 14%; right: 26%; animation-delay: 0.7s; font-size: 0.85rem; }
.sp-5 { top: 84%; right: 16%; animation-delay: 1.8s; font-size: 0.75rem; }
.sp-6 { top: 46%; right: 5%; animation-delay: 2.8s; font-size: 0.95rem; }

@keyframes sparkleTwinkle {
  0%, 100% { opacity: 0.2; transform: scale(0.85); }
  50% { opacity: 0.95; transform: scale(1.3); }
}

@keyframes slowRotateClockwise {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes slowRotateCounter {
  from { transform: rotate(360deg); }
  to { transform: rotate(0deg); }
}
.social-section-layout {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: flex-start;
}


.vertical-social-tag {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 3px;
  color: #ffffff;
  text-transform: uppercase;
  flex-shrink: 0;
  margin-right: 1.2rem;
  user-select: none;
  padding-top: 1rem;
}


.facebook-feed-col,
.exam-feed-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.feed-card-wrapper,
.exam-card-wrapper {
  display: flex;
  align-items: stretch;
  position: relative;
  margin-bottom: 1.5rem;
}

.fb-main-card,
.exam-main-card {
  background: #ffffff;
  color: var(--text-dark);
  border-radius: 12px;
  padding: 2.2rem 2.2rem 5.2rem 2.2rem;
  width: 375px;
  position: relative;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.38), 0 0 45px rgba(0, 240, 215, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.85);
  text-align: center;
  min-height: 490px;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.exam-card-header {
  margin-bottom: 1rem;
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 0.8rem;
}

.exam-eyebrow-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(0, 150, 136, 0.1);
  color: #00796b;
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}

.exam-brand-header {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 900;
  color: #111827;
  letter-spacing: 0.3px;
  line-height: 1.25;
  margin-bottom: 0.3rem;
  text-transform: uppercase;
}

.exam-brand-sub {
  font-size: 0.8rem;
  font-weight: 600;
  color: #64748b;
  line-height: 1.3;
  margin-bottom: 0;
}

.exam-carousel-stage {
  position: relative;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 250px;
}

.exam-active-slide {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1), transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.exam-active-slide.slide-out {
  opacity: 0;
  transform: translateY(-10px);
}

.exam-active-slide.slide-in {
  opacity: 0;
  transform: translateY(10px);
}

.exam-logo-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 0.8rem 1.2rem;
  height: 95px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0.2rem auto 0.9rem auto;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02);
  width: 100%;
  max-width: 320px;
}

.exam-board-logo {
  max-height: 65px;
  max-width: 90%;
  width: auto;
  object-fit: contain;
  transition: transform 0.3s ease;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.05));
}

.exam-main-card:hover .exam-board-logo {
  transform: scale(1.05);
}

.exam-board-name {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.3;
  margin-bottom: 0.45rem;
}

.exam-board-desc {
  font-size: 0.82rem;
  color: #475569;
  line-height: 1.45;
  margin-bottom: 0.8rem;
  min-height: 52px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.exam-tags-row {
  display: flex;
  gap: 0.4rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: auto;
}

.exam-tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  background: #f1f5f9;
  color: #334155;
  border: 1px solid #e2e8f0;
}

.exam-tag-pill i {
  color: #009688;
  font-size: 0.7rem;
}


.fb-overlay-vacancy-card,
.exam-overlay-card {
  position: absolute;
  bottom: -35px;
  right: -75px;
  width: 320px;
  background-color: #3d0318;
  border-radius: 8px;
  padding: 1.4rem 1.6rem;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.45);
  z-index: 10;
  text-align: left;
  border-left: 3px solid #e59b27;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.exam-overlay-card.overlay-out {
  opacity: 0;
  transform: translateY(6px);
}

.vacancy-date-orange {
  color: #e59b27;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  margin-bottom: 0.6rem;
  text-transform: uppercase;
}

.vacancy-body-text {
  color: #ffffff;
  font-size: 0.82rem;
  line-height: 1.45;
  font-weight: 400;
}

.vacancy-body-text strong {
  color: #ffffff;
  font-weight: 700;
}


.fb-carousel-controls,
.exam-carousel-controls,
.gallery-carousel-controls {
  display: flex;
  gap: 1.2rem;
  margin-top: 2rem;
  padding-left: 2.8rem;
  align-items: center;
}

.orange-circle-arrow {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1.5px solid #e59b27;
  background: transparent;
  color: #e59b27;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.orange-circle-arrow:hover {
  background: #e59b27;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(229, 155, 39, 0.4);
}

.orange-circle-arrow:active {
  transform: translateY(0);
}

.fb-post-counter,
.exam-post-counter,
.gallery-post-counter {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: #ffffff;
  min-width: 48px;
  text-align: center;
}


.carousel-dots-strip {
  display: flex;
  gap: 0.45rem;
  align-items: center;
  margin-left: 0.4rem;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  padding: 0;
}

.carousel-dot:hover {
  background: rgba(255, 255, 255, 0.7);
  transform: scale(1.15);
}

.carousel-dot.active {
  background: #e59b27;
  width: 20px;
  border-radius: 10px;
  box-shadow: 0 0 8px rgba(229, 155, 39, 0.5);
}


.happening-right-col,
.gallery-right-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.happening-header-box {
  margin-bottom: 2.2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.happening-main-title {
  font-family: var(--font-heading);
  font-size: 2.1rem;
  font-weight: 800;
  letter-spacing: 2px;
  color: #ffffff;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}

.happening-sub-text {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 1.3rem;
  max-width: 440px;
  line-height: 1.4;
}

.social-circles-row {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.social-icon-ring {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.2px solid rgba(255, 255, 255, 0.8);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-icon-ring:hover {
  background: #ffffff;
  color: #009688;
  border-color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}


.instagram-feed-wrapper,
.gallery-feed-wrapper {
  display: flex;
  align-items: stretch;
  width: 100%;
  max-width: 420px;
  justify-content: center;
  position: relative;
}

.instagram-photo-card,
.gallery-photo-card {
  flex-grow: 1;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.55), 0 0 45px rgba(229, 155, 39, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.14);
  position: relative;
  background-color: #0b0205;
  cursor: pointer;
  outline: none;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease;
}

.gallery-photo-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.55);
}

.gallery-photo-card:focus-visible {
  box-shadow: 0 0 0 3px #e59b27, 0 20px 45px rgba(0, 0, 0, 0.55);
}

.insta-photo-container,
.gallery-photo-container {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  min-height: 380px;
  overflow: hidden;
}

.insta-bg-img,
.gallery-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease, filter 0.6s ease;
  filter: brightness(0.68) contrast(1.15);
}

.gallery-photo-card:hover .gallery-bg-img {
  transform: scale(1.06);
  filter: brightness(0.82) contrast(1.1);
}

.gallery-bg-img.img-fade-out {
  opacity: 0.3;
}

.insta-dark-gradient-overlay,
.gallery-gradient-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5, 2, 4, 0.3) 0%, rgba(5, 2, 4, 0.45) 45%, rgba(5, 2, 4, 0.95) 92%),
              radial-gradient(circle at 75% 75%, rgba(229, 155, 39, 0.22) 0%, transparent 60%);
  pointer-events: none;
}

.insta-overlay-content,
.gallery-overlay-content {
  position: absolute;
  inset: 0;
  padding: 1.6rem 1.6rem 1.4rem 1.6rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  z-index: 3;
  transition: opacity 0.3s ease;
}

.gallery-overlay-content.content-fade-out {
  opacity: 0;
}

.gallery-top-badge-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.gallery-category-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(229, 155, 39, 0.95);
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 1.2px;
  padding: 0.35rem 0.8rem;
  border-radius: 4px;
  text-transform: uppercase;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.gallery-zoom-badge {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.gallery-photo-card:hover .gallery-zoom-badge {
  background: #ffffff;
  color: #111827;
  transform: rotate(90deg);
}

.gallery-info-block {
  margin-top: auto;
  margin-bottom: 0.8rem;
  text-align: left;
}

.gallery-location-tag {
  display: inline-block;
  font-size: 0.78rem;
  color: #e59b27;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 0.35rem;
}

.gallery-location-tag i {
  margin-right: 0.2rem;
}

.insta-post-title,
.gallery-post-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  color: #ffffff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9);
  letter-spacing: 0.3px;
  text-align: left;
  line-height: 1.25;
  margin-bottom: 0.4rem;
}

.gallery-caption-text {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.4;
  margin-bottom: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-align: left;
}

.insta-card-footer-icons,
.gallery-card-footer-icons {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #ffffff;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  padding-top: 0.8rem;
}

.gallery-photo-count {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.82rem;
  font-weight: 700;
}

.gallery-prompt-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #e59b27;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  transition: transform 0.2s ease, color 0.2s ease;
}

.gallery-photo-card:hover .gallery-prompt-btn {
  color: #ffffff;
  transform: translateX(4px);
}


@media (max-width: 992px) {
  .social-section-layout {
    grid-template-columns: 1fr;
    gap: 4.5rem;
    justify-items: center;
    justify-content: center;
  }
  .facebook-feed-col,
  .exam-feed-col,
  .happening-right-col,
  .gallery-right-col {
    align-items: center;
    width: 95%;
  }
  .feed-card-wrapper,
  .exam-card-wrapper,
  .instagram-feed-wrapper,
  .gallery-feed-wrapper {
    width: 100%;
    max-width: 420px;
    justify-content: center;
  }
  .fb-main-card,
  .exam-main-card {
    width: 100%;
    max-width: 380px;
  }
  .fb-overlay-vacancy-card,
  .exam-overlay-card {
    right: -15px;
    width: 300px;
  }
  .fb-carousel-controls,
  .exam-carousel-controls,
  .gallery-carousel-controls {
    padding-left: 0;
    justify-content: center;
  }
  .watermark-crest-system.left-accent {
    display: none;
  }
  .watermark-crest-system {
    width: 600px;
    height: 600px;
    right: -50px;
    opacity: 0.35;
  }
  .watermark-crest-bg {
    opacity: 0.2;
  }
}

@media (max-width: 600px) {
  .social-banner-section {
    padding: 3.5rem 0 4.5rem 0;
  }
  .watermark-crest-system {
    width: 460px;
    height: 460px;
    right: 50%;
    transform: translate(50%, -50%);
    opacity: 0.2;
  }
  .social-bg-pattern-layer {
    opacity: 0.45;
  }
  .vertical-social-tag {
    display: none;
  }
  .fb-main-card,
  .exam-main-card {
    padding: 1.8rem 1.4rem 6.5rem 1.4rem;
    min-height: 460px;
  }
  .fb-overlay-vacancy-card,
  .exam-overlay-card {
    right: 0;
    left: 0;
    margin: 0 auto;
    width: 92%;
    bottom: -35px;
    padding: 1.1rem 1.2rem;
  }
  .happening-main-title {
    font-size: 1.7rem;
  }
}


.house-points-section-exact {
  padding: 5.5rem 0 6.5rem 0;
  background-color: #ffffff;
}

.house-exact-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3.5rem;
}


.house-exact-left-col {
  flex: 0 0 32%;
  max-width: 380px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.house-exact-title {
  font-family: var(--font-heading);
  font-size: 2.3rem;
  font-weight: 800;
  color: #192e59;
  
  letter-spacing: 0.5px;
  margin-bottom: 1.2rem;
  line-height: 1.15;
  font-family: var(--font-heading), 'Montserrat', sans-serif;
  font-size: clamp(2rem, 3.2vw, 2.75rem);
  font-weight: 600;
  line-height: 1.15;
  
  letter-spacing: -0.02em;
}

.house-exact-desc {
  font-size: 0.96rem;
  color: #333333;
  line-height: 1.5;
  margin-bottom: 2.2rem;
  font-weight: 500;
}

.btn-house-find-more {
  display: inline-block;
  padding: 0.6rem 1.6rem;
  border: 1.5px solid #e59b27;
  border-radius: 30px;
  color: #192e59;
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-decoration: none;
  background: transparent;
  transition: all 0.25s ease;
}

.btn-house-find-more:hover {
  background-color: #e59b27;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(229, 155, 39, 0.3);
}


.house-exact-shields-row {
  flex: 1;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1.8rem;
}

.house-exact-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex: 1;
}

.house-shield-wrap {
  width: 100%;
  max-width: 135px;
  margin-bottom: 1.2rem;
}

.exact-house-shield-svg {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.08));
  transition: transform 0.3s ease;
}

.house-exact-item:hover .exact-house-shield-svg {
  transform: translateY(-6px);
}

.house-exact-name {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 0.25rem;
  margin-top: 0;
  line-height: 1.2;
}

.house-exact-score {
  font-family: var(--font-heading);
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.5px;
}


.name-red, .score-red {
  color: #b71c1c;
}

.name-blue, .score-blue {
  color: #1976d2;
}

.name-green, .score-green {
  color: #2d7857;
}

.name-amber, .score-amber, .name-gold, .score-gold {
  color: #e59b27;
}

.name-maroon, .score-maroon {
  color: #192e59;
}


@media (max-width: 992px) {
  .house-exact-container {
    flex-direction: column;
    gap: 3rem;
  }
  
  .house-exact-left-col {
    flex: 1;
    max-width: 100%;
    align-items: center;
    text-align: center;
  }

  .house-exact-desc {
    max-width: 550px;
  }

  .house-exact-shields-row {
    width: 100%;
  }
}

@media (max-width: 650px) {
  .house-exact-shields-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem 1.5rem;
  }
}


.head-students-section {
  width: 100%;
  min-height: 100vh;
  padding: 4.5rem 0;
  background-color: #f8fdfe;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.head-students-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
  flex: 1;
}


.head-students-title {
  font-family: 'Cormorant Garamond', 'Cinzel', serif;
  font-size: clamp(2.6rem, 4.5vw, 4rem);
  font-weight: 500;
  color: #A82029;
  text-align: center;
  margin-bottom: clamp(2.5rem, 4.5vw, 4.5rem);
  letter-spacing: 0.5px;
  font-family: var(--font-heading), 'Montserrat', sans-serif;
  font-size: clamp(2rem, 3.2vw, 2.75rem);
  font-weight: 600;
  line-height: 1.15;
  color: #111827;
  letter-spacing: -0.02em;
}


.head-students-stage-row {
  position: relative;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 280px;
}


.head-student-side-preview {
  position: absolute;
  width: clamp(180px, 18vw, 340px);
  height: clamp(180px, 18vw, 340px);
  top: 50%;
  transform: translateY(-10%);
  z-index: 1;
  cursor: pointer;
  transition: all 0.35s ease;
  overflow: hidden;
}

.preview-left {
  left: 0;
}

.preview-right {
  right: 0;
}

.side-photo-wrap {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.side-photo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.34;
  filter: contrast(0.92);
  transition: transform 0.4s ease, opacity 0.35s ease;
}

.side-photo-fade-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.78) 100%);
  pointer-events: none;
}

.head-student-side-preview:hover .side-photo-wrap img {
  opacity: 0.6;
  transform: scale(1.05);
}


.head-student-active-card {
  display: flex;
  align-items: center;
  gap: clamp(1.8rem, 2.5vw, 3rem);
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  z-index: 3;
  position: relative;
  background: #ffffff;
  transition: opacity 0.25s ease, transform 0.25s ease;
  padding: 0 0;
}

.head-student-photo-box {
  position: relative;
  width: clamp(300px, 20vw, 400px);
  height: clamp(300px, 20vw, 400px);
  flex-shrink: 0;
}

.head-student-photo-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}


.quote-gold-mark {
  position: absolute;
  top: -30px;
  right: -20px;
  font-family: Georgia, serif;
  font-size: clamp(4.2rem, 5vw, 5.5rem);
  line-height: 1;
  color: #A89967;
  font-weight: 700;
  user-select: none;
  pointer-events: none;
}

.head-student-text-box {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-left: 0.6rem;
  padding-right: 15px;
}
.head-student-text-box h3{
  margin-bottom: 15px;
  font-size: 26px;
}
.head-student-quote-text {
  font-family: var(--font-sans);
  font-size: clamp(0.92rem, 1.1vw, 1.05rem);
  color: #333333;
  line-height: 1.65;
  font-weight: 400;
  margin-bottom: 1.4rem;
  max-width: 480px;
}

.head-student-author-row {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.author-dash-line {
  display: inline-block;
  width: 22px;
  height: 2px;
  background-color: #A82029;
  flex-shrink: 0;
}

.author-name-text {
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 800;
  color: #A82029;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}


.head-students-nav-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: clamp(2.5rem, 4vw, 4rem);
  position: relative;
  z-index: 5;
}

.hs-arrow-btn {
  width: 52px;
  height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 0;
  outline: none;
  transition: all 0.25s ease;
  padding: 0;
}

.btn-prev-solid {
  background-color: #df9624;
  border: 0;
  color: #fff;
}

.btn-prev-solid:hover {
  background-color: #968656;
  border-color: #968656;
  transform: translateY(-2px);
}

.btn-next-outline {
  background-color: #ffffff;
  border: 1.5px solid #A89967;
}

.btn-next-outline:hover {
  background-color: #f9f8f4;
  border-color: #968656;
  transform: translateY(-2px);
}


@media (max-width: 992px) {
  .head-students-section {
    min-height: auto;
    padding: 4.5rem 0 5rem 0;
  }

  .head-student-side-preview {
    width: 120px;
    height: 120px;
    opacity: 0.7;
  }
}

@media (max-width: 768px) {
  .head-student-side-preview {
    display: none;
  }

  .head-student-active-card {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
    padding-bottom: 30px;
  }

  .head-student-text-box {
    padding-left: 15px;
    align-items: center;
  }

  .head-student-author-row {
    justify-content: center;
  }
}


.events-section-wrapper {
  background-color: #f3f3f5;
  padding: 7rem 0 7rem 0;
  position: relative;
  margin-top: 0;
}

.events-inner-container {
  position: relative;
}

.events-header-center-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3.5rem;
  margin-bottom: 4.5rem;
}

.events-main-title {
  font-family: var(--font-heading), 'Montserrat', sans-serif;
  font-size: clamp(1.8rem, 3.2vw, 2.5rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #192e59;
  text-transform: uppercase;
  margin: 0;
  line-height: 1.15;
  text-align: center;
}

.events-arrow-btn {
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 1.5px solid #e59b27;
  background: transparent;
  color: #192e59;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.events-arrow-btn:hover {
  background-color: #e59b27;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(229, 155, 39, 0.35);
}

.events-timeline-track {
  position: relative;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 1rem 0 2rem 0;
  cursor: grab;
}

.events-timeline-track.is-dragging {
  cursor: grabbing;
  user-select: none;
  scroll-behavior: auto;
}

.events-timeline-track::-webkit-scrollbar {
  display: none;
}

.events-grid-row {
  display: flex;
  gap: 3.5rem;
  width: max-content;
  position: relative;
  z-index: 2;
  padding: 0 3rem 0 1rem;
}


.events-grid-row::before {
  content: '';
  position: absolute;
  bottom: 12px;
  left: 0;
  right: 0;
  height: 2px;
  background-color: #192e59;
  opacity: 0.85;
  z-index: 1;
}

.event-timeline-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: relative;
  width: 250px;
  flex-shrink: 0;
  cursor: pointer;
}

.event-content-top {
  min-height: 85px;
  height: auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-left: 0;
}

.event-date-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 0.3rem;
}

.orange-dot {
  width: 8px;
  height: 8px;
  background-color: #e59b27;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 6px rgba(229, 155, 39, 0.6);
}

.event-date-text {
  font-family: var(--font-heading);
  font-size: 0.98rem;
  font-weight: 800;
  color: #e59b27;
  letter-spacing: 1.2px;
}

.event-item-title {
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 700;
  color: #0f1d38;
  line-height: 1.35;
  margin: 0;
  padding-left: 14px;
  max-width: 230px;
  transition: color 0.2s ease;
}

.event-timeline-item:hover .event-item-title {
  color: var(--braunton-orange);
}

.event-stem-line {
  width: 2px;
  height: 55px;
  background-color: #192e59;
  margin-left: 11.5px;
  opacity: 0.75;
}

.event-node-plus {
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background-color: #192e59;
  border: none;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 800;
  margin-left: 0;
  user-select: none;
  box-shadow: 0 2px 8px rgba(25, 46, 89, 0.35);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  z-index: 3;
  position: relative;
}

.event-timeline-item:hover .event-node-plus {
  transform: scale(1.3);
  background-color: #e59b27;
  box-shadow: 0 0 12px rgba(229, 155, 39, 0.6);
}


.event-modal-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(15, 5, 20, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 20000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.event-modal-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.event-modal-card {
  background-color: #ffffff;
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 16px;
  padding: 2.2rem 2rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  position: relative;
  border-top: 5px solid var(--braunton-orange);
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.event-modal-backdrop.active .event-modal-card {
  transform: translateY(0);
}

.event-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #f4eaee;
  border: none;
  color: var(--braunton-maroon);
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.event-modal-close:hover {
  background: var(--braunton-maroon);
  color: #ffffff;
}

.event-modal-badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--braunton-orange) 0%, #c47d17 100%);
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 0.8rem;
  letter-spacing: 1px;
}

.event-modal-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--braunton-maroon-dark);
  line-height: 1.25;
  margin-bottom: 0.8rem;
}

.event-modal-meta {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.82rem;
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #f0e6ea;
}

.event-modal-meta span {
  display: flex;
  align-items: center;
  gap: 8px;
}

.event-modal-meta i {
  color: var(--braunton-orange);
}

.event-modal-desc {
  font-size: 0.88rem;
  color: #333333;
  line-height: 1.5;
  margin-bottom: 1.5rem;
}

.event-modal-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  align-items: center;
  flex-wrap: wrap;
}

.btn-pill-orange {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: var(--braunton-orange);
  color: #ffffff;
  padding: 10px 20px;
  border-radius: 30px;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.8px;
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 4px 12px rgba(229, 155, 39, 0.35);
}

.btn-pill-orange:hover {
  background-color: #c47d17;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(229, 155, 39, 0.45);
}

.btn-pill-navy {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: #192e59;
  color: #ffffff;
  padding: 10px 18px;
  border-radius: 30px;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 4px 12px rgba(25, 46, 89, 0.25);
}

.btn-pill-navy:hover {
  background-color: #0f1d38;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(25, 46, 89, 0.35);
}


.events-view-all-badge {
  position: absolute;
  bottom: -45px;
  right: 40px;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background-color: #e19725;
  box-shadow: 0 10px 25px rgba(25, 46, 89, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  z-index: 10;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.events-view-all-badge:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 15px 30px rgba(25, 46, 89, 0.5);
}

.badge-arc-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.badge-calendar-icon {
  color: #ffffff;
  font-size: 1.6rem;
  margin-top: 10px;
}

.events-view-all-text-mobile {
  display: none;
}


.accreditations-section {
  padding: 5rem 0 5.5rem;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  position: relative;
  overflow: hidden;
  border-top: 1px solid #edf2f7;
}

.accreditations-header-center {
  text-align: center;
  max-width: 900px;
  margin: 0 auto 3rem;
  padding: 0 1.5rem;
}

.accreditations-eyebrow {
  display: inline-block;
  font-family: var(--font-heading), 'Montserrat', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  color: #e59b27;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  margin-bottom: 0.6rem;
}

.accreditations-main-title {
  font-family: var(--font-heading), 'Montserrat', sans-serif;
  font-size: clamp(1.8rem, 2.8vw, 2.4rem);
  font-weight: 600;
  color: #0f172a;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1.25;
}

.accreditations-title-accent {
  width: 54px;
  height: 3px;
  background: linear-gradient(90deg, #192e59 0%, #e59b27 100%);
  margin: 1.1rem auto 0;
  border-radius: 3px;
}


.accreditations-carousel-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 1.2rem 0;
}

.carousel-fade-left,
.carousel-fade-right {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 140px;
  z-index: 10;
  pointer-events: none;
}

.carousel-fade-left {
  left: 0;
  background: linear-gradient(to right, #f8fafc 10%, rgba(248, 250, 252, 0) 100%);
}

.carousel-fade-right {
  right: 0;
  background: linear-gradient(to left, #f8fafc 10%, rgba(248, 250, 252, 0) 100%);
}


.accreditations-marquee {
  display: flex;
  overflow: hidden;
  user-select: none;
  gap: 1.75rem;
  width: 100%;
  padding: 25px 0;
  
}

.marquee-group {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 1.75rem;
  min-width: 100%;
  animation: scrollMarquee 42s linear infinite;
  will-change: transform;
}

.accreditations-marquee:hover .marquee-group {
  animation-play-state: paused;
}

@keyframes scrollMarquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(calc(-100% - 1.75rem));
  }
}


.accreditation-logo-card {
  width: 210px;
  height: 105px;
  background-color: #ffffff;
  border-radius: 16px;
  border: 1px solid rgba(226, 232, 240, 0.95);
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 1.4rem;
  flex-shrink: 0;
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.accreditation-logo-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.1);
  border-color: rgba(229, 155, 39, 0.5);
}

.accreditation-logo-img {
  max-width: 100%;
  max-height: 62px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: contrast(1.02);
  transition: transform 0.35s ease, filter 0.35s ease;
}

.accreditation-logo-card:hover .accreditation-logo-img {
  transform: scale(1.06);
  filter: contrast(1.08);
}

@media (max-width: 768px) {
  .accreditations-section {
    padding: 3.5rem 0 4rem;
  }
  .accreditation-logo-card {
    width: 170px;
    height: 90px;
    padding: 0.8rem 1rem;
    border-radius: 12px;
  }
  .accreditation-logo-img {
    max-height: 50px;
  }
  .carousel-fade-left,
  .carousel-fade-right {
    width: 60px;
  }
}


.footer-knes-official {
  background-color: #112449;
  color: #ffffff;
  padding: 5rem 0 2rem;
  font-family: var(--font-sans);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-official-container {
  width: 100%;
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.footer-official-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr 1.3fr;
  gap: 3.5rem;
  align-items: flex-start;
}

.footer-off-col {
  display: flex;
  flex-direction: column;
}


.footer-off-crest-wrap {
  margin-bottom: 1.6rem;
}

.footer-off-crest {
  width: 125px;
  height: auto;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.4));
  transition: transform 0.3s ease;
}

.footer-off-crest:hover {
  transform: scale(1.05);
}

.footer-off-contacts {
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
  margin-bottom: 1.8rem;
}

.off-contact-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.9rem;
  color: #d1d5db;
  line-height: 1.5;
}

.contact-icon {
  color: #f59e0b;
  font-size: 0.95rem;
  margin-top: 3px;
  flex-shrink: 0;
  width: 16px;
  text-align: center;
}

.contact-text {
  color: #d1d5db;
  font-size: 0.88rem;
  line-height: 1.5;
}

.contact-link {
  color: #d1d5db;
  font-size: 0.88rem;
  text-decoration: none;
  transition: color 0.2s ease;
}

.contact-link:hover {
  color: #ffffff;
}


.footer-off-socials {
  display: flex;
  gap: 0.65rem;
  align-items: center;
}

.off-social-box {
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 0.92rem;
  text-decoration: none;
  transition: all 0.25s ease;
}

.off-social-box:hover {
  background: #f59e0b;
  color: #070e24;
  transform: translateY(-2px);
}


.footer-off-heading {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.3px;
  margin: 0;
}

.heading-gold-line {
  width: 30px;
  height: 3px;
  background-color: #f59e0b;
  margin-top: 8px;
  margin-bottom: 1.6rem;
  border-radius: 2px;
}


.footer-off-nav {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-off-nav li a {
  font-size: 0.92rem;
  color: #d1d5db;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.footer-off-nav li a .caret {
  color: #f59e0b;
  font-size: 1.15rem;
  font-weight: bold;
  line-height: 1;
  display: inline-block;
  transition: transform 0.2s ease;
}

.footer-off-nav li a:hover {
  color: #ffffff;
  transform: translateX(4px);
}

.footer-off-nav li a:hover .caret {
  transform: translateX(2px);
}


.footer-off-tagline {
  font-size: 0.92rem;
  color: #d1d5db;
  line-height: 1.6;
  margin-bottom: 1.6rem;
  max-width: 330px;
}

.footer-off-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  width: 100%;
  max-width: 290px;
}

.btn-off-registration {
  background: #e19725;
  color: #ffffff;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  text-align: center;
  padding: 0.82rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.25s ease;
  box-shadow: 0 4px 14px rgba(201, 24, 56, 0.35);
}

.btn-off-registration .reg-arrow {
  font-size: 1.1rem;
  line-height: 1;
  transition: transform 0.25s ease;
}

.btn-off-registration:hover {
  background: #e11d48;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(225, 29, 72, 0.45);
}

.btn-off-registration:hover .reg-arrow {
  transform: translateX(4px);
}

.btn-off-reregistration {
  background: transparent;
  color: #ffffff;
  border: 1.5px solid rgba(255, 255, 255, 0.75);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  text-align: center;
  padding: 0.8rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  display: block;
  transition: all 0.25s ease;
}

.btn-off-reregistration:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #ffffff;
  transform: translateY(-2px);
}


.footer-off-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  margin-top: 3.8rem;
  padding-top: 2rem;
  text-align: center;
}

.footer-off-copyright {
  font-size: 0.84rem;
  color: #94a3b8;
  margin: 0;
  letter-spacing: 0.2px;
}
.departmnt .text  {
  width: 60%;
  margin: 0 auto 80px;
  text-align: center;
}
.departmnt .head-students-title{
  margin-bottom: 15px;
}

@media (max-width: 1024px) {
  .footer-official-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.8rem;
  }
  .principal-grid { grid-template-columns: 1fr; text-align: center; }
  .feature-tiles-grid { grid-template-columns: 1fr; }
  .news-overlay-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .house-shields-grid { grid-template-columns: repeat(2, 1fr); }
  .departmnt .text {
    width: 90%;
    margin: 0 auto 80px;
    text-align: center;
}
}

@media (max-width:767px) {
  .mob_hide{
    display: none;
  }
  .header-inner-flex {
    padding: 0 15px;
}
    .braunton-crest-logo {
        height: 60px;
    }
    .creative-nav-toggle {
        padding: 0.7rem 0.6rem;
    }
}
@media (max-width: 640px) {
  
  .footer-knes-official {
    padding: 3.5rem 0 2rem;
  }
  .footer-official-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .footer-off-buttons {
    max-width: 100%;
  }
  .gallery-grid { grid-template-columns: 1fr; }
  .braunton-name { font-size: 1.05rem; }
  .braunton-motto { font-size: 0.65rem; }
  .headteacher-main-title {
    margin-bottom: 3.5rem;
    line-height: 42px;
}
}


@media (max-width: 992px) {
  .events-section-wrapper {
    padding: 4.5rem 0 5rem 0;
  }

  .events-header-center-row {
    gap: 2rem;
    margin-bottom: 3rem;
  }

  .events-main-title {
    font-size: clamp(1.6rem, 3.2vw, 2.1rem);
  }

  .events-grid-row {
    gap: 2.5rem;
    padding: 0 2rem;
  }

  .events-view-all-badge {
    right: 25px;
    bottom: -35px;
    width: 85px;
    height: 85px;
  }

  .badge-calendar-icon {
    font-size: 1.4rem;
    margin-top: 8px;
  }
}

@media (max-width: 768px) {
  .events-section-wrapper {
    padding: 3.25rem 0 3.5rem 0;
    overflow: hidden;
  }

  .events-inner-container {
    padding: 0 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  
  .events-header-center-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 440px;
    gap: 0.75rem;
    margin-bottom: 2rem;
    padding: 0 0.25rem;
  }

  .events-main-title {
    font-size: clamp(1.2rem, 4.4vw, 1.6rem);
    font-weight: 700;
    letter-spacing: 0.04em;
    color: #192e59;
    text-align: center;
    line-height: 1.25;
    flex: 1;
    margin: 0;
  }

  
  .events-arrow-btn {
    width: 42px;
    height: 42px;
    min-width: 42px;
    min-height: 42px;
    border-radius: 50%;
    flex-shrink: 0;
    border: 1.5px solid #e59b27;
    background-color: #ffffff;
    color: #192e59;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.2s ease;
  }

  .events-arrow-btn:active {
    background-color: #e59b27;
    color: #ffffff;
    transform: scale(0.92);
  }

  
  .events-timeline-track {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    padding: 0.5rem 0 2rem 0;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
  }

  .events-grid-row {
    display: flex;
    gap: 1.5rem;
    width: max-content;
    padding: 0 1.5rem;
    position: relative;
    z-index: 2;
  }

  .events-grid-row::before {
    bottom: 12px;
    height: 2px;
    background-color: #192e59;
    opacity: 0.75;
  }

  
  .event-timeline-item {
    width: 220px;
    flex-shrink: 0;
    scroll-snap-align: center;
    scroll-snap-stop: normal;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }

  .event-content-top {
    min-height: 80px;
    height: auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding-bottom: 4px;
  }

  .event-date-row {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 0.25rem;
  }

  .orange-dot {
    width: 7px;
    height: 7px;
  }

  .event-date-text {
    font-size: 0.9rem;
    letter-spacing: 1px;
    font-weight: 800;
  }

  .event-item-title {
    font-size: 0.88rem;
    line-height: 1.35;
    padding-left: 13px;
    max-width: 200px;
    color: #0f1d38;
  }

  .event-stem-line {
    width: 2px;
    height: 48px;
    margin-left: 11.5px;
  }

  .event-node-plus {
    width: 25px;
    height: 25px;
    font-size: 14px;
  }

  .event-timeline-item:active .event-node-plus {
    transform: scale(1.25);
    background-color: #e59b27;
  }

  
  .events-view-all-badge {
    position: static;
    margin: 1.5rem auto 0 auto;
    width: auto;
    height: auto;
    padding: 12px 26px;
    border-radius: 50px;
    background: linear-gradient(135deg, #e59b27 0%, #c47d17 100%);
    box-shadow: 0 6px 18px rgba(229, 155, 39, 0.35);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transform: none !important;
    text-decoration: none;
  }

  .events-view-all-badge:active {
    transform: scale(0.97) !important;
  }

  .events-view-all-badge .badge-arc-svg {
    display: none;
  }

  .badge-calendar-icon {
    font-size: 1.05rem;
    margin-top: 0;
    color: #ffffff;
  }

  .events-view-all-text-mobile {
    display: inline-block;
    color: #ffffff;
    font-family: var(--font-heading), 'Montserrat', sans-serif;
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 1px;
    white-space: nowrap;
    text-transform: uppercase;
  }

  
  .event-modal-backdrop {
    padding: 1rem;
    align-items: center;
  }

  .event-modal-card {
    padding: 1.75rem 1.4rem;
    max-height: 85vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 16px;
    width: 100%;
  }

  .event-modal-close {
    width: 36px;
    height: 36px;
    top: 14px;
    right: 14px;
    font-size: 1rem;
  }

  .event-modal-title {
    font-size: 1.25rem;
    line-height: 1.3;
    padding-right: 1.5rem;
  }

  .event-modal-meta {
    font-size: 0.8rem;
    gap: 0.35rem;
  }

  .event-modal-desc {
    font-size: 0.85rem;
    line-height: 1.55;
    margin-bottom: 1.25rem;
  }

  .event-modal-actions {
    width: 100%;
  }

  .btn-pill-orange {
    width: 100%;
    justify-content: center;
    padding: 12px 18px;
    font-size: 0.82rem;
  }
}

@media (max-width: 480px) {
  .events-section-wrapper {
    padding: 2.75rem 0 3rem 0;
  }

  .events-header-center-row {
    gap: 0.5rem;
    margin-bottom: 1.75rem;
  }

  .events-main-title {
    font-size: clamp(1.1rem, 4.8vw, 1.35rem);
    letter-spacing: 0.02em;
  }

  .events-arrow-btn {
    width: 38px;
    height: 38px;
    min-width: 38px;
    min-height: 38px;
    font-size: 0.9rem;
  }

  .event-timeline-item {
    width: 200px;
  }

  .event-item-title {
    font-size: 0.84rem;
    max-width: 180px;
  }

  .events-grid-row {
    gap: 1.25rem;
    padding: 0 1rem;
  }
}


