/* ===== FONTS ===== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Montserrat:wght@400;500;600;700;800;900&display=swap');

/* ===== CSS VARIABLES — LIGHT THEME ===== */
:root {
  --bg-primary: #ffffff;
  --bg-secondary: #f4f6f9;
  --bg-card: #ffffff;
  --bg-card-hover: #f8f9fb;
  --accent-gold: #8A939F;
  --accent-gold-light: #C8CED6;
  --accent-gold-dark: #5C6876;
  --metallic-shine: linear-gradient(135deg, #C8CED6 0%, #9BA4B0 30%, #6E7A8A 60%, #9BA4B0 80%, #C8CED6 100%);
  --accent-silver: #6b7a8d;
  --text-primary: #1a2332;
  --text-secondary: #4a5568;
  --text-muted: #8a95a5;
  --border-color: rgba(138, 147, 159, 0.25);
  --border-light: #e2e6ec;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.12);
  --radius: 12px;
  --radius-sm: 8px;
  --transition: 0.3s ease;
  --font-heading: 'Montserrat', sans-serif;
  --font-body: 'Inter', sans-serif;
  --container: 1200px;
  --header-height: 80px;
  /* Dark tones for hero/footer overlays */
  --dark-bg: #0a1628;
  --dark-card: #1a2332;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

ul, ol { list-style: none; }
img { max-width: 100%; height: auto; display: block; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select { font-family: inherit; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== UTILITY ===== */
.section-padding {
  padding: 100px 0;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 1rem;
  color: var(--text-primary);
  letter-spacing: -0.5px;
}

.section-title span {
  color: var(--accent-gold-dark);
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--accent-gold);
  margin: 20px auto 0;
}

.section-subtitle {
  text-align: center;
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 640px;
  margin: 0 auto 3rem;
  line-height: 1.7;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 36px;
  border-radius: 4px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  transition: all var(--transition);
}

.btn-primary {
  background: var(--accent-gold);
  color: #ffffff;
  border: 2px solid var(--accent-gold);
}

.btn-primary:hover {
  background: var(--accent-gold-dark);
  border-color: var(--accent-gold-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(92, 104, 118, 0.4);
}

.btn-outline {
  border: 2px solid var(--accent-gold);
  color: var(--accent-gold-dark);
  background: transparent;
}

.btn-outline:hover {
  background: var(--accent-gold);
  color: #ffffff;
  transform: translateY(-2px);
}

/* White outline variant for dark backgrounds */
.btn-outline-white {
  border: 2px solid #ffffff;
  color: #ffffff;
}

.btn-outline-white:hover {
  background: #ffffff;
  color: var(--dark-bg);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 10px 24px;
  font-size: 0.85rem;
}

/* ===== HEADER ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 1000;
  transition: all var(--transition);
  background: transparent;
}

/* On hero pages, header text is white */
.header .nav-menu a,
.header .logo-text {
  color: #ffffff;
  text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.header .logo-text small {
  color: var(--accent-gold-light);
}

.header .hamburger span {
  background: #ffffff;
}

.header.scrolled {
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(20px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

.header.scrolled .nav-menu a,
.header.scrolled .logo-text {
  color: var(--text-secondary);
}

.header.scrolled .logo-text small {
  color: var(--accent-gold);
}

.header.scrolled .nav-menu a:hover,
.header.scrolled .nav-menu a.active {
  color: var(--accent-gold);
}

.header.scrolled .hamburger span {
  background: var(--text-primary);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 1001;
}

.logo img {
  height: 50px;
  width: auto;
}

.logo-text {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.3;
  max-width: 200px;
}

.logo-text small {
  display: block;
  font-size: 0.7rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-menu a {
  font-size: 0.9rem;
  font-weight: 500;
  position: relative;
  padding: 4px 0;
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-gold);
  transition: width var(--transition);
}

.nav-menu a:hover,
.nav-menu a.active {
  color: var(--accent-gold) !important;
}

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

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  z-index: 1001;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  transition: all var(--transition);
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ===== HERO — Prestigious institutional style ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: #1a1f2e;
  color: #ffffff;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

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

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(15, 20, 30, 0.75) 0%,
    rgba(15, 20, 30, 0.4) 50%,
    rgba(15, 20, 30, 0.2) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  background: rgba(200, 206, 214, 0.12);
  border: 1px solid rgba(200, 206, 214, 0.25);
  border-radius: 4px;
  font-size: 0.8rem;
  color: var(--accent-gold-light);
  margin-bottom: 28px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: 3.2rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 24px;
  color: #ffffff;
  letter-spacing: -0.5px;
}

.hero h1 span {
  color: var(--accent-gold-light);
  font-weight: 800;
}

.hero-description {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 36px;
  line-height: 1.8;
  max-width: 720px;
}

.hero p {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 36px;
  line-height: 1.8;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  gap: 56px;
  margin-top: 64px;
  padding-top: 40px;
  border-top: 1px solid rgba(200, 206, 214, 0.2);
}

.hero-stat .number {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1;
  letter-spacing: -1px;
}

.hero-stat .number::after {
  content: '';
  display: block;
  width: 40px;
  height: 2px;
  background: var(--accent-gold-light);
  margin-top: 12px;
}

.hero-stat .label {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ===== ABOUT SECTION ===== */
.about {
  background: var(--bg-secondary);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-image {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.about-image-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.about-image-placeholder svg {
  width: 64px;
  height: 64px;
  opacity: 0.3;
}

.about-text h2 {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 20px;
  text-align: left;
}

.about-text h2 span {
  color: var(--accent-gold);
}

.about-text p {
  color: var(--text-secondary);
  margin-bottom: 16px;
  line-height: 1.8;
}

.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 28px;
}

.about-feature {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: #ffffff;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  color: var(--text-secondary);
  border: 1px solid var(--border-light);
}

.about-feature .icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(138, 147, 159, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-gold);
  flex-shrink: 0;
  font-size: 1.1rem;
}

/* ===== PROGRAMS / DIRECTIONS ===== */
.programs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.program-card {
  background: var(--bg-card);
  border-radius: 4px;
  padding: 40px 32px;
  border: 1px solid var(--border-light);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.program-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--accent-gold);
  opacity: 0;
  transition: opacity var(--transition);
}

.program-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-gold);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}

.program-card:hover::before {
  opacity: 1;
}

.program-icon {
  width: 56px;
  height: 56px;
  border-radius: 4px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 24px;
  color: var(--accent-gold-dark);
}

.program-card h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.program-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.7;
}

.program-card .learn-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent-gold);
  font-size: 0.85rem;
  font-weight: 600;
  margin-top: 16px;
  transition: gap var(--transition);
}

.program-card:hover .learn-more {
  gap: 10px;
}

/* ===== ADVANTAGES ===== */
.advantages {
  background: var(--bg-secondary);
}

.advantages-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.advantage-item {
  text-align: center;
  padding: 32px 20px;
}

.advantage-number {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--accent-gold-dark);
  line-height: 1;
  margin-bottom: 16px;
  letter-spacing: -2px;
}

