/* ─── ABOUT PAGE ─── */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.pillar {
  display: flex; align-items: flex-start; gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 6px; margin-bottom: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.pillar:hover { border-color: var(--purple-core); box-shadow: var(--glow-sm); }
.pillar-icon { font-size: 1.4rem; flex-shrink: 0; margin-top: 2px; }
.pillar-title {
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.95rem; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--accent-violet); margin-bottom: 0.3rem;
}
.pillar-body { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.6; }
.about-lore-box {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 8px; padding: 2rem;
}
.lore-emblem {
  font-family: 'Orbitron', sans-serif;
  font-size: 2rem; font-weight: 900;
  color: var(--purple-glow); text-shadow: var(--glow);
  margin-bottom: 1rem;
}
.lore-tagline {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.1rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  line-height: 1.4; margin-bottom: 1rem;
}
.lore-tagline em { color: var(--purple-glow); font-style: normal; display: block; }
.lore-divider { width: 50px; height: 2px; background: linear-gradient(90deg, var(--purple-core), transparent); margin-bottom: 1rem; }
.lore-text { font-size: 0.875rem; color: var(--text-secondary); line-height: 1.75; }

/* ─── TIMELINE SECTION ─── */
.timeline-section {
  position: relative;
  margin-top: 2rem;
  padding: 1rem 0 3rem;
}

.timeline-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.timeline-label {
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--purple-glow);
  margin-bottom: 0.4rem;
}

.timeline-title {
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  font-weight: 700;
}

/* Timeline Layout Container */
.timeline {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
  padding: 1rem 0;
}

/* Central Spine Line */
.timeline-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: linear-gradient(180deg, var(--purple-bright) 0%, var(--purple-muted) 80%, transparent 100%);
  transform: translateX(-50%);
  box-shadow: 0 0 12px rgba(124, 58, 237, 0.5);
}

/* Timeline Items */
.timeline-item {
  position: relative;
  width: 50%;
  padding: 1.5rem 2.5rem;
  box-sizing: border-box;
}

.timeline-item.timeline-left {
  left: 0;
  text-align: right;
}

.timeline-item.timeline-right {
  left: 50%;
  text-align: left;
}

/* Year Markers along the spine */
.timeline-year-marker {
  position: absolute;
  top: 0;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.85rem;
  font-weight: 900;
  color: var(--purple-glow);
  background: var(--bg-void);
  padding: 0.2rem 0.6rem;
  border: 1px solid var(--purple-core);
  border-radius: 4px;
  box-shadow: var(--glow-sm);
  z-index: 2;
}

.timeline-right .timeline-year-marker {
  left: -2.3rem;
}

.timeline-left .timeline-year-marker {
  right: -2.3rem;
}

/* Achievement Cards */
.timeline-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
  display: inline-block;
  width: 100%;
  max-width: 420px;
  text-align: left;
}

.timeline-card {
  cursor: pointer;
  position: relative;
  z-index: 5; /* Ensures card sits above background lines */
}

.timeline-img-wrap,
.timeline-card-content,
.timeline-item-title,
.timeline-description,
.timeline-date {
  pointer-events: none;
}

/* ─── TIMELINE MODAL POPUP ─── */
.timeline-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(5, 2, 15, 0.85);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.timeline-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.timeline-modal-close {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  width: 36px;
  height: 36px;
  background: transparent; /* Fixes the huge white button box */
  border: none;
  outline: none;
  color: var(--text-secondary, #a1a1aa);
  font-size: 2rem;
  font-weight: 300;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: color 0.2s ease, background-color 0.2s ease;
  z-index: 10;
  padding: 0;
  margin: 0;
}

.timeline-modal-close:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.timeline-modal-content {
  position: relative;
  width: min(1050px, 92vw);
  background: linear-gradient(145deg, rgba(20, 12, 42, 0.98) 0%, rgba(10, 6, 22, 0.99) 100%);
  border: 1px solid var(--border-bright);
  border-radius: 12px;
  box-shadow: 0 0 35px rgba(124, 58, 237, 0.35);
  display: grid;
  grid-template-columns: 0.8fr 1.2fr; /* Makes image column smaller and text column wider */
  gap: 2rem;
  padding: 2.5rem;
  box-sizing: border-box;
  align-items: start;
}

.timeline-modal-left {
  width: 100%;
}

.timeline-modal-media img {
  width: 100%;
  max-height: 380px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--border);
}

