:root {
    color-scheme: dark;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: radial-gradient(circle at top, rgba(0, 180, 255, .18), transparent 30%), var(--color-primary);
    color: #eef6ff;
    font-family: var(--font-en), Arial, sans-serif;
}

main {
    flex: 1 0 auto;
}

html[dir="rtl"] body {
    font-family: var(--font-ar), Arial, sans-serif;
}

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

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

.container {
    width: min(1180px, calc(100% - 32px));
    margin-inline: auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(10, 15, 46, .82);
    border-bottom: 1px solid rgba(255, 255, 255, .09);
    backdrop-filter: blur(14px);
}

.nav-wrap {
    min-height: 74px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    position: relative;
}

.nav-primary,
.nav-actions {
    display: flex;
    align-items: center;
    gap: 22px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 900;
    letter-spacing: 0;
}

.brand-logo {
    width: 42px;
    height: 42px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--color-secondary), var(--color-accent));
    object-fit: contain;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 18px;
    color: #c9d7ee;
    font-weight: 800;
}

.nav-links a:hover {
    color: white;
}

.language-button,
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 8px;
    min-height: 44px;
    padding: 10px 16px;
    font-weight: 900;
    background: var(--color-secondary);
    color: #06101e;
}

.button.secondary,
.language-button {
    background: rgba(255, 255, 255, .07);
    color: #eef6ff;
}

.hamburger-button {
    display: none;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 8px;
    background: rgba(255, 255, 255, .07);
    color: #eef6ff;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
}

.hamburger-button span {
    width: 20px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
}

.section {
    padding: 84px 0;
}

.page-shell {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding-top: 28px;
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 28px;
    align-items: start;
}

html[dir="ltr"] .page-shell {
    grid-template-columns: 220px minmax(0, 1fr);
}

html[dir="ltr"] .page-sidebar-section {
    grid-column: 1;
}

html[dir="ltr"] .page-content {
    grid-column: 2;
    grid-row: 1;
}

html[dir="rtl"] .page-sidebar-section {
    grid-column: 1;
}

html[dir="rtl"] .page-content {
    grid-column: 2;
    grid-row: 1;
}

.page-sidebar-section {
    position: sticky;
    top: 92px;
    z-index: 2;
    width: 100%;
    max-height: calc(100vh - 116px);
    overflow: auto;
    padding-block: 26px;
}

.page-sidebar {
    width: 100%;
}

.page-content > .section {
    padding-block: 26px;
}

.page-content > .section:first-child {
    padding-top: 0;
}

.page-content .container {
    width: 100%;
}

.sidebar-breadcrumbs {
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 8px;
    background: rgba(16, 25, 54, .82);
    backdrop-filter: blur(14px);
}

.sidebar-breadcrumbs h2 {
    margin: 0 0 12px;
    font-size: 15px;
}

.breadcrumb-line {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 0;
    color: #b9c8df;
    font-size: 14px;
    line-height: 1.8;
}

.breadcrumb-separator {
    color: rgba(255, 255, 255, .42);
}

.sidebar-breadcrumbs a {
    color: #dceaff;
}

.sidebar-breadcrumbs a:hover {
    color: var(--color-secondary);
}

.sidebar-breadcrumbs span {
    color: #fff;
    font-weight: 800;
}

