/*
  Madinah Islamic Secondary School - Global Styles
  Table of Contents:
  1. Root Variables & Reset
  2. Animations
  3. Header & Navigation
  4. Hero Carousel
  5. Quick Links / Info Section
  6. Application Section
  7. Modals & Forms
  8. Responsive Queries
*/

/* --- 1. Root Variables & Reset --- */
:root {
  --ink: #10201d;
  --muted: #52615e;
  --white: #ffffff;
  --glass: rgba(255, 255, 255, 0.52);
  --glass-border: rgba(255, 255, 255, 0.72);
  --teal: #0f766e;
  --teal-dark: #064e3b;
  --gold: #d97706;
  --gold-soft: #fde68a;
  --page: #f7f7f5;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);

  /* Typography Variables */
  --font-main: "Roboto", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  margin: 0;
  font-family: var(--font-main);
  font-weight: 400;
  line-height: 1.6;
  color: var(--ink);
  background: var(--page);
  overflow-x: hidden;
}

section[id], header[id] {
  scroll-margin-top: 100px;
}

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

button, a {
  -webkit-tap-highlight-color: transparent;
  transition: all 0.3s ease;
}

button:focus, a:focus {
  outline: none;
}

/* --- 2. Animations --- */
@keyframes pageFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

body {
  animation: pageFadeIn 1.2s ease-out forwards;
}

@keyframes softDrop {
  from { opacity: 0; transform: translateY(-14px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes contentRise {
  from { opacity: 0; transform: translateY(22px) scale(.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes imageDrift {
  from { background-position: center center; }
  to { background-position: center 46%; }
}

@keyframes arrowBreath {
  0%, 100% { box-shadow: 0 24px 60px rgba(0, 0, 0, .26); }
  50% { box-shadow: 0 24px 70px rgba(0, 0, 0, .38); }
}

@keyframes pulse-soft {
  0% { transform: scale(1); }
  50% { transform: scale(1.02); }
  100% { transform: scale(1); }
}

/* Scroll Reveal Classes (Continuous Motion) */
.reveal-on-scroll {
  opacity: 0;
  transition: opacity 1s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform, opacity;
}

.reveal-up { transform: translateY(50px); }
.reveal-left { transform: translateX(-50px); }
.reveal-right { transform: translateX(50px); }
.reveal-scale { transform: scale(0.9); }

.revealed {
  opacity: 1 !important;
  transform: translate(0, 0) scale(1) !important;
}

/* --- 3. Header & Navigation --- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  justify-content: center;
  padding: 18px clamp(14px, 4vw, 38px);
  pointer-events: none;
}

.floating-nav {
  width: min(1240px, 100%);
  min-height: 66px;
  display: grid;
  grid-template-columns: minmax(360px, 1fr) auto minmax(190px, 1fr);
  align-items: center;
  gap: 14px;
  padding: 10px 14px;
  border-radius: 16px;
  background: rgba(0, 0, 0, .34);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .28);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  pointer-events: auto;
  animation: softDrop .65s ease both;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--white);
}

.brand .short-name {
  display: none;
}

.brand span {
  font-size: 15px;
}

.brand img {
  width: 44px;
  height: 44px;
}

.nav-links {
  display: flex;
  gap: 4px;
}

.nav-dropdown {
  position: relative;
  display: flex;
  align-items: center;
}

.dropdown-trigger {
  display: flex;
  align-items: center;
  gap: 8px;
}

.dropdown-trigger i {
  font-size: 10px;
  transition: transform 0.3s ease;
}

.dropdown-content {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(15px);
  background: rgba(16, 32, 29, 0.98);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  min-width: 170px;
  border-radius: 14px;
  padding: 8px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
  z-index: 1000;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-dropdown:hover .dropdown-content {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(10px);
}

.nav-dropdown:hover .dropdown-trigger i {
  transform: rotate(180deg);
}

.dropdown-content a {
  display: block;
  padding: 10px 16px !important;
  width: 100%;
  font-size: 13px !important;
  color: rgba(255, 255, 255, 0.7) !important;
  text-align: left;
  border-radius: 8px;
  background: transparent !important;
  transition: all 0.2s ease;
}

.dropdown-content a:hover {
  background: rgba(255, 255, 255, 0.1) !important;
  color: var(--white) !important;
  transform: translateX(5px);
}

.nav-links a {
  padding: 9px 16px;
  border-radius: 8px;
  color: rgba(255, 255, 255, .82);
  font-size: 13px;
  font-weight: 700;
}

.nav-links a:hover, .nav-links a.active {
  color: var(--white);
  background: rgba(255, 255, 255, .14);
}

.social-links {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.social-links a, .menu-toggle, .carousel-control {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: var(--white);
  background: rgba(255, 255, 255, .14);
  cursor: pointer;
  font-size: 18px; /* Standardize icon size for Font Awesome */
}

.social-links a:hover, .menu-toggle:hover {
  background: var(--white);
  color: var(--ink);
  transform: translateY(-2px);
}

/* Tooltip Styling */
[data-tooltip] {
  position: relative;
}

[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(-8px) scale(0.95);
  background: var(--ink);
  color: var(--white);
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.3px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s cubic-bezier(0.23, 1, 0.32, 1);
  pointer-events: none;
  z-index: 1100;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* Tooltip Arrow */
[data-tooltip]::before {
  content: "";
  position: absolute;
  top: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%) translateY(-8px) scale(0.95);
  border-width: 0 6px 6px 6px;
  border-style: solid;
  border-color: transparent transparent var(--ink) transparent;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s cubic-bezier(0.23, 1, 0.32, 1);
  pointer-events: none;
  z-index: 1100;
}

[data-tooltip]:hover::after,
[data-tooltip]:hover::before {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0) scale(1);
}

.menu-toggle { display: none; border: none; }

/* --- 4. Hero Carousel --- */
.hero-carousel {
  position: relative;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
  background: #1f2523;
}

.hero-carousel::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.2) 50%, rgba(0,0,0,0.6) 100%);
  z-index: 1;
}

.slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 1s ease;
  background-size: cover;
  background-position: center;
}

