:root {
  --bg-dark: #0d1117;
  --bg-card: #161b22;
  --bg-hero: #0a0e14;
  --accent: #1a5fb4;
  --accent-hover: #3584e4;
  --gold: #d4a84b;
  --text: #e6edf3;
  --text-muted: #8b949e;
  --border: #30363d;
  --font-display: 'Bebas Neue', sans-serif;
  --font-head: 'Oswald', sans-serif;
  --font-body: 'Source Sans 3', sans-serif;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--bg-dark);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(13, 17, 23, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease;
}

.header.hidden {
  transform: translateY(-100%);
}

.nav {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.35rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  transition: transform 0.3s ease;
}

.logo img {
  width: 40px;
  height: 40px;
  display: block;
  object-fit: contain;
}

.logo:hover {
  transform: scale(1.02);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-links a {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.3s ease, transform 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--gold);
  transform: translateY(-2px);
}

.btn-login {
  font-family: var(--font-head);
  font-weight: 500;
  padding: 0.5rem 1.25rem;
  border: 2px solid var(--accent);
  color: var(--accent);
  border-radius: 4px;
  transition: all 0.3s ease;
}

.btn-login:hover {
  background: var(--accent);
  color: var(--text);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(26, 95, 180, 0.4);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 6rem 1.5rem 4rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: var(--bg-hero) url('photos/BurgerShot.png') center / cover no-repeat;
  z-index: 0;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 14, 20, 0.85) 0%, rgba(10, 14, 20, 0.75) 50%, rgba(10, 14, 20, 0.9) 100%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 800px;
}

.hero-line1 {
  font-family: var(--font-display);
  font-size: clamp(3rem, 10vw, 5.5rem);
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1.1;
  color: var(--text);
  margin-bottom: 0.5rem;
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.5);
}

.hero-line2 {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 9vw, 5rem);
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1.1;
  color: var(--gold);
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 30px rgba(212, 168, 75, 0.2);
}

.hero-tagline {
  font-family: var(--font-head);
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: lowercase;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.btn-hero {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: 0.15em;
  padding: 1rem 2rem;
  border: 2px solid var(--gold);
  color: var(--gold);
  background: transparent;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.btn-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(212, 168, 75, 0.2), transparent);
  transition: left 0.6s ease;
}

.btn-hero:hover {
  background: var(--gold);
  color: var(--bg-dark);
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(212, 168, 75, 0.35);
}

.btn-hero:hover::before {
  left: 100%;
}

.btn-hero-outline {
  border-color: var(--text-muted);
  color: var(--text-muted);
}

.btn-hero-outline:hover {
  border-color: var(--text);
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container-narrow {
  max-width: 720px;
}

.text-center {
  text-align: center;
}

.animate-in .hero-line1 {
  animation: fadeUp 0.8s ease-out 0.1s both;
}

.animate-in .hero-line2 {
  animation: fadeUp 0.8s ease-out 0.25s both;
}

.animate-in .hero-tagline {
  animation: fadeUp 0.8s ease-out 0.4s both;
}

.animate-in .hero-buttons {
  animation: fadeUp 0.8s ease-out 0.55s both;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.intro-block {
  padding: 4rem 1.5rem;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
}

.intro-text {
  max-width: 640px;
  margin: 0 auto 1.5rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 1.1rem;
  line-height: 1.75;
}

.intro-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.btn-secondary {
  font-family: var(--font-head);
  font-weight: 500;
  padding: 0.75rem 1.5rem;
  border: 2px solid var(--border);
  color: var(--text-muted);
  border-radius: 4px;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-2px);
}

.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 2rem;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.departments-teaser .section-subtitle {
  margin-bottom: 2.5rem;
}

.teaser-cta {
  text-align: center;
  margin-top: 2.5rem;
}

.cta-block {
  padding: 4rem 1.5rem;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
}

.cta-content {
  text-align: center;
  max-width: 500px;
  margin: 0 auto;
}

.cta-content h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 400;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.cta-content p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

/* ===== Page hero (inner pages) ===== */
.page-hero {
  min-height: 45vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 7rem 1.5rem 4rem;
  overflow: hidden;
}

.page-hero-bg {
  position: absolute;
  inset: 0;
  background: var(--bg-hero) url('photos/BurgerShot.png') center / cover no-repeat;
  z-index: 0;
}

.page-hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 14, 20, 0.88) 0%, rgba(10, 14, 20, 0.82) 100%);
  pointer-events: none;
}