.timeline-modal-media iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
}

/* Standard Images */
.timeline-modal-media img {
  width: 100%;
  height: auto;
  max-height: 480px;
  object-fit: cover;
  border-radius: 8px;
  display: block;
}

.timeline-modal-right {
  display: flex;
  flex-direction: column;
}

.timeline-modal-date {
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--purple-glow);
  margin-bottom: 0.25rem;
}

.timeline-modal-title {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.6rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 1rem 0;
  line-height: 1.2;
}

.timeline-modal-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin: 0;
  white-space: pre-line;
}

.timeline-modal-desc strong {
  color: #ffffff;
  display: block;
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-top: 1.25rem;
  margin-bottom: 0.5rem;
}

.timeline-modal-desc ul {
  margin: 0.5rem 0 1rem 1.25rem;
  padding: 0;
  list-style-type: disc;
}

.timeline-modal-desc li {
  margin-bottom: 0.5rem;
  color: var(--text-secondary);
}

.timeline-modal-desc li strong {
  display: inline; /* Keep list item titles inline with the bullet */
  margin: 0;
  font-family: inherit;
  font-size: inherit;
  color: #ffffff;
}

@media (max-width: 768px) {
  .timeline-modal-content {
    grid-template-columns: 1fr; /* Stacks media above text on mobile */
    gap: 1.25rem;
    padding: 1.5rem;
  }
}

@media (max-width: 768px) {
  .timeline-modal-content {
    grid-template-columns: 1fr;
    max-height: 85vh;
    overflow-y: auto;
  }
}

.timeline-card:hover {
  border-color: var(--purple-core);
  box-shadow: var(--glow-sm);
  transform: translateY(-3px);
}

/* Horizontal Top Image Aspect */
.timeline-img-wrap {
  width: 100%;
  height: 160px;
  overflow: hidden;
  background: var(--bg-deep);
  border-bottom: 1px solid var(--border);
}

.timeline-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Card Typography & Layout */
.timeline-card-content {
  padding: 1.25rem;
}

.timeline-date {
  display: block;
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-violet);
  margin-bottom: 0.35rem;
}