/* Background images for carousel slides */
.slide-one {
  background-image: url("../Images/home/madinahislamic-1.png");
}

.slide-two {
   background-image: url("../Images/home/madinahislamic-2.png");
  }

.slide-three {
   background-image: url("../Images/home/madinahislamic-3.png");
  }

.slide.active {
  opacity: 1;
  z-index: 2;
  animation: imageDrift 8s ease-in-out both;
}

.slide-content {
  position: relative;
  z-index: 5;
  text-align: center;
  padding: clamp(20px, 4vw, 35px);
  width: min(800px, 92%); /* Restored width to 800px */
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.45);
  animation: contentRise 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  margin-left: auto;
  margin-right: auto;
}

/* Eyebrow / Badges */
.eyebrow {
  display: inline-block;
  padding: 8px 18px;
  margin-bottom: 20px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--white);
  background: rgba(0, 0, 0, 0.34); /* Darker glass to blend better with the carousel */
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.slide h1 {
  font-size: clamp(28px, 4vw, 48px);
  margin: 0 0 12px;
  color: var(--white);
  line-height: 1.15;
  font-weight: 700; /* Roboto 700 is strong and clean */
  letter-spacing: -0.02em;
}

.slide p:not(.eyebrow) {
  font-size: clamp(14px, 1.8vw, 17px);
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 25px;
  font-weight: 400; /* Standard Roboto weight */
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.hero-button {
  padding: 12px 24px; /* Reduced from 14x 28px */
  background: var(--white);
  color: var(--ink);
  font-weight: 800;
  font-size: 14px; /* Explicit smaller size */
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: none;
}

.hero-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.carousel-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 50px;
  height: 50px;
  background: rgba(0, 0, 0, 0.4); /* Darker glass for better arrow visibility */
  backdrop-filter: blur(10px); /* Increased blur */
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.carousel-control.prev { left: 30px; }
.carousel-control.next { right: 30px; }

/* --- 5. Quick Info Section --- */
.quick-sections {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  width: min(1040px, calc(100% - 32px));
  margin: -36px auto 56px;
  position: relative;
  z-index: 5;
}

.quick-sections article {
  min-height: 132px;
  display: grid;
  grid-template-columns: 38px 1fr;
  grid-template-rows: auto auto auto;
  column-gap: 12px;
  align-items: start;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, .72);
  border-radius: 12px;
  background: rgba(255, 255, 255, .86);
  box-shadow: 0 14px 34px rgba(15, 23, 42, .1);
  backdrop-filter: blur(18px);
  transition: transform .2s ease, box-shadow .2s ease;
}

.quick-sections article:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 42px rgba(15, 23, 42, .14);
}

