/* ===== Reset & Base ===== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --blue: #1a3a6b;
  --blue-light: #2a5298;
  --blue-dark: #0e2245;
  --orange: #f58220;
  --orange-light: #ff9a3c;
  --orange-dark: #d96e0a;
  --white: #ffffff;
  --gray-50: #f8f9fa;
  --gray-100: #e9ecef;
  --gray-200: #dee2e6;
  --gray-300: #ced4da;
  --gray-600: #6c757d;
  --gray-800: #343a40;
  --gray-900: #212529;
  --shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.12);
  --radius: 10px;
  --transition: 0.3s ease;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: var(--gray-900);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== Header ===== */
.header {
  background: var(--white);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  padding-bottom: 12px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--blue);
}

.logo span {
  color: var(--orange);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle .bar {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--blue);
  margin: 5px 0;
  border-radius: 2px;
  transition: var(--transition);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links a {
  padding: 8px 16px;
  border-radius: var(--radius);
  font-weight: 500;
  color: var(--gray-800);
  transition: background var(--transition), color var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  background: var(--blue);
  color: var(--white);
}

.nav-links .btn-register {
  background: var(--orange);
  color: var(--white);
  font-weight: 600;
  padding: 10px 24px;
}

.nav-links .btn-register:hover {
  background: var(--orange-dark);
}

/* ===== Hero Section ===== */
.hero {
  background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue) 50%, var(--blue-light) 100%);
  color: var(--white);
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(245, 130, 32, 0.1) 0%, transparent 60%);
  animation: pulse 8s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: 2.8rem;
  font-weight: 800;
  margin-bottom: 16px;
  line-height: 1.2;
}

.hero h1 span {
  color: var(--orange);
}

.hero p {
  font-size: 1.15rem;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto 32px;
}

.btn {
  display: inline-block;
  padding: 14px 36px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
  cursor: pointer;
  border: none;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-primary {
  background: var(--orange);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--orange-dark);
}

.btn-secondary {
  background: var(--white);
  color: var(--blue);
}

.btn-secondary:hover {
  background: var(--gray-100);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}

.btn-outline:hover {
  background: var(--white);
  color: var(--blue);
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== Section Styles ===== */
.section {
  padding: 70px 0;
}

.section-alt {
  background: var(--gray-50);
}

.section-title {
  text-align: center;
  margin-bottom: 48px;
}

.section-title h2 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 12px;
}

.section-title p {
  color: var(--gray-600);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto;
}

/* ===== Card Grid ===== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.card-icon {
  width: 100%;
  height: 180px;
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-light) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
}

.card-body {
  padding: 24px;
}

.card-body h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 8px;
}

.card-body p {
  color: var(--gray-600);
  font-size: 0.95rem;
  margin-bottom: 16px;
}

.card-body .btn {
  padding: 10px 24px;
  font-size: 0.9rem;
}

.card-body ul {
  margin-bottom: 16px;
}

.card-body ul li {
  padding: 4px 0 4px 20px;
  color: var(--gray-600);
  font-size: 0.9rem;
  position: relative;
}

.card-body ul li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  color: var(--orange);
  font-weight: 700;
}

/* ===== Features ===== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 32px;
}

.feature {
  text-align: center;
  padding: 32px 20px;
}

.feature-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-light) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 1.8rem;
}

.feature-icon-img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  border-radius: 0;
}

.feature h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 8px;
}

.feature p {
  color: var(--gray-600);
  font-size: 0.95rem;
}

/* ===== Ambassadors ===== */
.ambassadors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 32px;
}

.ambassador-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  text-align: center;
  padding: 36px 28px 28px;
}

.ambassador-card .ambassador-photo {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 20px;
  border: 4px solid var(--blue);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.ambassador-body h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 4px;
}

.ambassador-body .name-cn {
  color: var(--orange);
  font-size: 1rem;
  margin-bottom: 12px;
}

.ambassador-body p {
  color: var(--gray-600);
  font-size: 0.95rem;
}

/* ===== Promo Banner ===== */
.promo-banner {
  background: linear-gradient(135deg, var(--orange) 0%, var(--orange-dark) 100%);
  color: var(--white);
  padding: 50px 0;
  text-align: center;
}

.promo-banner h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.promo-banner p {
  font-size: 1.1rem;
  opacity: 0.95;
  margin-bottom: 28px;
  max-width: 550px;
  margin-left: auto;
  margin-right: auto;
}

/* ===== Page Header (inner pages) ===== */
.page-header {
  background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue) 100%);
  color: var(--white);
  padding: 50px 0;
  text-align: center;
}

.page-header h1 {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 10px;
}

.page-header p {
  opacity: 0.9;
  font-size: 1.05rem;
  max-width: 550px;
  margin: 0 auto;
}

/* ===== Promo Card ===== */
.promo-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}

.promo-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.promo-card-header {
  background: linear-gradient(135deg, var(--orange) 0%, var(--orange-dark) 100%);
  color: var(--white);
  padding: 28px 24px;
  text-align: center;
}

.promo-card-header.blue {
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-light) 100%);
}

