/* ===================================
   Student Prefect Website
   Modern Minimal Design System
   =================================== */

/* ---------- CSS Variables ---------- */
:root {
  /* Colors */
  --color-primary: #1e3a5f;
  --color-primary-light: #2d5a8a;
  --color-primary-dark: #0f1f33;
  --color-secondary: #6366f1;
  --color-secondary-light: #818cf8;
  --color-accent: #8b5cf6;

  /* Neutrals */
  --color-white: #ffffff;
  --color-gray-50: #f8fafc;
  --color-gray-100: #f1f5f9;
  --color-gray-200: #e2e8f0;
  --color-gray-300: #cbd5e1;
  --color-gray-400: #94a3b8;
  --color-gray-500: #64748b;
  --color-gray-600: #475569;
  --color-gray-700: #334155;
  --color-gray-800: #1e293b;
  --color-gray-900: #0f172a;

  /* Semantic */
  --color-success: #10b981;
  --color-warning: #f59e0b;
  --color-error: #ef4444;

  /* Typography */
  --font-heading: "Kanit", sans-serif;
  --font-body: "Kanit", sans-serif;

  /* Font Sizes */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  --text-5xl: 3rem;
  --text-6xl: 3.75rem;

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  /* Border Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1),
    0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1),
    0 8px 10px -6px rgb(0 0 0 / 0.1);
  --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 300ms ease;
  --transition-slow: 500ms ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--color-gray-700);
  background-color: var(--color-white);
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
  color: var(--color-gray-900);
}

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

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

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

ul,
ol {
  list-style: none;
}

/* ---------- Container ---------- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-6);
}

/* ---------- Section Base ---------- */
.section {
  padding: var(--space-24) 0;
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-16);
}

.section-tag {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-secondary);
  background: linear-gradient(
    135deg,
    rgba(99, 102, 241, 0.1),
    rgba(139, 92, 246, 0.1)
  );
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-4);
}

.section-title {
  font-size: var(--text-4xl);
  font-weight: 700;
  color: var(--color-gray-900);
  margin-bottom: var(--space-4);
}

.section-subtitle {
  font-size: var(--text-lg);
  color: var(--color-gray-500);
  max-width: 600px;
  margin: 0 auto;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-heading);
  font-size: var(--text-base);
  font-weight: 500;
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-lg);
  transition: all var(--transition-base);
}

.btn svg {
  width: 18px;
  height: 18px;
}

.btn-primary {
  background: linear-gradient(
    135deg,
    var(--color-primary),
    var(--color-primary-light)
  );
  color: var(--color-white);
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-secondary {
  background: var(--color-white);
  color: var(--color-primary);
  border: 2px solid var(--color-gray-200);
}

.btn-secondary:hover {
  border-color: var(--color-primary);
  background: var(--color-gray-50);
}

/* ---------- Navigation ---------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-gray-100);
  transition: all var(--transition-base);
}

.navbar.scrolled {
  box-shadow: var(--shadow-md);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--color-primary);
}

.nav-logo svg {
  width: 28px;
  height: 28px;
  color: var(--color-secondary);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: var(--space-8);
}

.nav-link {
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-gray-600);
  position: relative;
  padding: var(--space-2) 0;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(
    90deg,
    var(--color-secondary),
    var(--color-accent)
  );
  transition: width var(--transition-base);
}

.nav-link:hover {
  color: var(--color-primary);
}

.nav-link:hover::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  padding: var(--space-2);
  color: var(--color-gray-700);
}

.nav-toggle svg {
  width: 24px;
  height: 24px;
}

/* ---------- Page Header (Sub-pages) ---------- */
.page-header {
  padding: calc(var(--space-24) + 70px) 0 var(--space-16);
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="1" fill="white" opacity="0.1"/></svg>');
  background-size: 30px 30px;
}

.page-header-content {
  position: relative;
  z-index: 1;
}

.page-tag {
  display: inline-block;
  padding: var(--space-2) var(--space-4);
  background: rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-white);
  margin-bottom: var(--space-4);
  backdrop-filter: blur(4px);
}

.page-header h1 {
  font-size: var(--text-5xl);
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: var(--space-4);
}

.page-header p {
  font-size: var(--text-lg);
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: var(--space-8);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.page-header .btn-outline {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: var(--radius-full);
  color: var(--color-white);
  text-decoration: none;
  font-weight: 500;
  transition: all var(--transition-base);
}

.page-header .btn-outline:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: var(--color-white);
}

.page-header .btn-outline svg {
  width: 18px;
  height: 18px;
}

