/* CSS Reset & Global Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  max-width: 100vw; /* Prevents horizontal overflow */
}

html, body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  max-width: 100vw;
  overflow-x: hidden; /* Prevents horizontal scrollbar */
  margin: 0;
  padding: 0;
  font-family: 'Roboto', sans-serif;
  background-color: #002e1a; /* Chrysocolla Coast BG */
  color: #ffffff;
}

main {
  flex: 1;
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden; /* Prevents horizontal scrollbar within main content */
}

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

/* Image and Media Responsiveness */
img, canvas, iframe, video, svg {
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  box-sizing: border-box;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  margin-bottom: 0.75em;
  line-height: 1.3;
}

p {
  margin-bottom: 1em;
  line-height: 1.8;
  font-size: 1.1rem;
}

a {
  color: #add8e6; /* Chrysocolla Coast Accent */
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: #ffffff;
  text-decoration: underline;
}

/* Header Styles */
.cjbloi-header-l-r-r {
  background: rgba(0, 46, 26, 0.8); /* Dark Green BG with slight transparency */
  padding: 20px 0;
  border-bottom: 1px solid rgba(173, 216, 230, 0.2); /* Subtle Accent Border */
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
}

.cjbloi-header-l-r-r .cjbloi-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cjbloi-logo {
  display: flex;
  align-items: center;
  font-weight: 700;
  font-size: 1.4em;
  color: #ffffff;
}

.cjbloi-logo span {
  margin-left: 5px;
}

.cjbloi-desktop-nav ul {
  display: flex;
  gap: 30px;
  list-style: none;
  padding: 0;
  margin: 0;
  align-items: center;
}

.cjbloi-desktop-nav a {
  color: #ffffff;
  font-weight: 700;
  padding: 8px 12px;
  border-radius: 8px;
  transition: background-color 0.3s ease, color 0.3s ease;
  display: inline-block; /* For padding/hover effect */
}

.cjbloi-desktop-nav a:hover {
  background-color: rgba(173, 216, 230, 0.2); /* Accent hover */
  color: #ffffff;
  text-decoration: none;
}

.cjbloi-header-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.cjbloi-age-flag {
  display: flex;
  align-items: center;
  background: rgba(0, 0, 0, 0.3);
  padding: 8px 12px;
  border-radius: 20px;
  font-size: 0.9em;
  font-weight: 700;
}

.cjbloi-age-flag img {
  margin-right: 5px;
  vertical-align: middle;
  width: 24px; /* Standard flag size */
  border-radius: 4px; /* Slight rounding for flag */
}

.cjbloi-hamburger {
  display: none; /* Hidden by default, shown on mobile */
  background: none;
  border: none;
  color: #ffffff;
  font-size: 2em;
  cursor: pointer;
  padding: 0 10px;
}

/* Mobile Menu */
.cjbloi-mobile-menu {
  display: none; /* Hidden by default */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 46, 26, 0.95); /* Darker Green for Overlay */
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  z-index: 999;
  overflow-y: auto;
  padding: 60px 20px;
}

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

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

.cjbloi-mobile-menu a {
  color: #ffffff;
  font-size: 1.5em;
  font-weight: 700;
  display: block;
  padding: 15px 0;
}

.cjbloi-close-menu {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  color: #ffffff;
  font-size: 2em;
  cursor: pointer;
}

/* Footer Styles */
.cjbloi-footer {
  padding: 60px 20px;
  background: rgba(10, 10, 10, 0.2); /* Dark, subtle footer background */
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: auto; /* Pushes footer to the bottom */
  width: 100%;
  box-sizing: border-box;
}

.cjbloi-footer .cjbloi-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.cjbloi-footer-contact {
  margin-top: 15px;
  font-size: 0.9em;
  text-align: left;
  opacity: 0.9;
  width: 100%; /* Ensure it takes full container width */
}

.cjbloi-footer-contact p {
  margin-bottom: 10px;
}

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

