@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;800&family=Noto+Sans+JP:wght@300;400;500;700&display=swap');

:root {
  /* Color System */
  --bg-primary: #060913;
  --bg-secondary: #0c1122;
  --bg-card: rgba(255, 255, 255, 0.02);
  --bg-card-hover: rgba(255, 255, 255, 0.05);
  --border-glass: rgba(212, 175, 55, 0.12);
  --border-glass-hover: rgba(212, 175, 55, 0.3);
  
  --primary-gold: #d4af37;
  --primary-gold-rgb: 212, 175, 55;
  --accent-gold-light: #f3e5ab;
  --accent-bronze: #cd7f32;
  
  --text-main: #f3f4f6;
  --text-muted: #9ca3af;
  --text-dark: #1f2937;
  
  --shadow-gold: 0 8px 30px rgba(212, 175, 55, 0.15);
  --shadow-gold-heavy: 0 10px 40px rgba(212, 175, 55, 0.3);
  
  /* Layout Constants */
  --header-height: 80px;
  --max-width: 1200px;
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-main);
  font-family: 'Outfit', 'Noto Sans JP', sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

/* Background elements for depth */
body::before {
  content: '';
  position: absolute;
  top: -10%;
  left: -10%;
  width: 50%;
  height: 60%;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.05) 0%, transparent 70%);
  z-index: -1;
  pointer-events: none;
}

body::after {
  content: '';
  position: absolute;
  bottom: 10%;
  right: -10%;
  width: 60%;
  height: 60%;
  background: radial-gradient(circle, rgba(205, 127, 50, 0.04) 0%, transparent 70%);
  z-index: -1;
  pointer-events: none;
}

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

li {
  list-style: none;
}

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

/* Typography */
h1, h2, h3, h4 {
  font-weight: 700;
  letter-spacing: 0.05em;
}

.gold-text {
  color: var(--primary-gold);
  background: linear-gradient(135deg, var(--accent-gold-light) 0%, var(--primary-gold) 50%, var(--accent-bronze) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Common Layout Components */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

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

@media (max-width: 768px) {
  .section-padding {
    padding: 60px 0;
  }
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 50px;
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 50px;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--primary-gold), transparent);
  margin: 15px auto 0;
}

@media (max-width: 768px) {
  .section-title {
    font-size: 2rem;
  }
}

/* Navigation Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 1000;
  display: flex;
  align-items: center;
  transition: var(--transition-smooth);
  border-bottom: 1px solid transparent;
}

.header.scrolled {
  background: rgba(6, 9, 19, 0.85);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-bottom: 1px solid var(--border-glass);
  height: 70px;
}

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

.logo {
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-sub {
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  display: block;
  line-height: 1.2;
}

.nav-list {
  display: flex;
  gap: 32px;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  position: relative;
  padding: 8px 0;
  letter-spacing: 0.05em;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-gold);
  transition: var(--transition-smooth);
}

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

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

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

/* Mobile Menu Button */
.burger-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1010;
}

.burger-line {
  display: block;
  width: 25px;
  height: 2px;
  background-color: var(--text-main);
  margin: 5px 0;
  transition: var(--transition-smooth);
}

@media (max-width: 768px) {
  .burger-btn {
    display: block;
  }
  
  .nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background: rgba(6, 9, 19, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 100px 40px;
    transition: var(--transition-smooth);
    border-left: 1px solid var(--border-glass);
    z-index: 1009;
  }
  
  .nav.open {
    right: 0;
  }
  
  .nav-list {
    flex-direction: column;
    gap: 24px;
  }
  
  .nav-link {
    font-size: 1.2rem;
  }
  
  .burger-btn.active .burger-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  
  .burger-btn.active .burger-line:nth-child(2) {
    opacity: 0;
  }
  
  .burger-btn.active .burger-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: var(--transition-smooth);
  text-align: center;
}

.btn-gold {
  background: linear-gradient(135deg, var(--primary-gold), var(--accent-bronze));
  color: var(--bg-primary);
  border: none;
}

.btn-gold:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-gold-heavy);
  filter: brightness(1.1);
}

.btn-outline {
  background: transparent;
  color: var(--text-main);
  border: 1px solid var(--primary-gold);
}

.btn-outline:hover {
  background: rgba(212, 175, 55, 0.1);
  transform: translateY(-3px);
  box-shadow: var(--shadow-gold);
}

