/* Directory and photo archive */
img { max-width: 100%; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
:focus-visible { outline: 3px solid #D4AF37; outline-offset: 5px; }
.page-intro { max-width: 780px; margin: 0 auto 2.5rem; text-align: center; }
.page-intro h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); margin-bottom: 1rem; line-height: 1.2; }
.page-intro p, .section-description { color: #4a5568; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.16em; font-size: 0.8rem; font-weight: 600; color: #8a6811; }
.section-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; margin-bottom: 4rem; }
.section-links a { border: 1px solid #cbd5e0; padding: 0.6rem 1rem; border-radius: 30px; font-size: 0.9rem; }
.section-links a:hover { background: #1A365D; color: #fff; }
.directory-section { max-width: 1400px; margin: 0 auto 4rem; scroll-margin-top: 120px; }
.directory-section > h2 { font-size: 1.8rem; padding-bottom: 1rem; margin-bottom: 2rem; border-bottom: 2px solid #D4AF37; }
.directory-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem; }
.member-card { border: 1px solid #e2e8f0; border-radius: 12px; overflow: hidden; background: #fff; }
.member-card > img { display: block; width: 100%; height: 220px; object-fit: contain; object-position: center bottom; background: #fff; padding: 1rem 0.5rem 0; }
.member-card > div { padding: 1.25rem; }
.member-card h3 { font-size: 1.1rem; line-height: 1.3; margin-bottom: 0.5rem; }
.member-card > div > p:last-child { color: #4a5568; font-size: 0.9rem; }
.member-country { color: #6e5410; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600; margin-bottom: 0.5rem; }
.section-description { max-width: 850px; margin-bottom: 2rem; }
.members-sheets { display: grid; gap: 2rem; }
.members-sheets figure { border: 1px solid #e2e8f0; border-radius: 12px; overflow: hidden; }
.members-sheets img { display: block; width: 100%; height: auto; }
.members-sheets figcaption { background: #f7fafc; padding: 1rem 1.5rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem; font-weight: 600; }
.members-sheets figcaption a { color: #1A365D; text-decoration: underline; }
.community-banner { text-align: center; background: #f7fafc; }
.community-banner h2 { font-size: 2rem; margin-bottom: 1rem; }
.community-banner p { max-width: 700px; margin: 0 auto 1.5rem; }
.gallery-hero { height: auto !important; min-height: 420px; padding: 5rem 5%; }
.gallery-hero .eyebrow { color: #e6c558; margin-bottom: 1rem; font-size: 0.8rem; font-weight: 600; }
.gallery-hero h1 { font-size: clamp(2.4rem, 6vw, 4rem); }
.gallery-page { scroll-margin-top: 90px; max-width: 1600px; margin: auto; }
.gallery-tools { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; margin-bottom: 2rem; }
.gallery-tools label { display: flex; align-items: center; gap: 0.75rem; font-weight: 600; }
.gallery-tools select { padding: 0.8rem; border: 1px solid #cbd5e0; border-radius: 8px; background: #fff; font: inherit; color: #1A365D; max-width: 100%; }
.gallery-tools p { color: #4a5568; font-size: 0.9rem; }
.events-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.event-card { border: 1px solid #e2e8f0; border-radius: 12px; overflow: hidden; background: #fff; }
.event-photo { position: relative; display: block; overflow: hidden; background: #edf2f7; }
.event-photo img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 0.3s ease; }
.event-photo:hover img { transform: scale(1.04); }
.photo-expand { position: absolute; bottom: 0.75rem; right: 0.75rem; display: grid; place-items: center; width: 36px; height: 36px; color: #fff; background: #1A365D; border-radius: 50%; }
.event-card figcaption { padding: 1.25rem; }
.event-card h3 { font-size: 1.05rem; line-height: 1.4; }
.gallery-more { text-align: center; margin-top: 3rem; }
body.photo-open { overflow: hidden; }
.photo-dialog { position: fixed; inset: 0; margin: auto; width: min(1100px, 94vw); max-width: 94vw; max-height: 94dvh; background: #0f172a; color: #fff; border: 0; border-radius: 12px; padding: 1rem; overflow: auto; }
.photo-dialog::backdrop { background: rgba(0, 0, 0, 0.85); }
.photo-dialog-toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.5rem; }
.photo-dialog button { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid #64748b; border-radius: 50%; background: #1e293b; color: #fff; font-size: 1.5rem; cursor: pointer; flex-shrink: 0; }
.photo-dialog button:disabled { opacity: 0.4; cursor: default; }
.photo-dialog-image { position: relative; display: flex; align-items: center; justify-content: center; min-height: 150px; }
.photo-dialog-image img { display: block; max-width: 100%; width: auto; height: auto; max-height: 72dvh; object-fit: contain; }
.photo-prev, .photo-next { position: absolute; z-index: 1; top: 50%; transform: translateY(-50%); }
.photo-prev { left: 0; }
.photo-next { right: 0; }
#photo-title { padding: 1rem 0.25rem 0.25rem; text-align: center; }
@media (max-width: 1100px) { .directory-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 968px) { .directory-grid, .events-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) {
  .directory-grid, .events-grid { grid-template-columns: minmax(0, 1fr); }
  .member-card { display: flex; align-items: center; }
  .member-card > img { width: 38%; height: 160px; padding: 0.5rem; }
  .member-card > div { padding: 1rem; min-width: 0; }
  .gallery-tools label { flex-direction: column; align-items: flex-start; width: 100%; }
  .gallery-tools select { width: 100%; }
  .directory-page, .gallery-page { padding-top: 3rem; padding-bottom: 3rem; }
  .members-sheets figcaption { font-size: 0.85rem; padding: 1rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

:root {
  --primary: #1A365D; /* Deep corporate blue */
  --secondary: #D4AF37; /* Gold for premium feel */
  --accent: #E2E8F0;
  --text-dark: #1A202C;
  --text-light: #F7FAFC;
  --bg-main: #FFFFFF;
  --bg-gradient: linear-gradient(135deg, #1A365D 0%, #2A4365 100%);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  font-family: 'Inter', sans-serif;
  color: var(--text-dark);
  background-color: var(--bg-main);
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  color: var(--primary);
}

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

/* NAVBAR */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 5%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.navbar .logo {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--primary);
}

.navbar .logo img {
  height: 50px;
  width: auto;
}

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

.nav-links > li > a {
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 1px;
  color: var(--primary);
  text-transform: uppercase;
}

.nav-links > li > a:hover {
  color: var(--secondary);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  margin: 5px auto;
  border-radius: 2px;
  background-color: var(--primary);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.menu-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* DROPDOWN */
.dropdown {
  position: relative;
}

.dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #fff;
  min-width: 250px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.1);
  border-radius: 8px;
  overflow: hidden;
  list-style: none;
  padding: 0.5rem 0;
}

.dropdown:hover .dropdown-content,
.dropdown:focus-within .dropdown-content {
  display: block;
  animation: fadeIn 0.3s ease-in-out;
}

.dropdown-content li a {
  display: block;
  padding: 0.75rem 1.5rem;
  color: var(--text-dark);
  font-weight: 500;
  border-left: 3px solid transparent;
}

.dropdown-content li a:hover {
  background-color: var(--accent);
  color: var(--primary);
  border-left: 3px solid var(--secondary);
}

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

/* BUTTONS */
.btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  font-family: 'Outfit', sans-serif;
  letter-spacing: 1px;
}

.btn-primary {
  background-color: var(--secondary);
  color: var(--primary) !important;
}

.btn-primary:hover {
  background-color: #e6c558;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.4);
}

.btn-outline {
  border: 2px solid var(--secondary);
  color: var(--text-light);
}

.btn-outline:hover {
  background-color: var(--secondary);
  color: var(--primary);
}

/* HERO SECTION */
.hero {
  height: 90vh;
  background: var(--bg-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--text-light);
  padding: 0 5%;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 70% 20%, rgba(212, 175, 55, 0.7), transparent 65%);
  opacity: 0.1;
  z-index: 0;
}

/* IMAGE PLACEHOLDERS to be used when no image is available */
.placeholder-image {
  width: 100%;
  height: 100%;
  background-color: #E2E8F0;
  border: 2px dashed #CBD5E0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #718096;
  font-style: italic;
  font-family: 'Inter', sans-serif;
  min-height: 300px;
  border-radius: 12px;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.hero-content h1 {
  font-size: 4rem;
  color: var(--text-light);
  margin-bottom: 1.5rem;
  line-height: 1.1;
}

.hero-content p {
  font-size: 1.25rem;
  margin-bottom: 2.5rem;
  opacity: 0.9;
  font-weight: 300;
}

/* SECTIONS */
.section-padding {
  padding: 6rem 5%;
}

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

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background-color: var(--secondary);
  margin: 1rem auto 0;
  border-radius: 2px;
}

/* GRID LAYOUTS */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}

/* CARDS */
.card {
  background: #fff;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transition: var(--transition);
  border: 1px solid rgba(0,0,0,0.05);
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.card-icon {
  font-size: 3rem;
  color: var(--secondary);
  margin-bottom: 1.5rem;
}

.card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

/* FOOTER */
footer {
  background-color: var(--primary);
  color: var(--text-light);
  padding: 4rem 5% 2rem;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-logo img {
  height: 40px;
  width: auto;
  object-fit: contain;
  display: block;
  margin-bottom: 1rem;
  filter: brightness(0) invert(1);
}

/* RESPONSIVE */
@media (max-width: 968px) {
  body.menu-open {
    overflow: hidden;
  }

  .navbar {
    padding: 0.75rem 5%;
  }

  .navbar .logo {
    min-width: 0;
  }

  .navbar .logo img {
    max-width: min(72vw, 400px) !important;
    height: 50px !important;
    object-fit: contain;
  }

  .menu-toggle {
    display: block;
    flex: 0 0 44px;
    position: relative;
    z-index: 1002;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: calc(100vh - 68px);
    max-height: calc(100dvh - 68px);
    padding: 1rem 5% 1.5rem;
    overflow-y: auto;
    overscroll-behavior: contain;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    border-top: 1px solid var(--accent);
    box-shadow: 0 12px 24px rgba(26, 54, 93, 0.12);
    z-index: 1001;
  }

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

  .nav-links > li > a {
    display: block;
    padding: 0.85rem 0;
  }

  .nav-links .btn {
    margin-top: 0.5rem;
  }

  .dropdown-content,
  .dropdown:hover .dropdown-content,
.dropdown:focus-within .dropdown-content {
    display: block;
    position: static;
    min-width: 0;
    padding: 0 0 0.4rem 0.75rem;
    box-shadow: none;
    border-radius: 0;
    animation: none;
  }

  .dropdown-content li a {
    padding: 0.6rem 1rem;
    border-left: 2px solid var(--accent);
  }

  .hero-content h1 {
    font-size: 3rem;
  }
  .grid-2 {
    grid-template-columns: 1fr;
  }
  .grid-3 {
    grid-template-columns: 1fr;
  }
  .footer-content {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  .navbar .logo img {
    max-width: 68vw !important;
    height: 44px !important;
  }

  .hero-content h1 {
    font-size: 2.35rem;
  }

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


/* SPONSOR & TECH SECTION */
.sponsor-card {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #f8fafc;
  border-radius: 16px;
  padding: 2.5rem;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 1.5rem;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}

.sponsor-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 30px 50px rgba(15, 23, 42, 0.25);
  border-color: var(--secondary);
}

.sponsor-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.08) 0%, transparent 70%);
  z-index: 0;
  pointer-events: none;
}

.sponsor-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 1.5rem;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
}

.sponsor-logo-container {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.sponsor-badge {
  background: rgba(212, 175, 55, 0.15);
  border: 1px solid var(--secondary);
  color: var(--secondary);
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.sponsor-body {
  position: relative;
  z-index: 1;
  margin-bottom: 2rem;
}

.sponsor-body p {
  font-size: 0.95rem;
  color: #cbd5e1;
  margin-bottom: 1rem;
  line-height: 1.6;
}

.sponsor-highlight {
  background: rgba(255, 255, 255, 0.03);
  border-left: 3px solid var(--secondary);
  padding: 1.2rem;
  border-radius: 0 8px 8px 0;
  margin: 1.5rem 0;
}

.sponsor-highlight h4 {
  color: #fff;
  font-size: 1.05rem;
  margin-bottom: 0.25rem;
}

.sponsor-highlight p {
  font-size: 0.85rem;
  margin-bottom: 0;
  color: #94a3b8;
}

.sponsor-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 1;
}

.btn-sponsor {
  background: linear-gradient(135deg, #d4af37 0%, #b89020 100%);
  color: #1a202c !important;
  font-weight: 700;
}

.btn-sponsor:hover {
  background: linear-gradient(135deg, #e6c558 0%, #d4af37 100%);
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
  transform: translateY(-2px);
}

.btn-sponsor-secondary {
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #f8fafc !important;
  background: transparent;
}

.btn-sponsor-secondary:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: #fff;
}

.sponsor-open-card {
  min-height: 120px;
  border-radius: 8px;
  border: 1px dashed rgba(212, 175, 55, 0.65);
  background: #f8fafc;
  color: var(--primary);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.45rem;
}

.sponsor-open-card:hover {
  background: #fff;
  border-style: solid;
  transform: translateY(-3px);
  box-shadow: 0 12px 24px rgba(26, 54, 93, 0.08);
}

.sponsor-open-card strong {
  font-family: 'Outfit', sans-serif;
  font-size: 1rem;
}

.sponsor-open-card span {
  color: #4a5568;
  font-size: 0.86rem;
  line-height: 1.45;
}

.sponsor-hero {
  height: 56vh;
}

.sponsor-intro {
  max-width: 850px;
  margin: 0 auto 3rem;
  text-align: center;
}

.sponsor-intro h2 {
  font-size: 2.4rem;
  margin-bottom: 1rem;
}

.sponsor-intro p {
  margin-bottom: 0.75rem;
  color: #4a5568;
}

.sponsor-plans-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  align-items: stretch;
}

.sponsor-plan {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 1.75rem;
  box-shadow: 0 12px 28px rgba(26, 54, 93, 0.06);
}

.sponsor-plan h3 {
  margin-bottom: 0.75rem;
}

.sponsor-plan p {
  color: #4a5568;
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
}

.sponsor-plan ul {
  padding-left: 1.1rem;
  color: #2d3748;
  font-size: 0.92rem;
}

.sponsor-plan li {
  margin-bottom: 0.55rem;
}

.featured-plan {
  border-color: var(--secondary);
  box-shadow: 0 18px 36px rgba(212, 175, 55, 0.14);
}

.sponsor-band {
  background: var(--primary);
  color: var(--text-light);
  padding: 3rem 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.sponsor-band h2 {
  color: var(--text-light);
  margin-bottom: 0.5rem;
}

.sponsor-band p {
  max-width: 760px;
  color: #cbd5e1;
}

.sponsor-form-layout {
  align-items: start;
}

.sponsor-note {
  margin-top: 2rem;
  padding: 1.5rem;
  border-left: 4px solid var(--secondary);
  background: #f7fafc;
  border-radius: 0 8px 8px 0;
}

.sponsor-note h3 {
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}

.sponsor-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 14px 30px rgba(26, 54, 93, 0.08);
}

.sponsor-form input,
.sponsor-form select,
.sponsor-form textarea {
  width: 100%;
  padding: 1rem;
  border-radius: 8px;
  border: 1px solid #cbd5e0;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  color: var(--text-dark);
  background: #fff;
}

.sponsor-form textarea {
  resize: vertical;
}

.sponsor-form button {
  align-self: flex-start;
}

.status-section {
  min-height: 40vh;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.status-card {
  max-width: 640px;
  width: 100%;
  padding: 2rem;
  border-radius: 12px;
}

.status-card h2 {
  margin-bottom: 1rem;
}

.status-card p {
  margin-bottom: 1.5rem;
}

.status-success {
  background-color: #c6f6d5;
  color: #22543d;
}

.status-success h2 {
  color: #276749;
}

.status-error {
  background-color: #fed7d7;
  color: #742a2a;
}

.status-error h2 {
  color: #9b2c2c;
}

@media (max-width: 968px) {
  .sponsor-plans-grid {
    grid-template-columns: 1fr;
  }

  .sponsor-band {
    align-items: flex-start;
    flex-direction: column;
  }
}