.quick-sections .material-symbols-rounded {
  display: inline-grid;
  place-items: center;
  grid-row: 1 / 4;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  color: var(--ink);
  background: rgba(15, 23, 42, .08);
  font-size: 20px;
}

.quick-sections h2 {
  margin: 0 0 5px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.25;
}

.quick-sections p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
  font-size: 13px;
  font-weight: 400;
}

.quick-sections article>a {
  width: fit-content;
  margin-top: 12px;
  padding: 8px 11px;
  border-radius: 7px;
  color: var(--white);
  background: var(--ink);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: all 0.3s ease;
}

.quick-sections article>a:hover {
  background: rgba(15, 23, 42, .14);
  transform: translateY(-1px);
}

/* --- 6. Application Section --- */
.application-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
  padding: 80px;
}

.application-media {
  position: relative;
  display: flex;
  justify-content: center;
  flex: 1;
}

.application-media img {
  width: 100%;
  max-width: 600px;
  height: 560px;
  object-fit: cover;
}

.application-details {
  width: 700px;
  height: auto;
  padding: 20px;
}

.education-options {
  margin-top: 30px;
}

.education-card {
  width: 100%;
}

.education-title {
  margin-bottom: 15px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.education-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 15px 0;
  text-decoration: none;
  color: var(--ink);
  font-size: 17px;
  font-weight: 700;
  border-bottom: 1px solid #ddd;
  transition: 0.3s ease;
}

.education-action:hover {
  border-bottom: 1px solid #000;
}

.report-download {
  display: flex;
  align-items: center;
  gap: 12px;
  background-color: var(--ink);
  padding: 14px 24px;
  width: fit-content;
  margin-top: 30px;
  text-decoration: none;
  color: var(--white);
  border-radius: 12px;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.02em;
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}

.report-download:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

.materials-download {
  display: flex;
  align-items: center;
  gap: 12px;
  background-color: var(--white);
  padding: 14px 24px;
  border-radius: 12px;
  margin-top: 15px;
  color: var(--ink);
  font-weight: 700;
  font-size: 14px;
  border: 2px solid var(--ink);
  transition: all 0.3s ease;
  width: fit-content;
  text-decoration: none;
}

.materials-download:hover {
  background: var(--ink);
  color: var(--white);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.education-action i {
  font-size: 16px;
  transition: transform 0.3s ease;
}

.education-action:hover i {
  transform: translateX(8px);
}

/* --- 7. Modals & Forms --- */
.application-modal {
  position: fixed;
  inset: 0;
  display: flex; /* Changed from none to flex for transition */
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  pointer-events: none;
}

.application-modal.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.application-form-box {
  position: relative;
  background: #fff;
  width: min(800px, 95%);
  max-height: 90vh;
  padding: 40px;
  border-radius: 24px;
  overflow-y: auto;
  z-index: 10;
  transform: translateY(40px) scale(0.95);
  transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 50px 100px rgba(0, 0, 0, 0.2);

  /* Hide Scrollbar */
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.application-modal.active .application-form-box {
  transform: translateY(0) scale(1);
}

.application-form-box::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}

.close-modal {
  position: absolute;
  top: 20px;
  right: 20px;
  background: #f5f5f5;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
}

.close-modal:hover {
  background: #e2e8f0;
  transform: rotate(90deg);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.form-group input, .form-group select {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 400;
}

.submit-application {
  width: 100%;
  padding: 16px;
  background: var(--ink);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.submit-application:hover {
  background: var(--teal);
  transform: translateY(-2px);
}

.results-title {
  font-size: 14px;
  font-weight: 800;
  color: var(--ink);
  margin: 30px 0 15px;
  padding-bottom: 8px;
  border-bottom: 2px solid #f0f0f0;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.certificate-upload {
  margin: 20px 0;
  padding: 20px;
  border: 2px dashed #e0e0e0;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  background: #fafafa;
}

.certificate-upload:hover {
  border-color: var(--teal);
  background: rgba(15, 118, 110, 0.05);
}

.certificate-upload i {
  font-size: 24px;
  color: var(--teal);
}

.certificate-upload span {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}

.certificate-upload input {
  display: none;
}

.form-buttons {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 15px;
  margin-top: 30px;
}

.form-status {
  margin: 20px 0;
  padding: 16px 18px;
  border-radius: 12px;
  font-weight: 600;
  line-height: 1.6;
}

.form-status.success {
  background: #ecfdf5;
  color: #047857;
}

.form-status.error {
  background: #fef2f2;
  color: #b91c1c;
}

.clear-button {
  padding: 16px;
  background: #f1f5f9;
  color: var(--muted);
  border: none;
  border-radius: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.clear-button:hover {
  background: #e2e8f0;
  color: var(--ink);
}

.form-row.full-width {
  grid-template-columns: 1fr;
}

/* Student Login Specifics */
.student-login-modal h2 {
  font-size: 22px;
  margin-bottom: 5px;
}

.student-login-modal h5 {
  color: var(--teal);
  margin-bottom: 30px;
}

.login-input {
  position: relative;
  margin-bottom: 20px;
  width: 100%;
}

.login-input i {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  font-size: 18px;
  z-index: 1;
}

.login-input input {
  width: 100%;
  padding: 14px 15px 14px 45px;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  font-family: inherit;
  font-size: 14px;
  outline: none;
  transition: all 0.3s ease;
}

.login-input input:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.1);
}

.modal-subtitle {
  text-align: center;
  color: var(--muted);
  font-size: 15px;
  margin-bottom: 30px;
}

.search-box {
  position: relative;
  margin-bottom: 25px;
}

.search-box i {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
}

.search-box input {
  width: 100%;
  padding: 14px 15px 14px 45px;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  outline: none;
  transition: all 0.3s ease;
  font-family: inherit;
}

.search-box input:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.1);
}

