/*
Theme Name: Tripura Theatre
Author: Aniket
Version: 1.0
*/
/* ==============================================
   TRIPURA THEATRE - DRAMATIC DARK THEME
============================================== */

:root {
  color-scheme: dark; /* Disables Android aggressive dark mode inversion on older phones */
  --bg-color: #000000;
  --bg-secondary: #111111;
  --bg-tertiary: #0a0a0a;
  --accent-red: #8b0000;
  --accent-blue: #1877f2;
  --accent-red-hover: #a00000;
  --accent-gold: #d4af37;
  --text-main: #f0f0f0;
  --text-muted: #cccccc;
  --text-dark: #888888;
  --font-heading: Georgia, "Times New Roman", serif;
  --font-body: system-ui, -apple-system, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--bg-color);
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  color: #ffffff;
  margin-top: 0;
}

a {
  text-decoration: none;
  color: var(--text-main);
  transition: color 0.3s;
}

a:hover {
  color: var(--accent-gold);
}

/* Header */
.site-header {
  background-color: var(--bg-secondary);
  padding: 15px 40px;
  border-bottom: 2px solid var(--accent-red);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.5);
}

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

.brand img {
  height: 50px;
  width: auto;
  display: block;
  /* Convert dark logo to solid white for the dark theme */
  filter: brightness(0) invert(1);
}

.brand h1 {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  margin: 0;
  font-size: 1.5rem;
  font-weight: bold;
  letter-spacing: 1px;
  white-space: nowrap;
}

.main-nav {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  padding-top: 10px;
  margin-left: auto;
}

.main-nav a {
  font-weight: 500;
  font-size: 1rem;
  padding: 5px 0;
}

.main-nav a.active {
  color: var(--accent-gold);
}

/* Navigation Dropdowns - Desktop */
.nav-dropdown {
  position: relative;
}

.dropdown-toggle {
  background: none;
  border: none;
  color: #e0e0e0;
  font-family: inherit;
  font-weight: 500;
  font-size: 1rem;
  padding: 5px 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color 0.3s ease;
}

.dropdown-toggle:hover {
  color: var(--accent-gold);
}

.dropdown-arrow {
  font-size: 0.8rem;
  transition: transform 0.3s ease;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: -20px;
  background-color: var(--bg-secondary);
  min-width: 200px;
  border: 1px solid #333;
  border-top: 3px solid var(--accent-red);
  border-radius: 4px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
  opacity: 0;
  visibility: hidden;
  transform: translateY(15px);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  z-index: 200;
  padding: 10px 0;
  pointer-events: none;
}

.nav-dropdown:hover .dropdown-menu,
.nav-dropdown.is-open .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.nav-dropdown:hover .dropdown-arrow,
.nav-dropdown.is-open .dropdown-arrow {
  transform: rotate(180deg);
}

.dropdown-menu a {
  display: block;
  padding: 12px 20px;
  font-size: 0.95rem;
  color: #ccc;
  transition:
    background 0.3s,
    color 0.3s,
    padding-left 0.3s;
}

.dropdown-menu a:hover,
.dropdown-menu a.active {
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--accent-gold);
  padding-left: 25px;
}

/* Sections */
.section-container {
  padding: 100px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  text-align: center;
  margin-bottom: 60px;
}

.section-title h2 {
  font-size: 2.5rem;
  color: var(--accent-gold);
  margin-bottom: 15px;
}

.section-divider {
  height: 3px;
  width: 60px;
  background-color: var(--accent-red);
  margin: 0 auto;
}

/* Footer */
.site-footer {
  background-color: var(--bg-tertiary);
  border-top: 3px solid var(--accent-red);
  padding: 80px 20px 40px 20px;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: space-between;
}

.footer-column {
  flex: 1 1 300px;
}

.footer-column h3 {
  font-size: 1.8rem;
  margin-bottom: 20px;
}

.footer-column h4 {
  font-size: 1.2rem;
  color: var(--accent-gold);
  margin-bottom: 15px;
  border-bottom: 1px solid #333;
  padding-bottom: 10px;
  display: inline-block;
}

.footer-column p,
.footer-column li {
  color: var(--text-muted);
  margin-bottom: 10px;
}

.footer-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.copyright-bar {
  max-width: 1200px;
  margin: 60px auto 0 auto;
  padding-top: 20px;
  border-top: 1px solid #222;
  text-align: center;
  color: #666666;
  font-size: 0.9rem;
}

.copyright-bar .site-credit {
  margin-top: 8px;
  color: #8a8a8a;
  font-size: 0.85rem;
  letter-spacing: 0.2px;
}

.copyright-bar .site-credit strong {
  color: #c9c9c9;
  font-weight: 600;
}

.copyright-bar .site-credit a {
  color: var(--accent-gold);
  text-decoration: none;
  border-bottom: 1px dotted var(--accent-gold);
  padding-bottom: 1px;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.copyright-bar .site-credit a:hover {
  color: #ffffff;
  border-bottom-color: #ffffff;
}

/* Buttons */
.btn-primary {
  display: inline-block;
  background-color: var(--accent-red);
  color: #ffffff;
  padding: 14px 32px;
  font-size: 1.1rem;
  font-weight: bold;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 1px;
  border: 1px solid var(--accent-red-hover);
  transition: background-color 0.3s;
}

.btn-primary:hover {
  background-color: var(--accent-red-hover);
  color: #ffffff;
}

/* Utilities */
.grid-container {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
}

.contact-card {
  background-color: var(--bg-secondary);
  padding: 40px;
  border-radius: 8px;
  border: 1px solid #333;
  flex: 1 1 300px;
  text-align: center;
  border-top: 4px solid var(--accent-red);
}
.contact-icon {
  font-size: 2.5rem;
  color: var(--accent-gold);
  margin-bottom: 20px;
}

/* Recent Acts Cards */
.recent-act-card {
  background-color: var(--bg-secondary);
  border: 1px solid #222;
  border-radius: 8px;
  overflow: hidden;
  flex: 1 1 300px;
  max-width: 380px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
  transition:
    transform 0.3s,
    box-shadow 0.3s;
}
.recent-act-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 20px rgba(139, 0, 0, 0.3);
  border-bottom: 3px solid var(--accent-red);
}
.act-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  border-bottom: 2px solid var(--accent-gold);
  filter: brightness(0.9);
  transition: filter 0.3s;
}
.recent-act-card:hover .act-img {
  filter: brightness(1.1);
}
.act-content {
  padding: 25px;
}
.act-title {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  color: #ffffff;
  margin-bottom: 10px;
}
.act-title--with-label {
  margin-bottom: 2px;
}
.act-label {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 10px;
  font-style: italic;
}
.act-desc {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.6;
  margin: 0;
}

