/* ============================================
   UG85.NET Clone - CSS Design System
   ============================================ */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700;900&display=swap');

/* --- CSS Variables --- */
:root {
  /* Colors */
  --color-primary-green: #1a6d1a;
  --color-dark-green: #0d4d0d;
  --color-darker-green: #0a3a0a;
  --color-light-green: #2e8b2e;
  --color-gold: #d4a843;
  --color-gold-light: #e8c96a;
  --color-gold-dark: #b8912f;
  --color-white: #ffffff;
  --color-black: #000000;
  --color-gray-100: #f5f5f5;
  --color-gray-200: #e0e0e0;
  --color-gray-600: #666666;
  --color-gray-800: #333333;
  --color-red: #e74c3c;
  --color-orange: #f39c12;
  --color-bg-body: #181818;
  --color-bg-header: #181818;
  --color-bg-nav: #1a6d1a;
  --color-bg-section-alt: #f9f6f0;
  --color-bg-footer: #0a2e0a;

  /* Typography */
  --font-primary: 'Roboto', sans-serif;
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.25rem;
  --font-size-2xl: 1.5rem;
  --font-size-3xl: 2rem;
  --font-size-4xl: 2.5rem;

  /* Spacing */
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  --spacing-2xl: 3rem;
  --spacing-3xl: 4rem;

  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 20px;
  --radius-full: 50%;

  /* Shadows */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.15);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.2);
  --shadow-gold: 0 0 15px rgba(212, 168, 67, 0.3);

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;

  /* Layout */
  --max-width: 1200px;
  --header-height: 60px;
  --nav-height: 50px;
}

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

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

body {
  font-family: var(--font-primary);
  color: var(--color-white);
  background-color: var(--color-bg-body);
  line-height: 1.6;
  overflow-x: hidden;
}

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

ul, ol {
  list-style: none;
}

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

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

/* ============================================
   HEADER
   ============================================ */
.site-header {
  background: var(--color-bg-header);
  padding: var(--spacing-sm) 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  font-size: var(--font-size-xl);
  font-weight: 800;
  color: var(--color-white);
  position: relative;
  overflow: hidden;
}

/* Shine effect trên header logo */
.logo::after {
  content: '';
  position: absolute;
  top: 0;
  left: -150%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.55) 50%, rgba(255,255,255,0) 100%);
  transform: skewX(-25deg);
  animation: goldShine 3s infinite;
  pointer-events: none;
  /* Mask shine theo hình dạng thật của logo */
  -webkit-mask: url('../images/logo.webp') no-repeat left center;
  mask: url('../images/logo.webp') no-repeat left center;
  -webkit-mask-size: auto 100%;
  mask-size: auto 100%;
}

.logo-img {
  height: 48px;
  width: auto;
  display: block;
  position: relative;
  z-index: 1;
}

/* Footer logo shine wrapper */
.footer-logo-wrap {
  position: relative;
  overflow: hidden;
  display: inline-block;
  max-width: 220px;
  margin-bottom: var(--spacing-md);
  margin-left: -15px;
}

.footer-logo-wrap::after {
  content: '';
  position: absolute;
  top: 0;
  left: -150%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.55) 50%, rgba(255,255,255,0) 100%);
  transform: skewX(-25deg);
  animation: goldShine 3s infinite;
  pointer-events: none;
  z-index: 1;
  /* Mask shine theo hình dạng thật của footer logo */
  -webkit-mask: url('../images/logo.webp') no-repeat center;
  mask: url('../images/logo.webp') no-repeat center;
  -webkit-mask-size: contain;
  mask-size: contain;
}

/* Social Icons */
.social-icons {
  display: flex;
  gap: var(--spacing-sm);
  align-items: center;
}

.social-icons a {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--font-size-sm);
  transition: transform var(--transition-fast), background var(--transition-fast);
}

.social-icons a:hover {
  transform: scale(1.15);
}

