/*
Theme Name: Przedszkola
Theme URI: https://przedszkola.pl
Description: Motyw do wyświetlania listy przedszkoli w Polsce, wzorowany na koscioly.org.pl
Version: 1.0
Author: Damian
Text Domain: przedszkola
*/

:root {
    --primary-color: #b1712a;
    --text-dark: #333;
    --text-light: #666;
    --bg-light: #f8f9fa;
    --border-color: #dee2e6;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
}

.header-one {
    background: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.main-nav {
    padding: 0;
}

.logo img {
    height: 60px;
}

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

.nav-bar ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 30px;
}

.nav-bar a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-bar a:hover {
    color: var(--primary-color);
}

/* Hero Section */
.hero-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

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

.hero-section .lead {
    font-size: 1.25rem;
    opacity: 0.95;
}

/* Blog Posts Section */
.blog-posts-section {
    padding: 60px 0 40px;
    background: #fff;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.blog-post-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    height: 100%;
    display: flex;
    flex-direction: column;
}

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

.post-image-link {
    display: block;
    overflow: hidden;
    position: relative;
    padding-bottom: 66.67%; /* 3:2 aspect ratio */
    background: var(--bg-light);
}

.post-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-post-card:hover .post-image {
    transform: scale(1.05);
}

.post-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.post-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.4;
}

.post-title a {
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.3s;
}

.post-title a:hover {
    color: var(--primary-color);
}

.post-meta {
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px solid var(--border-color);
}

.post-date {
    font-size: 0.85rem;
    color: var(--text-light);
}

/* Statistics */
.statistics-section {
    padding: 60px 0;
    background: var(--bg-light);
}

/* Popular Categories Section */
.popular-categories-section {
    padding: 60px 0;
    background: #fff;
}

.category-card {
    display: block;
    text-decoration: none;
    height: 100%;
    transition: all 0.3s ease;
}

.category-card:hover {
    transform: translateY(-5px);
}

.category-image {
    position: relative;
    height: 250px;
    background-size: cover;
    background-position: center;
    border-radius: 8px;
    overflow: hidden;
}

.category-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.4) 50%, transparent 100%);
    color: #fff;
}

.category-name {
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0 0 5px 0;
    color: #fff;
}