/* Upcoming Section */
.upcoming-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 20px 40px 20px; /* Removed top padding to shrink gap */
}

.upcoming-frame {
  position: relative;
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start; /* Allow staggered vertical positioning */
  gap: 40px;
  width: auto;
  max-width: 1050px;
  text-align: left;
  padding: 40px;
}
@media (max-width: 768px) {
  .upcoming-frame {
    padding: 15px;
  }
}

.upcoming-card {
  flex: 1 1 300px;
  max-width: 470px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 24px;
  overflow: hidden;
  box-shadow:
    0 8px 30px rgba(0, 0, 0, 0.5),
    0 0 15px rgba(255, 255, 255, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.08); /* Subtle top-edge highlight */
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Staggered layout — left card (featured) sits higher, right card lower */
.upcoming-card-featured {
  border: 1px solid rgba(212, 175, 55, 0.35);
  box-shadow:
    0 8px 30px rgba(0, 0, 0, 0.5),
    0 0 20px rgba(212, 175, 55, 0.12),
    0 0 50px rgba(212, 175, 55, 0.05),
    inset 0 1px 0 rgba(212, 175, 55, 0.15);
  transform: translateY(-30px);
}
.upcoming-card:not(.upcoming-card-featured) {
  transform: translateY(30px);
}

.upcoming-card:hover {
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow:
    0 15px 50px rgba(0, 0, 0, 0.6),
    0 0 25px rgba(255, 255, 255, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
.upcoming-card-featured:hover {
  border-color: rgba(212, 175, 55, 0.5);
  box-shadow:
    0 15px 50px rgba(0, 0, 0, 0.6),
    0 0 30px rgba(212, 175, 55, 0.18),
    0 0 60px rgba(212, 175, 55, 0.08),
    inset 0 1px 0 rgba(212, 175, 55, 0.2);
  transform: translateY(-40px);
}
.upcoming-card:not(.upcoming-card-featured):hover {
  transform: translateY(20px);
}

/* Reset stagger on mobile where cards stack vertically */
@media (max-width: 768px) {
  .upcoming-card-featured,
  .upcoming-card:not(.upcoming-card-featured) {
    transform: none;
  }
  .upcoming-card-featured:hover,
  .upcoming-card:not(.upcoming-card-featured):hover {
    transform: translateY(-8px);
  }
}

.upcoming-card-img-wrapper {
  background: #000;
  padding: 12px;
}

.upcoming-card-img {
  width: 100%;
  height: auto;
  max-height: 700px;
  object-fit: contain;
  border-radius: 16px;
  display: block;
  transition: transform 0.5s ease;
}

.upcoming-card:hover .upcoming-card-img {
  transform: scale(1.02);
}

.upcoming-card-content {
  padding: 18px 20px;
  background: #f5f0e8; /* Warm cream — complements gold/dark palette */
  border-top: 1px solid rgba(212, 175, 55, 0.15);
}

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

.upcoming-card-title {
  color: #1a1a1a;
  font-size: 16px;
  font-weight: 600;
}

.upcoming-card-badge {
  color: #8b6914;
  font-size: 13px;
  font-weight: 600;
}

.upcoming-card-divider {
  width: 60px;
  height: 3px;
  margin-top: 12px;
  border-radius: 20px;
  background: linear-gradient(90deg, var(--accent-red), var(--accent-gold));
}

.upcoming-card-cta {
  display: inline-block;
  margin-top: 14px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: #8b6914;
  transition: color 0.3s ease;
}
.upcoming-card-cta .cta-arrow {
  display: inline-block;
  margin-left: 4px;
  transition: transform 0.3s ease;
}
.upcoming-card-featured:hover .upcoming-card-cta {
  color: #1a1a1a;
}
.upcoming-card-featured:hover .cta-arrow {
  transform: translateX(5px);
}

.chevron {
  position: absolute;
  width: 60px;
  height: 60px;
}

.chevron span {
  position: absolute;
  display: block;
  width: 30px;
  height: 30px;
  border: solid var(--accent-gold);
  border-width: 4px 0 0 4px;
}

.chevron.top-left {
  top: -15px;
  left: -15px;
}
.chevron.top-left span:nth-child(1) {
  top: 0;
  left: 0;
}
.chevron.top-left span:nth-child(2) {
  top: 12px;
  left: 12px;
}

.chevron.bottom-right {
  bottom: -15px;
  right: -15px;
  transform: rotate(180deg);
}
.chevron.bottom-right span:nth-child(1) {
  top: 0;
  left: 0;
}
.chevron.bottom-right span:nth-child(2) {
  top: 12px;
  left: 12px;
}

/* Service Info Cards */
.service-card {
  background-color: var(--bg-secondary);
  border: 1px solid #222;
  border-radius: 6px;
  padding: 40px 30px;
  text-align: center;
  flex: 1 1 300px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.4);
  transition:
    transform 0.3s,
    border-color 0.3s;
}
.service-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent-gold);
}
.service-icon {
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: var(--accent-red);
}
.service-card h3 {
  font-size: 1.5rem;
  color: var(--accent-gold);
  margin-bottom: 15px;
}

/* Team Member Card (Design 1 Implementation) */
.team-member-card {
  background-color: var(--bg-secondary);
  border: 1px solid #333;
  border-radius: 4px;
  overflow: hidden;
  flex: 1 1 280px;
  max-width: 340px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.6);
  transition: transform 0.3s;
}
.team-member-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 15px rgba(212, 175, 55, 0.15); /* Subdued gold shadow */
  border-color: var(--accent-gold);
}
.team-img-wrapper {
  width: 100%;
  aspect-ratio: 1; /* Pure square for dramatic portraits */
  overflow: hidden;
  background-color: #050505; /* Fallback */
}
.team-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(80%) sepia(20%) brightness(0.9); /* Vintage/theatrical vibe */
  transition:
    filter 0.4s ease,
    transform 0.4s ease;
}
.team-member-card:hover .team-img-wrapper img {
  filter: grayscale(0%) sepia(0%) brightness(1);
  transform: scale(1.05); /* Slight zoom */
}
.team-info {
  background-color: #0c0c0c;
  padding: 20px 15px;
  text-align: center;
  border-top: 3px solid var(--accent-red);
}
.team-info h3 {
  font-size: 1.4rem;
  margin-bottom: 5px;
  color: #fff;
  letter-spacing: 0.5px;
}
.team-info .role {
  color: var(--accent-gold);
  font-weight: bold;
  font-size: 0.95rem;
  text-transform: uppercase;
  margin: 0;
  letter-spacing: 1px;
}
.team-note {
  text-align: center;
  max-width: 800px;
  margin: 50px auto 0 auto;
  color: var(--text-dark);
  font-size: 1.05rem;
  font-style: italic;
}

