/* =============================================
   CHING MO WING CHUN - MAIN STYLESHEET
   =============================================
   
   COLORS - Edit these to change site colors:
   --primary: #8B0000 (Deep Red)
   --accent: #D4AF37 (Gold)
   --dark: #0a0a0a (Near Black)
   
   ============================================= */

:root {
  --primary: #8B0000;
  --primary-light: #B22222;
  --primary-dark: #5C0000;
  --accent: #D4AF37;
  --accent-light: #E8C84A;
  --dark: #0a0a0a;
  --dark-light: #1a1a1a;
  --secondary: #1a1a2e;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --white: #ffffff;
  --font-heading: 'Cinzel', serif;
  --font-body: 'Inter', sans-serif;
}

/* Reset & Base */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--gray-700);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

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

ul, ol {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--dark);
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: 1.25rem; }

p {
  margin-bottom: 1rem;
  color: var(--gray-600);
}

.chinese-char {
  font-family: serif;
  font-size: 2rem;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

/* Container */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Section */
.section {
  padding: 5rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header h2 {
  margin-bottom: 1rem;
}

.section-header p {
  font-size: 1.125rem;
  max-width: 600px;
  margin: 0 auto;
}

.section-line {
  width: 80px;
  height: 4px;
  background: var(--primary);
  margin: 1.5rem auto 0;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(139, 0, 0, 0.2);
}

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

.btn-outline:hover {
  background: var(--primary);
  color: var(--white);
}

.btn-white {
  border: 2px solid var(--white);
  color: var(--white);
  background: transparent;
}

.btn-white:hover {
  background: var(--white);
  color: var(--dark);
}

.btn-accent {
  background: var(--accent);
  color: var(--dark);
}

.btn-accent:hover {
  background: var(--accent-light);
}

/* =============================================
   TOP BAR
   ============================================= */
.top-bar {
  background: var(--dark);
  color: var(--white);
  font-size: 0.875rem;
  padding: 0.5rem 0;
  display: none;
}

@media (min-width: 768px) {
  .top-bar { display: block; }
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-bar a {
  color: var(--white);
  transition: color 0.3s ease;
}

.top-bar a:hover {
  color: var(--accent);
}

.top-bar-left {
  display: flex;
  gap: 1.5rem;
}

.top-bar-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.top-bar-right span {
  color: var(--gray-400);
}

/* =============================================
   HEADER / NAVIGATION
   ============================================= */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: all 0.3s ease;
  padding: 1rem 0;
}

@media (min-width: 768px) {
  .header { top: 36px; }
}

.header.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
  top: 0;
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.125rem;
  background: rgba(255, 255, 255, 0.2);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(5px);
  transition: all 0.3s ease;
}

.header.scrolled .logo-icon {
  background: var(--primary);
  color: var(--white);
  border: none;
}

.logo-text {
  display: none;
}

@media (min-width: 640px) {
  .logo-text { display: block; }
}

.logo-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--white);
  transition: color 0.3s ease;
}

.header.scrolled .logo-title {
  color: var(--primary);
}

.logo-subtitle {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.8);
  transition: color 0.3s ease;
}

.header.scrolled .logo-subtitle {
  color: var(--gray-500);
}

/* Desktop Nav */
.nav-desktop {
  display: none;
  align-items: center;
  gap: 0.25rem;
}

@media (min-width: 1024px) {
  .nav-desktop { display: flex; }
}

.nav-link {
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  border-radius: 6px;
  transition: all 0.3s ease;
}

.nav-link:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
}

.header.scrolled .nav-link {
  color: var(--gray-700);
}

.header.scrolled .nav-link:hover {
  background: rgba(139, 0, 0, 0.1);
  color: var(--primary);
}

.nav-cta {
  margin-left: 1rem;
  padding: 0.75rem 1.5rem;
  background: var(--primary);
  color: var(--white);
  font-weight: 600;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.nav-cta:hover {
  background: var(--primary-light);
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: flex;
  padding: 0.5rem;
  color: var(--white);
  transition: color 0.3s ease;
}

.header.scrolled .menu-toggle {
  color: var(--gray-700);
}

@media (min-width: 1024px) {
  .menu-toggle { display: none; }
}

/* Mobile Nav */
.nav-mobile {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--white);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  padding: 1rem;
}

.nav-mobile.open {
  display: block;
}