.download-list {
  display: grid;
  gap: 12px;
}

.download-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px;
  background: #f8fafc;
  border-radius: 15px;
  border: 1px solid #f1f5f9;
  transition: all 0.3s ease;
  text-decoration: none;
}

.download-item:hover {
  background: #fff;
  border-color: var(--teal);
  transform: translateX(5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.file-icon {
  width: 45px;
  height: 45px;
  background: rgba(15, 118, 110, 0.1);
  color: var(--teal);
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 20px;
}

.file-info {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.file-name {
  font-weight: 700;
  font-size: 14px;
  color: var(--ink);
  margin-bottom: 2px;
}

.file-size {
  font-size: 12px;
  color: var(--muted);
}

.download-item i.fa-download {
  color: var(--muted);
  transition: all 0.3s ease;
}

.download-item:hover i.fa-download {
  color: var(--teal);
  transform: translateY(2px);
}

.search-box i {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
}

.search-box input {
  width: 100%;
  padding: 14px 15px 14px 45px;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  outline: none;
  transition: all 0.3s ease;
}

.search-box input:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.1);
}

.download-list {
  display: grid;
  gap: 12px;
}

.download-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px;
  background: #f8fafc;
  border-radius: 15px;
  border: 1px solid #f1f5f9;
  transition: all 0.3s ease;
}

