/* 365CUCI Malaysia SEO Portal — Design Tokens & Responsive Stylesheet */
:root {
  --brand-primary: #115d31;
  --brand-dark: #0a3b1f;
  --brand-darker: #062112;
  --brand-accent: #d4a83a;
  --brand-accent-hover: #bd9227;
  --brand-gradient: linear-gradient(135deg, #167a41 0%, #0a4925 100%);
  --brand-soft: #eaf6ef;
  --tile-bg: #081c11;
  --tile-border: #19472c;
  --gold-gradient: linear-gradient(135deg, #ffd43b 0%, #d4a83a 100%);
  --bg-body: #f5f7f9;
  --bg-white: #ffffff;
  --text-main: #1d2730;
  --text-muted: #5a6875;
  --border-light: #e4e9ee;
  --radius-md: 12px;
  --radius-lg: 18px;
  --shadow-sm: 0 2px 10px rgba(0, 30, 24, 0.06);
  --shadow-md: 0 8px 28px rgba(0, 30, 24, 0.10);
  --container-max: 1200px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg-body);
  color: var(--text-main);
  line-height: 1.65;
  font-size: 15px;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-primary); text-decoration: none; transition: all 0.2s ease; }
a:hover { color: var(--brand-dark); }

.container { width: 100%; max-width: var(--container-max); margin: 0 auto; padding: 0 18px; }
.section { padding: 48px 0; }
.section-white { background: var(--bg-white); }
.section-dark { background: linear-gradient(135deg, var(--brand-darker) 0%, var(--brand-dark) 100%); color: #fff; }

.gradient-title {
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 14px;
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.section-dark .gradient-title {
  background: linear-gradient(90deg, #ffe066 0%, var(--brand-accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ===== HEADER (Exact 12CUCI Sticky White Navbar) ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #ffffff;
  box-shadow: 0 3px 14px rgba(0, 0, 0, 0.08);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 70px;
  gap: 16px;
}
.site-logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.site-logo img { height: 42px; width: auto; object-fit: contain; }

.main-nav { display: flex; align-items: center; }
.nav-list { display: flex; align-items: center; list-style: none; gap: 4px; }
.nav-item { position: relative; }
.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 9px 14px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  color: #161d24;
  white-space: nowrap;
}
.nav-link:hover { background: var(--brand-soft); color: var(--brand-primary); }
.nav-link.active {
  background: var(--brand-gradient);
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
}

.has-dropdown .dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 215px;
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: 10px;
  box-shadow: var(--shadow-md);
  padding: 6px;
  list-style: none;
  z-index: 99;
}
.has-dropdown:hover .dropdown-menu,
.has-dropdown.open .dropdown-menu { display: block; }
.dropdown-menu a {
  display: block;
  padding: 9px 12px;
  border-radius: 6px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-main);
}
.dropdown-menu a:hover { background: var(--brand-soft); color: var(--brand-primary); }

/* CTA Button */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 24px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.3px;
  border: none;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.2s ease, filter 0.2s ease;
  text-transform: uppercase;
}
.btn:hover { transform: translateY(-2px); filter: brightness(1.06); }
.btn-primary {
  background: var(--brand-gradient);
  color: #ffffff !important;
  box-shadow: 0 5px 16px rgba(0, 0, 0, 0.22);
}
.btn-gold {
  background: var(--gold-gradient);
  color: #11181c !important;
  box-shadow: 0 5px 16px rgba(212, 168, 58, 0.35);
}
.btn-outline {
  background: transparent;
  border: 2px solid var(--brand-primary);
  color: var(--brand-primary) !important;
}
.btn-outline:hover { background: var(--brand-primary); color: #fff !important; }

.burger-btn {
  display: none;
  background: none;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 7px 10px;
  font-size: 20px;
  cursor: pointer;
  color: var(--text-main);
}

/* ===== HERO SLIDER ===== */
.hero-slider-wrap { position: relative; width: 100%; overflow: hidden; background: var(--brand-darker); }
.hero-slides { display: flex; transition: transform 0.55s cubic-bezier(0.25, 0.8, 0.25, 1); }
.hero-slide { min-width: 100%; display: block; }
.hero-slide img { width: 100%; max-height: 520px; object-fit: cover; margin: 0 auto; }
.slider-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 42px; height: 42px; border-radius: 50%;
  background: rgba(0, 0, 0, 0.45); color: #fff; border: none;
  font-size: 20px; cursor: pointer; z-index: 5;
  display: flex; align-items: center; justify-content: center;
}
.slider-arrow:hover { background: var(--brand-primary); }
.slider-prev { left: 16px; }
.slider-next { right: 16px; }
.slider-dots {
  position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 8px; z-index: 5;
}
.slider-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: rgba(255,255,255,0.45); border: none; cursor: pointer;
}
.slider-dot.active { background: var(--brand-accent); width: 26px; border-radius: 99px; }