@media (min-width: 1024px) {
  .nav-mobile { display: none !important; }
}

.nav-mobile a {
  display: block;
  padding: 1rem;
  color: var(--gray-700);
  font-weight: 500;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.nav-mobile a:hover {
  background: rgba(139, 0, 0, 0.05);
  color: var(--primary);
}

/* =============================================
   HERO SECTION
   ============================================= */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease;
}

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

.hero-image {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.7), rgba(0,0,0,0.5), rgba(0,0,0,0.8));
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 900px;
  padding: 0 1rem;
}

.hero-chinese {
  font-size: 3.5rem;
  color: var(--accent);
  margin-bottom: 1.5rem;
  font-family: serif;
  font-weight: 300;
  letter-spacing: 0.2em;
}

.hero h1 {
  color: var(--white);
  margin-bottom: 1rem;
  animation: fadeInUp 0.8s ease forwards;
}

.hero p {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  animation: fadeInUp 0.8s ease 0.2s forwards;
  opacity: 0;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  animation: fadeInUp 0.8s ease 0.4s forwards;
  opacity: 0;
}

.hero-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
  padding: 0.75rem;
  background: rgba(0, 0, 0, 0.3);
  color: var(--white);
  border-radius: 50%;
  backdrop-filter: blur(5px);
  transition: all 0.3s ease;
}

.hero-nav:hover {
  background: var(--primary);
}

.hero-nav.prev { left: 1rem; }
.hero-nav.next { right: 1rem; }

.hero-dots {
  position: absolute;
  bottom: 5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  display: flex;
  gap: 0.75rem;
}

.hero-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  transition: all 0.3s ease;
}

.hero-dot.active {
  background: var(--accent);
  width: 32px;
  border-radius: 6px;
}

.hero-scroll {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  color: rgba(255, 255, 255, 0.7);
  animation: bounce 2s infinite;
}

.hero-accent-line {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(to right, transparent, var(--accent), transparent);
  z-index: 20;
}

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

.about-grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .about-grid {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }
}

.about-image-wrapper {
  position: relative;
}

.about-image-border {
  position: absolute;
  top: -1rem;
  left: -1rem;
  right: 1rem;
  bottom: 1rem;
  border: 2px solid var(--accent);
  border-radius: 8px;
}

.about-image {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

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

@media (min-width: 768px) {
  .about-image img { height: 500px; }
}

.about-badge {
  position: absolute;
  bottom: -1.5rem;
  right: -1.5rem;
  background: var(--primary);
  color: var(--white);
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(139, 0, 0, 0.3);
}

.about-badge-number {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
}

.about-badge-text {
  font-size: 0.875rem;
  opacity: 0.8;
}

.about-content h2 {
  margin-bottom: 1.5rem;
}

.about-content p {
  margin-bottom: 1.25rem;
  line-height: 1.8;
}

.about-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

/* =============================================
   FEATURES SECTION
   ============================================= */
.features {
  background: var(--gray-50);
}

.features-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 640px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .features-grid { grid-template-columns: repeat(3, 1fr); }
}

.feature-card {
  background: var(--white);
  padding: 2rem;
  border-radius: 12px;
  border: 1px solid var(--gray-100);
  transition: all 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.feature-icon {
  width: 56px;
  height: 56px;
  background: rgba(139, 0, 0, 0.1);
  color: var(--primary);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
  background: var(--primary);
  color: var(--white);
}

.feature-card h3 {
  margin-bottom: 0.75rem;
  font-size: 1.25rem;
}

.feature-card p {
  color: var(--gray-500);
  margin: 0;
}

/* =============================================
   CLASSES SECTION
   ============================================= */
.classes {
  background: var(--white);
}

.classes-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 640px) {
  .classes-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .classes-grid { grid-template-columns: repeat(3, 1fr); }
}

.class-card {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--gray-100);
  transition: all 0.3s ease;
}

.class-card:hover {
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.class-image {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.class-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.class-card:hover .class-image img {
  transform: scale(1.1);
}

.class-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.6), transparent);
}

.class-badge {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  padding: 0.375rem 0.75rem;
  background: rgba(139, 0, 0, 0.9);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 9999px;
  backdrop-filter: blur(5px);
}

.class-age {
  position: absolute;
  bottom: 0.75rem;
  left: 0.75rem;
  padding: 0.375rem 0.75rem;
  background: rgba(212, 175, 55, 0.9);
  color: var(--dark);
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 9999px;
}