.play-item {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  background-color: var(--bg-secondary);
  padding: 30px;
  border-radius: 4px;
  margin-bottom: 20px;
  border-left: 4px solid var(--accent-gold);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}
.play-item:hover {
  transform: translateX(5px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}
.play-item.red-border {
  border-left-color: var(--accent-red);
}
.play-item-info {
  flex: 1 1 250px;
}
.play-item-desc {
  flex: 2 1 400px;
  color: #dddddd;
  line-height: 1.6;
}
.play-item h3 {
  font-size: 1.8rem;
  margin-bottom: 10px;
  font-family: var(--font-heading);
  color: #ffffff;
}
.play-item .genre {
  color: var(--accent-red);
  font-weight: bold;
  margin-bottom: 10px;
  font-size: 0.9rem;
  text-transform: uppercase;
}
.play-item .genre.gold-text {
  color: var(--accent-gold);
}

/* Journal Cards */
.journal-link {
  flex: 1 1 200px;
  max-width: 250px;
  text-decoration: none;
}
.journal-card {
  background-color: var(--bg-secondary);
  border: 1px solid #333;
  padding: 20px;
  border-radius: 4px;
  text-align: center;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.5);
  transition:
    transform 0.3s ease,
    border-color 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.journal-link:hover .journal-card {
  transform: translateY(-5px);
  border-color: var(--accent-gold);
}
.production-card {
  background-color: var(--bg-secondary);
  border: 1px solid #222;
  padding: 30px;
  border-radius: 8px;
  margin-bottom: 20px;
  border-left: 4px solid var(--accent-red);
  transition:
    transform 0.3s,
    box-shadow 0.3s;
}
.production-card:hover {
  transform: translateX(5px);
  box-shadow: 0 4px 15px rgba(139, 0, 0, 0.2);
}
.production-title {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  color: #ffffff;
  margin-bottom: 5px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.production-meta {
  color: var(--accent-gold);
  font-weight: bold;
  font-size: 0.9rem;
  text-transform: uppercase;
  margin-bottom: 15px;
  letter-spacing: 1px;
}
.production-desc {
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}
.poster-img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  margin-top: 20px;
  border: 1px solid #333;
}
/* Aim Card Details */
.aim-card {
  background-color: var(--bg-secondary);
  border: 1px solid #222;
  padding: 50px 40px;
  border-radius: 8px;
  max-width: 900px;
  margin: 0 auto;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
  border-left: 4px solid var(--accent-gold);
  text-align: center;
}
.aim-primary-text {
  font-size: 1.25rem;
  color: var(--text-main);
  line-height: 1.8;
  margin-bottom: 25px;
}
.aim-secondary-text {
  font-size: 1.15rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin: 0;
}
/* About Journal Page Details */
.journal-about-layout {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: flex-start;
}
.journal-about-card {
  flex: 1 1 500px;
  background-color: var(--bg-secondary);
  padding: 40px;
  border-radius: 8px;
  border: 1px solid #222;
  border-left: 4px solid var(--accent-red);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}
.journal-about-title {
  font-size: 1.8rem;
  color: var(--accent-gold);
  margin-bottom: 5px;
}
.journal-about-issn {
  color: var(--text-muted);
  font-weight: bold;
  font-family: monospace;
  letter-spacing: 1px;
  margin-bottom: 25px;
}
.journal-about-text {
  color: var(--text-main);
  line-height: 1.8;
  font-size: 1.1rem;
  margin-bottom: 20px;
}
.journal-about-list {
  color: var(--text-muted);
  line-height: 1.8;
  font-size: 1.05rem;
  margin-bottom: 20px;
  padding-left: 20px;
}
.journal-about-list li {
  margin-bottom: 10px;
}
.journal-about-recognition {
  background-color: var(--bg-tertiary);
  padding: 15px 20px;
  border-left: 3px solid var(--accent-gold);
  border-radius: 0 4px 4px 0;
  margin-top: 30px;
}
.journal-about-recognition p {
  color: var(--text-main);
  margin: 0;
  font-size: 0.95rem;
}
.journal-about-sidebar {
  flex: 1 1 300px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.journal-about-image-card {
  background-color: var(--bg-secondary);
  border: 1px solid #333;
  padding: 15px;
  border-radius: 8px;
  text-align: center;
}
.journal-about-img {
  max-width: 100%;
  border-radius: 4px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.8);
}
.journal-about-img-caption {
  color: var(--accent-gold);
  margin: 15px 0 0 0;
  font-style: italic;
  font-size: 0.9rem;
}
.gallery-section {
  margin-bottom: 60px;
}
.gallery-heading {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  color: var(--accent-gold);
  margin-bottom: 20px;
  border-bottom: 1px solid #333;
  padding-bottom: 10px;
  display: inline-block;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 15px;
}
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  background-color: var(--bg-secondary);
  border: 1px solid #222;
}
.gallery-img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
  transition:
    transform 0.4s ease,
    filter 0.4s ease;
  filter: brightness(0.85);
}
.gallery-item:hover .gallery-img {
  transform: scale(1.08);
  filter: brightness(1.1);
}
.gallery-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
  padding: 20px 15px 10px;
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}
.gallery-item:hover .gallery-overlay {
  opacity: 1;
}
.view-icon {
  color: #fff;
  font-size: 1.2rem;
  text-align: right;
}
.info-card {
  background-color: var(--bg-secondary);
  border: 1px solid #222;
  padding: 40px;
  border-radius: 8px;
  margin-bottom: 40px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}