.social-icons .icon-x { background: #000; color: #fff; }
.social-icons .icon-pinterest { background: #e60023; color: #fff; }
.social-icons .icon-youtube { background: #ff0000; color: #fff; }
.social-icons .icon-500px { background: #0099e5; color: #fff; }

/* Auth Buttons New Style */
.auth-buttons {
  display: flex;
  gap: 10px;
  align-items: center;
}

.header-button-1 .header-button, 
.header-button-2 .header-button {
  position: relative;
  display: inline-block;
}

.header-button-1 .header-button a, 
.header-button-2 .header-button a {
  color: #fff;
  background: linear-gradient(to bottom, #ff0000 50%, #ffff00);
  height: 37px;
  min-width: 120px;
  font-size: 15px;
  font-weight: 800;
  display: inline-block;
  position: relative;
  text-decoration: none;
  line-height: 37px;
  text-align: center;
  border-radius: 30px;
  overflow: hidden;
  transition: all 0.5s;
  animation: shockwave 2s infinite;
  z-index: 2;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

/* Yellow Shine Effect Inside Button */
.header-button-1 .header-button a::before, 
.header-button-2 .header-button a::before {
  content: '';
  position: absolute;
  top: 0;
  left: -150%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, rgba(255, 206, 33, 0) 0%, rgba(255, 206, 33, 0.7) 50%, rgba(255, 206, 33, 0) 100%);
  transform: skewX(-25deg);
  animation: goldShine 3s infinite;
  z-index: 3;
}

.header-button-1 .header-button::before, 
.header-button-1 .header-button::after, 
.header-button-2 .header-button::before, 
.header-button-2 .header-button::after {
  content: "";
  position: absolute;
  inset: -8px;
  border: 3px solid transparent; /* Explicitly transparent */
  border-radius: 10px;
  animation: clippath 3s infinite linear;
  z-index: 1;
}

/* Explicitly set colors for each pseudo-element */
.header-button-1 .header-button::before, 
.header-button-2 .header-button::before {
  border-color: #ffce21; /* Yellow */
}

.header-button-1 .header-button::after, 
.header-button-2 .header-button::after {
  border-color: #ff0000; /* Red */
  animation-delay: -1.5s;
}

/* Improved clippath to create cleaner L-shapes and avoid clipping */
@keyframes clippath {
  0%, 100% {
    clip-path: polygon(0 0, 45px 0, 45px 100%, 0 100%, 0 45px, 0 0); /* Simple corner box clipping */
    clip-path: inset(0 calc(100% - 40px) calc(100% - 40px) 0); /* Even simpler: Top-Left corner */
  }
  25% {
    clip-path: inset(0 0 calc(100% - 40px) calc(100% - 40px)); /* Top-Right corner */
  }
  50% {
    clip-path: inset(calc(100% - 40px) 0 0 calc(100% - 40px)); /* Bottom-Right corner */
  }
  75% {
    clip-path: inset(calc(100% - 40px) calc(100% - 40px) 0 0); /* Bottom-Left corner */
  }
}

/* Shine animation for auth buttons */
@keyframes goldShine {
    0% { left: -150%; }
    50% { left: 150%; }
    100% { left: 150%; }
}
/* ============================================
   NAVIGATION
   ============================================ */
.site-nav {
  background: #232323;
  border-bottom: 3px solid var(--color-gold);
  position: sticky;
  top: var(--header-height);
  z-index: 999;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 0;
}

.nav-menu li {
  position: relative;
}

.nav-menu li a {
  display: block;
  padding: 14px 22px;
  font-weight: 700;
  font-size: 12px;
  color: var(--color-white);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all var(--transition-fast);
  position: relative;
}

.nav-menu li a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 3px;
  background: var(--color-gold);
  transition: width var(--transition-normal);
}

.nav-menu li a:hover::after,
.nav-menu li a.active::after {
  width: 80%;
}

.nav-menu li a:hover {
  color: var(--color-gold);
  background: rgba(255, 255, 255, 0.05);
}

.nav-menu li a.active {
  color: var(--color-gold);
}

/* UG85 dropdown pill */
.nav-pill {
  background: rgba(255, 255, 255, 0.25);
  color: var(--color-white);
  padding: 5px 12px;
  border-radius: var(--radius-xl);
  display: inline-flex;
  align-items: center;
  transition: all 0.3s ease;
  font-size: 0.95rem;
}

.nav-menu li:hover .nav-pill {
  background: rgba(255, 255, 255, 0.35);
}

/* Dropdown Menu */
.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--color-primary-green);
  min-width: 220px;
  border-radius: 4px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.5);
  z-index: 100;
  border: 2px solid var(--color-gold);
  padding: 10px 0;
}

.nav-menu li:hover .dropdown-menu {
  display: block;
  animation: fadeDown 0.3s ease;
}

.dropdown-menu li a {
  padding: 12px 20px;
  font-size: 0.95rem;
  border-bottom: none;
  color: var(--color-white);
  text-align: left;
  display: block;
  background: transparent !important;
}

.dropdown-menu li a::after {
  display: none !important;
}

.dropdown-menu li a:hover {
  color: var(--color-gold) !important;
}

/* ============================================
   STICKY HEADER
   ============================================ */
.header-wrapper {
  position: relative;
  width: 100%;
  z-index: 1000;
  transition: transform 0.4s ease-in-out, background-color 0.4s ease-in-out;
}

.header-wrapper.is-sticky {
  position: fixed;
  top: 0;
  left: 0;
  background-color: rgba(6, 49, 29, 0.92);
  backdrop-filter: blur(10px);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
  animation: slideDown 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.header-wrapper.is-sticky .site-header,
.header-wrapper.is-sticky .site-nav {
  background: transparent !important;
}

.header-placeholder {
  display: none;
  width: 100%;
}

@keyframes slideDown {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(0); }
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 10px;
  z-index: 1001;
}

.hamburger span {
  display: block;
  width: 25px;
  height: 3px;
  background: var(--color-white);
  border-radius: 2px;
  transition: all var(--transition-normal);
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* ============================================
   HERO SLIDER
   ============================================ */
.hero-slider {
  position: relative;
  width: 100%;
  aspect-ratio: 1920 / 600;
  height: auto;
  overflow: hidden;
  background: var(--color-darker-green);
}

@media (max-width: 768px) {
  .hero-slider {
    aspect-ratio: 800 / 400; /* Kích thước tối ưu cho độ phân giải mobile */
  }
}

.slider-track {
  display: flex;
  height: 100%;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.slide {
  min-width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slide-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--spacing-xl);
}

.slide-1 {
  background: linear-gradient(135deg, #1a5c1a 0%, #0d3d0d 50%, #1a5c1a 100%);
}

.slide-2 {
  background: linear-gradient(135deg, #1a4a6d 0%, #0d2d4d 50%, #1a4a6d 100%);
}

.slide-3 {
  background: linear-gradient(135deg, #6d1a1a 0%, #4d0d0d 50%, #6d1a1a 100%);
}

.slide-logo {
  margin-bottom: var(--spacing-md);
}

.slide-logo img {
  height: 50px;
}

.slide-logo-text {
  font-size: var(--font-size-2xl);
  font-weight: 800;
  color: var(--color-gold);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.slide-title {
  font-size: var(--font-size-4xl);
  font-weight: 900;
  color: var(--color-white);
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
  line-height: 1.2;
  margin-bottom: var(--spacing-sm);
  text-transform: uppercase;
}

.slide-subtitle {
  font-size: var(--font-size-3xl);
  font-weight: 800;
  color: var(--color-gold);
  text-shadow: 0 3px 10px rgba(0, 0, 0, 0.5);
  text-transform: uppercase;
}

/* Slide image placeholder */
.slide-image-placeholder {
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--font-size-sm);
  color: rgba(255, 255, 255, 0.4);
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
}

.slide-content {
  position: relative;
  z-index: 1;
  text-align: center;
}

/* Slider Controls */
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 45px;
  height: 45px;
  border-radius: var(--radius-full);
  background: rgba(0, 0, 0, 0.4);
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: var(--color-white);
  font-size: var(--font-size-xl);
  cursor: pointer;
  display: none !important;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: all var(--transition-fast);
  backdrop-filter: blur(4px);
}

.slider-btn:hover {
  background: rgba(212, 168, 67, 0.6);
  border-color: var(--color-gold);
}

.slider-btn-prev { left: 15px; }
.slider-btn-next { right: 15px; }

/* Slider Dots */
.slider-dots {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.slider-dot {
  width: 10px;
  height: 10px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: all var(--transition-fast);
  border: none;
}

.slider-dot.active {
  background: var(--color-gold);
  transform: scale(1.3);
}

/* ============================================
   PROMOTIONS SECTION
   ============================================ */
.promotions-section {
  background: transparent;
  padding: var(--spacing-3xl) 0;
}

.section-title {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 28px;
  font-weight: 800;
  margin-bottom: var(--spacing-xl);
  gap: var(--spacing-md);
}

.section-title .gradient-text {
  text-transform: uppercase;
  background-image: linear-gradient(-225deg, #25e360 0%, #fde25e 29%, #ff1361 67%, #fff800 100%);
  background-size: 200% auto;
  color: #fff;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: textclip 2s cubic-bezier(0.4, 0, 1, 1) infinite;
  display: inline-block;
}

@keyframes textclip {
  to {
    background-position: 200% center;
  }
}

.section-title::before,
.section-title::after {
  content: '';
  flex-grow: 1;
  height: 2px;
  background: rgba(31, 123, 31, 0.5);
}

.promo-banners {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--spacing-xl);
  margin-bottom: var(--spacing-2xl);
}

.promo-banner {
  display: flex;
  background: rgba(0, 0, 0, 0.4);
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 250px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(212, 168, 67, 0.2);
  transition: all var(--transition-normal);
  text-decoration: none;
}

.promo-banner:hover {
  transform: translateY(-5px);
  border-color: var(--color-gold);
  box-shadow: var(--shadow-gold);
}

.promo-banner .placeholder-text {
  font-size: var(--font-size-xl);
  font-weight: 700;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 1px;
}

.intro-seo-text {
  text-align: left;
  max-width: 1000px;
  margin: 0 auto;
}

.intro-title {
  text-align: center;
  font-size: var(--font-size-2xl);
  font-weight: 800;
  color: var(--color-gold);
  margin-bottom: var(--spacing-md);
  text-transform: uppercase;
  line-height: 1.4;
}

/* ============================================
   CONTENT SECTIONS
   ============================================ */
.content-section {
  padding: var(--spacing-3xl) 0;
}
.promotions-section .container {
  max-width: 1000px;
}


.content-section .container {
  max-width: 1000px;
}

.content-section:nth-child(even) {
  background: rgba(0, 0, 0, 0.15);
}

.content-section h2 {
  font-size: var(--font-size-2xl);
  font-weight: 800;
  color: var(--color-gold);
  text-align: center;
  margin-bottom: var(--spacing-xl);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.content-section h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--color-gold);
  margin: var(--spacing-sm) auto 0;
}

.subtitle-left {
  font-size: var(--font-size-2xl);
  font-weight: 800;
  color: var(--color-gold);
  margin-bottom: var(--spacing-md);
  text-transform: uppercase;
  text-align: left;
}

.text-left {
  text-align: left !important;
}

.mt-3 { margin-top: var(--spacing-md); }
.mt-4 { margin-top: var(--spacing-lg); }

.overview-banner {
  width: 100%;
  height: auto;
  background: var(--color-darker-green);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(212, 168, 67, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-lg);
}

.overview-placeholder-text {
  font-size: var(--font-size-2xl);
  font-weight: 800;
  color: rgba(255, 255, 255, 0.3);
  letter-spacing: 2px;
}

.content-text {
  font-size: var(--font-size-base);
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.8;
  text-align: left;
}

.content-section table {
  width: 100%;
  min-width: 600px;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.9rem;
  color: #ccc;
}

.content-section table thead tr {
  border-bottom: 2px solid rgba(255, 255, 255, 0.2);
}

.content-section table tbody tr {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.content-section table th,
.content-section table td {
  padding: 12px 10px;
}

.content-section table th,
.content-section table td:first-child {
  font-weight: 700;
  color: var(--color-white);
}

/* Feature Cards (Ưu thế) */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--spacing-xl);
  margin-top: var(--spacing-xl);
}

.feature-card {
  background: linear-gradient(145deg, rgba(26, 109, 26, 0.4), rgba(10, 58, 10, 0.6));
  border: 1px solid rgba(212, 168, 67, 0.2);
  border-radius: var(--radius-lg);
  padding: var(--spacing-xl);
  text-align: center;
  transition: all var(--transition-normal);
}

.feature-card:hover {
  transform: translateY(-5px);
  border-color: var(--color-gold);
  box-shadow: var(--shadow-gold);
}

.feature-icon {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--color-gold), var(--color-gold-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--spacing-md);
  font-size: var(--font-size-xl);
  color: var(--color-dark-green);
}

.feature-card h3 {
  font-size: var(--font-size-lg);
  color: var(--color-gold);
  margin-bottom: var(--spacing-sm);
  font-weight: 700;
}

.feature-card p {
  font-size: var(--font-size-sm);
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
}

/* Category Cards (Lĩnh vực) */
.category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-xl);
  margin-top: var(--spacing-xl);
}