@media (max-width: 1279px) {
    .page-shell {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    html[dir="ltr"] .page-sidebar-section,
    html[dir="rtl"] .page-sidebar-section,
    html[dir="ltr"] .page-content,
    html[dir="rtl"] .page-content {
        grid-column: 1;
        grid-row: auto;
    }

    .page-sidebar-section {
        position: static;
        max-height: none;
        padding-block: 0;
    }
}

.hero {
    min-height: calc(100vh - 74px);
    display: grid;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.stars,
.stars::before,
.stars::after {
    position: absolute;
    inset: 0;
    content: "";
    background-image:
        radial-gradient(#fff 1px, transparent 1px),
        radial-gradient(rgba(0, 180, 255, .8) 1px, transparent 1px);
    background-size: 90px 90px, 140px 140px;
    animation: star-drift 36s linear infinite;
    opacity: .42;
}

.stars::before {
    animation-duration: 52s;
    opacity: .28;
    transform: scale(1.3);
}

.stars::after {
    animation-duration: 70s;
    opacity: .18;
    transform: scale(1.8);
}

@keyframes star-drift {
    from { transform: translateY(0); }
    to { transform: translateY(120px); }
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 760px;
}

.hero h1,
.page-hero h1 {
    margin: 0 0 18px;
    font-size: clamp(40px, 8vw, 82px);
    line-height: 1.05;
}

.hero p,
.page-hero p,
.lead {
    color: #b9c8df;
    font-size: clamp(18px, 2.4vw, 23px);
    line-height: 1.8;
}

.grid {
    display: grid;
    gap: 22px;
}

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

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

.card,
.panel {
    background: rgba(255, 255, 255, .055);
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 8px;
    padding: 22px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, .18);
}

.card h3,
.panel h2,
.section-title {
    margin: 0 0 12px;
}

.muted {
    color: #9fb0cc;
}

.page-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.page-head h1,
.page-head h2 {
    margin: 0;
}

.article-card {
    display: grid;
    gap: 14px;
}

.article-card-description {
    white-space: normal;
    overflow: visible;
    display: block;
}

.article-thumb {
    aspect-ratio: 16 / 9;
    width: 100%;
    height: auto;
    display: block;
    border: 0;
    border-radius: 0;
    object-fit: cover;
    background: transparent;
    box-shadow: none;
}

div.article-thumb {
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(0, 180, 255, .25), rgba(34, 197, 94, .15));
}

.article-featured-image {
    margin-bottom: 26px;
}

.table-of-contents {
    margin-bottom: 22px;
}

.table-of-contents h2 {
    margin-top: 0;
}

.table-of-contents ol {
    display: grid;
    gap: 8px;
    margin: 0;
    padding-inline-start: 22px;
}

.table-of-contents a {
    color: #dceaff;
}

.table-of-contents a:hover {
    color: var(--color-secondary);
}

.table-of-contents .toc-level-3 {
    margin-inline-start: 18px;
}

.table-of-contents .toc-level-4 {
    margin-inline-start: 36px;
}

.toc-toggle {
    margin-top: 16px;
}

.article-body img,
.article-inline-image {
    aspect-ratio: 16 / 9;
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    margin: 18px 0;
}

.article-body .article-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: max-content;
    min-width: 10%;
    max-width: min(100%, 50ch);
    min-height: 34px;
    padding: 7px 10px;
    box-sizing: border-box;
    border-radius: 6px;
    background: var(--color-secondary);
    color: #06101e;
    font-weight: 800;
    line-height: 1.25;
    text-align: center;
    text-decoration: none;
    vertical-align: middle;
    overflow-wrap: normal;
    word-break: normal;
    box-shadow: 0 10px 22px rgba(0, 180, 255, .18);
}

.article-body .article-button:hover {
    color: #06101e;
    filter: brightness(1.08);
}

.article-body .article-button.text-align-center {
    display: flex;
    margin-inline: auto;
}

.article-body .article-button.text-align-left {
    display: flex;
    margin-inline-start: 0;
    margin-inline-end: auto;
}

.article-body .article-button.text-align-right {
    display: flex;
    margin-inline-start: auto;
    margin-inline-end: 0;
}

.pills {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin: 22px 0;
}

.pill {
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 999px;
    padding: 9px 14px;
    color: #c9d7ee;
    background: rgba(255, 255, 255, .06);
}

.pill.active {
    background: var(--color-secondary);
    color: #06101e;
}

.pill:hover {
    border-color: rgba(0, 180, 255, .5);
    color: #fff;
}

.article-tags {
    margin: 20px 0 0;
}