.advantage-item h3 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.advantage-item p {
  color: var(--text-secondary);
  font-size: 0.85rem;
  line-height: 1.6;
}

/* ===== SOCIAL MISSION ===== */
.social-mission {
  position: relative;
  overflow: hidden;
  background: var(--bg-primary);
}

.social-mission::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(138, 147, 159, 0.04), transparent);
  pointer-events: none;
}

.mission-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
}

.mission-text h2 {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 20px;
  text-align: left;
}

.mission-text h2 span { color: var(--accent-gold); }

.mission-text p {
  color: var(--text-secondary);
  margin-bottom: 16px;
  line-height: 1.8;
}

.mission-highlight {
  background: var(--bg-secondary);
  border-left: 4px solid var(--accent-gold);
  padding: 24px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 24px 0;
}

.mission-highlight p {
  color: var(--accent-gold-dark);
  font-weight: 500;
  font-size: 1.05rem;
  margin-bottom: 0;
}

.mission-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.mission-stat {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 28px;
  text-align: center;
  border: 1px solid var(--border-light);
}

.mission-stat .number {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--accent-gold);
  line-height: 1;
}

.mission-stat .label {
  color: var(--text-secondary);
  font-size: 0.85rem;
  margin-top: 8px;
}

/* ===== NEWS ===== */
.news {
  background: var(--bg-secondary);
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.news-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border-light);
  transition: all var(--transition);
}

