/* ----- Reset & Base ----- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

@font-face {
    font-display: swap;
    font-family: 'Estedad';
    src: url('https://zanjan360.ir/wp-content/uploads/2025/12/Estedad-Regular.woff2') format('woff2'),
         url('https://zanjan360.ir/wp-content/uploads/2025/12/Estedad-Regular.woff') format('woff');
}
@font-face {
    font-display: swap;
    font-family: 'Estedad-Black';
    src: url('https://zanjan360.ir/wp-content/uploads/2025/12/Estedad-Black.woff2') format('woff2'),
         url('https://zanjan360.ir/wp-content/uploads/2025/12/Estedad-Black.woff') format('woff');
}

body {
    font-family: 'Estedad', 'Segoe UI', Tahoma, sans-serif;
    background: #ffffff;
    color: #2c1a3a;
    line-height: 1.8;
    padding: 0 20px;
}
.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 20px 0 60px;
}

/* ----- Colors ----- */
:root {
    --primary: #fcb900;
    --secondary: #52005c;
    --light-bg: #fefcf7;
    --card-shadow: 0 8px 30px rgba(82, 0, 92, 0.08);
}

/* ----- Typography & Links ----- */
a {
    color: var(--secondary);
    text-decoration: none;
    transition: 0.2s;
}
a:hover {
    color: var(--primary);
}

/* ----- Header ----- */
.header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    padding: 25px 0 15px;
    border-bottom: 3px solid var(--primary);
    margin-bottom: 30px;
}
.logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.logo img {
    height: 90px;
    width: auto;
    display: block;
}
.logo .tagline {
    font-size: 0.95rem;
    color: #6a4a7a;
    margin-top: 2px;
    font-weight: 400;
}
.header-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.header-actions a {
    background: #fff;
    padding: 10px 20px;
    border-radius: 40px;
    color: var(--secondary);
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    border: 1px solid #e4dce8;
    transition: 0.3s;
}
.header-actions a:hover {
    background: var(--secondary);
    color: #fff;
    border-color: var(--secondary);
    transform: translateY(-2px);
}
.header-actions a i {
    color: var(--primary);
    margin-left: 8px;
}
.header-actions a:hover i {
    color: #fff;
}

/* ----- Search ----- */
.search-wrap {
    background: #fff;
    border-radius: 60px;
    padding: 6px 6px 6px 20px;
    display: flex;
    align-items: center;
    box-shadow: 0 4px 16px rgba(82,0,92,0.08);
    border: 1px solid #e4dce8;
    max-width: 480px;
    width: 100%;
    margin: 10px 0 20px;
    transition: 0.3s;
}
.search-wrap:focus-within {
    box-shadow: 0 4px 20px rgba(252, 185, 0, 0.25);
    border-color: var(--primary);
}
.search-wrap input {
    border: none;
    outline: none;
    flex: 1;
    padding: 12px 0;
    font-size: 1rem;
    background: transparent;
    font-family: inherit;
    color: var(--secondary);
}
.search-wrap button {
    background: var(--primary);
    border: none;
    color: var(--secondary);
    padding: 10px 28px;
    border-radius: 40px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
    font-family: inherit;
    font-size: 0.95rem;
}
.search-wrap button:hover {
    background: #e6a800;
    transform: scale(1.02);
}

/* ----- Navigation (smooth scroll) ----- */
.nav-sticky {
    background: #fff;
    padding: 12px 0;
    border-radius: 60px;
    margin: 20px 0 30px;
    box-shadow: 0 4px 20px rgba(82,0,92,0.06);
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 20px;
    border: 1px solid #ece4f0;
    position: sticky;
    top: 10px;
    z-index: 100;
    backdrop-filter: blur(10px);
    background: rgba(255,255,255,0.85);
}
.nav-sticky a {
    font-weight: 600;
    color: var(--secondary);
    padding: 6px 14px;
    border-radius: 30px;
    transition: 0.3s;
    font-size: 0.95rem;
    position: relative;
}
.nav-sticky a i {
    margin-left: 8px;
    color: var(--primary);
}
.nav-sticky a:hover {
    background: var(--primary);
    color: #fff;
}
.nav-sticky a:hover i {
    color: #fff;
}