.accordion {
    display: grid;
    gap: 12px;
}

details {
    background: rgba(255, 255, 255, .055);
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 8px;
    padding: 16px 18px;
}

summary {
    cursor: pointer;
    font-weight: 900;
}

.cta-band {
    background: linear-gradient(135deg, rgba(0, 180, 255, .22), rgba(34, 197, 94, .18));
    border: 1px solid rgba(255, 255, 255, .13);
    border-radius: 8px;
    padding: 34px;
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: center;
}

.site-footer {
    flex-shrink: 0;
    border-top: 1px solid rgba(255, 255, 255, .09);
    padding: 38px 0;
    color: #b9c8df;
    background: rgba(4, 7, 24, .76);
}

.footer-grid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-grid > div {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.whatsapp-fab {
    position: fixed;
    inset-inline-end: 22px;
    bottom: 22px;
    z-index: 30;
    width: 58px;
    height: 58px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: #22c55e;
    box-shadow: 0 18px 44px rgba(34, 197, 94, .28);
}

.form-grid {
    display: grid;
    gap: 14px;
}

.field {
    display: grid;
    gap: 7px;
}

input,
textarea,
select {
    width: 100%;
    border: 1px solid rgba(255, 255, 255, .13);
    border-radius: 8px;
    min-height: 46px;
    padding: 11px 13px;
    color: #eef6ff;
    background: rgba(4, 7, 24, .8);
}

textarea {
    resize: vertical;
}

.article-body {
    color: #e6edf9;
    line-height: 1.9;
    font-size: 18px;
}

.article-body table {
    width: 100%;
    max-width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
    margin: 18px 0;
    overflow: hidden;
    border-radius: 8px;
    box-sizing: border-box;
}

.article-body table.article-table thead tr,
.article-body table.article-table tbody tr:first-child {
    background: var(--color-primary);
    color: #fff;
}

.article-body table.article-table tbody tr:nth-child(odd):not(:first-child) {
    background: color-mix(in srgb, var(--color-secondary) 14%, rgba(255, 255, 255, .06));
}

.article-body table.article-table tbody tr:nth-child(even) {
    background: color-mix(in srgb, var(--color-accent) 13%, rgba(255, 255, 255, .05));
}

.article-body td,
.article-body th {
    border: 1px solid rgba(255, 255, 255, .16);
    padding: 10px;
    min-width: 0;
    overflow-wrap: anywhere;
    word-break: break-word;
    vertical-align: top;
}

.article-body .text-dir-rtl {
    direction: rtl;
    text-align: right;
}

.article-body .text-dir-ltr {
    direction: ltr;
    text-align: left;
}

.article-body .text-align-left {
    text-align: left;
}

.article-body .text-align-center {
    text-align: center;
}

.article-body .text-align-right {
    text-align: right;
}

.article-body .indent-1 { margin-inline-start: 2rem; }
.article-body .indent-2 { margin-inline-start: 4rem; }
.article-body .indent-3 { margin-inline-start: 6rem; }
.article-body .indent-4 { margin-inline-start: 8rem; }
.article-body .indent-5 { margin-inline-start: 10rem; }
.article-body .indent-6 { margin-inline-start: 12rem; }
.article-body .indent-7 { margin-inline-start: 14rem; }
.article-body .indent-8 { margin-inline-start: 16rem; }

.article-body .font-size-1 { font-size: .78em; }
.article-body .font-size-2 { font-size: .9em; }
.article-body .font-size-3 { font-size: 1em; }
.article-body .font-size-4 { font-size: 1.12em; }
.article-body .font-size-5 { font-size: 1.28em; }
.article-body .font-size-6 { font-size: 1.46em; }
.article-body .font-size-7 { font-size: 1.68em; }
.article-body .font-size-8 { font-size: 1.92em; }

.stars-text {
    color: #fbbf24;
}

.rating-picker {
    display: inline-flex;
    flex-direction: row;
    gap: 2px;
}

.rating-star {
    width: 34px;
    height: 34px;
    padding: 0;
    border: 0;
    background: transparent;
    color: rgba(251, 191, 36, .34);
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
}

.rating-star.active {
    color: #fbbf24;
}

.article-meta {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
}

.article-meta span + span::before {
    color: rgba(255, 255, 255, .36);
    content: "·";
    margin-inline-end: 12px;
}

.author-link {
    color: var(--color-secondary);
    font-weight: 700;
    text-decoration: none;
}

.author-link:hover {
    text-decoration: underline;
}

.author-card {
    align-items: center;
    display: flex;
    gap: 16px;
    margin-top: 22px;
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 8px;
    background: rgba(255, 255, 255, .05);
}

.author-profile-card {
    position: relative;
    align-items: flex-start;
    gap: 18px;
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(0, 180, 255, .18), rgba(34, 197, 94, .1)),
        rgba(255, 255, 255, .05);
}