.timeline-item-title {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.timeline-description {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

/* Responsive design for smaller screens */
@media (max-width: 820px) {
  .timeline-line {
    left: 20px;
  }
  .timeline-item {
    width: 100%;
    padding-left: 3.5rem;
    padding-right: 0;
  }
  .timeline-item.timeline-left,
  .timeline-item.timeline-right {
    left: 0;
    text-align: left;
  }
  .timeline-right .timeline-year-marker,
  .timeline-left .timeline-year-marker {
    left: -0.2rem;
    right: auto;
  }
}

/* ═══ ABOUT SECTION REDESIGN ═══ */
.inner-page {
  max-width: 1200px;
  margin: 0 auto;
}

.page-header {
  text-align: center;
  max-width: 750px;
  margin: 0 auto 3.5rem;
}

.page-label {
  display: inline-block;
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--purple-glow, #a78bfa);
  margin-bottom: 0.5rem;
}

.page-title {
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 1rem;
}

.page-desc {
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--text-secondary, #94a3b8);
}

/* Grid Layout */
.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2rem;
  align-items: stretch;
}

/* Pillars Grid (2x2 Cards) */
.pillars-wrapper {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.pillar-card {
  background: rgba(14, 9, 32, 0.5);
  border: 1px solid rgba(124, 58, 237, 0.25);
  border-radius: 12px;
  padding: 1.5rem;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.pillar-card:hover {
  transform: translateY(-4px);
  border-color: rgba(167, 139, 250, 0.6);
  box-shadow: 0 8px 25px rgba(124, 58, 237, 0.2);
  background: rgba(20, 13, 45, 0.7);
}

.pillar-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
  background: rgba(124, 58, 237, 0.15);
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
}

.pillar-title {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.5rem;
}

.pillar-body {
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--text-secondary, #94a3b8);
}

/* Lore Box Card */
.about-lore-box {
  background: linear-gradient(145deg, rgba(20, 12, 42, 0.8) 0%, rgba(10, 6, 22, 0.9) 100%);
  border: 1px solid rgba(124, 58, 237, 0.4);
  border-radius: 16px;
  padding: 2.25rem;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.lore-emblem {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.3em;
  color: var(--purple-glow, #a78bfa);
  opacity: 0.8;
  margin-bottom: 0.5rem;
}

.lore-tagline {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.3;
}

.lore-tagline span {
  display: block;
  color: var(--purple-glow, #a78bfa);
  font-style: italic;
  font-weight: 500;
}

.lore-divider {
  height: 1px;
  width: 100%;
  background: linear-gradient(90deg, rgba(124, 58, 237, 0.6) 0%, rgba(124, 58, 237, 0) 100%);
  margin: 1.25rem 0;
}

.lore-text {
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--text-secondary, #cbd5e1);
  margin-bottom: 1rem;
}

.lore-callout {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #ffffff;
  text-transform: uppercase;
}

/* Mobile Responsiveness */
@media (max-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .pillars-wrapper {
    grid-template-columns: 1fr;
  }
}

.section-dividerabout {
  height: 1px; background: var(--border);
}

.inner-pageabout {
  padding: 96px 3rem 4rem;
  max-width: 1200px; margin: 0 auto;
}

/* ─── FAQ SECTION ─── */
.faq-section {
  padding: 4rem 0;
  max-width: 1200px;
  margin: 0 auto;
}

.faq-header {
  text-align: center;
  margin-bottom: 3rem;
}

.faq-title {
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  font-weight: 700;
  color: #ffffff;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  align-items: start;
}

.faq-item {
  background: rgba(14, 9, 32, 0.6);
  border: 1px solid rgba(124, 58, 237, 0.25);
  border-radius: 8px;
  backdrop-filter: blur(10px);
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.faq-item:hover {
  border-color: rgba(167, 139, 250, 0.5);
  box-shadow: 0 4px 20px rgba(124, 58, 237, 0.15);
}

.faq-item[open] {
  border-color: var(--purple-core, #7c3aed);
  background: rgba(20, 13, 45, 0.85);
  box-shadow: 0 0 15px rgba(124, 58, 237, 0.2);
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 1.5rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary, #ffffff);
  cursor: pointer;
  list-style: none;
  user-select: none;
  line-height: 1.4;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-icon {
  color: var(--purple-glow, #a78bfa);
  flex-shrink: 0;
  margin-left: 1rem;
  transition: transform 0.25s ease;
}

.faq-item[open] .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 1.5rem 1.25rem 1.5rem;
  font-size: 0.88rem;
  color: var(--text-secondary, #94a3b8);
  line-height: 1.6;
  border-top: 1px solid rgba(124, 58, 237, 0.1);
  margin-top: 0.25rem;
  padding-top: 1rem;
}

@media (max-width: 820px) {
  .faq-grid {
    grid-template-columns: 1fr;
  }
}

.hidden {
  display: none;
}

.modal-lead-p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
}

.modal-section-h3 {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #ffffff;
  margin: 0.5rem 0 0.75rem 0;
  border-left: 3px solid var(--purple-glow);
  padding-left: 0.5rem;
}

/* Bullet List Formatting */
.modal-bullet-list {
  margin: 0 0 1.25rem 0;
  padding-left: 1.2rem;
  list-style-type: disc;
}

.modal-bullet-list li {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 0.6rem;
}

.modal-bullet-list li strong {
  color: #ffffff;
}

.modal-outro-p {
  font-size: 0.95rem;
  line-height: 1.6;
  font-style: italic;
  color: #e2e8f0;
  border-top: 1px solid rgba(124, 58, 237, 0.2);
  padding-top: 0.75rem;
  margin: 0;
}
