/*
Theme Name: Koshkenar Modern
Theme URI: https://koshkenar.com
Description: تم مدرن شهرداری کوشکنار - بنر اسلایدر، پروژه‌ها، اخبار و منو Navigation
Version: 1.0.0
Author: Koshkenar Municipality
Author URI: https://koshkenar.com
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: koshkenar-modern
Domain Path: /languages
Requires at least: 5.0
Requires PHP: 7.2
*/

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #0d47a1;
    --primary-dark: #0a3a7f;
    --primary-light: #1565c0;
    --accent: #ff6f00;
    --accent-light: #ffb74d;
    --text-dark: #1a1a1a;
    --text-light: #666666;
    --bg-light: #f5f7fa;
    --white: #ffffff;
    --shadow: 0 4px 16px rgba(0,0,0,0.12);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    direction: rtl;
    font-family: 'Poppins', 'Vazir', sans-serif;
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', 'Vazir', sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-light);
    line-height: 1.6;
}

/* HEADER & NAVIGATION */
header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: var(--white);
    padding: 0;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 40px;
}

.logo {
    font-size: 26px;
    font-weight: 800;
    text-decoration: none;
    color: var(--white);
    display: flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
}

.logo:hover {
    color: var(--accent-light);
}

.logo i {
    font-size: 32px;
    color: var(--accent);
}

nav ul {
    list-style: none;
    display: flex;
    gap: 35px;
    flex-wrap: wrap;
    align-items: center;
}

nav a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    transition: var(--transition);
    padding: 8px 0;
    position: relative;
}

nav a::before {
    content: '';
    position: absolute;
    bottom: -2px;
    right: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--accent-light));
    transition: width 0.3s ease;
}

nav a:hover {
    color: var(--accent-light);
}

nav a:hover::before {
    width: 100%;
}

/* BANNER SLIDER */
.banner-section {
    position: relative;
    height: 700px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
}

.banner-slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.banner-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease;
}

.banner-slide.active {
    opacity: 1;
}

.banner-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.6);
}

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(13, 71, 161, 0.5);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--white);
    z-index: 5;
}

.banner-overlay h1 {
    font-size: 56px;
    font-weight: 800;
    margin-bottom: 20px;
    text-shadow: 2px 2px 12px rgba(0,0,0,0.4);
}

.banner-overlay p {
    font-size: 22px;
    margin-bottom: 40px;
    text-shadow: 1px 1px 6px rgba(0,0,0,0.3);
}

.banner-cta {
    display: inline-block;
    padding: 16px 45px;
    background: linear-gradient(135deg, var(--accent), #ff8c00);
    color: var(--white);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    transition: var(--transition);
    box-shadow: 0 6px 20px rgba(255, 111, 0, 0.35);
}

.banner-cta:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(255, 111, 0, 0.45);
}

.banner-controls {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 14px;
    z-index: 10;
}

.banner-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.4);
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid rgba(255,255,255,0.6);
}

.banner-dot.active {
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    border-color: var(--accent);
    transform: scale(1.3);
    box-shadow: 0 0 15px rgba(255, 111, 0, 0.5);
}

/* CONTAINER */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

main {
    background-color: var(--bg-light);
}

/* PROJECTS SECTION */
.projects-section {
    padding: 80px 0;
    background: linear-gradient(180deg, var(--bg-light) 0%, var(--white) 100%);
}

.section-title {
    color: var(--primary);
    margin-bottom: 60px;
    font-size: 42px;
    font-weight: 800;
    text-align: center;
    position: relative;
    padding-bottom: 20px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 5px;
    background: linear-gradient(90deg, var(--accent), var(--accent-light));
    border-radius: 3px;
}