.category-card {
  background: linear-gradient(145deg, rgba(26, 109, 26, 0.3), rgba(10, 58, 10, 0.5));
  border: 1px solid rgba(212, 168, 67, 0.15);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition-normal);
}

.category-card:hover {
  transform: translateY(-5px);
  border-color: var(--color-gold);
  box-shadow: var(--shadow-gold);
}

.category-card-image {
  width: 100%;
  height: 180px;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.3);
  font-size: var(--font-size-sm);
  overflow: hidden;
}

.category-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.category-card-body {
  padding: var(--spacing-lg);
}

.category-card h3 {
  font-size: var(--font-size-lg);
  color: var(--color-gold);
  margin-bottom: var(--spacing-sm);
  font-weight: 700;
}

.category-card p {
  font-size: var(--font-size-sm);
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
}

/* Guide Steps */
.guide-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-xl);
  margin-top: var(--spacing-xl);
}

.guide-step {
  text-align: center;
  padding: var(--spacing-xl);
  background: linear-gradient(145deg, rgba(26, 109, 26, 0.3), rgba(10, 58, 10, 0.5));
  border: 1px solid rgba(212, 168, 67, 0.15);
  border-radius: var(--radius-lg);
  transition: all var(--transition-normal);
}

.guide-step:hover {
  border-color: var(--color-gold);
  box-shadow: var(--shadow-gold);
}