.news-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.news-card-image {
  height: 200px;
  background: #e8ecf2;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.8rem;
  position: relative;
  overflow: hidden;
}

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

.news-card-body {
  padding: 24px;
}

.news-card-date {
  font-size: 0.8rem;
  color: var(--accent-gold);
  font-weight: 500;
  margin-bottom: 10px;
}

.news-card h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 10px;
  line-height: 1.4;
  color: var(--text-primary);
}

.news-card p {
  color: var(--text-secondary);
  font-size: 0.88rem;
  line-height: 1.6;
}

.news-more {
  text-align: center;
  margin-top: 40px;
}

/* ===== TESTIMONIALS ===== */
.testimonials {
  background: var(--bg-primary);
}

.testimonials-slider {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
}

.testimonial-slide {
  display: none;
  text-align: center;
  padding: 40px;
}

.testimonial-slide.active {
  display: block;
}

.testimonial-quote {
  font-size: 1.15rem;
  line-height: 1.8;
  color: var(--text-secondary);
  font-style: italic;
  margin-bottom: 24px;
  position: relative;
}

.testimonial-quote::before {
  content: '\201C';
  font-size: 4rem;
  color: var(--accent-gold);
  opacity: 0.3;
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  font-family: Georgia, serif;
  line-height: 1;
}

.testimonial-author {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  color: var(--text-primary);
}

.testimonial-role {
  font-size: 0.85rem;
  color: var(--accent-gold);
  margin-top: 4px;
}

.slider-controls {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
}

.slider-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border-light);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
}

.slider-dot.active {
  background: var(--accent-gold);
  transform: scale(1.2);
}

.slider-arrows {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
  pointer-events: none;
}

.slider-arrow {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  cursor: pointer;
  pointer-events: all;
  transition: all var(--transition);
}

.slider-arrow:hover {
  background: var(--accent-gold);
  color: #ffffff;
}

/* ===== CONTACTS ===== */
.contacts {
  background: var(--bg-secondary);
}

.contacts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.contact-form {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 36px;
  border: 1px solid var(--border-light);
}

.contact-form h3 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 24px;
  color: var(--text-primary);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 0.95rem;
  transition: border-color var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--accent-gold);
}

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

.contact-info-cards {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-info-card {
  display: flex;
  gap: 16px;
  padding: 24px;
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border-light);
  transition: all var(--transition);
}

.contact-info-card:hover {
  border-color: var(--border-color);
  box-shadow: var(--shadow);
}

.contact-info-card .icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(138, 147, 159, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-gold);
  flex-shrink: 0;
  font-size: 1.2rem;
}

.contact-info-card h4 {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--text-primary);
}

.contact-info-card p {
  color: var(--text-secondary);
  font-size: 0.88rem;
  line-height: 1.5;
}

.map-placeholder {
  margin-top: 20px;
  height: 200px;
  background: #e8ecf2;
  border-radius: var(--radius);
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
}

.map-container {
  margin-top: 20px;
  border-radius: var(--radius);
  overflow: hidden;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ===== FOOTER (stays dark) ===== */
.footer {
  background: var(--dark-bg);
  padding: 60px 0 0;
  color: #ffffff;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  align-items: start;
}

.footer-about .logo {
  margin-bottom: 16px;
}

.footer-logo-link {
  display: block;
  margin-bottom: 8px;
  line-height: 0;
  padding-left: 23.5px;
}

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

.footer .logo-text {
  color: #ffffff !important;
  text-shadow: none !important;
}

.footer .logo-text small {
  color: var(--accent-gold-light) !important;
}

.footer-about p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.88rem;
  line-height: 1.7;
  margin-bottom: 20px;
}

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

.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--dark-card);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.6);
  transition: all var(--transition);
  font-size: 1.1rem;
}

.footer-social a:hover {
  background: var(--accent-gold);
  color: var(--dark-bg);
  transform: translateY(-2px);
}

.footer h4 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 20px;
  color: #ffffff;
}

.footer-links a {
  display: block;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.88rem;
  padding: 6px 0;
  transition: all var(--transition);
}