/* ===== MARQUEE TICKER ===== */
.marquee-bar {
  background: var(--brand-darker);
  color: #fff;
  padding: 10px 0;
  overflow: hidden;
  border-bottom: 2px solid var(--brand-accent);
}
.marquee-track {
  display: flex;
  width: max-content;
  gap: 60px;
  animation: marqueeScroll 38s linear infinite;
}
.marquee-track:hover { animation-play-state: paused; }
.marquee-item { font-size: 13.5px; font-weight: 600; white-space: nowrap; color: #f1f5f7; }
.marquee-item strong { color: var(--brand-accent); }
@keyframes marqueeScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ===== RECOMMENDED + TABBED LOBBY ===== */
.lobby-split {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 24px;
  align-items: start;
}
.rec-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 18px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
}
.rec-carousel { position: relative; overflow: hidden; border-radius: 12px; }
.rec-track { display: flex; transition: transform 0.45s ease; }
.rec-slide { min-width: 100%; display: block; }
.rec-slide img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 10px; }

.tabs-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
}
.tabs-nav { display: flex; justify-content: flex-end; gap: 8px; margin-bottom: 18px; flex-wrap: wrap; }
.tab-btn {
  padding: 9px 18px; border-radius: 8px; border: 1px solid var(--border-light);
  background: #f4f7f8; color: var(--text-main); font-weight: 700; font-size: 13.5px; cursor: pointer;
}
.tab-btn.active { background: var(--brand-gradient); color: #fff; border-color: transparent; }
.tab-panel { display: none; }
.tab-panel.active { display: block; }
.provider-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}
.provider-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.provider-tile {
  display: block;
  background: var(--tile-bg);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--tile-border);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-align: center;
}
.provider-tile:hover { transform: translateY(-4px); box-shadow: 0 8px 20px rgba(0,0,0,0.22); }
.provider-tile img { width: 100%; aspect-ratio: 1/1; object-fit: cover; }
.provider-tile.wide img { aspect-ratio: 16/9; object-fit: contain; background: var(--tile-bg); padding: 8px; }
.provider-tile span {
  display: block; padding: 7px 6px; font-size: 12px; font-weight: 700; color: #fff;
  background: var(--brand-gradient);
}

/* ===== HORIZONTAL GAME STRIPS ===== */
.game-strip {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
}
.game-strip.cols-3 { grid-template-columns: repeat(3, 1fr); }
.game-card {
  display: block;
  background: var(--bg-white);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease;
}
.game-card:hover { transform: translateY(-4px); }
.game-card img { width: 100%; aspect-ratio: 1/1; object-fit: cover; }
.game-card-title { padding: 9px 10px; font-size: 13px; font-weight: 700; text-align: center; color: var(--text-main); }

/* ===== TWO-COL & CARDS ===== */
.two-col { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 32px; align-items: center; }
.two-col.equal { grid-template-columns: 1fr 1fr; align-items: stretch; }
.hero-h1 { font-size: clamp(26px, 3.4vw, 38px); font-weight: 900; line-height: 1.2; color: var(--brand-darker); margin-bottom: 16px; }
.lead-text { font-size: 15.5px; color: var(--text-muted); margin-bottom: 22px; }
.rounded-img { border-radius: var(--radius-lg); box-shadow: var(--shadow-md); width: 100%; object-fit: cover; }