/* Glassmorphism Card Style */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border-glass);
  border-radius: 8px;
  padding: 30px;
  transition: var(--transition-smooth);
}

.glass-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-glass-hover);
  transform: translateY(-5px);
}

/* Image Container & Placeholder Fallback */
.img-container {
  position: relative;
  background-color: var(--bg-secondary);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-glass);
  border-radius: 8px;
  width: 100%;
}

.img-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0; /* Hide image initially, fade in on load */
  transition: opacity 0.5s ease;
  z-index: 2;
}

.img-placeholder {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #090e1a 0%, #161e33 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 500;
  gap: 12px;
  z-index: 1;
  border: 1px dashed var(--border-glass);
  border-radius: 8px;
  padding: 20px;
  text-align: center;
}

.img-placeholder i {
  font-size: 2rem;
  color: var(--primary-gold);
  opacity: 0.6;
  animation: pulse 2s infinite ease-in-out;
}

.img-container.loaded img {
  opacity: 1;
}

.img-container.loaded .img-placeholder {
  opacity: 0;
  pointer-events: none;
}

@keyframes pulse {
  0% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.05); opacity: 0.8; }
  100% { transform: scale(1); opacity: 0.5; }
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--header-height);
  overflow: hidden;
  background-color: var(--bg-primary);
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease;
}

.hero-bg.loaded img {
  opacity: 1;
}

.hero-bg-placeholder {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #050811 0%, #0d1428 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 1rem;
  border-bottom: 1px solid var(--border-glass);
  z-index: 0;
}

.hero-bg-placeholder i {
  font-size: 3rem;
  color: var(--primary-gold);
  margin-bottom: 15px;
  opacity: 0.4;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(6, 9, 19, 0.4) 0%, rgba(6, 9, 19, 0.95) 100%);
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 700px;
}

.hero-tag {
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary-gold);
  letter-spacing: 0.2em;
  margin-bottom: 16px;
  text-transform: uppercase;
}

.hero-title {
  font-size: 3.5rem;
  line-height: 1.2;
  margin-bottom: 24px;
  font-weight: 800;
}

.hero-desc {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 36px;
  font-weight: 300;
}

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

@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }
  .hero-desc {
    font-size: 1rem;
  }
  .hero-btns {
    flex-direction: column;
    gap: 12px;
  }
}

/* Page Intro Header (For inner pages) */
.page-intro {
  height: 350px;
  display: flex;
  align-items: center;
  position: relative;
  padding-top: var(--header-height);
  background-color: var(--bg-primary);
}

.page-intro-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.page-intro-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.page-intro-bg.loaded img {
  opacity: 1;
}

.page-intro-bg-placeholder {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, #050811 0%, #0c1122 100%);
  z-index: 0;
}

.page-intro::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(6, 9, 19, 0.5) 0%, var(--bg-primary) 100%);
  z-index: 2;
}

.page-intro-content {
  position: relative;
  z-index: 10;
  text-align: center;
  width: 100%;
}

.page-intro-title {
  font-size: 3rem;
  margin-bottom: 12px;
}

.page-intro-subtitle {
  color: var(--text-muted);
  font-weight: 300;
  font-size: 1.1rem;
}

@media (max-width: 768px) {
  .page-intro {
    height: 250px;
  }
  .page-intro-title {
    font-size: 2.2rem;
  }
}

/* Home Page: News Section */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.news-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.news-meta {
  font-size: 0.85rem;
  color: var(--primary-gold);
  margin-bottom: 8px;
  font-weight: 500;
}

.news-title {
  font-size: 1.25rem;
  margin-bottom: 12px;
  line-height: 1.4;
}

.news-text {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 20px;
}

.news-link {
  font-size: 0.9rem;
  color: var(--primary-gold);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}

.news-link:hover {
  text-shadow: 0 0 10px rgba(212, 175, 55, 0.4);
}

/* Home Page: Features Section */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
  margin-top: 20px;
}

.feature-card {
  text-align: center;
  padding: 40px 24px;
}

.feature-icon {
  font-size: 2.5rem;
  color: var(--primary-gold);
  margin-bottom: 20px;
}

.feature-card h3 {
  font-size: 1.4rem;
  margin-bottom: 12px;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 24px;
}

/* About Page Styles */
.about-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

