@import './brand.css';

/* ============================================
   GLOBAL STYLES & RESET
   ============================================ */
:root {
  /* Color Variables */
  --base03: #002b36;
  --base02: #073642;
  --base01: #294852;
  --base00: #657b83;
  --base0: #839496;
  --base1: #b1bccd;
  --base2: #f5f7f9;
  --base3: #f8f8f8;
  --blue: #268bd2;

  /* Content colors (courses, cards, stats) */
  --text-dark: #111827;
  --text-mid: #4b5563;
  --text-light: #6b7280;
  --text-muted-ui: #64748b;
  --text-nav: #334155;
  --text-nav-strong: #0f172a;
  --text-inverse: #ffffff;
  --border: #e5e7eb;
  --surface-page: #f8fafc;
  --surface-hover: #f1f5f9;
  --type-subtle-size: 1.125rem;
  --type-subtle-line: 1.45;

  /* Font Settings */
  font-family: var(--font-body, 'Inter', system-ui, sans-serif);
  line-height: 1.5;
  font-weight: 400;
  color-scheme: light only;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  min-width: 320px;
  min-height: 100vh;
  background-color: var(--surface-page);
}

/* Announcement banner */
.announcement-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 10px 24px;
  background: var(--loc-blue);
  color: rgba(255,255,255,0.85);
  font-size: 14px;
  text-align: center;
  z-index: 100;
  font-weight: 400;
}

.banner-btn {
  display: inline-block;
  padding: 5px 16px;
  background: #fff;
  color: var(--loc-blue);
  font-weight: 600;
  font-size: 13px;
  border-radius: 4px;
  text-decoration: none;
  transition: opacity 0.15s;
}

.banner-btn:hover {
  opacity: 0.85;
}

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

h1 {
  font-size: 3.2em;
  line-height: 1.1;
}

/* ============================================
   APP CONTAINER
   ============================================ */
.app {
  width: 100%;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ============================================
   PERF STATS OVERLAY
   ============================================ */
.perf-stats {
  position: fixed;
  top: 10px;
  left: 10px;
  font-family: monospace;
  font-size: 12px;
  color: var(--base1);
  z-index: 100;
  pointer-events: none;
  user-select: none;
}

/* ============================================
   SITE NAV
   ============================================ */
.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 2rem;
  background: var(--surface-page);
}

.site-nav-logo {
  display: flex;
  align-items: center;
  line-height: 0;
}
.site-nav-logo:hover {
  opacity: 0.8;
}

