/*
Theme Name: Emergency Dentist-Sonnet 4
Description: A professional directory theme for emergency dental services
Version: 1.0
Author: Custom Theme
*/

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.site-header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.site-logo img,
.custom-logo {
    height: 140px;
    max-height: 140px;
    width: auto;
    max-width: 300px;
}

.custom-logo {
    max-height: 140px;
    width: auto;
}

.custom-logo-link img {
    max-height: 140px;
    width: auto;
}

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

.main-navigation a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
}

.main-navigation a:hover {
    color: #007cba;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(rgba(0, 124, 186, 0.2), rgba(0, 124, 186, 0.2)), url('https://emergency-dentist-usa.com/wp-content/uploads/2025/06/ed_hero_background_image.png');
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    padding: 100px 0;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.hero-content p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Card Layouts */
.cards-grid {
    display: grid;
    gap: 2rem;
    margin: 2rem 0;
}

.cards-grid.cols-2 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.cards-grid.cols-3 {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.cards-grid.cols-4 {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

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

.card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.state-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.card-content {
    padding: 1.5rem;
}

.card-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #333;
}

.card-meta {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.card a {
    text-decoration: none;
    color: inherit;
}

/* Sections */
.section {
    padding: 4rem 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #333;
}

.section h3 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
    color: #333;
}

/* Forms and Dropdowns */
.search-form {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin: 2rem 0;
}

.form-row {
    display: flex;
    gap: 1rem;
    align-items: end;
    justify-content: center;
    flex-wrap: wrap;
}

.form-group {
    flex: 1;
    min-width: 200px;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #333;
}

.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    background: white;
}

/* Rating Display */
.rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: center;
}

.stars {
    color: #ffc107;
}

/* Work Hours */
.work-hours {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    margin: 1rem 0;
}

.work-hours h4 {
    margin-bottom: 0.5rem;
    color: #333;
}

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

.hours-list li {
    display: flex;
    justify-content: space-between;
    padding: 0.25rem 0;
    border-bottom: 1px solid #eee;
}

/* Navigation Links */
.nav-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: #007cba;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: background 0.3s ease;
    margin: 1rem 0;
}

.nav-link:hover {
    background: #005a87;
    color: white;
}

.nav-link i {
    font-size: 1.2rem;
}

/* Breadcrumbs */
.breadcrumbs {
    background: #f8f9fa;
    padding: 1rem 0;
    border-bottom: 1px solid #eee;
}

.breadcrumbs ul {
    display: flex;
    list-style: none;
    gap: 0.5rem;
    align-items: center;
}

.breadcrumbs a {
    color: #007cba;
    text-decoration: none;
}

.breadcrumbs a:hover {
    text-decoration: underline;
}

.breadcrumbs .separator {
    color: #666;
}

/* Footer */
.site-footer {
    background: #2c3e50;
    color: white;
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-logo img {
    max-height: 50px;
    margin-bottom: 1rem;
}

.footer-menu ul {
    list-style: none;
}

.footer-menu a {
    color: #87ceeb;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-menu a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #555;
    color: #ccc;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    .main-navigation ul {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .form-row {
        flex-direction: column;
    }
    
    .cards-grid.cols-4 {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

/* Utility Classes */
.text-center {
    text-align: center;
}

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

.mb-3 {
    margin-bottom: 1.5rem;
}

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

.status-open {
    color: #28a745;
    font-weight: 600;
}

.status-closed {
    color: #dc3545;
    font-weight: 600;
}

/* Icons */
.icon {
    width: 20px;
    height: 20px;
    display: inline-block;
    vertical-align: middle;
}

/* Ad Sections */
.ad-section {
    margin: 2rem 0;
    padding: 1rem;
    text-align: center;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
}

.ad-section.homepage-ad {
    margin: 3rem 0;
}

.ad-section.taxonomy-ad {
    margin: 2.5rem 0;
}

.ad-section.single-post-ad {
    margin: 3rem 0;
    max-width: 100%;
}

.ad-section.sidebar-ad {
    margin: 1.5rem 0;
    padding: 1rem;
    background: #ffffff;
    border: 1px solid #dee2e6;
    border-radius: 6px;
}

/* Ad responsive behavior */
.ad-section img {
    max-width: 100%;
    height: auto;
}

.ad-section iframe {
    max-width: 100%;
}

/* Provadent Banner Styles */
.provadent-banner {
    margin: 20px auto;
    text-align: center;
}

.provadent-banner > div {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.provadent-banner:hover > div {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.provadent-banner img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

/* Affiliate disclaimer styling */
.affiliate-disclaimer {
    margin-top: 15px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    color: #ccc;
    font-size: 0.8rem;
    line-height: 1.4;
}

.affiliate-disclaimer strong {
    color: #fff;
}

/* Responsive adjustments for banner */
@media (max-width: 768px) {
    .provadent-banner {
        margin: 15px auto;
    }
    
    .provadent-banner[style*="max-width: 600px"] {
        max-width: 90% !important;
    }
    
    .provadent-banner[style*="max-width: 400px"] {
        max-width: 85% !important;
    }
}
