/*
Theme Name: Mosque Theme TM 590
Theme URI: 
Author: 
Author URI: 
Description: A custom theme for Mosques in Australia directory website
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: mosque-tm-590
Tags: mosques, directory, australia
*/

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

a {
    color: #0056b3;
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: #003d7a;
    text-decoration: underline;
}

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

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: #1a1a1a;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.75rem;
}

h4 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
}

/* Header */
.site-header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 15px 0;
    position: relative;
    z-index: 100;
}

.site-branding {
    display: flex;
    align-items: center;
}

.site-logo {
    max-height: 60px;
    width: auto;
    margin-right: 15px;
}

.site-title {
    font-size: 1.8rem;
    margin-bottom: 0;
}

.site-description {
    margin-bottom: 0;
    color: #6c757d;
}

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

.main-navigation {
    display: flex;
    justify-content: flex-end;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #0056b3;
    padding: 5px;
}

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

.main-navigation li {
    position: relative;
    margin-left: 20px;
}

.main-navigation a {
    display: block;
    padding: 10px 0;
    color: #333;
    font-weight: 500;
}

.main-navigation a:hover {
    color: #0056b3;
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    .main-navigation ul {
        display: none;
    }
    
    .main-navigation.toggled ul {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: #fff;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        padding: 10px 0;
        z-index: 100;
    }
    
    .main-navigation.toggled li {
        margin-left: 0;
        text-align: center;
    }
}

/* Hero Section */
.hero-section {
    background-color: #0056b3;
    color: #fff;
    padding: 80px 0;
    text-align: center;
    background-size: cover;
    background-position: center;
    position: relative;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

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

.hero-title {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #fff;
}

.hero-description {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 2rem;
}

/* Featured Image */
.featured-image {
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    max-height: 500px;
}

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

.placeholder-image {
    width: 100%;
    height: auto;
    max-height: 500px;
}

/* Card Layouts */
.card-grid {
    display: grid;
    grid-gap: 30px;
    margin-bottom: 30px;
}

.card-grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

.card-grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.card-grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.card {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.card-image {
    height: 200px;
    background-color: #f0f0f0;
    background-size: cover;
    background-position: center;
    overflow: hidden;
    position: relative;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.card-image a {
    display: block;
    height: 100%;
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

.card-content {
    padding: 20px;
}

.card-title {
    font-size: 1.25rem;
    margin-bottom: 10px;
}

.card-meta {
    color: #6c757d;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.card-description {
    margin-bottom: 15px;
}

/* Ratings */
.rating {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.rating-stars {
    color: #ffc107;
    margin-right: 5px;
}

.rating-count {
    color: #6c757d;
    font-size: 0.9rem;
}

/* Icons */
.icon {
    margin-right: 5px;
    color: #0056b3;
}

/* Breadcrumbs */
.breadcrumbs {
    background-color: #f8f9fa;
    padding: 10px 0;
    margin-bottom: 30px;
    border-bottom: 1px solid #e9ecef;
}

.breadcrumbs-list {
    display: flex;
    list-style: none;
    flex-wrap: wrap;
}

.breadcrumbs-item {
    display: flex;
    align-items: center;
}

.breadcrumbs-item:not(:last-child)::after {
    content: '/';
    margin: 0 10px;
    color: #6c757d;
}

/* Sections */
.section {
    padding: 60px 0;
}

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

.section-subtitle {
    color: #6c757d;
    text-align: center;
    margin-top: -20px;
    margin-bottom: 40px;
}

/* Search Form */
.search-form {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 40px;
}

.form-row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.form-group {
    flex: 1;
    padding: 0 15px;
    margin-bottom: 20px;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    font-size: 1rem;
    border: 1px solid #ced4da;
    border-radius: 4px;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    border-color: #0056b3;
    outline: none;
}

.btn {
    display: inline-block;
    font-weight: 500;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    user-select: none;
    border: 1px solid transparent;
    padding: 12px 30px;
    font-size: 1rem;
    line-height: 1.5;
    border-radius: 4px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary {
    color: #fff;
    background-color: #0056b3;
    border-color: #0056b3;
}

.btn-primary:hover {
    background-color: #003d7a;
    border-color: #003d7a;
}

/* Footer */
.site-footer {
    background-color: #1a1a1a;
    color: #fff;
    padding: 60px 0 30px;
}

.footer-widgets {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-gap: 30px;
    margin-bottom: 30px;
}

.footer-widget-title {
    color: #fff;
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-widget ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-widget li {
    margin-bottom: 10px;
}

.footer-widget a {
    color: #adb5bd;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-widget a:hover {
    color: #fff;
    text-decoration: underline;
}

#footer-menu {
    margin: 0;
    padding: 0;
}

#footer-menu li {
    margin-bottom: 10px;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo {
    max-height: 50px;
    margin-bottom: 20px;
}

.copyright {
    color: #adb5bd;
    font-size: 0.9rem;
}

/* Mosque Single Page */
.mosque-main-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    grid-gap: 30px;
    margin-bottom: 40px;
}

.mosque-attributes-section {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.mosque-secondary-info .info-section {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.mosque-secondary-info .info-section h2 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: #0056b3;
}

.nearby-mosques-section {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #e9ecef;
}

.nearby-mosques-section h2 {
    margin-bottom: 30px;
}

.attribute-category {
    margin-bottom: 20px;
}

.attribute-category h4 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: #0056b3;
}

.attribute-list {
    list-style: none;
}

.attribute-item {
    margin-bottom: 8px;
    display: flex;
    align-items: center;
}

.attribute-item.available .icon {
    color: #28a745;
}

.attribute-item.unavailable .icon {
    color: #dc3545;
}

.work-hours {
    margin-top: 10px;
}

.current-status {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 4px;
    margin-bottom: 15px;
    font-weight: 500;
}

.status-open {
    background-color: #d4edda;
    color: #155724;
}

.status-closed {
    background-color: #f8d7da;
    color: #721c24;
}

.hours-list {
    list-style: none;
}

.day-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #e9ecef;
}

.day-name {
    font-weight: 500;
}

.contact-info .contact-item {
    margin-bottom: 10px;
}

.navigation-links {
    margin-bottom: 20px;
}

/* Responsive Styles */
@media (max-width: 1200px) {
    .card-grid-4 {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .card-grid-4, .card-grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-widgets {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .form-row {
        flex-direction: column;
    }
    
    .form-group {
        margin-bottom: 15px;
    }
    
    .mosque-main-content {
        grid-template-columns: 1fr;
    }
    
    .mosque-primary-info {
        order: 1;
    }
    
    .mosque-secondary-info {
        order: 2;
    }
    
    .site-header-inner {
        flex-direction: column;
        text-align: center;
    }
    
    .site-branding {
        margin-bottom: 15px;
        justify-content: center;
    }
    
    .main-navigation {
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .card-grid-4, .card-grid-3, .card-grid-2 {
        grid-template-columns: 1fr;
    }
    
    .footer-widgets {
        grid-template-columns: 1fr;
    }
    
    .hero-title {
        font-size: 2rem;
    }
}
