/* CSS Reset & Base Styles */
*, *::before, *::after {
  box-sizing: inherit;
  max-width: 100vw;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px; /* Base font size for rem calculations and scaling */
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  max-width: 100vw;
  overflow-x: hidden;
  font-family: 'Palatino Linotype', Palatino, Georgia, serif;
  color: #e6ffea; /* Primary text color */
  background-color: #041a06; /* Primary background color */
}

body {
  flex: 1;
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  background: radial-gradient(ellipse at 20% 50%, rgba(125, 255, 107, 0.15) 0%, transparent 60%),
              radial-gradient(ellipse at 80% 20%, rgba(255, 215, 0, 0.15) 0%, transparent 50%),
              #041a06; /* Layered gradient background */
}

main {
  flex: 1;
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
  animation: fadeInUp 0.65s ease-out both;
}

p, li, td, span {
  font-size: 1rem; /* 16px base */
  line-height: 1.7;
  color: #e6ffea;
}

small, .small, figcaption, sub, sup, .legal, .disclaimer-text {
  font-size: 0.82rem; /* ~13px */
  line-height: 1.6;
  opacity: 0.9;
}

/* Container for centering content */
.ce3s07-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header Styles */
.ce3s07-header-l-r-r {
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 20px 0;
  background: rgba(0, 0, 0, 0.5); /* Semi-transparent black for glass effect */
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 30px rgba(125, 255, 107, 0.1);
}

.ce3s07-logo {
  display: flex;
  align-items: center;
  font-size: 1.6rem;
  font-weight: 700;
  color: #7dff6b; /* Primary color */
  text-decoration: none;
}

.ce3s07-logo span {
  margin-left: 8px;
}

.ce3s07-desktop-nav ul {
  display: flex;
  gap: 25px;
  align-items: center;
  justify-content: center;
  list-style: none;
}

.ce3s07-desktop-nav a {
  text-decoration: none;
  color: #e6ffea;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 5px 0;
  position: relative;
  transition: color 0.3s ease;
}

.ce3s07-desktop-nav a::after {
  content: '';
  display: block;
  height: 2px;
  background-color: #7dff6b; /* Primary color for underline */
  transform: scaleX(0);
  transition: transform 0.25s ease-out;
  transform-origin: left;
  position: absolute;
  bottom: -3px;
  left: 0;
  right: 0;
}

.ce3s07-desktop-nav a:hover {
  color: #7dff6b; /* Primary color on hover */
}

.ce3s07-desktop-nav a:hover::after {
  transform: scaleX(1);
}

.ce3s07-header-right {
  display: flex;
  align-items: center;
  gap: 15px;
}

.ce3s07-age-flag {
  display: flex;
  align-items: center;
  background: rgba(0, 0, 0, 0.3);
  padding: 6px 12px;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #ffccbc;
}

.ce3s07-hamburger {
  display: none; /* Hidden by default on desktop */
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 2px solid #fff;
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 1.4rem;
  cursor: pointer;
  color: #fff;
  transition: all 0.3s ease;
}

.ce3s07-hamburger:hover {
  background: rgba(255,255,255,0.1);
  border-color: #7dff6b;
  color: #7dff6b;
}

.ce3s07-mobile-menu {
  display: none; /* Hidden by default */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.92);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow-y: auto;
}

.ce3s07-mobile-menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: center;
}

.ce3s07-mobile-menu li {
  margin-bottom: 20px;
}

.ce3s07-mobile-menu a {
  text-decoration: none;
  color: #fff;
  font-size: 1.8rem;
  font-weight: 700;
  display: block;
  padding: 10px;
  transition: color 0.3s ease, transform 0.2s ease;
}

.ce3s07-mobile-menu a:hover {
  color: #7dff6b; /* Primary color */
  transform: scale(1.05);
}

.ce3s07-close-menu {
  position: absolute;
  top: 20px;
  right: 24px;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 2.5rem;
  cursor: pointer;
  line-height: 1;
  transition: color 0.3s ease;
}

.ce3s07-close-menu:hover {
  color: #7dff6b; /* Primary color */
}

/* Disclosure Bar */
#ce3s07-disclosure-bar {
  background: #1a0505;
  color: #ffccbc;
  text-align: center;
  padding: 10px 16px;
  font-size: 0.82em;
  font-weight: 700;
  letter-spacing: 0.4px;
  border-bottom: 2px solid #b71c1c;
  width: 100%;
  box-sizing: border-box;
  position: sticky;
  top: 73px; /* Adjust based on header height */
  z-index: 999;
}

/* Hero Section */
.ce3s07-hero {
  position: relative;
  min-height: 80vh;
  padding: 160px 40px 80px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: left;
  background-image: url('https://picsum.photos/seed/JungleKing/1920/1080'); /* Placeholder */
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  z-index: 2;
}