.info-card h3 {
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--accent-gold);
  border-bottom: 2px solid var(--accent-red);
  padding-bottom: 10px;
  margin-bottom: 20px;
  display: inline-block;
}
.info-content {
  color: var(--text-muted);
  line-height: 1.8;
  font-size: 1.1rem;
}
.info-content ul {
  margin-top: 10px;
  margin-bottom: 20px;
  padding-left: 20px;
}
.info-content li {
  margin-bottom: 10px;
}
.info-subsection {
  margin-top: 30px;
  padding: 25px 30px;
  background-color: rgba(255, 255, 255, 0.02);
  border-left: 3px solid var(--accent-gold);
  border-radius: 0 6px 6px 0;
}
.info-subsection p {
  margin: 0;
}
.info-subsection-title {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: var(--accent-gold);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
  display: inline-block;
}
.info-image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 30px;
}
.info-image-grid img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid #333;
  transition: transform 0.3s;
}
.info-image-grid img:hover {
  transform: scale(1.03);
  border-color: var(--accent-gold);
}
.members-list {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 20px;
}
.member-badge {
  background-color: var(--bg-tertiary);
  border: 1px solid #333;
  padding: 8px 16px;
  border-radius: 4px; /* Changed from 20px to prevent border clipping */
  color: var(--text-main);
  font-size: 0.95rem;
  border-left: 3px solid var(--accent-red);
}
.issue-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 40px;
  margin-top: 100px; /* Space for protruding 3D books */
}
.issue-card {
  background-color: var(--bg-secondary);
  border: 1px solid #333;
  border-radius: 12px;
  padding: 130px 20px 25px 20px; /* Massive top padding to leave room for the book resting on it */
  margin-top: 60px; /* Space to prevent cutting off the absolute positioned book above */
  text-align: center;
  box-shadow:
    inset 0 2px 5px rgba(255, 255, 255, 0.03),
    0 4px 15px rgba(0, 0, 0, 0.6);
  border-bottom: 4px solid var(--accent-red);
  transition:
    transform 0.3s,
    border-color 0.3s;
  position: relative; /* Anchor for the book */
}
.issue-card:hover {
  transform: translateY(-5px);
  border-bottom-color: var(--accent-gold);
}
.issue-cover {
  position: absolute;
  top: -80px; /* Pushed up above the card background */
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 170px;
  height: auto;
  aspect-ratio: 2/3;
  object-fit: cover;
  border-radius: 4px 10px 10px 4px; /* Book edge geometry */
  background-color: #111;
  border: none;
  border-left: 10px solid #080808; /* Dark binding spine */
  box-shadow:
    -6px 0 10px rgba(0, 0, 0, 0.6) inset,
    /* Inside groove depth */ 2px 0 2px rgba(255, 255, 255, 0.1) inset,
    /* Paper reflection highlight */ 12px 15px 25px rgba(0, 0, 0, 0.85); /* Heavy 3D Cast Shadow over the container */
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  z-index: 10;
}
.issue-card:hover .issue-cover {
  /* Dynamic 3D tilt out on hover */
  transform: translateX(-50%) perspective(1000px) rotateY(-10deg) scale(1.05);
}
.issue-title {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: #ffffff;
  margin-bottom: 5px;
}
.issue-year {
  color: var(--accent-gold);
  font-weight: bold;
  margin-bottom: 20px;
}
.btn-download {
  display: inline-block;
  background-color: #111111;
  color: var(--text-main);
  padding: 10px 24px;
  font-size: 0.95rem;
  font-weight: bold;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 1px;
  border: 1px solid var(--accent-red);
  transition: all 0.3s;
  text-decoration: none;
}
.btn-download:hover {
  background-color: var(--accent-red);
  color: #ffffff;
  box-shadow: 0 4px 10px rgba(139, 0, 0, 0.4);
}
.policy-container {
  max-width: 900px;
  margin: 0 auto;
  background-color: var(--bg-secondary);
  padding: 50px 40px;
  border-radius: 8px;
  border: 1px solid #222;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}
.policy-section {
  margin-bottom: 40px;
}
.policy-section:last-child {
  margin-bottom: 0;
}
.policy-section h3 {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  color: var(--accent-gold);
  border-bottom: 1px solid #333;
  padding-bottom: 10px;
  margin-bottom: 20px;
}
.policy-section p,
.policy-section li {
  color: var(--text-muted);
  line-height: 1.8;
  font-size: 1.1rem;
  margin-bottom: 15px;
}
.policy-section ul,
.policy-section ol {
  margin-bottom: 20px;
  padding-left: 20px;
}
.highlight-box {
  background-color: rgba(139, 0, 0, 0.1);
  border-left: 4px solid var(--accent-red);
  padding: 15px 20px;
  margin: 20px 0;
  border-radius: 0 4px 4px 0;
}
.highlight-box p {
  margin: 0;
  color: var(--text-main);
  font-weight: bold;
}
.cfp-container {
  max-width: 800px;
  margin: 0 auto;
  background-color: var(--bg-secondary);
  padding: 50px;
  border-radius: 8px;
  border: 1px solid #222;
  border-top: 5px solid var(--accent-red);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.6);
  text-align: center;
}
.cfp-title {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  color: var(--accent-gold);
  margin-bottom: 10px;
}
.cfp-subtitle {
  color: var(--text-muted);
  font-family: monospace;
  letter-spacing: 2px;
  margin-bottom: 30px;
  border-bottom: 1px dashed #444;
  padding-bottom: 20px;
}
.cfp-details {
  text-align: left;
  background-color: var(--bg-main);
  padding: 30px;
  border-radius: 6px;
  border-left: 3px solid var(--accent-gold);
  margin-bottom: 30px;
}
.cfp-details ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.cfp-details li {
  margin-bottom: 15px;
  font-size: 1.1rem;
  color: var(--text-main);
  display: flex;
  align-items: flex-start;
  gap: 15px;
}
.cfp-details li strong {
  color: var(--accent-gold);
  min-width: 140px;
  display: inline-block;
}
.deadline-box {
  background: linear-gradient(135deg, #111 0%, #2a0000 100%);
  border: 1px solid var(--accent-red);
  padding: 20px;
  border-radius: 6px;
  margin-bottom: 30px;
}
.deadline-text {
  color: #fff;
  font-size: 1.3rem;
  font-weight: bold;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.deadline-date {
  color: var(--accent-gold);
  font-family: var(--font-heading);
  font-size: 1.5rem;
}
.btn-policy {
  display: inline-block;
  background-color: var(--accent-red);
  color: #fff;
  padding: 12px 30px;
  font-size: 1.05rem;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 4px;
  text-decoration: none;
  transition: all 0.3s;
  border: 1px solid transparent;
}
.btn-policy:hover {
  background-color: transparent;
  border-color: var(--accent-red);
  color: var(--accent-red);
}
/* Accordion Styles */
.accordion-container {
  max-width: 900px;
  margin: 0 auto 60px auto;
}
details {
  background-color: var(--bg-secondary);
  border: 1px solid #222;
  border-radius: 6px;
  margin-bottom: 15px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
  transition: all 0.3s ease;
}
details[open] {
  border-color: #444;
  box-shadow: 0 5px 15px rgba(212, 175, 55, 0.1);
}
summary {
  background-color: #111;
  color: var(--accent-gold);
  padding: 20px 60px 20px 25px; /* Added right padding for + icon */
  font-family: var(--font-heading);
  font-size: 1.4rem;
  line-height: 1.4; /* Help with multi-line wrap */
  cursor: pointer;
  border-left: 4px solid var(--accent-red);
  list-style: none;
  position: relative;
  transition: background-color 0.3s;
}
summary::-webkit-details-marker {
  display: none;
}
summary:hover {
  background-color: #1a1a1a;
}
summary::after {
  content: "+";
  position: absolute;
  right: 25px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.8rem;
  color: var(--text-muted);
  transition: transform 0.3s;
}
details[open] summary::after {
  content: "-";
  color: var(--accent-red);
}
details[open] summary {
  border-bottom: 1px solid #333;
}
.details-content {
  padding: 30px 25px;
  color: var(--text-muted);
  line-height: 1.8;
  font-size: 1.05rem;
  animation: fadeIn 0.4s ease-in-out;
}
.details-content p {
  margin-bottom: 15px;
}
.details-content p:last-child {
  margin-bottom: 0;
}
.details-content strong {
  color: var(--text-main);
}
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* Embedded Gallery Styles */
.festival-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
  margin-top: 25px;
  border-top: 1px dashed #444;
  padding-top: 25px;
}
.festival-gallery img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid #333;
  transition:
    transform 0.3s,
    box-shadow 0.3s;
}
.festival-gallery img:hover {
  transform: scale(1.05);
  border-color: var(--accent-gold);
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
  z-index: 10;
  position: relative;
}

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

