/* FlagOff.my Marketing Images Patch v1.0.22
   Lightweight public homepage image arrangement. No database or logic changes. */

.marketing-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 78% 16%, rgba(249,115,22,.22), transparent 34%),
    linear-gradient(135deg, #07111f 0%, #0f172a 44%, #1f2937 100%);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.marketing-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, rgba(15,23,42,.94) 0%, rgba(15,23,42,.72) 48%, rgba(15,23,42,.25) 100%);
  pointer-events: none;
  z-index: 1;
}
.marketing-hero .container {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, .72fr) minmax(0, 1.28fr);
  gap: 22px;
  align-items: center;
  padding: 28px 0;
}
.marketing-hero h1 {
  font-size: clamp(30px, 4vw, 54px);
  line-height: .98;
  margin: 0 0 8px;
  letter-spacing: -.04em;
}
.marketing-hero .brand-word {
  display: inline-block;
  font-weight: 900;
}
.marketing-hero .brand-word span {
  color: var(--color-accent);
}
.marketing-hero h2 {
  font-size: clamp(18px, 2vw, 27px);
  color: #f8fafc;
  margin: 0 0 10px;
  max-width: 540px;
}
.marketing-hero p {
  color: #cbd5e1;
  max-width: 580px;
  margin: 0 0 14px;
  font-size: 14px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 0;
}
.hero-trust {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 8px;
  margin-top: 14px;
  max-width: 560px;
}
.hero-trust .mini-stat {
  padding: 10px;
  border: 1px solid rgba(226,232,240,.18);
  background: rgba(15,23,42,.72);
  border-radius: 14px;
  box-shadow: 0 14px 40px rgba(0,0,0,.16);
}
.hero-trust strong {
  display: block;
  color: #fff;
  font-size: 18px;
}
.hero-trust small {
  color: #94a3b8;
}
.hero-media {
  position: relative;
  border-radius: 24px;
}
.hero-media .media-frame,
.marketing-image-frame {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid rgba(226,232,240,.16);
  box-shadow: 0 22px 70px rgba(0,0,0,.34);
  background: #0f172a;
}
.hero-media img,
.marketing-image-frame img {
  display: block;
  width: 100%;
  height: auto;
}
.hero-media::after {
  content: "";
  position: absolute;
  inset: auto 8% -18px 8%;
  height: 36px;
  filter: blur(18px);
  background: rgba(249,115,22,.22);
  border-radius: 999px;
  z-index: -1;
}
.marketing-page {
  padding-top: 16px;
}
.marketing-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 14px 0 18px;
}
.marketing-strip .strip-card {
  background: linear-gradient(135deg, #ffffff, #f8fafc);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 13px;
  box-shadow: 0 8px 24px rgba(15,23,42,.05);
}
.strip-card .icon-dot,
.feature-row .icon-dot {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(249,115,22,.12);
  color: var(--color-accent);
  margin-bottom: 8px;
  font-weight: 900;
  font-size: 16px;
}
.marketing-showcase {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 18px;
  align-items: center;
  margin: 22px 0;
}
.marketing-showcase.reverse {
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
}
.marketing-showcase.reverse .showcase-copy {
  order: 2;
}
.showcase-copy {
  padding: 4px 2px;
}
.showcase-eyebrow {
  color: var(--color-accent);
  font-weight: 900;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 7px;
}
.showcase-copy h2 {
  font-size: clamp(19px, 2.4vw, 30px);
  margin-bottom: 8px;
  letter-spacing: -.02em;
}
.showcase-copy p {
  color: var(--text-muted);
  margin: 0 0 10px;
}
.feature-row {
  display: grid;
  grid-template-columns: 34px minmax(0,1fr);
  gap: 10px;
  align-items: flex-start;
  margin: 10px 0;
}
.feature-row strong {
  display: block;
  color: var(--text-main);
  margin-bottom: 1px;
}
.feature-row span {
  color: var(--text-muted);
  font-size: 12.5px;
}
.marketing-image-frame.compact {
  border-radius: 18px;
}
.marketing-cta {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 88% 14%, rgba(34,197,94,.18), transparent 28%),
    linear-gradient(135deg, #0f172a, #111827);
  color: #fff;
  border: 0;
}
.marketing-cta h2, .marketing-cta h3 {
  color: #fff;
}
.marketing-cta p {
  color: #cbd5e1;
}
.marketing-cta .btn.light {
  background: rgba(255,255,255,.08);
  color: #fff;
  border-color: rgba(255,255,255,.18);
}
.image-note {
  font-size: 11px;
  color: #94a3b8;
  margin-top: 7px;
}
.marketing-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 10px;
}
.marketing-gallery-grid .marketing-image-frame {
  border-radius: 15px;
  box-shadow: 0 8px 24px rgba(15,23,42,.08);
}