@media (max-width: 992px) {
  .about-wrapper {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

.about-text h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}

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

.about-quote {
  border-left: 3px solid var(--primary-gold);
  padding-left: 20px;
  margin: 30px 0;
  font-style: italic;
  color: var(--text-main);
  background: rgba(212, 175, 55, 0.03);
  padding: 20px;
  border-radius: 0 8px 8px 0;
}

.instruments-section {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-glass);
  border-bottom: 1px solid var(--border-glass);
}

.instrument-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
}

.instrument-card {
  background: rgba(255, 255, 255, 0.01);
}

.instrument-name {
  color: var(--primary-gold);
  margin-bottom: 8px;
  font-size: 1.15rem;
}

/* Achievements Page: Timeline */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  width: 2px;
  height: 100%;
  background: var(--border-glass);
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  width: 50%;
  padding: 20px 40px;
  box-sizing: border-box;
}

.timeline-item::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  background-color: var(--bg-primary);
  border: 2px solid var(--primary-gold);
  border-radius: 50%;
  top: 30px;
  z-index: 1;
}

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

.timeline-item.right {
  left: 50%;
}

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

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

.timeline-content {
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border-glass);
  border-radius: 8px;
  padding: 24px;
}

.timeline-year {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--primary-gold);
  margin-bottom: 8px;
}

.timeline-title {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

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

@media (max-width: 768px) {
  .timeline::before {
    left: 20px;
  }
  .timeline-item {
    width: 100%;
    padding-left: 50px;
    padding-right: 0;
    text-align: left !important;
  }
  .timeline-item.right {
    left: 0;
  }
  .timeline-item.left::after,
  .timeline-item.right::after {
    left: 12px;
  }
}

/* Gallery Page Grid */
.gallery-filter {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 40px;
}

.filter-btn {
  background: transparent;
  border: 1px solid var(--border-glass);
  color: var(--text-muted);
  padding: 8px 20px;
  border-radius: 20px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

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

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

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

@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
}

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

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

.gallery-item .img-container {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 0;
}

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

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(6, 9, 19, 0.8);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: var(--transition-smooth);
  padding: 20px;
  text-align: center;
  z-index: 3;
}

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

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

.gallery-overlay-title {
  color: var(--primary-gold);
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.gallery-overlay-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Lightbox Modal */
.lightbox-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(6, 9, 19, 0.95);
  backdrop-filter: blur(10px);
  z-index: 2000;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: var(--transition-smooth);
}

.lightbox-modal.open {
  display: flex;
  opacity: 1;
}

.lightbox-content {
  position: relative;
  max-width: 90%;
  max-height: 80%;
}

.lightbox-img {
  max-width: 100%;
  max-height: 80vh;
  border: 1px solid var(--border-glass);
  border-radius: 4px;
}

.lightbox-caption {
  text-align: center;
  color: var(--text-main);
  margin-top: 15px;
  font-size: 1.1rem;
}

.lightbox-close {
  position: absolute;
  top: 40px;
  right: 40px;
  color: var(--text-main);
  font-size: 2.5rem;
  cursor: pointer;
  background: none;
  border: none;
  line-height: 1;
}

/* Contact Page Form */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

@media (max-width: 992px) {
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

.contact-info-title {
  font-size: 2rem;
  margin-bottom: 16px;
}

.contact-info-desc {
  color: var(--text-muted);
  margin-bottom: 32px;
}

.contact-details-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

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

.contact-detail-icon {
  font-size: 1.5rem;
  color: var(--primary-gold);
  margin-top: 4px;
}

.contact-detail-label {
  font-weight: 600;
  margin-bottom: 4px;
}

.contact-detail-value {
  color: var(--text-muted);
  font-size: 0.95rem;
}

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

.form-label {
  display: block;
  font-weight: 500;
  font-size: 0.9rem;
  margin-bottom: 8px;
  letter-spacing: 0.05em;
}

.form-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-glass);
  border-radius: 4px;
  padding: 14px 18px;
  color: var(--text-main);
  font-family: inherit;
  font-size: 0.95rem;
  transition: var(--transition-smooth);
}

.form-input:focus {
  outline: none;
  border-color: var(--primary-gold);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.1);
}

textarea.form-input {
  resize: vertical;
  min-height: 150px;
}

/* Form success message styles */
.form-message {
  margin-top: 16px;
  padding: 12px;
  border-radius: 4px;
  display: none;
  font-size: 0.95rem;
  text-align: center;
}

.form-message.success {
  display: block;
  background: rgba(34, 197, 94, 0.1);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.2);
}

/* Staff/Admin Portal Specific Styles */
.staff-config-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 40px;
}

