/* ===== Variables ===== */
:root {
  --bg-primary: #0a0f2e;
  --bg-secondary: #0d1338;
  --bg-tertiary: #111842;
  --bg-card: #131a4a;
  --bg-card-hover: #1a2260;
  --gold: #d4a017;
  --gold-light: #f0c040;
  --gold-glow: rgba(212, 160, 23, 0.3);
  --gold-subtle: rgba(212, 160, 23, 0.08);
  --red: #c0392b;
  --red-light: #e74c3c;
  --blue-accent: #2a4494;
  --white: #ffffff;
  --text: #e8e8f0;
  --text-muted: #8a8fb5;
  --text-dim: #5a5f85;
  --border: rgba(212, 160, 23, 0.12);
  --border-light: rgba(255, 255, 255, 0.06);
  --shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 10px 50px rgba(0, 0, 0, 0.5);
  --shadow-gold: 0 0 40px rgba(212, 160, 23, 0.15);
  --transition: all 0.3s ease;
  --transition-slow: all 0.6s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg-primary);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: 'Playfair Display', serif;
  line-height: 1.3;
}

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

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== Abstract Background ===== */
#abstractBg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* Layered abstract background */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(135deg, transparent 20%, rgba(212, 160, 23, 0.03) 25%, transparent 30%),
    linear-gradient(135deg, transparent 50%, rgba(212, 160, 23, 0.02) 55%, transparent 60%),
    linear-gradient(135deg, transparent 75%, rgba(212, 160, 23, 0.025) 80%, transparent 85%),
    linear-gradient(315deg, transparent 15%, rgba(42, 68, 148, 0.04) 20%, transparent 25%),
    linear-gradient(315deg, transparent 45%, rgba(42, 68, 148, 0.03) 50%, transparent 55%),
    linear-gradient(315deg, transparent 70%, rgba(42, 68, 148, 0.035) 75%, transparent 80%),
    linear-gradient(225deg, transparent 30%, rgba(192, 57, 43, 0.02) 35%, transparent 40%),
    linear-gradient(225deg, transparent 65%, rgba(192, 57, 43, 0.015) 70%, transparent 75%);
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 50% 50% at 10% 20%, rgba(42, 68, 148, 0.12) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 85% 15%, rgba(212, 160, 23, 0.06) 0%, transparent 70%),
    radial-gradient(ellipse 45% 45% at 70% 75%, rgba(42, 68, 148, 0.08) 0%, transparent 70%),
    radial-gradient(ellipse 35% 35% at 20% 80%, rgba(192, 57, 43, 0.04) 0%, transparent 70%),
    radial-gradient(ellipse 50% 50% at 50% 50%, rgba(212, 160, 23, 0.03) 0%, transparent 70%);
}

/* ===== Navbar ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 18px 0;
  transition: var(--transition);
  background: transparent;
}

.navbar.scrolled {
  background: rgba(10, 15, 46, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

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

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 1.05rem;
  z-index: 10;
}

.nav-logo {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 4px;
  align-items: center;
}

.nav-links a {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.85rem;
  padding: 8px 14px;
  border-radius: 8px;
  transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--white);
  background: rgba(255, 255, 255, 0.05);
}

.nav-cta {
  background: var(--gold) !important;
  color: var(--bg-primary) !important;
  font-weight: 600 !important;
  border-radius: 8px;
}

.nav-cta:hover {
  background: var(--gold-light) !important;
  box-shadow: var(--shadow-gold);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
  z-index: 10;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--gold);
  transition: var(--transition);
  border-radius: 2px;
}

/* ===== Hero ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 40%, rgba(212, 160, 23, 0.06) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 20% 80%, rgba(42, 68, 148, 0.1) 0%, transparent 50%),
    radial-gradient(ellipse 50% 40% at 80% 20%, rgba(192, 57, 43, 0.05) 0%, transparent 50%);
  z-index: 0;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 200px;
  background: linear-gradient(to top, var(--bg-primary), transparent);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 40px 20px;
}

/* Dual logos side by side */
.hero-dual-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  margin-bottom: 35px;
  animation: fadeInUp 1s ease;
}

.hero-crest {
  width: 140px;
  height: auto;
  filter: drop-shadow(0 0 30px rgba(212, 160, 23, 0.2));
}

.hero-logo-obu-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-obu-logo {
  width: 150px;
  height: auto;
  filter: drop-shadow(0 0 30px rgba(212, 160, 23, 0.2));
}

.hero-badge {
  display: inline-block;
  padding: 6px 24px;
  background: rgba(212, 160, 23, 0.1);
  border: 1px solid rgba(212, 160, 23, 0.25);
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 35px;
  animation: fadeInUp 1s ease 0.6s both;
}

