@font-face {
    font-family: "IRANYekan";
    src: url("../font/IRANYekanWebThin.woff") format("woff");
    font-weight: 100;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "IRANYekan";
    src: url("../font/IRANYekanWebLight.woff") format("woff");
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "IRANYekan";
    src: url("../font/IRANYekanWebRegular.woff") format("woff");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "IRANYekan";
    src: url("../font/IRANYekanWebMedium.woff") format("woff");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "IRANYekan";
    src: url("../font/IRANYekanWebBold.woff") format("woff");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "IRANYekan";
    src: url("../font/IRANYekanWebExtraBold.woff") format("woff");
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "IRANYekan";
    src: url("../font/IRANYekanWebBlack.woff") format("woff");
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "IRANYekan";
    src: url("../font/IRANYekanWebExtraBlack.woff") format("woff");
    font-weight: 950;
    font-style: normal;
    font-display: swap;
}

:root {
    --ink: #102a43;
    --muted: #627d98;
    --primary: #087f8c;
    --primary2: #0ea5a8;
    --soft: #eef9f8;
    --line: #d9e6ec;
    --white: #fff;
    --shadow: 0 18px 50px rgba(16, 42, 67, .10)
}

* {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth
}

body {
    margin: 0;
    font-family: "IRANYekan", Tahoma, sans-serif;
    color: var(--ink);
    background: #fff;
    line-height: 1.9
}

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

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

.container {
    width: min(1160px, calc(100% - 36px));
    margin: auto
}

.narrow {
    max-width: 860px
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(217, 230, 236, .8)
}

.nav-wrap {
    min-height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px
}

.brand {
    display: flex;
    align-items: center;
    gap: 11px
}

.brand-mark {
    width: 43px;
    height: 43px;
    border-radius: 13px;
    background: linear-gradient(135deg, var(--primary), #52c7bc);
    color: white;
    display: grid;
    place-items: center;
    font-weight: 900;
    font-size: 23px;
    box-shadow: 0 8px 20px rgba(8, 127, 140, .22)
}

.brand strong,
.brand small {
    display: block
}

.brand strong {
    font-size: 15px
}

.brand small {
    font-size: 11px;
    color: var(--muted);
    font-weight: 500
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 26px;
    font-size: 14px;
    font-weight: 600
}

.main-nav a {
    transition: .2s
}

.main-nav a:hover {
    color: var(--primary)
}

.nav-cta {
    background: var(--ink);
    color: #fff !important;
    padding: 10px 17px;
    border-radius: 12px
}

.nav-toggle {
    display: none;
    background: none;
    border: 0;
    font-size: 27px
}

.hero-slider {
    background: #f7fbff;
    padding: 28px 0 20px;
    position: relative
}

.slider-viewport {
    position: relative;
    width: min(1260px, calc(100% - 24px));
    margin: 0 auto;
    overflow: hidden;
    border-radius: 32px;
    background: #edf8ff
}

.slide {
    display: none;
    min-height: 620px;
    background: linear-gradient(135deg, #f5fbff 0%, #edf4ff 100%)
}

.slide.active {
    display: block
}

.slide-grid {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    align-items: center;
    min-height: 620px
}

.slide-copy {
    padding: 44px 36px 44px 20px
}

.slide-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(8, 127, 140, .08);
    color: var(--primary);
    border: 1px solid rgba(8, 127, 140, .12);
    border-radius: 999px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 800
}

.slide-copy h2 {
    margin: 20px 0 16px;
    font-size: clamp(34px, 4vw, 62px);
    line-height: 1.2;
    color: #0a4a7a;
    letter-spacing: -1.5px
}

.slide-copy p {
    max-width: 560px;
    margin: 0;
    color: #54738c;
    font-size: 17px;
    line-height: 1.9
}

.slide-actions {
    margin-top: 26px
}

.slide-visual {
    height: 100%;
    min-height: 620px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px 18px 18px 0
}

.slide-visual img {
    width: 100%;
    height: 100%;
    max-height: 560px;
    object-fit: contain;
    object-position: center;
    border-radius: 26px;
    background: rgba(255, 255, 255, .6);
    box-shadow: 0 20px 40px rgba(8, 33, 63, .18)
}

.slider-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 18px
}