/* ---------- Hero Section ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-24) 0;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    var(--color-gray-50) 0%,
    var(--color-white) 50%,
    rgba(99, 102, 241, 0.05) 100%
  );
  z-index: -2;
}

.hero-bg::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 80%;
  height: 150%;
  background: radial-gradient(
    circle,
    rgba(99, 102, 241, 0.08) 0%,
    transparent 60%
  );
  z-index: -1;
}

.hero-bg::after {
  content: "";
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 60%;
  height: 100%;
  background: radial-gradient(
    circle,
    rgba(139, 92, 246, 0.06) 0%,
    transparent 60%
  );
  z-index: -1;
}

.hero-content {
  text-align: center;
  max-width: 800px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: var(--color-white);
  border: 1px solid var(--color-gray-200);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  color: var(--color-gray-600);
  margin-bottom: var(--space-6);
  box-shadow: var(--shadow-sm);
  animation: fadeInDown 0.6s ease;
}

.hero-badge svg {
  width: 16px;
  height: 16px;
  color: var(--color-secondary);
}

.hero-title {
  font-size: var(--text-6xl);
  font-weight: 700;
  background: linear-gradient(
    135deg,
    var(--color-primary) 0%,
    var(--color-secondary) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: var(--space-4);
  animation: fadeInUp 0.6s ease 0.1s both;
}

.hero-subtitle {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: 500;
  color: var(--color-gray-700);
  margin-bottom: var(--space-4);
  animation: fadeInUp 0.6s ease 0.2s both;
}

.hero-description {
  font-size: var(--text-lg);
  color: var(--color-gray-500);
  max-width: 600px;
  margin: 0 auto var(--space-8);
  animation: fadeInUp 0.6s ease 0.3s both;
}

.hero-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  margin-bottom: var(--space-12);
  animation: fadeInUp 0.6s ease 0.4s both;
}

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-12);
  animation: fadeInUp 0.6s ease 0.5s both;
}

.stat-item {
  text-align: center;
}

.stat-number {
  display: block;
  font-family: var(--font-heading);
  font-size: var(--text-4xl);
  font-weight: 700;
  color: var(--color-primary);
}

.stat-label {
  font-size: var(--text-sm);
  color: var(--color-gray-500);
}

.hero-scroll {
  position: absolute;
  bottom: var(--space-8);
  left: 50%;
  transform: translateX(-50%);
  animation: bounce 2s infinite;
}

.hero-scroll svg {
  width: 32px;
  height: 32px;
  color: var(--color-gray-400);
}

/* ---------- Featured Section ---------- */
.featured {
  background: linear-gradient(135deg, var(--color-gray-100) 0%, var(--color-gray-50) 100%);
  padding: var(--space-12) 0;
  position: relative;
  overflow: hidden;
}

.featured::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="1" fill="%23cbd5e1" opacity="0.3"/></svg>');
  background-size: 30px 30px;
  opacity: 0.5;
}

.featured .container {
  position: relative;
  z-index: 1;
}

.featured-grid {
  display: grid;
  grid-template-columns: 250px 1fr 250px;
  gap: var(--space-6);
  align-items: start;
}

/* Sidebar Styles */
.featured-sidebar {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.8);
}

.sidebar-header {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-5) var(--space-6);
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  color: var(--color-white);
}

.sidebar-header svg {
  width: 22px;
  height: 22px;
}

.sidebar-header h3 {
  font-size: var(--text-base);
  font-weight: 600;
  margin: 0;
}

.sidebar-links {
  list-style: none;
  padding: var(--space-4);
  margin: 0;
}

.sidebar-links li {
  margin-bottom: var(--space-2);
}

.sidebar-links li:last-child {
  margin-bottom: 0;
}

.sidebar-links a {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  color: var(--color-gray-700);
  text-decoration: none;
  font-size: var(--text-sm);
  border-radius: var(--radius-lg);
  transition: all var(--transition-base);
}

.sidebar-links a:hover {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.15));
  color: var(--color-secondary);
  transform: translateX(4px);
}

.sidebar-links a svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* Poster Carousel */
.featured-poster {
  background: var(--color-white);
  border-radius: var(--radius-2xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  border: 4px solid var(--color-white);
}

.poster-slider {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.poster-slide {
  width: 100%;
}

.poster-slide img {
  width: 100%;
  height: auto;
  display: block;
}

.poster-placeholder {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.poster-placeholder img {
  width: 100%;
  height: auto;
  display: block;
}

.poster-placeholder p {
  font-size: var(--text-sm);
  color: var(--color-gray-400);
}

.poster-dots {
  display: flex;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-4);
  background: var(--color-gray-50);
}

.poster-dot {
  width: 12px;
  height: 12px;
  border-radius: var(--radius-full);
  background: var(--color-gray-300);
  border: none;
  cursor: pointer;
  transition: all var(--transition-base);
}

.poster-dot.active,
.poster-dot:hover {
  background: linear-gradient(135deg, var(--color-secondary), var(--color-accent));
  transform: scale(1.2);
}

/* ---------- About Section ---------- */
.about {
  background: var(--color-gray-50);
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
  margin-bottom: var(--space-12);
}

.about-card {
  background: var(--color-white);
  padding: var(--space-8);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  text-align: center;
  transition: all var(--transition-base);
}

.about-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
}

.about-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto var(--space-6);
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(
    135deg,
    rgba(99, 102, 241, 0.1),
    rgba(139, 92, 246, 0.1)
  );
  border-radius: var(--radius-xl);
}

