/* ghfmpc.com — custom styles (darwinports-inspired) */

:root {
  --brand-orange: #ff6600;
  --brand-orange-dark: #e55a00;
  --brand-orange-light: #ff8533;
  --brand-grey: #666666;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', 'Leelawadee UI', Tahoma, sans-serif;
}

/* Logo */
.site-logo {
  display: inline-flex;
  align-items: center;
  line-height: 0;
}

.site-logo-img {
  height: 2rem;
  width: auto;
  display: block;
  object-fit: contain;
}

@media (min-width: 768px) {
  .site-logo-img {
    height: 2.5rem;
  }
}

.site-logo--footer .site-logo-img {
  height: 2.25rem;
  opacity: 0.95;
}

/* Header CTA — compact, no wrap */
.header-cta-group {
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.header-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.5rem 0.75rem;
  font-weight: 700;
  font-size: 0.8125rem;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  color: #fff;
  border-radius: 0.375rem;
  flex: none;
  letter-spacing: normal;
  text-transform: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.header-cta-btn .hgi-stroke {
  font-size: 0.95rem;
  flex-shrink: 0;
}

.header-cta-btn--register {
  background: linear-gradient(135deg, var(--brand-orange) 0%, var(--brand-orange-light) 100%);
}

.header-cta-btn--register:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 102, 0, 0.35);
  background: linear-gradient(135deg, var(--brand-orange-dark) 0%, var(--brand-orange) 100%);
}

.header-cta-btn--login {
  background: linear-gradient(135deg, var(--brand-grey) 0%, #808080 100%);
}

.header-cta-btn--login:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(102, 102, 102, 0.35);
  background: linear-gradient(135deg, #555 0%, var(--brand-grey) 100%);
}

@media (min-width: 1024px) {
  .header-cta-btn {
    padding: 0.5625rem 0.875rem;
    font-size: 0.8125rem;
  }
}

@media (min-width: 1280px) {
  .header-cta-btn {
    padding: 0.625rem 1rem;
    font-size: 0.875rem;
  }
}

/* Thai text hero panel (replaces hero image) */
.hero-text-panel {
  background: linear-gradient(145deg, #1a1a1a 0%, #2d1600 45%, #1a1a1a 100%);
  border: 1px solid #3d2814;
  border-radius: 0.75rem;
  padding: 1.5rem 1.375rem;
  color: #fff;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.hero-text-panel::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -20%;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(255, 102, 0, 0.25) 0%, transparent 70%);
  pointer-events: none;
}

.hero-text-panel__badge {
  display: inline-block;
  align-self: flex-start;
  background: rgba(255, 102, 0, 0.15);
  border: 1px solid rgba(255, 102, 0, 0.45);
  color: #ffb380;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.625rem;
  border-radius: 9999px;
  margin-bottom: 0.875rem;
}

.hero-text-panel__brand {
  font-size: 2.25rem;
  font-weight: 900;
  line-height: 1;
  margin: 0 0 0.5rem;
  letter-spacing: -0.02em;
}

.hero-text-panel__brand span {
  color: var(--brand-orange);
}

.hero-text-panel__title {
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.35;
  margin: 0 0 0.5rem;
  color: #f9fafb;
}

.hero-text-panel__subtitle {
  font-size: 0.875rem;
  color: #d1d5db;
  margin: 0 0 1.125rem;
  line-height: 1.5;
}

.hero-text-panel__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.hero-text-panel__list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: #e5e7eb;
  line-height: 1.4;
}

.hero-text-panel__list .hgi-stroke {
  color: var(--brand-orange);
  font-size: 1rem;
  flex-shrink: 0;
}

@media (min-width: 768px) {
  .hero-text-panel {
    min-height: 320px;
    padding: 1.75rem 1.5rem;
  }

  .hero-text-panel__brand {
    font-size: 2.5rem;
  }

  .hero-text-panel__title {
    font-size: 1.25rem;
  }
}

/* Banner CTA — mirror darwinports daftar/masuk pattern */
.banner-widget {
  width: 100%;
  line-height: 0;
}

.banner-widget img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.banner-buttons {
  display: flex;
  width: 100%;
}

.banner-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.25rem;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  color: #fff;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: none;
}

.banner-btn:hover {
  transform: translateY(-2px);
}