.slider-btn {
    width: 42px;
    height: 42px;
    border: 1px solid rgba(8, 127, 140, .18);
    border-radius: 50%;
    background: #fff;
    color: var(--primary);
    font-size: 28px;
    line-height: 1;
    display: grid;
    place-items: center;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(27, 58, 86, .08);
    transition: .2s
}

.slider-btn:hover {
    transform: translateY(-2px)
}

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 10px
}

.slider-dot {
    width: 12px;
    height: 12px;
    border: 0;
    border-radius: 50%;
    background: rgba(8, 127, 140, .25);
    cursor: pointer;
    transition: .25s
}

.slider-dot.active {
    width: 42px;
    border-radius: 999px;
    background: var(--primary)
}

.hero {
    background: radial-gradient(circle at 10% 20%, #d9fbf5 0, transparent 35%), linear-gradient(135deg, #f6fffe, #eef7fb);
    padding: 90px 0 80px;
    overflow: hidden
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.3fr .8fr;
    gap: 70px;
    align-items: center
}

.eyebrow {
    display: inline-block;
    color: var(--primary);
    font-weight: 800;
    font-size: 13px;
    margin-bottom: 8px;
    letter-spacing: .2px
}

.hero h1 {
    font-size: clamp(42px, 6vw, 72px);
    line-height: 1.25;
    margin: 0 0 18px;
    letter-spacing: -2px
}

.hero h1 span {
    color: var(--primary)
}

.hero p {
    font-size: 18px;
    color: #486581;
    max-width: 700px
}

.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin: 28px 0
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 13px;
    padding: 12px 22px;
    font-family: inherit;
    font-weight: 700;
    cursor: pointer;
    transition: .2s
}

.btn-primary {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 10px 25px rgba(8, 127, 140, .2)
}

.btn-primary:hover {
    background: #066d78;
    transform: translateY(-2px)
}

/* Floating contact widget */
.contact-widget{
    position:fixed;
    z-index:9999;
    display:flex;
    align-items:center;
    gap:10px;
    right:20px;
    bottom:20px;
    background:var(--primary);
    color:#fff;
    padding:10px 14px;
    border-radius:999px;
    box-shadow:0 8px 30px rgba(8,127,140,.18);
    transition:all .22s ease;
    align-items:center;
}
.contact-widget .contact-pill{color:#fff; text-decoration:none; font-weight:800}
.contact-widget .contact-panel{display:none; flex-direction:column; text-align:right}
.contact-widget .contact-line{font-size:14px; line-height:1.3}
.contact-widget .contact-address-line{opacity:.95; font-weight:500}
.contact-widget .contact-actions{margin-top:8px; display:flex; gap:8px}
.contact-widget .contact-toggle{background:transparent;border:0;color:#fff;font-size:16px;margin-left:8px;cursor:pointer}

.contact-widget.expanded{width:340px;border-radius:12px;padding:12px 14px}
.contact-widget.expanded .contact-panel{display:flex}

@media (max-width:767px){
    .contact-widget{left:12px; right:12px; bottom:12px; width:calc(100% - 24px); border-radius:12px; padding:12px}
    .contact-widget .contact-pill{display:none}
    .contact-widget .contact-panel{display:flex}
    .contact-widget .contact-actions{justify-content:flex-start}
}

@media (min-width:768px){
    .contact-widget{right:20px; bottom:20px}
    .contact-widget .contact-panel{display:none}
    .contact-widget:hover{transform:translateY(-6px)}
}

.btn-light {
    background: #fff;
    border: 1px solid var(--line);
    color: var(--ink)
}

.btn-white {
    background: #fff;
    color: var(--primary)
}

.btn-outline-white {
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .5)
}

.full {
    width: 100%
}

.trust-row {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    color: #527086;
    font-size: 12px
}

.hero-card {
    background: #fff;
    border: 1px solid #dcecf0;
    border-radius: 28px;
    padding: 38px;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden
}

.hero-card:before {
    content: "";
    position: absolute;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: #dff8f4;
    left: -70px;
    top: -80px
}

.ear-icon {
    position: relative;
    width: 100px;
    height: 100px;
    border-radius: 30px;
    background: var(--soft);
    display: grid;
    place-items: center;
    font-size: 70px;
    color: var(--primary);
    margin-bottom: 22px
}

.hero-card h2 {
    font-size: 23px;
    margin: 0 0 10px
}

.hero-card p {
    font-size: 14px;
    color: var(--muted)
}

.hero-card a {
    font-weight: 800;
    color: var(--primary)
}

.stats {
    margin-top: -1px;
    background: var(--ink);
    color: #fff
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    padding: 25px 0
}

.stats-grid>div {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border-left: 1px solid rgba(255, 255, 255, .12)
}

.stats-grid>div:last-child {
    border: 0
}

.stats-grid b {
    font-size: 23px
}

.stats-grid span {
    font-size: 12px;
    color: #c8d8e4
}

.section {
    padding: 90px 0
}

.section-soft {
    background: #f5fbfa
}

.section-head {
    max-width: 720px;
    margin-bottom: 35px
}

.section-head h2 {
    font-size: 34px;
    line-height: 1.4;
    margin: 0 0 8px
}

.section-head p {
    color: var(--muted)
}

.row-head {
    max-width: none;
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px
}

.text-link {
    color: var(--primary);
    font-weight: 800;
    font-size: 13px
}

.cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px
}