.about-icon svg {
  width: 28px;
  height: 28px;
  color: var(--color-secondary);
}

.about-card h3 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-3);
}

.about-card p {
  font-size: var(--text-base);
  color: var(--color-gray-500);
  line-height: 1.7;
}

.about-features {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-4);
}

.feature-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  background: var(--color-white);
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-sm);
  font-size: var(--text-sm);
  color: var(--color-gray-700);
}

.feature-item svg {
  width: 18px;
  height: 18px;
  color: var(--color-success);
}

/* ---------- Chairman Section ---------- */
.chairman {
  background: linear-gradient(180deg, var(--color-white) 0%, var(--color-gray-50) 100%);
  position: relative;
  overflow: hidden;
}

.chairman::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -10%;
  width: 50%;
  height: 100%;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.05) 0%, transparent 60%);
  z-index: 0;
}

.chairman .container {
  position: relative;
  z-index: 1;
}

.chairman-content {
  display: grid;
  grid-template-columns: 350px 1fr;
  gap: var(--space-12);
  align-items: center;
}

.chairman-image-wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.chairman-image {
  width: 280px;
  height: 350px;
  background: linear-gradient(135deg, var(--color-gray-200), var(--color-gray-300));
  border-radius: var(--radius-2xl);
  overflow: hidden;
  box-shadow: 
    0 20px 50px rgba(0, 0, 0, 0.15),
    0 0 0 8px var(--color-white),
    0 0 0 10px rgba(99, 102, 241, 0.2);
  position: relative;
}

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

.chairman-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--color-gray-200), var(--color-gray-300));
}

.chairman-placeholder svg {
  width: 100px;
  height: 100px;
  color: var(--color-gray-400);
}

.chairman-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  color: var(--color-white);
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 600;
  margin-top: calc(-1 * var(--space-6));
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
  position: relative;
  z-index: 2;
}

.chairman-badge svg {
  width: 18px;
  height: 18px;
}

.chairman-text {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
}

.chairman-quote {
  position: relative;
  padding-left: var(--space-8);
}

.quote-icon {
  position: absolute;
  top: 0;
  left: 0;
  width: 40px;
  height: 40px;
  color: var(--color-secondary);
  opacity: 0.3;
}

.chairman-quote blockquote {
  font-family: var(--font-body);
  font-size: var(--text-xl);
  font-style: italic;
  color: var(--color-gray-700);
  line-height: 1.8;
  margin: 0;
}

.chairman-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-6);
  background: var(--color-white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
}

.chairman-name h3 {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-gray-800);
  margin-bottom: var(--space-1);
}

.chairman-name span {
  font-size: var(--text-sm);
  color: var(--color-gray-500);
}

.chairman-signature {
  padding: var(--space-3) var(--space-6);
  border-left: 2px solid var(--color-gray-200);
}

.signature-text {
  font-family: 'Kanit', serif;
  font-size: var(--text-2xl);
  font-style: italic;
  color: var(--color-gray-600);
  opacity: 0.7;
}

.chairman-values {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.value-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-5);
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.08), rgba(139, 92, 246, 0.12));
  border-radius: var(--radius-full);
  border: 1px solid rgba(99, 102, 241, 0.15);
}

.value-item svg {
  width: 18px;
  height: 18px;
  color: var(--color-secondary);
}

.value-item span {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-gray-700);
}

/* ---------- Team Section ---------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
}

.team-card {
  background: var(--color-white);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-base);
}

.team-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
}

.team-card.team-leader {
  grid-column: span 2;
}

.team-card.team-leader .team-image {
  height: 280px;
}

.team-image {
  position: relative;
  height: 200px;
  background: linear-gradient(
    135deg,
    var(--color-gray-100),
    var(--color-gray-200)
  );
}

.team-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.team-placeholder svg {
  width: 64px;
  height: 64px;
  color: var(--color-gray-400);
}

.team-badge {
  position: absolute;
  top: var(--space-3);
  left: var(--space-3);
  background: linear-gradient(
    135deg,
    var(--color-primary),
    var(--color-secondary)
  );
  color: var(--color-white);
  font-size: var(--text-xs);
  font-weight: 600;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
}

.team-badge.secondary {
  background: linear-gradient(
    135deg,
    var(--color-gray-600),
    var(--color-gray-700)
  );
}

.team-info {
  padding: var(--space-5);
}

.team-info h3 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-1);
}

.team-role {
  font-size: var(--text-sm);
  color: var(--color-secondary);
  font-weight: 500;
  margin-bottom: var(--space-1);
}

.team-class {
  font-size: var(--text-sm);
  color: var(--color-gray-500);
}

/* ---------- Committee Section ---------- */
.committee {
  background: linear-gradient(
    135deg,
    var(--color-primary-dark),
    var(--color-primary)
  );
  color: var(--color-white);
}

.committee .section-tag {
  background: rgba(255, 255, 255, 0.1);
  color: var(--color-secondary-light);
}

.committee .section-title {
  color: var(--color-white);
}

/* ---------- New Hierarchy Timeline Styles ---------- */
.hierarchy-timeline {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
}