/* Responsive Hamburger Menu */
.menu-toggle {
  display: none; /* Hidden on desktop */
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 10px;
  z-index: 101;
  -webkit-appearance: none; /* Fixes mobile button default colors */
  appearance: none;
}

.hamburger {
  display: block;
  position: relative;
  width: 30px;
  height: 3px;
  background: linear-gradient(
    to right,
    #ffffff,
    #ffffff
  ) !important; /* Force true white by using a gradient so Android dark mode engines don't invert it */
  transition: background 0.3s ease;
  border-radius: 2px;
}

.hamburger::before,
.hamburger::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 3px;
  background: linear-gradient(to right, #ffffff, #ffffff) !important;
  transition:
    transform 0.3s ease,
    top 0.3s ease;
  left: 0;
  border-radius: 2px;
}

.hamburger::before {
  top: -8px;
}
.hamburger::after {
  top: 8px;
}

/* Active (X) state for hamburger */
.menu-toggle[aria-expanded="true"] .hamburger {
  background: transparent !important;
}
.menu-toggle[aria-expanded="true"] .hamburger::before {
  transform: rotate(45deg);
  top: 0;
}
.menu-toggle[aria-expanded="true"] .hamburger::after {
  transform: rotate(-45deg);
  top: 0;
}
/* ==============================================
   TEAM SCATTER SECTION
============================================== */
.team-scatter-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 30px;
  max-width: 1000px;
  margin: 0 auto;
  padding: 40px 20px;
}

.team-scatter-wrapper--featured-first-row {
  flex-direction: column;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 30px;
}

.team-feature-row,
.team-card-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 30px;
  width: 100%;
}

.team-card {
  background-color: #f7f7f7;
  padding: 12px 12px 25px 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.6);
  border-radius: 4px;
  width: 220px;
  transition:
    transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275),
    box-shadow 0.4s ease,
    z-index 0s;
  z-index: 1;
}

.team-card:hover {
  transform: scale(1.15) rotate(0) translateY(-10px) !important;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.9);
  z-index: 10;
}

.polaroid-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-bottom: 2px solid #ddd;
  background-color: #222;
}

.polaroid-body {
  text-align: center;
  padding-top: 15px;
  color: #111;
}

.polaroid-body h3 {
  font-family: inherit;
  font-size: 1.2rem;
  margin: 0 0 5px 0;
  font-weight: 800;
  color: #111;
}

.polaroid-body p {
  font-size: 0.95rem;
  color: #444;
  margin: 0;
}

/* Make them scattered using nth-child */
.team-card:nth-child(even) {
  transform: rotate(5deg) translateY(10px);
}
.team-card:nth-child(odd) {
  transform: rotate(-3deg) translateY(-5px);
}
.team-card:nth-child(3n) {
  transform: rotate(-6deg) translateY(20px);
}
.team-card:nth-child(4n) {
  transform: rotate(4deg) translateY(-15px);
}
.team-card:nth-child(5n) {
  transform: rotate(-2deg) translateY(15px);
}
/* ==============================================
   PUBLISHED ISSUES 3D SECTION
============================================== */
.issues-3d-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-end;
  gap: 60px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

.issue-3d-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 25px;
  width: 250px;
}

.issues-actions {
  margin-top: 20px;
  text-align: center;
}

/* 3D Container */
.book-container {
  perspective: 1000px;
  width: 180px;
  height: 250px;
  cursor: pointer;
  margin-bottom: 10px;
}

/* The Book Element */
.book-3d {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transform: rotateY(-25deg);
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  /* shadow underneath that moves */
  box-shadow:
    -15px 25px 20px rgba(0, 0, 0, 0.9),
    inset -2px 0 5px rgba(0, 0, 0, 0.1);
  border-radius: 2px 6px 6px 2px;
}

.book-container:hover .book-3d {
  transform: rotateY(-5deg) translateY(-8px);
  box-shadow:
    -5px 35px 30px rgba(0, 0, 0, 0.95),
    inset -2px 0 5px rgba(0, 0, 0, 0.1);
}

/* Base Cover Image */
.book-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  border-radius: 2px 6px 6px 2px;
  z-index: 2;
  border: 1px solid rgba(255, 255, 255, 0.1);
  backface-visibility: hidden;
}

/* Simulated Spine using pseudo element */
.book-3d::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 20px;
  height: 100%;
  background: linear-gradient(to right, #222, #444 40%, #111);
  transform: translateX(-100%) rotateY(-90deg);
  transform-origin: right;
  border-radius: 2px 0 0 2px;
  z-index: 1;
}

/* Pages effect (right side thickness) */
.book-3d::after {
  content: "";
  position: absolute;
  top: 1%;
  right: -5px;
  width: 5px;
  height: 98%;
  background: #fff;
  transform: rotateY(90deg);
  transform-origin: left;
  border-radius: 0 4px 4px 0;
  z-index: 1;
}

/* Metadata Text */
.issue-meta {
  text-align: center;
}

