/*
Theme Name: TownBoard
Theme URI: https://yourdomain.com/
Author: Your Name
Author URI: https://yourdomain.com/
Description: A local classified ad theme for shops, services, and transport listings.
Version: 1.0
License: GNU General Public License v2 or later
Text Domain: townboard
Tags: local, ads, directory, listing, responsive
*/
/* Hero Section */
.hero-section {
  background: url('https://dzainstudio.com/townboard/wp-content/uploads/2025/07/hero-townboard.jpg') no-repeat center center;
  background-size: cover;
  height: 70vh;
  position: relative;
}
.hero-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.5); /* Overlay */
  z-index: 1;
}
.hero-section .container {
  z-index: 2;
  position: relative;
}
.card {
  border: 1px solid #eee;
  transition: all 0.3s ease;
  background: #f9f9f9;
}
.card:hover {
  background: #ffc107;
  color: #000;
  transform: translateY(-5px);
}
.site-logo img.custom-logo {
    height: 60px;
    width: auto;
}
.ad-card {
  border: none;
  background: #f8f9fa;
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.ad-card:hover {
  transform: scale(1.02);
}

.ad-img-wrapper {
  position: relative;
}

.ad-img-wrapper img {
  height: 250px;
  object-fit: cover;
  display: block;
  border-radius: 16px;
}

.ad-overlay {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.15));
  color: white;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-radius: 16px;
}

.ad-overlay h5 {
  margin-bottom: 0;
  font-size: 1.1rem;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.6);
  color: #fff;
}
footer a.custom-logo-link img.custom-logo {
    width: 100%;
    height: auto;
}

