.clinic-faq-content,
.clinic-media-content,
.clinic-partners-content {
    background: #f6f9fb;
}

.clinic-faq-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(280px, .7fr);
    align-items: start;
    gap: 32px;
}

.clinic-faq-list {
    display: grid;
    min-width: 0;
    gap: 14px;
}

.clinic-faq-item {
    min-width: 0;
    overflow: hidden;
    border: 1px solid #dce8ee;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 7px 28px rgb(8 32 58 / 4%);
}

.clinic-faq-item summary {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) 24px;
    align-items: center;
    gap: 16px;
    min-height: 78px;
    padding: 16px 22px;
    color: #08203a;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.65;
    cursor: pointer;
    list-style: none;
    overflow-wrap: anywhere;
}

.clinic-faq-item summary::-webkit-details-marker {
    display: none;
}

.clinic-faq-item summary:hover {
    background: #f7fbfc;
}

.clinic-faq-item summary:focus-visible {
    outline: 3px solid #099ab4;
    outline-offset: -4px;
}

.clinic-faq-number {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: #edf8fa;
    color: #087e94;
    font-size: .78rem;
    font-variant-numeric: tabular-nums;
}

.clinic-faq-item summary > i {
    color: #087e94;
    font-size: 20px;
    transition: transform .2s ease;
}

.clinic-faq-item[open] {
    border-color: #a9d1db;
}

.clinic-faq-item[open] summary > i {
    transform: rotate(45deg);
}

.clinic-faq-answer {
    margin: 0 22px 22px 80px;
    padding-top: 18px;
    border-top: 1px solid #e3edf2;
}

html[dir="rtl"] .clinic-faq-answer {
    margin-right: 80px;
    margin-left: 22px;
}

.clinic-help-card {
    position: sticky;
    top: 138px;
    overflow: hidden;
    padding: 30px;
    border-radius: 20px;
    background: linear-gradient(145deg, #08203a, #103d58);
    box-shadow: 0 18px 44px rgb(8 32 58 / 16%);
    color: #d5e8f0;
}

.clinic-help-card::after {
    position: absolute;
    inset-block-start: -65px;
    inset-inline-end: -55px;
    width: 170px;
    height: 170px;
    border: 1px solid rgb(165 234 243 / 20%);
    border-radius: 50%;
    content: "";
}

.clinic-help-icon {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    margin-bottom: 24px;
    border-radius: 14px;
    background: #a5eaf3;
    color: #08203a;
    font-size: 23px;
}

.clinic-help-card h2 {
    margin-bottom: 12px;
    color: #fff;
    font-size: 1.35rem;
}

.clinic-help-card p {
    margin-bottom: 24px;
    color: #d5e8f0;
    font-size: .94rem;
    line-height: 1.85;
}

.clinic-help-actions {
    display: grid;
    gap: 14px;
}

.clinic-help-card .ui-button {
    width: 100%;
    background: #a5eaf3;
    color: #08203a;
}

.clinic-help-card .ui-text-link {
    justify-content: center;
    color: #fff;
}

.page-empty-state {
    display: flex;
    align-items: center;
    flex-direction: column;
    min-height: 330px;
    padding: 56px 24px;
    border: 1px dashed #b8cfd9;
    border-radius: 22px;
    background: #fff;
    text-align: center;
}

.page-empty-state > span {
    display: grid;
    place-items: center;
    width: 68px;
    height: 68px;
    margin-bottom: 20px;
    border-radius: 18px;
    background: #edf8fa;
    color: #087e94;
    font-size: 29px;
}

.page-empty-state h2 {
    margin-bottom: 10px;
    color: #08203a;
    font-size: 1.3rem;
}

.page-empty-state p {
    max-width: 520px;
    margin-bottom: 22px;
    color: #617789;
    line-height: 1.8;
}

.media-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
}

.media-filter button {
    min-height: 44px;
    padding: 9px 18px;
    border: 1px solid #cbdde6;
    border-radius: 100px;
    background: #fff;
    color: #506a7c;
    font-size: .88rem;
    font-weight: 600;
}

.media-filter button:hover,
.media-filter button.active {
    border-color: #087e94;
    background: #087e94;
    color: #fff;
}

.media-filter button:focus-visible {
    outline: 3px solid rgb(8 126 148 / 25%);
    outline-offset: 3px;
}

