:root {
  --bg: #F0F4F8;
  --nav-bg: #0F2A67;
  --nav-bg-end: #1D3F88;
  --text-light: #f8fafc;
  --text-strong: #1E293B;
  --text-muted: #475569;
  --accent: #E8B94A;
  --accent-2: #d4af37;
  --gold: #E8B94A;
  --gold-soft: #fef9e7;
  --section-bg: #F0F4F8;
  --card-border: #e2e8f0;
  --heading: #0F2A67;
  --link-blue: #1D3F88;
}

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

body {
  font-family: "DM Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  min-height: 100vh;
  color: var(--text-strong);
  overflow-x: hidden;
  line-height: 1.6;
}

.about-page {
  min-height: 100vh;
  background-image: linear-gradient(rgba(9, 18, 38, 0.65), rgba(9, 18, 38, 0.65)), url("image/back.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  padding: 0.75rem 1.5rem;
  background:
    radial-gradient(circle at 22% -40%, rgba(212, 175, 55, 0.22), transparent 36%),
    linear-gradient(180deg, var(--nav-bg) 0%, var(--nav-bg-end) 100%);
  border-bottom: 1px solid rgba(212, 175, 55, 0.32);
  color: var(--text-light);
  box-shadow: 0 10px 26px rgba(3, 10, 22, 0.34);
  flex-wrap: wrap;
}

/* Logo as main brand – prominent like search result title */
a.logo {
  position: absolute;
  left: 1.5rem;
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem 0.5rem 1.5rem;
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.03) 100%);
  border: 1px solid rgba(212, 175, 55, 0.35);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

a.logo:hover {
  background: rgba(212, 175, 55, 0.25);
  border-color: var(--gold);
  transform: translateY(-1px);
  box-shadow: 0 0 0 1px rgba(212, 175, 55, 0.4);
}

a.logo:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.logo-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 0.65rem;
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--nav-bg);
  background: linear-gradient(145deg, #e8d48a 0%, var(--gold) 100%);
  box-shadow: 0 2px 8px rgba(212, 175, 55, 0.4);
  flex-shrink: 0;
}

.logo-text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.logo-title {
  margin: 0;
  font-size: clamp(0.9rem, 1.6vw, 1.2rem);
  font-weight: 700;
  letter-spacing: 0.5px;
  line-height: 1.2;
  color: #fff;
  white-space: nowrap;
}