.features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 24px; }
.feature-box {
  background: var(--bg-white); border: 1px solid var(--border-light);
  border-radius: var(--radius-md); padding: 22px 18px; box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.feature-box:hover { transform: translateY(-3px); border-color: var(--brand-primary); }
.feature-icon {
  width: 44px; height: 44px; border-radius: 10px;
  background: var(--brand-soft); color: var(--brand-primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; margin-bottom: 12px;
}
.feature-box h3 { font-size: 16px; font-weight: 800; margin-bottom: 8px; color: var(--brand-darker); }
.feature-box p { font-size: 13.5px; color: var(--text-muted); }

.showcase-card {
  background: var(--bg-white); border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--border-light); box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column;
}
.showcase-card img { width: 100%; height: 220px; object-fit: cover; }
.showcase-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.showcase-body p { color: var(--text-muted); margin-bottom: 18px; flex: 1; }

.steps-list { padding-left: 20px; margin: 16px 0 24px; }
.steps-list li { margin-bottom: 12px; color: var(--text-main); }
.btn-group { display: flex; flex-wrap: wrap; gap: 12px; }

/* ===== TABLE ===== */
.table-wrap { overflow-x: auto; border-radius: 12px; border: 1px solid var(--border-light); background: #fff; }
.seo-table { width: 100%; border-collapse: collapse; min-width: 620px; }
.seo-table th { background: var(--brand-primary); color: #fff; font-weight: 700; padding: 13px 14px; text-align: left; font-size: 13.5px; }
.seo-table td { padding: 12px 14px; border-bottom: 1px solid var(--border-light); font-size: 14px; }
.seo-table tr:nth-child(even) td { background: #f8fbfb; }

/* ===== FAQ ACCORDION ===== */
.faq-list { display: flex; flex-direction: column; gap: 10px; }
.faq-item { background: var(--bg-white); border: 1px solid var(--border-light); border-radius: 10px; overflow: hidden; }
.faq-q {
  width: 100%; text-align: left; background: none; border: none;
  padding: 16px 18px; font-size: 15px; font-weight: 700; color: var(--brand-darker);
  cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.faq-q::after { content: '+'; font-size: 20px; color: var(--brand-primary); font-weight: 800; }
.faq-item.open .faq-q::after { content: '−'; }
.faq-a { display: none; padding: 0 18px 16px; color: var(--text-muted); font-size: 14.5px; }
.faq-item.open .faq-a { display: block; }

/* ===== SOCIAL MATRIX PILLS ===== */
.social-grid { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.social-pill {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px;
  border-radius: 99px; background: var(--bg-white); border: 1px solid var(--border-light);
  font-size: 13px; font-weight: 700; color: var(--text-main);
}
.social-pill:hover { border-color: var(--brand-primary); background: var(--brand-soft); color: var(--brand-primary); }

/* ===== SUBPAGE HERO ===== */
.page-hero {
  background: linear-gradient(135deg, var(--brand-darker) 0%, var(--brand-primary) 100%);
  color: #fff; padding: 46px 0; border-bottom: 3px solid var(--brand-accent);
}
.breadcrumb { font-size: 13px; color: rgba(255,255,255,0.75); margin-bottom: 10px; }
.breadcrumb a { color: var(--brand-accent); }
.page-hero h1 { font-size: clamp(26px, 3.6vw, 40px); font-weight: 900; margin-bottom: 12px; }
.page-hero p { max-width: 760px; color: #e2eff0; font-size: 15.5px; }

/* ===== CARDS & FORM ===== */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.info-card {
  background: #fff; border: 1px solid var(--border-light); border-radius: var(--radius-md);
  overflow: hidden; box-shadow: var(--shadow-sm); display: flex; flex-direction: column;
}
.info-card img { width: 100%; height: 190px; object-fit: cover; }
.info-card-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.info-card-meta { font-size: 12px; color: var(--brand-primary); font-weight: 700; margin-bottom: 6px; text-transform: uppercase; }
.info-card h3 { font-size: 18px; font-weight: 800; margin-bottom: 10px; color: var(--brand-darker); }
.info-card p { font-size: 14px; color: var(--text-muted); margin-bottom: 16px; flex: 1; }

.form-card { background: #fff; border: 1px solid var(--border-light); border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow-sm); }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 13.5px; font-weight: 700; margin-bottom: 6px; }
.form-control { width: 100%; padding: 11px 14px; border: 1px solid #cfd8df; border-radius: 8px; font-size: 14.5px; font-family: inherit; }
.form-control:focus { outline: none; border-color: var(--brand-primary); box-shadow: 0 0 0 3px rgba(0,0,0,0.08); }

.prose-card { background: #fff; border: 1px solid var(--border-light); border-radius: var(--radius-lg); padding: 32px; box-shadow: var(--shadow-sm); }
.prose-card h2 { font-size: 22px; color: var(--brand-primary); margin: 24px 0 10px; }
.prose-card h2:first-child { margin-top: 0; }
.prose-card p, .prose-card li { color: var(--text-muted); margin-bottom: 10px; }
.prose-card ul { padding-left: 20px; margin-bottom: 14px; }

/* ===== FOOTER ===== */
.site-footer {
  background: var(--brand-darker);
  color: #cdd8db;
  padding: 50px 0 24px;
  border-top: 3px solid var(--brand-accent);
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr 0.9fr; gap: 28px; margin-bottom: 34px; }
.footer-col h3 { color: #fff; font-size: 16px; font-weight: 800; margin-bottom: 14px; }
.footer-col p { font-size: 13.5px; line-height: 1.7; color: #b7c6ca; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-links a { color: #b7c6ca; font-size: 13.5px; }
.footer-links a:hover { color: var(--brand-accent); }
.payment-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.payment-grid img { width: 42px; height: 42px; border-radius: 8px; object-fit: cover; background: #fff; padding: 2px; }
.license-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.license-row img { height: 36px; width: auto; background: rgba(255,255,255,0.08); padding: 4px 8px; border-radius: 6px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12); padding-top: 18px;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px;
  font-size: 13px; color: #8fa3a8;
}

@media (max-width: 1024px) {
  .lobby-split { grid-template-columns: 1fr; }
  .provider-grid { grid-template-columns: repeat(4, 1fr); }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .game-strip { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .cards-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .burger-btn { display: inline-flex; }
  .main-nav {
    display: none; position: absolute; top: 70px; left: 0; right: 0;
    background: #fff; border-top: 1px solid var(--border-light);
    box-shadow: var(--shadow-md); padding: 14px 18px;
  }
  .main-nav.open { display: block; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 6px; }
  .has-dropdown .dropdown-menu { position: static; box-shadow: none; border: none; padding-left: 16px; }
  .two-col, .two-col.equal, .cards-3 { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .provider-grid, .provider-grid.cols-3 { grid-template-columns: repeat(2, 1fr); }
  .features-grid, .game-strip.cols-3, .footer-grid { grid-template-columns: 1fr; }
  .game-strip { grid-template-columns: repeat(2, 1fr); }
  .header-cta { padding: 9px 14px; font-size: 12.5px; }
}
