/* Global styles */
body {
  background-color: #121212;
  color: #ffffff;
  font-family: 'Arial', sans-serif;
  margin: 0;
  padding: 0;
}

/* Title */
h1 {
  text-align: center;
  margin-top: 40px;
  color: #ffffff;
}

.hero {
  text-align: center;
  padding-top: 30px;  /* pushes everything down */
}

.hero a {
  display: inline-block;  /* makes clickable area fit image */
  padding: 0;
  margin: 0;
}

.hero-logo {
  display: block;
  margin: 0 auto 30px auto; /* center + bottom margin */
  max-width: 50px;
  height: auto;
}

/* Card layout */
.card {
  background-color: #1e1e1e;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  flex: 1 1 300px;        /* ensures it grows but maintains min width */
  max-width: 320px;       /* keeps all cards visually balanced */
  margin: 10px;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
}

.card__header img {
  width: 100%;
  height: auto;
  display: block;
}

.card__body {
  padding: 16px;
  text-align: center;
}

.card__body h4 {
  margin: 0 0 12px;
  font-size: 18px;
  color: #ffffff;
}

.card-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  padding: 40px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

/* Button styling */
.button-34 {
  background-color: #333333;
  border: none;
  color: #ffffff;
  padding: 10px 20px;
  font-size: 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.button-34 a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
}

.button-34:hover {
  background-color: #444444;
}

.pagination {
  margin: 40px auto;
  text-align: center;
}

.pagination a {
  display: inline-block;
  margin: 0 10px;
  padding: 10px 20px;
  background-color: white;
  color: black;
  text-decoration: none;
  font-weight: 600;
  border-radius: 6px;
  transition: background-color 0.2s ease;
}

.pagination a:hover {
  background-color: #e0e0e0;
}

#backToTopBtn {
  width: 50px;            /* fixed width */
  height: 50px;           /* fixed height - makes it square */
  border-radius: 12px;    /* rounded corners (adjust as you like) */
  background-color: #333; /* example background */
  color: white;
  border: none;
  cursor: pointer;
  position: fixed;
  bottom: 40px;
  right: 40px;
  font-size: 24px;
  display: none;          /* hidden by default */
  /* add any other styles you want */
}

/* Updated ad-space to work inside flex container */
.ad-space {
  height: 90px;       /* typical banner ad height */
  width: 100%;
  margin: 20px 0;     /* vertical spacing */
  /* no background, no border, completely invisible but space reserved */
}



/* Footer */
footer {
  padding: 40px 20px 20px;
  background-color: #121212;
  text-align: center;
}

.footer-icons {
  margin-bottom: 10px;
}

.footer-icons a {
  margin: 0 12px;
  display: inline-block;
  width: 24px;
  height: 24px;
}

.footer-icons img {
  width: 100%;
  height: auto;
  filter: brightness(0) invert(1);
  transition: filter 0.3s;
}

.footer-icons img:hover {
  filter: brightness(0.9) invert(1);
}

.footer-text {
  font-size: 14px;
  color: #999;
}

.footer-text a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
}

.footer-text a:hover {
  text-decoration: underline;
}

.ad-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100px;
  overflow: hidden;
}

#ad-container {
  display: inline-block;
  max-width: 100%;
}

#ad-container iframe {
  display: block;
  margin: 0 auto;
  width: 728px;
  height: 100px;
}

/* 🔧 Mobile-specific fix */
@media (max-width: 768px) {
  #ad-container iframe {
    width: 100%;
    height: auto;
  }
}