.btn-register {
  background: linear-gradient(135deg, var(--brand-orange) 0%, var(--brand-orange-light) 100%);
}

.btn-register:hover {
  box-shadow: 0 4px 12px rgba(255, 102, 0, 0.35);
  background: linear-gradient(135deg, var(--brand-orange-dark) 0%, var(--brand-orange) 100%);
}

.btn-login {
  background: linear-gradient(135deg, var(--brand-grey) 0%, #808080 100%);
}

.btn-login:hover {
  box-shadow: 0 4px 12px rgba(102, 102, 102, 0.35);
  background: linear-gradient(135deg, #555 0%, var(--brand-grey) 100%);
}

/* Nav */
.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #374151;
  text-decoration: none;
  border-radius: 0.375rem;
  transition: color 0.15s, background 0.15s;
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--brand-orange);
  background: #fff4eb;
}

.nav-link.active {
  color: var(--brand-orange);
  background: #fff4eb;
}

.nav-link .hgi-stroke {
  font-size: 1rem;
  line-height: 1;
}

@media (min-width: 1024px) and (max-width: 1279px) {
  .nav-link {
    padding: 0.5rem 0.45rem;
    font-size: 0.8125rem;
    gap: 0.25rem;
  }

  .nav-link .hgi-stroke {
    font-size: 0.9rem;
  }
}

/* Mobile drawer */
#mobile-menu:not(:checked) ~ .mobile-drawer,
#mobile-menu:not(:checked) ~ .mobile-overlay {
  display: none;
}

#mobile-menu:checked ~ .mobile-drawer {
  display: block;
}

#mobile-menu:checked ~ .mobile-overlay {
  display: block;
}

.mobile-drawer {
  animation: slideDown 0.2s ease;
}

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

/* Sticky header shadow on scroll — applied via JS class */
.site-header.is-scrolled {
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

/* Footer */
.footer-link {
  color: #9ca3af;
  text-decoration: none;
  font-size: 0.8125rem;
  transition: color 0.15s;
}

.footer-link:hover {
  color: var(--brand-orange);
}

@media (min-width: 768px) {
  .banner-btn {
    font-size: 1.125rem;
    padding: 1rem 1.5rem;
  }
}

/* Homepage content */
.article-body {
  color: #374151;
  line-height: 1.75;
  font-size: 1rem;
}

.article-body h1 {
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 800;
  color: #111827;
  line-height: 1.3;
  margin-bottom: 0.75rem;
}

.article-body h2 {
  font-size: clamp(1.2rem, 3vw, 1.5rem);
  font-weight: 700;
  color: #111827;
  margin: 2.5rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--brand-orange);
}

.article-body h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: #1f2937;
  margin: 1.5rem 0 0.75rem;
}

.article-body p {
  margin-bottom: 1rem;
}

.article-body ul,
.article-body ol {
  margin: 0 0 1rem 1.25rem;
}

.article-body li {
  margin-bottom: 0.35rem;
}

.article-body a:not(.banner-btn):not(.cta-pill) {
  color: var(--brand-orange);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.article-body a:not(.banner-btn):not(.cta-pill):hover {
  color: var(--brand-orange-dark);
}

.update-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: #fff4eb;
  color: var(--brand-orange-dark);
  border: 1px solid #ffd6b3;
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  border-radius: 9999px;
  margin-bottom: 1.25rem;
}

.notice-box {
  background: linear-gradient(135deg, #fff8f2 0%, #fff 100%);
  border: 1px solid #ffd6b3;
  border-left: 4px solid var(--brand-orange);
  border-radius: 0.5rem;
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0 2rem;
}

.notice-box p:last-child {
  margin-bottom: 0;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin: 1.25rem 0 1.5rem;
}

.feature-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  padding: 1.125rem 1.25rem;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.feature-card:hover {
  border-color: #ffd6b3;
  box-shadow: 0 4px 12px rgba(255, 102, 0, 0.08);
}

.feature-card h4 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9375rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 0.35rem;
}

.feature-card p {
  font-size: 0.875rem;
  color: #6b7280;
  margin: 0;
  line-height: 1.55;
}

.feature-card .hgi-stroke {
  color: var(--brand-orange);
  font-size: 1.125rem;
}