.issue-book-title {
  color: #fff;
  font-family: "Georgia", serif;
  font-size: 1.25rem;
  margin: 0 0 15px 0;
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* Pill Button Outline matching sketch */
.btn-pill-download {
  display: inline-block;
  background-color: transparent;
  color: #fff;
  font-family: system-ui, sans-serif;
  font-weight: 500;
  font-size: 0.9rem;
  padding: 8px 24px;
  border: 2px solid #fff;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.3s ease;
  letter-spacing: 0.5px;
}

.btn-pill-download:hover {
  background-color: #fff;
  color: #000;
  transform: scale(1.05);
}

/* Mobile/Tablet Media Query (under 1100px for iPads/Tablets/Phones) */
@media (max-width: 1500px) {
  .site-header {
    padding: 15px 20px;
  }

  .menu-toggle {
    display: block;
    margin-left: auto;
  }

  .main-nav {
    position: fixed;
    top: 82px; /* Precise header height for tablets */
    left: -100%;
    width: 100%;
    height: calc(100vh - 82px); /* Fallback for older browsers */
    height: calc(
      100dvh - 82px
    ); /* Dynamic viewport for modern mobile (fixes iOS Safari cutoff) */
    background-color: var(--bg-secondary);
    display: block; /* Use block to fix mobile browser padding-bottom flex bugs */
    padding-top: 10px;
    padding-bottom: 150px; /* Force extra scroll space at the bottom */
    transition: left 0.4s ease;
    overflow-y: auto;
    z-index: 100;
  }

  .main-nav.is-open {
    left: 0;
  }

  .main-nav a {
    display: block;
    margin: 0 30px; /* Aligns borders precisely 30px from screen edges */
    font-size: 1.25rem;
    padding: 22px 0; /* Huge touch targets */
    width: auto;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06); /* Highly elegant translucent border */
    color: #e0e0e0;
    transition: all 0.3s ease;
    letter-spacing: 1px;
    font-weight: 500;
  }

  .main-nav a.active {
    color: var(--accent-gold);
    font-weight: bold;
    border-bottom-color: rgba(
      212,
      175,
      55,
      0.2
    ); /* Subtle gold anchor line for active item */
  }

  .main-nav a:hover {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.02); /* Slight highlight */
  }

  .nav-dropdown {
    width: 100%;
  }

  .dropdown-toggle {
    display: flex;
    justify-content: center;
    margin: 0 30px;
    font-size: 1.25rem;
    padding: 22px 0;
    width: calc(100% - 60px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    color: #e0e0e0;
  }

  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    pointer-events: auto;
    background-color: #0a0a0a;
    box-shadow: inset 0 5px 15px rgba(0, 0, 0, 0.8);
    display: none;
    border: none;
    padding: 10px 0;
    border-radius: 0;
  }

  .nav-dropdown.is-open .dropdown-menu {
    display: block;
  }

  .nav-dropdown.is-open .dropdown-arrow {
    transform: rotate(180deg);
    color: var(--accent-gold);
  }

  .nav-dropdown.is-open .dropdown-toggle {
    color: var(--accent-gold);
  }

  .dropdown-menu a {
    margin: 0 40px;
    padding: 15px 0;
    font-size: 1.1rem;
    border-bottom: 1px dotted rgba(255, 255, 255, 0.1);
  }

  .dropdown-menu a:last-child {
    border-bottom: none;
  }

  .dropdown-menu a:hover,
  .dropdown-menu a.active {
    padding-left: 0;
  }

  .main-nav > a:last-child {
    border-bottom: none;
  }
}

/* Home Carousel Animation */
.hp-carousel-card {
  flex: 0 0 350px;
  width: 350px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 24px;
  overflow: hidden;
  box-shadow:
    0 8px 30px rgba(0, 0, 0, 0.5),
    0 0 15px rgba(255, 255, 255, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.hp-carousel-card:hover {
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow:
    0 15px 50px rgba(0, 0, 0, 0.6),
    0 0 25px rgba(255, 255, 255, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  transform: translateY(-4px);
}

.hp-carousel-img-wrapper {
  background: #000;
  padding: 10px;
}

.hp-carousel-img {
  width: 100%;
  height: 210px;
  object-fit: cover;
  border-radius: 16px;
  display: block;
  transition: transform 0.5s ease;
}

.hp-carousel-card:hover .hp-carousel-img {
  transform: scale(1.02);
}

.hp-carousel-card-content {
  padding: 14px 16px;
  background: #f5f0e8;
  border-top: 1px solid rgba(212, 175, 55, 0.15);
}

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

.hp-carousel-card-title {
  color: #1a1a1a;
  font-size: 15px;
  font-weight: 600;
}

.hp-carousel-card-divider {
  width: 54px;
  height: 3px;
  margin-top: 10px;
  border-radius: 20px;
  background: linear-gradient(90deg, var(--accent-red), var(--accent-gold));
}

@keyframes scrollLeft {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(calc(-50% - 10px));
  }
}

/* ==============================================
   GALLERY PAGE STYLES (CAROUSEL & GRID)
============================================== */
.gallery-section {
  margin-bottom: 70px;
}
.gallery-heading {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  color: var(--accent-gold);
  margin-bottom: 20px;
  border-bottom: 1px solid #333;
  padding-bottom: 10px;
  display: inline-block;
}

/* Gallery Carousel Wrapper */
.carousel-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  margin: 0 -15px; /* Offset side buttons */
}

/* Gallery Horizontal Scroll Track */
.gallery-track {
  display: flex;
  gap: 15px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  padding: 10px 15px;
  -ms-overflow-style: none; /* IE and Edge */
  scrollbar-width: none; /* Firefox */
}
.gallery-track::-webkit-scrollbar {
  display: none; /* Chrome, Safari and Opera */
}

/* Individual Image Card in Gallery */
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  background-color: var(--bg-secondary);
  border: 1px solid #222;
  flex: 0 0 300px; /* Fixed width for carousel items */
  scroll-snap-align: start;
}

@media (max-width: 600px) {
  .gallery-item {
    flex: 0 0 85vw; /* Adjust for mobile view */
  }
}

.gallery-img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
  transition:
    transform 0.4s ease,
    filter 0.4s ease;
  filter: brightness(0.85);
}
.gallery-item:hover .gallery-img {
  transform: scale(1.08);
  filter: brightness(1.1);
}

.gallery-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
  padding: 20px 15px 10px;
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}
.gallery-item:hover .gallery-overlay {
  opacity: 1;
}
.view-icon {
  color: #fff;
  font-size: 1.2rem;
  text-align: right;
}

/* Carousel Arrow Buttons */
.carousel-btn {
  background-color: rgba(20, 20, 20, 0.8);
  color: var(--accent-gold);
  border: 1px solid #333;
  border-radius: 50%;
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.2rem;
  position: absolute;
  z-index: 10;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}
.carousel-btn:hover {
  background-color: var(--accent-red);
  color: #fff;
  border-color: var(--accent-red);
  transform: scale(1.1);
}
.prev-btn {
  left: 0;
  transform: translateX(-30%);
}
.next-btn {
  right: 0;
  transform: translateX(30%);
}

/* Hide arrows on touch devices (users can just swipe) */
@media (hover: none) and (pointer: coarse) {
  .carousel-btn {
    display: none;
  }
  .carousel-wrapper {
    margin: 0;
  }
}

/* ==============================================
   INLINE STYLES REFACTOR
============================================== */
.pb-80 {
  padding-bottom: 80px;
}
.pb-40 {
  padding-bottom: 40px;
}