.download-item:hover {
  background: #fff;
  border-color: var(--teal);
  transform: translateX(5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.file-icon {
  width: 45px;
  height: 45px;
  background: rgba(15, 118, 110, 0.1);
  color: var(--teal);
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 20px;
}

.file-info {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.file-name {
  font-weight: 700;
  font-size: 14px;
  color: var(--ink);
  margin-bottom: 2px;
}

.file-size {
  font-size: 12px;
  color: var(--muted);
}

.download-item i.fa-download {
  color: var(--muted);
  transition: all 0.3s ease;
}

.download-item:hover i.fa-download {
  color: var(--teal);
  transform: translateY(2px);
}

.student-login-btn {
  width: 100%;
  padding: 16px;
  background: var(--ink);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.student-login-btn:hover {
  background: var(--teal);
  transform: translateY(-2px);
}

/* --- 8. About Us Section (Unified Design) --- */
.about-section {
  padding: 100px 20px;
  background: var(--page);
}

/* --- Admission Roadmap --- */
.roadmap-section {
  padding: 80px 20px;
  background: var(--white);
}

.roadmap-container {
  max-width: 1300px;
  margin: 0 auto;
}

.roadmap-header {
  text-align: center;
  margin-bottom: 60px;
}

.roadmap-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  position: relative;
}

.roadmap-step {
  text-align: center;
  padding: 40px 30px;
  background: #f8fafc;
  border-radius: 24px;
  position: relative;
  transition: all 0.3s ease;
}

.roadmap-step:hover {
  background: #fff;
  transform: translateY(-10px);
  box-shadow: var(--shadow);
}

.step-number {
  position: absolute;
  top: 20px;
  right: 25px;
  font-size: 40px;
  font-weight: 900;
  color: rgba(15, 118, 110, 0.05);
}

.step-icon {
  width: 60px;
  height: 60px;
  background: var(--ink);
  color: var(--white);
  border-radius: 18px;
  display: grid;
  place-items: center;
  font-size: 24px;
  margin: 0 auto 20px;
}

.roadmap-step h4 {
  font-size: 18px;
  margin-bottom: 12px;
  color: var(--ink);
}

/* --- School Facilities --- */
.facilities-section {
  padding: 100px 20px;
  background: var(--white);
}

.facilities-container {
  max-width: 1300px;
  margin: 0 auto;
}

.facilities-header {
  text-align: center;
  margin-bottom: 60px;
}

.facilities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.facility-card {
  text-align: center;
  padding: 45px 30px;
  background: var(--white);
  border-radius: 28px;
  border: 1px solid rgba(15, 118, 110, 0.05);
  transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.facility-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 30px 60px rgba(15, 118, 110, 0.1);
}

.facility-icon {
  width: 80px;
  height: 80px;
  background: rgba(15, 118, 110, 0.05);
  color: var(--teal);
  border-radius: 22px;
  display: grid;
  place-items: center;
  font-size: 32px;
  margin-bottom: 25px;
  transition: all 0.4s ease;
  position: relative;
}

.facility-card:hover .facility-icon {
  background: var(--teal);
  color: var(--white);
  transform: rotate(10deg) scale(1.1);
}

.facility-card h4 {
  font-size: 20px;
  color: var(--ink);
  margin-bottom: 15px;
  font-weight: 700;
}

.facility-card p {
  font-size: 14.5px;
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}

/* --- Clubs & Co-curricular --- */
.clubs-section {
  padding: 100px 20px;
  background: var(--page);
}

.clubs-container {
  max-width: 1300px;
  margin: 0 auto;
}

.clubs-header {
  text-align: center;
  margin-bottom: 60px;
}

.clubs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
}

.club-card {
  background: var(--white);
  padding: 40px 30px;
  border-radius: 24px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0,0,0,0.02);
}

.club-badge {
  width: 70px;
  height: 70px;
  background: var(--ink);
  color: var(--gold);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 28px;
  margin: 0 auto 25px;
  border: 4px solid rgba(217, 119, 6, 0.1);
}

/* --- Latest News & Events --- */
.news-section {
  padding: 100px 20px;
  background: var(--white);
}

.news-container {
  max-width: 1300px;
  margin: 0 auto;
}

.news-header {
  text-align: center;
  margin-bottom: 60px;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
}

.news-card {
  display: flex;
  background: var(--page);
  border-radius: 24px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.news-card:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow);
}

.news-date {
  background: var(--ink);
  color: var(--white);
  padding: 30px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 100px;
}

.news-date .day { font-size: 28px; font-weight: 800; }
.news-date .month { font-size: 13px; font-weight: 700; opacity: 0.7; }

.news-content {
  padding: 30px;
}

.news-content h4 { margin-bottom: 12px; font-size: 18px; }
.news-content p { font-size: 14px; color: var(--muted); margin-bottom: 20px; }