.content-img {
  width: 100%;
  height: auto;
  border-radius: 0.5rem;
  margin: 1rem 0 1.25rem;
  border: 1px solid #e5e7eb;
}

.split-section {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: start;
  margin: 1rem 0 1.5rem;
}

@media (min-width: 768px) {
  .split-section {
    grid-template-columns: 1fr 1fr;
  }

  .split-section.reverse .split-text {
    order: 2;
  }

  .split-section.reverse .split-media {
    order: 1;
  }
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  margin: 1.25rem 0 1.5rem;
  background: #fff;
  border-radius: 0.5rem;
  overflow: hidden;
  border: 1px solid #e5e7eb;
}

.compare-table th,
.compare-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid #f3f4f6;
}

.compare-table th {
  background: #fff4eb;
  color: #9a3412;
  font-weight: 700;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.compare-table tr:last-child td {
  border-bottom: none;
}

.compare-table td:first-child {
  font-weight: 600;
  color: #374151;
}

.step-list {
  counter-reset: steps;
  list-style: none;
  margin: 1.25rem 0 1.5rem;
  padding: 0;
}

.step-list li {
  counter-increment: steps;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1rem 0;
  border-bottom: 1px solid #f3f4f6;
}

.step-list li:last-child {
  border-bottom: none;
}

.step-list li::before {
  content: counter(steps);
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  background: var(--brand-orange);
  color: #fff;
  font-weight: 800;
  font-size: 0.875rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cta-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.5rem 0;
}

.cta-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.625rem 1.25rem;
  border-radius: 0.375rem;
  font-weight: 700;
  font-size: 0.875rem;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transition: transform 0.15s, box-shadow 0.15s;
}

.cta-pill:hover {
  transform: translateY(-1px);
}

.cta-pill-orange {
  background: linear-gradient(135deg, var(--brand-orange) 0%, var(--brand-orange-light) 100%);
  color: #fff;
}

.cta-pill-orange:hover {
  box-shadow: 0 4px 12px rgba(255, 102, 0, 0.3);
  color: #fff;
}

.cta-pill-grey {
  background: linear-gradient(135deg, var(--brand-grey) 0%, #808080 100%);
  color: #fff;
}

.cta-pill-grey:hover {
  box-shadow: 0 4px 12px rgba(102, 102, 102, 0.3);
  color: #fff;
}

.game-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  margin: 1.25rem 0 1.5rem;
}

.game-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  overflow: hidden;
  transition: box-shadow 0.15s;
}

.game-card:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
}

.game-card img {
  width: 100%;
  height: auto;
  display: block;
}

.game-card-body {
  padding: 1rem 1.125rem 1.125rem;
}

.game-card-body h3 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
}

.game-card-body p {
  font-size: 0.875rem;
  color: #6b7280;
  margin: 0 0 0.75rem;
}

.game-card-body a {
  font-size: 0.8125rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--brand-orange);
}

.faq-list {
  margin: 1.25rem 0 2rem;
}

.faq-item {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  margin-bottom: 0.625rem;
  overflow: hidden;
}

.faq-item summary {
  padding: 1rem 1.25rem;
  font-weight: 700;
  font-size: 0.9375rem;
  color: #111827;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--brand-orange);
  flex-shrink: 0;
}

.faq-item[open] summary::after {
  content: '−';
}

.faq-item[open] summary {
  border-bottom: 1px solid #f3f4f6;
  color: var(--brand-orange);
}

.faq-answer {
  padding: 1rem 1.25rem 1.125rem;
  font-size: 0.9375rem;
  color: #4b5563;
  line-height: 1.65;
}

.faq-answer p:last-child {
  margin-bottom: 0;
}

/* News cards */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  margin: 1.25rem 0 1.5rem;
}

.news-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  padding: 1.25rem;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.news-card:hover {
  border-color: #ffd6b3;
  box-shadow: 0 4px 14px rgba(255, 102, 0, 0.08);
}

.news-card__date {
  font-size: 0.75rem;
  color: #9ca3af;
  margin-bottom: 0.5rem;
}

.news-card h3 {
  font-size: 1rem;
  margin: 0 0 0.5rem;
  color: #111827;
}

.news-card p {
  font-size: 0.875rem;
  color: #6b7280;
  margin: 0;
  line-height: 1.55;
}