.step-number {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--color-gold), var(--color-gold-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--spacing-md);
  font-size: var(--font-size-xl);
  font-weight: 800;
  color: var(--color-dark-green);
}

.guide-step h3 {
  font-size: var(--font-size-lg);
  color: var(--color-gold);
  margin-bottom: var(--spacing-sm);
  font-weight: 700;
}

.guide-step p {
  font-size: var(--font-size-sm);
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
}

/* FAQ Accordion */
.faq-list {
  max-width: 800px;
  margin: var(--spacing-xl) auto 0;
}

.faq-item {
  margin-bottom: var(--spacing-sm);
  border: 1px solid rgba(212, 168, 67, 0.2);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: rgba(0, 0, 0, 0.2);
}

.faq-question {
  width: 100%;
  padding: var(--spacing-md) var(--spacing-lg);
  background: transparent;
  border: none;
  color: var(--color-gold);
  font-size: var(--font-size-base);
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: left;
  font-family: var(--font-primary);
  transition: background var(--transition-fast);
}

.faq-question:hover {
  background: rgba(212, 168, 67, 0.1);
}

.faq-question .faq-icon {
  font-size: var(--font-size-xl);
  transition: transform var(--transition-normal);
  flex-shrink: 0;
  margin-left: var(--spacing-md);
}