.hierarchy-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

/* Step Number Circle */
.step-number {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--color-secondary), var(--color-accent));
  color: var(--color-white);
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-3);
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
  position: relative;
  z-index: 2;
}

/* Main Step Card */
.step-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  display: flex;
  align-items: center;
  gap: var(--space-5);
  width: 100%;
  max-width: 500px;
  transition: all var(--transition-base);
}

.step-card:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: scale(1.02);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.step-card.top-level {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.3), rgba(139, 92, 246, 0.3));
  border-color: rgba(255, 255, 255, 0.3);
}

.step-card.leader {
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(255, 165, 0, 0.2));
  border-color: rgba(255, 215, 0, 0.4);
}

.step-icon {
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.step-icon svg {
  width: 28px;
  height: 28px;
  color: var(--color-white);
}

.step-content {
  text-align: left;
}

.step-role {
  display: block;
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.7);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-1);
}

.step-content h4 {
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--color-white);
  margin-bottom: var(--space-1);
}

.step-desc {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.6);
}

/* Step Arrow */
.step-arrow {
  padding: var(--space-3) 0;
}

.step-arrow svg {
  width: 24px;
  height: 24px;
  color: rgba(255, 255, 255, 0.5);
  animation: bounce-arrow 1.5s ease-in-out infinite;
}

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

/* Step Group - for Vice Directors */
.step-group {
  width: 100%;
  text-align: center;
}

.group-title {
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--color-white);
  margin-bottom: var(--space-4);
}

.step-cards-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-3);
}

/* Mini Card for Vice Directors */
.step-card-mini {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-2);
  transition: all var(--transition-base);
}

.step-card-mini:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-3px);
}

.step-card-mini svg {
  width: 24px;
  height: 24px;
  color: var(--color-secondary-light);
}

.card-title {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-white);
  line-height: 1.3;
}

.card-name {
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.3;
}

/* Responsive */
@media (max-width: 768px) {
  .step-cards-row {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .step-card {
    flex-direction: column;
    text-align: center;
  }
  
  .step-content {
    text-align: center;
  }
}

@media (max-width: 480px) {
  .step-cards-row {
    grid-template-columns: 1fr;
  }
  
  .step-number {
    width: 40px;
    height: 40px;
    font-size: var(--text-lg);
  }
}

/* Legacy org-card styles - kept for compatibility */
.org-card.small {
  min-width: auto;
  padding: var(--space-4);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.org-card.small svg {
  width: 18px;
  height: 18px;
}

.org-card.small span {
  font-size: var(--text-sm);
}

.org-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto var(--space-3);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
}

.org-icon svg {
  width: 24px;
  height: 24px;
}

.org-card h4 {
  font-size: var(--text-base);
  color: var(--color-white);
  margin-bottom: var(--space-1);
}

.org-card p {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.7);
}

/* ---------- Schedule Section ---------- */
.schedule-table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
}

.schedule-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--color-white);
}

.schedule-table th,
.schedule-table td {
  padding: var(--space-5);
  text-align: center;
  border-bottom: 1px solid var(--color-gray-100);
}

.schedule-table thead {
  background: linear-gradient(
    135deg,
    var(--color-primary),
    var(--color-primary-light)
  );
}

.schedule-table th {
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-white);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.schedule-table tbody tr {
  transition: background var(--transition-fast);
}

.schedule-table tbody tr:hover {
  background: var(--color-gray-50);
}

.schedule-table tbody tr:last-child td {
  border-bottom: none;
}

.day-cell {
  text-align: left !important;
  padding-left: var(--space-6) !important;
}

.day-name {
  display: block;
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--color-gray-800);
}

.day-date {
  display: block;
  font-size: var(--text-xs);
  color: var(--color-gray-400);
}

.schedule-names {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.schedule-names span {
  font-size: var(--text-sm);
  color: var(--color-gray-600);
  background: var(--color-gray-100);
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-sm);
}

.schedule-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  margin-top: var(--space-6);
  padding: var(--space-4);
  background: var(--color-gray-50);
  border-radius: var(--radius-lg);
  color: var(--color-gray-500);
  font-size: var(--text-sm);
}

.schedule-note svg {
  width: 18px;
  height: 18px;
  color: var(--color-secondary);
  flex-shrink: 0;
}

/* ---------- Social Feed Section ---------- */
.social-feed {
  background: linear-gradient(180deg, var(--color-white) 0%, var(--color-gray-50) 100%);
  position: relative;
  overflow: hidden;
}

.social-feed::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -20%;
  width: 60%;
  height: 120%;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.05) 0%, transparent 60%);
  z-index: 0;
}

.social-feed::after {
  content: '';
  position: absolute;
  bottom: -30%;
  right: -10%;
  width: 50%;
  height: 100%;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.05) 0%, transparent 60%);
  z-index: 0;
}

.social-feed .container {
  position: relative;
  z-index: 1;
}

.social-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-8);
}