.page-hero-discord .page-hero-bg { background-image: url('photos/Police.png'); }
.page-hero-about .page-hero-bg { background-image: url('photos/BurgerShot2.png'); }
.page-hero-contact .page-hero-bg { background-image: url('photos/BurgerShot3.png'); }
.page-hero-departments .page-hero-bg { background-image: url('photos/Police2.png'); }

/* Police lights flash on departments hero - real elements so they work on PC + mobile */
.page-hero-departments {
  overflow: hidden;
  position: relative;
}

.hero-police-lights {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  pointer-events: none;
}

.hero-police-red {
  background: linear-gradient(90deg, rgba(220, 20, 60, 0.45) 0%, rgba(220, 20, 60, 0.2) 40%, transparent 70%);
  animation: hero-light-red 0.9s ease-in-out infinite;
}

.hero-police-blue {
  background: linear-gradient(90deg, transparent 30%, rgba(30, 80, 220, 0.2) 60%, rgba(30, 80, 220, 0.45) 100%);
  animation: hero-light-blue 0.9s ease-in-out infinite;
}

/* Rules page: yellow and red flash */
.hero-lights-yellow-white .hero-police-red {
  background: linear-gradient(90deg, rgba(255, 215, 0, 0.45) 0%, rgba(255, 215, 0, 0.2) 40%, transparent 70%);
}
.hero-lights-yellow-white .hero-police-blue {
  background: linear-gradient(90deg, transparent 30%, rgba(220, 20, 60, 0.2) 60%, rgba(220, 20, 60, 0.5) 100%);
}

/* About page: green and blue flash */
.page-hero-about .hero-police-red {
  background: linear-gradient(90deg, rgba(50, 205, 50, 0.45) 0%, rgba(50, 205, 50, 0.2) 40%, transparent 70%);
}
.page-hero-about .hero-police-blue {
  background: linear-gradient(90deg, transparent 30%, rgba(30, 80, 220, 0.2) 60%, rgba(30, 80, 220, 0.45) 100%);
}

@keyframes hero-light-red {
  0%, 100% { opacity: 0.9; }
  50% { opacity: 0.2; }
}

@keyframes hero-light-blue {
  0%, 100% { opacity: 0.2; }
  50% { opacity: 0.9; }
}

.page-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
}

.page-hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 8vw, 4rem);
  font-weight: 400;
  letter-spacing: 0.05em;
  color: var(--text);
  margin-bottom: 0.75rem;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

.page-hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto 1.5rem;
}

.page-hero-content .btn-hero {
  margin-top: 0.5rem;
}

.content-section {
  padding: 4rem 1.5rem;
  background: var(--bg-dark);
}

.content-section-alt {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
}

.rules-content-section .container-narrow {
  max-width: 720px;
}

.rules-content {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 2.25rem 2.5rem;
}

.rules-intro {
  color: var(--text-muted);
  line-height: 1.75;
  margin: 0 0 2rem;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid var(--border);
}

.rules-heading {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--gold);
  margin: 0 0 1.25rem;
  padding-top: 2.25rem;
}

.rules-heading:first-of-type {
  padding-top: 0;
}

.rules-subheading {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--gold);
  margin: 1.5rem 0 0.5rem;
}

.rules-subheading:first-of-type {
  margin-top: 0;
}

.rules-content .rules-subheading + .rules-list {
  margin-top: 0;
}

.rules-content .rules-subheading + p {
  margin: 0 0 0.5rem 0;
}

.rules-list ul {
  list-style: disc;
  list-style-position: outside;
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}

.rules-list {
  list-style: disc;
  list-style-position: outside;
  padding-left: 1.5rem;
  margin: 0.25rem 0 0;
  color: var(--text);
  line-height: 1.6;
}

.rules-list li {
  margin-bottom: 0.6rem;
  padding-left: 0.25rem;
}

.rules-list li:last-child {
  margin-bottom: 0;
}

.rules-agreement {
  margin-top: 2rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--border);
}

.rules-agreement p {
  margin: 0 0 0.5rem;
  color: var(--text);
  line-height: 1.75;
}

.rules-agreement p:last-child {
  margin-bottom: 0;
}

.rules-agreement strong {
  color: var(--gold);
}

.section-intro {
  text-align: center;
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto 2rem;
  line-height: 1.7;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 2rem;
  transition: all 0.3s ease;
}

