html {
  overflow-x:hidden;
}

body {
  margin: 0;
  padding: 0;
  font-family: Montserrat, sans-serif;
  background-color: #F5F5F5;
  color: #000;
}


.header-section {
  width: 100%;
  position: sticky;
  top: 0;
  z-index: 999;
  background-color: black;
  padding: 10px 30px; /* was 20px 40px */
  box-sizing: border-box;
}
.header {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0; /* was 20px 40px */
  color: white;
  background-color: #000000;
  box-sizing: border-box;
}

.title-block {
  display: flex;
  flex-direction: column;
}

.title {
  font-size: 2rem; /* was 40px */
  margin: 0;
}

.subtitle {
  font-size: 1rem; /* was 20px */
  color: #888;
  margin-top: 6px; /* was 10px */
}

.navbar {
  margin-top: 16px;
  background-color: #E7DFF8;
  display: inline-flex;
  gap: 20px; /* was 40px */
  padding: 10px 20px; /* was 15px 30px */
  border-radius: 8px;
  font-size: 0.95rem;
}

.navbar a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
}

.content-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  padding: 40px 40px; /* add horizontal padding */
}

.item {
  text-align: center;
}

.item img {
  width: 100%;             /* Match container width */
  aspect-ratio: 3 / 2; 
  object-fit: cover;       /* Crop the image nicely, preserving aspect ratio */
  border-radius: 4px;
  margin-top: 10px;
  display: block; /* removes default inline spacing */
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  padding: 30px;
}

.game-card {
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  padding: 20px;
  text-align: center;
  transition: transform 0.2s ease;
  text-decoration: none;
  color: inherit;
}

.game-card:hover {
  transform: translateY(-5px);
}

.game-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 4px;
  margin-bottom: 15px;
}

.game-card h3 {
  font-size: 1.2rem;
  margin: 10px 0;
  color: #333;
}

.game-card p {
  font-size: 0.95rem;
  color: #555;
}

.game-card .button {
  display: inline-block;
  margin-top: 15px;
  padding: 10px 20px;
  background-color: #E7DFF8;
  color: #333;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 600;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(600px, 1fr));
  gap: 30px;
  max-width: 1300px;
  margin: 0 auto;
  padding: 40px;
}

.feature-card {
  display: flex;
  flex-direction: row;
  gap: 20px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  padding: 20px;
  align-items: center;
}

.feature-card img {
  width: 120px;
  height: 120px;
  object-fit: contain;
  border-radius: 8px;
}

.feature-text h3 {
  margin: 0;
  font-size: 1.5em;
}

.feature-text p {
  margin: 10px 0 0;
  font-size: 1em;
  color: #555;
}

.feature-text a {
  color: #000;
  text-decoration: none;
}
.feature-text a:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
  .feature-grid {
    grid-template-columns: 1fr;
    padding: 20px;
  }
  .feature-card {
    flex-direction: column;
    text-align: center;
  }

  .feature-card img {
    width: 100px;
    height: 100px;
  }
}



.overlay-card {
  height: 320px;
  border-radius: 10px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  padding: 16px;
  color: white;
  text-decoration: none;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s;
}

.overlay-card:hover {
  transform: translateY(-4px);
}

.overlay-content {
  background: rgba(0, 0, 0, 0.6);
  padding: 20px;
  border-radius: 0 0 10px 10px;
  width: 100%;
  bottom: 0;
  left: 0;
}

.overlay-content h3 {
  margin: 0 0 10px;
  font-size: 1.3rem;
}

.overlay-content p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.4;
}

@media (max-width: 480px) {
  .feature-grid {
    grid-template-columns: 1fr;
    padding: 16px;
  }

  .overlay-card {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }

  .overlay-content {
    padding: 16px;
    box-sizing: border-box;
  }

  .feature-card {
    width: 100%;
    min-width: 0;
  }

  .navbar {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding: 8px;
    gap: 10px;
    max-width: 100%;
    box-sizing: border-box;
  }

  .header {
    flex-direction: column;
    align-items: flex-start;
  }

  .header-section {
    padding: 10px 16px;
    box-sizing: border-box;
  }
}

.text-with-images {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: flex-start;
  margin-top: 40px;
}

.text-column {
  flex: 2 1 400px;
  max-width: 600px;
}

.text-column h3 {
  margin-top: 0;  /* Removes default space above heading */
}

.image-column {
  flex: 1 1 450px;
  max-width: 450px;
}

.image-column img {
  width: 100%;
  height: auto;
  margin-bottom: 20px;
  border-radius: 8px;
  border: 1px solid #ccc;
}

.text-with-media-vertical {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 40px; /* Adjust spacing between sections */
}

.text-with-media-vertical .text-column {
  width: 100%; /* Full width for text */
}

.text-with-media-vertical .media-column {
  width: 100%; /* Full width for images/iframe */
  display: flex;
  gap: 10px; /* Spacing if multiple images */
  flex-wrap: wrap; /* Images wrap neatly */
}

.text-with-media-vertical .media-column img,
.text-with-media-vertical .media-column iframe {
  max-width: 100%;
  height: auto;
}

.media-column-wide {
  display: flex;
  flex-direction: row;  /* side by side */
  gap: 10px;            /* gap between images */
  flex-wrap: wrap;      /* responsive wrap on small screens */
}

.media-column-wide img {
  max-width: 250px;     /* or your desired fixed width */
  height: auto;
  border-radius: 8px;   /* match your style */
  border: 1px solid #ccc;
}

.media-column-wide iframe {
  flex: 1;                    /* Makes each iframe share available space equally */
  min-width: 450px;           /* Ensures each iframe stays reasonably wide */
  border: none;               /* Removes iframe borders if desired */
  border-radius: 8px;         /* Matches your style */
}

@media (max-width: 480px) {
  .media-column-wide {
    flex-direction: column;
  }

  .media-column-wide iframe {
    min-width: 100%;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9; /* maintains good height */
  }
}