.projects-carousel {
    position: relative;
    overflow: hidden;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.project-item {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    cursor: pointer;
}

.project-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.project-image {
    position: relative;
    width: 100%;
    height: 250px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 48px;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.project-item:hover .project-image img {
    transform: scale(1.1);
}

.project-content {
    padding: 25px;
}

.project-content h3 {
    color: var(--primary);
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
}

.project-content p {
    color: var(--text-light);
    font-size: 14px;
    line-height: 1.6;
}

/* NEWS SECTION */
.news-section {
    padding: 80px 0;
    background-color: var(--white);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.news-item {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.news-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.news-image {
    position: relative;
    width: 100%;
    height: 220px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 48px;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.news-item:hover .news-image img {
    transform: scale(1.1);
}

.news-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.news-content h3 {
    color: var(--primary);
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
}

.news-content p {
    color: var(--text-light);
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 15px;
    flex-grow: 1;
}

.news-date {
    color: var(--text-light);
    font-size: 13px;
    margin-bottom: 15px;
}

.read-more {
    display: inline-block;
    padding: 10px 20px;
    background: linear-gradient(135deg, var(--accent), #ff8c00);
    color: var(--white);
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    font-size: 14px;
    transition: var(--transition);
    align-self: flex-start;
}

.read-more:hover {
    transform: translateX(-5px);
    box-shadow: 0 4px 15px rgba(255, 111, 0, 0.3);
}

/* FOOTER */
footer {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 60px 40px 30px;
    margin-top: 80px;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
}

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

.footer-section h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--accent-light);
}

.footer-section p {
    line-height: 1.8;
    color: rgba(255,255,255,0.9);
    font-size: 15px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    transition: var(--transition);
    font-size: 15px;
}

.footer-links a:hover {
    color: var(--accent-light);
}

.contact-info {
    margin-top: 15px;
}

.contact-info p {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-info i {
    color: var(--accent);
    font-size: 18px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: rgba(255,255,255,0.15);
    color: var(--white);
    border-radius: 50%;
    transition: var(--transition);
    border: 2px solid rgba(255,255,255,0.3);
}

.social-links a:hover {
    background: var(--accent);
    border-color: var(--accent);
    transform: translateY(-5px);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.2);
    padding-top: 30px;
    text-align: center;
    color: rgba(255,255,255,0.8);
    font-size: 14px;
}

/* ABOUT CITY SECTION */
.about-city-section {
    padding: 80px 0;
    background: linear-gradient(180deg, var(--white) 0%, var(--bg-light) 100%);
}

.about-city-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-city-text {
    color: var(--text-dark);
    line-height: 1.8;
}

.about-city-text p {
    margin-bottom: 20px;
    font-size: 16px;
    color: var(--text-light);
}

.about-city-text p:first-child {
    color: var(--primary);
    font-weight: 600;
    font-size: 18px;
}

.about-city-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.feature-item {
    background: var(--white);
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.feature-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.feature-item i {
    font-size: 36px;
    color: var(--accent);
    margin-bottom: 15px;
}

.feature-item h3 {
    color: var(--primary);
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
}

.feature-item p {
    color: var(--text-light);
    font-size: 14px;
    line-height: 1.6;
}

/* HISTORY SECTION */
.history-section {
    padding: 80px 0;
    background: linear-gradient(180deg, var(--bg-light) 0%, var(--white) 100%);
}

.history-timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.history-timeline::before {
    content: '';
    position: absolute;
    right: 30px;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, var(--accent), var(--accent-light));
    border-radius: 2px;
}

.timeline-item {
    display: flex;
    gap: 40px;
    margin-bottom: 40px;
    position: relative;
}

.timeline-marker {
    position: relative;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(255, 111, 0, 0.3);
    z-index: 2;
}

.timeline-marker::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background: var(--white);
    border-radius: 50%;
    border: 4px solid var(--white);
}

.timeline-content {
    background: var(--white);
    padding: 25px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    flex-grow: 1;
}

.timeline-content:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    transform: translateX(-8px);
}

.timeline-content h3 {
    color: var(--primary);
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
}

.timeline-content p {
    color: var(--text-light);
    font-size: 15px;
    line-height: 1.6;
}

/* PAGINATION */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    border: 2px solid var(--primary);
}

.pagination a {
    background: var(--white);
    color: var(--primary);
}

.pagination a:hover {
    background: var(--primary);
    color: var(--white);
    box-shadow: 0 4px 12px rgba(13, 71, 161, 0.3);
}

.pagination span.current {
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    color: var(--white);
    border-color: var(--accent);
}

.pagination span.dots {
    border: none;
    padding: 0;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .banner-overlay h1 {
        font-size: 42px;
    }
    
    .banner-overlay p {
        font-size: 18px;
    }
    
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .banner-section {
        height: 500px;
    }
    
    .banner-overlay h1 {
        font-size: 32px;
    }
    
    .banner-overlay p {
        font-size: 16px;
    }
    
    .header-container {
        padding: 12px 20px;
    }
    
    nav ul {
        gap: 20px;
        font-size: 13px;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .about-city-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .about-city-features {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .timeline-item {
        gap: 20px;
    }
    
    .container {
        padding: 0 20px;
    }
}

@media (max-width: 480px) {
    .banner-section {
        height: 400px;
    }
    
    .banner-overlay h1 {
        font-size: 24px;
    }
    
    .banner-overlay p {
        font-size: 14px;
    }
    
    .banner-cta {
        padding: 12px 30px;
        font-size: 14px;
    }
    
    nav ul {
        gap: 10px;
        font-size: 12px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .about-city-content {
        grid-template-columns: 1fr;
    }
    
    .about-city-features {
        grid-template-columns: 1fr;
    }
    
    .about-city-text p {
        font-size: 14px;
    }
    
    .feature-item {
        padding: 20px;
    }
    
    .feature-item i {
        font-size: 28px;
    }
    
    .feature-item h3 {
        font-size: 16px;
    }
    
    .timeline-item {
        gap: 15px;
        margin-bottom: 30px;
    }
    
    .timeline-marker {
        width: 50px;
        height: 50px;
    }
    
    .timeline-content {
        padding: 20px;
    }
    
    .timeline-content h3 {
        font-size: 16px;
    }
    
    .timeline-content p {
        font-size: 13px;
    }
    
    .container {
        padding: 0 15px;
    }
}