.nav-login {
  display: inline-flex;
  align-items: center;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--loc-blue, #3844FF);
  text-decoration: none;
  padding: 7px 18px;
  border: 1.5px solid var(--loc-blue, #3844FF);
  border-radius: 8px;
  line-height: 1;
  transition: background 0.15s, color 0.15s;
}
.nav-login:hover {
  background: var(--loc-blue, #3844FF);
  color: var(--text-inverse);
}

/* Logged-in nav links group */
.nav-links {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-greeting {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-dark, #111827);
  white-space: nowrap;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-nav);
  text-decoration: none;
  padding: 7px 16px;
  border-radius: 8px;
  line-height: 1;
  transition: background 0.15s, color 0.15s;
}
.nav-link:hover {
  background: var(--surface-hover);
  color: var(--text-nav-strong);
}

.nav-link--logout {
  font-weight: 600;
  color: var(--loc-blue, #3844FF);
  border: 1.5px solid var(--loc-blue, #3844FF);
}
.nav-link--logout:hover {
  background: var(--loc-blue, #3844FF);
  color: var(--text-inverse);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  position: relative;
  width: 100%;
  min-height: 58vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: transparent;
  padding: 3rem 2rem 2rem;
}

#hero-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: auto;
  z-index: 0; /* ensure canvas sits behind content */
}

.hero-content {
  position: relative;
  z-index: 3; /* keep content above the canvas */
  text-align: center;
  padding: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.hero-content h1 {
  font-family: var(--font-heading, 'GT Walsheim', system-ui, sans-serif);
  font-size: 5.5rem;
  margin-bottom: 0;
  font-weight: 800;
  color: #000000;
  text-shadow:
    4px 0 2px rgba(255,255,255,1),
    -4px 0 2px rgba(255,255,255,1),
    0 -4px 2px rgba(255,255,255,1),
    0 4px 2px rgba(255,255,255,1);
  letter-spacing: -0.02em;
  line-height: 1.1;
  user-select: none;
  -webkit-user-select: none;
  pointer-events: none;
}

.hero-content p {
  display: none;
}

/* ============================================
   HERO TAGLINE  (typewriter, below the NET)
   ============================================ */
.hero-tagline-wrap {
  display: flex;
  justify-content: center;
  padding: 0 2rem 3.5rem;
  margin-top: -2.5rem;
  position: relative;
  z-index: 4;
  cursor: default;
}

.hero-tagline {
  font-size: var(--type-subtle-size);
  font-weight: 400;
  color: var(--text-muted-ui);
  letter-spacing: 0;
  line-height: var(--type-subtle-line);
  text-align: center;
  min-height: 2rem;
  display: inline-flex;
  align-items: baseline;
  gap: 1px;
}

/* Inline cursor — always in DOM, no absolute positioning */
.tagline-cursor {
  font-weight: 300;
  color: var(--text-muted-ui);
  opacity: 0.28;
  transition: opacity 0.2s ease;
  user-select: none;
}

.tagline-cursor.is-preblink {
  opacity: 0.55;
  animation: blink-cursor 0.2s step-end 6;
}

.hero-tagline.no-cursor .tagline-cursor {
  display: none;
}

@keyframes blink-cursor {
  0%, 100% { opacity: 0.55; }
  50%       { opacity: 0; }
}

/* Telegram link — same colour as tagline, no harsh underline */
.tagline-link {
  color: inherit;
  font-weight: 400;
  text-decoration: none;
  opacity: 0.6;
  transition: opacity 0.3s ease;
}

.tagline-link:hover {
  opacity: 1;
}

/* ============================================
   COURSES SECTION
   ============================================ */
.achievements-section {
  width: 100%;
  max-width: 1280px;
  margin: 2rem auto 0 auto;
  padding: 0 2rem 1rem;
  color: var(--text-dark);
}

.achievements-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}

.achievement-card {
  display: flex;
  gap: 14px;
  align-items: center;
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 14px;
  padding: 14px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.achievement-circle {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: conic-gradient(from 180deg, #3844ff 0deg, #7c3aed 140deg, #60a5fa 300deg, #3844ff 360deg);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-weight: 700;
  font-size: 13px;
  gap: 4px;
  box-shadow: 0 10px 24px rgba(56, 68, 255, 0.25);
}

.achievement-circle .achievement-value {
  font-size: 12px;
  line-height: 1.2;
}

.achievement-circle .achievement-label {
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.9;
}

.achievement-circle.ach-ioai {
  background: conic-gradient(from 180deg, #fbbf24 0deg, #f97316 120deg, #a855f7 260deg, #fbbf24 360deg);
  box-shadow: 0 10px 24px rgba(249, 115, 22, 0.25);
}

.achievement-copy .ach-title {
  font-weight: 800;
  color: var(--text-dark);
  font-size: 18px;
}

.achievement-copy .ach-sub {
  color: var(--text-light);
  font-size: 13px;
  margin-top: 2px;
}

.courses-section {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto 15rem auto;
  padding: 4rem 2rem;
  color: var(--text-dark);
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  margin-top: 0;
}

.section-header p {
  font-size: var(--type-subtle-size);
  line-height: var(--type-subtle-line);
  opacity: 1;
  color: var(--text-muted-ui);
  margin: 0;
}

.courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
  padding: 0;
  width: 100%;
}

/* ============================================
   COURSE CARD
   ============================================ */
.course-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.2s;
  display: flex;
  flex-direction: column;
  position: relative;
  margin-top: 4px;
  width: 100%;
}

.course-card::before {
  content: '';
  position: absolute;
  top: -4px;
  left: 0;
  right: 0;
  height: 4px;
  opacity: 0;
  transition: opacity 0.2s;
}

.course-card:hover {
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

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

.course-card.coming-soon {
  opacity: 0.7;
}

.card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.course-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  flex-shrink: 0;
}

.course-info {
  flex: 1;
  text-align: left;
}

.course-info h3 {
  margin: 0 0 0.25rem 0;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-dark);
}

.course-level {
  font-size: 0.875rem;
  color: var(--text-light);
}

.card-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.course-description {
  margin: 0;
  color: var(--text-mid);
  line-height: 1.6;
  font-size: 0.9375rem;
}

/* ============================================
   PROGRESS BAR
   ============================================ */
.course-progress {
  width: 100%;
  margin-top: auto;
}

.progress-label {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
  color: var(--text-light);
}

.progress-percentage {
  font-weight: 600;
  color: var(--text-dark);
}

.progress-bar-container {
  width: 100%;
  height: 8px;
  background: var(--border);
  border-radius: 4px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.3s ease;
}

/* ============================================
   COURSE STATS
   ============================================ */
.course-stats {
  display: flex;
  justify-content: space-around;
  padding: 1rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.stat {
  text-align: center;
}

.stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.25rem;
}

.stat-label {
  font-size: 0.75rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ============================================
   COURSE BUTTON
   ============================================ */
.course-btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  color: var(--text-inverse);
  text-decoration: none;
  font-weight: 600;
  text-align: center;
  transition: opacity 0.2s;
  cursor: pointer;
  border: none;
}

.course-btn:hover {
  opacity: 0.9;
  color: var(--text-inverse);
}

/* ============================================
   FOOTER
   ============================================ */
.main-footer {
  margin-top: auto;
  background-color: var(--base2);
  color: var(--base00);
  position: relative;
  z-index: 20;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  background-image: 
    linear-gradient(to right, rgba(38, 139, 210, 0.08) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(38, 139, 210, 0.08) 1px, transparent 1px);
  background-size: 40px 40px;
  padding: 60px 20px;
}

.footer-content {
  max-width: 1280px;
  padding: 2rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.footer-cta {
  background-color: var(--base3);
  color: var(--base00);
  border: 2px solid var(--base1);
  border-radius: 6px;
  padding: 20px;
  box-shadow: 6px 6px 0px 0px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: transform 0.2s;
}

.footer-cta:hover {
  transform: translateY(-2px);
  box-shadow: 8px 8px 0px 0px rgba(0, 0, 0, 0.1);
  border-color: var(--blue);
}

.cta-text h2 {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  color: var(--blue);
  font-weight: 600;
  margin-bottom: 10px;
  line-height: 1.2;
}

.cta-text p {
  font-size: 1rem;
  color: var(--base01);
  line-height: 1.5;
}

.cta-btn {
  background-color: var(--blue);
  color: var(--base3);
  padding: 15px 30px;
  border: 2px solid var(--blue);
  border-radius: 4px;
  font-weight: 600;
  text-transform: uppercase;
  display: inline-block;
  text-align: center;
  box-shadow: 4px 4px 0px 0px var(--base1);
  transition: all 0.2s;
  text-decoration: none;
}

.cta-btn:hover {
  box-shadow: 6px 6px 0px 0px var(--base1);
  transform: translate(-2px, -2px);
}

.cta-btn:active {
  transform: translate(0, 0);
  box-shadow: 2px 2px 0px 0px var(--base1);
}

.footer-badges {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.footer-badge {
  color: var(--base00);
  padding: 6px 12px;
  border: 2px solid var(--base1);
  border-radius: 6px;
  background-color: var(--base2);
  font-size: 0.8rem;
  transition: border-color 0.2s, color 0.2s, transform 0.2s;
  display: flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
}

.footer-badge:hover,
.footer-badge:focus-visible {
  border-color: var(--blue);
  color: var(--blue);
  transform: translateY(-1px);
}

.footer-badge:focus-visible {
  outline: 2px solid rgba(56, 68, 255, 0.25);
  outline-offset: 2px;
}

/* Option A — outline ring breathes outward */
@keyframes badge-outline {
  0%, 100% { outline-color: transparent;         outline-offset: 2px; }
  45%       { outline-color: rgba(56,68,255,.28); outline-offset: 6px; }
}
/* Option B — border + text color breathes to brand blue */
@keyframes badge-breathe {
  0%, 100% { border-color: var(--base1);          color: var(--base00); }
  45%       { border-color: rgba(56,68,255,.55);   color: rgba(56,68,255,.8); }
}
/* Option C — background wash: barely-there blue tint swells in and out */
@keyframes badge-wash {
  0%, 100% { background-color: var(--base2); }
  45%       { background-color: rgba(56,68,255,.07); }
}

/* Active option — swap animation name to try A / B / C */
.footer-badge.is-pulsing {
  animation: badge-wash 5s ease-in-out;
}
.footer-media {
  color: var(--base00);
  padding: 6px 12px;
  font-size: 1rem;
  transition: 0.2s;
  display: flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
}

.footer-media:hover {
  color: var(--blue);
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 30px;
  padding-top: 30px;
  border-top: 1px dashed var(--base1);
}

.footer-brand h3 {
  color: var(--base01);
  font-size: 1.2rem;
  margin-bottom: 10px;
  font-weight: bold;
}

/* Brand links in footer: inherit color, thin underline fades in on hover */
.footer-brand h3 a.footer-brand-link {
  color: var(--blue);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s ease, opacity 0.15s ease;
  font-weight: inherit;
  cursor: pointer;
  display: inline;
  font-size: inherit;
  padding-bottom: 1px;
  opacity: 0.7;
}
.footer-brand h3 a.footer-brand-link:hover,
.footer-brand h3 a.footer-brand-link:focus {
  opacity: 1;
  border-bottom-color: currentColor;
}
.footer-brand h3 .brand-sep {
  margin: 0 6px; /* small gap to keep it continuous */
  color: var(--base01);
  font-weight: inherit;
}

.footer-brand p,
.footer-brand a {
  color: var(--base02);
  font-size: 1rem;
  display: block;
  margin-bottom: 5px;
  text-decoration: none;
}

.footer-brand a:hover {
  color: var(--blue);
}

.contact-grid {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contact-pill {
  background-color: var(--base3);
  border: 2px solid var(--base1);
  padding: 12px 20px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--base01);
  font-weight: 600;
  transition: 0.2s;
}

.contact-pill:hover {
  border-color: var(--blue);
  color: var(--blue);
  box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.05);
}

.contact-pill svg {
  stroke: var(--base00);
}

.footer-brand-row {
  display: flex;
  gap: 4px;
  align-items: center;
}

.footer-brand-row svg {
  display: block;
  position: relative;
  top: -2px;
}

@keyframes icon-alive {
  0%   { transform: translateY(0); }
  12%  { transform: translateY(-8px); }
  24%  { transform: translateY(0); }
  36%  { transform: translateY(-6px); }
  48%  { transform: translateY(0); }
  60%  { transform: translateY(-4px); }
  72%  { transform: translateY(0); }
  84%  { transform: translateY(-2px); }
  100% { transform: translateY(0); }
}

.footer-brand-row svg.is-alive {
  animation: icon-alive 1.8s ease-out forwards;
}

.footer-legal {
  margin-top: 10px;
}

.footer-copyright {
  margin-top: 15px;
  font-size: 0.8rem;
  opacity: 0.7;
}

.footer-social {
  margin-top: 12px;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (min-width: 768px) {
  .footer-cta {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .cta-text {
    flex: 1;
    margin-right: 40px;
  }

  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
  }

  .contact-grid {
    width: 320px;
  }
}

@media (max-width: 767px) {
  .perf-stats {
    top: 8px;
    left: 8px;
    font-size: 10px;
  }

  .courses-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .courses-section {
    padding: 2rem 1rem;
  }
  
  .section-header h2 {
    font-size: 2rem;
  }
  
  .hero {
    min-height: 56vh;
    padding: 2.5rem 1.5rem 1.75rem;
  }
  
  .hero-content {
    padding: 1.5rem 1rem;
  }
  
  .hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
  }
  
  .hero-content p {
    font-size: 1.25rem;
  }
}

@media (max-width: 640px) {
  .courses-grid {
    gap: 1rem;
  }
}

@media (max-width: 480px) {
  .hero {
    min-height: 50vh;
    padding: 2rem 1rem 1.25rem;
  }
  
  .hero-content {
    padding: 1.25rem 0.5rem;
  }
  
  .hero-content h1 {
    font-size: 2.75rem;
    margin-bottom: 1rem;
  }
  
  .hero-content p {
    font-size: 1.125rem;
  }
  
  .section-header h2 {
    font-size: 1.75rem;
  }
  
  .card-header {
    padding: 1rem;
  }
  
  .card-body {
    padding: 1rem;
  }
}

/* Copy-to-clipboard styles for footer contact items */
.copyable {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  position: relative;
  user-select: none;
  color: inherit;
}
.copyable:focus {
  outline: none; /* hide outline on mouse click */
}
.copyable:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}
.copy-tooltip {
  position: absolute;
  top: -34px;
  left: 50%;
  transform: translateX(-50%) translateY(0);
  background: rgba(18,18,18,0.9);
  color: var(--text-inverse);
  padding: 6px 8px;
  border-radius: 6px;
  font-size: 12px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
  white-space: nowrap;
  z-index: 60;
}
.copy-tooltip.show { opacity: 1; transform: translateX(-50%) translateY(-6px); }

/* ============================================
   FLOATING ENTRY TEST CTA
   ============================================ */
.entry-test-fab {
  position: fixed;
  bottom: 3.5rem;
  right: 2rem;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 30px;
  background: var(--gradient-brand);
  color: #fff;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  border-radius: 50px;
  text-decoration: none;
  box-shadow:
    0 6px 24px rgba(56, 68, 255, 0.4),
    0 0 0 0 rgba(56, 68, 255, 0);
  z-index: 50;
  transition: transform 0.2s ease, box-shadow 0.25s ease;
  line-height: 1;
  animation: fab-ring 3.5s ease-out 2s 3;
}

.entry-test-fab:hover {
  transform: translateY(-3px) scale(1.04);
  box-shadow:
    0 10px 32px rgba(56, 68, 255, 0.5),
    0 0 0 0 rgba(56, 68, 255, 0);
  color: #fff;
}

.entry-test-fab:active {
  transform: translateY(0) scale(0.98);
  box-shadow: 0 3px 14px rgba(56, 68, 255, 0.35);
}

.entry-test-fab svg {
  flex-shrink: 0;
}

/* Subtle ring pulse to draw the eye — plays 3× then stops */
@keyframes fab-ring {
  0%   { box-shadow: 0 6px 24px rgba(56, 68, 255, 0.4), 0 0 0 0    rgba(56, 68, 255, 0.35); }
  50%  { box-shadow: 0 6px 24px rgba(56, 68, 255, 0.4), 0 0 0 10px rgba(56, 68, 255, 0);    }
  100% { box-shadow: 0 6px 24px rgba(56, 68, 255, 0.4), 0 0 0 0    rgba(56, 68, 255, 0);    }
}

@media (max-width: 480px) {
  .entry-test-fab {
    bottom: 2.5rem;
    right: 1rem;
    padding: 14px 22px;
    font-size: 15px;
  }
}

/* ============================================
   EVENT SECTION
   ============================================ */
.event-section {
  width: 100%;
  background: var(--surface-page);
  padding: 3rem 2rem 0;
}

.event-section-inner {
  max-width: 1280px;
  margin: 0 auto;
}

.event-label-row {
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
}

.event-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: #fff3e0;
  color: #c45a00;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 100px;
  border: 1px solid #ffd0a0;
}

.event-card-wrap {
  background: #f5f8fb;
  border-radius: 20px;
  display: grid;
  grid-template-columns: 360px 1fr;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.07), 0 1px 4px rgba(0, 0, 0, 0.05);
  border: 1px solid #e2e8f0;
  position: relative;
}

/* Left visual column */
.event-card-visual {
  padding: 2.5rem 2rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  border-right: 1px solid #e2e8f0;
  background: #f5f8fb;
  position: relative;
}

.event-photo-frame {
  position: relative;
  width: 100%;
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(135deg, #ff6b35, #f7931e, #e91e8c);
  aspect-ratio: 3/4;
  max-width: 280px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.event-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.event-role-tag {
  font-size: 0.72rem;
  color: var(--text-light);
  text-align: center;
  line-height: 1.4;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  max-width: 220px;
}

/* Right info column */
.event-card-info {
  padding: 2.5rem 2.5rem 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  color: var(--text-dark);
}

.event-medals {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.medal {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  border: 1px solid;
}

.medal.gold {
  background: #fffbeb;
  border-color: #fcd34d;
  color: #92400e;
}

.medal.silver {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #1e40af;
}

.medal.bronze {
  background: #ecfeff;
  border-color: #a5f3fc;
  color: #155e75;
}

.event-title {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.15;
  color: var(--text-dark);
  margin: 0;
  font-family: var(--font-heading, 'Inter', sans-serif);
}

.event-desc {
  color: var(--text-mid);
  font-size: 0.9375rem;
  line-height: 1.65;
  margin: 0;
}

.event-meta-grid {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.event-meta-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--text-mid);
}

.event-meta-item svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--loc-blue, #3844FF);
}

.event-meta-item div {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.event-meta-item strong {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-dark);
}

.event-meta-item span {
  font-size: 0.8125rem;
  color: var(--text-light);
}

.event-cta-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

.event-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  background: var(--loc-blue, #3844FF);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  border-radius: 10px;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
  box-shadow: 0 4px 20px rgba(56, 68, 255, 0.3);
}

.event-cta-btn:hover {
  background: #2a34e8;
  transform: translateY(-1px);
  box-shadow: 0 8px 28px rgba(56, 68, 255, 0.4);
}

.event-seats-note {
  font-size: 0.8rem;
  color: var(--text-light);
  font-weight: 500;
}

/* Responsive */
@media (max-width: 860px) {
  .event-card-wrap {
    grid-template-columns: 1fr;
  }

  .event-card-visual {
    border-right: none;
    border-bottom: 1px solid #e2e8f0;
    flex-direction: row;
    align-items: flex-start;
    padding: 2rem;
    gap: 1.5rem;
  }

  .event-photo-frame {
    max-width: 140px;
    flex-shrink: 0;
    aspect-ratio: 3/4;
  }

  .event-role-tag {
    text-align: left;
    max-width: none;
  }

  .event-card-info {
    padding: 2rem;
    gap: 1.25rem;
  }

  .event-title {
    font-size: 1.5rem;
  }
}

@media (max-width: 520px) {
  .event-section {
    padding: 2rem 1rem 0;
  }

  .event-card-visual {
    flex-direction: column;
    align-items: center;
  }

  .event-role-tag {
    text-align: center;
  }

  .event-cta-row {
    flex-direction: column;
    align-items: flex-start;
  }
}