.service-card {
    padding: 28px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 20px;
    transition: .25s
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow)
}

.service-card .icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: var(--soft);
    color: var(--primary);
    display: grid;
    place-items: center;
    font-size: 24px
}

.service-card h3 {
    font-size: 18px;
    margin: 18px 0 6px
}

.service-card p {
    font-size: 13px;
    color: var(--muted);
    margin: 0
}

.about-grid {
    display: grid;
    grid-template-columns: .8fr 1.2fr;
    gap: 80px;
    align-items: center
}

.about-visual {
    height: 360px;
    border-radius: 35px;
    background: linear-gradient(145deg, var(--ink), #176b76);
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    text-align: center;
    box-shadow: var(--shadow)
}

.about-visual>span {
    font-size: 100px;
    font-weight: 900;
    opacity: .12;
    position: absolute
}

.about-visual strong {
    color: #74e3d6
}

.about-grid h2 {
    font-size: 35px;
    line-height: 1.45
}

.about-grid p {
    color: var(--muted)
}

.check-list {
    padding: 0;
    list-style: none
}

.check-list li {
    margin: 12px 0
}

.check-list li:before {
    content: "✓";
    color: var(--primary);
    font-weight: 900;
    margin-left: 10px
}

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

.post-card {
    border: 1px solid var(--line);
    border-radius: 20px;
    overflow: hidden;
    background: #fff;
    transition: .25s
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow)
}

.post-cover {
    height: 180px;
    background: linear-gradient(135deg, #0b7f8a, #8eddd3);
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 25px;
    font-weight: 900;
    overflow: hidden
}

.post-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover
}

.post-body {
    padding: 23px
}

.post-body small,
.article-meta {
    font-size: 11px;
    color: #829ab0
}

.post-body h2,
.post-body h3 {
    font-size: 18px;
    line-height: 1.6;
    margin: 7px 0
}

.post-body p {
    font-size: 13px;
    color: var(--muted);
    min-height: 50px
}

.contact-section {
    padding: 30px 0 90px
}

.contact-box {
    background: linear-gradient(120deg, var(--primary), #07586a);
    border-radius: 30px;
    padding: 45px 50px;
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 25px
}

.contact-box .eyebrow {
    color: #aaf0e6
}

.contact-box h2 {
    font-size: 32px;
    margin: 0 0 5px
}

.contact-box p {
    opacity: .8
}

.contact-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap
}