.media-gallery {
    margin-right: -12px;
    margin-left: -12px;
}

.media-gallery .ltn__gallery-sizer {
    width: 0;
    padding: 0;
}

.media-card-cell {
    margin-bottom: 24px;
    padding-right: 12px;
    padding-left: 12px;
}

.media-card-cell.is-hidden {
    display: none !important;
}

.media-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    border: 1px solid #dce8ee;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 7px 28px rgb(8 32 58 / 4%);
    color: #08203a;
}

.media-card:hover {
    border-color: #8fc4cf;
    color: #087e94;
    transform: translateY(-3px);
}

.media-card-image {
    position: relative;
    display: block;
    overflow: hidden;
    width: 100%;
    aspect-ratio: 4 / 3;
    background: #eaf4f8;
}

.media-card-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
}

.media-card:hover .media-card-image img {
    transform: scale(1.035);
}

.media-card-placeholder {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    background: linear-gradient(145deg, #e7f5f7, #f8fbfc);
    color: #79a5b5;
    font-size: 46px;
}

.media-card-action {
    position: absolute;
    inset-block-end: 14px;
    inset-inline-end: 14px;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 1px solid rgb(255 255 255 / 55%);
    border-radius: 14px;
    background: rgb(8 32 58 / 84%);
    color: #fff;
    box-shadow: 0 8px 20px rgb(8 32 58 / 18%);
}

.media-card-action--play {
    border-radius: 50%;
    background: #087e94;
}

.media-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: flex-start;
    gap: 9px;
    padding: 20px;
}

.media-card-type {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #728b9c;
    font-size: .75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.media-card-body strong {
    max-width: 100%;
    color: inherit;
    font-size: 1rem;
    line-height: 1.65;
    overflow-wrap: anywhere;
}

.clinic-partners-content .container {
    display: grid;
    gap: 24px;
}

.partner-card {
    display: grid;
    grid-template-columns: minmax(240px, 330px) minmax(0, 1fr);
    min-width: 0;
    overflow: hidden;
    border: 1px solid #dce8ee;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 8px 30px rgb(8 32 58 / 4%);
}

.partner-identity {
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    padding: 34px;
    border-inline-end: 1px solid #e2ecf1;
    background: #f8fbfc;
    text-align: center;
}

.partner-logo {
    display: grid;
    place-items: center;
    overflow: hidden;
    width: 170px;
    max-width: 100%;
    height: 130px;
    margin-bottom: 24px;
    padding: 16px;
    border: 1px solid #dce8ee;
    border-radius: 18px;
    background: #fff;
}

.partner-logo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.partner-logo > span {
    color: #7ca5b4;
    font-size: 42px;
}

.partner-identity h2 {
    margin-bottom: 12px;
    color: #08203a;
    font-size: 1.35rem;
    line-height: 1.55;
    overflow-wrap: anywhere;
}

.partner-identity .ui-text-link {
    justify-content: center;
}

.partner-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    padding: clamp(26px, 4vw, 46px);
}

.partner-description {
    max-width: 76ch;
}

.partner-media {
    overflow: hidden;
    width: 100%;
    max-width: 760px;
    margin-top: 24px;
    border-radius: 16px;
    background: #08203a;
}

.partner-media iframe,
.partner-media video,
.partner-media embed,
.partner-media object {
    display: block;
    width: 100% !important;
    max-width: 100% !important;
    aspect-ratio: 16 / 9;
    height: auto !important;
    min-height: 260px;
    border: 0;
}