.social-card {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(20px);
  border-radius: var(--radius-2xl);
  overflow: hidden;
  box-shadow: 
    0 4px 24px rgba(0, 0, 0, 0.06),
    0 1px 2px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.8);
  transition: all var(--transition-base);
  position: relative;
}

.social-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-secondary), var(--color-accent));
  opacity: 0;
  transition: opacity var(--transition-base);
}

.social-card:hover {
  transform: translateY(-8px);
  box-shadow: 
    0 20px 40px rgba(99, 102, 241, 0.15),
    0 8px 16px rgba(0, 0, 0, 0.06);
}

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

/* Facebook Card Specific */
.social-card.facebook .social-card-header {
  background: linear-gradient(135deg, #1877f2 0%, #0d65d9 100%);
}

.social-card.facebook .social-card-header svg,
.social-card.facebook .social-card-header h3 {
  color: var(--color-white);
}

/* Instagram Card Specific */
.social-card.instagram .social-card-header {
  background: linear-gradient(135deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.social-card.instagram .social-card-header svg,
.social-card.instagram .social-card-header h3 {
  color: var(--color-white);
}

/* Social Icon Wrapper */
.social-icon-wrapper {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(10px);
}

.social-icon-wrapper svg {
  width: 26px;
  height: 26px;
}

.social-header-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.social-header-text h3 {
  margin: 0;
  line-height: 1.2;
}

.social-handle {
  font-size: var(--text-sm);
  opacity: 0.85;
  font-weight: 400;
}

/* Branded Placeholder Icons */
.social-placeholder-icon {
  width: 100px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-2xl);
  box-shadow: 
    0 10px 30px rgba(0, 0, 0, 0.2),
    0 0 0 8px rgba(0, 0, 0, 0.05);
  animation: pulse-glow 2s ease-in-out infinite;
  position: relative;
  z-index: 1;
}

.social-placeholder-icon.facebook {
  background: linear-gradient(135deg, #1877f2 0%, #0d65d9 100%);
  box-shadow: 
    0 10px 30px rgba(24, 119, 242, 0.4),
    0 0 0 8px rgba(24, 119, 242, 0.15);
}

.social-placeholder-icon.instagram {
  background: linear-gradient(135deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  box-shadow: 
    0 10px 30px rgba(225, 48, 108, 0.4),
    0 0 0 8px rgba(225, 48, 108, 0.15);
}

.social-placeholder-icon svg {
  width: 48px;
  height: 48px;
  color: var(--color-white);
}

/* Branded Connect Buttons */
.btn-connect.instagram {
  background: linear-gradient(135deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  box-shadow: 0 4px 15px rgba(225, 48, 108, 0.3);
}

.btn-connect.instagram:hover {
  box-shadow: 0 6px 20px rgba(225, 48, 108, 0.4);
}

/* Facebook Embed Styling */
.fb-page {
  width: 100% !important;
}

.fb-page,
.fb-page iframe,
.fb-page span {
  border-radius: var(--radius-xl) !important;
  overflow: hidden !important;
}

/* Premium Embed Wrapper */
.social-card-content {
  padding: var(--space-6);
  min-height: 480px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  position: relative;
}

/* Decorative Background Pattern */
.social-card-content::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: 
    radial-gradient(circle at 25% 25%, rgba(99, 102, 241, 0.03) 0%, transparent 50%),
    radial-gradient(circle at 75% 75%, rgba(139, 92, 246, 0.03) 0%, transparent 50%);
  pointer-events: none;
}

/* Embed Frame Wrapper */
.embed-frame {
  position: relative;
  background: var(--color-white);
  border-radius: var(--radius-xl);
  padding: var(--space-4);
  box-shadow: 
    0 4px 20px rgba(0, 0, 0, 0.08),
    0 0 0 1px rgba(0, 0, 0, 0.04);
  overflow: hidden;
  width: 100%;
  max-width: 500px;
}

/* Gradient Border Effect */
.embed-frame::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-secondary), var(--color-accent), var(--color-secondary));
  background-size: 200% 100%;
  animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* Facebook specific frame */
.social-card.facebook .embed-frame::before {
  background: linear-gradient(90deg, #1877f2, #42a5f5, #1877f2);
  background-size: 200% 100%;
}

/* Instagram specific frame */
.social-card.instagram .embed-frame::before {
  background: linear-gradient(90deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888, #dc2743, #f09433);
  background-size: 300% 100%;
}

/* Corner Accents */
.embed-frame::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, transparent 50%, rgba(99, 102, 241, 0.05) 50%);
  pointer-events: none;
}

/* Instagram Embed Styling */
.instagram-media {
  border-radius: var(--radius-xl) !important;
  box-shadow: var(--shadow-lg) !important;
  margin: 0 auto !important;
  border: none !important;
}

.social-card-header {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-6);
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  position: relative;
  overflow: hidden;
}

.social-card-header::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 60%);
}

.social-card-header svg {
  width: 32px;
  height: 32px;
  color: var(--color-white);
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.social-card-header h3 {
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--color-white);
  letter-spacing: 0.02em;
}

.social-card-content {
  padding: var(--space-6);
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, var(--color-white) 0%, var(--color-gray-50) 100%);
}