.section-intro {
  color: var(--text-muted);
  max-width: 700px;
  margin: 20px auto 30px auto;
  font-style: italic;
}
.section-intro strong {
  color: var(--text-main);
}
.policy-link {
  color: var(--accent-gold);
  text-decoration: underline;
}
.cfp-intro-text {
  color: var(--text-muted);
  font-size: 1.15rem;
  line-height: 1.6;
  margin-bottom: 30px;
}
.cfp-footer-text {
  color: var(--text-muted);
  margin-bottom: 25px;
  font-size: 0.95rem;
}
.cfp-link {
  color: #fff;
  text-decoration: underline;
}
.contact-card-title {
  margin-bottom: 15px;
}
.contact-card-text {
  color: var(--text-muted);
}
.gallery-footer {
  text-align: center;
  margin-top: 40px;
}
.gallery-footer-text {
  color: var(--text-dark);
  font-size: 0.95rem;
}

/* ==============================================
   EVENTS PAGE
============================================== */
.play-item-mention {
  padding: 20px 30px;
  background-color: #050505;
  text-align: center;
  justify-content: center;
  border-left: none;
  margin-top: 10px;
}
.play-item-mention p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin: 0;
}
.play-item-mention strong {
  color: var(--text-main);
}
.bg-tertiary-section {
  background-color: var(--bg-tertiary);
  max-width: 100%;
  border-top: 1px solid #222;
}
.content-wrapper-1200 {
  max-width: 1200px;
  margin: 0 auto;
}
.journal-icon {
  font-size: 3rem;
  color: var(--accent-red);
  margin-bottom: 15px;
}
.journal-link-disabled {
  pointer-events: none;
}
.journal-card-empty {
  border-style: dashed;
  background-color: transparent;
}
.journal-card-empty p {
  color: var(--text-dark);
  margin: 0;
  font-style: italic;
}
.journal-title {
  font-size: 1.2rem;
  margin-bottom: 5px;
}
.journal-edition {
  color: var(--accent-gold);
  font-weight: bold;
  margin: 0;
}
.journal-download {
  color: var(--text-dark);
  font-size: 0.85rem;
  margin-top: 10px;
}

/* ==============================================
   PRODUCTIONS PAGE
============================================== */
.content-wrapper-900 {
  max-width: 900px;
}
.production-intro {
  color: var(--text-muted);
  font-size: 1.2rem;
  font-style: italic;
  margin-top: 15px;
}
.production-card.gold-border {
  border-left-color: var(--accent-gold);
}
.production-poster {
  max-width: 300px;
}
.production-footer-text {
  text-align: center;
  color: var(--text-dark);
  margin-top: 40px;
  font-size: 0.9rem;
}

/* ==============================================
   FRONT PAGE
============================================== */
.hero-section {
  position: relative;
  text-align: center;
  padding: 0;
  background-size: cover;
  background-position: center 20%; /* Shift focus to show faces better */
  border-bottom: 2px solid var(--accent-red);
  min-height: 45vh;
  display: flex;
  flex-direction: column;
  justify-content: center; /* Centered on mobile so text isn't jammed at the bottom */
  align-items: center;
  overflow: hidden;
}

@media (min-width: 769px) {
  .hero-section {
    min-height: 85vh;
    justify-content: flex-end; /* Push text + carousel to bottom so banner image faces are visible */
  }
}

/* Mobile & Desktop Carousel Logic */
.desktop-carousel-section {
  display: block;
  width: 100%;
  padding-top: 0;
  padding-bottom: 10px;
}
.mobile-carousel-section {
  display: none;
}

@media (max-width: 768px) {
  .desktop-carousel-section {
    display: none;
  }
  .mobile-carousel-section {
    display: block;
  }
}

.hero-content-wrapper {
  z-index: 2;
  margin: 0;
  padding: 30px 20px 20px 20px;
}
.hero-title {
  font-size: clamp(2.2rem, 8vw, 4.5rem);
  line-height: 1.05;
  margin-bottom: 15px;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-align: center;
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.9);
}
.hero-title-line {
  display: block;
}
.hero-title-prefix {
  font-size: 0.58em;
  font-weight: 500;
  letter-spacing: 4px;
  opacity: 0.86;
  margin-bottom: 0.18em;
}
.hero-title-name {
  font-size: 1em;
  font-weight: 700;
  color: #f5e6c4;
  text-shadow:
    0 2px 6px rgba(0, 0, 0, 0.9),
    0 0 18px rgba(245, 200, 110, 0.35);
}
.carousel-container.hp-carousel {
  width: 100vw;
  overflow: hidden;
  position: relative;
  padding: 15px 0;
}
.carousel-track.hp-carousel-track {
  display: flex;
  align-items: stretch;
  gap: 20px;
  width: max-content;
  animation: scrollLeft 80s linear infinite;
}
.pt-60 {
  padding-top: 60px;
}
.pt-20 {
  padding-top: 20px;
}