.feature-card:hover {
  border-color: var(--accent);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
  transform: translateY(-4px);
}

.feature-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.feature-card h3 {
  font-family: var(--font-head);
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
  color: var(--gold);
}

.feature-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.rules-list {
  max-width: 700px;
  margin: 2rem auto 0;
}

.rule-item {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.rule-item:last-child {
  border-bottom: none;
}

.rule-num {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: var(--text);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1rem;
  border-radius: 6px;
}

.rule-item h4 {
  font-family: var(--font-head);
  font-size: 1.05rem;
  margin-bottom: 0.25rem;
  color: var(--text);
}

.rule-item p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.checklist-block {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 2rem;
  max-width: 480px;
  margin: 2rem auto;
}

.checklist {
  list-style: none;
}

.checklist li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 0.75rem;
  color: var(--text-muted);
}

.checklist li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--gold);
  font-weight: 600;
}

.cta-inline {
  text-align: center;
  margin-top: 2rem;
}

.mission-block {
  text-align: left;
}

.mission-lead {
  font-size: 1.1rem;
  color: var(--text);
  margin-bottom: 2rem;
  line-height: 1.8;
}

.mission-subtitle {
  font-family: var(--font-head);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--gold);
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.mission-block p {
  margin-bottom: 1.25rem;
  color: var(--text-muted);
  line-height: 1.8;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.value-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.75rem;
  text-align: center;
  transition: all 0.3s ease;
}

.value-card:hover {
  border-color: var(--gold);
  box-shadow: 0 8px 25px rgba(212, 168, 75, 0.15);
}

.value-card h4 {
  font-family: var(--font-head);
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: var(--gold);
}

.value-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.contact-page-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
  max-width: 900px;
  margin: 0 auto;
}

.contact-info-block h2,
.contact-form-wrap h2 {
  font-family: var(--font-head);
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--text);
}

.contact-info-block p,
.contact-desc {
  color: var(--text-muted);
  margin-bottom: 1rem;
  line-height: 1.7;
}

.contact-info-block .contact-email {
  display: inline-block;
  margin-bottom: 1.25rem;
}

.contact-form label {
  display: block;
  font-family: var(--font-head);
  font-size: 0.9rem;
  margin-bottom: 0.35rem;
  color: var(--text-muted);
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  margin-bottom: 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.contact-form textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-form button[type="submit"] {
  cursor: pointer;
  border: none;
  width: 100%;
}

.connect-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.connect-card {
  background: var(--bg-dark);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 2rem;
  transition: all 0.3s ease;
}

.connect-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
}

.connect-card h3 {
  font-family: var(--font-head);
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: var(--gold);
}

.connect-card p {
  color: var(--text-muted);
  margin-bottom: 1rem;
  line-height: 1.6;
  font-size: 0.95rem;
}

.dept-detail {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
  align-items: center;
}

.dept-detail-reverse {
  direction: rtl;
}

.dept-detail-reverse > * {
  direction: ltr;
}

.dept-detail-reverse .dept-detail-text {
  text-align: left;
}

.dept-detail-media .dept-img-wrap {
  max-width: 420px;
  margin: 0;
  border-radius: 8px;
}

.dept-detail-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 400;
  letter-spacing: 0.03em;
  margin-bottom: 1rem;
  color: var(--text);
}

.dept-detail-text p {
  color: var(--text-muted);
  margin-bottom: 1rem;
  line-height: 1.75;
}

.dept-list {
  list-style: none;
  margin: 1.25rem 0 1.5rem;
  padding: 0;
}

.dept-list li {
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: 0.5rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.dept-list li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--gold);
}

.departments {
  padding: 5rem 1.5rem;
  background: var(--bg-dark);
}

.departments .container {
  max-width: 1100px;
  margin: 0 auto;
}

.dept-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.dept-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.5rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.dept-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(26, 95, 180, 0.15) 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.dept-card:hover {
  transform: translateY(-8px);
  border-color: var(--accent);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(26, 95, 180, 0.2);
}

.dept-card:hover::before {
  opacity: 1;
}

.dept-img-wrap {
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 1rem;
  background: var(--bg-dark);
}

.dept-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.dept-card:hover .dept-img-wrap img {
  transform: scale(1.08);
}

.dept-label {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  transition: color 0.3s ease;
}