.footer-links a:hover {
  color: var(--accent-gold-light);
  padding-left: 6px;
}

.footer-contact-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 12px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.88rem;
}

.footer-contact-item .icon {
  color: var(--accent-gold-light);
  flex-shrink: 0;
  margin-top: 2px;
}

.footer-bottom {
  padding: 24px 0;
  text-align: center;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.4);
}

/* ===== SCROLL ANIMATIONS ===== */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.fade-in-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* ===== PAGE HEADER (for subpages) ===== */
.page-header {
  padding: 140px 0 60px;
  background: var(--dark-bg);
  text-align: center;
  position: relative;
  color: #ffffff;
}

.page-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--accent-gold);
}

.page-header h1 {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: #ffffff;
  letter-spacing: -0.5px;
}

.page-header h1 span {
  color: var(--accent-gold-light);
}

.breadcrumb {
  display: flex;
  justify-content: center;
  gap: 8px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.breadcrumb a {
  color: var(--accent-gold-light);
}

.breadcrumb a:hover {
  color: #ffffff;
}

.breadcrumb span { color: rgba(255, 255, 255, 0.5); }

/* ===== PAGE CONTENT ===== */
.page-content {
  padding: 80px 0;
}

.page-content h2 {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 20px;
  margin-top: 40px;
  color: var(--text-primary);
}

.page-content h2:first-child { margin-top: 0; }

.page-content h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 16px;
  margin-top: 32px;
  color: var(--text-primary);
}

.page-content p {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 16px;
}

.page-content ul, .page-content ol {
  color: var(--text-secondary);
  padding-left: 20px;
  margin-bottom: 16px;
}

.page-content li {
  list-style: disc;
  margin-bottom: 8px;
  line-height: 1.7;
}

.page-content ol li {
  list-style: decimal;
}

/* Info cards for page content */
.info-card {
  background: var(--bg-card);
  border-radius: 4px;
  padding: 36px;
  margin-bottom: 24px;
  border: 1px solid var(--border-light);
  border-left: 4px solid var(--accent-gold);
}

.info-card h3 {
  margin-top: 0;
  font-size: 1.15rem;
  letter-spacing: -0.3px;
}

/* Staff grid */
.staff-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.staff-card {
  background: var(--bg-card);
  border-radius: 4px;
  padding: 32px;
  text-align: center;
  border: 1px solid var(--border-light);
  transition: all var(--transition);
  position: relative;
}

.staff-card::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 3px;
  background: var(--accent-gold);
  opacity: 0;
  transition: opacity var(--transition);
}

.staff-card:hover {
  border-color: var(--accent-gold);
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}

.staff-card:hover::before {
  opacity: 1;
}

.staff-photo {
  width: 100px;
  height: 100px;
  border-radius: 4px;
  background: var(--bg-secondary);
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 2rem;
  overflow: hidden;
  border: 1px solid var(--border-light);
}

.staff-photo img,
.leader-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.staff-card h3 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0 0 4px;
  color: var(--text-primary);
}

.staff-card .position {
  color: var(--accent-gold);
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 12px;
}

.staff-card .qualification {
  color: var(--text-secondary);
  font-size: 0.82rem;
  line-height: 1.5;
}

/* Documents list */
.documents-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.document-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  transition: all var(--transition);
  cursor: pointer;
}

.document-item:hover {
  border-color: var(--border-color);
  background: var(--bg-card-hover);
  box-shadow: var(--shadow);
}

.document-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(138, 147, 159, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-gold);
  flex-shrink: 0;
  font-size: 1.2rem;
}

.document-info h4 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 2px;
  color: var(--text-primary);
}

.document-info p {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0;
}

/* Table styles */
.info-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 24px;
}

.info-table th,
.info-table td {
  padding: 14px 20px;
  text-align: left;
  border-bottom: 1px solid var(--border-light);
}

.info-table th {
  background: var(--bg-secondary);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--accent-gold-dark);
}

.info-table td {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.info-table tr:hover td {
  background: rgba(138, 147, 159, 0.03);
}

/* ===== NEWS PAGE ===== */
.news-page-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.news-page-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border-light);
  transition: all var(--transition);
}