.ce3s07-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(4, 26, 6, 0.95) 0%, rgba(4, 26, 6, 0.7) 50%, rgba(4, 26, 6, 0.4) 100%);
  z-index: 1;
}

.ce3s07-hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  color: #fff;
  animation: slideInHero 0.7s 0.1s ease-out both;
}

.ce3s07-hero h1 {
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 1.15;
  margin-bottom: 20px;
  color: #7dff6b; /* Primary color for main heading */
  text-shadow: 0 5px 15px rgba(0,0,0,0.3);
  animation: slideInHero 0.7s 0.1s ease-out both;
}

.ce3s07-hero p {
  font-size: 1.1rem; /* Slightly larger than body base */
  line-height: 1.7;
  margin-bottom: 30px;
  opacity: 0.95;
  animation: slideInHero 0.7s 0.25s ease-out both;
}

/* Trust Badges */
.ce3s07-trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
  animation: slideInHero 0.7s 0.3s ease-out both;
}

.ce3s07-badge {
  background: rgba(0, 0, 0, 0.5);
  color: #ffcc00; /* Secondary color for emphasis */
  padding: 8px 16px;
  border-radius: 30px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.4px;
  border: 1px solid rgba(255, 215, 0, 0.4);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.2);
}

.ce3s07-badge::before {
  content: '✅'; /* Simple checkmark emoji */
  font-size: 0.9rem;
}

.ce3s07-badge.free::before { content: '🆓'; }
.ce3s07-badge.instant::before { content: '⚡'; }
.ce3s07-badge.no-money::before { content: '🚫'; }

/* Buttons */
.ce3s07-btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  background: linear-gradient(135deg, #ff6b35 0%, #ffb035 100%); /* Accent colors for gradient */
  color: #041a06; /* Dark text for contrast */
  box-shadow: 0 0 8px rgba(255,255,255,0.2);
  animation: btnGlow 2.5s ease-in-out infinite;
}

.ce3s07-btn:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 0 22px rgba(255, 107, 53, 0.6), 0 0 10px rgba(255, 176, 53, 0.4);
  filter: brightness(1.1);
}

/* Game Grid */
.ce3s07-game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin: 60px auto;
  padding: 0 20px;
  max-width: 1400px;
}

/* Game Card */
.ce3s07-game-card {
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.52);
  border-radius: 24px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  animation: cardEnter 0.5s ease-out both;
}

.ce3s07-game-card-image-wrapper {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  overflow: hidden;
  position: relative;
}

.ce3s07-game-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease-out;
}

.ce3s07-game-card-info {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  z-index: 2;
  background: rgba(0,0,0,0.4); /* Dark overlay for text */
  border-radius: 0 0 24px 24px; /* Match card radius */
}

.ce3s07-game-card-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: #7dff6b; /* Primary color */
  text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.ce3s07-game-card-description {
  font-size: 0.9rem;
  opacity: 0.85;
  line-height: 1.6;
}

.ce3s07-game-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.ce3s07-game-card:hover img {
  transform: scale(1.08);
}

/* Content Section */
.ce3s07-content-section {
  padding: 80px 20px;
  line-height: 1.8;
  font-size: 1.05rem; /* Slightly larger for readability */
  max-width: 900px; /* Constrain width for better reading */
  margin: 0 auto;
}

.ce3s07-content-section h2,
.ce3s07-content-section h3 {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  line-height: 1.2;
  margin-bottom: 25px;
  color: #7dff6b; /* Primary color for section headings */
  text-align: center;
}

.ce3s07-content-section h2 {
  margin-top: 40px;
}

.ce3s07-content-section p {
  margin-bottom: 20px;
  font-size: 1rem; /* Ensure p tags are consistent */
}

