.search-wrapper {
  background: #fff;
  padding: 10px 20px;
  border-bottom: 1px solid #e5e5e5;
  margin: 0;
}

.search-bar {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: stretch;
  border: 2px solid #ddd;
  border-radius: 40px;
  overflow: hidden;
  background: #fff;
  min-height: 48px;
}


.search-bar select,
.search-bar input {
  border: none;
  padding: 14px 16px;
  outline: none;
  font-size: 15px;
  flex: 1;
  background: #fff;
}

.search-bar select {
  max-width: 220px;
  cursor: pointer;
}

.search-bar button {
  background: #0a58ca;
  color: #fff;
  border: none;
  padding: 0 35px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: stretch;
  min-height: 100%;
  border-radius: 0;
}

.search-bar button:hover {
  background: #084298;
}

.search-results-container {
  max-width: 900px;
  margin: 10px auto 30px;
  padding: 0 20px;
  font-family: Arial, Helvetica, sans-serif;
}

.search-results-container h2 {
  font-size: 1.8rem;
  font-weight: bold;
  color: #0a58ca;
  border-bottom: 2px solid #0a58ca;
  padding-bottom: 8px;
  margin-bottom: 25px;
}

.search-result-item {
  margin-bottom: 25px;
  padding-bottom: 15px;
  border-bottom: 1px solid #e5e5e5;
  transition: background 0.2s ease;
}

.search-result-item:hover {
  background-color: #f9f9f9;
}

.search-result-item h3 {
  margin: 0 0 6px;
  font-size: 1.2rem;
  font-weight: 600;
}

.search-result-item h3 a {
  color: #0a58ca;
  text-decoration: none;
  transition: color 0.3s ease;
}

.search-result-item h3 a:hover {
  color: #084298;
  text-decoration: underline;
}

.search-result-item p {
  font-size: 0.95rem;
  color: #444;
  line-height: 1.5;
}

.search-results-container p {
  font-size: 1rem;
  color: #555;
  margin-top: 10px;
}

@media (max-width: 768px) {
  .search-wrapper {
    padding: 10px;
  }

  .search-bar {
    flex-direction: column;
    border-radius: 12px;
  }

  .search-bar select,
  .search-bar input,
  .search-bar button {
    width: 100%;
    max-width: 100%;
    border-bottom: 1px solid #eee;
  }

  .search-bar button {
    border-bottom: none;
    padding: 14px 16px;
  }

  .search-results-container {
    max-width: 95%;
    margin: 10px auto 25px;
    padding: 0 10px;
  }

  .search-results-container h2 {
    font-size: 1.5rem;
  }

  .search-result-item h3 {
    font-size: 1.05rem;
  }
}

/* Desktop horizontal ads (728x90) */
.post-desktop-ad {
    display: block;
    text-align: center;
    margin: 20px 0;
}

/* Mobile posts ad (300x250) hidden on desktop */
.post-mobile-ad {
    display: none;
    text-align: center;
    margin: 20px 0;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .post-desktop-ad { display: none; } /* hide 728x90 on mobile */
    .post-mobile-ad { display: block; } /* show 300x250 on mobile */
}
/* =============================
   GOOGLE ADSENSE ADS
============================= */

/* Desktop horizontal ads in posts (728x90) */
.post-desktop-ad {
    display: block;
    text-align: center;
    margin: 20px auto; /* spacing above and below ad */
}

.post-desktop-ad .adsbygoogle {
    width: 728px !important;
    height: 90px !important;
}

/* Mobile horizontal ads in posts (300x250) */
.post-mobile-ad {
    display: none;
    text-align: center;
    margin: 20px auto;
}

.post-mobile-ad .adsbygoogle {
    width: 300px !important;
    height: 250px !important;
}

/* Sidebar ads 300x250 */
.sidebar-ad {
    display: flex;
    justify-content: center;
    margin: 20px auto;
}

.sidebar-ad .adsbygoogle {
    width: 300px !important;
    height: 250px !important;
    display: block;
}

/* =============================
   RESPONSIVE ADJUSTMENTS
============================= */
@media (max-width: 768px) {
    /* Hide desktop posts ads on mobile */
    .post-desktop-ad { display: none; }

    /* Show mobile posts ads on mobile */
    .post-mobile-ad { display: block; }

    /* Sidebar ads scale full width on mobile */
    .sidebar-ad .adsbygoogle {
        width: 100% !important;
        height: 250px !important;
    }
}