.news-page-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.news-page-image {
  height: 220px;
  background: #e8ecf2;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  overflow: hidden;
}

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

.news-page-body {
  padding: 28px;
  display: flex;
  flex-direction: column;
}

.news-tag {
  display: inline-block;
  padding: 4px 12px;
  background: var(--bg-secondary);
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--accent-gold-dark);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ===== NEWS FILTERS ===== */
.news-filters {
  margin-bottom: 32px;
}

.news-search {
  position: relative;
  margin-bottom: 20px;
}

.news-search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1rem;
  color: var(--text-muted);
  pointer-events: none;
}

.news-search input {
  width: 100%;
  padding: 14px 16px 14px 44px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  color: var(--text-primary);
  background: var(--bg-card);
  transition: border-color var(--transition);
}

.news-search input:focus {
  outline: none;
  border-color: var(--accent-gold);
}

.news-tags-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.news-tag-btn {
  display: inline-block;
  padding: 8px 20px;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid var(--accent-gold);
  background: transparent;
  color: var(--accent-gold-dark);
  transition: all var(--transition);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.news-tag-btn:hover {
  background: var(--bg-secondary);
}

.news-tag-btn.active {
  background: var(--accent-gold);
  color: #ffffff;
  border-color: var(--accent-gold);
}

.news-load-more {
  text-align: center;
  margin-top: 40px;
}

.news-page-card.hidden-by-filter,
.news-page-card.hidden-by-page {
  display: none;
}

.news-read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent-gold);
  font-size: 0.88rem;
  font-weight: 600;
  margin-top: 8px;
  align-self: flex-end;
  transition: gap var(--transition);
}

.news-read-more:hover {
  gap: 10px;
  color: var(--accent-gold-dark);
}

/* ===== NEWS ARTICLE PAGE ===== */
.news-article {
  width: 100%;
}

.news-article-image {
  width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 32px;
  background: #e8ecf2;
}

.news-article-image img {
  width: 100%;
  height: auto;
  display: block;
}

.news-article-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.news-article-meta .news-card-date {
  margin-bottom: 0;
}

.news-article h1 {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 24px;
  color: var(--text-primary);
}

.news-article-content p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.9;
  margin-bottom: 20px;
}

.news-article-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent-gold);
  font-weight: 600;
  font-size: 0.9rem;
  margin-top: 40px;
  transition: gap var(--transition);
}

.news-article-back:hover {
  gap: 12px;
  color: var(--accent-gold-dark);
}

.news-article-header {
  margin-bottom: 32px;
}

.news-article-footer {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--border-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.news-article-share {
  display: flex;
  align-items: center;
  gap: 12px;
}

.news-article-share span {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.news-article-share a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-secondary);
  border-radius: 50%;
  color: var(--text-secondary);
  font-size: 1.1rem;
  transition: all var(--transition);
}

.news-article-share a:hover {
  background: var(--accent-gold);
  color: #ffffff;
}

.related-news {
  margin-top: 80px;
  padding-top: 60px;
  border-top: 1px solid var(--border-light);
}

/* ===== LEADERSHIP GRID (for leadership page) ===== */
.leadership-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 32px;
}

.leader-card {
  background: var(--bg-card);
  border-radius: 4px;
  padding: 40px;
  border: 1px solid var(--border-light);
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
}

.leader-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--accent-gold);
}

.leader-card:hover {
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
  border-color: var(--accent-gold);
}

.leader-photo {
  width: 140px;
  height: 140px;
  border-radius: 4px;
  background: var(--bg-secondary);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: var(--text-muted);
  overflow: hidden;
  border: 2px solid var(--border-light);
}

.leader-card h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--text-primary);
}

.leader-card .leader-position {
  color: var(--accent-gold);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 16px;
}

.leader-card .leader-bio {
  color: var(--text-secondary);
  font-size: 0.88rem;
  line-height: 1.7;
}

.leader-card .leader-contacts {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border-light);
  font-size: 0.85rem;
  color: var(--text-muted);
}

.leader-card .leader-contacts a {
  color: var(--accent-gold);
}

/* ===== PAGINATION ===== */
.pagination,
.news-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 48px;
  flex-wrap: wrap;
}