/* ----- SLIDER ----- */
.slider-container {
    position: relative;
    width: 100%;
    height: 500px;
    border-radius: 32px;
    overflow: hidden;
    margin: 10px 0 30px;
    box-shadow: 0 12px 40px rgba(82,0,92,0.12);
    border: 2px solid var(--primary);
}
.slider {
    position: relative;
    width: 100%;
    height: 100%;
}
.slide {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease;
    background: #2c1a3a;
}
.slide.active {
    opacity: 1;
}
.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.slide-caption {
    position: absolute;
    bottom: 40px;
    right: 40px;
    background: rgba(82, 0, 92, 0.75);
    backdrop-filter: blur(6px);
    padding: 20px 30px;
    border-radius: 20px;
    color: #fff;
    max-width: 60%;
    border-right: 6px solid var(--primary);
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}
.slide-caption h2 {
    font-family: 'Estedad-black', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 1.8rem;
    margin-bottom: 6px;
    color: #fff;
}
.slide-caption p {
    font-size: 1rem;
    opacity: 0.9;
    margin: 0;
}
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.25);
    backdrop-filter: blur(4px);
    border: none;
    color: #fff;
    font-size: 2.5rem;
    padding: 10px 18px;
    cursor: pointer;
    border-radius: 60px;
    transition: 0.3s;
    z-index: 10;
    font-weight: 300;
    line-height: 1;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.slider-btn:hover {
    background: var(--primary);
    color: var(--secondary);
    transform: translateY(-50%) scale(1.05);
}
.prev-slide {
    right: 20px;
}
.next-slide {
    left: 20px;
}
.dots-container {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}
.dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: 0.3s;
    border: 2px solid transparent;
}
.dot.active {
    background: var(--primary);
    border-color: #fff;
    transform: scale(1.2);
}
.dot:hover {
    background: var(--primary);
}

@media (max-width: 700px) {
    .slider-container {
        height: 300px;
        border-radius: 20px;
    }
    .slide-caption {
        bottom: 20px;
        right: 20px;
        max-width: 80%;
        padding: 14px 20px;
    }
    .slide-caption h2 {
        font-size: 1.2rem;
    }
    .slide-caption p {
        font-size: 0.85rem;
    }
    .slider-btn {
        font-size: 1.6rem;
        padding: 6px 12px;
    }
    .dots-container {
        gap: 8px;
        bottom: 12px;
    }
    .dot {
        width: 10px;
        height: 10px;
    }
}

/* ----- Sections ----- */
.section {
    padding: 50px 0 40px;
    margin-bottom: 20px;
    border-bottom: 1px solid #eee8f0;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.section.visible {
    opacity: 1;
    transform: translateY(0);
}
.section:last-of-type {
    border-bottom: none;
}
.section-title {
    font-family: 'Estedad-black', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 2rem;
    font-weight: 800;
    color: var(--secondary);
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 14px;
}
.section-title i {
    color: var(--primary);
    font-size: 2.2rem;
}
.section-sub {
    color: #5a3a6a;
    margin-top: -10px;
    margin-bottom: 20px;
}

/* ----- Cards ----- */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 25px;
}
.card {
    background: #fff;
    border-radius: 28px;
    padding: 28px 24px;
    box-shadow: var(--card-shadow);
    border: 1px solid #f0eaf3;
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    margin-top: 10px;
}
.card:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: 0 16px 40px rgba(82,0,92,0.12);
    border-color: var(--primary);
}
.card::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 6px;
    height: 100%;
    background: var(--primary);
    border-radius: 0 28px 28px 0;
    opacity: 0;
    transition: 0.4s;
}
.card:hover::after {
    opacity: 1;
}
.card h3 {
    font-family: 'Estedad-black', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 1.3rem;
    color: var(--secondary);
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.card h3 i {
    color: var(--primary);
    width: 28px;
    text-align: center;
}
.card p, .card li {
    color: #3d2a4a;
    font-size: 0.98rem;
}
.card ul {
    list-style: none;
    padding: 0;
}
.card ul li {
    padding: 8px 0;
    border-bottom: 1px solid #f3edf6;
}
.card ul li:last-child {
    border: none;
}
.stat-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px dashed #eee8f0;
}
.stat-row .label {
    font-weight: 500;
    color: #6a4a7a;
}
.stat-row .value {
    font-weight: 700;
    color: var(--secondary);
}
.badge {
    display: inline-block;
    background: var(--primary);
    color: var(--secondary);
    padding: 4px 18px;
    border-radius: 40px;
    font-weight: 700;
    font-size: 0.8rem;
}

/* ----- Map ----- */
.map-wrapper {
    background: #fff;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    border: 2px solid var(--primary);
    margin: 20px 0 10px;
    height: 400px;
    transition: 0.4s;
}
.map-wrapper:hover {
    box-shadow: 0 12px 40px rgba(252, 185, 0, 0.25);
}
#map {
    height: 100%;
    width: 100%;
}

