body {
  background: #FFF;
}

/* Hero Section with Correct Background Scaling */
.hero-section {
    background-image: url('/themes/custom/oldlistings_theme/images/home-title-area-bg.jpg');
    background-size: cover; /* Ensures full coverage */
    background-position: bottom center; /* Keeps the green line visible */
    background-repeat: no-repeat;
    height: 557px; /* Fixed height to maintain the correct aspect ratio */
    position: relative;
}

/* Add a pseudo-element to preserve aspect ratio and show the line */
.hero-section::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 5px; /* Height of the green line */
    background-color: #3AB54A; /* Matching green colour */
}

/* Responsive Fix for Smaller Devices */
@media (max-width: 768px) {
    .hero-section {
        height: 300px; /* Adjust height for smaller devices */
        background-position: center center; /* Re-centre for mobile */
    }
}

/* Logo Styling */
.logo-container img {
    max-width: 250px;
    height: auto;
}

/* Button Group Styling */
.btn-group .btn {
    font-size: 16px;
    padding: 10px 20px;
    border: 1px solid transparent;
    color: #fff;
    background-color: #6C757D; /* Default Off State */
    transition: all 0.3s ease-in-out;
}

/* Active Button - On State */
.btn-group .btn.active {
    background-color: #3AB54A;
    color: #fff;
    border-color: #3AB54A;
}

/* Button Hover Effect */
.btn-group .btn:hover {
    background-color: #4CC85E;
    color: #fff;
}

/* Disabled Button State (if needed) */
.btn-group .btn.disabled, 
.btn-group .btn:disabled {
    background-color: #ddd;
    color: #999;
}

/* Search Form Styling */
.search-form {
    max-width: 700px;
    margin: 0 auto;
}

/* Input Field */
.input-group input {
    font-size: 18px;
    padding: 12px 15px;
}

/* Search Button with Background Image */
.search-btn {
    width: 100px;
    height: 61px;
    background-image: url('/themes/custom/oldlistings_theme/images/search_onx100.png');
    background-size: cover;
    background-position: center;
    border: none;
    cursor: pointer;
}

/* Search Button Hover Effect (Change Image) */
.search-btn:hover {
    background-image: url('/themes/custom/oldlistings_theme/images/search_offx100.png');
    background-size: cover;
}

/* Stats Section */
.stats-section {
    background-color: #f8f9fa;
    padding: 60px 15px;
}
.stat-box {
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}
.stat-box:hover {
    transform: translateY(-5px);
}
.stat-number {
    font-size: 36px;
    font-weight: 700;
    color: #3AB54A;
    margin-bottom: 10px;
}
.stat-box p {
    font-size: 16px;
    color: #555;
}

.footer-wrap {
    font-size: 12px;
    color: #b7bfc5;
    line-height: 30px;
    background: url(/themes/custom/oldlistings_theme/images/bg-footer.jpg) top center no-repeat #2c2f33;
    min-height: 100px;
    padding-top: 20px;
}

.content-image {
    width: 100%;
    max-width: 600px;
    height: auto;
    margin: 20px auto;
    display: block;
}

.breadcrumb {
    border-bottom: 1px solid #e4e4e4;
    background: #FFF;
}

@media (max-width: 768px) {
    .content-image {
        max-width: 100%;
    }
}

/* Individual page set up */
.old-nav {
  background: url(/themes/custom/oldlistings_theme/images/sub-header-bg.jpg) top left repeat-x #38a047;
  min-height: 71px;
  border-bottom: 1px solid #59c66a;
}

.old-header {
  background: url(/themes/custom/oldlistings_theme/images/sub-title-area-bg.jpg) top center no-repeat #393d44;
  height: 172px;
  padding-top: 50px;
  border-bottom: 1px solid #e4e4e4;
}

.old-header-h1 {
  color: #FFF;
  font-size: 36px;
  line-height: 35px;
  font-weight: 600;
  font-style: italic;
}

.old-header-h2 {
  color: #FFF;
  font-size: 18px;
  line-height: 28px;
  font-weight: 400;
  font-style: italic;
}

@media only screen and (min-width: 321px) and (max-width: 768px) {
    .old-header{
        height: 110px;
        padding-top: 20px;
        background-position: center -20px;
        background-size: 100% calc(100% + 20px);
    }
    .old-header-h1 {
        font-size: 23px;
        line-height: 23px;
    }
    .old-header-h2 {
        font-size: 16px;
        line-height: 16px;
    }
}

.old-footer {
  background: url(/themes/custom/oldlistings_theme/images/bg-footer.jpg) top center no-repeat #2c2f33;
  min-height: 100px;
  padding-top: 20px;
  color: #FFF;
  font-size: 12px;
}

/* Green-themed pagination */
.pagination .page-link {
	color: #198754; 
}

.pagination .page-link:hover {
	color: white;
	background-color: #198754;
	border-color: #198754;
}

.pagination .page-item.active .page-link {
	color: white;
	background-color: #198754;
	border-color: #198754;
}

.pagination .page-link:focus {
	box-shadow: 0 0 0 0.2rem rgba(25, 135, 84, 0.25);
}