/* Footer */
.ce3s07-footer {
  padding: 40px 20px;
  background: rgba(0,0,0,0.15); /* Darker footer background */
  margin-top: auto; /* Pushes footer to the bottom */
  font-size: 0.9rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.ce3s07-footer ul {
  display: flex;
  gap: 20px;
  list-style: none;
  padding: 0;
  margin-bottom: 25px;
  flex-wrap: wrap;
  justify-content: center;
}

.ce3s07-footer a {
  text-decoration: none;
  color: #e6ffea;
  opacity: 0.85;
  transition: color 0.3s ease, opacity 0.3s ease;
}

.ce3s07-footer a:hover {
  color: #7dff6b; /* Primary color */
  opacity: 1;
}

.ce3s07-footer-contact p {
  margin: 5px 0;
  font-size: 0.95em;
}

.ce3s07-footer-contact strong {
  color: #ffcc00; /* Secondary color for emphasis */
}

.ce3s07-footer h4 {
  margin: 0 0 8px 0;
  color: #ffcc00; /* Secondary color */
  font-size: 1.3em;
  font-weight: 700;
  text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.ce3s07-footer p {
  margin: 0;
  opacity: 0.9;
  font-size: 1em;
}

.ce3s07-footer p.ce3s07-copyright {
  margin-top: 20px;
  font-size: 0.78em;
  opacity: 0.75;
  line-height: 1.55;
  text-align: center;
}

.ce3s07-footer .legal a {
  color: #ffcc00; /* Secondary color for links in legal text */
  text-decoration: underline;
}

/* Animations */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

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

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

@keyframes btnGlow {
  0%, 100% { box-shadow: 0 0 8px rgba(255,255,255,0.2); }
  50% { box-shadow: 0 0 22px rgba(255,107,53,0.6); } /* Accent color glow */
}

@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

/* Responsive Adjustments */

/* === TABLET (≤1024px) === */
@media (max-width: 1024px) {
  .ce3s07-hero {
    padding: 100px 5% 60px !important;
    text-align: center !important;
  }
  .ce3s07-hero h1 {
    font-size: clamp(2rem, 5vw, 3rem) !important;
  }
  .ce3s07-hero p {
    font-size: 1rem !important;
  }
  .ce3s07-hero-content {
    max-width: 100%;
  }
  .ce3s07-game-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)) !important;
    gap: 24px !important;
  }
  .ce3s07-game-card {
    border-radius: 18px !important;
  }
  .ce3s07-game-card-info {
    padding: 16px !important;
  }
  .ce3s07-game-card-title {
    font-size: 1.2rem !important;
  }
  .ce3s07-content-section {
    padding: 60px 5% !important;
  }
}

/* === MOBILE (≤768px) === */
@media (max-width: 768px) {
  html, body { font-size: 16px; overflow-x: hidden; }
  p, li, td, span { font-size: max(15px, 1rem) !important; }
  small, .small, figcaption, sub, sup, .legal, .disclaimer-text { font-size: max(13px, 0.82rem) !important; }

  .ce3s07-header-l-r-r {
    padding: 12px 16px !important;
  }

  .ce3s07-desktop-nav { display: none !important; }
  .ce3s07-hamburger { display: flex !important; } /* Show hamburger */

  .ce3s07-hero {
    padding: 60px 16px 40px !important;
    min-height: unset !important;
    background-attachment: scroll !important; /* Fixed attachment can cause issues on mobile */
  }
  .ce3s07-hero h1, .ce3s07-hero-text h1 {
    font-size: clamp(1.6rem, 7vw, 2.4rem) !important;
    line-height: 1.2 !important;
    margin-bottom: 16px !important;
  }
  .ce3s07-hero p {
    font-size: max(15px, 1rem) !important;
  }

  .ce3s07-game-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)) !important; /* Slightly smaller cards */
    gap: 16px !important;
    padding: 0 12px !important;
    margin: 40px auto !important;
  }
  .ce3s07-game-card {
    border-radius: 16px !important;
  }
  .ce3s07-game-card-image-wrapper {
    height: 160px !important; /* Reduced card image height */
  }
  .ce3s07-game-card-title {
    font-size: 1.1rem !important;
  }
  .ce3s07-btn {
    padding: 12px 24px !important;
    font-size: max(14px, 0.875rem) !important;
  }
  .ce3s07-content-section {
    padding: 40px 16px !important;
    font-size: max(15px, 1rem) !important;
  }
  .ce3s07-footer {
    padding: 30px 16px !important;
    font-size: max(14px, 0.875rem) !important;
  }
  .ce3s07-footer ul {
    flex-direction: column !important;
    gap: 15px !important;
  }
  .ce3s07-footer h4 {
    font-size: 1.2em !important;
  }
}

/* === SMALL MOBILE (≤480px) === */
@media (max-width: 480px) {
  .ce3s07-hero h1, .ce3s07-hero-text h1 {
    font-size: clamp(1.4rem, 8vw, 2rem) !important;
  }
  .ce3s07-game-grid {
    grid-template-columns: 1fr !important; /* Single column on very small screens */
  }
  .ce3s07-game-card-image-wrapper {
    height: 180px !important; /* Slightly larger image on single column */
  }
  .ce3s07-btn {
    padding: 12px 20px !important;
    font-size: 14px !important;
  }
}

/* === DESKTOP ONLY: Override mobile styles === */
@media (min-width: 769px) {
  .ce3s07-hamburger { display: none !important; } /* Hide hamburger on desktop */
  .ce3s07-desktop-nav { display: flex !important; } /* Show desktop nav */

  /* Ensure Desktop Nav links are centered within their container if needed */
  .ce3s07-desktop-nav ul {
    justify-content: center;
  }
}