.logo-subtitle {
  margin: 0;
  font-size: clamp(0.65rem, 1vw, 0.78rem);
  letter-spacing: 0.2px;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.2;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 0.32rem;
  margin-left: 8rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  padding: 0.3rem;
  align-items: center;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

/* Login in separated corner (top-right) */
.nav-corner {
  position: absolute;
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.3rem 0.25rem 0.9rem;
  margin-left: 1rem;
  border-left: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(0, 0, 0, 0.12);
  border-radius: 0 12px 12px 0;
}

.menu-toggle {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex-direction: column;
}

.mobile-home-link {
  display: none;
  text-decoration: none;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 8px;
  padding: 0.45rem 0.75rem;
  font-weight: 600;
  font-size: 0.9rem;
  background: rgba(255, 255, 255, 0.08);
  transition: background 0.2s ease, color 0.2s ease;
}

.mobile-home-link:hover {
  background: rgba(212, 175, 55, 0.5);
  color: #fff;
  border-color: var(--gold);
}

.menu-toggle-bar {
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: #fff;
  transition: transform 0.22s ease, opacity 0.22s ease;
}

.navbar.menu-open .menu-toggle-bar:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.navbar.menu-open .menu-toggle-bar:nth-child(2) {
  opacity: 0;
}

.navbar.menu-open .menu-toggle-bar:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.nav-links li {
  color: var(--text-light);
  font-weight: 600;
  cursor: pointer;
  position: relative;
  border-radius: 999px;
}

.nav-links a {
  display: block;
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
  padding: 0.5rem 0.95rem;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.nav-links a:visited {
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
}

.nav-links a:hover {
  background: #dbeafe;
  color: #0f2a67;
  box-shadow: inset 0 0 0 1px #bfdbfe, 0 4px 10px rgba(15, 42, 103, 0.18);
  text-decoration: none;
}

.nav-links a:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
  color: #fff;
  text-decoration: none;
}

/* Login tab – distinct “tab” style at end of nav */
.nav-login-tab .nav-login-trigger {
  background: linear-gradient(135deg, #dcb74a 0%, #c89f2f 100%);
  color: #0a1931;
  border: 1px solid rgba(255, 249, 231, 0.92);
  font-weight: 700;
  padding: 0.46rem 0.88rem;
  border-radius: 12px;
  box-shadow: 0 6px 14px rgba(200, 159, 47, 0.4);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  text-decoration: none;
}

.nav-login-tab .nav-login-trigger:hover {
  background: linear-gradient(135deg, #f0cd66 0%, #d9af3d 100%);
  color: #0b1629;
  border-color: #fff;
  box-shadow: 0 8px 16px rgba(200, 159, 47, 0.48);
  text-decoration: none;
}

.nav-login-tab .nav-login-trigger::after {
  content: "";
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
  transition: transform 0.2s ease;
}

.nav-login-tab.open .nav-login-trigger::after {
  transform: rotate(-135deg) translateY(-1px);
}

.nav-login-tab .login-dropdown {
  right: 0;
  left: auto;
  min-width: 210px;
  margin-top: 0.45rem;
  border-radius: 12px;
  border: 1px solid #d6e2f3;
  box-shadow: 0 16px 30px rgba(7, 18, 37, 0.2);
  overflow: hidden;
  display: none;
}

.nav-login-tab .login-dropdown a {
  color: #11233b;
  font-size: 0.9rem;
  padding: 0.62rem 0.9rem;
  font-weight: 600;
  text-decoration: none;
}

.nav-login-tab .login-dropdown a:hover {
  background: #1e293b;
  color: #f8fafc;
  text-decoration: none;
}

/* Register tab – outlined style at end of nav */
.nav-register-tab {
  position: relative;
}

.nav-register-tab .nav-register-trigger {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-weight: 700;
  padding: 0.46rem 0.88rem;
  border-radius: 12px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  text-decoration: none;
  transition: all 0.2s ease;
}

.nav-register-tab .nav-register-trigger:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(212, 175, 55, 0.6);
  text-decoration: none;
}

.nav-register-tab .nav-register-trigger::after {
  content: "";
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
  transition: transform 0.2s ease;
}

.nav-register-tab.open .nav-register-trigger::after {
  transform: rotate(-135deg) translateY(-1px);
}

.nav-register-tab .register-dropdown {
  right: 0;
  left: auto;
  min-width: 210px;
  margin-top: 0.45rem;
  border-radius: 12px;
  border: 1px solid #d6e2f3;
  box-shadow: 0 16px 30px rgba(7, 18, 37, 0.2);
  overflow: hidden;
  display: none;
  position: absolute;
  top: 100%;
  list-style: none;
  background: #fff;
}

.nav-register-tab .register-dropdown a {
  display: block;
  color: #11233b;
  font-size: 0.9rem;
  padding: 0.62rem 0.9rem;
  font-weight: 600;
  text-decoration: none;
}

.nav-register-tab .register-dropdown a:hover {
  background: #1e293b;
  color: #f8fafc;
  text-decoration: none;
}

/* .nav-register-tab:hover .register-dropdown {
  display: block;
} */

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  list-style: none;
  background: #fff;
  border: 1px solid var(--card-border);
  border-radius: 10px;
  padding: 0.4rem 0;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  display: none;
}

.dropdown-menu li {
  padding: 0;
  white-space: nowrap;
}

.dropdown-menu a {
  display: block;
  padding: 0.5rem 0.9rem;
  color: #0f172a;
  border-radius: 0;
  text-decoration: none;
}

.dropdown-menu a:visited {
  color: #0f172a;
}

.dropdown-menu a:hover {
  color: #f8fafc;
  background: #1e293b;
  text-decoration: none;
}

/* .dropdown:hover .dropdown-menu {
  display: block;
} */

/* .dropdown:focus-within .dropdown-menu {
  display: block;
} */

.dropdown.open .dropdown-menu {
  display: block;
}

/* .nav-login-tab:hover .login-dropdown {
  display: block;
} */

.school-info {
  padding: 50px 5%;
  background-color: rgba(249, 249, 249, 0.94);
  text-align: center;
}

.about-intro {
  max-width: 900px;
  margin: 14px auto 0;
  font-size: 1.05rem;
  line-height: 1.6;
  color: #243047;
}

.gallery-section {
  padding: 0;
  background: var(--bg);
}

.gallery-section h2 {
  text-align: center;
  color: var(--heading);
  margin-bottom: 1rem;
  letter-spacing: 0.3px;
  font-weight: 700;
}

.gallery-marquee {
  overflow: hidden;
  width: 100%;
  line-height: 0;
}

.gallery-track {
  display: flex;
  width: max-content;
  gap: 0;
  padding: 0;
  margin: 0;
  animation: gallery-scroll 60s linear infinite;
  will-change: transform;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  transform-style: preserve-3d;
}

.gallery-track.paused {
  animation-play-state: paused;
}

.gallery-card {
  width: auto;
  max-width: none;
  height: 45vh;
  flex: 0 0 auto;
  border-radius: 0;
  overflow: hidden;
  background: transparent;
  box-shadow: none;
}

.gallery-card img {
  width: auto;
  max-width: none;
  height: 100%;
  display: block;
}

@keyframes gallery-scroll {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(-50%, 0, 0);
  }
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.info-card {
  background: #ffffff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  border-top: 4px solid #ca8e33;
}

.info-card h3 {
  color: #1f1e21;
  margin-bottom: 10px;
}

.contact-section {
  padding: 2.6rem 1rem 3rem;
  background: linear-gradient(180deg, #f6f9ff 0%, #edf3fc 100%);
}

.contact-wrap {
  width: min(980px, 95%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 1rem;
}

.contact-intro {
  background: linear-gradient(135deg, #102a66, #173a85);
  color: #f8fafc;
  border-radius: 16px;
  padding: 1.25rem;
  box-shadow: 0 10px 24px rgba(2, 6, 23, 0.18);
}

.principal-section {
  padding: 2.5rem 1.25rem 3rem;
  background: var(--section-bg);
}

.principal-wrap {
  width: min(980px, 94%);
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--card-border);
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
  padding: 1.5rem;
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 1.5rem;
  align-items: center;
}

.principal-image img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 12px;
  border: 2px solid var(--gold);
  background: #f8fafc;
}

.principal-name {
  margin-top: 0.6rem;
  color: var(--heading);
  font-size: 1.05rem;
  font-weight: 700;
  text-align: center;
}

.principal-role {
  margin-top: 0.2rem;
  color: var(--text-muted);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  text-align: center;
}

.principal-kicker {
  display: inline-block;
  margin-bottom: 0.4rem;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--link-blue);
  font-weight: 700;
}

.principal-content h2 {
  color: var(--heading);
  margin-bottom: 0.5rem;
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  font-weight: 700;
  line-height: 1.3;
}

.principal-content p {
  color: var(--text-muted);
  line-height: 1.65;
  font-size: 0.95rem;
}

.principal-content a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 1.1rem;
  text-decoration: none;
  background: var(--link-blue);
  color: #fff;
  border-radius: 10px;
  padding: 0.62rem 1.1rem;
  font-weight: 700;
  font-size: 0.9rem;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 14px rgba(15, 42, 103, 0.2);
}
.principal-content a::after {
  content: '→';
  font-size: 1rem;
  transition: transform 0.2s ease;
}
.principal-content a:hover {
  background: #0f2a67;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(15, 42, 103, 0.3);
}
.principal-content a:hover::after {
  transform: translateX(4px);
}

