/*
Theme Name: Nasime Rousta
Theme URI: https://nasimerousta.ir/
Author: Younes
Author URI: https://www.linkedin.com/in/younes-darabi-0951b3200
Version: 1.0
*/

@font-face {
    font-family: 'irs';
    font-style: normal;
    font-weight: normal;
    font-display: auto;
    src: url('fonts/IRANSansWeb.eot');
    src: url('fonts/IRANSansWeb.eot?#iefix') format('embedded-opentype'),
        url('fonts/IRANSansWeb.woff') format('woff'),
        url('fonts/IRANSansWeb.ttf') format('truetype');
}

@font-face {
    font-family: 'irs';
    font-style: normal;
    font-weight: 700;
    font-display: auto;
    src: url('fonts/IRANSansWeb_Bold.eot');
    src: url('fonts/IRANSansWeb_Bold.eot?#iefix') format('embedded-opentype'),
        url('fonts/IRANSansWeb_Bold.woff') format('woff'),
        url('fonts/IRANSansWeb_Bold.ttf') format('truetype');
}

:root {
    --paper: #F3EEDC;
    --paper-deep: #EAE2C8;
    --ink: #2A2318;
    --forest: #33502F;
    --forest-deep: #233A1F;
    --wheat: #C99A2E;
    --clay: #A85A2E;
    --sky: #5C7A88;
    --red: #B23B2E;
    --line: rgba(42, 35, 24, 0.16);
}

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

body {
    background: var(--paper);
    color: var(--ink);
    font-family: 'irs', sans-serif;
    font-weight: 400;
    line-height: 1.9;
    padding-bottom: 64px;
}

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

img {
    display: block;
    max-width: 100%;
}

ul {
    list-style: none;
}

.wrap {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px;
}

.sec-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--forest);
    padding-bottom: 10px;
    flex-wrap: wrap;
    gap: 8px;
}

.sec-head h2 {
    font-size: 21px;
    font-weight: 800;
    color: var(--forest-deep);
    display: flex;
    align-items: center;
    gap: 8px;
}

.sec-head a.more {
    font-size: 13px;
    color: var(--clay);
    font-weight: 600;
    white-space: nowrap;
}

.section {
    padding: 38px 0;
}

.section.alt {
    background: var(--paper-deep);
}

.dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    display: inline-block;
}

/* ---- ad slot ---- */
.ad {
    background: repeating-linear-gradient(45deg, var(--paper-deep), var(--paper-deep) 12px, #E1D6AE 12px, #E1D6AE 24px);
    border: 1px dashed var(--line);
    color: var(--ink);
    opacity: .6;
    text-align: center;
    font-size: 12px;
    padding: 16px;
    letter-spacing: .3px;
}

/* ---- header ---- */
header.site {
    background: var(--paper);
    border-bottom: 3px solid var(--forest);
    padding: 20px 0 16px;
}

header.site .row1 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.logo {
    font-size: 38px;
    font-weight: 900;
    color: var(--forest-deep);
    letter-spacing: -1px;
    line-height: 1;
}

.logo small {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--clay);
    margin-top: 6px;
    letter-spacing: 0;
}

header .logo img {
    width: 90px;
    border-radius: 20px;
    box-shadow: 0 0 8px #9c9c9c;
}

.search {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    max-width: 420px;
}

.search input {
    flex: 1;
    border: 1px solid var(--line);
    background: #fff;
    padding: 10px 14px;
    font-family: inherit;
    font-size: 13px;
    border-radius: 2px;
}

.search input:focus {
    outline: 2px solid var(--wheat);
}

.search .adv {
    font-size: 12px;
    color: var(--clay);
    font-weight: 600;
    white-space: nowrap;
}

.meta-strip {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 12px;
    opacity: .75;
}

.meta-strip .social {
    display: flex;
    gap: 8px;
}

.meta-strip .social span {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--forest);
    color: var(--paper);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
}

nav.main {
    background: var(--forest);
    border-bottom: 1px solid var(--forest-deep);
}

nav.main .wrap {
    display: flex;
    align-items: center;
    gap: 2px;
    overflow-x: auto;
}

nav.main a {
    color: var(--paper);
    font-size: 14.5px;
    font-weight: 500;
    padding: 13px 8px;
    white-space: nowrap;
    border-bottom: 3px solid transparent;
    transition: border-color .15s ease;
}

nav.main a:hover {
    border-bottom-color: var(--wheat);
}

nav.main a.active {
    border-bottom-color: var(--wheat);
    font-weight: 700;
}

nav.main .live {
    margin-right: auto;
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--red);
    color: #fff;
    font-weight: 700;
    padding: 9px 14px;
    font-size: 13px;
}