.author-profile-card::before {
    content: "";
    position: absolute;
    inset-block-start: 0;
    inset-inline: 0;
    height: 64px;
    background: linear-gradient(90deg, rgba(0, 180, 255, .26), rgba(34, 197, 94, .2));
    pointer-events: none;
}

.author-card img {
    width: 80px;
    height: 80px;
    flex: 0 0 auto;
    border-radius: 50%;
    object-fit: cover;
}

.author-profile-media,
.author-profile-content {
    position: relative;
    z-index: 1;
}

.author-profile-media {
    padding-top: 22px;
}

.author-profile-image {
    border: 3px solid rgba(255, 255, 255, .72);
    box-shadow: 0 12px 34px rgba(0, 0, 0, .25);
}

.author-profile-content {
    min-width: 0;
    padding-top: 18px;
}

.author-location {
    margin-bottom: 8px;
}

.author-description {
    max-width: 720px;
    color: #dceaff;
    line-height: 1.75;
}

.author-actions {
    margin-top: 8px;
}

.author-avatar {
    width: 80px;
    height: 80px;
    flex: 0 0 auto;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--color-secondary), var(--color-accent));
    color: #06101e;
    font-size: 34px;
    font-weight: 900;
    text-transform: uppercase;
}

.author-card h2,
.author-card h1,
.author-card p {
    margin: 0 0 6px;
}

.author-hero {
    margin-top: 0;
}

.author-hero img {
    width: 96px;
    height: 96px;
}

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

@media (max-width: 767px) {
    .nav-wrap {
        min-height: 68px;
    }

    .nav-primary {
        gap: 0;
    }

    .site-header .nav-links {
        display: none;
        position: fixed;
        inset-block-start: 68px;
        inset-inline: 0;
        z-index: 40;
        padding: 10px 16px 16px;
        background: rgba(10, 15, 46, .97);
        border-block-start: 1px solid rgba(255, 255, 255, .12);
        border-block-end: 1px solid rgba(255, 255, 255, .12);
        border-radius: 0;
        box-shadow: 0 24px 80px rgba(0, 0, 0, .35);
    }

    body.nav-open .site-header .nav-links {
        display: flex;
        align-items: stretch;
        flex-direction: column;
        gap: 4px;
    }

    .site-header .nav-links a {
        min-height: 48px;
        display: flex;
        align-items: center;
        padding: 12px 14px;
        border-radius: 8px;
    }

    .site-header .nav-links a:hover {
        background: rgba(255, 255, 255, .08);
    }

    .hamburger-button {
        display: inline-flex;
    }
}

@media (max-width: 860px) {
    .page-head {
        align-items: stretch;
        flex-direction: column;
    }

    .page-head .button {
        width: fit-content;
    }

    .site-footer .nav-links,
    .cta-band,
    .footer-grid {
        align-items: stretch;
        flex-direction: column;
    }

    .cards-3,
    .cards-2 {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 58px 0;
    }
}