.important-links-section {
  padding: 2rem 1.25rem 3rem;
  background: #fff;
  border-top: 1px solid var(--card-border);
}

.important-links-wrap {
  width: min(1200px, 94%);
  margin: 0 auto;
  background: var(--section-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.04);
  padding: 1.5rem;
}

.important-links-head {
  margin-bottom: 1.25rem;
}

.important-links-kicker {
  display: inline-block;
  margin-bottom: 0.35rem;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-weight: 700;
  font-size: 0.72rem;
  color: var(--link-blue);
}

.important-links-head h2 {
  color: var(--heading);
  margin-bottom: 0.4rem;
  font-size: clamp(1.25rem, 2.2vw, 1.6rem);
  font-weight: 700;
  line-height: 1.3;
}

.important-links-head p {
  color: var(--text-muted);
  line-height: 1.6;
  font-size: 0.95rem;
}

.important-links-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(320px, 1fr));
  gap: 0.75rem;
}

.important-link-card {
  --link-accent: #b9cdef;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  text-decoration: none;
  border: 1px solid #d7e2f5;
  border-radius: 12px;
  padding: 0.85rem;
  background: #f9fbff;
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease, background-color 0.24s ease;
}

.important-link-card::before {
  content: "";
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: 0;
  width: 4px;
  border-radius: 0 999px 999px 0;
  background: var(--link-accent);
  transform: scaleY(0.2);
  transform-origin: center;
  opacity: 0.35;
  transition: transform 0.24s ease, opacity 0.24s ease;
  z-index: 0;
}

