/*
Theme Name: My Custom Theme
Theme URI: http://example.com/my-custom-theme
Author: Your Name
Author URI: http://example.com
Description: A custom WordPress theme.
Version: 1.0
License: GNU General Public License v2 or later
Text Domain: my-custom-theme
*/


header {
    display: flex;
    justify-content: space-between;
    padding: 20px;
    background-color: #333;
}

header .logo img {
    max-width: 150px;
}

header nav ul {
    list-style: none;
    display: flex;
}

header nav ul li {
    margin-left: 20px;
}

header nav ul li a {
    color: white;
    text-decoration: none;
}



/* Container for the business directory */
.business-directory {
    padding: 30px;
    text-align: center;
}

/* Style each business item */
.business-item {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

/* Business title */
.business-item h3 {
    font-size: 1.5em;
    color: #0073aa;
    margin-bottom: 10px;
}

/* Excerpt style */
.business-excerpt {
    font-size: 1em;
    margin-bottom: 10px;
}

/* View Details link style */
.view-details {
    color: #0073aa;
    font-size: 1.1em;
    text-decoration: none;
}
.view-details:hover {
    text-decoration: underline;
}

/* Pagination styling */
.page-numbers {
    margin-top: 20px;
    display: inline-block;
    padding: 10px 20px;
    background-color: #0073aa;
    color: white;
    text-decoration: none;
    border-radius: 5px;
}

.page-numbers:hover {
    background-color: #005f7f;
}

/* Responsive styling for mobile */
@media (max-width: 768px) {
    .business-item {
        padding: 15px;
    }
    .business-item h3 {
        font-size: 1.2em;
    }
}



.hero-section {
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    padding: 100px 20px;
}
.cta-button {
    padding: 10px 20px;
    background-color: #0073aa;
    color: white;
    text-decoration: none;
    border-radius: 5px;
}
.cta-button:hover {
    background-color: #005f7f;
}

/* Style the logo */
.logo img {
    max-width: 150px;  /* Adjust size */
    height: auto;      /* Maintain aspect ratio */
    display: block;    /* Ensures the image behaves like a block element */
    margin: 0 auto;    /* Center the logo */
}



/* Business Listings Section */
.business-listings {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 columns */
    gap: 20px;
}

.business-item {
    background-color: #f9f9f9;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.business-item h3 {
    font-size: 1.2em;
    margin-bottom: 10px;
}

.business-item .view-details {
    color: #0073aa;
    text-decoration: none;
    font-size: 1em;
}

.business-item .view-details:hover {
    text-decoration: underline;
}

/* Mobile responsiveness: 2 columns on smaller screens */
@media (max-width: 768px) {
    .business-listings {
        grid-template-columns: repeat(2, 1fr); /* 2 columns on mobile */
    }
}


footer {
    background-color: #333;
    color: white;
    padding: 20px;
    text-align: center;
}
.social-media {
    list-style: none;
    padding: 0;
}
.social-media li {
    display: inline;
    margin-right: 10px;
}

/* ===== HOMEPAGE STYLE ===== */

.hero-section {
    height: 420px;
    background: #222 url('https://via.placeholder.com/1600x500') center/cover no-repeat;
}

.hero-overlay {
    background: rgba(0,0,0,0.55);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #fff;
    text-align: center;
}

.hero-overlay h1 {
    font-size: 42px;
    margin-bottom: 10px;
}

.hero-btn {
    background: #0073aa;
    padding: 12px 24px;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
}

.directory-search {
    background: #f7f7f7;
    padding: 30px;
    text-align: center;
}

.directory-search input {
    padding: 10px;
    width: 260px;
}

.directory-search button {
    padding: 10px 16px;
    background: #0073aa;
    color: #fff;
    border: none;
}

.featured-businesses {
    padding: 50px 20px;
    text-align: center;
}

.business-grid {
    max-width: 1100px;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.business-card {
    background: #fff;
    border: 1px solid #ddd;
    padding: 20px;
    border-radius: 6px;
}