/*
Theme Name: Hero Nursing
Theme URI: https://hero-sc.ir/
Author: Hero Nursing
Description: قالب اختصاصی خدمات پرستاری هیرو
Version: 1.2
Text Domain: hero-nursing
*/

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    direction: rtl;
    text-align: right;
    font-family: Tahoma, Arial, sans-serif;
    background: #ffffff;
    color: #263238;
    line-height: 1.9;
}

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

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

p {
    margin-top: 0;
}

.container {
    width: min(1180px, 92%);
    margin: 0 auto;
}


/* HEADER */

.site-header {
    background: #ffffff;
    border-bottom: 1px solid #eeeeee;
    position: sticky;
    top: 0;
    z-index: 999;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}

.header-inner {
    min-height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
}

.site-logo a {
    display: flex;
    flex-direction: column;
    color: #087f8c;
}

.logo-title {
    font-size: 27px;
    font-weight: 800;
    line-height: 1.3;
}

.logo-subtitle {
    font-size: 12px;
    color: #777777;
}


/* NAVIGATION */

.main-navigation {
    display: block;
}

.main-navigation .main-menu,
.main-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 28px;
}

.main-navigation li {
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-navigation a {
    display: block;
    color: #263238;
    font-size: 15px;
    font-weight: 600;
    transition: 0.2s ease;
    padding: 5px 0;
}

.main-navigation a:hover,
.main-navigation .current-menu-item > a,
.main-navigation .current_page_item > a {
    color: #087f8c;
}


/* HEADER CALL */

.header-call {
    background: #087f8c;
    color: #ffffff !important;
    padding: 9px 18px;
    border-radius: 8px;
    font-weight: 700;
    white-space: nowrap;
    transition: 0.2s ease;
}

.header-call:hover {
    background: #056771;
    color: #ffffff !important;
}


/* MOBILE MENU */

.menu-toggle {
    display: none;
    border: 0;
    background: transparent;
    font-size: 27px;
    cursor: pointer;
    color: #075f69;
}


/* HERO */

.hero {
    background: linear-gradient(135deg, #eefafa 0%, #ffffff 100%);
    padding: 85px 0;
}

.hero .container {
    max-width: 1180px;
    text-align: right;
}

.hero-box {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
    gap: 55px;
    align-items: center;
}

.hero-text {
    min-width: 0;
}

.hero h1 {
    margin: 0 0 18px;
    color: #075f69;
    font-size: clamp(32px, 5vw, 48px);
    line-height: 1.5;
    font-weight: 800;
}

.hero h2 {
    margin: 0 0 18px;
    color: #263238;
    font-size: clamp(21px, 3vw, 29px);
    line-height: 1.8;
    font-weight: 700;
}

.hero p {
    max-width: 720px;
    margin: 0 0 30px;
    color: #555555;
    font-size: 18px;
    line-height: 2;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.hero-button {
    display: inline-block;
    background: #087f8c;
    color: #ffffff !important;
    padding: 13px 28px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 700;
    transition: all 0.2s ease;
    box-shadow: 0 7px 20px rgba(8, 127, 140, 0.18);
}

.hero-button:hover {
    background: #075f69;
    color: #ffffff !important;
    transform: translateY(-2px);
}

.hero-button-secondary {
    background: #ffffff;
    color: #075f69 !important;
    border: 1px solid #b9dcdf;
    box-shadow: none;
}

.hero-button-secondary:hover {
    background: #eaf7f8;
    color: #075f69 !important;
}

.hero-image {
    overflow: hidden;
    border-radius: 22px;
    box-shadow: 0 18px 45px rgba(7, 95, 105, 0.13);
}

.hero-image img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}


/* GENERAL SECTIONS */

.services-section,
.about-section,
.why-section,
.areas-section,
.process-section,
.faq-section,
.contact-section {
    padding: 70px 0;
}

.services-section h2,
.about-section h2,
.why-section h2,
.areas-section h2,
.process-section h2,
.faq-section h2,
.contact-section h2 {
    margin: 0 0 15px;
    text-align: center;
    color: #075f69;
    font-size: 30px;
    line-height: 1.6;
}

.services-section h2::after,
.about-section h2::after,
.why-section h2::after,
.areas-section h2::after,
.process-section h2::after,
.faq-section h2::after,
.contact-section h2::after {
    content: "";
    display: block;
    width: 55px;
    height: 3px;
    background: #087f8c;
    margin: 12px auto 0;
    border-radius: 10px;
}


/* SERVICES */

.services-section {
    background: #ffffff;
}

.section-intro {
    max-width: 750px;
    margin: 0 auto 35px;
    text-align: center;
    color: #666666;
    font-size: 16px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    margin-top: 35px;
}

.service-box {
    background: #ffffff;
    border: 1px solid #e7eeee;
    border-radius: 16px;
    padding: 28px 23px;
    box-shadow: 0 7px 25px rgba(0, 0, 0, 0.055);
    transition: all 0.25s ease;
    text-align: right;
}

.service-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.09);
    border-color: #cfe5e7;
}