.cjbloi-footer ul li {
  margin-bottom: 10px; /* Space out footer links if they wrap */
}

.cjbloi-footer a {
  color: #ffffff;
  font-weight: 500;
  opacity: 0.9;
}

.cjbloi-footer a:hover {
  opacity: 1;
  text-decoration: underline;
}

.cjbloi-footer-section { /* Generic section for footer content */
  width: 100%;
  opacity: 0.8;
  font-size: 0.95em;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 15px;
  margin-top: 15px;
}

.cjbloi-footer-trust-box {
  background: rgba(255, 255, 255, 0.05);
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 15px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.cjbloi-footer-trust-box h4 {
  margin: 0 0 5px 0;
  color: #ffeb3b; /* Yellow for emphasis */
  font-size: 1.1em;
  text-transform: uppercase;
}

.cjbloi-footer-trust-box p {
  margin: 0;
  font-weight: bold;
  font-size: 1.2em;
}

.cjbloi-copyright {
  margin-top: 15px;
  text-align: center;
  font-size: 0.85em;
  opacity: 0.7;
}

.cjbloi-copyright a {
  opacity: 0.8;
}

.cjbloi-copyright a:hover {
  opacity: 1;
}

/* Content Section Styling */
.cjbloi-content-section {
  padding: 80px 20px;
  line-height: 1.8;
  font-size: 1.1rem;
  max-width: 100%; /* Ensure it respects container */
  box-sizing: border-box;
}

.cjbloi-content-section h1,
.cjbloi-content-section h2,
.cjbloi-content-section h3 {
  color: #add8e6; /* Accent color for headings */
}

.cjbloi-content-section p {
  max-width: 800px; /* Limit paragraph width for readability */
  margin-left: auto;
  margin-right: auto;
}

/* Hero Section - Centered Layout */
.cjbloi-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 140px 20px 100px 20px;
  gap: 50px;
  max-width: 1200px;
  margin: 0 auto;
  box-sizing: border-box;
  overflow: hidden; /* Prevent child overflow */
}

.cjbloi-hero-text {
  max-width: 100%; /* Ensure text takes full width if no image side-by-side */
  margin-bottom: 30px; /* Space before image in column layout */
}

.cjbloi-hero-text h1 {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: #ffffff;
  text-shadow: 0px 4px 15px rgba(0, 0, 0, 0.3);
}

.cjbloi-hero-text p {
  font-size: 1.3em;
  opacity: 0.9;
  max-width: 800px; /* Limit text width */
  margin-left: auto;
  margin-right: auto;
}

.cjbloi-hero-image-container {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto; /* Center the image container */
  aspect-ratio: 16/9; /* Maintain aspect ratio */
  position: relative; /* For potential overlays */
}

.cjbloi-hero-image-container img {
  width: 100%;
  height: 100%; /* Fill the container */
  object-fit: cover;
  border-radius: 20px; /* Rounded corners for the hero image */
  box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.4); /* Subtle depth */
}

/* Buttons */
.cjbloi-btn {
  display: inline-block;
  padding: 15px 30px;
  font-size: 1.1em;
  font-weight: 700;
  color: #ffffff;
  background-color: #008080; /* Primary Color */
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 10px rgba(0, 128, 128, 0.4); /* Subtle shadow matching primary color */
}

.cjbloi-btn:hover {
  background-color: #005a5a; /* Darker shade on hover */
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 128, 128, 0.5);
}

.cjbloi-btn.cjbloi-btn-secondary {
  background-color: #add8e6; /* Accent Color */
  color: #002e1a; /* Dark text for contrast */
  box-shadow: 0 4px 10px rgba(173, 216, 230, 0.4);
}

.cjbloi-btn.cjbloi-btn-secondary:hover {
  background-color: #8bbcd6; /* Darker shade on hover */
  box-shadow: 0 6px 15px rgba(173, 216, 230, 0.5);
}

/* Games Grid - Neo-Brutalist */
.cjbloi-game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 20px; /* Container padding */
  box-sizing: border-box;
}