/* ==============================================
   MAINTENANCE PAGE
============================================== */
.maintenance-section {
  text-align: center;
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.maintenance-icon {
  font-size: 4rem;
  margin-bottom: 20px;
}
.maintenance-title {
  font-size: max(3.5rem, 6vw);
  color: var(--accent-gold);
  margin-bottom: 10px;
  line-height: 1.2;
}
.maintenance-subtitle {
  font-size: 1.8rem;
  color: var(--accent-red);
  margin-bottom: 20px;
  font-style: italic;
}
.maintenance-text {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 650px;
  margin: 0 auto 40px auto;
}
.maintenance-contact {
  margin-top: 20px;
  border-top: 1px solid #333;
  padding-top: 30px;
  max-width: 400px;
}
.maintenance-contact-label {
  color: var(--text-dark);
  font-size: 0.95rem;
  margin-bottom: 10px;
}
.maintenance-contact-info {
  color: var(--text-main);
  font-weight: bold;
  margin: 0;
}
.maintenance-contact-info.mt-5 {
  margin: 5px 0 0 0;
}

/* ==============================================
   MISCELLANEOUS & GLOBAL
============================================== */
.text-muted {
  color: var(--text-muted);
}
.content-wrapper-1000 {
  max-width: 1000px;
  margin: 0 auto;
}
.italic-text {
  font-style: italic;
}
.pb-60 {
  padding-bottom: 60px;
}

/* ==============================================
   ISSUES PAGE
============================================== */
.notice-container {
  text-align: center;
  margin-top: 50px;
  padding: 20px;
  background-color: var(--bg-tertiary);
  border: 1px dashed #444;
  border-radius: 4px;
}
.notice-text {
  color: var(--text-muted);
  margin: 0;
  font-size: 0.95rem;
}

/* ==============================================
   INTRODUCTION PAGE
============================================== */
.gold-border-lg {
  border-left: 4px solid var(--accent-gold);
}
.director-name {
  color: #fff;
  font-size: 1.25rem;
}
.director-title {
  color: var(--accent-red);
  font-weight: bold;
  font-size: 0.9rem;
  text-transform: uppercase;
}

/* ==============================================
   AIM PAGE
============================================== */
.aim-page-section {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* ==============================================
   404 / NOT FOUND PAGE
============================================== */
.not-found-section {
  text-align: center;
  min-height: 65vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.not-found-title {
  font-size: max(5rem, 10vw);
  color: var(--accent-red);
  margin-bottom: 10px;
  line-height: 1;
  text-shadow: 2px 2px 10px rgba(139, 0, 0, 0.4);
}
.not-found-subtitle {
  font-size: 2.5rem;
  color: var(--accent-gold);
  margin-bottom: 20px;
  font-style: italic;
}
.not-found-text {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 40px auto;
}

/* ==============================================
   HEADER & FOOTER
============================================== */
.header-logo-link {
  color: #fff;
}
.social-links {
  margin-top: 25px;
  display: flex;
  gap: 15px;
}
.social-icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  background-color: #222;
  border: 1px solid #444;
  border-radius: 50%;
  color: var(--accent-gold);
  transition: all 0.3s;
  text-decoration: none;
}
.social-icon-btn:hover {
  background-color: var(--accent-blue);
  color: #fff;
  border-color: var(--accent-blue);
}
.social-icon-btn.youtube-btn:hover {
  background-color: var(--accent-red);
  border-color: var(--accent-red);
}

/* ==============================================
   RESPONSIVE IMPROVEMENTS FOR SMALL SCREENS
============================================== */
@media (max-width: 768px) {
  .btn-primary {
    padding: 12px 24px;
    font-size: 1rem;
  }

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

  .contact-card,
  .footer-column {
    flex: 1 1 100%;
  }

  .hp-carousel-card {
    flex-basis: 250px;
    width: 250px;
    border-radius: 20px;
  }

  .hp-carousel-img-wrapper {
    padding: 8px;
  }

  .hp-carousel-img {
    height: 150px;
    border-radius: 14px;
  }

  .hp-carousel-card-content {
    padding: 12px 14px;
  }

  .hp-carousel-card-title {
    font-size: 14px;
  }

  /* Introduction & Info Cards Fixes for Mobile */
  .info-card {
    padding: 25px 20px; /* Reduce 40px padding to 20px to free up text space */
    margin-bottom: 25px;
  }

  .info-card h3 {
    font-size: 1.6rem; /* Scale down titles */
  }

  .info-image-grid {
    grid-template-columns: 1fr; /* Force 1 column on mobile to prevent overflow from minmax(300px) */
    gap: 15px;
  }

  .members-list {
    gap: 10px;
    justify-content: flex-start; /* Left-align badges to match header flow */
  }

  .member-badge {
    padding: 6px 12px;
    font-size: 0.85rem;
  }

  /* Productions Page Mobile Fixes */
  .production-card {
    padding: 20px; /* Reduce bulky 30px padding */
  }
  .production-title {
    font-size: 1.5rem;
  }

  /* Aim Page Mobile Fixes */
  .aim-card {
    padding: 30px 20px; /* Overwrite standard 50x40 padding */
  }
  .aim-primary-text {
    font-size: 1.1rem;
  }
  .aim-secondary-text {
    font-size: 1rem;
  }

  /* About Journal Page Mobile Fixes */
  .journal-about-card {
    padding: 20px;
    flex: 1 1 100%;
  }
  .journal-about-sidebar {
    flex: 1 1 100%;
  }
  .journal-about-title {
    font-size: 1.5rem;
  }
  /* Policy, CFP, Accordion Mobile Fixes */
  summary {
    font-size: 1.15rem;
    padding: 15px 50px 15px 20px;
  }
  summary::after {
    right: 15px;
  }
  .policy-container,
  .cfp-container {
    padding: 30px 20px;
  }
  .cfp-title {
    font-size: 1.8rem;
  }
  .cfp-subtitle {
    font-size: 0.9rem;
    letter-spacing: 0px;
  }
  .cfp-details {
    padding: 20px;
  }
  .cfp-details li {
    flex-direction: column;
    gap: 5px;
  }
  .cfp-details li strong {
    min-width: auto;
  }
  .cfp-link {
    word-break: break-all;
  }
  .deadline-text {
    flex-direction: column;
    text-align: center;
    font-size: 1.1rem;
  }
  .deadline-date {
    font-size: 1.3rem;
  }
  .details-content {
    padding: 20px 15px;
  }
}

@media (max-width: 480px) {
  .btn-primary {
    padding: 10px 20px;
    font-size: 0.9rem;
    width: 100%;
    margin-bottom: 10px;
    text-align: center;
    box-sizing: border-box;
  }

  .brand img {
    height: 40px;
  }

  .brand h1 {
    font-size: 1.2rem;
  }

  .main-nav {
    top: 72px; /* Header shrinks on phones, match height exactly to eliminate see-through gap! */
    height: calc(100vh - 72px);
    height: calc(100dvh - 72px);
  }

  .gallery-item {
    flex: 0 0 90vw;
  }

  /* Force 2 columns on mobile for Meet With Us & Published Issues */
  .team-scatter-wrapper,
  .issues-3d-wrapper {
    gap: 15px;
    padding: 20px 5px;
  }

  .team-feature-row,
  .team-card-row {
    gap: 15px;
  }

  .team-card {
    width: calc(50% - 15px);
    padding: 8px 8px 15px 8px;
  }

  .polaroid-body h3,
  .issue-book-title {
    font-size: 0.95rem;
    margin-bottom: 5px;
  }

  .polaroid-body p {
    font-size: 0.8rem;
  }

  .issue-3d-card {
    width: calc(50% - 15px);
    gap: 15px;
  }

  .book-container {
    width: 100%;
    height: auto;
    aspect-ratio: 180 / 250;
  }

  .book-3d::before {
    width: 12px; /* Thinner spine for smaller screens */
  }

  .btn-pill-download {
    padding: 6px 12px;
    font-size: 0.75rem;
  }
}

html.no-scroll,
body.no-scroll {
  overflow: hidden !important;
  position: fixed !important;
  width: 100% !important;
  height: 100% !important;
  touch-action: none !important;
}

/* Visually banish the physical scrollbar on desktop browsers */
html.no-scroll::-webkit-scrollbar {
  display: none !important;
}
html.no-scroll {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.main-nav {
  overscroll-behavior: contain;
  touch-action: auto !important;
}