nav.main .live .dot {
    background: #fff;
    animation: pulse 1.4s infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: .3;
    }
}

/* ---- ticker ---- */
.ticker {
    background: var(--forest-deep);
    color: var(--paper);
    font-size: 13.5px;
    padding: 8px 0;
    overflow: hidden;
    white-space: nowrap;
}

.ticker .wrap {
    display: flex;
    align-items: center;
    gap: 14px;
    overflow: hidden;
    padding: 0;
}

.ticker .tag {
    background: var(--red);
    color: #fff;
    font-weight: 700;
    padding: 2px 10px;
    border-radius: 2px;
    flex: none;
    display: flex;
    align-items: center;
    gap: 6px;
    position: relative;
    z-index: 3;
}

.ticker .tag .dot {
    background: #fff;
    animation: pulse 1.4s infinite;
}

.ticker .items {
    display: flex;
    gap: 34px;
    animation: scroll 30s linear infinite;
}

@keyframes scroll {
    0% {
        transform: translateX(-20%)
    }

    100% {
        transform: translateX(100%)
    }
}

@media (prefers-reduced-motion: reduce) {
    .ticker .items {
        animation: none;
        overflow-x: auto;
    }
}

/* ---- hero ---- */
.hero {
    padding: 36px 0;
    border-bottom: 1px solid var(--line);
}

.hero .grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 26px;
}

.hero-main {
    position: relative;
    border-radius: 2px;
    overflow: hidden;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, rgba(35, 58, 31, 0) 35%, rgba(23, 32, 15, .93) 100%),
        linear-gradient(180deg, #7FA05C, #C99A2E 55%, #8A5A22);
}

.hero-main .cap {
    padding: 26px;
    color: var(--paper);
}

.hero-main .eyebrow {
    display: inline-block;
    background: var(--clay);
    padding: 4px 10px;
    font-size: 12.5px;
    font-weight: 600;
    border-radius: 2px;
    margin-bottom: 12px;
}

.hero-main h1 {
    font-size: 27px;
    font-weight: 800;
    line-height: 1.5;
    margin-bottom: 8px;
}

.hero-main p {
    font-size: 14px;
    opacity: .9;
}