@media (max-width: 992px) {
  .staff-config-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

.log-console {
  background-color: #03050a;
  border: 1px solid var(--border-glass);
  border-radius: 6px;
  padding: 20px;
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.85rem;
  height: 350px;
  overflow-y: auto;
  color: #a7f3d0;
  border-left: 3px solid var(--primary-gold);
}

.log-line {
  margin-bottom: 6px;
  line-height: 1.4;
  word-break: break-all;
  border-bottom: 1px solid rgba(255,255,255,0.02);
  padding-bottom: 4px;
}

.log-line.error {
  color: #f87171;
}

.log-line.success {
  color: #34d399;
}

.log-line.info {
  color: #60a5fa;
}

/* Footer styles */
.footer {
  background: #04060d;
  border-top: 1px solid var(--border-glass);
  padding: 60px 0 30px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 40px;
  flex-wrap: wrap;
  gap: 40px;
}

.footer-brand {
  max-width: 350px;
}

.footer-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 15px;
  font-weight: 300;
}

.footer-links-group {
  display: flex;
  gap: 60px;
}

.footer-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-list-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary-gold);
  margin-bottom: 8px;
}

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

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

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.copyright {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.school-link {
  font-size: 0.85rem;
  color: var(--primary-gold);
}

@media (max-width: 768px) {
  .footer-top {
    flex-direction: column;
    gap: 30px;
  }
  .footer-links-group {
    width: 100%;
    justify-content: space-between;
    gap: 20px;
  }
}

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

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

/* View Page Toast Styles */
.view-page-toast {
  position: fixed;
  bottom: 30px;
  right: -350px;
  background: rgba(12, 17, 34, 0.95);
  border: 1px solid var(--primary-gold);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), var(--shadow-gold);
  border-radius: 8px;
  padding: 16px 24px;
  z-index: 2000;
  transition: right 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 320px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.view-page-toast.show {
  right: 30px;
}

.view-page-toast-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.4;
}

.view-page-toast-btns {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 5px;
}

.view-page-toast-btn {
  padding: 6px 14px;
  font-size: 0.8rem;
  border-radius: 4px;
}

.view-page-toast-close {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  font-size: 0.8rem;
}

.view-page-toast-close:hover {
  color: var(--text-main);
}

/* Gallery Multi-image Badge */
.img-badge {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(6, 9, 19, 0.85);
  border: 1px solid var(--border-glass-hover);
  color: var(--primary-gold);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 4px;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 5px;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

/* Lightbox Slider Controls */
.lightbox-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(6, 9, 19, 0.6);
  border: 1px solid var(--border-glass);
  color: var(--text-main);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.2rem;
  transition: var(--transition-smooth);
  z-index: 2010;
  user-select: none;
}
.lightbox-arrow:hover {
  background: var(--primary-gold);
  color: var(--bg-primary);
  border-color: var(--primary-gold);
  box-shadow: var(--shadow-gold);
}
.lightbox-arrow-left {
  left: 20px;
}
.lightbox-arrow-right {
  right: 20px;
}
.lightbox-counter {
  position: absolute;
  bottom: -35px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.1em;
}
@media (max-width: 768px) {
  .lightbox-arrow {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
  .lightbox-arrow-left { left: 10px; }
  .lightbox-arrow-right { right: 10px; }
}

/* Staff Gallery Management List Styles */
.staff-gallery-section {
  margin-top: 50px;
  border-top: 1px solid var(--border-glass);
  padding-top: 40px;
}
.staff-gallery-table-wrapper {
  overflow-x: auto;
  margin-top: 20px;
}
.staff-gallery-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.staff-gallery-th, .staff-gallery-td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border-glass);
}
.staff-gallery-th {
  color: var(--primary-gold);
  font-weight: 600;
  border-bottom: 2px solid var(--primary-gold);
  background: rgba(212, 175, 55, 0.02);
}
.staff-gallery-row:hover {
  background: rgba(255, 255, 255, 0.01);
}
.btn-delete {
  background: rgba(239, 68, 68, 0.1);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.2);
  padding: 6px 12px;
  font-size: 0.75rem;
  cursor: pointer;
  border-radius: 4px;
  transition: var(--transition-smooth);
}
.btn-delete:hover {
  background: #ef4444;
  color: var(--text-main);
  border-color: #ef4444;
  box-shadow: 0 0 15px rgba(239, 68, 68, 0.4);
}
.btn-delete:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