.faq-item.active .faq-question .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: none;
  overflow: visible;
}

.faq-answer-inner {
  padding: 0 var(--spacing-lg) var(--spacing-lg);
  font-size: var(--font-size-sm);
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.7;
}

.faq-item.active .faq-answer {
  max-height: none;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: var(--color-bg-footer);
  padding: var(--spacing-3xl) 0 var(--spacing-xl);
  border-top: 3px solid var(--color-gold);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--spacing-2xl);
}

.footer-col h3 {
  font-size: var(--font-size-base);
  font-weight: 700;
  color: var(--color-gold);
  text-transform: uppercase;
  margin-bottom: var(--spacing-lg);
  letter-spacing: 1px;
  position: relative;
  padding-bottom: var(--spacing-sm);
}

.footer-col h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--color-gold);
}

.footer-col ul li {
  margin-bottom: var(--spacing-sm);
}

.footer-col ul li a {
  font-size: var(--font-size-sm);
  color: rgba(255, 255, 255, 0.7);
  transition: color var(--transition-fast), padding-left var(--transition-fast);
}

.footer-col ul li a:hover {
  color: var(--color-gold);
  padding-left: 5px;
}

.footer-col p {
  font-size: var(--font-size-sm);
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.7;
  margin-bottom: var(--spacing-xs);
}