.hero-title {
  margin-bottom: 20px;
}

.title-line {
  display: block;
  font-size: 4rem;
  font-weight: 900;
  color: var(--white);
  letter-spacing: -1px;
  animation: fadeInUp 1s ease 0.2s both;
}

.title-accent {
  display: block;
  font-size: 1.6rem;
  font-weight: 400;
  color: var(--gold);
  margin-top: 5px;
  animation: fadeInUp 1s ease 0.35s both;
}

.title-location {
  display: block;
  font-size: 1.2rem;
  font-weight: 300;
  color: var(--text-muted);
  letter-spacing: 8px;
  text-transform: uppercase;
  margin-top: 10px;
  animation: fadeInUp 1s ease 0.5s both;
}

.hero-buttons {
  animation: fadeInUp 1s ease 0.75s both;
}

.scroll-indicator {
  position: absolute;
  bottom: 50px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-dim);
  font-size: 0.7rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  animation: fadeInUp 1s ease 1.2s both;
  z-index: 3;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  animation: scrollPulse 2s ease infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 1; transform: scaleY(1); }
  50% { opacity: 0.3; transform: scaleY(0.6); }
}

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

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 14px 34px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
  margin: 6px;
  font-family: 'Inter', sans-serif;
  letter-spacing: 0.3px;
}

.btn-gold {
  background: var(--gold);
  color: var(--bg-primary);
  border-color: var(--gold);
}

.btn-gold:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(212, 160, 23, 0.35);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-2px);
}

.btn-lg {
  padding: 16px 44px;
  font-size: 1rem;
}

.btn-full {
  width: 100%;
  text-align: center;
}

/* ===== Slideshow ===== */
.slideshow-section {
  position: relative;
  z-index: 1;
  background: var(--bg-primary);
}

.slideshow-container {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 0;
  aspect-ratio: 16/7;
}

.slideshow-track {
  position: relative;
  width: 100%;
  height: 100%;
}

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

.slide.active {
  opacity: 1;
}

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

.slide-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 60px 40px 30px;
  background: linear-gradient(to top, rgba(10, 15, 46, 0.95), rgba(10, 15, 46, 0.5), transparent);
}

.slide-caption h3 {
  font-size: 1.8rem;
  color: var(--gold);
  margin-bottom: 5px;
}

.slide-caption p {
  font-size: 1rem;
  color: var(--text-muted);
}

.slide-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(10, 15, 46, 0.6);
  border: 1px solid rgba(212, 160, 23, 0.3);
  color: var(--gold);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  backdrop-filter: blur(10px);
}

.slide-btn:hover {
  background: var(--gold);
  color: var(--bg-primary);
}

.slide-prev { left: 20px; }
.slide-next { right: 20px; }

.slide-dots {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 5;
}

.slide-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.slide-dot.active {
  background: var(--gold);
  box-shadow: 0 0 10px var(--gold-glow);
  transform: scale(1.2);
}

/* ===== Sections ===== */
.section {
  padding: 110px 0;
  position: relative;
  z-index: 1;
}

.section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--gold-subtle), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.section-header {
  text-align: center;
  margin-bottom: 70px;
  position: relative;
  z-index: 1;
}

.section-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
  font-family: 'Inter', sans-serif;
}

.section-header h2 {
  font-size: 2.8rem;
  color: var(--white);
  margin-bottom: 18px;
}

.underline {
  width: 50px;
  height: 3px;
  background: var(--gold);
  margin: 0 auto;
  border-radius: 2px;
  box-shadow: 0 0 15px var(--gold-glow);
}

/* ===== Page Hero (subpages) ===== */
.page-hero {
  padding: 160px 0 80px;
  text-align: center;
  position: relative;
  z-index: 1;
  background: linear-gradient(to bottom, rgba(10, 15, 46, 0.5), var(--bg-primary));
}

.page-hero h1 {
  font-size: 3.2rem;
  color: var(--white);
  margin-bottom: 15px;
}

.page-hero p {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

/* ===== About ===== */
.about-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 70px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.about-lead {
  font-size: 1.15rem;
  color: var(--text);
  font-weight: 400;
}

.about-text p {
  margin-bottom: 20px;
  color: var(--text-muted);
  font-size: 1rem;
}

.about-stats {
  display: flex;
  gap: 40px;
  margin-top: 35px;
  padding-top: 30px;
  border-top: 1px solid var(--border);
}

.stat {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 900;
  color: var(--gold);
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 4px;
}

.about-image {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-image-frame {
  position: relative;
  z-index: 1;
}

.about-image-frame img {
  max-width: 320px;
  filter: drop-shadow(0 0 40px rgba(212, 160, 23, 0.15));
}

.about-glow {
  position: absolute;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, var(--gold-glow), transparent 70%);
  border-radius: 50%;
  z-index: 0;
}

/* ===== Cards ===== */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
  z-index: 1;
}