.service-box h3 {
    margin: 0 0 12px;
    color: #075f69;
    font-size: 19px;
    line-height: 1.7;
}

.service-box p {
    margin: 0 0 20px;
    color: #555555;
    font-size: 15px;
    line-height: 2;
}


/* BUTTON */

.btn {
    display: inline-block;
    padding: 10px 20px;
    background: #087f8c;
    color: #ffffff !important;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    transition: all 0.2s ease;
}

.btn:hover {
    background: #056771;
    color: #ffffff !important;
    transform: translateY(-2px);
}


/* ABOUT */

.about-section {
    background: #f7fbfc;
}

.about-section .container {
    max-width: 900px;
}

.about-section p {
    color: #555555;
    font-size: 16px;
    line-height: 2.1;
    margin-bottom: 15px;
}


/* WHY */

.why-section {
    background: #ffffff;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    margin-top: 35px;
}

.why-box {
    padding: 28px 22px;
    background: #f7fbfc;
    border: 1px solid #e4eeee;
    border-radius: 15px;
    text-align: center;
    transition: 0.2s ease;
}

.why-box:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.07);
}

.why-box h3 {
    margin: 0 0 12px;
    color: #075f69;
    font-size: 19px;
}

.why-box p {
    margin: 0;
    color: #555555;
    font-size: 15px;
    line-height: 2;
}


/* AREAS */

.areas-section {
    background: #f7fbfc;
}

.areas-section .container {
    max-width: 900px;
    text-align: center;
}

.areas-section p {
    margin: 0 auto;
    color: #555555;
    font-size: 16px;
    line-height: 2.1;
}


/* PROCESS */

.process-section {
    background: #ffffff;
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    margin-top: 35px;
}

.process-box {
    background: #ffffff;
    border: 1px solid #e5eeee;
    border-radius: 15px;
    padding: 28px 22px;
    text-align: center;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
}

.process-box strong {
    width: 48px;
    height: 48px;
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #087f8c;
    color: #ffffff;
    border-radius: 50%;
    font-size: 20px;
}

.process-box h3 {
    margin: 0 0 10px;
    color: #075f69;
    font-size: 19px;
}

.process-box p {
    margin: 0;
    color: #555555;
    font-size: 15px;
    line-height: 2;
}


/* FAQ */

.faq-section {
    background: #f7fbfc;
}

.faq-section .container {
    max-width: 900px;
}

.faq-item {
    background: #ffffff;
    border: 1px solid #e4eeee;
    border-radius: 13px;
    padding: 22px 25px;
    margin-top: 15px;
}

.faq-item h3 {
    margin: 0 0 10px;
    color: #075f69;
    font-size: 18px;
    line-height: 1.8;
}

.faq-item p {
    margin: 0;
    color: #555555;
    font-size: 15px;
    line-height: 2;
}


/* CONTACT */