.class-content {
  padding: 1.5rem;
}

.class-content h3 {
  margin-bottom: 0.5rem;
  font-size: 1.25rem;
}

.class-schedule {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--gray-400);
  margin-bottom: 0.75rem;
}

.class-content p {
  font-size: 0.875rem;
  color: var(--gray-500);
  margin-bottom: 1rem;
}

.class-btn {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid var(--primary);
  color: var(--primary);
  font-weight: 600;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.class-btn:hover {
  background: var(--primary);
  color: var(--white);
}

/* CTA Banner */
.cta-banner {
  margin-top: 4rem;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: 16px;
  padding: 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .cta-banner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
    padding: 3rem 4rem;
  }
}

.cta-banner h3 {
  color: var(--white);
  margin-bottom: 0.5rem;
}

.cta-banner p {
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
}

/* =============================================
   LINEAGE SECTION
   ============================================= */
.lineage {
  background: var(--secondary);
  color: var(--white);
}

.lineage .section-header h2,
.lineage .section-header p {
  color: var(--white);
}

.lineage .section-header p {
  color: var(--gray-300);
}

.lineage .section-line {
  background: var(--accent);
}

.lineage-grid {
  display: grid;
  gap: 3rem;
  align-items: start;
}

@media (min-width: 1024px) {
  .lineage-grid {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }
}

.lineage-content p {
  color: var(--gray-300);
  line-height: 1.8;
}

.lineage-chain {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.lineage-chain h3 {
  color: var(--accent);
  margin-bottom: 1.5rem;
  font-size: 1.25rem;
}

.lineage-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.lineage-marker {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lineage-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--primary);
  border: 2px solid var(--primary-light);
}

.lineage-dot.current {
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.3);
}

.lineage-line {
  width: 2px;
  height: 24px;
  background: var(--gray-600);
}

.lineage-name {
  padding-bottom: 0.75rem;
  font-size: 0.9rem;
  color: var(--gray-400);
}

.lineage-name.highlight {
  color: var(--white);
  font-weight: 600;
}

.lineage-name.current {
  color: var(--accent);
  font-weight: 700;
  font-size: 1.1rem;
}

.lineage-image-wrapper {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
}

.lineage-image-wrapper img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

@media (min-width: 768px) {
  .lineage-image-wrapper img { height: 600px; }
}

.lineage-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--secondary), transparent 50%);
}

.lineage-image-caption {
  position: absolute;
  bottom: 1.5rem;
  left: 1.5rem;
  right: 1.5rem;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(10px);
  border-radius: 8px;
  padding: 1rem;
  border: 1px solid rgba(212, 175, 55, 0.3);
}

.lineage-image-caption strong {
  display: block;
  color: var(--accent);
  font-family: var(--font-heading);
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

.lineage-image-caption span {
  font-size: 0.875rem;
  color: var(--gray-300);
}

/* =============================================
   CURRICULUM SECTION
   ============================================= */
.curriculum {
  background: var(--white);
}

.curriculum-list {
  max-width: 900px;
  margin: 0 auto;
}

.curriculum-item {
  display: flex;
  gap: 1rem;
  padding: 1.5rem 2rem;
  background: var(--gray-50);
  border-radius: 12px;
  margin-bottom: 1rem;
  border: 1px solid var(--gray-100);
  transition: all 0.3s ease;
}

.curriculum-item:hover {
  background: var(--white);
  border-color: rgba(139, 0, 0, 0.2);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.curriculum-number {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: rgba(139, 0, 0, 0.1);
  color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  transition: all 0.3s ease;
}

.curriculum-item:hover .curriculum-number {
  background: var(--primary);
  color: var(--white);
}

.curriculum-item h3 {
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}

.curriculum-item p {
  margin: 0;
  color: var(--gray-500);
}

/* Principles Grid */
.principles {
  margin-top: 4rem;
  background: var(--gray-50);
  border-radius: 16px;
  padding: 3rem;
}

.principles h3 {
  text-align: center;
  margin-bottom: 2rem;
}

.principles-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .principles-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .principles-grid { grid-template-columns: repeat(4, 1fr); }
}

.principle-card {
  text-align: center;
  padding: 1.5rem;
  background: var(--white);
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.principle-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.principle-card h4 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.principle-card p {
  font-size: 0.875rem;
  margin: 0;
}

/* =============================================
   SCHOOLS SECTION
   ============================================= */
.schools {
  background: var(--gray-50);
}

.schools-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .schools-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .schools-grid { grid-template-columns: repeat(3, 1fr); }
}

.school-card {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--gray-100);
  transition: all 0.3s ease;
}