/* ----- Quick links ----- */
.quick-links {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin: 25px 0 10px;
}
.quick-links a {
    background: #fff;
    padding: 10px 24px;
    border-radius: 50px;
    color: var(--secondary);
    font-weight: 600;
    border: 1px solid #e4dce8;
    transition: 0.3s;
    font-size: 0.9rem;
    box-shadow: 0 2px 6px rgba(0,0,0,0.02);
}
.quick-links a i {
    margin-left: 10px;
    color: var(--primary);
}
.quick-links a:hover {
    background: var(--secondary);
    color: #fff;
    border-color: var(--secondary);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(82,0,92,0.15);
}
.quick-links a:hover i {
    color: #fff;
}

/* ----- Footer ----- */
.footer {
    margin-top: 60px;
    padding: 40px 0 20px;
    border-top: 3px solid var(--primary);
    text-align: center;
    color: #5a3a6a;
}
.footer a {
    color: var(--secondary);
    font-weight: 600;
}
.footer a:hover {
    color: var(--primary);
}

/* ----- Scroll to top ----- */
.scroll-top {
    position: fixed;
    bottom: 30px;
    left: 30px;
    background: var(--secondary);
    color: #fff;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    box-shadow: 0 6px 24px rgba(82,0,92,0.25);
    cursor: pointer;
    transition: 0.3s;
    border: none;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: scale(0.8);
}
.scroll-top.show {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}
.scroll-top:hover {
    background: var(--primary);
    color: var(--secondary);
    transform: scale(1.08);
}

/* ----- Responsive ----- */
@media (max-width: 700px) {
    .header {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    .search-wrap {
        max-width: 100%;
    }
    .nav-sticky {
        position: relative;
        top: 0;
        border-radius: 30px;
        padding: 10px 12px;
        gap: 6px;
    }
    .nav-sticky a {
        font-size: 0.8rem;
        padding: 4px 10px;
    }
    .section-title {
        font-size: 1.6rem;
    }
    .logo img {
        height: 45px;
    }
}

/* ----- Animations helpers ----- */
.fade-in {
    animation: fadeIn 1s ease forwards;
}
@keyframes fadeIn {
    0% { opacity: 0; transform: translateY(30px); }
    100% { opacity: 1; transform: translateY(0); }
}
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }

/* ----- News, Weather, Handicrafts ----- */
.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 30px;
    margin-top: 20px;
}
@media (max-width: 900px) {
    .info-grid {
        grid-template-columns: 1fr;
    }
}
.info-card {
    background: #fff;
    border-radius: 28px;
    padding: 24px 20px;
    box-shadow: var(--card-shadow);
    border: 1px solid #f0eaf3;
    transition: 0.3s;
    max-height: 400px;
    overflow-y: auto;
}
.info-card:hover {
    border-color: var(--primary);
    box-shadow: 0 8px 30px rgba(82,0,92,0.1);
}
.info-card h4 {
    font-family: 'Estedad-black', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--secondary);
    margin-bottom: 16px;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 10px;
}
.info-card h4 i {
    color: var(--primary);
}
.news-item {
    padding: 10px 0;
    border-bottom: 1px solid #f3edf6;
}
.news-item:last-child {
    border: none;
}
.news-item a {
    font-weight: 500;
    color: var(--secondary);
    transition: 0.2s;
}
.news-item a:hover {
    color: var(--primary);
}
.news-item small {
    color: #8a7a9a;
    font-size: 0.8rem;
    display: block;
}
.weather-temp {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--secondary);
}
.weather-desc {
    font-size: 1rem;
    color: #5a3a6a;
}
.weather-detail {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    border-bottom: 1px dashed #eee8f0;
}
.handicraft-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid #f3edf6;
}
.handicraft-item i {
    color: var(--primary);
    width: 28px;
    text-align: center;
    font-size: 1.2rem;
}
.chart-container {
    background: #fff;
    border-radius: 28px;
    padding: 20px;
    box-shadow: var(--card-shadow);
    border: 1px solid #f0eaf3;
    margin-top: 20px;
}
.chart-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 30px;
    margin-top: 20px;
}
@media (max-width: 900px) {
    .chart-grid {
        grid-template-columns: 1fr;
    }
}
.chart-box {
    background: #fff;
    border-radius: 28px;
    padding: 20px;
    box-shadow: var(--card-shadow);
    border: 1px solid #f0eaf3;
}
.chart-box h4 {
    font-family: 'Estedad-black', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--secondary);
    margin-bottom: 16px;
    text-align: center;
}