/* ===============================
   WRPF ASIA – GLOBAL THEME
   (Hybrid: B-style nav/footer + A-style content)
   =============================== */

:root {
  --bg-dark: #050608;
  --bg-darker: #020308;
  --accent: #e50914;
  --accent-soft: rgba(229, 9, 20, 0.15);
  --accent-alt: #ffcd1f;
  --gold: #f6b34b;
  --text-main: #f7f8fc;
  --text-muted: #a5a8b3;
  --card-bg: #10121a;
  --border-soft: #252837;
  --radius-lg: 16px;
  --radius-md: 10px;
  --shadow-soft: 0 18px 40px rgba(0, 0, 0, 0.65);
  --shadow-subtle: 0 12px 25px rgba(0, 0, 0, 0.45);
  --transition-fast: 0.18s ease-out;
  --transition-med: 0.25s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Montserrat", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, #151521 0, #050608 45%, #000 100%);
  color: var(--text-main);
  line-height: 1.6;
  min-height: 100vh;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Layout wrapper */
.page-shell {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 3.5rem;
}

/* ===============================
   NAVBAR (B style, WRPF ASIA brand)
   =============================== */

.nav {
  position: sticky;
  top: 0.75rem;
  z-index: 50;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(
    135deg,
    rgba(10, 12, 20, 0.98),
    rgba(12, 15, 28, 0.98)
  );
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.8);
  padding: 0.6rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  backdrop-filter: blur(18px);
  gap: 1.5rem;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.logo-mark {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 30% 20%, #ff5b5b, #a40000 52%, #3a0000 100%);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
}

.logo-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nav-title-group {
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
}

.nav-title {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.88rem;
  font-weight: 700;
}

.nav-subtitle {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-muted);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.13em;
}

.nav-link {
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  border: 1px solid transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition-fast);
  white-space: nowrap;
  background: transparent;
}

.nav-link:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.13);
  background: rgba(255, 255, 255, 0.03);
}

.nav-link--accent {
  background: linear-gradient(135deg, var(--accent), #ff424d);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 10px 25px rgba(229, 9, 20, 0.6);
  font-weight: 600;
}

/* Dropdown */

.dropdown {
  position: relative;
}

.dropbtn {
  border: none;
  background: transparent;
  padding: 0;
  margin: 0;
}

.dropdown-content {
  display: none;
  position: absolute;
  top: 120%;
  right: 0;
  min-width: 210px;
  background: #050711;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.85);
  padding: 0.35rem 0;
  z-index: 60;
}

.dropdown-content a {
  display: block;
  padding: 0.5rem 0.9rem;
  font-size: 0.78rem;
}

.dropdown-content a:hover {
  background: rgba(255, 255, 255, 0.05);
}

.dropdown.show .dropdown-content {
  display: block;
}

@media (max-width: 900px) {
  .nav {
    flex-wrap: wrap;
    border-radius: 22px;
  }
  .nav-links {
    flex-wrap: wrap;
    justify-content: flex-end;
  }
}

/* ===============================
   HOME PAGE – WRPF ASIA CONTENT (A)
   =============================== */

.wrpf-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 2.5rem;
  margin-top: 2.5rem;
  align-items: center;
}

.wrpf-hero-left {
  background: radial-gradient(circle at top left, rgba(229, 9, 20, 0.12), transparent 55%);
}

.wrpf-hero-kicker {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  color: var(--gold);
}

.wrpf-hero-title {
  margin-top: 0.6rem;
  font-size: clamp(2.2rem, 4vw, 3rem);
  font-weight: 800;
  text-transform: uppercase;
  line-height: 1.15;
}