.school-card:hover {
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.school-card.primary {
  border-color: rgba(139, 0, 0, 0.3);
  box-shadow: 0 0 0 2px rgba(139, 0, 0, 0.1);
}

.school-image {
  position: relative;
  height: 160px;
  overflow: hidden;
}

.school-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.school-card:hover .school-image img {
  transform: scale(1.1);
}

.school-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.6), transparent);
}

.school-hq-badge {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.375rem 0.75rem;
  background: var(--accent);
  color: var(--dark);
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 9999px;
}

.school-name {
  position: absolute;
  bottom: 0.75rem;
  left: 1rem;
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
}

.school-content {
  padding: 1.25rem;
}

.school-detail {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--gray-500);
  margin-bottom: 0.75rem;
}

.school-detail svg {
  color: var(--primary);
  flex-shrink: 0;
}

.school-instructor {
  font-size: 0.875rem;
  color: var(--gray-400);
  margin-bottom: 1rem;
}

.school-btn {
  width: 100%;
  padding: 0.625rem;
  font-size: 0.875rem;
  border: 1px solid var(--primary);
  color: var(--primary);
  border-radius: 6px;
  transition: all 0.3s ease;
}

.school-btn:hover {
  background: var(--primary);
  color: var(--white);
}

/* =============================================
   GALLERY SECTION
   ============================================= */
.gallery {
  background: var(--gray-50);
}

.gallery-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
}

.gallery-filter {
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 9999px;
  border: 1px solid var(--gray-200);
  background: var(--white);
  color: var(--gray-600);
  transition: all 0.3s ease;
}

.gallery-filter:hover,
.gallery-filter.active {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

.gallery-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 768px) {
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1024px) {
  .gallery-grid { grid-template-columns: repeat(4, 1fr); }
}

.gallery-item {
  position: relative;
  aspect-ratio: 1;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.gallery-item-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.gallery-item:hover .gallery-item-overlay {
  background: rgba(0, 0, 0, 0.4);
}

.gallery-item-overlay svg {
  color: var(--white);
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.3s ease;
}

.gallery-item:hover .gallery-item-overlay svg {
  opacity: 1;
  transform: scale(1);
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.9);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.lightbox.open {
  display: flex;
}

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  color: var(--white);
  padding: 0.5rem;
  transition: color 0.3s ease;
}

.lightbox-close:hover {
  color: var(--accent);
}

.lightbox img {
  max-width: 100%;
  max-height: 85vh;
  border-radius: 8px;
}

/* =============================================
   TESTIMONIALS SECTION
   ============================================= */
.testimonials {
  background: var(--white);
}

.testimonials-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .testimonials-grid { grid-template-columns: repeat(4, 1fr); }
}

.testimonial-card {
  background: var(--gray-50);
  border-radius: 12px;
  padding: 1.5rem;
  border: 1px solid var(--gray-100);
  position: relative;
  transition: all 0.3s ease;
}

.testimonial-card:hover {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.testimonial-quote {
  position: absolute;
  top: 1rem;
  right: 1rem;
  color: rgba(139, 0, 0, 0.1);
}

.testimonial-stars {
  display: flex;
  gap: 0.25rem;
  margin-bottom: 1rem;
}

.testimonial-stars svg {
  color: var(--accent);
  fill: var(--accent);
}

.testimonial-card blockquote {
  font-size: 0.9rem;
  font-style: italic;
  color: var(--gray-600);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-top: 1rem;
  border-top: 1px solid var(--gray-200);
}

.testimonial-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(139, 0, 0, 0.1);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
}

.testimonial-name {
  font-weight: 600;
  color: var(--dark);
  font-size: 0.9rem;
}

.testimonial-role {
  font-size: 0.75rem;
  color: var(--gray-400);
}

/* =============================================
   NETWORK SECTION
   ============================================= */
.network {
  background: var(--secondary);
  color: var(--white);
}

.network .section-header h2 {
  color: var(--white);
}

.network .section-header p {
  color: var(--gray-300);
}

.network .section-line {
  background: var(--accent);
}

