/*
Theme Name: Medica Green
Theme URI: https://example.com/
Author: OpenAI
Author URI: https://openai.com/
Description: قالب وردپرس پزشکی با طراحی مدرن، RTL، رنگ سبز پزشکی و باکس‌های حرفه‌ای
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
Text Domain: medica-green
Tags: medical, rtl-language-support, blog, news, custom-logo, custom-menu, threaded-comments
*/

@font-face {
    font-family: 'VazirFD';
    src: url('fonts/Vazir-Light-FD-WOL.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'VazirFD';
    src: url('fonts/Vazir-Bold-FD-WOL.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

:root{
    --bg:#f6fbf8;
    --white:#ffffff;
    --text:#10261d;
    --muted:#63756d;
    --line:#dbe9e2;
    --green:#18a76a;
    --green-2:#0f8f59;
    --green-3:#0a6f45;
    --green-soft:#e6f7ef;
    --shadow:0 12px 35px rgba(16,38,29,.08);
    --shadow-lg:0 20px 60px rgba(16,38,29,.12);
    --radius:18px;
    --radius-lg:26px;
    --container:1280px;
}

*,
*::before,
*::after{box-sizing:border-box}

html{scroll-behavior:smooth}
body{
    margin:0;
    font-family:'VazirFD',Tahoma,sans-serif;
    background:var(--bg);
    color:var(--text);
    direction:rtl;
    line-height:1.8;
    -webkit-font-smoothing:antialiased;
    text-rendering:optimizeLegibility;
}

img{
    max-width:100%;
    height:auto;
    display:block;
}

a{
    color:var(--green-3);
    text-decoration:none;
    transition:.2s ease;
}
a:hover{color:var(--green)}

button,input,textarea,select{
    font:inherit;
}

.container{
    width:min(var(--container), calc(100% - 32px));
    margin-inline:auto;
}

.site-main{
    padding-block:24px 56px;
}

.screen-reader-text{
    position:absolute !important;
    width:1px;
    height:1px;
    padding:0;
    margin:-1px;
    overflow:hidden;
    clip:rect(0,0,0,0);
    white-space:nowrap;
    border:0;
}

/* Header */
.site-header{
    position:sticky;
    top:0;
    z-index:99;
    background:rgba(255,255,255,.85);
    backdrop-filter:blur(10px);
    border-bottom:1px solid rgba(219,233,226,.6);
    transition:box-shadow .25s ease, background .25s ease;
}
.site-header.is-scrolled{
    box-shadow:0 8px 24px rgba(0,0,0,.06);
    background:rgba(255,255,255,.95);
}
.header-top{
    background:linear-gradient(135deg,var(--green-3),var(--green));
    color:#fff;
    font-size:.88rem;
}
.header-top .container{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:16px;
    padding:8px 0;
}
.mini-links{
    display:flex;
    gap:12px;
    align-items:center;
    flex-wrap:wrap;
}
.mini-links a{
    color:#e7fff4;
    opacity:.95;
}
.mini-links a:hover{opacity:1;color:#fff}

.header-main .container{
    display:grid;
    grid-template-columns:auto 1fr auto;
    align-items:center;
    gap:16px;
    padding:14px 0;
}
.brand{
    display:flex;
    align-items:center;
    gap:12px;
}
.brand-logo{
    width:48px;height:48px;
    border-radius:14px;
    background:linear-gradient(135deg,var(--green-soft),#fff);
    border:1px solid var(--line);
    box-shadow:var(--shadow);
    display:grid;
    place-items:center;
    color:var(--green-2);
    font-weight:700;
    font-size:1.15rem;
}
.custom-logo{
    max-height:48px;
    width:auto;
}
.brand-title{
    margin:0;
    font-size:1rem;
    line-height:1.2;
}
.brand-title a{color:var(--text)}
.brand-subtitle{
    margin:0;
    color:var(--muted);
    font-size:.8rem;
    line-height:1.2;
}

.main-navigation{
    min-width:0;
}
.main-navigation ul{
    list-style:none;
    margin:0;
    padding:0;
    display:flex;
    align-items:center;
    gap:8px;
    flex-wrap:wrap;
}
.main-navigation a{
    display:block;
    padding:10px 12px;
    border-radius:12px;
    color:var(--text);
    font-size:.95rem;
    font-weight:400;
}
.main-navigation a:hover,
.main-navigation .current-menu-item > a,
.main-navigation .current_page_item > a{
    background:var(--green-soft);
    color:var(--green-3);
}

.header-actions{
    display:flex;
    align-items:center;
    gap:8px;
}
.icon-btn{
    width:42px;height:42px;
    border-radius:12px;
    border:1px solid var(--line);
    background:#fff;
    display:grid;
    place-items:center;
    cursor:pointer;
    color:var(--text);
    transition:.2s ease;
    box-shadow:0 4px 14px rgba(16,38,29,.04);
}
.icon-btn:hover{
    transform:translateY(-2px);
    border-color:#c5ddd2;
    box-shadow:var(--shadow);
}

.mobile-menu-toggle{display:none}
.mobile-menu-panel{
    display:none;
    border-top:1px solid var(--line);
    background:#fff;
}
.mobile-menu-panel.is-open{display:block}
.mobile-menu-panel .container{padding:8px 0 14px}
.mobile-menu-panel ul{
    list-style:none;margin:0;padding:0;
}
.mobile-menu-panel a{
    display:block;
    padding:12px 14px;
    border-radius:12px;
    color:var(--text);
}
.mobile-menu-panel a:hover{
    background:var(--green-soft);
}

/* Search Panel */
.search-panel{
    display:none;
    border-top:1px solid var(--line);
    background:linear-gradient(180deg,#fff,#fbfffd);
}
.search-panel.is-open{display:block}
.search-panel .container{padding:14px 0}
.search-panel .search-form{
    display:flex;
    gap:10px;
    align-items:center;
}
.search-panel input[type="search"]{
    flex:1;
    min-width:0;
    border:1px solid var(--line);
    background:#fff;
    border-radius:14px;
    padding:12px 14px;
    outline:none;
}
.search-panel input[type="search"]:focus{
    border-color:#9bd7b9;
    box-shadow:0 0 0 4px rgba(24,167,106,.08);
}
.search-panel button{
    border:none;
    background:linear-gradient(135deg,var(--green),var(--green-2));
    color:#fff;
    border-radius:14px;
    padding:12px 18px;
    cursor:pointer;
}

/* Ticker */
.news-ticker{
    margin-top:4px;
    border-top:1px solid var(--line);
    border-bottom:1px solid var(--line);
    background:#fff;
}
.news-ticker .container{
    display:grid;
    grid-template-columns:auto 1fr;
    gap:12px;
    align-items:center;
    padding:10px 0;
}
.ticker-label{
    white-space:nowrap;
    background:var(--green-soft);
    color:var(--green-3);
    padding:6px 10px;
    border-radius:999px;
    font-size:.82rem;
    font-weight:700;
}
.ticker-track{
    overflow:hidden;
    position:relative;
}
.ticker-inner{
    display:flex;
    gap:24px;
    width:max-content;
    animation:tickerMove 30s linear infinite;
    will-change:transform;
}
.ticker-track:hover .ticker-inner{animation-play-state:paused}
.ticker-item{
    display:flex;
    align-items:center;
    gap:8px;
    color:var(--muted);
    white-space:nowrap;
}
.ticker-item a{
    color:var(--text);
}
.ticker-dot{
    width:6px;height:6px;border-radius:50%;background:var(--green);
}
@keyframes tickerMove{
    from{transform:translateX(0)}
    to{transform:translateX(40%)}
}

/* Hero */
.hero{
    position:relative;
    overflow:hidden;
    border-radius:var(--radius-lg);
    background:
        radial-gradient(500px 180px at 20% 10%, rgba(24,167,106,.15), transparent 60%),
        radial-gradient(420px 220px at 90% 100%, rgba(15,143,89,.12), transparent 60%),
        linear-gradient(180deg,#ffffff,#f8fefb);
    border:1px solid var(--line);
    box-shadow:var(--shadow-lg);
    padding:26px;
    margin-bottom:24px;
}
.hero-grid{
    display:grid;
    grid-template-columns:1.2fr .8fr;
    gap:18px;
    align-items:stretch;
}
.hero-content h1{
    margin:0 0 10px;
    line-height:1.35;
    font-size:clamp(1.35rem,2vw,2rem);
}
.hero-content p{
    margin:0 0 16px;
    color:var(--muted);
}
.hero-actions{
    display:flex;
    gap:10px;
    flex-wrap:wrap;
    margin-bottom:16px;
}
.btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:8px;
    padding:11px 16px;
    border-radius:14px;
    border:1px solid var(--line);
    color:var(--text);
    background:#fff;
    font-weight:700;
    transition:.2s ease;
    cursor:pointer;
}
.btn:hover{transform:translateY(-2px);box-shadow:var(--shadow)}
.btn-primary{
    color:#fff;
    border-color:transparent;
    background:linear-gradient(135deg,var(--green),var(--green-2));
}
.hero-search{
    display:flex;
    gap:10px;
    background:#fff;
    border:1px solid var(--line);
    padding:10px;
    border-radius:16px;
    box-shadow:0 8px 20px rgba(16,38,29,.04);
}
.hero-search input{
    flex:1;
    min-width:0;
    border:none;
    outline:none;
    background:transparent;
    padding:4px 6px;
}
.hero-search button{
    border:none;
    background:var(--green-soft);
    color:var(--green-3);
    border-radius:12px;
    padding:8px 12px;
    cursor:pointer;
    font-weight:700;
}

.hero-panel{
    display:grid;
    gap:12px;
    align-content:start;
}
.glass-card{
    background:rgba(255,255,255,.8);
    border:1px solid rgba(219,233,226,.9);
    border-radius:18px;
    box-shadow:var(--shadow);
    padding:14px;
    backdrop-filter:blur(8px);
}
.stats-grid{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:10px;
}
.stat{
    background:#fff;
    border:1px dashed #cfe6db;
    border-radius:14px;
    padding:12px;
}
.stat-number{
    display:block;
    font-size:1.25rem;
    color:var(--green-3);
    font-weight:700;
    line-height:1.1;
}
.stat-label{
    color:var(--muted);
    font-size:.85rem;
}

/* Sections */
.section{
    margin-top:22px;
}
.section-head{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:10px;
    margin-bottom:14px;
}
.section-title{
    margin:0;
    font-size:1.1rem;
    display:flex;
    align-items:center;
    gap:8px;
}
.section-title .badge-dot{
    width:10px;height:10px;border-radius:50%;
    background:linear-gradient(135deg,var(--green),var(--green-2));
    box-shadow:0 0 0 6px rgba(24,167,106,.08);
}
.section-link{
    color:var(--muted);
    font-size:.9rem;
}
.section-link:hover{color:var(--green-2)}

.category-tiles{
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:14px;
    margin-top:6px;
}
.cat-tile{
    position:relative;
    overflow:hidden;
    background:#fff;
    border:1px solid var(--line);
    border-radius:20px;
    padding:16px;
    box-shadow:var(--shadow);
    transition:.25s ease;
    isolation:isolate;
}
.cat-tile::before{
    content:"";
    position:absolute;
    inset:auto -20px -30px auto;
    width:120px;height:120px;
    border-radius:50%;
    background:radial-gradient(circle, rgba(24,167,106,.18), transparent 70%);
    z-index:-1;
}
.cat-tile:hover{
    transform:translateY(-4px);
    box-shadow:var(--shadow-lg);
    border-color:#cce4d8;
}
.cat-tile h3{
    margin:0 0 8px;
    font-size:1rem;
    line-height:1.4;
}
.cat-tile p{
    margin:0 0 12px;
    color:var(--muted);
    font-size:.88rem;
    min-height:48px;
}
.cat-meta{
    display:flex;
    align-items:center;
    justify-content:space-between;
    color:var(--muted);
    font-size:.82rem;
}
.cat-pill{
    display:inline-flex;
    align-items:center;
    gap:6px;
    border-radius:999px;
    background:var(--green-soft);
    color:var(--green-3);
    padding:5px 10px;
    font-weight:700;
}

/* Cards */
.card-grid{
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:14px;
}
.post-card{
    position:relative;
    background:#fff;
    border:1px solid var(--line);
    border-radius:20px;
    overflow:hidden;
    box-shadow:var(--shadow);
    transition:transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.post-card:hover{
    transform:translateY(-5px);
    box-shadow:var(--shadow-lg);
    border-color:#c5ddd2;
}
.post-card .thumb{
    aspect-ratio:16/10;
    background:linear-gradient(135deg,#f1fbf6,#ebf7f1);
    overflow:hidden;
}
.post-card .thumb img{
    width:100%;
    height:100%;
    object-fit:cover;
    transition:transform .35s ease;
}
.post-card:hover .thumb img{transform:scale(1.04)}
.post-card .content{
    padding:14px;
}
.post-card .meta{
    color:var(--muted);
    font-size:.78rem;
    display:flex;
    align-items:center;
    gap:8px;
    flex-wrap:wrap;
    margin-bottom:6px;
}
.post-card .meta span{
    display:inline-flex;
    align-items:center;
    gap:5px;
}
.post-card h3{
    margin:0 0 8px;
    font-size:.97rem;
    line-height:1.55;
}
.post-card h3 a{color:var(--text)}
.post-card h3 a:hover{color:var(--green-2)}
.post-card .excerpt{
    margin:0;
    color:var(--muted);
    font-size:.86rem;
    line-height:1.8;
}
.card-tag{
    position:absolute;
    top:10px; right:10px;
    background:rgba(16,38,29,.72);
    color:#fff;
    border-radius:999px;
    padding:4px 8px;
    font-size:.72rem;
    backdrop-filter:blur(6px);
}

/* Fancy box variants */
.feature-box{
    display:grid;
    grid-template-columns:1.1fr .9fr;
    gap:14px;
    margin-top:16px;
}
.feature-main{
    background:#fff;
    border:1px solid var(--line);
    border-radius:22px;
    box-shadow:var(--shadow-lg);
    overflow:hidden;
    display:grid;
    grid-template-columns:.95fr 1.05fr;
}
.feature-main .feature-media{
    min-height:100%;
    background:linear-gradient(135deg,#eefaf4,#dff4e9);
}
.feature-main .feature-media img{
    width:100%;
    height:100%;
    object-fit:cover;
}
.feature-main .feature-content{
    padding:18px;
}
.feature-main h3{
    margin:8px 0;
    font-size:1.1rem;
    line-height:1.55;
}
.feature-main p{
    margin:0 0 12px;
    color:var(--muted);
    font-size:.9rem;
}
.feature-side{
    display:grid;
    gap:12px;
}
.mini-feature{
    background:#fff;
    border:1px solid var(--line);
    border-radius:18px;
    padding:14px;
    box-shadow:var(--shadow);
    display:grid;
    grid-template-columns:auto 1fr;
    gap:12px;
    align-items:flex-start;
}
.mini-feature .icon{
    width:44px;height:44px;border-radius:14px;
    background:var(--green-soft);
    color:var(--green-3);
    display:grid;place-items:center;
    font-weight:700;
}
.mini-feature h4{
    margin:0 0 4px;
    font-size:.95rem;
    line-height:1.5;
}
.mini-feature p{
    margin:0;
    color:var(--muted);
    font-size:.84rem;
    line-height:1.7;
}

/* FAQ */
.faq-list{
    display:grid;
    gap:10px;
}
.faq-item{
    background:#fff;
    border:1px solid var(--line);
    border-radius:16px;
    box-shadow:var(--shadow);
    overflow:hidden;
}
.faq-q{
    width:100%;
    text-align:right;
    border:none;
    background:transparent;
    padding:14px 16px;
    font-weight:700;
    color:var(--text);
    cursor:pointer;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:10px;
}
.faq-q .mark{
    width:30px;height:30px;border-radius:10px;
    background:var(--green-soft);
    display:grid;place-items:center;
    color:var(--green-3);
    flex:0 0 30px;
}
.faq-a{
    display:none;
    padding:0 16px 14px;
    color:var(--muted);
    border-top:1px solid var(--line);
}
.faq-item.is-open .faq-a{display:block}

/* Layout */
.content-layout{
    display:grid;
    grid-template-columns:minmax(0,1fr) 320px;
    gap:18px;
}
.content-layout.no-sidebar{
    grid-template-columns:minmax(0,1fr);
}
.content-area-card,
.widget-area{
    background:#fff;
    border:1px solid var(--line);
    border-radius:22px;
    box-shadow:var(--shadow);
}
.content-area-card{padding:18px}
.widget-area{
    padding:14px;
    align-self:start;
    position:sticky;
    top:96px;
}

.archive-head{
    background:#fff;
    border:1px solid var(--line);
    border-radius:22px;
    box-shadow:var(--shadow);
    padding:18px;
    margin-bottom:14px;
}
.archive-head h1{
    margin:0 0 6px;
    line-height:1.5;
    font-size:1.25rem;
}
.archive-head .desc{
    color:var(--muted);
    margin:0;
}
.term-chip{
    display:inline-flex;
    align-items:center;
    gap:8px;
    background:var(--green-soft);
    color:var(--green-3);
    border-radius:999px;
    padding:6px 10px;
    font-size:.85rem;
    font-weight:700;
    margin-bottom:8px;
}

/* Posts list */
.posts-list{
    display:grid;
    gap:14px;
}
.post-row{
    display:grid;
    grid-template-columns:240px 1fr;
    gap:14px;
    background:#fff;
    border:1px solid var(--line);
    border-radius:18px;
    padding:12px;
    box-shadow:var(--shadow);
    transition:.25s ease;
}
.post-row:hover{
    transform:translateY(-4px);
    box-shadow:var(--shadow-lg);
}
.post-row .thumb{
    aspect-ratio:16/10;
    border-radius:14px;
    overflow:hidden;
    background:linear-gradient(135deg,#eefaf4,#e6f7ef);
}
.post-row .thumb img{
    width:100%;
    height:100%;
    object-fit:cover;
}
.post-row h2{
    margin:4px 0 8px;
    font-size:1.08rem;
    line-height:1.65;
}
.post-row h2 a{color:var(--text)}
.post-row h2 a:hover{color:var(--green-2)}
.post-row .meta{
    color:var(--muted);
    font-size:.84rem;
    display:flex;
    flex-wrap:wrap;
    gap:10px;
}
.post-row .excerpt{
    margin:8px 0 0;
    color:var(--muted);
    font-size:.9rem;
}

/* Single */
.single-article{
    background:#fff;
    border:1px solid var(--line);
    border-radius:24px;
    box-shadow:var(--shadow-lg);
    overflow:hidden;
}
.single-cover{
    position:relative;
    background:linear-gradient(180deg,#eefaf4,#f8fefb);
    border-bottom:1px solid var(--line);
}
.single-cover img{
    width:100%;
    max-height:520px;
    object-fit:cover;
}
.single-header{
    padding:22px 20px 10px;
}
.single-title{
    margin:8px 0 8px;
    font-size:clamp(1.2rem,2vw,1.9rem);
    line-height:1.6;
}
.single-meta{
    display:flex;
    flex-wrap:wrap;
    gap:10px;
    color:var(--muted);
    font-size:.85rem;
}
.single-tax{
    display:flex;
    flex-wrap:wrap;
    gap:8px;
    margin-top:12px;
}
.single-tax a{
    display:inline-flex;
    align-items:center;
    gap:6px;
    padding:6px 10px;
    border-radius:999px;
    background:#f3faf6;
    border:1px solid #d7ece0;
    color:var(--green-3);
    font-size:.82rem;
}
.single-body{
    padding:8px 20px 20px;
    color:#203229;
}
.single-body h2,
.single-body h3,
.single-body h4{
    line-height:1.7;
    margin:1.25em 0 .6em;
}
.single-body p{
    margin:0 0 1rem;
}
.single-body ul,
.single-body ol{
    padding-inline-start:20px;
}
.single-body blockquote{
    margin:1rem 0;
    padding:14px 16px;
    border-right:4px solid var(--green);
    background:#f7fcf9;
    border-radius:12px;
    color:#2f4a3d;
}
.single-body table{
    width:100%;
    border-collapse:collapse;
    margin:1rem 0;
    overflow:hidden;
    border-radius:12px;
}
.single-body th,
.single-body td{
    border:1px solid var(--line);
    padding:10px;
    text-align:right;
}
.single-body th{
    background:#f4fbf7;
}
.single-footer{
    border-top:1px solid var(--line);
    padding:16px 20px 20px;
}
.author-box{
    display:grid;
    grid-template-columns:auto 1fr;
    gap:12px;
    align-items:center;
    margin-top:14px;
    background:#fafefb;
    border:1px solid var(--line);
    border-radius:16px;
    padding:12px;
}
.author-box .avatar{
    border-radius:50%;
    overflow:hidden;
}
.author-box h4{
    margin:0 0 4px;
    line-height:1.4;
}
.author-box p{
    margin:0;
    color:var(--muted);
    font-size:.9rem;
}

.related-posts{
    margin-top:16px;
}

/* Pagination */
.navigation.pagination,
.posts-navigation,
.post-navigation{
    margin-top:16px;
}
.nav-links{
    display:flex;
    flex-wrap:wrap;
    gap:8px;
}
.page-numbers{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-width:40px;
    height:40px;
    border-radius:12px;
    border:1px solid var(--line);
    background:#fff;
    color:var(--text);
    padding:0 10px;
    box-shadow:0 4px 10px rgba(16,38,29,.03);
}
.page-numbers.current,
.page-numbers:hover{
    background:var(--green-soft);
    color:var(--green-3);
    border-color:#cfe6db;
}

/* Widgets */
.widget{
    margin:0 0 14px;
    background:#fff;
    border:1px solid var(--line);
    border-radius:16px;
    padding:12px;
}
.widget:last-child{margin-bottom:0}
.widget-title{
    margin:0 0 10px;
    font-size:.95rem;
    line-height:1.5;
    display:flex;
    align-items:center;
    gap:8px;
}
.widget-title::before{
    content:"";
    width:8px;height:8px;border-radius:50%;
    background:var(--green);
}
.widget ul{
    list-style:none;
    margin:0;
    padding:0;
}
.widget li{
    margin:0;
    border-bottom:1px dashed #e3efe9;
}
.widget li:last-child{border-bottom:none}
.widget li a{
    display:block;
    padding:8px 0;
    color:var(--text);
}
.widget li a:hover{color:var(--green-2)}
.widget select,
.widget input[type="search"],
.widget input[type="text"],
.widget input[type="email"],
.widget textarea{
    width:100%;
    border:1px solid var(--line);
    border-radius:12px;
    padding:10px 12px;
    background:#fff;
}
.wp-block-search__button,
.widget button,
.widget input[type="submit"]{
    border:none;
    border-radius:12px;
    padding:10px 14px;
    background:linear-gradient(135deg,var(--green),var(--green-2));
    color:#fff;
    cursor:pointer;
}

/* Comments */
.comments-area{
    margin-top:16px;
    background:#fff;
    border:1px solid var(--line);
    border-radius:20px;
    box-shadow:var(--shadow);
    padding:16px;
}
.comments-title{
    margin:0 0 12px;
    font-size:1rem;
}
.comment-list{
    list-style:none;
    margin:0;
    padding:0;
    display:grid;
    gap:12px;
}
.comment-body{
    background:#f9fdfb;
    border:1px solid var(--line);
    border-radius:14px;
    padding:12px;
}
.comment-meta{
    display:flex;
    flex-wrap:wrap;
    gap:8px;
    font-size:.82rem;
    color:var(--muted);
    margin-bottom:8px;
}
.comment-content p:last-child{margin-bottom:0}
.comment-respond{
    margin-top:16px;
    border-top:1px solid var(--line);
    padding-top:14px;
}
.comment-form p{margin:0 0 10px}
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea{
    width:100%;
    border:1px solid var(--line);
    border-radius:12px;
    padding:10px 12px;
    background:#fff;
}
.comment-form .submit{
    border:none;
    border-radius:12px;
    padding:11px 16px;
    background:linear-gradient(135deg,var(--green),var(--green-2));
    color:#fff;
    cursor:pointer;
}

/* Footer */
.site-footer{
    margin-top:32px;
    background:
        radial-gradient(400px 150px at 90% 10%, rgba(24,167,106,.15), transparent 60%),
        linear-gradient(180deg,#fff,#f5fbf8);
    border-top:1px solid var(--line);
}
.footer-top{
    padding:24px 0 14px;
}
.footer-grid{
    display:grid;
    grid-template-columns:1.1fr 1fr 1fr;
    gap:14px;
}
.footer-box{
    background:#fff;
    border:1px solid var(--line);
    border-radius:18px;
    box-shadow:var(--shadow);
    padding:14px;
}
.footer-box h3{
    margin:0 0 10px;
    font-size:1rem;
}
.footer-box p{
    margin:0;
    color:var(--muted);
    font-size:.9rem;
}
.footer-bottom{
    border-top:1px solid var(--line);
    padding:12px 0 16px;
}
.footer-bottom .container{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:10px;
    flex-wrap:wrap;
}
.footer-menu ul{
    list-style:none;
    margin:0;
    padding:0;
    display:flex;
    flex-wrap:wrap;
    gap:8px;
}
.footer-menu a{
    color:var(--muted);
    padding:6px 8px;
    border-radius:10px;
}
.footer-menu a:hover{
    background:#fff;
    color:var(--green-3);
}
.copy{
    color:var(--muted);
    font-size:.86rem;
}

/* Utility */
.badge{
    display:inline-flex;
    align-items:center;
    gap:6px;
    padding:5px 10px;
    border-radius:999px;
    font-size:.8rem;
    font-weight:700;
    background:var(--green-soft);
    color:var(--green-3);
}
.muted{color:var(--muted)}
.mt-0{margin-top:0!important}
.mb-0{margin-bottom:0!important}

.no-results{
    background:#fff;
    border:1px solid var(--line);
    border-radius:18px;
    padding:18px;
    box-shadow:var(--shadow);
}

/* Reveal animation */
.reveal{
    opacity:0;
    transform:translateY(14px);
    transition:opacity .5s ease, transform .5s ease;
}
.reveal.is-visible{
    opacity:1;
    transform:none;
}

/* Back to top */
.back-to-top{
    position:fixed;
    left:16px;
    bottom:16px;
    width:46px;height:46px;
    border:none;
    border-radius:14px;
    background:linear-gradient(135deg,var(--green),var(--green-2));
    color:#fff;
    box-shadow:var(--shadow-lg);
    cursor:pointer;
    opacity:0;
    visibility:hidden;
    transform:translateY(8px);
    transition:.25s ease;
    z-index:80;
}
.back-to-top.is-visible{
    opacity:1;
    visibility:visible;
    transform:none;
}

/* WP alignment */
.aligncenter{margin-inline:auto}
.alignleft{float:left;margin:0 0 1rem 1rem}
.alignright{float:right;margin:0 1rem 1rem 0}
.wp-caption{
    max-width:100%;
    border:1px solid var(--line);
    background:#fff;
    border-radius:12px;
    padding:8px;
}
.wp-caption-text{
    color:var(--muted);
    font-size:.82rem;
    margin:8px 0 0;
    text-align:center;
}
.gallery{
    display:grid;
    gap:10px;
}

/* Responsive */
@media (max-width: 1100px){
    .card-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
    .category-tiles{grid-template-columns:repeat(3,minmax(0,1fr))}
    .feature-box{grid-template-columns:1fr}
    .content-layout{grid-template-columns:minmax(0,1fr)}
    .widget-area{position:static}
    .footer-grid{grid-template-columns:1fr 1fr}
}

@media (max-width: 860px){
    .header-main .container{
        grid-template-columns:1fr auto auto;
    }
    .main-navigation{display:none}
    .mobile-menu-toggle{display:grid}
    .hero-grid{grid-template-columns:1fr}
    .card-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
    .category-tiles{grid-template-columns:repeat(2,minmax(0,1fr))}
    .feature-main{grid-template-columns:1fr}
    .post-row{grid-template-columns:1fr}
    .footer-grid{grid-template-columns:1fr}
    .news-ticker .container{grid-template-columns:1fr}
    .ticker-label{justify-self:start}
}

@media (max-width: 520px){
    .container{width:calc(100% - 20px)}
    .hero{padding:16px}
    .content-area-card{padding:14px}
    .single-header{padding:16px 14px 8px}
    .single-body{padding:8px 14px 16px}
    .single-footer{padding:14px}
    .card-grid{grid-template-columns:1fr}
    .category-tiles{grid-template-columns:1fr}
    .header-top .container{flex-direction:column;align-items:flex-start}
    .header-actions .icon-btn{width:38px;height:38px}
    
    
    
    
    /* ===== Home hero latest card ===== */
.hero-latest-card{
	display:grid;
	grid-template-columns:1fr;
	gap:12px;
	padding:12px;
}
.hero-latest-label{
	display:inline-flex;
	align-items:center;
	justify-content:center;
	align-self:start;
	width:max-content;
	padding:6px 12px;
	border-radius:999px;
	background:linear-gradient(135deg,var(--green-soft),#fff);
	color:var(--green-3);
	border:1px solid #cfe6db;
	font-size:.82rem;
	font-weight:700;
}
.hero-latest-thumb{
	display:block;
	aspect-ratio:16/10;
	border-radius:16px;
	overflow:hidden;
	background:linear-gradient(135deg,#edf9f3,#def4e8);
	border:1px solid var(--line);
}
.hero-latest-thumb img{
	width:100%;
	height:100%;
	object-fit:cover;
}
.hero-latest-placeholder{
	display:grid;
	place-items:center;
	width:100%;
	height:100%;
	font-size:2rem;
	color:var(--green-3);
}
.hero-latest-content h3{
	margin:6px 0 8px;
	font-size:1rem;
	line-height:1.55;
}
.hero-latest-content h3 a{color:var(--text)}
.hero-latest-content h3 a:hover{color:var(--green-2)}
.hero-latest-content p{
	margin:0 0 10px;
	color:var(--muted);
	font-size:.88rem;
	line-height:1.8;
	display:-webkit-box;
	-webkit-line-clamp:3;
	-webkit-box-orient:vertical;
	overflow:hidden;
}
.hero-latest-meta{
	display:flex;
	flex-wrap:wrap;
	gap:8px;
	color:var(--muted);
	font-size:.8rem;
}

/* ===== Category tiles colorful medical ===== */
.category-tiles--medical .cat-tile{
	border-width:1px;
	padding:16px;
}
.category-tiles--medical .cat-tile-top{
	display:flex;
	align-items:center;
	justify-content:space-between;
	gap:8px;
	margin-bottom:8px;
}
.category-tiles--medical .cat-icon{
	width:40px;height:40px;
	border-radius:14px;
	display:grid;place-items:center;
	font-size:1.1rem;
	background:rgba(255,255,255,.75);
	border:1px solid rgba(255,255,255,.7);
	box-shadow:0 6px 14px rgba(16,38,29,.08);
}
.category-tiles--medical .cat-count{
	font-size:.78rem;
	color:#234739;
	background:rgba(255,255,255,.78);
	border:1px solid rgba(255,255,255,.75);
	border-radius:999px;
	padding:4px 8px;
}
.category-tiles--medical .cat-arrow{
	font-weight:700;
	color:var(--green-3);
	font-size:1rem;
}
.category-tiles--medical .cat-tile h3{
	font-size:.98rem;
}
.category-tiles--medical .cat-tile p{
	min-height:58px;
}

/* tones */
.cat-tile.tone-mint{
	background:linear-gradient(180deg,#f2fff9,#ffffff 72%);
	border-color:#cfeee0;
}
.cat-tile.tone-mint::before{background:radial-gradient(circle, rgba(24,167,106,.18), transparent 70%);}
.cat-tile.tone-teal{
	background:linear-gradient(180deg,#effdff,#ffffff 72%);
	border-color:#cfeef1;
}
.cat-tile.tone-teal::before{background:radial-gradient(circle, rgba(14,165,163,.18), transparent 70%);}
.cat-tile.tone-sage{
	background:linear-gradient(180deg,#f6fff1,#ffffff 72%);
	border-color:#e0edc9;
}
.cat-tile.tone-sage::before{background:radial-gradient(circle, rgba(132,204,22,.16), transparent 70%);}
.cat-tile.tone-cyan{
	background:linear-gradient(180deg,#f0fbff,#ffffff 72%);
	border-color:#d5ecfb;
}
.cat-tile.tone-cyan::before{background:radial-gradient(circle, rgba(6,182,212,.16), transparent 70%);}
.cat-tile.tone-emerald{
	background:linear-gradient(180deg,#ecfff7,#ffffff 72%);
	border-color:#ccefe2;
}
.cat-tile.tone-emerald::before{background:radial-gradient(circle, rgba(16,185,129,.18), transparent 70%);}
.cat-tile.tone-lime{
	background:linear-gradient(180deg,#fbfff1,#ffffff 72%);
	border-color:#e7efc9;
}
.cat-tile.tone-lime::before{background:radial-gradient(circle, rgba(163,230,53,.18), transparent 70%);}
.cat-tile.tone-aqua{
	background:linear-gradient(180deg,#eefeff,#ffffff 72%);
	border-color:#d4f0f3;
}
.cat-tile.tone-aqua::before{background:radial-gradient(circle, rgba(45,212,191,.18), transparent 70%);}
.cat-tile.tone-jade{
	background:linear-gradient(180deg,#f2fff7,#ffffff 72%);
	border-color:#d3efde;
}
.cat-tile.tone-jade::before{background:radial-gradient(circle, rgba(34,197,94,.16), transparent 70%);}

/* ===== Detailed cards for home sections ===== */
.card-grid--mag .post-card{
	display:flex;
	flex-direction:column;
	height:100%;
}
.card-grid--mag .post-card .thumb{
	aspect-ratio:16/9;
	background:linear-gradient(135deg,#edf9f3,#e7f6ef);
}
.card-grid--mag .post-card .content{
	display:flex;
	flex-direction:column;
	gap:6px;
	min-height:170px;
}
.card-grid--mag .post-card h3{
	margin:0;
	font-size:.96rem;
	line-height:1.65;
	display:-webkit-box;
	-webkit-line-clamp:2;
	-webkit-box-orient:vertical;
	overflow:hidden;
	min-height:3.2em;
}
.card-grid--mag .post-card .excerpt{
	margin-top:2px;
	display:-webkit-box;
	-webkit-line-clamp:3;
	-webkit-box-orient:vertical;
	overflow:hidden;
	min-height:4.8em;
}
.card-grid--mag .post-card .meta{
	margin-bottom:2px;
}

/* placeholder if image missing */
.post-card .thumb:empty::before{
	content:"🩺";
	display:grid;
	place-items:center;
	width:100%;
	height:100%;
	font-size:2rem;
	color:var(--green-3);
}

/* ===== Footer enhanced ===== */
.site-footer--premium{
	background:
		radial-gradient(500px 180px at 90% 0%, rgba(24,167,106,.12), transparent 65%),
		radial-gradient(420px 180px at 10% 100%, rgba(15,143,89,.10), transparent 65%),
		linear-gradient(180deg,#fbfffd,#f3fbf7);
	border-top:1px solid var(--line);
}
.footer-cta{
	padding:22px 0 8px;
}
.footer-cta-box{
	background:linear-gradient(135deg,#ffffff,#f5fdf9);
	border:1px solid #d6ebe0;
	border-radius:24px;
	box-shadow:var(--shadow-lg);
	padding:18px;
	display:grid;
	grid-template-columns:1.15fr .85fr;
	gap:14px;
	align-items:center;
}
.footer-cta-content h3{
	margin:0 0 8px;
	font-size:1.15rem;
}
.footer-cta-content p{
	margin:0;
	color:var(--muted);
}
.footer-cta-actions{
	display:flex;
	gap:10px;
	flex-wrap:wrap;
	margin-top:14px;
}
.footer-cta-stats{
	display:grid;
	grid-template-columns:repeat(3,minmax(0,1fr));
	gap:10px;
}
.footer-stat{
	background:#fff;
	border:1px solid var(--line);
	border-radius:16px;
	padding:12px;
	box-shadow:var(--shadow);
	text-align:center;
}
.footer-stat .num{
	display:block;
	font-weight:700;
	font-size:1.05rem;
	color:var(--green-3);
	line-height:1.2;
}
.footer-stat .label{
	font-size:.8rem;
	color:var(--muted);
}

.footer-grid--enhanced{
	grid-template-columns:1.2fr 1fr 1fr 1fr;
	gap:14px;
}
.footer-box--brand{
	background:linear-gradient(180deg,#ffffff,#f8fefb);
}
.footer-brand{
	display:grid;
	grid-template-columns:auto 1fr;
	gap:12px;
	align-items:start;
}
.footer-brand-logo{
	width:48px;height:48px;
	border-radius:16px;
	display:grid;place-items:center;
	background:linear-gradient(135deg,var(--green-soft),#fff);
	border:1px solid var(--line);
	font-size:1.3rem;
}
.footer-brand h3{
	margin:0 0 8px;
}
.footer-brand p{
	margin:0;
}
.footer-tag-list{
	display:flex;
	flex-wrap:wrap;
	gap:8px;
	margin-top:12px;
}
.footer-tag-list a{
	display:inline-flex;
	align-items:center;
	padding:6px 10px;
	border-radius:999px;
	background:#fff;
	border:1px solid var(--line);
	color:var(--green-3);
	font-size:.82rem;
}
.footer-tag-list a:hover{
	background:var(--green-soft);
	border-color:#cfe6db;
}

.footer-list{
	list-style:none;
	margin:0;
	padding:0;
	display:grid;
	gap:8px;
}
.footer-list li{
	margin:0;
	padding:0 0 8px;
	border-bottom:1px dashed #e1eee8;
}
.footer-list li:last-child{
	border-bottom:none;
	padding-bottom:0;
}
.footer-list a{
	color:var(--text);
	line-height:1.7;
}
.footer-list a:hover{color:var(--green-2)}
.footer-list--recent small{
	display:block;
	color:var(--muted);
	margin-top:3px;
	font-size:.78rem;
}

.footer-note{
	margin-top:12px;
	padding:10px 12px;
	border-radius:14px;
	background:#f7fdf9;
	border:1px solid #d9ece2;
}
.footer-note strong{
	display:block;
	margin-bottom:4px;
	color:var(--green-3);
	font-size:.9rem;
}
.footer-note p{
	margin:0;
	font-size:.84rem;
	color:var(--muted);
}
.footer-extra-widget{
	margin-top:10px;
}
.footer-extra-widget .widget{
	margin:0;
	padding:0;
	border:none;
	box-shadow:none;
	background:transparent;
}
.footer-extra-widget .widget-title{
	margin-top:10px;
}

.site-footer--premium .footer-bottom{
	margin-top:8px;
	background:rgba(255,255,255,.65);
	backdrop-filter:blur(6px);
}

/* footer/search polish */
.site-footer .search-form{
	display:flex;
	gap:8px;
	align-items:center;
}
.site-footer .search-form .search-field{
	flex:1;
	min-width:0;
	border:1px solid var(--line);
	border-radius:12px;
	padding:10px 12px;
	background:#fff;
}
.site-footer .search-form .search-submit{
	border:none;
	border-radius:12px;
	padding:10px 12px;
	background:linear-gradient(135deg,var(--green),var(--green-2));
	color:#fff;
	cursor:pointer;
}

/* responsive */
@media (max-width: 1100px){
	.footer-grid--enhanced{
		grid-template-columns:1fr 1fr;
	}
	.footer-cta-box{
		grid-template-columns:1fr;
	}
}
@media (max-width: 860px){
	.footer-cta-stats{
		grid-template-columns:1fr 1fr 1fr;
	}
}
@media (max-width: 640px){
	.footer-grid--enhanced{
		grid-template-columns:1fr;
	}
	.footer-cta-stats{
		grid-template-columns:1fr;
	}
}
}

/* ===== Refresh UI / modern cards / compact footer ===== */

/* card image size fix */
.post-card .thumb,
.card-grid--mag .post-card .thumb{
	aspect-ratio: 16 / 9 !important;
	max-height: 210px;
	overflow: hidden;
	background: linear-gradient(135deg,#eefaf4,#e6f7ef);
}
.post-card .thumb img,
.card-grid--mag .post-card .thumb img{
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}
.post-card .thumb .thumb-fallback{
	display:grid;
	place-items:center;
	width:100%;
	height:100%;
	font-size:2rem;
	color:var(--green-3);
}

/* stronger modern cards */
.post-card--modern{
	border-radius: 18px;
	border: 1px solid #d9ebe2;
	box-shadow: 0 8px 24px rgba(16,38,29,.06);
	background:
		linear-gradient(180deg, rgba(255,255,255,.96), rgba(255,255,255,1));
	overflow: hidden;
}
.post-card--modern:hover{
	transform: translateY(-4px);
	border-color: #c8e3d7;
	box-shadow: 0 18px 38px rgba(16,38,29,.10);
}
.post-card--modern .content{
	padding: 14px;
	display: flex;
	flex-direction: column;
	gap: 8px;
}
.post-card--modern .meta{
	display:flex;
	flex-wrap:wrap;
	gap:6px;
	margin:0;
	font-size:.76rem;
	color:var(--muted);
}
.post-card--modern .meta-chip{
	background: var(--green-soft);
	color: var(--green-3);
	border: 1px solid #d2e9dd;
	border-radius: 999px;
	padding: 3px 8px;
	font-weight: 700;
}
.post-card--modern .card-title{
	margin:0;
	font-size:.95rem;
	line-height:1.7;
	display:-webkit-box;
	-webkit-line-clamp:2;
	-webkit-box-orient:vertical;
	overflow:hidden;
	min-height:3.3em;
}
.post-card--modern .card-title a{
	color: var(--text);
}
.post-card--modern .card-title a:hover{
	color: var(--green-2);
}
.post-card--modern .excerpt{
	margin:0;
	color: var(--muted);
	font-size:.85rem;
	line-height:1.85;
	display:-webkit-box;
	-webkit-line-clamp:3;
	-webkit-box-orient:vertical;
	overflow:hidden;
	min-height:4.9em;
}
.post-card--modern .card-actions{
	margin-top:auto;
	padding-top:2px;
}
.post-card--modern .card-readmore{
	display:inline-flex;
	align-items:center;
	gap:6px;
	font-size:.84rem;
	font-weight:700;
	color:var(--green-3);
}
.post-card--modern .card-readmore:hover{color:var(--green);}

/* make grids visually tighter */
.card-grid,
.card-grid--mag{
	gap: 12px !important;
}
.card-grid--mag .post-card .content{
	min-height: auto !important;
}

/* category tiles more modern + readable titles */
.category-tiles--medical .cat-tile{
	border-radius: 18px;
	padding: 14px;
	box-shadow: 0 8px 24px rgba(16,38,29,.05);
}
.category-tiles--medical .cat-tile h3{
	margin: 0 0 6px;
	font-size: .94rem;
	line-height: 1.55;
	min-height: 2.9em; /* title always visible, equal height */
}
.category-tiles--medical .cat-tile p{
	margin:0 0 10px;
	font-size:.82rem;
	line-height:1.8;
	min-height: 3.6em;
	display:-webkit-box;
	-webkit-line-clamp:2;
	-webkit-box-orient:vertical;
	overflow:hidden;
}
.category-tiles--medical .cat-meta{
	margin-top:auto;
}

/* hero/feature image size normalization */
.hero-latest-thumb{
	aspect-ratio: 16 / 10 !important;
	max-height: 220px;
}
.hero-latest-thumb img{
	width:100%;
	height:100%;
	object-fit:cover;
}
.feature-main{
	grid-template-columns: .9fr 1.1fr !important;
}
.feature-main .feature-media{
	min-height: 260px;
	max-height: 320px;
	overflow: hidden;
}
.feature-main .feature-media img{
	width:100%;
	height:100%;
	object-fit:cover;
	object-position:center;
}
.feature-main .feature-content{
	padding:16px !important;
}
.feature-main .feature-content h3{
	font-size:1rem;
	line-height:1.65;
}
.feature-main .feature-content p{
	display:-webkit-box;
	-webkit-line-clamp:4;
	-webkit-box-orient:vertical;
	overflow:hidden;
}

/* remove visually huge empty sections look */
.section{
	margin-top: 18px !important;
}
.section-head{
	margin-bottom: 10px !important;
}

/* cleaner footer */
.site-footer--clean{
	background:
		radial-gradient(380px 120px at 88% 6%, rgba(24,167,106,.08), transparent 65%),
		linear-gradient(180deg,#fbfffd,#f5fbf8);
	border-top:1px solid var(--line);
}
.site-footer--clean .footer-top{
	padding: 18px 0 10px;
}
.footer-clean-grid{
	display:grid;
	grid-template-columns: 1.2fr 1fr 1fr 1fr;
	gap:12px;
}
.site-footer--clean .footer-box{
	background:#fff;
	border:1px solid #dcebe4;
	border-radius:16px;
	padding:12px;
	box-shadow:0 6px 18px rgba(16,38,29,.04);
}
.site-footer--clean .footer-box h3{
	margin:0 0 8px;
	font-size:.95rem;
	line-height:1.5;
}
.site-footer--clean .footer-box p{
	margin:0;
	color:var(--muted);
	font-size:.86rem;
	line-height:1.8;
}
.footer-brand-box{
	background: linear-gradient(180deg,#ffffff,#f9fefb) !important;
}
.footer-short-links{
	display:flex;
	flex-wrap:wrap;
	gap:7px;
	margin-top:10px;
}
.footer-short-links a{
	display:inline-flex;
	align-items:center;
	padding:5px 9px;
	border-radius:999px;
	background:#f7fcf9;
	border:1px solid #dbece3;
	color:var(--green-3);
	font-size:.78rem;
}
.footer-short-links a:hover{
	background:var(--green-soft);
	border-color:#cfe6db;
}
.footer-list{
	list-style:none;
	margin:0;
	padding:0;
	display:grid;
	gap:6px;
}
.footer-list li{
	border-bottom:1px dashed #e5efe9;
	padding-bottom:6px;
}
.footer-list li:last-child{
	border-bottom:none;
	padding-bottom:0;
}
.footer-list a{
	display:block;
	color:var(--text);
	font-size:.84rem;
	line-height:1.65;
}
.footer-list a:hover{color:var(--green-2);}
.footer-list--recent small{
	display:block;
	color:var(--muted);
	font-size:.75rem;
	margin-top:2px;
}
.footer-note-compact{
	margin-top:10px;
	padding:8px 10px;
	border-radius:12px;
	background:#f7fcf9;
	border:1px solid #dceee5;
	font-size:.8rem;
	color:var(--muted);
	line-height:1.7;
}
.site-footer--clean .footer-bottom{
	border-top:1px solid var(--line);
	padding:10px 0 14px;
}
.site-footer--clean .footer-bottom .container{
	display:flex;
	align-items:center;
	justify-content:space-between;
	gap:10px;
	flex-wrap:wrap;
}
.site-footer--clean .footer-menu a{
	font-size:.84rem;
}
.site-footer--clean .copy{
	font-size:.82rem;
}

/* footer search compact */
.site-footer--clean .search-form{
	display:flex;
	gap:8px;
	align-items:center;
}
.site-footer--clean .search-form .search-field{
	flex:1;
	min-width:0;
	border:1px solid var(--line);
	border-radius:10px;
	padding:9px 10px;
	background:#fff;
}
.site-footer--clean .search-form .search-submit{
	border:none;
	border-radius:10px;
	padding:9px 10px;
	background:linear-gradient(135deg,var(--green),var(--green-2));
	color:#fff;
	cursor:pointer;
	white-space:nowrap;
}

/* responsive polish */
@media (max-width: 1100px){
	.footer-clean-grid{
		grid-template-columns:1fr 1fr;
	}
	.feature-main{
		grid-template-columns:1fr !important;
	}
	.feature-main .feature-media{
		max-height:260px;
	}
}
@media (max-width: 860px){
	.footer-clean-grid{
		grid-template-columns:1fr;
	}
	.hero-latest-thumb{
		max-height: 200px;
	}
}
@media (max-width: 520px){
	.post-card .thumb,
	.card-grid--mag .post-card .thumb{
		max-height: 190px;
	}
	.site-footer--clean .search-form{
		flex-wrap:wrap;
	}
	.site-footer--clean .search-form .search-field,
	.site-footer--clean .search-form .search-submit{
		width:100%;
	}
}
/* ====== MODERN HOME / CARD / SINGLE / FOOTER PATCH ====== */

/* Hero wide */
.hero.hero--wide{
	padding: 22px;
}
.hero.hero--wide .hero-grid{
	grid-template-columns: 1fr !important;
}
.hero.hero--wide .hero-content{
	max-width: 100%;
}
.hero.hero--wide .hero-content h1{
	font-size: clamp(1.5rem, 2.2vw, 2.2rem);
	line-height: 1.45;
	max-width: 900px;
}
.hero.hero--wide .hero-content > p{
	max-width: 980px;
}
.hero-inline-latest{
	margin-top: 16px;
	display: grid;
	grid-template-columns: 220px 1fr;
	gap: 14px;
	background: rgba(255,255,255,.92);
	border: 1px solid var(--line);
	border-radius: 18px;
	padding: 12px;
	box-shadow: 0 8px 24px rgba(16,38,29,.06);
}
.hero-inline-latest__label{
	grid-column: 1 / -1;
	display: inline-flex;
	align-items: center;
	width: max-content;
	padding: 5px 10px;
	border-radius: 999px;
	background: var(--green-soft);
	color: var(--green-3);
	font-size: .8rem;
	font-weight: 700;
}
.hero-inline-latest__thumb{
	display: block;
	aspect-ratio: 1 / 1;
	border-radius: 14px;
	overflow: hidden;
	background: linear-gradient(135deg,#edf9f3,#e4f5ed);
	border: 1px solid #d9ebe3;
}
.hero-inline-latest__thumb img{
	width:100%;
	height:100%;
	object-fit: cover;
	object-position:center;
}
.hero-inline-latest__content{
	min-width:0;
	display:flex;
	flex-direction:column;
}
.hero-inline-latest__meta{
	display:flex;
	flex-wrap:wrap;
	gap:8px;
	color:var(--muted);
	font-size:.78rem;
	margin-bottom:6px;
}
.hero-inline-latest__content h3{
	margin:0 0 6px;
	font-size:1rem;
	line-height:1.6;
}
.hero-inline-latest__content h3 a{color:var(--text)}
.hero-inline-latest__content h3 a:hover{color:var(--green-2)}
.hero-inline-latest__content p{
	margin:0 0 8px;
	color:var(--muted);
	font-size:.87rem;
	line-height:1.9;
	display:-webkit-box;
	-webkit-line-clamp:3;
	-webkit-box-orient:vertical;
	overflow:hidden;
}
.hero-inline-latest__link{
	display:inline-flex;
	align-items:center;
	gap:6px;
	font-size:.84rem;
	font-weight:700;
	color:var(--green-3);
	margin-top:auto;
}

/* Category tiles colorful / no cat-meta */
.category-tiles.category-tiles--medical{
	gap: 12px;
}
.category-tiles--medical .cat-tile{
	display:flex;
	flex-direction:column;
	min-height: 188px;
	border-radius: 18px;
	padding: 14px;
	box-shadow: 0 10px 22px rgba(16,38,29,.05);
	border: 1px solid #dbece4;
}
.category-tiles--medical .cat-head{
	display:flex;
	align-items:center;
	justify-content:space-between;
	gap:8px;
	margin-bottom:8px;
}
.category-tiles--medical .cat-icon{
	width:38px;height:38px;border-radius:12px;
	display:grid;place-items:center;
	background:rgba(255,255,255,.8);
	border:1px solid rgba(255,255,255,.9);
	box-shadow:0 6px 12px rgba(16,38,29,.06);
	font-size:1rem;
}
.category-tiles--medical .cat-count{
	font-size:.76rem;
	color:#234739;
	background:rgba(255,255,255,.82);
	border:1px solid rgba(255,255,255,.85);
	border-radius:999px;
	padding:4px 8px;
	white-space:nowrap;
}
.category-tiles--medical .cat-tile h3{
	margin:0 0 6px;
	font-size:.95rem;
	line-height:1.55;
	min-height: 2.9em;
}
.category-tiles--medical .cat-tile p{
	margin:0;
	color:var(--muted);
	font-size:.82rem;
	line-height:1.8;
	display:-webkit-box;
	-webkit-line-clamp:2;
	-webkit-box-orient:vertical;
	overflow:hidden;
	min-height:3.5em;
}
.category-tiles--medical .cat-foot{
	margin-top:auto;
	display:flex;
	align-items:center;
	justify-content:space-between;
	gap:8px;
	padding-top:10px;
}
.category-tiles--medical .cat-link-text{
	font-size:.8rem;
	font-weight:700;
	color:var(--green-3);
}
.category-tiles--medical .cat-pill{
	font-size:.72rem;
	padding:4px 8px;
	border-radius:999px;
}
.category-tiles--medical .cat-meta{
	display:none !important;
}

/* colorful tones */
.cat-tile.tone-mint{background:linear-gradient(180deg,#effff7,#fff 74%); border-color:#caecd9;}
.cat-tile.tone-teal{background:linear-gradient(180deg,#edffff,#fff 74%); border-color:#cbf0ef;}
.cat-tile.tone-sage{background:linear-gradient(180deg,#f6ffee,#fff 74%); border-color:#dcedbf;}
.cat-tile.tone-cyan{background:linear-gradient(180deg,#eef8ff,#fff 74%); border-color:#d6eaf9;}
.cat-tile.tone-emerald{background:linear-gradient(180deg,#ebfff4,#fff 74%); border-color:#cbeede;}
.cat-tile.tone-lime{background:linear-gradient(180deg,#fbfff0,#fff 74%); border-color:#e7eebc;}
.cat-tile.tone-aqua{background:linear-gradient(180deg,#efffff,#fff 74%); border-color:#cfefef;}
.cat-tile.tone-jade{background:linear-gradient(180deg,#f2fff8,#fff 74%); border-color:#d7efe2;}

/* Feature image normalize */
.feature-main{
	grid-template-columns: .95fr 1.05fr !important;
}
.feature-main .feature-media{
	max-height: 320px;
	overflow: hidden;
}
.feature-main .feature-media img{
	width:100%;
	height:100%;
	object-fit:cover;
	object-position:center;
}

/* Modern square cards */
.card-grid.card-grid--mag{
	gap: 12px !important;
}
.post-card.post-card--mag{
	display:flex;
	flex-direction:column;
	height:100%;
	border:1px solid #dcebe3;
	border-radius:18px;
	overflow:hidden;
	background:#fff;
	box-shadow:0 8px 24px rgba(16,38,29,.05);
	transition:.22s ease;
}
.post-card.post-card--mag:hover{
	transform:translateY(-4px);
	border-color:#cbe3d7;
	box-shadow:0 16px 34px rgba(16,38,29,.09);
}
.post-card.post-card--mag .thumb{
	aspect-ratio: 1 / 1 !important;
	max-height: none !important;
	width:100%;
	background:linear-gradient(135deg,#eefaf4,#e6f7ef);
	border-bottom:1px solid #e4f1eb;
	overflow:hidden;
}
.post-card.post-card--mag .thumb img{
	width:100%;
	height:100%;
	object-fit:cover;
	object-position:center;
	display:block;
	transition:transform .3s ease;
}
.post-card.post-card--mag:hover .thumb img{
	transform:scale(1.03);
}
.post-card.post-card--mag .thumb-fallback{
	display:grid;
	place-items:center;
	width:100%;
	height:100%;
	font-size:2rem;
	color:var(--green-3);
}
.post-card.post-card--mag .content{
	display:flex;
	flex-direction:column;
	gap:8px;
	padding:12px;
	min-height: 170px;
}
.post-card.post-card--mag .meta{
	display:flex;
	flex-wrap:wrap;
	gap:6px;
	color:var(--muted);
	font-size:.75rem;
}
.post-card.post-card--mag .meta-chip{
	background:var(--green-soft);
	color:var(--green-3);
	border:1px solid #d2e8dd;
	border-radius:999px;
	padding:3px 8px;
	font-weight:700;
}
.post-card.post-card--mag .card-title{
	margin:0;
	font-size:.94rem;
	line-height:1.7;
	display:-webkit-box;
	-webkit-line-clamp:2;
	-webkit-box-orient:vertical;
	overflow:hidden;
	min-height:3.25em;
}
.post-card.post-card--mag .card-title a{color:var(--text)}
.post-card.post-card--mag .card-title a:hover{color:var(--green-2)}
.post-card.post-card--mag .excerpt{
	margin:0;
	color:var(--muted);
	font-size:.84rem;
	line-height:1.85;
	display:-webkit-box;
	-webkit-line-clamp:3;
	-webkit-box-orient:vertical;
	overflow:hidden;
	min-height:4.7em;
}
.post-card.post-card--mag .card-readmore{
	margin-top:auto;
	display:inline-flex;
	align-items:center;
	gap:6px;
	font-size:.82rem;
	font-weight:700;
	color:var(--green-3);
}

/* hide old floating label if any */
.post-card.post-card--mag .card-tag{
	display:none !important;
}

/* single page layout + latest sidebar */
.single-layout{
	grid-template-columns:minmax(0,1fr) 340px !important;
	align-items:start;
}
.widget-area.widget-area--single{
	position: sticky;
	top: 96px;
	padding: 0;
	background: transparent;
	border: none;
	box-shadow: none;
}
.widget-area--single .widget{
	background:#fff;
	border:1px solid #dcebe3;
	border-radius:18px;
	box-shadow:0 10px 26px rgba(16,38,29,.05);
	padding:12px;
}
.mini-posts{
	display:grid;
	gap:10px;
}
.mini-post{
	display:grid;
	grid-template-columns:72px 1fr;
	gap:10px;
	align-items:start;
	padding:8px;
	border-radius:12px;
	border:1px solid #e8f2ed;
	background:#fbfefc;
}
.mini-post:hover{
	border-color:#d7e9e0;
	background:#fff;
}
.mini-post__thumb{
	display:block;
	aspect-ratio:1 / 1;
	border-radius:10px;
	overflow:hidden;
	background:linear-gradient(135deg,#eefaf4,#e6f7ef);
}
.mini-post__thumb img{
	width:100%;
	height:100%;
	object-fit:cover;
}
.mini-post__thumb .thumb-fallback{
	display:grid;
	place-items:center;
	width:100%;
	height:100%;
	font-size:1.2rem;
	color:var(--green-3);
}
.mini-post__content{
	min-width:0;
}
.mini-post__content h4{
	margin:0 0 4px;
	font-size:.85rem;
	line-height:1.65;
	display:-webkit-box;
	-webkit-line-clamp:2;
	-webkit-box-orient:vertical;
	overflow:hidden;
}
.mini-post__content h4 a{color:var(--text)}
.mini-post__content h4 a:hover{color:var(--green-2)}
.mini-post__content p{
	margin:0;
	font-size:.78rem;
	color:var(--muted);
	line-height:1.7;
	display:-webkit-box;
	-webkit-line-clamp:2;
	-webkit-box-orient:vertical;
	overflow:hidden;
}

/* related posts modern spacing */
.related-posts--modern{
	margin-top: 18px;
}
.related-posts--modern .card-grid{
	margin-top: 6px;
}

/* cleaner footer */
.site-footer.site-footer--minimal{
	background:
		radial-gradient(420px 140px at 90% 10%, rgba(24,167,106,.10), transparent 65%),
		linear-gradient(180deg,#fbfffd,#f4fbf7);
	border-top:1px solid var(--line);
}
.site-footer--minimal .footer-top{
	padding:18px 0 10px;
}
.footer-minimal-grid{
	display:grid;
	grid-template-columns:1.2fr 1fr 1fr 1fr;
	gap:12px;
}
.site-footer--minimal .footer-box{
	background:#fff;
	border:1px solid #dcebe4;
	border-radius:16px;
	box-shadow:0 8px 20px rgba(16,38,29,.04);
	padding:12px;
}
.site-footer--minimal .footer-box h3{
	margin:0 0 8px;
	font-size:.95rem;
}
.site-footer--minimal .footer-box p{
	margin:0;
	color:var(--muted);
	font-size:.86rem;
	line-height:1.8;
}
.footer-pills{
	display:flex;
	flex-wrap:wrap;
	gap:7px;
	margin-top:10px;
}
.footer-pills a{
	display:inline-flex;
	align-items:center;
	padding:5px 9px;
	border-radius:999px;
	background:#f7fcf9;
	border:1px solid #dcece4;
	color:var(--green-3);
	font-size:.78rem;
}
.footer-pills a:hover{
	background:var(--green-soft);
	border-color:#cfe6db;
}
.footer-list.footer-list--compact{
	list-style:none;
	margin:0;
	padding:0;
	display:grid;
	gap:6px;
}
.footer-list.footer-list--compact li{
	margin:0;
	border-bottom:1px dashed #e7efe9;
	padding-bottom:6px;
}
.footer-list.footer-list--compact li:last-child{
	border-bottom:none;
	padding-bottom:0;
}
.footer-list.footer-list--compact a{
	display:block;
	font-size:.83rem;
	line-height:1.65;
	color:var(--text);
}
.footer-list.footer-list--compact a:hover{color:var(--green-2)}
.footer-list.footer-list--recent{
	list-style:none;
	margin:0;
	padding:0;
	display:grid;
	gap:8px;
}
.footer-list.footer-list--recent li{
	margin:0;
	border-bottom:1px dashed #e7efe9;
	padding-bottom:8px;
}
.footer-list.footer-list--recent li:last-child{
	border-bottom:none;
	padding-bottom:0;
}
.footer-list.footer-list--recent a{
	display:block;
	font-size:.83rem;
	line-height:1.65;
	color:var(--text);
}
.footer-list.footer-list--recent a:hover{color:var(--green-2)}
.footer-list.footer-list--recent small{
	display:block;
	margin-top:3px;
	font-size:.75rem;
	color:var(--muted);
}
.footer-note-min{
	margin-top:10px !important;
	padding:8px 10px;
	border-radius:12px;
	background:#f7fcf9;
	border:1px solid #dceee5;
	font-size:.8rem !important;
	line-height:1.7 !important;
}
.site-footer--minimal .search-form{
	display:flex;
	gap:8px;
	align-items:center;
}
.site-footer--minimal .search-form .search-field{
	flex:1;
	min-width:0;
	border:1px solid var(--line);
	border-radius:10px;
	padding:9px 10px;
	background:#fff;
}
.site-footer--minimal .search-form .search-submit{
	border:none;
	border-radius:10px;
	padding:9px 10px;
	background:linear-gradient(135deg,var(--green),var(--green-2));
	color:#fff;
	cursor:pointer;
}
.site-footer--minimal .footer-bottom{
	border-top:1px solid var(--line);
	padding:10px 0 14px;
}
.site-footer--minimal .footer-bottom .container{
	display:flex;
	align-items:center;
	justify-content:space-between;
	gap:10px;
	flex-wrap:wrap;
}

/* responsive */
@media (max-width: 1100px){
	.footer-minimal-grid{grid-template-columns:1fr 1fr;}
	.single-layout{grid-template-columns:minmax(0,1fr) !important;}
	.widget-area.widget-area--single{position:static;}
}
@media (max-width: 860px){
	.hero-inline-latest{
		grid-template-columns:1fr;
	}
	.hero-inline-latest__thumb{
		max-width:220px;
	}
	.feature-main{
		grid-template-columns:1fr !important;
	}
	.feature-main .feature-media{
		max-height:260px;
	}
}
@media (max-width: 640px){
	.footer-minimal-grid{grid-template-columns:1fr;}
	.site-footer--minimal .search-form{
		flex-wrap:wrap;
	}
	.site-footer--minimal .search-form .search-field,
	.site-footer--minimal .search-form .search-submit{
		width:100%;
	}
}

/* موبایل: مخفی کردن header-top و دکمه btn-primary هدر */
@media (max-width: 860px){
	.site-header .header-top{
		display:none !important;
	}

	.site-header .header-actions .btn.btn-primary{
		display:none !important;
	}
}