/* =====================
   GLOBAL RESET
===================== */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", Roboto, Arial, sans-serif;
  background: #f3f6fb;
  color: #1f2937;
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
}

/* =====================
   HEADER
===================== */
header {
  background: linear-gradient(135deg, #2563eb, #3b82f6);
  color: #fff;
  padding: 25px 20px;
  text-align: center;
}

header h1 {
  margin: 0;
  font-size: 34px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

header p {
  margin-top: 6px;
  font-size: 15px;
  opacity: 0.95;
}

/* =====================
   SEARCH BAR
===================== */
.search-box {
  margin: -22px auto 25px;
  max-width: 650px;
  text-align: center;
}

.search-box input {
  width: 95%;
  padding: 14px 18px;
  font-size: 16px;
  border-radius: 50px;
  border: none;
  outline: none;
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

/* =====================
   MAIN LAYOUT
===================== */
.wrapper {
  max-width: 1400px;
  margin: auto;
  padding: 20px;
  display: grid;
  grid-template-columns: 170px 1fr 170px;
  gap: 22px;
}

/* =====================
   ADS
===================== */
.ad-box {
  background: #ffffff;
  border: 1px dashed #c7cdd9;
  border-radius: 12px;
  padding: 35px 10px;
  text-align: center;
  font-size: 14px;
  color: #6b7280;
  box-shadow: 0 8px 18px rgba(0,0,0,0.05);
}

/* =====================
   CATEGORIES GRID
===================== */
.categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
}

/* =====================
   CARD DESIGN
===================== */
.card {
  background: #ffffff;
  padding: 26px 22px;
  border-radius: 16px;
  box-shadow: 0 15px 35px rgba(0,0,0,0.07);
  transition: all 0.35s ease;
  height: 100%;
}

.card h3 {
  margin-top: 0;
  margin-bottom: 8px;
  font-size: 18px;
  color: #2563eb;
}

.card p {
  font-size: 14px;
  color: #4b5563;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 22px 45px rgba(0,0,0,0.12);
}

/* =====================
   FOOTER
===================== */
footer {
  background: #0f172a;
  color: #9ca3af;
  text-align: center;
  padding: 18px;
  margin-top: 50px;
  font-size: 13px;
}

/* =====================
   RESPONSIVE
===================== */
@media (max-width: 1100px) {
  .wrapper {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  header h1 {
    font-size: 26px;
  }
  .card {
    padding: 22px 18px;
  }
}

.ads-sidebar-right {
  width: 300px;               /* Ideal sidebar width */
  max-width: 100%;
  margin: 20px auto;
  text-align: center;
  overflow: hidden;
}

/* Hide sidebar ads on mobile */
@media (max-width: 1024px) {
  .ads-sidebar-right {
    display: none;
  }
}
.between-ad {
  margin: 35px 0;
  text-align: center;
  max-width: 100%;
  overflow: hidden;
}

/* Hide large ads on small screens */
@media (max-width: 768px) {
  .between-ad {
    display: none;
  }
}