.network-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 640px) {
  .network-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .network-grid { grid-template-columns: repeat(3, 1fr); }
}

.network-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  transition: all 0.3s ease;
}

.network-card:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(212, 175, 55, 0.3);
}

.network-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: rgba(212, 175, 55, 0.1);
  color: var(--accent);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.network-card:hover .network-icon {
  background: var(--accent);
  color: var(--dark);
}

.network-card strong {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--white);
  transition: color 0.3s ease;
}

.network-card:hover strong {
  color: var(--accent);
}

.network-card p {
  font-size: 0.875rem;
  color: var(--gray-400);
  margin: 0.25rem 0 0;
}

/* =============================================
   CONTACT SECTION
   ============================================= */
.contact {
  background: var(--white);
}

.contact-grid {
  display: grid;
  gap: 3rem;
}

@media (min-width: 1024px) {
  .contact-grid {
    grid-template-columns: 2fr 3fr;
    gap: 4rem;
  }
}

.contact-info-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem;
  background: var(--gray-50);
  border-radius: 12px;
  margin-bottom: 1rem;
}

.contact-info-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: rgba(139, 0, 0, 0.1);
  color: var(--primary);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-info-card h4 {
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.contact-info-card p,
.contact-info-card a {
  font-size: 0.9rem;
  color: var(--gray-500);
  margin: 0;
}

.contact-info-card a:hover {
  color: var(--primary);
}

.contact-social {
  margin-top: 2rem;
  padding: 1.5rem;
  background: rgba(139, 0, 0, 0.05);
  border-radius: 12px;
  border: 1px solid rgba(139, 0, 0, 0.1);
}

.contact-social h4 {
  margin-bottom: 1rem;
}

.contact-social-links {
  display: flex;
  gap: 0.75rem;
}

.contact-social-links a {
  padding: 0.5rem 1rem;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--gray-600);
  transition: all 0.3s ease;
}

.contact-social-links a:hover {
  color: var(--primary);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Contact Form */
.contact-form {
  display: grid;
  gap: 1.25rem;
}

.form-row {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .form-row { grid-template-columns: repeat(2, 1fr); }
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--gray-700);
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.875rem 1rem;
  font-size: 0.9rem;
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  transition: all 0.3s ease;
  font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(139, 0, 0, 0.1);
}

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

.form-submit {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

/* =============================================
   FOOTER
   ============================================= */
.footer {
  background: var(--dark);
  color: var(--white);
  padding-top: 4rem;
}

.footer-grid {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 640px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
}

.footer-brand .logo {
  margin-bottom: 1rem;
}

.footer-brand .logo-icon {
  background: var(--primary);
  border: none;
}

.footer-brand p {
  color: var(--gray-400);
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 1rem;
}

.footer-social {
  display: flex;
  gap: 0.75rem;
}

.footer-social a {
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--gray-400);
  transition: all 0.3s ease;
}

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

.footer h4 {
  color: var(--accent);
  font-size: 1rem;
  margin-bottom: 1.25rem;
}

.footer-links a {
  display: block;
  color: var(--gray-400);
  font-size: 0.9rem;
  padding: 0.375rem 0;
  transition: color 0.3s ease;
}

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

.footer-contact p,
.footer-contact a {
  display: block;
  color: var(--gray-400);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

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

.footer-cta {
  margin-top: 1.5rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 3rem;
  padding: 1.5rem 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

@media (min-width: 640px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

.footer-bottom p {
  font-size: 0.875rem;
  color: var(--gray-500);
  margin: 0;
  text-align: center;
}

.back-to-top {
  width: 40px;
  height: 40px;
  background: rgba(139, 0, 0, 0.2);
  color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.back-to-top:hover {
  background: var(--primary);
  color: var(--white);
}

/* =============================================
   ANIMATIONS
   ============================================= */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes bounce {
  0%, 100% { transform: translateY(0) translateX(-50%); }
  50% { transform: translateY(-10px) translateX(-50%); }
}

/* Reveal Animations */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* =============================================
   UTILITY CLASSES
   ============================================= */
.text-center { text-align: center; }
.text-white { color: var(--white); }
.text-primary { color: var(--primary); }
.text-accent { color: var(--accent); }

.bg-white { background: var(--white); }
.bg-gray { background: var(--gray-50); }
.bg-dark { background: var(--dark); }
.bg-primary { background: var(--primary); }

.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mb-4 { margin-bottom: 1rem; }

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