.wrpf-hero-title span {
  background: linear-gradient(120deg, #fff, #ffc56e, #ff7359);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.wrpf-hero-subtitle {
  margin-top: 1rem;
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 32rem;
}

.wrpf-hero-actions {
  margin-top: 1.4rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn {
  padding: 0.75rem 1.6rem;
  border-radius: 999px;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
}

.btn-primary {
  background: linear-gradient(120deg, var(--accent), #ff8248);
  color: #fff;
}

.btn-outline {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--text-muted);
}

.wrpf-hero-right {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.wrpf-hero-logo-wrap {
  width: 330px;
  height: 330px;
  border-radius: 50%;
  background: #111;
  padding: 1.1rem;
  overflow: hidden;
  box-shadow: 0 0 60px rgba(0, 0, 0, 0.7);
}

.wrpf-hero-logo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.wrpf-hero-tag {
  background: rgba(0, 0, 0, 0.8);
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  padding: 0.35rem 1rem;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

@media (max-width: 900px) {
  .wrpf-hero {
    grid-template-columns: 1fr;
  }
  .wrpf-hero-left {
    text-align: left;
  }
  .wrpf-hero-right {
    order: -1;
  }
}

/* Sections */

.section {
  margin-top: 3rem;
}

.section-kicker {
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.8rem;
}

.section-title {
  margin-top: 0.4rem;
  font-size: 1.9rem;
  font-weight: 800;
  text-transform: uppercase;
}

/* Cards and grids */

.section-grid {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
}

@media (max-width: 900px) {
  .section-grid {
    grid-template-columns: 1fr;
  }
}

.card {
  background: var(--card-bg);
  padding: 1.4rem;
  border-radius: 1rem;
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-subtle);
}

.card h3 {
  margin-bottom: 0.6rem;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 0.13em;
}

.card p {
  color: var(--text-muted);
}

.card ul {
  margin-top: 0.6rem;
  padding-left: 1rem;
  color: var(--text-muted);
}

/* President layout */

.president-layout {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 2rem;
  align-items: center;
}

.president-photo {
  border-radius: 1rem;
  overflow: hidden;
}

.president-caption {
  text-align: center;
  margin-top: 0.6rem;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-muted);
}

@media (max-width: 900px) {
  .president-layout {
    grid-template-columns: 1fr;
  }
}

/* Gallery */

/* --- WRPF ASIA FIX: UNIFORM GALLERY IMAGE SIZE --- */
.gallery-grid {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}

.gallery-item {
  position: relative;
  width: 100%;
  height: 260px; /* 🔥 set SAME height for all images */
  overflow: hidden;
  border-radius: 16px;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* 🔥 makes image fill without deformation */
  object-position: center;
}

.gallery-label {
  position: absolute;
  bottom: 0.8rem;
  left: 0.8rem;
  background: rgba(0,0,0,0.65);
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  font-size: 0.75rem;
  text-transform: uppercase;
}

@media (max-width: 900px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }
}

/* CTA section */

.section-center {
  text-align: center;
}

.section-center .section-title {
  text-align: center;
}

.section-center .wrpf-hero-actions {
  justify-content: center;
}

/* ===============================
   ENTRY FORM PAGE (B-style layout)
   =============================== */

/* Hero grid wrapper for entry form page */
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1.1fr);
  gap: 2.5rem;
  margin-top: 2.5rem;
  margin-bottom: 2.5rem;
  align-items: flex-start;
}

.hero-main {
  background: radial-gradient(
    circle at top,
    rgba(229, 9, 20, 0.16),
    transparent 55%
  );
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.18rem 0.5rem;
  border-radius: 999px;
  background: rgba(5, 9, 20, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.65);
  margin-bottom: 0.8rem;
}

.hero-kicker-pill {
  padding: 0.1rem 0.6rem;
  border-radius: 999px;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  background: var(--accent-soft);
  color: var(--accent-alt);
  border: 1px solid rgba(229, 9, 20, 0.5);
}

.hero-kicker-text {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

.hero-title-b {
  font-family: inherit;
  text-transform: uppercase;
  font-size: clamp(2.1rem, 4vw, 2.9rem);
  letter-spacing: 0.09em;
  line-height: 1.12;
  margin-bottom: 0.75rem;
}

.hero-title-b span.highlight {
  color: var(--accent-alt);
  text-shadow: 0 0 30px rgba(255, 205, 31, 0.35);
}

.hero-subtitle-b {
  font-size: 0.95rem;
  color: var(--text-muted);
  max-width: 32rem;
  line-height: 1.6;
  margin-bottom: 1.75rem;
}

.hero-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
  font-size: 0.82rem;
}

.meta-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(6, 8, 16, 0.85);
}

.meta-chip-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(229, 9, 20, 0.25);
}

.meta-chip-label {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.7rem;
  color: var(--text-muted);
}

.meta-chip-value {
  font-weight: 500;
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  align-items: center;
  margin-bottom: 1.5rem;
}

.hero-note {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.hero-note strong {
  color: #fff;
}

/* Right hero side poster */

.hero-side {
  position: relative;
}

.hero-poster {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow-soft);
  background: radial-gradient(circle at 10% 0, rgba(229, 9, 20, 0.45), #040509);
  min-height: 320px;
  display: flex;
  align-items: stretch;
  justify-content: stretch;
}

.hero-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.8;
  mix-blend-mode: lighten;
}