.footer {
    background: #0b1f2d;
    color: #c4d4df;
    padding-top: 55px
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 50px;
    padding-bottom: 45px
}

.footer-brand {
    color: #fff;
    margin-bottom: 15px
}

.footer h3 {
    color: #fff;
    font-size: 15px
}

.footer a {
    display: block;
    margin: 8px 0;
    font-size: 13px
}

.footer p {
    font-size: 13px;
    color: #9eb2c1
}

.copyright {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, .08);
    padding: 18px;
    font-size: 11px;
    color: #7890a0
}

.page-hero {
    padding: 70px 0;
    background: linear-gradient(135deg, #eefbf9, #f4f8fb)
}

.page-hero h1 {
    font-size: 48px;
    margin: 0
}

.page-hero p {
    color: var(--muted)
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 40px
}

.pagination a {
    width: 38px;
    height: 38px;
    border: 1px solid var(--line);
    border-radius: 10px;
    display: grid;
    place-items: center
}

.pagination a.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary)
}

.empty-state {
    padding: 40px;
    text-align: center;
    background: #f7fafb;
    border: 1px dashed var(--line);
    border-radius: 18px;
    color: var(--muted)
}

.article-wrap {
    padding: 70px 0
}

.article-wrap h1 {
    font-size: 44px;
    line-height: 1.5;
    margin: 8px 0 30px
}

.article-image {
    width: 100%;
    max-height: 460px;
    object-fit: cover;
    border-radius: 25px;
    margin-bottom: 35px
}

.article-content {
    font-size: 17px;
    line-height: 2.2
}

.article-content h2 {
    font-size: 28px;
    margin-top: 40px
}

.article-content h3 {
    font-size: 22px
}

.article-content p {
    margin: 20px 0
}

.article-content a {
    color: var(--primary);
    font-weight: 700
}

.article-content ul,
.article-content ol {
    padding-right: 25px
}

.article-cta {
    margin-top: 50px;
    background: var(--soft);
    border-radius: 20px;
    padding: 25px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px
}

.admin-body {
    background: #f5f8fa
}

.admin-header {
    background: #fff;
    border-bottom: 1px solid var(--line)
}

.admin-header nav {
    display: flex;
    gap: 20px;
    font-size: 13px;
    font-weight: 700
}

.admin-toolbar {
    display: flex;
    align-items: end;
    justify-content: space-between;
    margin-bottom: 30px
}

.admin-toolbar h1 {
    margin: 0;
    font-size: 32px
}

.admin-table-wrap {
    overflow: auto;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 700px
}

.admin-table th,
.admin-table td {
    text-align: right;
    padding: 17px;
    border-bottom: 1px solid #edf2f5
}

.admin-table th {
    font-size: 12px;
    color: var(--muted)
}

.admin-table td {
    font-size: 13px
}

.admin-table td small {
    display: block;
    color: #8aa0b0
}

.danger {
    color: #c0392b
}

.status {
    padding: 4px 9px;
    border-radius: 8px;
    font-size: 11px
}

.status.published {
    background: #e2f7f0;
    color: #11775b
}

.status.draft {
    background: #f1f3f5;
    color: #667
}

.editor-form {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 22px
}

.editor-main,
.editor-side {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 25px
}

.editor-side {
    height: max-content
}

label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 18px
}

input,
textarea,
select {
    display: block;
    width: 100%;
    margin-top: 7px;
    border: 1px solid #cfdee6;
    border-radius: 10px;
    padding: 12px 13px;
    font-family: inherit;
    font-size: 13px;
    outline: none;
    background: #fff
}

input:focus,
textarea:focus,
select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(8, 127, 140, .08)
}

.content-editor {
    font-family: Tahoma, sans-serif;
    line-height: 2;
    direction: rtl
}

.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px
}

.seo-tip {
    background: #f0fbf9;
    border-radius: 12px;
    padding: 14px;
    margin: 10px 0 20px;
    font-size: 12px
}

.seo-tip p {
    color: var(--muted);
    margin: 5px 0
}