/* Facebook Page Plugin Container */
.fb-page {
  width: 100%;
}

/* Instagram Posts Container */
.ig-posts {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.ig-posts .instagram-media {
  margin: 0 auto !important;
  max-width: 100% !important;
}

/* Social Placeholder - Premium Design */
.social-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-5);
  padding: var(--space-10);
  text-align: center;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.03) 0%, rgba(139, 92, 246, 0.06) 100%);
  border: 2px dashed var(--color-gray-200);
  border-radius: var(--radius-xl);
  width: 100%;
  min-height: 350px;
  position: relative;
  overflow: hidden;
}

.social-placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(circle at 20% 80%, rgba(99, 102, 241, 0.1) 0%, transparent 40%),
    radial-gradient(circle at 80% 20%, rgba(139, 92, 246, 0.1) 0%, transparent 40%);
  opacity: 0.5;
}

.social-placeholder-icon {
  width: 100px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--color-secondary), var(--color-accent));
  border-radius: var(--radius-2xl);
  box-shadow: 
    0 10px 30px rgba(99, 102, 241, 0.3),
    0 0 0 8px rgba(99, 102, 241, 0.1);
  animation: pulse-glow 2s ease-in-out infinite;
  position: relative;
  z-index: 1;
}

@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 
      0 10px 30px rgba(99, 102, 241, 0.3),
      0 0 0 8px rgba(99, 102, 241, 0.1);
  }
  50% {
    box-shadow: 
      0 15px 40px rgba(99, 102, 241, 0.4),
      0 0 0 12px rgba(99, 102, 241, 0.15);
  }
}

.social-placeholder svg {
  width: 48px;
  height: 48px;
  color: var(--color-white);
}

.social-placeholder p {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: 700;
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
  z-index: 1;
}

.social-placeholder span {
  font-size: var(--text-base);
  color: var(--color-gray-500);
  max-width: 280px;
  line-height: 1.6;
  position: relative;
  z-index: 1;
}

.social-placeholder .btn-connect {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  background: linear-gradient(135deg, var(--color-secondary), var(--color-accent));
  color: var(--color-white);
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 500;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
  transition: all var(--transition-base);
  position: relative;
  z-index: 1;
  cursor: pointer;
  border: none;
}

.social-placeholder .btn-connect:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}

.social-placeholder .btn-connect svg {
  width: 16px;
  height: 16px;
}

.social-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  margin-top: var(--space-10);
  padding: var(--space-5) var(--space-8);
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.05), rgba(139, 92, 246, 0.08));
  border-radius: var(--radius-xl);
  border: 1px solid rgba(99, 102, 241, 0.1);
  color: var(--color-gray-600);
  font-size: var(--text-base);
}

.social-note svg {
  width: 20px;
  height: 20px;
  color: var(--color-secondary);
  flex-shrink: 0;
}

/* Hide placeholder when feed is loaded */
.social-card-content:has(.fb-page iframe) .social-placeholder,
.social-card-content:has(.instagram-media) .social-placeholder {
  display: none;
}

/* ---------- Documents Section ---------- */
.documents {
  background: var(--color-white);
}

.documents-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-6);
}

.document-card {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  padding: var(--space-6);
  background: var(--color-white);
  border: 1px solid var(--color-gray-200);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
  text-decoration: none;
  color: inherit;
}

.document-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
  border-color: var(--color-secondary);
}

.document-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.15));
  border-radius: var(--radius-lg);
  flex-shrink: 0;
}

.document-icon svg {
  width: 28px;
  height: 28px;
  color: var(--color-secondary);
}

.document-info {
  flex: 1;
}

.document-info h4 {
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-gray-800);
  margin-bottom: var(--space-1);
}

.document-meta {
  font-size: var(--text-sm);
  color: var(--color-gray-500);
}

.document-download {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-gray-100);
  border-radius: var(--radius-lg);
  transition: all var(--transition-base);
}

.document-download svg {
  width: 20px;
  height: 20px;
  color: var(--color-gray-500);
}

.document-card:hover .document-download {
  background: linear-gradient(135deg, var(--color-secondary), var(--color-accent));
}

.document-card:hover .document-download svg {
  color: var(--color-white);
}

/* ---------- Gallery Slider Section ---------- */
.gallery {
  background: linear-gradient(180deg, var(--color-gray-50) 0%, var(--color-white) 100%);
  overflow: hidden;
}

.gallery-slider-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.gallery-slider {
  display: flex;
  gap: var(--space-6);
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: var(--space-4) 0;
  flex: 1;
}

.gallery-slider::-webkit-scrollbar {
  display: none;
}

.gallery-slide {
  flex: 0 0 320px;
  scroll-snap-align: start;
  background: var(--color-white);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transition: all var(--transition-base);
}

.gallery-slide:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-2xl);
}

.gallery-slide .gallery-placeholder {
  height: 220px;
  background: linear-gradient(135deg, var(--color-gray-200), var(--color-gray-300));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
}