.read-more {
  font-size: 13px;
  font-weight: 700;
  color: var(--teal);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* --- Newsletter Section --- */
.newsletter-section {
  padding: 80px 20px;
  background: var(--teal-dark);
  color: var(--white);
}

.newsletter-container {
  max-width: 1100px;
  margin: 0 auto;
}

.newsletter-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.newsletter-text h3 { font-size: 28px; margin-bottom: 10px; }
.newsletter-text p { opacity: 0.8; }

.newsletter-form {
  display: flex;
  gap: 10px;
  flex: 1;
  max-width: 500px;
}

.newsletter-form input {
  flex: 1;
  padding: 16px 25px;
  border-radius: 14px;
  border: none;
  font-family: inherit;
}

.newsletter-form button {
  padding: 16px 30px;
  background: var(--gold);
  color: var(--white);
  border: none;
  border-radius: 14px;
  font-weight: 800;
  cursor: pointer;
}

@media (max-width: 900px) {
  .newsletter-content { flex-direction: column; text-align: center; }
  .newsletter-form { width: 100%; }
}

/* --- Gallery Section --- */
.gallery-section {
  padding: 100px 20px;
  background: var(--page);
}

.gallery-container {
  max-width: 1300px;
  margin: 0 auto;
}

.gallery-header {
  text-align: center;
  margin-bottom: 60px;
}

.gallery-header h2 {
  font-size: 32px;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 15px;
}

.gallery-header p {
  color: var(--muted);
  max-width: 600px;
  margin: 0 auto;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.gallery-item {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  cursor: pointer;
  background: var(--white);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(16, 32, 29, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.4s ease;
}

.gallery-overlay span {
  color: var(--white);
  font-weight: 700;
  font-size: 18px;
  transform: translateY(20px);
  transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

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

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

.gallery-item:hover .gallery-overlay span {
  transform: translateY(0);
}

.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 2200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(3, 12, 14, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

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

body.gallery-lightbox-open {
  overflow: hidden;
}

.gallery-lightbox-stage {
  max-width: min(1100px, 100%);
  max-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-lightbox-stage img {
  width: 100%;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 24px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.gallery-lightbox-close,
.gallery-lightbox-nav {
  position: absolute;
  border: none;
  background: rgba(255, 255, 255, 0.18);
  color: var(--white);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.gallery-lightbox-close:hover,
.gallery-lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
}

.gallery-lightbox-close {
  top: 22px;
  right: 22px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 28px;
  line-height: 1;
}

.gallery-lightbox-nav {
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 30px;
}

.gallery-lightbox-nav.prev {
  left: 22px;
}

.gallery-lightbox-nav.next {
  right: 22px;
}

@media (max-width: 700px) {
  .gallery-lightbox {
    padding: 16px;
  }

  .gallery-lightbox-nav {
    width: 42px;
    height: 42px;
    font-size: 24px;
  }

  .gallery-lightbox-close {
    width: 40px;
    height: 40px;
    font-size: 24px;
  }
}

/* --- FAQ Section --- */
.faq-section {
  padding: 100px 20px;
  background: var(--white);
}

.faq-container {
  max-width: 900px;
  margin: 0 auto;
}

.faq-header {
  text-align: center;
  margin-bottom: 60px;
}

.faq-header h2 {
  font-size: 32px;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 15px;
}

.faq-header p {
  color: var(--muted);
}

.faq-grid {
  display: grid;
  gap: 15px;
}

.faq-item {
  border: 1px solid #f1f5f9;
  border-radius: 18px;
  background: #f8fafc;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.faq-question {
  width: 100%;
  padding: 22px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-size: 16px;
  font-family: inherit;
  font-weight: 700;
  color: var(--ink);
}

.faq-question i {
  font-size: 14px;
  color: var(--teal);
  transition: transform 0.4s ease;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  background: var(--white);
}

.faq-answer p {
  padding: 0 30px 25px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
  margin: 0;
}

.faq-item.active {
  box-shadow: 0 20px 40px rgba(0,0,0,0.06);
  border-color: var(--teal);
  background: var(--white);
}

.faq-item.active .faq-question i {
  transform: rotate(45deg);
  color: var(--gold);
}

.faq-item.active .faq-answer {
  max-height: 300px;
}

.about-container {
  max-width: 1300px;
  margin: 0 auto;
}

.about-content-card {
  background: var(--white);
  padding: clamp(30px, 8vw, 60px);
  border-radius: 32px;
  box-shadow: var(--shadow);
}

.about-header {
  text-align: center;
  margin-bottom: 50px;
}

.about-header h2 {
  font-size: clamp(24px, 4vw, 36px);
  color: var(--ink);
  margin-top: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.about-text-block {
  margin-bottom: 50px;
}

.about-text-block h3 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--teal);
  margin-bottom: 20px;
  border-left: 4px solid var(--teal);
  padding-left: 15px;
}

.about-text-block p {
  line-height: 1.7;
  font-weight: 400;
  color: var(--muted);
  margin-bottom: 15px;
  font-size: 16px;
}

.about-values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 60px;
  padding: 30px;
  background: #f8fafc;
  border-radius: 20px;
}

.value-box {
  text-align: center;
}

.value-box i {
  font-size: 24px;
  color: var(--gold);
  margin-bottom: 15px;
}

.value-box h4 {
  font-size: 13px;
  margin: 0 0 8px;
  color: var(--ink);
  letter-spacing: 1px;
}

.value-box p {
  font-size: 14px;
  font-weight: 700;
  color: var(--teal-dark);
  margin: 0;
}

.about-details-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
}

.detail-column h3 {
  font-size: 18px;
  color: var(--ink);
  margin-bottom: 20px;
  border-bottom: 2px solid #f0f0f0;
  padding-bottom: 10px;
}

.check-list {
  list-style: none;
  padding: 0;
  margin-bottom: 30px;
}

.check-list li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 15px;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--teal);
  font-weight: 900;
}

.detail-column p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
  margin-bottom: 25px;
}

.centres-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 15px;
}