.hero-gradient-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 10% 0, rgba(229,9,20,0.45), transparent 55%),
    linear-gradient(to top, rgba(0,0,0,0.96) 0, rgba(0,0,0,0.4) 40%, transparent 100%);
}

.hero-poster-bottom {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1rem 1.2rem 1.15rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 0.9rem;
}

.event-tagline {
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 0.2em;
}

.event-small {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

.event-chip {
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(0, 0, 0, 0.68);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.poster-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  padding: 0.55rem 0.75rem;
  border-radius: 1rem;
  background: rgba(0, 0, 0, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  display: inline-flex;
  flex-direction: column;
  gap: 0.15rem;
}

.poster-badge span:nth-child(2) {
  color: var(--accent-alt);
  font-weight: 500;
}

/* Slots box */

.slots-box {
  margin-top: 1.25rem;
  padding: 0.9rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(5, 8, 18, 0.9);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.72);
  font-size: 0.8rem;
}

.slots-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 0.45rem;
}

.slots-label {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.7rem;
  color: var(--text-muted);
}

.slots-value {
  font-weight: 500;
}

.slots-bar {
  position: relative;
  height: 7px;
  border-radius: 999px;
  background: #181b27;
  overflow: hidden;
}

.slots-bar-fill {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #ffcd1f, #e50914);
  transform-origin: left center;
  transform: scaleX(0.74);
  box-shadow: 0 0 12px rgba(229, 9, 20, 0.7);
}

.slots-caption {
  margin-top: 0.4rem;
  font-size: 0.74rem;
  color: var(--text-muted);
}

/* Entry Form Shell */

.form-shell {
  margin-top: 1.5rem;
  padding: 1.4rem 1.3rem 1.5rem;
  border-radius: var(--radius-lg);
  background: radial-gradient(
    circle at top left,
    rgba(229, 9, 20, 0.12),
    rgba(6, 8, 18, 0.98)
  );
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow-soft);
}

.form-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.form-title-block {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.form-title {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.9rem;
}

.form-subtitle {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.form-badge {
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  background: rgba(0, 0, 0, 0.6);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem 1rem;
  margin-bottom: 1.2rem;
}

@media (max-width: 720px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: 0.8rem;
}

.form-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
}

.form-label span.req {
  color: #ff7373;
}

.form-input,
.form-select,
.form-textarea {
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.55rem 0.7rem;
  background: rgba(8, 10, 18, 0.9);
  color: var(--text-main);
  font-size: 0.86rem;
  outline: none;
  transition: var(--transition-fast);
  font-family: inherit;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: #666b7a;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--accent-alt);
  box-shadow: 0 0 0 1px rgba(255, 205, 31, 0.5),
    0 0 22px rgba(255, 205, 31, 0.3);
}

.form-textarea {
  min-height: 80px;
  resize: vertical;
}

.field-help {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.field-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.chip-option {
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 0.78rem;
  cursor: pointer;
  transition: var(--transition-fast);
  background: rgba(6, 8, 16, 0.9);
  user-select: none;
}

.chip-option.active {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(229, 9, 20, 0.6);
  background: radial-gradient(
    circle at top left,
    rgba(229, 9, 20, 0.18),
    rgba(6, 8, 18, 0.98)
  );
}

.form-section-title {
  margin-top: 0.8rem;
  margin-bottom: 0.5rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text-muted);
}

.divider {
  border-top: 1px dashed rgba(255, 255, 255, 0.15);
  margin: 1rem 0;
}

.declaration-box {
  margin-top: 0.6rem;
  padding: 0.75rem 0.85rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(5, 7, 15, 0.9);
  font-size: 0.76rem;
  color: var(--text-muted);
}

.declaration-box strong {
  color: #fff;
}

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-top: 0.55rem;
}

.checkbox-row input {
  margin-top: 0.1rem;
}

.form-footer {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.9rem;
  align-items: center;
}

.total-box {
  font-size: 0.86rem;
  color: var(--text-muted);
}

.total-box strong {
  color: #fff;
  font-size: 0.96rem;
}

.footer-note {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

.btn-submit {
  padding: 0.75rem 1.6rem;
  border-radius: 999px;
  border: none;
  background: linear-gradient(135deg, #ffcd1f, #ff7b1f);
  color: #000;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 12px 24px rgba(255, 163, 26, 0.6);
  transition: var(--transition-med);
}

/* ===============================
   FOOTER (shared)
   =============================== */

.site-footer,
.footer {
  margin-top: 2.25rem;
  padding-top: 1.6rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.75rem;
  color: var(--text-muted);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
}

/* Simple center footer when used on some pages */
.footer {
  justify-content: center;
}