.cjbloi-game-card {
  background-color: #ffffff; /* White background for cards */
  border: 4px solid #000000; /* Thick black border */
  box-shadow: 6px 6px 0px #000000; /* Hard shadow for neo-brutalist effect */
  border-radius: 10px; /* Slightly rounded corners */
  overflow: hidden; /* Ensure content stays within rounded borders */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column; /* Stack content vertically */
  height: 100%; /* Ensure cards in the same row have equal height */
}

.cjbloi-game-card:hover {
  transform: translate(-3px, -3px);
  box-shadow: 9px 9px 0px #000000; /* Shifted shadow on hover */
}

.cjbloi-game-card-image-wrapper {
  width: 100%;
  height: 200px; /* Fixed height for all card images */
  border-bottom: 4px solid #000000; /* Border below image */
  background-color: #f0f0f0; /* Placeholder background */
}

.cjbloi-game-card-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block; /* Remove extra space below image */
  border-radius: 6px 6px 0 0; /* Round top corners to match card */
}

.cjbloi-game-card-content {
  padding: 20px;
  flex-grow: 1; /* Allow content to take available space */
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* Push button to bottom if needed */
}

.cjbloi-game-card-content h3 {
  font-size: 1.5em;
  color: #002e1a; /* Dark green for game titles */
  margin-bottom: 10px;
}

.cjbloi-game-card-content p {
  font-size: 0.95em;
  color: #333333; /* Darker gray for description */
  margin-bottom: 15px;
  flex-grow: 1; /* Allow description to expand */
}

.cjbloi-game-card-content .cjbloi-btn {
  margin-top: auto; /* Push button to the bottom */
  width: 100%; /* Full width button */
  text-align: center;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .cjbloi-desktop-nav ul {
    display: none; /* Hide desktop nav on small screens */
  }

  .cjbloi-hamburger {
    display: block; /* Show hamburger icon */
  }

  .cjbloi-header-l-r-r .cjbloi-container {
    padding: 10px 15px; /* Smaller padding for mobile header */
  }

  .cjbloi-logo {
    font-size: 1.2em;
  }

  .cjbloi-hero {
    padding: 100px 20px 60px 20px;
    gap: 30px;
  }

  .cjbloi-hero-text h1 {
    font-size: 2.8em;
  }

  .cjbloi-hero-text p {
    font-size: 1.1em;
  }

  .cjbloi-game-grid {
    grid-template-columns: 1fr; /* Single column on mobile */
    padding: 0 15px; /* Adjust grid padding */
  }

  .cjbloi-game-card {
    box-shadow: 4px 4px 0px #000000; /* Smaller shadow on mobile */
  }

  .cjbloi-game-card:hover {
    transform: none; /* Disable hover transform on mobile for better touch */
    box-shadow: 4px 4px 0px #000000;
  }

  .cjbloi-game-card-content {
    padding: 15px;
  }

  .cjbloi-game-card-content h3 {
    font-size: 1.3em;
  }

  .cjbloi-btn {
    padding: 12px 25px;
    font-size: 1em;
  }

  .cjbloi-footer {
    padding: 40px 15px;
  }

  .cjbloi-footer ul {
    flex-direction: column;
    gap: 15px;
  }

  .cjbloi-footer-contact {
    text-align: center;
  }
}

@media (max-width: 480px) {
  .cjbloi-hero-text h1 {
    font-size: 2.2em;
  }

  .cjbloi-logo {
    font-size: 1.1em;
  }

  .cjbloi-age-flag {
    font-size: 0.8em;
    padding: 6px 10px;
  }

  .cjbloi-mobile-menu a {
    font-size: 1.3em;
  }

  .cjbloi-close-menu {
    font-size: 1.8em;
    top: 15px;
    right: 15px;
  }

  .cjbloi-footer-trust-box h4 {
    font-size: 1em;
  }

  .cjbloi-footer-trust-box p {
    font-size: 1.1em;
  }
}