@media (max-width: 900px) {
  .marketing-hero .container,
  .marketing-showcase,
  .marketing-showcase.reverse {
    grid-template-columns: 1fr;
  }
  .marketing-showcase.reverse .showcase-copy {
    order: 0;
  }
  .hero-trust,
  .marketing-strip,
  .marketing-gallery-grid {
    grid-template-columns: repeat(2, minmax(0,1fr));
  }
}
@media (max-width: 560px) {
  .marketing-hero .container {
    padding: 20px 0;
  }
  .hero-trust,
  .marketing-strip,
  .marketing-gallery-grid {
    grid-template-columns: 1fr;
  }
  .marketing-image-frame,
  .hero-media .media-frame {
    border-radius: 16px;
  }
  .marketing-showcase {
    gap: 12px;
    margin: 16px 0;
  }
}
@media print {
  .marketing-hero,
  .marketing-image-frame,
  .hero-media {
    box-shadow: none !important;
  }
}

/* ============================================================
   HOMEPAGE MODERN THEME - Adventure / Off-Road / Enduro Vibe
   Event-first, compact, premium. Shared-hosting friendly.
   ============================================================ */

/* -- Hero -- */
.hm-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(155deg, #060d18 0%, #0f172a 35%, #1a1625 70%, #1a0f0a 100%);
  border-bottom: 1px solid rgba(249,115,22,.18);
}
.hm-hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 1200px 500px at 75% 0%, rgba(249,115,22,.10), transparent 60%),
    radial-gradient(ellipse 800px 400px at 20% 90%, rgba(249,115,22,.06), transparent 55%),
    radial-gradient(circle at 90% 30%, rgba(214,168,92,.04), transparent 40%);
  pointer-events: none;
  z-index: 0;
}
.hm-hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.15fr);
  gap: 24px;
  align-items: center;
  padding: 30px 0;
}
.hm-hero-copy {
  color: #fff;
}
.hm-hero-eyebrow {
  color: #f97316;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .16em;
  margin-bottom: 8px;
}
.hm-hero-copy h1 {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 900;
  line-height: 1.05;
  margin: 0 0 10px;
  letter-spacing: -.03em;
  background: linear-gradient(135deg, #fff 0%, #e2e8f0 60%, #f97316 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hm-hero-copy p {
  color: #94a3b8;
  font-size: 14px;
  max-width: 480px;
  margin: 0 0 16px;
  line-height: 1.5;
}
.hm-hero-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.hm-btn-primary {
  padding: 11px 18px;
  font-size: 13px;
  border-radius: 11px;
  box-shadow: 0 0 28px rgba(249,115,22,.22);
}
.hm-btn-secondary {
  border-color: rgba(226,232,240,.22);
  background: rgba(255,255,255,.06);
  color: #e2e8f0;
}
.hm-btn-secondary:hover {
  background: rgba(255,255,255,.12);
  color: #fff;
}
.hm-btn-sm {
  padding: 6px 12px;
  font-size: 11.5px;
  border-radius: 9px;
}
.hm-btn-card {
  width: 100%;
  justify-content: center;
  padding: 10px 14px;
  font-size: 12.5px;
  border-radius: 10px;
  transition: background .15s, box-shadow .15s, transform .12s;
}

/* -- Featured event card in hero -- */
.hm-hero-visual {
  display: flex;
  justify-content: center;
}
.hm-featured-card {
  position: relative;
  background: rgba(15,23,42,.78);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(226,232,240,.12);
  border-radius: 20px;
  overflow: hidden;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 28px 60px rgba(0,0,0,.44), 0 0 80px rgba(249,115,22,.06);
  transition: transform .18s ease, box-shadow .18s ease;
}
.hm-featured-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 32px 70px rgba(0,0,0,.5), 0 0 100px rgba(249,115,22,.1);
}
.hm-featured-flag {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  background: #f97316;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: 5px 10px;
  border-radius: 8px;
  box-shadow: 0 4px 14px rgba(249,115,22,.34);
}
.hm-featured-flag--paid {
  background: linear-gradient(135deg, #f97316, #ea580c);
  box-shadow: 0 4px 18px rgba(249,115,22,.5);
  letter-spacing: .1em;
}
.hm-featured-poster {
  aspect-ratio: 16/10;
  overflow: hidden;
  background: #0f172a;
}
.hm-featured-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hm-featured-info {
  padding: 14px;
}
.hm-featured-info h3 {
  font-size: 16px;
  color: #fff;
  margin: 0 0 8px;
  line-height: 1.25;
}
.hm-featured-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 11.5px;
  color: #94a3b8;
  margin-bottom: 12px;
}
.hm-meta-icon {
  margin-right: 2px;
}
.hm-featured-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.hm-featured-price {
  font-size: 18px;
  font-weight: 900;
  color: #f97316;
}
.hm-hero-poster-frame {
  width: 100%;
  max-width: 420px;
  aspect-ratio: 16/10;
  border-radius: 20px;
  border: 1px solid rgba(226,232,240,.10);
  background: rgba(15,23,42,.6);
  display: flex;
  align-items: center;
  justify-content: center;
}
.hm-hero-poster-placeholder {
  text-align: center;
  color: #64748b;
  font-size: 13px;
}
.hm-placeholder-icon {
  display: block;
  font-size: 42px;
  margin-bottom: 6px;
}