.dept-card:hover .dept-label {
  color: var(--gold);
}

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal:nth-child(1) { transition-delay: 0s; }
.reveal:nth-child(2) { transition-delay: 0.1s; }
.reveal:nth-child(3) { transition-delay: 0.2s; }
.reveal:nth-child(4) { transition-delay: 0.3s; }
.reveal:nth-child(5) { transition-delay: 0.4s; }
.reveal:nth-child(6) { transition-delay: 0.5s; }

.about {
  padding: 5rem 1.5rem;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 3.5rem);
  font-weight: 400;
  letter-spacing: 0.05em;
  text-align: center;
  margin-bottom: 1rem;
  color: var(--text);
}

.about-intro {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 3rem;
  font-size: 1.1rem;
}

.team-grid {
  max-width: 1000px;
  margin: 0 auto 3rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(240px, 1fr));
  gap: 2rem;
}

.team-card {
  text-align: center;
  transition: transform 0.4s ease;
}

.team-card:hover {
  transform: translateY(-6px);
}

.team-photo {
  width: 140px;
  height: 140px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--border);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.team-card:hover .team-photo {
  border-color: var(--gold);
  box-shadow: 0 0 30px rgba(212, 168, 75, 0.3);
}

.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.team-card h3 {
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
  color: var(--gold);
}

.team-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.about-mission {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.about-mission p {
  margin-bottom: 1rem;
  color: var(--text-muted);
  line-height: 1.75;
}

.contact {
  padding: 5rem 1.5rem;
  background: var(--bg-dark);
  border-top: 1px solid var(--border);
}

.contact-content {
  max-width: 500px;
  margin: 0 auto;
  text-align: center;
}

.contact-address {
  font-family: var(--font-head);
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.contact-cta {
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.contact-email {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 1.1rem;
  color: var(--gold);
  margin-bottom: 1.5rem;
  transition: color 0.3s ease, transform 0.2s ease;
}

.contact-email:hover {
  color: #e8c468;
  transform: scale(1.02);
}

.btn-contact {
  font-family: var(--font-head);
  font-weight: 500;
  padding: 0.75rem 2rem;
  background: var(--accent);
  color: var(--text);
  border-radius: 4px;
  transition: all 0.3s ease;
  display: inline-block;
}

.btn-contact:hover {
  background: var(--accent-hover);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(26, 95, 180, 0.4);
}

.footer {
  padding: 1rem 1.5rem;
  text-align: center;
  border-top: 1px solid var(--border);
  background: var(--bg-card);
}

.footer p {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin: 0.25rem 0;
}

.footer-brand {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--gold);
  margin-bottom: 0.25rem;
}

.footer-links {
  margin-top: 0.25rem;
}

.footer-credit {
  margin-top: 0.5rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-credit a {
  color: var(--text-muted);
  transition: color 0.3s ease;
}

.footer-credit a:hover {
  color: var(--gold);
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background: var(--bg-card);
    flex-direction: column;
    padding: 5rem 2rem 2rem;
    gap: 1.5rem;
    border-left: 1px solid var(--border);
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.3);
  }

  .nav-links.open {
    right: 0;
  }

  .nav-toggle {
    display: flex;
    z-index: 1001;
  }

  .btn-login {
    display: none;
  }

  .dept-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 5rem;
  }

  .page-hero {
    min-height: 38vh;
    padding: 6rem 1rem 3rem;
  }

  .contact-page-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .dept-detail,
  .dept-detail-reverse {
    grid-template-columns: 1fr;
    gap: 2rem;
    direction: ltr;
  }

  .dept-detail-media .dept-img-wrap {
    max-width: 100%;
  }

  .intro-ctas {
    flex-direction: column;
  }

  .intro-ctas .btn-secondary {
    width: 100%;
    text-align: center;
  }
}

.dept-card.reveal { transition-delay: 0s; }
.dept-card.reveal.visible { transition-delay: 0s; }

.dept-grid .dept-card:nth-child(1) { transition-delay: 0s; }
.dept-grid .dept-card:nth-child(2) { transition-delay: 0.08s; }
.dept-grid .dept-card:nth-child(3) { transition-delay: 0.16s; }
.dept-grid .dept-card:nth-child(4) { transition-delay: 0.24s; }
.dept-grid .dept-card:nth-child(5) { transition-delay: 0.32s; }
.dept-grid .dept-card:nth-child(6) { transition-delay: 0.4s; }