.error-section {
    display: grid;
    align-items: center;
    min-height: min(720px, calc(100vh - 100px));
    min-height: min(720px, calc(100dvh - 100px));
    padding: clamp(56px, 9vw, 110px) 0;
    background:
        radial-gradient(circle at 14% 20%, rgb(8 126 148 / 12%), transparent 30%),
        linear-gradient(145deg, #f7fbfc, #edf5f8);
}

.error-card {
    position: relative;
    overflow: hidden;
    max-width: 760px;
    margin: 0 auto;
    padding: clamp(34px, 7vw, 72px);
    border: 1px solid #d7e6ed;
    border-radius: 28px;
    background: rgb(255 255 255 / 92%);
    box-shadow: 0 24px 70px rgb(8 32 58 / 10%);
    text-align: center;
}

.error-code {
    position: absolute;
    inset-block-start: -26px;
    inset-inline-end: -6px;
    color: rgb(8 126 148 / 6%);
    font-size: clamp(9rem, 24vw, 16rem);
    font-weight: 800;
    line-height: 1;
    pointer-events: none;
}

.error-icon {
    position: relative;
    display: grid;
    place-items: center;
    width: 76px;
    height: 76px;
    margin: 0 auto 26px;
    border-radius: 22px;
    background: #08203a;
    color: #a5eaf3;
    font-size: 32px;
}

.error-card h1 {
    position: relative;
    margin-bottom: 16px;
    color: #08203a;
    font-size: clamp(2rem, 5vw, 3.5rem);
}

.error-card p {
    position: relative;
    max-width: 520px;
    margin: 0 auto 30px;
    color: #5b7182;
    font-size: 1rem;
    line-height: 1.85;
}

.error-actions {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.ui-button--secondary {
    border: 1px solid #c4d9e2;
    background: #fff;
    color: #173f57;
}

.ui-button--secondary:hover {
    border-color: #087e94;
    background: #edf8fa;
    color: #065d70;
}

.certificate-detail-content {
    background: #f6f9fb;
}

.certificate-detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) minmax(300px, .7fr);
    align-items: start;
    gap: 32px;
}

.certificate-detail-layout > * {
    min-width: 0;
}

.certificate-visual {
    display: grid;
    gap: 16px;
}

.certificate-main-image {
    position: relative;
    display: grid;
    place-items: center;
    overflow: hidden;
    min-height: 420px;
    padding: clamp(20px, 4vw, 44px);
    border: 1px solid #dce8ee;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 9px 34px rgb(8 32 58 / 5%);
}

.certificate-main-image img {
    display: block;
    width: 100%;
    height: min(62vh, 650px);
    object-fit: contain;
}

.certificate-main-image > span {
    position: absolute;
    inset-block-end: 18px;
    inset-inline-end: 18px;
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border: 1px solid #d2e4eb;
    border-radius: 13px;
    background: rgb(255 255 255 / 94%);
    color: #087e94;
    box-shadow: 0 8px 24px rgb(8 32 58 / 12%);
}

.certificate-main-image--empty {
    background: linear-gradient(145deg, #eaf5f8, #fff);
    color: #80a9b8;
    font-size: 72px;
}

.certificate-thumbnail-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.certificate-thumbnail-grid a {
    display: block;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    padding: 8px;
    border: 1px solid #dce8ee;
    border-radius: 12px;
    background: #fff;
}

.certificate-thumbnail-grid a:hover {
    border-color: #087e94;
}

.certificate-thumbnail-grid img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.certificate-facts {
    position: sticky;
    top: 138px;
    padding: 30px;
    border-radius: 22px;
    background: #08203a;
    box-shadow: 0 18px 44px rgb(8 32 58 / 16%);
    color: #d8e8ef;
}

.certificate-facts-icon {
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    margin-bottom: 24px;
    border-radius: 15px;
    background: #a5eaf3;
    color: #08203a;
    font-size: 25px;
}

.certificate-facts h2 {
    margin-bottom: 20px;
    color: #fff;
    font-size: 1.3rem;
}

.certificate-facts dl {
    margin: 0;
}

.certificate-facts dl > div {
    display: grid;
    grid-template-columns: minmax(90px, .7fr) minmax(0, 1.3fr);
    gap: 14px;
    padding: 14px 0;
    border-top: 1px solid rgb(220 232 238 / 18%);
}

.certificate-facts dt {
    color: #9fb8c6;
    font-size: .78rem;
    font-weight: 500;
}

.certificate-facts dd {
    margin: 0;
    color: #fff;
    font-size: .88rem;
    font-weight: 600;
    line-height: 1.7;
    overflow-wrap: anywhere;
}

.certificate-facts dd a {
    color: #a5eaf3;
}

.certificate-fact-actions {
    display: grid;
    gap: 14px;
    margin-top: 24px;
}

.certificate-fact-actions .ui-button {
    width: 100%;
    background: #a5eaf3;
    color: #08203a;
}

.certificate-fact-actions .ui-text-link {
    justify-content: center;
    color: #fff;
}

.certificate-article {
    max-width: 920px;
    margin-top: 40px;
    padding: clamp(24px, 5vw, 48px);
    border: 1px solid #dce8ee;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 8px 30px rgb(8 32 58 / 4%);
}

.certificate-article > h2 {
    margin-bottom: 28px;
    padding-bottom: 18px;
    border-bottom: 1px solid #e1ebf0;
    color: #08203a;
    font-size: 1.55rem;
}

.certificate-copy-section + .certificate-copy-section {
    margin-top: 34px;
    padding-top: 30px;
    border-top: 1px solid #e6eef2;
}

.certificate-copy-section h3 {
    margin-bottom: 14px;
    color: #123b54;
    font-size: 1.12rem;
}

.certificate-video {
    overflow: hidden;
    width: 100%;
    border-radius: 16px;
    background: #08203a;
}

.certificate-video iframe {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    border: 0;
}

.related-certificates {
    padding: clamp(54px, 7vw, 86px) 0;
    background: #fff;
}

.related-certificates-heading {
    margin-bottom: 28px;
}

.related-certificates-heading h2 {
    margin: 0;
    color: #08203a;
    font-size: clamp(1.6rem, 3vw, 2.25rem);
}

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

.related-certificate-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    border: 1px solid #dce8ee;
    border-radius: 17px;
    background: #fff;
    color: #08203a;
}