.footer-col .contact-item {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-sm);
  font-size: var(--font-size-sm);
  color: rgba(255, 255, 255, 0.7);
}

.footer-col .contact-item i {
  color: var(--color-gold);
  width: 16px;
  text-align: center;
}

.footer-bottom {
  text-align: center;
  padding-top: var(--spacing-xl);
  margin-top: var(--spacing-xl);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
  font-size: var(--font-size-sm);
  color: rgba(255, 255, 255, 0.5);
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Scroll animation classes */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 992px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .category-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }


  .slide-title {
    font-size: var(--font-size-3xl);
  }

  .slide-subtitle {
    font-size: var(--font-size-2xl);
  }
}

@media (max-width: 768px) {
  /* --- Mobile Header Redesign --- */
  .header-wrapper {
    position: relative;
    padding-top: 60px;
    background-color: var(--color-darker-green) !important;
  }
  
  .header-wrapper::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 60px;
    background-color: var(--color-primary-green);
    z-index: 0;
  }

  .header-wrapper.is-sticky::before {
    background-color: rgba(26, 109, 26, 0.92);
  }

  .site-header, .site-nav {
    background: transparent !important;
    position: static !important;
  }

  .site-header .header-inner,
  .site-nav .nav-inner {
    position: static !important;
  }

  .site-header .header-inner {
    padding: 12px 10px;
    justify-content: center;
  }

  .site-nav .nav-inner {
    padding: 0;
  }

  .logo {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
  }

  .auth-buttons {
    width: 100%;
    justify-content: center;
    gap: 15px;
  }

  .auth-buttons .btn {
    flex: 1;
    max-width: 150px;
    justify-content: center;
    padding: 8px 10px;
    font-size: 0.85rem;
  }

  .social-icons {
    display: none;
  }

  .hamburger {
    display: flex;
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 10;
  }

  .nav-menu {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-darker-green);
    border-top: 2px solid var(--color-gold);
    box-shadow: var(--shadow-lg);
    z-index: 20;
  }

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

  .nav-menu li a {
    padding: 12px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }

  .dropdown-menu {
    position: static;
    border-radius: 0;
    border-top: none;
    background: rgba(0, 0, 0, 0.2);
  }

  .promo-banners {
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
  }

  .promo-banner {
    height: 150px;
  }

  .overview-banner {
    height: 250px;
  }

  .intro-seo-text.animate-on-scroll {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .intro-title {
    font-size: var(--font-size-xl);
  }

  .subtitle-left {
    font-size: var(--font-size-xl);
  }

  .overview-placeholder-text {
    font-size: var(--font-size-xl);
  }

  .section-title {
    flex-direction: column;
    gap: var(--spacing-sm);
  }

  .section-title::before,
  .section-title::after {
    max-width: 100%;
    width: 100%;
  }

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

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

  .guide-steps {
    grid-template-columns: 1fr;
  }

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

}

/* ============================================
   GAMES GRID
   ============================================ */
.games-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  justify-items: center;
  align-items: center;
  margin-top: 20px;
}
.game-item {
  width: 100%;
  max-width: 250px;
  text-align: center;
}
.game-link {
  display: inline-block;
  position: relative;
  text-decoration: none;
  width: 100%;
}
.game-item img {
  width: 100%;
  height: auto;
  border-radius: 50%;
  transition: transform 0.3s ease;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}
