/*
Theme Name: FreeAds Theme
Theme URI: https://freeads.live
Author: FreeAds Team
Author URI: https://freeads.live
Description: A modern, lightweight classified ads WordPress theme for business listings, jobs, rent, and marketplace. Features gradient hero sections, card-based layouts, and mobile-first responsive design.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: freeads-theme
Tags: classifieds, business, jobs, real-estate, marketplace, responsive, modern, gradient, seo-ready

FreeAds Theme, Copyright 2026 FreeAds Team
FreeAds Theme is distributed under the terms of the GNU GPL
*/

/* ==========================================================================
   Base Styles & Reset
   ========================================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Colors */
    --color-gradient-start: #ec4899;
    --color-gradient-mid: #a855f7;
    --color-gradient-end: #3730a3;
    --color-primary-red: #ef4444;
    --color-secondary-teal: #14b8a6;
    --color-dark-teal: #0d9488;
    --color-white: #ffffff;
    --color-bg-gray: #f9fafb;
    --color-text-dark: #1f2937;
    --color-text-gray: #6b7280;
    --color-border: #e5e7eb;

    /* Typography */
    --font-heading: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-body: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* Spacing */
    --container-max-width: 1200px;
    --section-padding: 80px;
    --card-padding: 24px;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.15);

    /* Border Radius */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 16px;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text-dark);
    background-color: var(--color-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--color-text-dark);
}

h1 {
    font-size: 3rem;
}

h2 {
    font-size: 2.25rem;
}

h3 {
    font-size: 1.875rem;
}

h4 {
    font-size: 1.5rem;
}

a {
    color: var(--color-primary-red);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--color-dark-teal);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */

.site-header {
    background: linear-gradient(135deg, #ec4899 0%, #8b5cf6 50%, #1e3a8a 100%);
    color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-logo img {
    height: 40px;
    width: auto;
}

.site-title {
    color: white;
    font-size: 24px;
    font-weight: 700;
}

.main-navigation {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.main-navigation ul {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
}

.main-navigation a {
    color: white;
    font-weight: 500;
    font-size: 15px;
    transition: all 0.3s ease;
}

.main-navigation a:hover {
    opacity: 0.8;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.profile-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--color-bg-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.3s ease;
}

.profile-icon:hover {
    background: var(--color-border);
}

.btn-submit-ad {
    background: var(--color-primary-red);
    color: var(--color-white);
    padding: 10px 24px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-submit-ad:hover {
    background: #dc2626;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--color-text-dark);
}

/* ==========================================================================
   Hero Section (Gradient)
   ========================================================================== */

.hero-section {
    background: linear-gradient(135deg, var(--color-gradient-start) 0%, var(--color-gradient-mid) 50%, var(--color-gradient-end) 100%);
    color: var(--color-white);
    padding: 100px 0 80px;
    position: relative;
    text-align: center;
}

.hero-content h1 {
    color: var(--color-white);
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.hero-content h1 .highlight {
    color: #fbbf24;
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
}

.hero-search {
    max-width: 700px;
    margin: 0 auto;
    gap: 12px;
}

.hero-search input {
    flex: 1;
    padding: 16px 24px;
    border: none;
    border-radius: var(--radius-md);
    font-size: 16px;
}

.hero-search .btn-search {
    background: var(--color-primary-red);
    color: var(--color-white);
    padding: 16px 40px;
    border: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.hero-search .btn-search:hover {
    background: #dc2626;
}

.hero-search .btn-reset {
    background: rgba(0, 0, 0, 0.3);
    color: var(--color-white);
    padding: 16px 32px;
    border: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.hero-search .btn-reset:hover {
    background: rgba(0, 0, 0, 0.5);
}

.hero-wave {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    fill: var(--color-white);
}

/* ==========================================================================
   Listing Cards
   ========================================================================== */

.listings-section {
    padding: 40px 0;
}

.listings-section h2 {
    font-size: 1.5rem;
    margin-bottom: 30px;
}

.listings-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}

.listing-card {
    background: var(--color-white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
    display: flex;
    /* Make card flex container */
    flex-direction: column;
    /* Vertical layout */
}

.listing-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.listing-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.listing-content {
    padding: 20px;
    flex: 1;
    /* Expand to fill available height */
    display: flex;
    /* Flex container for content */
    flex-direction: column;
    /* Vertical layout */
}

.listing-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--color-text-dark);
    line-height: 1.4;
}

.listing-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
    font-size: 13px;
    flex: 1;
    /* Push buttons to bottom */
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--color-text-gray);
    line-height: 1.6;
    /* Removed background-color: var(--color-bg-gray); */
    padding: 0;
    /* Removed padding if it was there */
}

.meta-item strong {
    color: var(--color-text-dark);
    font-weight: 600;
}

.meta-icon {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.listing-action {
    display: block;
    text-align: center;
    background: #0d9488;
    color: var(--color-white);
    padding: 10px 16px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.listing-action:hover {
    background: #14b8a6;
    color: var(--color-white);
    transform: translateY(-1px);
}

/* ==========================================================================
   Description Section
   ========================================================================== */

.description-section {
    padding: 60px 0;
    background: var(--color-white);
}

.description-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    align-items: center;
}

.description-text h2 {
    color: var(--color-primary-red);
    margin-bottom: 1.5rem;
}

.description-text p {
    color: var(--color-text-gray);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.description-logo img {
    max-width: 300px;
    margin: 0 auto;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
    background: var(--color-text-dark);
    color: var(--color-white);
    padding: 40px 0 0;
}

.footer-content {
    padding: 40px 0;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.social-icons {
    display: flex;
    gap: 1rem;
    /* margin-top: 1.5rem; */
}

.social-icon {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: var(--color-primary-red);
}

.copyright-bar {
    background: var(--color-primary-red);
    padding: 16px 0;
    text-align: center;
    font-size: 14px;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

@media (max-width: 1024px) {
    .listings-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .main-navigation {
        display: none;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-search {
        flex-direction: column;
    }

    .listings-grid {
        grid-template-columns: 1fr;
    }

    .description-content {
        grid-template-columns: 1fr;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.75rem;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 1.75rem;
    }

    .listing-card {
        margin: 0 10px;
    }
}

/* ==========================================================================
   Utility Classes
   ========================================================================== */

.text-center {
    text-align: center;
}

.text-red {
    color: var(--color-primary-red);
}

.mt-1 {
    margin-top: 1rem;
}

.mb-1 {
    margin-bottom: 1rem;
}

.mt-2 {
    margin-top: 2rem;
}

.mb-2 {
    margin-bottom: 2rem;
}

/* ==========================================================================
   Business Listings - Action Buttons
   ========================================================================== */

.business-actions {
    display: flex;
    gap: 10px;
    margin-top: auto;
    /* Push to bottom of flex container */
}

.btn-business {
    flex: 1;
    text-align: center;
    padding: 10px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    background: #1e3a5f;
    color: white;
}

.btn-business:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(30, 58, 95, 0.3);
    color: white;
}

/* ==========================================================================
   Single Business Page
   ========================================================================== */

.single-business-page {
    background: #f9fafb;
    min-height: 100vh;
    padding-bottom: 40px;
}

.single-header {
    background: white;
    padding: 15px 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
}

.single-header .container {
    display: flex;
    justify-content: flex-end;
}

.business-title-section {
    text-align: center;
    margin-bottom: 30px;
}

.business-title-section h1 {
    font-size: 32px;
    color: #ef4444;
    margin: 0;
}

.business-content-wrapper {
    max-width: 900px;
    margin: 0 auto;
}

.business-main-content {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.business-featured-image {
    margin-bottom: 30px;
    border-radius: 12px;
    overflow: hidden;
}

.business-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

.business-detail-item {
    margin-bottom: 25px;
}

.business-detail-item h3 {
    font-size: 16px;
    margin-bottom: 10px;
    color: #2d3748;
}

.business-detail-item p {
    color: #4a5568;
    line-height: 1.6;
}

.phone-section {
    display: flex;
    align-items: center;
    gap: 12px;
}

.phone-section svg {
    width: 24px;
    height: 24px;
    background: #1e3a5f;
    color: white;
    padding: 6px;
    border-radius: 50%;
}

.phone-section a {
    color: #1e3a5f;
    font-weight: 600;
    font-size: 18px;
    text-decoration: none;
}

.rating-section {
    display: flex;
    align-items: center;
    gap: 12px;
}

.stars {
    display: flex;
    gap: 4px;
}

.star {
    color: #e5e7eb;
    font-size: 20px;
}

.star.filled {
    color: #fbbf24;
}

.rating-text {
    color: #4a5568;
    font-weight: 600;
}

.business-category h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #2d3748;
}

.category-badge {
    display: inline-block;
    padding: 8px 20px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    color: #4a5568;
}

.business-map {
    margin: 30px 0;
}

.business-map h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #2d3748;
}

.map-note {
    margin-top: 10px;
    text-align: center;
    color: #718096;
}

.single-business-actions {
    display: flex;
    gap: 15px;
    margin: 30px 0;
}

.btn-action {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 20px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    color: white;
}

.btn-website {
    background: #1e3a5f;
}

.btn-website:hover {
    background: #2d4a6f;
    transform: translateY(-2px);
    color: white;
}

.btn-whatsapp {
    background: #25d366;
}

.btn-whatsapp:hover {
    background: #20ba5a;
    transform: translateY(-2px);
    color: white;
}

.business-contact-info {
    background: #f7fafc;
    padding: 25px;
    border-radius: 10px;
    margin-top: 30px;
}

.business-contact-info h3 {
    color: #ef4444;
    font-size: 16px;
    margin-bottom: 20px;
    font-weight: 700;
}

.contact-grid {
    display: grid;
    gap: 15px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #4a5568;
}

.contact-item svg {
    flex-shrink: 0;
    color: #ef4444;
}

@media (max-width: 768px) {
    .business-actions {
        flex-direction: column;
    }

    .single-business-actions {
        flex-direction: column;
    }

    .business-main-content {
        padding: 20px;
    }

    .business-title-section h1 {
        font-size: 24px;
    }
}

/* ==========================================================================
   Single Business Detail Page - Simplified
   ========================================================================== */

.single-business-detail {
    background: #f9fafb;
    padding: 40px 0;
    min-height: 70vh;
}

.business-name {
    text-align: center;
    color: #000000;
    font-size: 28px;
    margin-bottom: 30px;
    font-weight: 600;
}

.business-detail-card {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.business-logo-container {
    text-align: center;
    margin-bottom: 30px;
}

.business-logo-container img {
    max-width: 300px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.detail-section {
    margin-bottom: 25px;
}

.detail-section h3 {
    font-size: 14px;
    color: #000000;
    font-weight: 600;
    margin-bottom: 8px;
}

.detail-section p {
    color: #4a5568;
    line-height: 1.6;
    margin: 0;
}

.phone-detail {
    display: flex;
    align-items: center;
    gap: 10px;
}

.phone-detail svg {
    background: #1e3a5f;
    color: white;
    padding: 6px;
    border-radius: 50%;
    flex-shrink: 0;
}

.phone-detail span {
    color: #1e3a5f;
    font-weight: 600;
    font-size: 16px;
}

.rating-detail {
    display: flex;
    align-items: center;
    gap: 8px;
}

.rating-detail .star {
    color: #fbbf24;
    font-size: 18px;
}

.rating-detail .star:not(.filled) {
    color: #e5e7eb;
}

.rating-value {
    color: #4a5568;
    font-weight: 600;
    margin-left: 5px;
}

.category-tag {
    display: inline-block;
    padding: 6px 16px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    font-size: 13px;
    color: #4a5568;
}

.map-instruction {
    font-size: 13px;
    color: #718096;
    margin-bottom: 10px;
}

.detail-actions {
    display: flex;
    gap: 15px;
    margin: 30px 0;
}

.btn-detail {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
    color: white;
}

.btn-website-detail {
    background: #1e3a5f;
}

.btn-website-detail:hover {
    background: #2d4a6f;
    transform: translateY(-2px);
    color: white;
}

.btn-whatsapp-detail {
    background: #25d366;
}

.btn-whatsapp-detail:hover {
    background: #20ba5a;
    transform: translateY(-2px);
    color: white;
}

.contact-info-section {
    background: #f7fafc;
    padding: 20px;
    border-radius: 10px;
    margin-top: 30px;
}

.contact-info-section h3 {
    color: #ef4444;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 15px;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 13px;
    color: #4a5568;
}

.contact-info-item:last-child {
    margin-bottom: 0;
}

.contact-info-item svg {
    flex-shrink: 0;
    color: #ef4444;
    margin-top: 2px;
}

@media (max-width: 768px) {
    .business-detail-card {
        padding: 25px 20px;
    }

    .business-logo-container img {
        max-width: 100%;
    }

    .business-name {
        font-size: 22px;
    }

    .detail-actions {
        flex-direction: column;
    }
}

/* ==========================================================================
   Business Detail - Two Column Layout (Image Left, Details Right)
   ========================================================================== */

.business-top-section {
    display: grid;
    grid-template-columns: 45% 55%;
    gap: 30px;
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #e2e8f0;
}

.business-image-column {
    position: relative;
}

.business-image-column .business-image {
    width: 100%;
    height: auto;
    border-radius: 12px;
    display: block;
}

.business-details-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.detail-item h3 {
    font-size: 15px;
    color: #000000;
    font-weight: 600;
    margin-bottom: 6px;
}

.detail-item p {
    color: #4a5568;
    line-height: 1.6;
    margin: 0;
    font-size: 14px;
}

.phone-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.phone-icon-circle {
    background: #1e3a5f;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.phone-icon-circle svg {
    color: white;
}

.phone-number {
    font-size: 18px;
    font-weight: 600;
    color: #1e3a5f;
}

.rating-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.rating-item .stars {
    display: flex;
    gap: 3px;
}

.rating-item .star {
    font-size: 20px;
    color: #fbbf24;
}

.rating-item .star:not(.filled) {
    color: #e5e7eb;
}

.rating-text {
    font-weight: 600;
    color: #4a5568;
    font-size: 14px;
}

.category-section {
    margin-bottom: 30px;
}

.map-section {
    margin: 30px 0;
}

@media (max-width: 768px) {
    .business-top-section {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* ==========================================================================
   Header - New Design with Search Bar
   ========================================================================== */

.site-header {
    background: linear-gradient(135deg, #ec4899 0%, #8b5cf6 50%, #1e3a8a 100%);
    color: white;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
}

.site-logo img {
    height: 40px;
    width: auto;
}

.site-title {
    font-size: 24px;
    font-weight: 700;
    color: white;
}

.main-navigation .nav-menu {
    display: flex;
    gap: 30px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-navigation .nav-menu a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    transition: opacity 0.3s;
}

.main-navigation .nav-menu a:hover {
    opacity: 0.8;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.btn-login {
    display: flex;
    align-items: center;
    gap: 8px;
    color: white;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 14px;
    transition: all 0.3s;
}

.btn-login:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.btn-submit-ad-header {
    background: #ef4444;
    color: white;
    padding: 10px 24px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s;
    border: none;
}

.btn-submit-ad-header:hover {
    background: #dc2626;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
    color: white;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: white;
    border-radius: 2px;
}

/* Header Search Section */
.header-search-section {
    background: linear-gradient(135deg, #ec4899 0%, #8b5cf6 50%, #1e3a8a 100%);
    padding: 30px 0 50px;
}

.header-search-form {
    max-width: 900px;
    margin: 0 auto;
}

.search-wrapper {
    display: flex;
    align-items: center;
    background: white;
    border-radius: 50px;
    padding: 6px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.search-icon {
    margin-left: 15px;
    color: #9ca3af;
    flex-shrink: 0;
}

#search-input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 15px;
    font-size: 15px;
    min-width: 200px;
}

.search-type-dropdown {
    border: none;
    outline: none;
    padding: 12px 15px;
    font-size: 14px;
    background: transparent;
    color: #4b5563;
    cursor: pointer;
    border-left: 1px solid #e5e7eb;
}

.btn-search-header {
    background: #ef4444;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 40px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
    margin-right: 6px;
}

.btn-search-header:hover {
    background: #dc2626;
}

.btn-reset-header {
    background: #6b7280;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 40px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}

.btn-reset-header:hover {
    background: #4b5563;
    color: white;
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 999;
}

.mobile-menu.active {
    display: block;
}

.mobile-nav ul {
    list-style: none;
    padding: 20px;
    margin: 0;
}

.mobile-nav li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-nav a {
    display: block;
    padding: 15px;
    color: white;
    text-decoration: none;
    font-size: 16px;
}

/* Responsive */
@media (max-width: 968px) {

    .main-navigation,
    .header-actions {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .search-wrapper {
        flex-wrap: wrap;
        border-radius: 12px;
    }

    #search-input {
        min-width: 100%;
        order: 1;
    }

    .search-icon {
        order: 0;
    }

    .search-type-dropdown {
        order: 2;
        border-left: none;
        border-top: 1px solid #e5e7eb;
        width: 100%;
    }

    .btn-search-header,
    .btn-reset-header {
        order: 3;
        margin: 5px;
        flex: 1;
    }
}

/* ==========================================================================
   Header - Updated (No Search Bar)
   ========================================================================== */

/* Remove header search section padding */
.site-header {
    padding-bottom: 0;
}

/* Hide header search section if it exists */
.header-search-section {
    display: none;
}

/* Make sure hero sections are visible */
.hero-section {
    display: block;
}

/* ==========================================================================
   Hero Section - Updated Search Bar Design (Curved with Type)
   ========================================================================== */

.hero-section {
    position: relative;
    padding: 60px 0 120px;
    overflow: visible;
}

.hero-content {
    text-align: center;
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    font-size: 42px;
    margin-bottom: 15px;
    color: white;
    font-weight: 700;
}

.hero-content p {
    font-size: 18px;
    color: white;
    margin-bottom: 40px;
    opacity: 0.95;
}

/* Updated Search Form Styling */
.hero-search {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

.hero-search .search-container {
    display: flex;
    align-items: center;
    background: white;
    border-radius: 50px;
    padding: 8px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    gap: 8px;
}

.hero-search input[type="text"],
.hero-search input[name="s"] {
    flex: 1;
    border: none;
    outline: none;
    padding: 14px 20px;
    font-size: 15px;
    border-radius: 40px;
    background: transparent;
    min-width: 200px;
}

.hero-search input::placeholder {
    color: #9ca3af;
}

.hero-search select[name="post_type"],
.hero-search .search-type-select {
    border: none;
    outline: none;
    padding: 14px 20px;
    font-size: 14px;
    background: #f3f4f6;
    border-radius: 40px;
    cursor: pointer;
    color: #374151;
    font-weight: 500;
    min-width: 140px;
}

.hero-search .btn-search,
.hero-search button[type="submit"] {
    background: #ef4444;
    color: white;
    border: none;
    padding: 14px 32px;
    border-radius: 40px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
}

.hero-search .btn-search:hover,
.hero-search button[type="submit"]:hover {
    background: #dc2626;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
}

.hero-search .btn-reset,
.hero-search a.btn-reset {
    background: #6b7280;
    color: white;
    border: none;
    padding: 14px 28px;
    border-radius: 40px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
    white-space: nowrap;
}

.hero-search .btn-reset:hover {
    background: #4b5563;
    color: white;
}

.hero-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    fill: white;
    z-index: 1;
}

/* Responsive Search Bar */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 28px;
    }

    .hero-content p {
        font-size: 16px;
    }

    .hero-search .search-container {
        flex-direction: column;
        border-radius: 20px;
        padding: 15px;
        gap: 12px;
    }

    .hero-search input[type="text"],
    .hero-search select,
    .hero-search .btn-search,
    .hero-search .btn-reset {
        width: 100%;
        border-radius: 12px;
    }
}

/* ==========================================================================
   Hero Section - Background Image Fix
   ========================================================================== */

.hero-section {
    background-image: url('../images/hero-bg.png');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    position: relative;
    padding: 80px 0 140px;
    min-height: 400px;
}