.gallery-slide .gallery-placeholder svg {
  width: 48px;
  height: 48px;
  color: var(--color-gray-400);
}

.gallery-slide .gallery-placeholder span {
  font-size: var(--text-sm);
  color: var(--color-gray-500);
}

.gallery-caption {
  padding: var(--space-5);
  background: var(--color-white);
}

.gallery-caption h4 {
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-gray-800);
  margin-bottom: var(--space-1);
}

.gallery-caption p {
  font-size: var(--text-sm);
  color: var(--color-gray-500);
}

/* Gallery Navigation Buttons */
.gallery-nav {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-white);
  border: 1px solid var(--color-gray-200);
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-md);
  cursor: pointer;
  transition: all var(--transition-base);
  flex-shrink: 0;
  z-index: 10;
}

.gallery-nav:hover {
  background: linear-gradient(135deg, var(--color-secondary), var(--color-accent));
  border-color: transparent;
}

.gallery-nav svg {
  width: 24px;
  height: 24px;
  color: var(--color-gray-600);
  transition: color var(--transition-base);
}

.gallery-nav:hover svg {
  color: var(--color-white);
}

/* Gallery Dots */
.gallery-dots {
  display: flex;
  justify-content: center;
  gap: var(--space-2);
  margin-top: var(--space-6);
}

.gallery-dot {
  width: 10px;
  height: 10px;
  border-radius: var(--radius-full);
  background: var(--color-gray-300);
  border: none;
  cursor: pointer;
  transition: all var(--transition-base);
}

.gallery-dot.active,
.gallery-dot:hover {
  background: linear-gradient(135deg, var(--color-secondary), var(--color-accent));
  transform: scale(1.2);
}

/* Legacy Gallery Grid (kept for compatibility) */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 200px;
  gap: var(--space-4);
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  cursor: pointer;
}

.gallery-item.large {
  grid-column: span 2;
  grid-row: span 2;
}

.gallery-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    var(--color-gray-200),
    var(--color-gray-300)
  );
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
}

.gallery-placeholder svg {
  width: 48px;
  height: 48px;
  color: var(--color-gray-400);
}

.gallery-placeholder span {
  font-size: var(--text-sm);
  color: var(--color-gray-500);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--space-5);
  opacity: 0;
  transition: opacity var(--transition-base);
}

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

.gallery-overlay h4 {
  font-size: var(--text-base);
  color: var(--color-white);
  margin-bottom: var(--space-1);
}

.gallery-overlay p {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.7);
}

/* ---------- Contact Section ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  margin-bottom: var(--space-12);
}

.contact-card {
  background: var(--color-white);
  padding: var(--space-8);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  text-align: center;
  transition: all var(--transition-base);
  text-decoration: none;
  color: inherit;
  display: block;
}

.contact-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
}

.contact-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto var(--space-5);
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(
    135deg,
    var(--color-primary),
    var(--color-secondary)
  );
  border-radius: var(--radius-lg);
}

.contact-icon svg {
  width: 24px;
  height: 24px;
  color: var(--color-white);
}

.contact-card h4 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-2);
}

.contact-card p {
  font-size: var(--text-sm);
  color: var(--color-gray-500);
  line-height: 1.6;
}

.contact-social {
  text-align: center;
}

.contact-social > p {
  font-size: var(--text-sm);
  color: var(--color-gray-500);
  margin-bottom: var(--space-4);
}

.social-links {
  display: flex;
  justify-content: center;
  gap: var(--space-4);
}

.social-link {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-gray-100);
  border-radius: var(--radius-lg);
  color: var(--color-gray-600);
  transition: all var(--transition-base);
}

.social-link:hover {
  background: linear-gradient(
    135deg,
    var(--color-primary),
    var(--color-secondary)
  );
  color: var(--color-white);
  transform: translateY(-3px);
}

.social-link svg {
  width: 22px;
  height: 22px;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--color-gray-900);
  color: var(--color-white);
  padding: var(--space-12) 0;
}

.footer-content {
  text-align: center;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 600;
  margin-bottom: var(--space-4);
}

.footer-logo svg {
  width: 28px;
  height: 28px;
  color: var(--color-secondary-light);
}

.footer-logo-img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: var(--radius-md);
}

.footer-sarawat-logo {
  height: 60px;
  width: auto;
  object-fit: contain;
}

.footer-text {
  color: var(--color-gray-400);
  margin-bottom: var(--space-4);
}

.footer-copyright {
  font-size: var(--text-sm);
  color: var(--color-gray-500);
}

.footer-links {
  margin-top: var(--space-6);
  padding-top: var(--space-6);
  border-top: 1px solid var(--color-gray-700);
}

.footer-links > span {
  font-size: var(--text-xs);
  color: var(--color-gray-500);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  display: block;
  margin-bottom: var(--space-4);
}

.footer-links-list {
  display: flex;
  justify-content: center;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.footer-links-list a {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-5);
  background: var(--color-gray-800);
  border-radius: var(--radius-full);
  color: var(--color-gray-300);
  text-decoration: none;
  font-size: var(--text-sm);
  transition: all var(--transition-base);
}

.footer-links-list a:hover {
  background: linear-gradient(135deg, var(--color-secondary), var(--color-accent));
  color: var(--color-white);
  transform: translateY(-2px);
}

.footer-links-list a svg {
  width: 16px;
  height: 16px;
}

.footer-powered {
  margin-top: var(--space-6);
  padding-top: var(--space-6);
  border-top: 1px solid var(--color-gray-700);
}

.footer-powered span {
  font-size: var(--text-xs);
  color: var(--color-gray-500);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.footer-powered p {
  font-size: var(--text-sm);
  color: var(--color-gray-400);
  margin-top: var(--space-2);
}

.footer-powered a {
  color: var(--color-secondary-light);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-powered a:hover {
  color: var(--color-white);
  text-decoration: underline;
}

/* ---------- Back to Top ---------- */
.back-to-top {
  position: fixed;
  bottom: var(--space-6);
  right: var(--space-6);
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(
    135deg,
    var(--color-primary),
    var(--color-secondary)
  );
  color: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all var(--transition-base);
  z-index: 999;
}

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