.pagination-btn,
.pagination-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 8px 16px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  color: var(--text-secondary);
  background: var(--bg-card);
  transition: all var(--transition);
  text-decoration: none;
}

.pagination-btn:hover,
.pagination-link:hover {
  border-color: var(--accent-gold);
  color: var(--accent-gold);
  background: var(--bg-secondary);
}

.pagination-current {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 8px 16px;
  border: 1px solid var(--accent-gold);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  color: #ffffff;
  background: var(--accent-gold);
}

/* Search Results Info */
.search-results-info {
  margin-bottom: 24px;
  padding: 16px 20px;
  background: var(--bg-secondary);
  border-radius: var(--radius-sm);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.search-results-info p {
  margin: 0;
  color: var(--text-secondary);
}

.search-results-info a {
  color: var(--accent-gold);
  font-weight: 500;
}

.search-results-info a:hover {
  text-decoration: underline;
}

/* No Results */
.no-results {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background: #ffffff;
    flex-direction: column;
    justify-content: center;
    gap: 24px;
    padding: 40px;
    transition: right var(--transition);
    box-shadow: var(--shadow-lg);
  }

  .nav-menu.active {
    right: 0;
  }

  .nav-menu a {
    font-size: 1.1rem;
    color: var(--text-secondary) !important;
    text-shadow: none !important;
  }

  .nav-menu a:hover,
  .nav-menu a.active {
    color: var(--accent-gold) !important;
  }

  .hamburger {
    display: flex;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .hero-stats {
    gap: 32px;
  }

  .about-grid,
  .mission-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .programs-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .advantages-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .leadership-grid {
    grid-template-columns: 1fr;
  }
}

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

  .section-padding {
    padding: 60px 0;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .hero {
    min-height: auto;
    padding: 120px 0 60px;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .hero-stats {
    flex-wrap: wrap;
    gap: 24px;
  }

  .hero-stat {
    flex: 1 1 calc(50% - 12px);
  }

  .programs-grid,
  .news-grid,
  .news-page-grid {
    grid-template-columns: 1fr;
  }

  .advantages-grid {
    grid-template-columns: 1fr 1fr;
  }

  .contacts-grid {
    grid-template-columns: 1fr;
  }

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

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

  .page-header h1 {
    font-size: 1.8rem;
  }

  .staff-grid {
    grid-template-columns: 1fr;
  }

  .slider-arrows {
    display: none;
  }

  .logo-text {
    font-size: 0.82rem;
    max-width: 160px;
  }

  .logo img {
    height: 40px;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.6rem;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .hero-buttons .btn {
    width: 100%;
    justify-content: center;
  }

  .advantages-grid {
    grid-template-columns: 1fr;
  }

  .mission-stats {
    grid-template-columns: 1fr;
  }
}

/* ===== MOBILE OVERLAY ===== */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 999;
}

.nav-overlay.active {
  display: block;
}

/* ===== BACK TO TOP ===== */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 48px;
  height: 48px;
  border-radius: 4px;
  background: var(--dark-bg);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
  z-index: 100;
  font-size: 1.2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  transform: translateY(-4px);
  background: var(--accent-gold-dark);
}

/* ===== LOADING ===== */
.page-loader {
  position: fixed;
  inset: 0;
  background: var(--bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.5s ease;
}

.page-loader.hidden {
  opacity: 0;
  pointer-events: none;
}

.loader-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--border-light);
  border-top-color: var(--accent-gold);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ===== COUNTER ANIMATION ===== */
.counter { display: inline-block; }

/* ===== SUBPAGE HEADER — light style from start ===== */
body:not(:has(.hero)) .header {
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(20px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

body:not(:has(.hero)) .header .nav-menu a,
body:not(:has(.hero)) .header .logo-text {
  color: var(--text-secondary);
  text-shadow: none;
}

body:not(:has(.hero)) .header .logo-text small {
  color: var(--accent-gold);
}

body:not(:has(.hero)) .header .nav-menu a:hover,
body:not(:has(.hero)) .header .nav-menu a.active {
  color: var(--accent-gold);
}

body:not(:has(.hero)) .header .hamburger span {
  background: var(--text-primary);
}