.card {
  position: relative;
  background: var(--bg-card);
  padding: 40px 28px;
  border-radius: 16px;
  text-align: center;
  border: 1px solid var(--border);
  transition: var(--transition);
  overflow: hidden;
}

.card:hover {
  transform: translateY(-8px);
  border-color: rgba(212, 160, 23, 0.3);
  background: var(--bg-card-hover);
}

.card-glow {
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(212, 160, 23, 0.08), transparent 70%);
  pointer-events: none;
  transition: var(--transition-slow);
}

.card:hover .card-glow {
  opacity: 1.5;
}

.card-icon-wrap {
  width: 60px;
  height: 60px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gold-subtle);
  border-radius: 14px;
  border: 1px solid var(--border);
}

.card-icon-wrap svg {
  width: 28px;
  height: 28px;
  color: var(--gold);
}

.card h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: var(--white);
}

.card p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ===== Timeline ===== */
.timeline {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding: 20px 0;
}

.timeline-line {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, transparent, var(--gold), var(--gold), transparent);
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  width: 50%;
  padding: 20px 40px;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.timeline-item.visible {
  opacity: 1;
  transform: translateY(0);
}

.timeline-item.left {
  left: 0;
  text-align: right;
  padding-right: 60px;
}

.timeline-item.right {
  left: 50%;
  text-align: left;
  padding-left: 60px;
}

/* Dot on timeline */
.timeline-item::before {
  content: '';
  position: absolute;
  top: 30px;
  width: 16px;
  height: 16px;
  background: var(--bg-primary);
  border: 3px solid var(--gold);
  border-radius: 50%;
  z-index: 2;
  box-shadow: 0 0 15px var(--gold-glow);
  transition: var(--transition);
}

.timeline-item.left::before {
  right: -8px;
}

.timeline-item.right::before {
  left: -8px;
}

.timeline-item.visible::before {
  background: var(--gold);
  box-shadow: 0 0 20px var(--gold-glow), 0 0 40px rgba(212, 160, 23, 0.15);
}

.timeline-content {
  background: var(--bg-card);
  padding: 28px;
  border-radius: 16px;
  border: 1px solid var(--border);
  transition: var(--transition);
}

.timeline-content:hover {
  border-color: rgba(212, 160, 23, 0.3);
  box-shadow: var(--shadow-gold);
}

.timeline-year {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--gold);
  margin-bottom: 8px;
}

.timeline-content h3 {
  font-size: 1.15rem;
  color: var(--white);
  margin-bottom: 8px;
}

.timeline-content p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.timeline-cta {
  text-align: center;
  margin-top: 50px;
}

/* ===== Events ===== */
.events-grid {
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
  z-index: 1;
}

.event-card {
  display: flex;
  align-items: stretch;
  background: var(--bg-card);
  border-radius: 16px;
  border: 1px solid var(--border);
  overflow: hidden;
  transition: var(--transition);
}

.event-card:hover {
  border-color: rgba(212, 160, 23, 0.3);
  transform: translateX(6px);
  box-shadow: var(--shadow-gold);
}

.event-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--bg-tertiary), var(--bg-card));
  padding: 25px 30px;
  min-width: 110px;
  border-right: 1px solid var(--border);
}

.event-month {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 2px;
  text-transform: uppercase;
}

.event-day {
  font-size: 2.5rem;
  font-weight: 900;
  font-family: 'Playfair Display', serif;
  color: var(--white);
  line-height: 1;
}

.event-year {
  font-size: 0.7rem;
  color: var(--text-dim);
  margin-top: 4px;
}

.event-details {
  padding: 28px 30px;
  flex: 1;
}

.event-details h3 {
  font-size: 1.25rem;
  margin-bottom: 8px;
  color: var(--white);
}

.event-details p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 12px;
}

.event-meta {
  display: flex;
  gap: 20px;
}

.event-location {
  font-size: 0.85rem;
  color: var(--red-light);
  font-weight: 500;
}