/* -- Page container -- */
.hm-page {
  padding-top: 18px;
  padding-bottom: 10px;
}

/* -- Section header -- */
.hm-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.hm-section-header h2 {
  font-size: 18px;
  font-weight: 800;
  margin: 0;
  letter-spacing: -.01em;
}

/* -- Event grid -- */
.hm-event-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}

/* -- Event card -- */
.hm-event-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 10px rgba(15,23,42,.04);
  transition: box-shadow .18s, transform .14s;
}
.hm-event-card:hover {
  box-shadow: 0 14px 36px rgba(15,23,42,.1);
  transform: translateY(-2px);
}
.hm-event-card--featured {
  border-color: rgba(249,115,22,.22);
  box-shadow: 0 6px 20px rgba(249,115,22,.06);
}
.hm-event-card-poster {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: #e2e8f0;
}
.hm-event-card-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hm-event-card-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  font-size: 10px;
  padding: 3px 8px;
  border-radius: 6px;
}
.hm-event-card-body {
  padding: 12px 14px 8px;
  flex: 1;
}
.hm-event-card-body h3 {
  font-size: 14px;
  font-weight: 700;
  margin: 0 0 6px;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.hm-event-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 11.5px;
  color: #64748b;
  margin-bottom: 8px;
}
.hm-event-card-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
.hm-stat {
  background: #f8fafc;
  border-radius: 10px;
  padding: 8px 10px;
  text-align: center;
}
.hm-stat-label {
  display: block;
  font-size: 10px;
  color: #94a3b8;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: .04em;
  margin-bottom: 2px;
}
.hm-stat strong {
  font-size: 15px;
  color: #0f172a;
}
.hm-event-card-foot {
  padding: 0 14px 12px;
}

/* -- Empty state -- */
.hm-empty {
  margin-bottom: 20px;
}
.hm-empty-icon {
  font-size: 48px;
  margin-bottom: 8px;
}

/* -- Why FlagOff strip -- */
.hm-why {
  margin-bottom: 22px;
}
.hm-why-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}
.hm-why-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 14px 12px;
  text-align: center;
  transition: border-color .14s, box-shadow .14s;
}
.hm-why-card:hover {
  border-color: #f97316;
  box-shadow: 0 6px 18px rgba(249,115,22,.08);
}
.hm-why-icon {
  font-size: 24px;
  display: block;
  margin-bottom: 6px;
}
.hm-why-card strong {
  display: block;
  font-size: 12.5px;
  margin-bottom: 2px;
  color: #0f172a;
}
.hm-why-card small {
  font-size: 11px;
  color: #64748b;
}

/* -- Organizer CTA -- */
.hm-cta {
  margin-bottom: 10px;
}
.hm-cta-inner {
  background:
    radial-gradient(ellipse 500px 120px at 85% 15%, rgba(249,115,22,.14), transparent 60%),
    linear-gradient(135deg, #0f172a, #1e1b2e);
  border: 1px solid rgba(249,115,22,.16);
  border-radius: 20px;
  padding: 22px 24px;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr);
  gap: 16px;
  align-items: center;
  box-shadow: 0 12px 36px rgba(15,23,42,.16);
}
.hm-cta-copy h2 {
  font-size: 18px;
  color: #fff;
  margin: 0 0 6px;
  font-weight: 800;
}
.hm-cta-copy p {
  color: #94a3b8;
  font-size: 13px;
  margin: 0;
}
.hm-cta-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

/* -- Responsive -- */
@media (max-width: 1100px) {
  .hm-why-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .hm-hero-inner {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 22px 0;
  }
  .hm-hero-copy h1 {
    font-size: 28px;
  }
  .hm-hero-visual {
    justify-content: flex-start;
  }
  .hm-featured-card {
    max-width: 100%;
  }
  .hm-event-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .hm-why-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .hm-cta-inner {
    grid-template-columns: 1fr;
    padding: 18px 16px;
  }
  .hm-cta-btns {
    justify-content: flex-start;
  }
}

@media (max-width: 560px) {
  .hm-hero-inner {
    padding: 16px 0;
  }
  .hm-hero-copy h1 {
    font-size: 24px;
  }
  .hm-hero-copy p {
    font-size: 13px;
  }
  .hm-event-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .hm-section-header h2 {
    font-size: 16px;
  }
  .hm-why-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .hm-why-card {
    padding: 12px 10px;
  }
  .hm-featured-card {
    border-radius: 16px;
  }
  .hm-featured-info h3 {
    font-size: 14px;
  }
}