.game-label {
  display: inline-block;
  position: relative;
  margin-top: -25px; /* Overlap the image bottom */
  z-index: 2;
  background: linear-gradient(180deg, #d32f2f 0%, #b71c1c 100%);
  color: #fff;
  font-weight: 900;
  font-size: 18px;
  text-transform: uppercase;
  padding: 6px 20px;
  border-radius: 20px;
  border: 2px solid #ffcc00;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.7);
  letter-spacing: 1px;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
  transition: transform 0.3s ease;
}
.game-item:hover img {
  transform: scale(1.05);
}
.game-item:hover .game-label {
  transform: scale(1.1);
}
@media (max-width: 768px) {
  .games-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
}

/* ============================================
   MESSENGER SUPPORT BUTTON
   ============================================ */
.messenger-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0099FF, #0066FF);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  box-shadow: 0 4px 16px rgba(0, 102, 255, 0.4);
  z-index: 9999;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  animation: messengerPulse 2s infinite;
  text-decoration: none;
}

.messenger-btn:hover {
  transform: scale(1.12);
  box-shadow: 0 6px 24px rgba(0, 102, 255, 0.6);
  animation: none;
}

@keyframes messengerPulse {
  0%, 100% { box-shadow: 0 4px 16px rgba(0, 102, 255, 0.4); }
  50% { box-shadow: 0 4px 24px rgba(0, 102, 255, 0.7); }
}

/* FAQ section moved from inline page HTML for WordPress editor compatibility. */
.faq-container {
  margin-bottom: var(--spacing-4xl);
}

.faq-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.faq-item:first-child {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.faq-item summary {
  list-style: none;
  padding: 18px 15px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-white);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: background 0.25s, color 0.25s;
  user-select: none;
}

.faq-item summary:hover {
  background: rgba(255, 255, 255, 0.04);
}

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

.faq-item summary::marker {
  content: '';
}

.faq-item summary::before {
  content: '';
  flex-shrink: 0;
  display: inline-block;
  width: 10px;
  height: 10px;
  border-right: 2px solid #888;
  border-bottom: 2px solid #888;
  transform: rotate(45deg);
  transition: transform 0.3s ease, border-color 0.3s;
}

.faq-item[open] summary {
  color: #1f7b1f;
}

.faq-item[open] summary::before {
  transform: rotate(-135deg);
  border-color: #1f7b1f;
}

.faq-answer {
  padding: 0 15px 20px 37px;
  font-size: 0.9rem;
  color: #bbb;
  line-height: 1.75;
  word-wrap: break-word;
  overflow-wrap: break-word;
  white-space: normal;
  overflow: visible;
  max-width: 100%;
  animation: faqFadeIn 0.3s ease;
}

@keyframes faqFadeIn {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* News section moved from inline page HTML for WordPress editor compatibility. */
.news-section {
  padding: 0 0 var(--spacing-3xl);
}

.news-header {
  font-size: var(--font-size-2xl);
  font-weight: 800;
  color: #1f7b1f;
  margin-bottom: var(--spacing-xl);
  display: flex;
  align-items: center;
  text-transform: uppercase;
}

.news-header::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  border-right: 2px solid #1f7b1f;
  border-bottom: 2px solid #1f7b1f;
  transform: translateY(-2px) rotate(45deg);
  margin-right: 15px;
}

.news-header::after {
  content: '';
  flex-grow: 1;
  height: 1px;
  background: rgba(31, 123, 31, 0.5);
  margin-left: 15px;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.news-card {
  background: var(--color-white);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
}

.news-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

.news-thumbnail {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
}

.news-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-date {
  position: absolute;
  top: 0;
  left: 0;
  background: var(--color-white);
  color: var(--color-gold);
  padding: 8px 12px;
  text-align: center;
  font-weight: 800;
  font-size: 14px;
  border-bottom-right-radius: 4px;
  line-height: 1.2;
}

.news-content {
  padding: 15px 10px;
  text-align: center;
  flex-grow: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.news-title {
  color: var(--color-black);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  margin: 0;
  line-height: 1.5;
}

@media (max-width: 991px) {
  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 575px) {
  .news-grid {
    grid-template-columns: 1fr;
  }
}