/* ===== Gallery ===== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  position: relative;
  z-index: 1;
}

.gallery-item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 4/3;
  border: 1px solid var(--border);
  transition: var(--transition);
}

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

.gallery-item:hover {
  border-color: var(--gold);
  transform: scale(1.02);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-slow);
}

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

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 15, 46, 0.9), transparent 60%);
  display: flex;
  align-items: flex-end;
  padding: 20px;
  opacity: 0;
  transition: var(--transition);
}

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

.gallery-overlay span {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  color: var(--gold);
  font-weight: 700;
}

/* ===== Lightbox ===== */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(5, 8, 22, 0.95);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
}

.lightbox.active {
  display: flex;
}

.lightbox-img {
  max-width: 90%;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 8px;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 2.5rem;
  color: var(--white);
  background: none;
  border: none;
  cursor: pointer;
  z-index: 10;
  transition: var(--transition);
}

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

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  color: var(--gold);
  background: rgba(10, 15, 46, 0.7);
  border: 1px solid rgba(212, 160, 23, 0.3);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

.lightbox-prev:hover,
.lightbox-next:hover {
  background: var(--gold);
  color: var(--bg-primary);
}

.lightbox-caption {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--gold);
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  text-align: center;
}

/* ===== Membership ===== */
.membership-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}

.membership-text p {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 50px;
}

.membership-benefits {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  text-align: left;
  margin-bottom: 50px;
}

.benefit {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px;
  background: var(--bg-card);
  border-radius: 12px;
  border: 1px solid var(--border);
  transition: var(--transition);
}

.benefit:hover {
  border-color: rgba(212, 160, 23, 0.3);
}

.benefit-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gold);
  border-radius: 8px;
  flex-shrink: 0;
  margin-top: 2px;
}

.benefit-icon svg {
  width: 18px;
  height: 18px;
  color: var(--bg-primary);
}

.benefit strong {
  display: block;
  color: var(--white);
  margin-bottom: 4px;
  font-size: 0.95rem;
}

.benefit p {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin: 0;
}

/* ===== Contact ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  align-items: start;
  position: relative;
  z-index: 1;
}

.contact-info h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: var(--white);
}

.contact-info > p {
  color: var(--text-muted);
  margin-bottom: 30px;
}

.contact-items {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 30px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 16px;
}

.contact-item-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  border-radius: 10px;
  border: 1px solid var(--border);
  flex-shrink: 0;
}

.contact-item-icon svg {
  width: 20px;
  height: 20px;
  color: var(--gold);
}

.contact-item strong {
  display: block;
  color: var(--white);
  font-size: 0.85rem;
  margin-bottom: 2px;
}

.contact-item span {
  color: var(--text-muted);
  font-size: 0.9rem;
}

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

.social-link {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  transition: var(--transition);
}

.social-link svg {
  width: 20px;
  height: 20px;
  color: var(--text-muted);
}

.social-link:hover {
  background: var(--gold);
  border-color: var(--gold);
}

.social-link:hover svg {
  color: var(--bg-primary);
}

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

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

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

.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 13px 16px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: 10px;
  color: var(--text);
  font-size: 0.95rem;
  font-family: 'Inter', sans-serif;
  transition: var(--transition);
  outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-dim);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(212, 160, 23, 0.1);
}

.form-group textarea {
  resize: vertical;
}

/* ===== Team Page ===== */
.team-president {
  display: flex;
  justify-content: center;
  margin-bottom: 50px;
}

.team-grid {
  display: grid;
  gap: 28px;
  margin-bottom: 50px;
  justify-items: center;
}

.team-grid-2 {
  grid-template-columns: repeat(2, 1fr);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 50px;
}

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

.team-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  text-align: center;
  transition: var(--transition);
  width: 100%;
  max-width: 300px;
}

.team-card:hover {
  transform: translateY(-8px);
  border-color: rgba(212, 160, 23, 0.3);
  box-shadow: var(--shadow-gold);
}

.team-card-featured {
  max-width: 340px;
  border-color: rgba(212, 160, 23, 0.25);
  box-shadow: 0 0 30px rgba(212, 160, 23, 0.08);
}

.team-photo {
  width: 100%;
  aspect-ratio: 3/4;
  overflow: hidden;
  background: var(--bg-tertiary);
}

.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: var(--transition-slow);
}

.team-card:hover .team-photo img {
  transform: scale(1.05);
}

.team-info {
  padding: 22px 20px;
}

.team-info h3 {
  font-size: 1.1rem;
  color: var(--white);
  margin-bottom: 6px;
}

.team-role {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 2px;
  padding: 4px 14px;
  background: var(--gold-subtle);
  border-radius: 50px;
  border: 1px solid var(--border);
}

/* Sub Committees */
.sub-committees-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  position: relative;
  z-index: 1;
}

.sub-committee-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 35px 28px;
  text-align: center;
  transition: var(--transition);
}