.important-link-card::after {
  content: "";
  position: absolute;
  inset: -35% -25%;
  background: radial-gradient(circle at 100% 0%, color-mix(in srgb, var(--link-accent) 38%, transparent) 0%, transparent 58%);
  opacity: 0;
  transition: opacity 0.28s ease;
  z-index: 0;
  pointer-events: none;
}

.important-link-card h3 {
  color: var(--heading);
  font-size: 0.98rem;
  margin-bottom: 0.3rem;
  transition: color 0.24s ease;
  position: relative;
  z-index: 1;
  display: inline-block;
  padding-bottom: 0.12rem;
}

.important-link-card h3::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: var(--link-accent);
  transition: width 0.28s ease;
}

.important-link-card p {
  color: #4a5a77;
  font-size: 0.9rem;
  line-height: 1.5;
  transition: color 0.24s ease;
  position: relative;
  z-index: 1;
}

.important-link-card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--link-accent) 38%, #334155);
  background: linear-gradient(140deg, #1e293b 0%, #0f172a 100%);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.34);
}

.important-link-card:hover::before {
  transform: scaleY(1);
  opacity: 0.95;
}

.important-link-card:hover::after {
  opacity: 0.95;
}

.important-link-card:nth-child(1) { --link-accent: #3b82f6; }
.important-link-card:nth-child(2) { --link-accent: #10b981; }
.important-link-card:nth-child(3) { --link-accent: #f59e0b; }
.important-link-card:nth-child(4) { --link-accent: #8b5cf6; }
.important-link-card:nth-child(5) { --link-accent: #ef4444; }
.important-link-card:nth-child(6) { --link-accent: #06b6d4; }
.important-link-card:nth-child(7) { --link-accent: #14b8a6; }
.important-link-card:nth-child(8) { --link-accent: #f97316; }
.important-link-card:nth-child(9) { --link-accent: #22c55e; }

.important-link-card:hover h3 {
  color: #f8fafc;
}

.important-link-card:hover h3::after {
  width: 100%;
}

.important-link-card:hover p {
  color: #cbd5e1;
}

.important-link-card:focus-visible {
  outline: none;
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--link-accent) 38%, #334155);
  background: linear-gradient(140deg, #1e293b 0%, #0f172a 100%);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--link-accent) 34%, #334155), 0 10px 22px rgba(15, 23, 42, 0.34);
}

.important-link-card:focus-visible::before {
  transform: scaleY(1);
  opacity: 0.95;
}

.important-link-card:focus-visible::after {
  opacity: 0.95;
}

.important-link-card:focus-visible h3 {
  color: #f8fafc;
}

.important-link-card:focus-visible h3::after {
  width: 100%;
}

.important-link-card:focus-visible p {
  color: #cbd5e1;
}

.contact-intro h2 {
  color: #fff;
  margin-bottom: 0.4rem;
}

.contact-intro p {
  line-height: 1.55;
  color: #dbe7ff;
}

.contact-email {
  margin-top: 0.7rem;
  font-weight: 600;
}

.contact-email a {
  color: #fef3c7;
  text-decoration: none;
}

.contact-form {
  background: #ffffff;
  border: 1px solid #d7e2f5;
  border-radius: 16px;
  padding: 1.15rem;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  display: grid;
  gap: 0.55rem;
}

.contact-form label {
  font-weight: 600;
  color: #1f2a44;
  font-size: 0.92rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  padding: 0.62rem 0.75rem;
  font: inherit;
  color: #0f172a;
  background: #ffffff;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #173a85;
  box-shadow: 0 0 0 3px rgba(23, 58, 133, 0.14);
}

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

.contact-form button {
  margin-top: 0.25rem;
  border: 0;
  border-radius: 10px;
  padding: 0.68rem 0.92rem;
  font-weight: 700;
  background: #e8b94a;
  color: #0b1f4d;
  cursor: pointer;
}

.contact-form button:hover {
  background: var(--accent-2);
  box-shadow: 0 4px 12px rgba(201, 162, 39, 0.35);
}

.site-footer {
  background: linear-gradient(180deg, var(--nav-bg) 0%, #061018 100%);
  color: var(--text-light);
  border-top: 2px solid rgba(212, 175, 55, 0.3);
  margin-top: 0;
}

.footer-wrap {
  width: min(1120px, 94%);
  margin: 0 auto;
  padding: 1.5rem 0.2rem 1rem;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 1rem;
}

.footer-brand h3 {
  color: #fff;
  margin-bottom: 0.35rem;
  font-size: 1rem;
  font-weight: 700;
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.55;
  font-size: 0.9rem;
}

.footer-links h4,
.footer-contact h4 {
  color: #fff;
  margin-bottom: 0.45rem;
  font-size: 0.9rem;
  font-weight: 600;
}

.footer-links ul,
.footer-contact ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.32rem;
}

.footer-links a,
.footer-contact a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-size: 0.88rem;
}

.footer-links a:hover,
.footer-contact a:hover {
  color: var(--gold);
  text-decoration: underline;
}

.footer-bottom {
  width: min(1120px, 94%);
  margin: 0 auto;
  padding: 0.75rem 0.2rem 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.82rem;
}

@media (max-width: 1100px) {
  .navbar {
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.9rem;
    padding: 0.85rem 1rem 0.95rem;
  }

  a.logo {
    position: static;
    align-items: center;
  }

  .nav-corner {
    position: static;
    transform: none;
    margin-left: auto;
    border-left: 1px solid rgba(255, 255, 255, 0.25);
    padding-left: 0.75rem;
    background: rgba(0, 0, 0, 0.12);
    border-radius: 10px;
  }

  .menu-toggle {
    display: inline-flex;
    margin-left: 0;
  }

  .mobile-home-link {
    display: inline-flex;
    align-items: center;
    margin-left: auto;
  }

  .nav-links .nav-home-item {
    display: none;
  }

  .nav-links {
    display: none;
    margin-left: 0;
    width: 100%;
    flex-direction: column;
    gap: 0.3rem;
    border-radius: 14px;
    padding: 0.45rem;
    background: rgba(255, 255, 255, 0.08);
  }

  .navbar.menu-open .nav-links {
    display: flex;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links a {
    width: 100%;
    text-align: left;
    border-radius: 10px;
    white-space: normal;
    line-height: 1.25;
  }

  .dropdown-menu {
    position: static;
    min-width: auto;
    margin-top: 0.35rem;
    border-radius: 10px;
  }

  .dropdown:hover .dropdown-menu {
    display: none;
  }

  .dropdown.open .dropdown-menu,
  .dropdown.open:hover .dropdown-menu {
    display: block;
  }

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

@media (max-width: 900px) {
  .logo-title {
    font-size: clamp(0.88rem, 2.6vw, 1.05rem);
  }

  .logo-subtitle {
    font-size: clamp(0.64rem, 1.8vw, 0.76rem);
  }

  .nav-links a {
    padding: 0.45rem 0.8rem;
    font-size: 0.92rem;
  }

  .gallery-card {
    height: 36vh;
  }

  .contact-wrap {
    grid-template-columns: 1fr;
  }

  .principal-wrap {
    grid-template-columns: 1fr;
  }

  .principal-image img {
    max-width: 260px;
    margin: 0 auto;
    display: block;
  }

  .footer-wrap {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .principal-section,
  .contact-section,
  .important-links-section {
    padding-left: 0.8rem;
    padding-right: 0.8rem;
  }

  .important-links-wrap,
  .principal-wrap,
  .contact-form,
  .contact-intro {
    padding: 1rem;
  }

  .important-links-head h2 {
    font-size: 1.25rem;
  }

  .important-links-head p,
  .principal-content p,
  .contact-intro p {
    font-size: 0.94rem;
  }

  .important-link-card {
    padding: 0.78rem;
  }

  .important-link-card h3 {
    font-size: 0.94rem;
  }

  .important-link-card p {
    font-size: 0.86rem;
  }
}

@media (max-width: 640px) {
  .navbar {
    padding: 0.75rem;
  }

  a.logo {
    align-items: flex-start;
    padding: 0.45rem 0.75rem 0.45rem 1.35rem;
  }

  .logo-title {
    font-size: 0.9rem;
    letter-spacing: 0.45px;
    white-space: normal;
    text-align: left;
  }

  .logo-subtitle {
    text-align: left;
    font-size: 0.72rem;
  }

  .nav-links {
    width: 100%;
  }

  .dropdown-menu {
    margin-top: 0.3rem;
  }

  .gallery-card {
    width: auto;
    max-width: none;
    height: 30vh;
  }

  .contact-wrap {
    grid-template-columns: 1fr;
  }

  .principal-wrap {
    grid-template-columns: 1fr;
  }

  .principal-image img {
    max-width: 260px;
    margin: 0 auto;
    display: block;
  }

  .important-links-grid {
    grid-template-columns: 1fr;
  }

  .footer-wrap {
    grid-template-columns: 1fr;
    padding-top: 1.2rem;
  }
}

@media (max-width: 480px) {
  .navbar {
    padding: 0.7rem 0.6rem 0.85rem;
  }

  a.logo {
    padding: 0.4rem 0.6rem 0.4rem 1.2rem;
    border-radius: 10px;
  }

  .nav-links {
    gap: 0.3rem;
    padding: 0.25rem 0.3rem;
  }

  .nav-links a {
    padding: 0.42rem 0.62rem;
    font-size: 0.84rem;
  }

  .dropdown-menu a {
    padding: 0.42rem 0.7rem;
    font-size: 0.86rem;
  }

  .gallery-card {
    height: 26vh;
  }

  .principal-name {
    font-size: 0.98rem;
  }

  .principal-role {
    font-size: 0.8rem;
  }

  .footer-bottom {
    font-size: 0.78rem;
  }
}



.login-page {
  background:
    radial-gradient(circle at 14% 15%, rgba(232, 185, 74, 0.16), transparent 34%),
    radial-gradient(circle at 86% 12%, rgba(16, 42, 102, 0.2), transparent 38%),
    linear-gradient(180deg, #eef3fc 0%, #e6edf8 100%);
}

.login-shell {
  width: min(1020px, 94%);
  min-height: 100vh;
  margin: 0 auto;
  padding: 1.8rem 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  align-items: center;
}

.login-hero {
  color: #102a66;
  background: linear-gradient(160deg, #f9fbff 0%, #eef3fd 100%);
  border: 1px solid #d7e2f5;
  border-radius: 20px;
  padding: 1.5rem;
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.12);
}

.login-kicker {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #1d4a9a;
  font-weight: 800;
  margin-bottom: 0.4rem;
}

.login-hero h1 {
  color: #0f2a67;
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 0.45rem;
}

.login-subtitle {
  color: #3d4f70;
  line-height: 1.55;
  margin-bottom: 0.8rem;
}

.login-points {
  list-style: none;
  display: grid;
  gap: 0.5rem;
}

.login-points li {
  color: #334155;
  line-height: 1.45;
  padding-left: 0.9rem;
  position: relative;
}

.login-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #1d4a9a;
}

.login-card {
  width: min(430px, 100%);
  justify-self: end;
  border-radius: 20px;
  padding: 1.3rem;
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.16);
  border: 1px solid #ccd8ec;
}

.login-type-chip {
  display: inline-block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  font-weight: 800;
  color: #173a85;
  background: #e6eefc;
  border: 1px solid #bfd0ee;
  border-radius: 999px;
  padding: 0.25rem 0.58rem;
  margin-bottom: 0.35rem;
}

.login-title {
  color: #0f2a67;
  margin-bottom: 0.3rem;
}

.login-message {
  font-size: 0.88rem;
  color: #64748b;
  min-height: 1.2rem;
}

.login-demo {
  font-size: 0.82rem;
  color: #64748b;
}

.login-links {
  margin-top: 0.2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.login-link {
  text-decoration: none;
  color: #173a85;
  font-weight: 700;
  font-size: 0.9rem;
}

.login-link-secondary {
  color: #3d4f70;
}

.login-link:hover,
.login-link:focus-visible {
  color: #0f2a67;
  text-decoration: underline;
}

@media (max-width: 900px) {
  .login-shell {
    grid-template-columns: 1fr;
    gap: 0.8rem;
    padding: 1rem 0;
  }

  .login-card {
    width: 100%;
    justify-self: stretch;
  }

  .login-hero {
    padding: 1.1rem;
  }
}
.login-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 10% 10%, rgba(22, 58, 134, 0.16), transparent 40%),
    radial-gradient(circle at 90% 85%, rgba(232, 185, 74, 0.2), transparent 42%),
    linear-gradient(180deg, #eef3fc 0%, #e7eef9 100%);
}

.login-layout {
  width: min(1080px, 94%);
  margin: 0 auto;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.1fr 0.95fr;
  gap: 1.1rem;
  align-items: center;
  padding: 1.4rem 0;
}

.login-brand {
  background: linear-gradient(145deg, #0f2a67 0%, #1d3f88 100%);
  border-radius: 24px;
  padding: 1.8rem;
  color: #f8fafc;
  box-shadow: 0 22px 44px rgba(15, 23, 42, 0.28);
  border: 1px solid rgba(232, 185, 74, 0.35);
}

.login-brand-mark {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, #f4cf77 0%, #e8b94a 100%);
  color: #102a66;
  font-weight: 900;
  letter-spacing: 0.4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.85rem;
  box-shadow: 0 10px 20px rgba(232, 185, 74, 0.32);
}

.login-brand-kicker {
  display: inline-block;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.9px;
  color: #fef3c7;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  padding: 0.28rem 0.58rem;
  margin-bottom: 0.85rem;
}

.login-brand h1 {
  font-size: clamp(1.55rem, 2.8vw, 2.3rem);
  margin-bottom: 0.55rem;
  line-height: 1.15;
  color: #ffffff;
}

.login-brand-copy {
  color: #dbe7ff;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.login-brand-list {
  list-style: none;
  display: grid;
  gap: 0.55rem;
}

.login-brand-list li {
  position: relative;
  padding-left: 1rem;
  color: #e4edff;
  line-height: 1.45;
}

.login-brand-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #f7cd71;
}

.login-panel {
  display: grid;
}

.login-form {
  background: #ffffff;
  border: 1px solid #d6e2f3;
  border-radius: 22px;
  padding: 1.45rem;
  box-shadow: 0 20px 42px rgba(15, 23, 42, 0.14);
  display: grid;
  gap: 0.52rem;
}

.login-form-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.12rem;
}

.login-form-brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: #173a85;
  color: #fef3c7;
  font-weight: 800;
  font-size: 0.92rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.login-form-brand-text {
  display: grid;
  gap: 0.05rem;
}

.login-form-brand-text strong {
  font-size: 0.87rem;
  color: #123172;
}

.login-form-brand-text span {
  font-size: 0.76rem;
  color: #5f7394;
}

.login-badge {
  display: inline-block;
  width: fit-content;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-size: 0.72rem;
  font-weight: 800;
  color: #19408d;
  background: #eaf1fd;
  border: 1px solid #c6d8f4;
  border-radius: 999px;
  padding: 0.27rem 0.62rem;
  margin-bottom: 0.2rem;
}

.login-form h2 {
  color: #0f2a67;
  margin-bottom: 0.1rem;
}

.login-intro {
  color: #5b6f90;
  margin-bottom: 0.55rem;
  font-size: 0.92rem;
}

.login-label {
  font-weight: 700;
  color: #22314d;
  font-size: 0.9rem;
  margin-top: 0.18rem;
}

.login-input {
  width: 100%;
  border: 1px solid #c7d5eb;
  border-radius: 10px;
  padding: 0.64rem 0.78rem;
  font: inherit;
  color: #0f172a;
  background: #ffffff;
  transition: border-color 0.22s ease, box-shadow 0.22s ease;
}

.login-input:focus {
  outline: none;
  border-color: #19408d;
  box-shadow: 0 0 0 3px rgba(25, 64, 141, 0.14);
}

.login-password-wrap {
  position: relative;
}

.login-password-wrap .login-input {
  padding-right: 4.9rem;
}

.login-pass-toggle {
  position: absolute;
  top: 50%;
  right: 0.45rem;
  transform: translateY(-50%);
  border: 1px solid #c7d5eb;
  border-radius: 8px;
  background: #f8fbff;
  color: #1d4a9a;
  font-size: 0.76rem;
  font-weight: 700;
  padding: 0.3rem 0.58rem;
  cursor: pointer;
}

.login-pass-toggle:hover {
  background: #e9f0fb;
}

.login-row {
  margin-top: 0.15rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}

.login-remember {
  color: #4b5f82;
  font-size: 0.86rem;
  display: inline-flex;
  gap: 0.4rem;
  align-items: center;
}

.login-remember input {
  accent-color: #19408d;
}

.login-help {
  text-decoration: none;
  color: #1d4a9a;
  font-size: 0.86rem;
  font-weight: 600;
}

.login-help:hover,
.login-help:focus-visible {
  text-decoration: underline;
}

.login-submit {
  margin-top: 0.2rem;
  border: 0;
  border-radius: 10px;
  padding: 0.7rem 0.95rem;
  font-weight: 800;
  letter-spacing: 0.2px;
  background: linear-gradient(135deg, #e8b94a 0%, #f0c96a 100%);
  color: #0b1f4d;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.login-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 18px rgba(232, 185, 74, 0.35);
}

.login-submit:disabled {
  opacity: 0.75;
  cursor: wait;
  transform: none;
  box-shadow: none;
}

.login-feedback {
  font-size: 0.88rem;
  min-height: 1.2rem;
  margin-top: 0.1rem;
}

.login-demo-box {
  border: 1px dashed #c8d7ee;
  background: #f7faff;
  border-radius: 11px;
  padding: 0.55rem 0.7rem;
  margin-top: 0.15rem;
}

.login-demo-box p {
  color: #4d6285;
  font-size: 0.8rem;
  margin-bottom: 0.18rem;
}

.login-demo-box strong {
  color: #173a85;
  font-size: 0.87rem;
}

.login-nav-links {
  margin-top: 0.22rem;
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.login-nav-links a {
  text-decoration: none;
  color: #1d4a9a;
  font-size: 0.88rem;
  font-weight: 700;
}

.login-nav-links a:hover,
.login-nav-links a:focus-visible {
  text-decoration: underline;
  color: #0f2a67;
}

@media (max-width: 920px) {
  .login-layout {
    grid-template-columns: 1fr;
    align-items: stretch;
    gap: 0.8rem;
    padding: 0.95rem 0;
  }

  .login-brand,
  .login-form {
    padding: 1.1rem;
    border-radius: 18px;
  }
}

@media (max-width: 520px) {
  .login-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .login-submit {
    width: 100%;
  }
}

/* ══════════════════════════════════════════
   STAFF / OUR TEAM SECTION — PROFESSIONAL
   ══════════════════════════════════════════ */
.staff-section {
  padding: 70px 5% 80px;
  background: #f8fafc;
  color: var(--text-strong);
  position: relative;
  overflow: hidden;
}

/* Subtle decorative gradient orb in background */
.staff-section::before {
  content: '';
  position: absolute;
  top: -80px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.staff-wrap {
  max-width: 1280px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* ─── Section Header ─── */
.staff-head {
  text-align: center;
  margin-bottom: 48px;
}

.staff-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--link-blue);
  margin-bottom: 10px;
  background: rgba(212, 175, 55, 0.08);
  border: 1px solid rgba(212, 175, 55, 0.2);
  padding: 4px 14px;
  border-radius: 999px;
}

.staff-kicker::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
}

.staff-head h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  color: var(--heading);
  margin-bottom: 12px;
  line-height: 1.2;
  letter-spacing: -0.5px;
}

.staff-head p {
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto;
  font-size: 0.95rem;
  line-height: 1.65;
}

/* ─── Staff Grid ─── */
.staff-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 16px 14px;
}

/* ─── Individual Card ─── */
.staff-card {
  background: #0f2a67;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 14px 10px 12px;
  text-align: center;
  transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  overflow: hidden;
}

/* Gold accent line at the top on hover */
.staff-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--accent-2));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.staff-card:hover::before {
  transform: scaleX(1);
}

.staff-card:hover {
  transform: translateY(-4px);
  border-color: rgba(212, 175, 55, 0.5);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.25), 0 2px 8px rgba(212, 175, 55, 0.15);
  background: #173585;
}

/* ─── Square Photo Container ─── */
.staff-img-container {
  width: 86px;
  height: 86px;
  border-radius: 8px;
  margin-bottom: 10px;
  overflow: hidden;
  border: 1.5px solid #e2e8f0;
  transition: all 0.28s ease;
  background: #f1f5f9;
  flex-shrink: 0;
}

.staff-card:hover .staff-img-container {
  border-color: var(--gold);
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.18);
}

.staff-img-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

/* ─── Name & Role ─── */
.staff-name {
  font-size: 0.82rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 3px;
  line-height: 1.25;
  letter-spacing: -0.1px;
}

.staff-role {
  font-size: 0.72rem;
  color: rgba(180, 210, 255, 0.85);
  font-weight: 500;
  line-height: 1.2;
}

/* Professional Custom Alert Popup */
.custom-alert-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  backdrop-filter: blur(2px);
}
.custom-alert-overlay.show {
  opacity: 1;
  visibility: visible;
}
.custom-alert-box {
  background: #ffffff;
  border-radius: 12px;
  padding: 30px;
  width: 90%;
  max-width: 380px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
  transform: scale(0.8) translateY(20px);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.custom-alert-overlay.show .custom-alert-box {
  transform: scale(1) translateY(0);
}
.custom-alert-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.custom-alert-icon.error {
  background: #fee2e2;
  color: #ef4444;
}
.custom-alert-icon.success {
  background: #dcfce3;
  color: #22c55e;
}
.custom-alert-icon.warning {
  background: #fef3c7;
  color: #f59e0b;
}
.custom-alert-icon svg {
  width: 32px;
  height: 32px;
}
.custom-alert-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 10px;
}
.custom-alert-message {
  font-size: 1rem;
  color: #475569;
  margin-bottom: 25px;
  line-height: 1.5;
}
.custom-alert-btn {
  background: #0f2a67;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 12px 30px;
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
}
.custom-alert-btn:hover {
  background: #E8B94A;
  color: #0f2a67;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(232, 185, 74, 0.4);
}