.related-certificate-card:hover {
    border-color: #8fc4cf;
    color: #087e94;
    transform: translateY(-3px);
}

.related-certificate-image {
    display: grid;
    place-items: center;
    overflow: hidden;
    width: 100%;
    aspect-ratio: 4 / 3;
    padding: 16px;
    border-bottom: 1px solid #e5edf2;
    background: #f6fafb;
    color: #7ca7b6;
    font-size: 42px;
}

.related-certificate-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.related-certificate-card > strong {
    flex: 1;
    padding: 19px 20px 10px;
    color: inherit;
    font-size: .98rem;
    line-height: 1.65;
    overflow-wrap: anywhere;
}

.related-certificate-card > span:last-child {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 20px 20px;
    color: #087e94;
    font-size: .8rem;
    font-weight: 600;
}

.ui-richtext,
.ui-richtext * {
    max-width: 100%;
}

.ui-richtext a,
.ui-richtext td,
.ui-richtext th,
.ui-richtext p,
.ui-richtext li {
    overflow-wrap: anywhere;
}

.ui-richtext iframe,
.ui-richtext video,
.ui-richtext embed,
.ui-richtext object {
    max-width: 100%;
}

.ui-richtext table {
    display: block;
    overflow-x: auto;
    max-width: 100%;
}

@media (max-width: 991px) {
    .clinic-faq-layout,
    .partner-card,
    .certificate-detail-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .clinic-help-card {
        position: relative;
        top: auto;
    }

    .certificate-facts {
        position: relative;
        top: auto;
    }

    .related-certificate-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .partner-identity {
        border-inline-end: 0;
        border-block-end: 1px solid #e2ecf1;
    }
}

@media (max-width: 575px) {
    .clinic-faq-item summary {
        grid-template-columns: 34px minmax(0, 1fr) 20px;
        gap: 11px;
        min-height: 70px;
        padding: 14px;
        font-size: .94rem;
    }

    .clinic-faq-number {
        width: 34px;
        height: 34px;
        border-radius: 9px;
    }

    .clinic-faq-answer,
    html[dir="rtl"] .clinic-faq-answer {
        margin: 0 14px 18px;
        padding-top: 16px;
    }

    .clinic-help-card,
    .partner-content,
    .partner-identity {
        padding: 24px;
    }

    .media-filter {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 8px;
    }

    .media-filter button {
        flex-shrink: 0;
    }

    .error-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .error-actions .ui-button {
        width: 100%;
    }

    .certificate-main-image {
        min-height: 280px;
        padding: 16px;
    }

    .certificate-main-image img {
        height: 44vh;
        height: 44dvh;
    }

    .certificate-thumbnail-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .certificate-facts,
    .certificate-article {
        padding: 24px;
    }

    .related-certificate-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (prefers-reduced-motion: reduce) {
    .clinic-faq-page *,
    .clinic-media-page *,
    .clinic-partners-page *,
    .certificate-detail-page *,
    .error-page * {
        scroll-behavior: auto !important;
        transition: none !important;
    }
}