.hero-mid {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.mid-card {
    border: 1px solid var(--line);
    background: #fff;
    padding: 16px;
}

.mid-card .thumb {
    height: 130px;
    margin: -16px -16px 12px;
    background: linear-gradient(135deg, #8FAF6A, #4B6B3A);
}

.thumb img {
    height: 100%;
    width: 100%;
}

.mid-card.agri .thumb {
    background: linear-gradient(135deg, #D9B24C, #8A5A22);
}

.mid-card .tag {
    font-size: 11.5px;
    font-weight: 700;
    color: var(--forest);
    margin-bottom: 6px;
}

.mid-card h4 {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.6;
}

.hero-latest .item {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 11px 0;
    border-bottom: 1px solid var(--line);
    font-size: 13.5px;
}

.hero-latest .item:last-child {
    border: none;
}

.hero-latest .item span.t {
    opacity: .55;
    font-size: 12px;
    flex: none;
}

/* ---- pulse sections (village / agriculture) ---- */
.pulse-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.pulse-card {
    background: #fff;
    border: 1px solid var(--line);
}

.pulse-card .thumb {
    height: 160px;
    background: linear-gradient(135deg, #8FAF6A, #33502F);
}

.pulse-card.agri .thumb {
    background: linear-gradient(135deg, #D9B24C, #A85A2E);
}

.pulse-card .body {
    padding: 14px;
}

.pulse-card .tag {
    font-size: 11.5px;
    font-weight: 700;
    color: var(--clay);
    margin-bottom: 6px;
}

.pulse-card h4 {
    font-size: 14.5px;
    font-weight: 700;
    line-height: 1.6;
}

.sec-foot {
    text-align: left;
    margin-top: 16px;
}

.sec-foot a {
    font-size: 13px;
    font-weight: 700;
    color: var(--forest-deep);
}

/* ---- صدای روستا ---- */
.voice {
    background: var(--forest);
    color: var(--paper);
    padding: 34px;
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 30px;
}

.voice h2 {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 16px;
    color: var(--paper);
    border: none;
    padding: 0;
}

.voice blockquote {
    font-size: 19px;
    line-height: 1.9;
    font-weight: 600;
    border-right: 3px solid var(--wheat);
    padding-right: 16px;
}

.voice cite {
    display: block;
    margin-top: 12px;
    font-size: 13px;
    opacity: .75;
    font-style: normal;
}

.voice .reply {
    background: rgba(243, 238, 220, .08);
    border: 1px solid rgba(243, 238, 220, .25);
    padding: 18px;
}

.voice .reply .label {
    font-size: 12px;
    color: var(--wheat);
    font-weight: 700;
    margin-bottom: 10px;
}

.voice .reply p {
    font-size: 14px;
    opacity: .9;
}

/* ---- گزارش ویژه ---- */
.report {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: center;
}

.report .img {
    height: 280px;
    background: linear-gradient(135deg, #5C7A88, #233A1F);
}

.report h3 {
    font-size: 23px;
    font-weight: 800;
    line-height: 1.6;
    margin-bottom: 14px;
    color: var(--forest-deep);
}

.report p {
    font-size: 14px;
    opacity: .8;
    margin-bottom: 16px;
}

.report .tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.report .tags span {
    font-size: 12px;
    border: 1px solid var(--line);
    padding: 5px 12px;
    border-radius: 20px;
    color: var(--clay);
    font-weight: 600;
}

/* ---- پرونده هفته ---- */
.dossier {
    background: var(--paper-deep);
    border: 1px solid var(--line);
    padding: 30px;
}

.dossier .top {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 18px;
    flex-wrap: wrap;
    gap: 8px;
}

.dossier .top h3 {
    font-size: 22px;
    font-weight: 800;
    color: var(--forest-deep);
}

.dossier .links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.dossier .links a {
    background: #fff;
    border: 1px solid var(--line);
    padding: 9px 16px;
    font-size: 13.5px;
    font-weight: 600;
}

.dossier .links a:hover {
    border-color: var(--wheat);
}

/* ---- بازار کشاورزی ---- */
.market {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 24px;
}

.price-board {
    background: var(--forest-deep);
    color: var(--paper);
    border-radius: 2px;
    overflow: hidden;
}

.price-board .row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 12px;
    padding: 12px 18px;
    font-size: 13.5px;
    border-bottom: 1px solid rgba(243, 238, 220, .12);
    align-items: center;
}

.price-board .row.head {
    font-weight: 700;
    color: var(--wheat);
    font-size: 11.5px;
    background: rgba(0, 0, 0, .15);
}

.price-board .up {
    color: #8FD08A;
    font-weight: 700;
}

.price-board .down {
    color: #E28B7A;
    font-weight: 700;
}

.inputs-board {
    background: #fff;
    border: 1px solid var(--line);
}

.inputs-board .row {
    display: flex;
    justify-content: space-between;
    padding: 12px 18px;
    font-size: 13.5px;
    border-bottom: 1px solid var(--line);
}

.inputs-board .row:last-child {
    border: none;
}

.inputs-board .row span:last-child {
    font-weight: 700;
    color: var(--clay);
}

/* ---- روستای هفته / کشاورز موفق ---- */
.profile {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 0;
    background: #fff;
    border: 1px solid var(--line);
}

.profile .img {
    min-height: 280px;
    background: linear-gradient(135deg, #8FAF6A, #33502F, #C99A2E);
}

.profile .body {
    padding: 26px;
}

.profile h3 {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 12px;
    color: var(--forest-deep);
}

.profile .stats {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 14px;
    font-size: 12.5px;
}

.profile .stats div {
    background: var(--paper-deep);
    padding: 6px 12px;
    border-radius: 2px;
}

.profile .stats b {
    color: var(--clay);
}

.profile p {
    font-size: 13.5px;
    opacity: .85;
    margin-bottom: 12px;
}

.farmer {
    display: flex;
    gap: 24px;
    align-items: center;
    background: #fff;
    border: 1px solid var(--line);
    padding: 24px;
}

.farmer .img {
    width: 150px;
    height: 150px;
    flex: none;
    border-radius: 50%;
    background: linear-gradient(135deg, #D9B24C, #8A5A22);
}

.farmer h3 {
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 10px;
    color: var(--forest-deep);
}

.farmer p {
    font-size: 14px;
    opacity: .85;
    margin-bottom: 12px;
}

.farmer a {
    font-size: 13px;
    font-weight: 700;
    color: var(--clay);
}

.farmer .img img {
    width: 100%;
    height: 100%;
    border-radius: 100px;
}

/* ---- استان‌ها ---- */
.provinces {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.provinces a {
    background: #fff;
    border: 1px solid var(--line);
    padding: 9px 16px;
    font-size: 13.5px;
}

.provinces a:hover {
    border-color: var(--forest);
    color: var(--forest-deep);
    font-weight: 600;
}

.province-path {
    margin-top: 16px;
    font-size: 12.5px;
    opacity: .6;
}

/* ---- روستا در قاب ---- */
.media-trio {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.media-card {
    background: #fff;
    border: 1px solid var(--line);
}

.media-card .thumb {
    height: 150px;
    background: linear-gradient(135deg, #5C7A88, #233A1F);
    position: relative;
}

.media-card.photo .thumb {
    background: linear-gradient(135deg, #C99A2E, #8A5A22);
}

.media-card.podcast .thumb {
    background: linear-gradient(135deg, #A85A2E, #33502F);
}

.media-card .body {
    padding: 16px;
}

.media-card .kind {
    font-size: 11.5px;
    font-weight: 700;
    color: var(--clay);
    margin-bottom: 6px;
}

.media-card h4 {
    font-size: 14px;
    font-weight: 700;
}

/* ---- کشاورزی فردا ---- */
.tech-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.tech-tile {
    background: var(--forest-deep);
    color: var(--paper);
    padding: 24px 18px;
    text-align: center;
}

.tech-tile .ic {
    font-size: 26px;
    margin-bottom: 10px;
}

.tech-tile span {
    font-size: 14px;
    font-weight: 700;
}

/* ---- پربازدیدترین‌ها ---- */
.top-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 30px;
}

.top-list .item {
    display: flex;
    align-items: baseline;
    gap: 14px;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
}

.top-list .num {
    font-size: 24px;
    font-weight: 800;
    color: var(--wheat);
    width: 30px;
    flex: none;
}

.top-list h4 {
    font-size: 14px;
    font-weight: 600;
}

/* ---- footer ---- */
footer.site {
    background: var(--forest-deep);
    color: var(--paper);
    padding: 44px 0 24px;
    margin-top: 10px;
}

footer.site .cols {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 30px;
    padding-bottom: 26px;
    border-bottom: 1px solid rgba(243, 238, 220, .15);
}

footer.site h5 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 14px;
    color: var(--wheat);
}

footer.site li {
    font-size: 13px;
    opacity: .85;
    margin-bottom: 9px;
}

footer.site .about p {
    font-size: 13px;
    opacity: .8;
    max-width: 280px;
}

footer.site .legal {
    font-size: 11.5px;
    opacity: .55;
    margin-top: 16px;
}

footer.site .bottom {
    display: flex;
    justify-content: space-between;
    padding-top: 18px;
    font-size: 12px;
    opacity: .65;
    flex-wrap: wrap;
    gap: 10px;
}

section.content-box {
    padding: 14px 0;
}

.post-content-box .description {
    text-align: justify;
    line-height: 36px;
    background: var(--paper-deep);
    padding: 14px;
    border-radius: 14px;
}

.post-content-box .description img.thumbnail {
    width: 400px;
    margin: 0 auto;
    border-radius: 20px;
}

.archive-items {
    display: flex;
    flex-wrap: wrap;
}

.archive-items .item {
    width: 25%;
    padding: 10px;
}

.archive-items .item .box {
    background: var(--paper-deep);
    height: 100%;
    padding: 10px;
    border-radius: 14px;
}

.archive-items .item .box img {
    width: 100%;
    height: 170px;
}

.archive-items .item .box h2.title {
    font-size: 15px;
    padding-top: 10px;
}

/* ---- mobile bottom nav ---- */
.mobile-nav {
    display: none;
}

@media (max-width: 720px) {
    .mobile-nav {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: var(--forest-deep);
        border-top: 1px solid rgba(243, 238, 220, .15);
        z-index: 50;
    }

    .mobile-nav a {
        flex: 1;
        text-align: center;
        color: var(--paper);
        font-size: 11px;
        padding: 10px 4px;
        opacity: .85;
    }

    .tip-btn {
        position: fixed;
        bottom: 70px;
        left: 16px;
        background: var(--red);
        color: #fff;
        padding: 12px 18px;
        border-radius: 30px;
        font-size: 13px;
        font-weight: 700;
        z-index: 50;
        box-shadow: 0 4px 14px rgba(0, 0, 0, .25);
    }
}

@media (max-width: 900px) {
    .hero .grid {
        grid-template-columns: 1fr;
    }

    .pulse-grid {
        grid-template-columns: 1fr 1fr;
    }

    .voice {
        grid-template-columns: 1fr;
    }

    .report {
        grid-template-columns: 1fr;
    }

    .market {
        grid-template-columns: 1fr;
    }

    .profile {
        grid-template-columns: 1fr;
    }

    .media-trio {
        grid-template-columns: 1fr;
    }

    .tech-grid {
        grid-template-columns: 1fr 1fr;
    }

    .top-list {
        grid-template-columns: 1fr;
    }

    footer.site .cols {
        grid-template-columns: 1fr 1fr;
    }

    .search {
        display: none;
    }
}