/**
 * Theme Name: US Mosque Finder by google ai studio gemini pro 2.5
 * Author: Gemini
 * Author URI: https://gemini.google.com/
 * Description: A modern, responsive directory theme created for finding mosques in the USA.
 * Version: 1.1.0
 * License: GNU General Public License v2 or later
 * License URI: http://www.gnu.org/licenses/gpl-2.0.html
 * Tags: directory, mosque, location, business
 * Text Domain: us-mosque-finder
 */

/*--------------------------------------------------------------
>>> TABLE OF CONTENTS:
----------------------------------------------------------------
# Core Styles
# Layout
# Components
# Templates & Pages
# Pagination
# Responsive
--------------------------------------------------------------*/

/* ... (all the CSS from the previous responses) ... */

/*--------------------------------------------------------------
# Core Styles
--------------------------------------------------------------*/
:root {
    --color-primary: #3B82F6;
    --color-secondary: #10B981;
    --color-text: #374151;
    --color-text-light: #6B7280;
    --color-heading: #1F2937;
    --color-background: #FFFFFF;
    --color-border: #E5E7EB;
}
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--color-text);
    background-color: var(--color-background);
    margin: 0;
    font-size: 16px;
    line-height: 1.6;
}
*, *::before, *::after { box-sizing: border-box; }
h1, h2, h3, h4, h5, h6 {
    color: var(--color-heading);
    font-weight: 700;
    margin: 1.5em 0 0.5em;
    line-height: 1.3;
}
a { color: var(--color-primary); text-decoration: none; }
a:hover { text-decoration: underline; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 15px; }