.promo-card-header h3 {
  font-size: 1.3rem;
  font-weight: 700;
}

.promo-card-header .bonus-amount {
  font-size: 2.2rem;
  font-weight: 800;
  margin-top: 4px;
}

.promo-card-body {
  padding: 24px;
}

.promo-card-body ul {
  list-style: none;
  margin-bottom: 20px;
}

.promo-card-body ul li {
  padding: 6px 0;
  color: var(--gray-600);
  font-size: 0.95rem;
  position: relative;
  padding-left: 24px;
}

.promo-card-body ul li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  color: var(--orange);
  font-weight: 700;
}

/* ===== About Content ===== */
.about-content {
  max-width: 800px;
  margin: 0 auto;
}

.about-content h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--blue);
  margin: 32px 0 12px;
}

.about-content p {
  color: var(--gray-600);
  margin-bottom: 16px;
  line-height: 1.7;
}

.about-content--provider {
  margin: 0 0 24px;
  max-width: none;
}

/* ===== Contact ===== */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.contact-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 32px;
  text-align: center;
  transition: transform var(--transition);
}

.contact-card:hover {
  transform: translateY(-4px);
}

.contact-card .icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-light) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 1.5rem;
}

.contact-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 8px;
}

.contact-card p {
  color: var(--gray-600);
  font-size: 0.95rem;
}

/* ===== Footer ===== */
.footer {
  background: var(--blue-dark);
  color: var(--gray-300);
  padding: 50px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 32px;
  margin-bottom: 40px;
}

.footer-col h4 {
  color: var(--white);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.footer-col p {
  font-size: 0.9rem;
  line-height: 1.7;
}

.footer-col a {
  display: block;
  padding: 4px 0;
  font-size: 0.9rem;
  color: var(--gray-300);
  transition: color var(--transition);
}

.footer-col a:hover {
  color: var(--orange);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  text-align: center;
  font-size: 0.85rem;
  color: var(--gray-600);
}

.footer-bottom a {
  color: var(--orange);
}

/* ===== Responsible Gaming ===== */
.responsible-gaming {
  background: var(--gray-50);
  padding: 24px 0;
  text-align: center;
  font-size: 0.85rem;
  color: var(--gray-600);
}

/* ===== Logo Image ===== */
.logo img {
  height: 40px;
  width: auto;
}

.footer-logo {
  height: 36px;
  width: auto;
  margin-bottom: 12px;
}

/* ===== Hero with Image ===== */
.hero-banner {
  display: block;
  width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
}

.hero-banner img {
  width: 100%;
  height: auto;
  display: block;
}

/* ===== Card with Image ===== */
.card-img {
  width: 100%;
  height: auto;
  display: block;
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-light) 100%);
}

/* Provider logo used as card image fallback */
.card-img--provider {
  object-fit: contain !important;
  padding: 28px;
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-light) 100%);
}

/* ===== Provider Grid ===== */
.provider-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 20px;
}

.provider-item {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
  text-align: center;
  transition: transform var(--transition), box-shadow var(--transition);
}

.provider-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.provider-item img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  margin: 0 auto 12px;
  border-radius: 14px;
}

.provider-item span {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gray-800);
}

/* (Ambassador styles consolidated above) */

/* ===== Winner Section ===== */
.winner-banner {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}

.winner-banner > img {
  width: 300px;
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  object-fit: cover;
}

.winner-banner .winner-text {
  flex: 1;
  min-width: 240px;
}

.winner-banner .winner-text h3 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 12px;
}

.winner-banner .winner-text p {
  color: var(--gray-600);
  margin-bottom: 16px;
}

/* ===== Full-width Banner ===== */
.full-banner {
  width: 100%;
  overflow: hidden;
  border-radius: 0;
  background: var(--blue-dark);
}

.full-banner img {
  width: 100%;
  height: auto;
  display: block;
  max-height: 480px;
  object-fit: cover;
  object-position: center;
}

/* ===== Provider Detail Card ===== */
.provider-detail-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.provider-detail-header img {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  object-fit: contain;
}

.provider-detail-header h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--blue);
  margin: 0;
}

/* ===== Mobile Responsive ===== */
@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 16px;
    box-shadow: var(--shadow-lg);
    gap: 4px;
  }

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

  .nav-links a {
    width: 100%;
    text-align: center;
  }

  .hero {
    padding: 50px 0;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .section {
    padding: 50px 0;
  }

  .section-title h2 {
    font-size: 1.6rem;
  }

  .page-header {
    padding: 36px 0;
  }

  .page-header h1 {
    font-size: 1.7rem;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .winner-banner > img {
    width: 100%;
  }

  .full-banner img {
    max-height: 240px;
  }

  .provider-grid {
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 12px;
  }

  .provider-item {
    padding: 14px 10px;
  }

  .provider-item img {
    width: 56px;
    height: 56px;
  }

  .provider-item span {
    font-size: 0.75rem;
  }

  .provider-detail-header img {
    width: 44px;
    height: 44px;
  }

  .provider-detail-header h2 {
    font-size: 1.2rem;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.6rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    text-align: center;
  }

}