.centres-tags span {
  background: var(--ink);
  color: var(--white);
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-family: monospace;
}

@media (max-width: 850px) {
  .about-values-grid { grid-template-columns: 1fr; }
  .about-details-grid { grid-template-columns: 1fr; }
}

/* --- 9. Our Team Section (Glassmorphism Redesign) --- */
.team-section {
  padding: 100px 20px;
  background: linear-gradient(135deg, #fdfdfb 0%, #f3f4f6 100%);
  position: relative;
  overflow: hidden;
}

/* Background decoration for better glass effect visibility */
.team-section::before {
  content: "";
  position: absolute;
  top: -10%;
  right: -5%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(15, 118, 110, 0.05) 0%, transparent 70%);
  border-radius: 50%;
  z-index: 0;
}

.team-container {
  max-width: 1300px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.team-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 60px;
}

.team-header h2 {
  font-size: 32px;
  color: var(--ink);
  margin-bottom: 15px;
}

.team-header p {
  color: var(--muted);
  line-height: 1.6;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 40px 30px;
}

.team-card {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 35px 20px;
  border-radius: 20px;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  border: 1px solid rgba(255, 255, 255, 0.8);
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
}

.team-card:hover {
  transform: translateY(-8px);
  background: #fff;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.12);
}

.team-image {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  padding: 5px;
  background: rgba(255, 255, 255, 0.5);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
  margin-bottom: 15px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.8);
}

.team-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.team-info h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 6px;
  line-height: 1.3;
}

.team-info .role {
  font-size: 12px;
  color: rgba(16, 32, 29, 0.6);
  font-weight: 500; /* Roboto Medium for roles */
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 20px;
  display: block;
}

.team-social {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: auto;
}

.team-social a {
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(4px);
  color: var(--muted);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 13px;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.8);
}

.team-social a:hover {
  background: var(--teal);
  color: var(--white);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(15, 118, 110, 0.3);
}

@media (max-width: 600px) {
  .team-grid {
    grid-template-columns: 1fr;
  }
}

/* --- 10. Responsive Queries --- */
@media (max-width: 1040px) {
  .floating-nav { grid-template-columns: 1fr auto auto; }
  .nav-links {
    position: absolute;
    top: 80px; left: 20px; right: 20px;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(10px);
    flex-direction: column;
    padding: 20px;
    border-radius: 20px;
    display: none;
    gap: 10px;
  }
  .nav-links.open { display: flex; }
  .menu-toggle { display: grid; }

  .nav-dropdown {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }

  .dropdown-content {
    position: static;
    transform: none !important;
    opacity: 1;
    visibility: visible;
    background: transparent;
    box-shadow: none;
    padding: 0 0 0 20px;
    border: none;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
  }

  .nav-dropdown.open .dropdown-content {
    max-height: 200px;
    margin-top: 5px;
  }

  .nav-dropdown.open .dropdown-trigger i {
    transform: rotate(180deg);
  }

  .quick-sections {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  /* Move carousel arrows to bottom corners on small screens to avoid covering text */
  .carousel-control {
    top: auto;
    bottom: 60px; /* Raised from 20px to avoid overlapping cards */
    transform: none;
  }

  .carousel-control.prev { left: 20px; margin-left: 0; }
  .carousel-control.next { right: 20px; left: auto; margin-left: 0; }
}

@media (max-width: 800px) {
  .brand .full-name { display: none; }
  .brand .short-name { display: inline; }

  .application-wrapper { flex-direction: column; padding: 40px 20px; }
  .form-row { grid-template-columns: 1fr; }

  .application-media img {
    height: auto;
    max-height: 400px;
  }

  .application-details {
    width: 100%;
  }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* --- 11. Site Footer --- */
.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.8);
  padding: 60px 20px 20px;
  font-size: 14px;
}

.footer-container {
  max-width: 1300px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 0.8fr 1.5fr 1fr;
  gap: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 40px;
}

.footer-section h4 {
  color: var(--white);
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 20px;
  position: relative;
  letter-spacing: 0.05em;
}