/*--------------------------------------------------------------
# Layout
--------------------------------------------------------------*/
.site-header { padding: 1em 0; border-bottom: 1px solid var(--color-border); }
.site-header .container { display: flex; justify-content: space-between; align-items: center; }
.site-branding img { max-height: 50px; }
.site-footer { background-color: var(--color-heading); color: #fff; padding: 3em 0; margin-top: 4em; }
.site-footer a { color: #fff; }

/*--------------------------------------------------------------
# Components
--------------------------------------------------------------*/
.card-grid { display: grid; gap: 1.5rem; }
.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid-cols-4 { grid-template-columns: repeat(4, 1fr); }
.card { background-color: #fff; border: 1px solid var(--color-border); border-radius: 8px; overflow: hidden; box-shadow: 0 4px 6px rgba(0,0,0,0.05); }
.card-image img { width: 100%; height: 200px; object-fit: cover; }
.card-content { padding: 1.5rem; }
.card-title { margin-top: 0; font-size: 1.25rem; }

/*--------------------------------------------------------------
# Templates & Pages
--------------------------------------------------------------*/
.hero-section { position: relative; min-height: 800px; display: flex; align-items: center; justify-content: center; text-align: center; color: #fff; background-size: cover; background-position: center; background-attachment: fixed; }
.hero-section::before { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background-color: rgba(25, 36, 50, 0.6); }
.hero-content { position: relative; z-index: 1; }
.hero-content h1 { font-size: 4rem; color: #fff; }
.front-page-section { padding: 4em 0; }
.front-page-section h3 { text-align: center; font-size: 2.2rem; margin-top: 0; margin-bottom: 2em; }
.search-form { display: flex; gap: 1rem; justify-content: center; max-width: 800px; margin: 0 auto; }
.search-form select { width: 100%; padding: 0.8em 1.2em; border: 1px solid var(--color-border); border-radius: 5px; }
.single-layout { display: grid; grid-template-columns: 2fr 1fr; gap: 2.5rem; }
.sidebar .info-box { background-color: #f9fafb; border: 1px solid var(--color-border); padding: 1.5rem; border-radius: 8px; margin-bottom: 1.5rem; }

/*--------------------------------------------------------------
# Pagination
--------------------------------------------------------------*/
.pagination-links { margin-top: 2.5em; text-align: center; }
.pagination-links .page-numbers { display: inline-block; padding: 0.5em 1em; margin: 0 0.25em; border: 1px solid var(--color-border); border-radius: 4px; color: var(--color-primary); text-decoration: none; }
.pagination-links .page-numbers:hover { background-color: var(--color-primary); color: #fff; }
.pagination-links .page-numbers.current { background-color: var(--color-primary); color: #fff; cursor: default; }

/*--------------------------------------------------------------
# Responsive
--------------------------------------------------------------*/
@media (max-width: 768px) {
    .grid-cols-2, .grid-cols-3, .grid-cols-4 { grid-template-columns: 1fr; }
    .single-layout, .search-form { flex-direction: column; }
}

/*--------------------------------------------------------------
# Pagination - UPDATED
--------------------------------------------------------------*/
.pagination {
    margin-top: 2.5em;
    text-align: center;
}

.pagination .nav-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5em;
}

.pagination .page-numbers {
    display: inline-block;
    padding: 0.5em 1em;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    color: var(--color-primary);
    text-decoration: none;
    transition: background-color 0.2s, color 0.2s;
}

.pagination .page-numbers:hover {
    background-color: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
}

.pagination .page-numbers.current {
    background-color: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
    cursor: default;
}

.pagination .screen-reader-text {
    display: none;
}


/*--------------------------------------------------------------
# Single Mosque Page Layout
--------------------------------------------------------------*/
.single-mosque .entry-header {
    margin-bottom: 2em;
    text-align: center;
}

.single-mosque .entry-header h1 {
    margin-bottom: 0.1em;
}

.single-mosque .entry-subtitle {
    font-size: 1.1em;
    color: var(--color-text-light);
    margin-top: 0;
}

.single-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2.5rem;
    align-items: flex-start;
}

.post-featured-image {
    margin-bottom: 2em;
}

.post-featured-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.sidebar .info-box {
    background-color: #f9fafb;
    border: 1px solid var(--color-border);
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.info-box h3 {
    margin-top: 0;
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 0.75em;
    margin-bottom: 1em;
    font-size: 1.25rem;
}

.info-box p {
    margin-bottom: 1em;
}

.info-box p:last-child {
    margin-bottom: 0;
}

.info-box ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.info-box li {
    margin-bottom: 0.5em;
}

.info-box .button {
    display: block;
    text-align: center;
    width: 100%;
    margin-top: 1em;
}

/* Responsive styles for mobile */
@media (max-width: 768px) {
    .single-layout {
        grid-template-columns: 1fr; /* Stack columns on smaller screens */
    }
}

/*--------------------------------------------------------------
# Star Ratings
--------------------------------------------------------------*/
.star-rating {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.star-rating .stars {
    color: #F59E0B; /* A gold/yellow color from your palette */
    font-size: 1.2em;
}

.star-rating .rating-text {
    font-size: 0.9em;
    color: var(--color-text-light);
    margin-top: 0.25em;
}

.card .star-rating .stars {
    font-size: 1em; /* Make stars slightly smaller on cards */
}


/*--------------------------------------------------------------
# Latest Posts Section
--------------------------------------------------------------*/
.latest-posts-section {
    background-color: #f9fafb;
    border-top: 1px solid var(--color-border);
}


/*--------------------------------------------------------------
# Homepage Banner (UPDATED to act as Hero Section)
--------------------------------------------------------------*/
.promoted-hero {
    padding-top: 2.5em; /* Adds space from the top navigation */
    padding-bottom: 0;
    margin-top: 0;
}

/* This container is now a standard container, not fluid */
.promoted-banner {
    position: relative;
    width: 100%;
    height: 400px; /* REDUCED height for smaller photos */
    border-radius: 12px; /* ADDED rounded corners */
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.promoted-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
}

.promoted-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    position: relative;
}

.promoted-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.1); /* Lighter overlay */
}

.promoted-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 3em 2em 2em;
    color: #fff;
    background: linear-gradient(to top, rgba(0,0,0,0.85), transparent);
    /* Back to left-aligned text */
    display: flex;
    flex-direction: column;
    justify-content: flex-end; /* Pushes content to the bottom */
    align-items: flex-start;
    text-align: left;
    height: 100%;
}

.promoted-content h2 {
    color: #fff;
    margin: 0;
    font-size: 2.5rem; /* Back to a more standard size */
}

.promoted-content a {
    color: #fff;
    text-decoration: none;
}

.promoted-content p {
    margin: 0.25em 0 0;
    font-size: 1.1em;
    opacity: 0.9;
}

.promoted-tag {
    position: absolute;
    bottom: 1.5em; /* MOVED to the bottom */
    right: 1.5em;  /* MOVED to the right corner */
    background-color: #F59E0B; /* A gold color from your palette */
    color: #1F2937; /* Dark text for contrast */
    padding: 0.5em 1em;
    border-radius: 6px;
    font-size: 0.9em;
    font-weight: 700;
    letter-spacing: 0.5px;
    
    /* ADDED Glowing/Flashing Animation */
    animation: glow 1.5s infinite ease-in-out;
}

/* Keyframes for the glowing animation */
@keyframes glow {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 5px #F59E0B, 0 0 10px #F59E0B;
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 20px #F59E0B, 0 0 30px #F59E0B;
    }
}

/*--------------------------------------------------------------
# Related Mosques Section
--------------------------------------------------------------*/
.related-mosques-section {
    margin-top: 4em;
    padding-top: 3em;
    border-top: 1px solid var(--color-border);
}

.related-mosques-section .container {
    padding-left: 0;
    padding-right: 0;
}

.related-mosques-section h3 {
    text-align: center;
    font-size: 2rem;
    margin-top: 0;
    margin-bottom: 2em;
}


/*--------------------------------------------------------------
# Single Mosque Page Placeholders
--------------------------------------------------------------*/
.no-info-listed {
    color: var(--color-text-light);
    font-style: italic;
    font-size: 0.9em;
}