.success,
.alert {
    padding: 12px 15px;
    border-radius: 10px;
    margin-bottom: 20px
}

.success {
    background: #e7f8f1;
    color: #08704f
}

.alert {
    background: #fff0f0;
    color: #a42b2b
}

.muted {
    font-size: 11px;
    color: #8aa0b0
}

.login-body {
    min-height: 100vh;
    background: linear-gradient(135deg, #edfafa, #f4f7fa);
    display: grid;
    place-items: center
}

.login-card {
    width: min(430px, calc(100% - 30px));
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    border-radius: 22px;
    padding: 32px
}

.login-card h1 {
    font-size: 25px
}

.login-card .brand {
    margin-bottom: 25px
}

.contact-page-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start
}

.contact-info h3 {
    margin-top: 0;
    font-size: 24px;
    margin-bottom: 20px
}

.contact-info p {
    margin: 15px 0;
    font-size: 16px
}

.contact-info a {
    color: var(--primary);
    font-weight: 700
}

.contact-map iframe {
    width: 100%;
    height: auto;
    border-radius: 15px
}

@media(max-width:900px) {

    .slide-grid {
        grid-template-columns: 1fr
    }

    .slide-copy {
        padding: 32px 24px 18px
    }

    .slide-visual {
        min-height: 320px;
        padding: 0 24px 26px
    }

    .slide-visual img {
        height: 320px
    }

    .hero-grid,
    .about-grid {
        grid-template-columns: 1fr
    }

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

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

    .editor-form {
        grid-template-columns: 1fr
    }

    .about-visual {
        height: 260px
    }

    .main-nav {
        display: none;
        position: absolute;
        top: 78px;
        right: 18px;
        left: 18px;
        background: #fff;
        padding: 15px;
        border-radius: 15px;
        box-shadow: var(--shadow);
        flex-direction: column;
        align-items: stretch
    }

    .main-nav.open {
        display: flex
    }

    .nav-toggle {
        display: block
    }

    .contact-box {
        display: block
    }

    .contact-actions {
        margin-top: 20px
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr
    }

    .contact-page-grid {
        grid-template-columns: 1fr
    }

    .contact-info {
        order: 2
    }

    .contact-map {
        order: 1
    }
}

@media(max-width:600px) {
    .container {
        width: min(100% - 24px, 1160px)
    }

    .hero-slider {
        padding-top: 18px
    }

    .slider-viewport {
        border-radius: 22px
    }

    .slide {
        min-height: 520px
    }

    .slide-grid {
        min-height: 520px
    }

    .slide-copy h2 {
        font-size: 31px
    }

    .slide-copy p {
        font-size: 14px
    }

    .slide-visual {
        min-height: 250px
    }

    .slide-visual img {
        height: 250px;
        border-radius: 18px
    }

    .hero {
        padding: 55px 0
    }

    .hero h1 {
        font-size: 40px
    }

    .hero p {
        font-size: 15px
    }

    .stats-grid {
        grid-template-columns: 1fr
    }

    .stats-grid>div {
        border-left: 0;
        border-bottom: 1px solid rgba(255, 255, 255, .1);
        padding: 12px
    }

    .cards,
    .posts-grid {
        grid-template-columns: 1fr
    }

    .section {
        padding: 60px 0
    }

    .section-head h2,
    .about-grid h2,
    .contact-box h2 {
        font-size: 27px
    }

    .row-head {
        align-items: start;
        flex-direction: column
    }

    .page-hero h1 {
        font-size: 36px
    }

    .article-wrap h1 {
        font-size: 30px
    }

    .article-content {
        font-size: 15px
    }

    .article-cta {
        display: block
    }

    .two-col {
        grid-template-columns: 1fr
    }

    .footer-grid {
        grid-template-columns: 1fr
    }

    .contact-box {
        padding: 30px 25px
    }

    .hero-card {
        padding: 28px
    }

    .contact-map iframe {
        max-width: 100%;
        height: 250px !important
    }

    .contact-info {
        font-size: 14px
    }
}