.footer-section.vision p {
  line-height: 1.7;
  max-width: 320px;
}

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

.footer-section.links li {
  margin-bottom: 10px;
}

.footer-section.links a {
  transition: all 0.3s ease;
}

.footer-section.links a:hover {
  color: var(--teal);
  padding-left: 5px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.contact-item i {
  color: var(--teal);
  width: 20px;
}

.social-links-footer {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.social-links-footer a {
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s ease;
}

.social-links-footer a:hover {
  color: var(--white);
}

.social-links-footer i {
  width: 30px;
  height: 30px;
  background: rgba(255, 255, 255, 0.05);
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: var(--teal);
}

.footer-bottom {
  text-align: center;
  padding-top: 25px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
}

.footer-bottom i {
  color: #ff4d4d;
}

@media (max-width: 1040px) {
  .footer-container {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
}

@media (max-width: 600px) {
  .footer-container {
    grid-template-columns: 1fr;
  }
  .site-footer {
    padding-top: 40px;
  }
}

/* --- 12. Contact Us Section --- */
.contact-section {
  padding: 100px 20px;
  background: var(--page);
}

.contact-container {
  max-width: 1300px;
  margin: 0 auto;
}

.contact-header {
  text-align: center;
  margin-bottom: 60px;
}

.contact-header h2 {
  font-size: 32px;
  color: var(--ink);
  margin-bottom: 15px;
  font-weight: 700;
}

.contact-header p {
  color: var(--muted);
  max-width: 600px;
  margin: 0 auto;
}

.map-container {
  width: 100%;
  height: 450px;
  border-radius: 24px;
  overflow: hidden;
  margin-bottom: 50px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.8);
}

.map-container iframe {
  width: 100%;
  height: 100%;
  display: block;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.contact-card {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 40px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
}

.card-icon {
  width: 50px;
  height: 50px;
  background: rgba(15, 118, 110, 0.1);
  color: var(--teal);
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 20px;
  margin-bottom: 25px;
}

.contact-card h3 {
  font-size: 22px;
  color: var(--ink);
  margin-bottom: 20px;
  font-weight: 700;
}

.contact-card p {
  line-height: 1.7;
  color: var(--muted);
  margin-bottom: 15px;
}

.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.info-item {
  display: flex;
  align-items: center;
  gap: 15px;
  color: var(--muted);
}

.info-item i {
  color: var(--teal);
  width: 20px;
  text-align: center;
}

.info-item a:hover {
  color: var(--teal);
}

@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

/* --- 13. Back to Top Button --- */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: var(--ink);
  color: var(--white);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: grid;
  place-items: center;
  cursor: pointer;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.8);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* --- 14. News Detail Sub-Pages --- */
.sub-page {
  background: var(--page);
}

.news-detail-container {
  max-width: 900px;
  margin: 0 auto;
  background: var(--white);
  border-radius: 32px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.news-hero-image {
  width: 100%;
  height: 450px;
  overflow: hidden;
}

.news-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-header-meta {
  padding: 40px 60px 20px;
  text-align: center;
}

.news-header-meta h1 {
  font-size: 38px;
  color: var(--ink);
  margin-top: 15px;
  font-weight: 700;
  line-height: 1.2;
}

.news-body-content {
  padding: 0 60px 60px;
}

.news-body-content p {
  font-size: 16.5px;
  line-height: 1.8;
  color: var(--muted);
  margin-bottom: 25px;
}

.news-body-content .lead {
  font-size: 20px;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.6;
}

.news-body-content h3 {
  font-size: 22px;
  color: var(--ink);
  margin: 40px 0 20px;
  font-weight: 700;
}

.news-footer-callout {
  background: #f8fafc;
  padding: 30px;
  border-radius: 20px;
  border-left: 5px solid var(--teal);
  margin-top: 50px;
}

.news-footer-callout p {
  margin-bottom: 0;
  font-style: italic;
}

@media (max-width: 768px) {
  .news-header-meta, .news-body-content {
    padding: 30px 25px;
  }
  .news-hero-image {
    height: 250px;
  }
  .news-header-meta h1 {
    font-size: 28px;
  }
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.back-to-top:hover {
  background: var(--teal);
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 15px 35px rgba(15, 118, 110, 0.3);
}

.back-to-top .material-symbols-rounded {
  font-size: 24px;
  transition: transform 0.3s ease;
}

.back-to-top:hover .material-symbols-rounded {
  transform: translateY(-2px);
}