.sub-committee-card:hover {
  border-color: rgba(212, 160, 23, 0.3);
  transform: translateY(-5px);
}

.sub-committee-icon {
  width: 55px;
  height: 55px;
  margin: 0 auto 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gold-subtle);
  border-radius: 14px;
  border: 1px solid var(--border);
}

.sub-committee-icon svg {
  width: 26px;
  height: 26px;
  color: var(--gold);
}

.sub-committee-card h3 {
  font-size: 1.15rem;
  color: var(--gold);
  margin-bottom: 18px;
}

.sub-committee-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sub-committee-list li {
  color: var(--text);
  font-size: 0.95rem;
  padding: 8px 0;
  border-bottom: 1px solid var(--border-light);
}

.sub-committee-list li:last-child {
  border-bottom: none;
}

/* ===== History Page Note ===== */
.history-note {
  margin-top: 60px;
  display: flex;
  justify-content: center;
}

.history-note-card {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 30px;
  max-width: 700px;
}

.history-note-card svg {
  color: var(--gold);
  flex-shrink: 0;
  margin-top: 2px;
}

.history-note-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.history-note-card a {
  color: var(--gold);
  font-weight: 600;
  border-bottom: 1px solid rgba(212, 160, 23, 0.3);
  transition: var(--transition);
}

.history-note-card a:hover {
  border-color: var(--gold);
}

/* ===== Footer ===== */
.footer {
  position: relative;
  z-index: 1;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 60px 0 20px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 50px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
}

.footer-crest {
  width: 50px;
  height: 50px;
  object-fit: contain;
  opacity: 0.8;
}

.footer-obu {
  width: 50px;
  height: 50px;
  object-fit: contain;
}

.footer-brand p {
  font-size: 0.9rem;
  color: var(--text-muted);
  width: 100%;
  margin-top: 5px;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-nav h4,
.footer-info h4 {
  font-size: 1rem;
  color: var(--gold);
  margin-bottom: 5px;
}

.footer-nav a {
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: var(--transition);
}

.footer-nav a:hover {
  color: var(--gold);
}

.footer-info p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 5px;
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  font-size: 0.8rem;
  color: var(--text-dim);
}

/* ===== Scroll Reveal ===== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

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

  .about-image { order: -1; }

  .about-image-frame img {
    max-width: 220px;
  }

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

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

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

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(10, 15, 46, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 20px 24px;
    gap: 0;
    border-bottom: 1px solid var(--border);
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links a {
    padding: 14px 0;
    border-bottom: 1px solid var(--border-light);
    border-radius: 0;
  }

  .nav-cta {
    margin-top: 10px;
    text-align: center;
    border-radius: 10px !important;
  }

  .nav-toggle {
    display: flex;
  }

  .hero-dual-logos {
    gap: 25px;
  }

  .hero-crest {
    width: 100px;
  }

  .hero-obu-logo {
    width: 110px;
  }

  .title-line {
    font-size: 2.4rem;
  }

  .title-accent {
    font-size: 1.2rem;
  }

  .section {
    padding: 80px 0;
  }

  .section-header h2 {
    font-size: 2rem;
  }

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

  .event-card {
    flex-direction: column;
  }

  .event-date {
    flex-direction: row;
    gap: 10px;
    padding: 15px 20px;
    min-width: auto;
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  .membership-benefits {
    grid-template-columns: 1fr;
  }

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

  .form-row {
    grid-template-columns: 1fr;
  }

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

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

  .slideshow-container {
    aspect-ratio: 16/9;
  }

  .slide-caption h3 {
    font-size: 1.2rem;
  }

  .about-stats {
    gap: 25px;
  }

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

  .scroll-indicator {
    display: none;
  }

  /* Timeline mobile */
  .timeline-line {
    left: 20px;
  }

  .timeline-item {
    width: 100%;
    padding: 15px 15px 15px 55px;
    text-align: left !important;
  }

  .timeline-item.left,
  .timeline-item.right {
    left: 0;
    padding-left: 55px;
    padding-right: 15px;
  }

  .timeline-item.left::before,
  .timeline-item.right::before {
    left: 13px;
    right: auto;
  }

  .page-hero h1 {
    font-size: 2.4rem;
  }

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

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

  .team-card {
    max-width: 280px;
  }

  .sub-committees-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }

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

  .title-line {
    font-size: 2rem;
  }

  .slideshow-container {
    aspect-ratio: 4/3;
  }

  .hero-dual-logos {
    gap: 18px;
  }

  .hero-crest {
    width: 80px;
  }

  .hero-obu-logo {
    width: 85px;
  }

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

  .team-card {
    max-width: 100%;
  }
}