.contact-section {
    background: linear-gradient(135deg, #075f69, #087f8c);
    color: #ffffff;
    text-align: center;
}

.contact-section h2 {
    color: #ffffff;
}

.contact-section h2::after {
    background: #ffffff;
}

.contact-section p {
    max-width: 700px;
    margin: 0 auto 22px;
    color: #ffffff;
    font-size: 16px;
    line-height: 2;
}

.contact-button {
    display: inline-block;
    background: #ffffff;
    color: #075f69 !important;
    padding: 13px 30px;
    border-radius: 10px;
    font-weight: 800;
    transition: all 0.2s ease;
}

.contact-button:hover {
    background: #f2f7f7;
    color: #075f69 !important;
    transform: translateY(-2px);
}


/* FOOTER */

.site-footer {
    margin-top: 0;
    padding: 45px 0 25px;
    background: #073f46;
    color: #ffffff;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    align-items: flex-start;
}

.footer-about {
    max-width: 600px;
}

.footer-about h2,
.footer-contact h3 {
    margin-top: 0;
    color: #ffffff;
}

.site-footer a {
    color: #ffffff;
}

.site-footer p {
    margin: 5px 0;
}

.footer-bottom {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    text-align: center;
}


/* MOBILE CALL */

.mobile-call {
    display: none;
}


/* INTERNAL SERVICE PAGES */

.service-page {
    width: min(1100px, 92%);
    margin: 0 auto;
    padding: 50px 0 80px;
    direction: rtl;
}

.service-page > h1 {
    font-size: 36px;
    line-height: 1.6;
    color: #075f69;
    text-align: center;
    margin: 0 0 30px;
}

.service-content {
    width: 100%;
}

.service-page h2 {
    font-size: 26px;
    line-height: 1.7;
    color: #075f69;
    margin: 45px 0 18px;
    border-right: 4px solid #087f8c;
    padding-right: 12px;
}

.service-page h3 {
    font-size: 21px;
    color: #263238;
    margin: 30px 0 12px;
}

.service-page p {
    font-size: 17px;
    line-height: 2.1;
    color: #444444;
    margin: 0 0 18px;
}

.service-page ul {
    padding-right: 25px;
    margin: 20px 0;
}

.service-page li {
    font-size: 16px;
    line-height: 2;
    margin-bottom: 8px;
    color: #444444;
}


/* TABLET */

@media (max-width: 900px) {

    .hero-box {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .hero-text {
        text-align: center;
    }

    .hero p {
        margin-right: auto;
        margin-left: auto;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-image {
        width: min(760px, 100%);
        margin: 0 auto;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .why-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .process-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}


/* MOBILE */

@media (max-width: 700px) {

    .site-header {
        position: relative;
    }

    .header-inner {
        min-height: 70px;
    }

    .logo-title {
        font-size: 23px;
    }

    .logo-subtitle {
        font-size: 10px;
    }

    .header-call {
        display: none;
    }

    .menu-toggle {
        display: block;
        order: 3;
    }

    .main-navigation {
        display: none;
        position: absolute;
        top: 70px;
        right: 0;
        left: 0;
        width: 100%;
        background: #ffffff;
        border-top: 1px solid #eeeeee;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    }

    .main-navigation.active {
        display: block;
    }

    .main-navigation .main-menu,
    .main-navigation ul {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        width: 100%;
    }

    .main-navigation li {
        width: 100%;
        border-bottom: 1px solid #eeeeee;
    }

    .main-navigation a {
        display: block;
        width: 100%;
        padding: 13px 20px;
    }

    .hero {
        padding: 50px 0;
    }

    .hero h1 {
        font-size: 30px;
    }

    .hero h2 {
        font-size: 20px;
    }

    .hero p {
        font-size: 15px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .hero-button {
        width: 100%;
        max-width: 320px;
        text-align: center;
    }

    .services-section,
    .about-section,
    .why-section,
    .areas-section,
    .process-section,
    .faq-section,
    .contact-section {
        padding: 50px 0;
    }

    .services-grid,
    .why-grid,
    .process-grid {
        grid-template-columns: 1fr;
    }

    .footer-inner {
        flex-direction: column;
        gap: 20px;
    }

    .mobile-call {
        display: block;
        position: fixed;
        bottom: 15px;
        right: 15px;
        left: 15px;
        z-index: 1000;
        text-align: center;
        background: #087f8c;
        color: #ffffff !important;
        padding: 12px;
        border-radius: 10px;
        font-weight: 800;
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    }

    body {
        padding-bottom: 70px;
    }
}
.main-navigation ul {
    display: flex;
    align-items: center;
    gap: 25px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-navigation a {
    white-space: nowrap;
    font-weight: 700;
}@media(max-width:700px){

    .main-navigation {
        width:100%;
    }

    .main-navigation ul {
        display:flex;
        flex-direction:column;
        width:100%;
        background:#ffffff;
        border-radius:10px;
        padding:10px 0;
        box-shadow:0 5px 20px rgba(0,0,0,.08);
    }


    .main-navigation li {
        width:100%;
        text-align:right;
    }


    .main-navigation a {
        display:block;
        padding:12px 20px;
        border-bottom:1px solid #eeeeee;
    }


    .main-navigation a:hover {
        background:#eefafa;
        color:#087f8c;
    }

}.site-logo-image {
    display: block;
    width: 130px;
    max-width: 100%;
    height: auto;
    object-fit: contain;
}```css
/* لوگوی فوتر هیرو */
.footer-logo {
    display: inline-block;
    margin-bottom: 15px;
}

.footer-logo img {
    display: block;
    width: 150px;
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

/* فاصله عنوان از لوگو */
.footer-about h2 {
    margin-top: 0;
}
```css
/* ===== فوتر حرفه‌ای سایت هیرو ===== */

.site-footer {
    background: #173B4A;
    color: #FFFFFF;
    padding-top: 42px;
    margin-top: 40px;
    direction: rtl;
}

.site-footer .footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 35px;
    padding-bottom: 32px;
}

.site-footer .footer-about,
.site-footer .footer-contact {
    flex: 1;
    min-width: 0;
}

.site-footer .footer-logo {
    display: inline-block;
    margin-bottom: 15px;
}

.site-footer .footer-logo img {
    display: block;
    width: 145px;
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

.site-footer .footer-about h2 {
    color: #FFFFFF;
    font-size: 21px;
    margin: 0 0 12px;
}

.site-footer .footer-about p {
    color: #D9E8EC;
    font-size: 14px;
    line-height: 2.2;
    margin: 0;
}

.site-footer .footer-contact h3 {
    color: #FFFFFF;
    font-size: 19px;
    margin: 8px 0 18px;
}

.site-footer .footer-contact p {
    margin: 12px 0;
}

.site-footer .footer-contact a {
    display: inline-block;
    color: #FFFFFF;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    direction: ltr;
    unicode-bidi: isolate;
    transition: color 0.2s ease;
}

.site-footer .footer-contact a:hover {
    color: #70D5D0;
}

.site-footer .footer-bottom {
    background: #102F3B;
    text-align: center;
    padding: 15px 12px;
}

.site-footer .footer-bottom p {
    color: #D9E8EC;
    font-size: 13px;
    line-height: 2;
    margin: 0;
}

/* نمایش مناسب در موبایل */
@media (max-width: 768px) {
    .site-footer .footer-inner {
        flex-direction: column;
        gap: 28px;
        padding: 0 18px 28px;
    }

    .site-footer .footer-about,
    .site-footer .footer-contact {
        width: 100%;
    }

    .site-footer .footer-logo img {
        width: 125px;
    }

    .site-footer .footer-about h2 {
        font-size: 19px;
    }

    .site-footer .footer-contact h3 {
        font-size: 18px;
    }
}
```css
/* دکمه تماس سریع در موبایل */
.mobile-call-button {
    display: none;
}

@media (max-width: 768px) {
    .mobile-call-button {
        display: flex;
        position: fixed;
        bottom: 12px;
        left: 12px;
        right: 12px;
        z-index: 9999;
        justify-content: center;
        align-items: center;
        gap: 8px;
        padding: 14px 12px;
        background: #087F8C;
        color: #FFFFFF;
        text-decoration: none;
        font-size: 16px;
        font-weight: 700;
        border-radius: 12px;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
    }

    body {
        padding-bottom: 72px;
    }
}```css
/* دکمه تماس ثابت مخصوص موبایل */
.mobile-call-button {
    display: none;
}

@media (max-width: 768px) {
    .mobile-call-button {
        display: flex;
        position: fixed;
        bottom: 12px;
        left: 12px;
        right: 12px;
        z-index: 9999;
        justify-content: center;
        align-items: center;
        gap: 8px;
        padding: 14px 12px;
        background: #087F8C;
        color: #FFFFFF;
        text-decoration: none;
        font-size: 16px;
        font-weight: 700;
        border-radius: 12px;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
        box-sizing: border-box;
    }

    .mobile-call-button:hover {
        background: #066873;
        color: #FFFFFF;
    }

    body {
        padding-bottom: 76px;
    }
}```css
/* اصلاح جهت نمایش شماره تلفن */
.site-footer .footer-contact a,
.mobile-call-button {
    direction: ltr;
    unicode-bidi: isolate;
}

/* نمایش شماره موبایل به شکل صحیح */
.mobile-call-button {
    flex-direction: row;
}```css
/* اصلاح قطعی ترتیب شماره در دکمه تماس موبایل */
.mobile-call-button {
    direction: ltr !important;
    unicode-bidi: isolate !important;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

/* جلوگیری از جابه‌جایی ترتیب اعداد */
.mobile-call-button .phone-number {
    direction: ltr;
    unicode-bidi: isolate;
    display: inline-block;
}
/* مخفی کردن دکمه تماس ثابت در کامپیوتر */
@media (min-width: 769px) {
    .mobile-call-button {
        display: none !important;
    }

    body {
        padding-bottom: 0 !important;
    }
}
/* ===== قالب اختصاصی نوشته‌های هیرو ===== */

.article-page {
    direction: rtl;
    width: 100%;
    padding: 45px 0 70px;
    background: #f7fbfc;
}

.article-container {
    width: min(900px, 92%);
    margin: 0 auto;
}

.article-card {
    background: #ffffff;
    padding: 35px;
    border: 1px solid #e7eeee;
    border-radius: 18px;
    box-shadow: 0 7px 28px rgba(0, 0, 0, 0.045);
}

.article-header {
    margin-bottom: 30px;
}

.article-featured-image {
    margin-bottom: 25px;
    overflow: hidden;
    border-radius: 15px;
    background: #eefafa;
}

.article-featured-image img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 480px;
    object-fit: cover;
}

.article-meta {
    margin-bottom: 10px;
    color: #777777;
    font-size: 13px;
}

.article-title {
    margin: 0;
    color: #075f69;
    font-size: clamp(26px, 4vw, 36px);
    font-weight: 800;
    line-height: 1.8;
}

.article-content {
    color: #444444;
    font-size: 17px;
    line-height: 2.15;
    overflow-wrap: anywhere;
}

.article-content p {
    margin: 0 0 22px;
}

.article-content h2 {
    margin: 42px 0 18px;
    padding-right: 13px;
    border-right: 4px solid #087f8c;
    color: #075f69;
    font-size: 25px;
    line-height: 1.8;
}

.article-content h3 {
    margin: 30px 0 12px;
    color: #075f69;
    font-size: 20px;
    line-height: 1.8;
}

.article-content ul,
.article-content ol {
    padding-right: 25px;
    margin: 18px 0 25px;
}

.article-content li {
    margin-bottom: 9px;
}

.article-content a {
    color: #087f8c;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.article-content img {
    max-width: 100%;
    height: auto;
    margin: 22px auto;
    border-radius: 12px;
}

.article-content figure {
    max-width: 100%;
    margin: 25px 0;
}

.article-content figcaption {
    margin-top: 8px;
    color: #777777;
    text-align: center;
    font-size: 13px;
}

.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 25px 0;
    font-size: 15px;
}

.article-content th,
.article-content td {
    padding: 12px;
    border: 1px solid #dce9ea;
    text-align: right;
}

.article-content th {
    background: #eaf7f8;
    color: #075f69;
}

.article-content blockquote {
    margin: 25px 0;
    padding: 18px 22px;
    border-right: 4px solid #087f8c;
    background: #f2f9fa;
    border-radius: 8px;
}

.article-contact {
    margin-top: 45px;
    padding: 28px;
    background: linear-gradient(135deg, #075f69, #087f8c);
    border-radius: 15px;
    color: #ffffff;
    text-align: center;
}

.article-contact h2 {
    margin: 0 0 12px;
    color: #ffffff;
    font-size: 23px;
    line-height: 1.8;
}

.article-contact p {
    margin: 0 0 22px;
    color: #ffffff;
    line-height: 2;
}

.article-contact-button {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 9px;
    background: #ffffff;
    color: #075f69 !important;
    font-weight: 800;
    text-decoration: none !important;
}

.article-contact-button:hover {
    background: #eaf7f8;
}

@media (max-width: 700px) {
    .article-page {
        padding: 25px 0 45px;
    }

    .article-container {
        width: 94%;
    }

    .article-card {
        padding: 20px 16px;
        border-radius: 12px;
    }

    .article-title {
        font-size: 25px;
    }

    .article-content {
        font-size: 16px;
        line-height: 2.05;
    }

    .article-content h2 {
        font-size: 22px;
        margin-top: 32px;
    }

    .article-content h3 {
        font-size: 19px;
    }

    .article-content table {
        font-size: 13px;
    }

    .article-content th,
    .article-content td {
        padding: 8px;
    }

    .article-contact {
        padding: 22px 15px;
    }

    .article-contact h2 {
        font-size: 20px;
    }

    .article-contact-button {
        max-width: 100%;
        padding: 12px 15px;
    }
}
.article-read-more {
    color: #087f8c;
    font-weight: bold;
}

@media (max-width: 700px) {
    .article-list {
     display: block;
    }
}
/* تنظیم اندازه تصاویر فهرست مقالات هیرو */
.article-list-card img {
    display: block;
    width: 100%;
    max-width: 420px;
    height: 180px;
    object-fit: cover;
    margin: 0 auto 18px;
    border-radius: 10px;
}
/* حذف پس‌زمینه و حاشیه آبی از صفحه مقالات */
body.page .article-page,
body.blog .article-page,
body.archive .article-page {
    background: #ffffff !important;
    border: none !important;
    box-shadow: none !important;
}

/* سفید کردن پس‌زمینه کارت‌های مقالات */
.article-page article,
.article-page section {
    background-color: #ffffff !important;
}

/* حفظ حاشیه ظریف کارت‌ها */
.article-page article {
    border: 1px solid #e5e5e5 !important;
    border-radius: 12px;
}
/* ===== اصلاح زیرمنوی اصلی هیرو ===== */

/* منوی اصلی دسکتاپ */
@media (min-width: 701px) {

    .main-navigation .main-menu {
        display: flex;
        align-items: center;
        gap: 25px;
    }

    .main-navigation .main-menu > li {
        position: relative;
    }

    /* زیرمنو */
    .main-navigation .main-menu .sub-menu {
        display: none;
        position: absolute;
        top: 100%;
        right: 0;
        min-width: 230px;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 8px 0;
        margin: 0;
        background: #ffffff;
        border: 1px solid #eeeeee;
        border-radius: 10px;
        box-shadow: 0 8px 22px rgba(0, 0, 0, 0.10);
        z-index: 1000;
    }

    .main-navigation .main-menu li:hover > .sub-menu,
    .main-navigation .main-menu li:focus-within > .sub-menu {
        display: flex;
    }

    .main-navigation .main-menu .sub-menu li {
        width: 100%;
    }

    .main-navigation .main-menu .sub-menu a {
        display: block;
        padding: 10px 16px;
        white-space: nowrap;
    }

    .main-navigation .main-menu .sub-menu a:hover {
        background: #eefafa;
    }
}

/* زیرمنو در موبایل */
@media (max-width: 700px) {

    .main-navigation .main-menu .sub-menu {
        display: flex;
        flex-direction: column;
        gap: 0;
        position: static;
        width: 100%;
        padding: 0;
        margin: 0;
        background: #f7fbfc;
        box-shadow: none;
        border: 0;
    }

    .main-navigation .main-menu .sub-menu a {
        padding-right: 40px;
        font-size: 14px;
    }
}
/* =========================================
   طراحی صفحه پرستار سالمند در منزل تهران
========================================= */

.elderly-service-page {
    max-width: 1050px;
    margin: 0 auto;
    padding: 35px 15px 70px;
    color: #394b50;
    direction: rtl;
    text-align: right;
    box-sizing: border-box;
}

/* تصویر اصلی */

.elderly-service-page .service-main-image {
    width: 100%;
    margin: 0 auto 30px;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(7, 95, 105, 0.12);
}

.elderly-service-page .service-main-image img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

/* فهرست مطالب */

.elderly-service-page .page-toc {
    background: #f0f8f9;
    border: 1px solid #dcebed;
    border-right: 5px solid #087f8c;
    border-radius: 14px;
    padding: 22px 26px;
    margin: 30px 0 40px;
}

.elderly-service-page .page-toc strong {
    display: block;
    color: #075f69;
    font-size: 19px;
    margin-bottom: 14px;
}

.elderly-service-page .page-toc ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 25px;
    padding-right: 20px;
    margin: 0;
}

.elderly-service-page .page-toc li {
    margin: 0;
    font-size: 14px;
    line-height: 2;
}

.elderly-service-page .page-toc a {
    color: #31565c;
    text-decoration: none;
    transition: color .2s ease;
}

.elderly-service-page .page-toc a:hover {
    color: #087f8c;
}

/* بخش‌های محتوایی */

.elderly-service-page > section {
    margin: 25px 0;
    padding: 28px 30px;
    background: #ffffff;
    border: 1px solid #e7eeee;
    border-radius: 16px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.035);
}

.elderly-service-page > section > h2 {
    margin-top: 0;
    margin-bottom: 22px;
    padding-right: 14px;
    border-right: 4px solid #087f8c;
    color: #075f69;
    font-size: 25px;
    line-height: 1.8;
}

.elderly-service-page h3 {
    color: #075f69;
    font-size: 19px;
    line-height: 1.9;
    margin-top: 22px;
}

.elderly-service-page p {
    color: #48575b;
    font-size: 16px;
    line-height: 2.15;
    margin: 12px 0;
}

.elderly-service-page li {
    color: #48575b;
    line-height: 2.1;
    margin-bottom: 9px;
}

.elderly-service-page ul,
.elderly-service-page ol {
    padding-right: 25px;
    margin: 15px 0;
}

.elderly-service-page strong {
    color: #075f69;
}

/* تصاویر داخل محتوا */

.elderly-service-page .service-image {
    max-width: 680px;
    margin: 20px auto 28px;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.07);
}

.elderly-service-page .service-image img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

/* لینک‌ها */

.elderly-service-page section a:not(.button) {
    color: #087f8c;
    font-weight: 600;
    text-decoration: none;
    transition: color .2s ease;
}

.elderly-service-page section a:not(.button):hover {
    color: #056771;
    text-decoration: underline;
}

/* باکس تماس */

.elderly-service-page .service-cta {
    margin: 30px 0;
    padding: 30px 22px;
    background: linear-gradient(135deg, #075f69, #087f8c);
    border-radius: 16px;
    color: #ffffff;
    text-align: center;
}

.elderly-service-page .service-cta h3,
.elderly-service-page .service-cta p {
    color: #ffffff;
}

.elderly-service-page .service-cta h3 {
    font-size: 21px;
    margin-top: 0;
}

.elderly-service-page .service-cta .button {
    display: inline-block;
    padding: 12px 25px;
    background: #ffffff;
    color: #075f69 !important;
    border-radius: 9px;
    font-weight: 800;
    text-decoration: none;
    transition: background .2s ease;
}

.elderly-service-page .service-cta .button:hover {
    background: #eaf6f7;
    text-decoration: none;
}

/* فرم درخواست */

.elderly-service-page .service-form {
    margin-top: 30px;
    padding: 24px;
    background: #f7fafb;
    border: 1px solid #e4eeee;
    border-radius: 14px;
}

.elderly-service-page .service-form h3 {
    margin-top: 0;
}

/* منابع و خدمات مرتبط */

.elderly-service-page > .external-resource,
.elderly-service-page > .related-service {
    background: #f4f9fa;
    border-color: #e0edef;
}

/* موبایل */

@media (max-width: 700px) {

    .elderly-service-page {
        width: 100%;
        padding: 20px 12px 45px;
    }

    .elderly-service-page .service-main-image {
        border-radius: 12px;
        margin-bottom: 22px;
    }

    .elderly-service-page .page-toc {
        padding: 18px;
        margin: 22px 0 28px;
    }

    .elderly-service-page .page-toc ul {
        grid-template-columns: 1fr;
        gap: 5px;
    }

    .elderly-service-page > section {
        padding: 22px 17px;
        margin: 18px 0;
        border-radius: 12px;
    }

    .elderly-service-page > section > h2 {
        font-size: 21px;
    }

    .elderly-service-page h3 {
        font-size: 17px;
    }

    .elderly-service-page p {
        font-size: 15px;
        line-height: 2.1;
    }

    .elderly-service-page .service-cta {
        padding: 23px 15px;
    }

    .elderly-service-page .service-form {
        padding: 17px;
    }
}