.category-count {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Custom grid for 5 columns */
.col-lg-2-4 {
    flex: 0 0 20%;
    max-width: 20%;
}

@media (max-width: 991px) {
    .col-lg-2-4 {
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
    }
}

@media (max-width: 575px) {
    .col-lg-2-4 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

/* Featured Posts Section */
.featured-posts-section {
    padding: 60px 0;
    background: var(--bg-light);
}

.featured-post-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    height: 100%;
    display: flex;
    flex-direction: column;
}

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

.featured-post-image-link {
    display: block;
    overflow: hidden;
    position: relative;
    padding-bottom: 66.67%;
    background: var(--bg-light);
}

.featured-post-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.featured-post-card:hover .featured-post-image {
    transform: scale(1.05);
}

.featured-post-content {
    padding: 15px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.featured-post-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.4;
}

.featured-post-title a {
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.3s;
}

.featured-post-title a:hover {
    color: var(--primary-color);
}

.featured-post-meta {
    margin-top: auto;
    padding-top: 8px;
    border-top: 1px solid var(--border-color);
}

.featured-post-date {
    font-size: 0.8rem;
    color: var(--text-light);
}

/* Statistics */
.statistics-section {
    padding: 60px 0;
    background: var(--bg-light);
}

.stat-card {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.stat-label {
    font-size: 1.1rem;
    color: var(--text-light);
}

/* Voivodeships Grid */
.voivodeships-section {
    padding: 60px 0;
}

.voivodeship-item {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 15px;
    text-decoration: none;
    color: var(--text-dark);
    transition: all 0.3s;
}

.voivodeship-item:hover {
    background: var(--bg-light);
    border-color: var(--primary-color);
    transform: translateX(5px);
}

.voivodeship-name {
    flex: 1;
    font-weight: 500;
    font-size: 1.1rem;
}

.image-icon {
    width: 20px;
    height: 20px;
}

/* Cities Grid */
.cities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.city-item {
    display: block;
    padding: 12px 20px;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    text-decoration: none;
    color: var(--text-dark);
    transition: all 0.3s;
    font-weight: 500;
}

.city-item:hover {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

/* Kindergarten List */
.kindergarten-item {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 20px;
    transition: box-shadow 0.3s;
}

.kindergarten-item:hover {
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.kindergarten-item h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.kindergarten-item h3 a {
    color: var(--primary-color);
    text-decoration: none;
}

.kindergarten-item h3 a:hover {
    text-decoration: underline;
}

.kindergarten-info {
    display: grid;
    gap: 10px;
}

.kindergarten-info dt {
    font-weight: 600;
    color: var(--text-dark);
}

.kindergarten-info dd {
    color: var(--text-light);
    margin-left: 0;
}

/* Single Kindergarten */
.kindergarten-detail {
    padding: 40px 0;
}

.kindergarten-meta {
    background: var(--bg-light);
    border-radius: 10px;
    padding: 30px;
    margin-bottom: 30px;
}

.kindergarten-meta h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.kindergarten-meta dl {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 15px 20px;
}

.kindergarten-meta dt {
    font-weight: 600;
}

.kindergarten-meta dd {
    margin: 0;
    color: var(--text-light);
}

/* Map */
.kindergarten-map-container {
    height: 400px;
    border-radius: 8px;
    overflow: hidden;
    margin: 30px 0;
}

.map-actions {
    margin-top: 15px;
}

.map-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--primary-color);
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    transition: background 0.3s;
}

.map-link:hover {
    background: #8d5721;
    color: #fff;
}

/* Breadcrumbs */
.breadcrumb-list {
    background: transparent;
    padding: 20px 0;
    margin: 0;
}

.breadcrumb-item a {
    color: var(--primary-color);
    text-decoration: none;
}

.breadcrumb-item.active {
    color: var(--text-light);
}

/* Footer */
.footer-one {
    background: #2c3e50;
    color: #ecf0f1;
    padding: 60px 0 20px;
    margin-top: 60px;
}

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

.quick-links {
    list-style: none;
    padding: 0;
}

.quick-links li {
    margin-bottom: 10px;
}

.quick-links a {
    color: #ecf0f1;
    text-decoration: none;
    transition: color 0.3s;
}

.quick-links a:hover {
    color: var(--primary-color);
}

.copy-right {
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: 40px;
    padding-top: 20px;
    text-align: center;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .cities-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
    
    .kindergarten-meta h1 {
        font-size: 1.8rem;
    }
}

/* Letter Headers */
.letter-header {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    border-bottom: 3px solid var(--primary-color);
    padding-bottom: 10px;
    margin: 40px 0 20px;
}

.cities-section:first-child .letter-header {
    margin-top: 0;
}

/* Opening Hours Badge */
.hours-badge {
    display: inline-block;
    padding: 5px 12px;
    background: #e8f5e9;
    color: #2e7d32;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Contact Icons */
.contact-info {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 10px 0;
}

.contact-icon {
    width: 20px;
    height: 20px;
    fill: var(--primary-color);
}

.gap {
    padding: 40px 0;
}

.pastor-detail {
    padding: 20px 0;
}

.pastor-meta {
    background: var(--bg-light);
    border-radius: 10px;
    padding: 30px;
    margin-bottom: 30px;
}

.pastor-content {
    margin-top: 30px;
}

.w-85 {
    width: 85%;
}

.m-auto {
    margin-left: auto;
    margin-right: auto;
}

.designation {
    color: var(--text-light);
    font-size: 1.1rem;
}

.designation a {
    color: var(--primary-color);
    text-decoration: none;
}

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

.header__title-main {
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 20px;
}

/* Related Kindergartens Section */
.related-kindergartens {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 2px solid var(--border-color);
}

.related-kindergartens .kindergarten-item {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.related-kindergartens .kindergarten-item h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.related-kindergartens .kindergarten-item p {
    font-size: 0.9rem;
}