.back-to-top:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-xl);
}

.back-to-top svg {
  width: 24px;
  height: 24px;
}

/* ---------- Black Ribbon ---------- */
.black-ribbon {
  position: fixed;
  z-index: 9999;
  width: 70px;
}

@media only all and (min-width: 768px) {
  .black-ribbon {
    width: auto;
  }
}

.stick-left { left: 0; }
.stick-right { right: 0; }
.stick-top { top: 0; }
.stick-bottom { bottom: 0; }

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

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

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

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

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

/* ---------- Responsive Design ---------- */

/* Tablet */
@media (max-width: 1024px) {
  .featured-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4);
  }
  
  .featured-poster {
    grid-column: span 2;
    grid-row: 1;
  }
  
  .featured-sidebar {
    grid-column: span 1;
  }

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

  .about-grid .about-card:last-child {
    grid-column: span 2;
  }

  .team-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .team-card.team-leader {
    grid-column: span 3;
  }

  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }

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

/* Mobile Landscape */
@media (max-width: 768px) {
  .featured-grid {
    grid-template-columns: 1fr;
  }
  
  .featured-poster {
    grid-column: span 1;
    order: -1;
  }
  
  .featured-sidebar {
    grid-column: span 1;
  }

  .nav-menu {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--color-white);
    flex-direction: column;
    padding: var(--space-6);
    gap: var(--space-4);
    box-shadow: var(--shadow-lg);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
  }

  .nav-menu.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-toggle {
    display: block;
  }

  .hero-title {
    font-size: var(--text-4xl);
  }

  .hero-subtitle {
    font-size: var(--text-xl);
  }

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

  .hero-stats {
    gap: var(--space-8);
  }

  .stat-number {
    font-size: var(--text-3xl);
  }

  .section-title {
    font-size: var(--text-3xl);
  }

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

  .about-grid .about-card:last-child {
    grid-column: span 1;
  }

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

  .team-card.team-leader {
    grid-column: span 2;
  }

  .org-level.multi {
    flex-direction: column;
    gap: var(--space-4);
  }

  .org-connector.split::after {
    display: none;
  }

  .org-level.departments {
    gap: var(--space-3);
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 150px;
  }

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

/* Mobile Portrait */
@media (max-width: 480px) {
  .container {
    padding: 0 var(--space-4);
  }

  .section {
    padding: var(--space-16) 0;
  }

  .hero-title {
    font-size: var(--text-3xl);
  }

  .hero-stats {
    flex-direction: column;
    gap: var(--space-6);
  }

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

  .team-card.team-leader {
    grid-column: span 1;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 200px;
  }

  .gallery-item.large {
    grid-column: span 1;
    grid-row: span 1;
  }

  .schedule-table th,
  .schedule-table td {
    padding: var(--space-3);
    font-size: var(--text-sm);
  }

  .schedule-names span {
    font-size: var(--text-xs);
  }

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

  .social-card-content {
    min-height: 300px;
  }

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

  .gallery-slide {
    flex: 0 0 280px;
  }

  .gallery-nav {
    width: 40px;
    height: 40px;
  }

  .gallery-nav svg {
    width: 20px;
    height: 20px;
  }

  .chairman-content {
    grid-template-columns: 1fr;
    gap: var(--space-8);
    text-align: center;
  }

  .chairman-image {
    width: 220px;
    height: 280px;
  }

  .chairman-quote {
    padding-left: 0;
    padding-top: var(--space-8);
  }

  .quote-icon {
    top: 0;
    left: 50%;
    transform: translateX(-50%);
  }

  .chairman-quote blockquote {
    font-size: var(--text-lg);
  }

  .chairman-info {
    flex-direction: column;
    gap: var(--space-4);
    text-align: center;
  }

  .chairman-signature {
    border-left: none;
    border-top: 1px solid var(--color-gray-200);
    padding-top: var(--space-3);
  }

  .chairman-values {
    justify-content: center;
  }
}
