/*
 * The public site's theme, modelled on jordan-valley.com/jsfm26: a thin top
 * bar, a white header with round contact badges, the menu on a red gradient
 * bar, pill buttons, large rounded cards and a wave into a dark red footer.
 * Plus Jakarta Sans for the site in English, EB Garamond for a congress's
 * own titles; in Arabic, Cairo for headings and Tajawal for text.
 *
 * Logical properties throughout, so every rule mirrors under dir="rtl";
 * every control at least --touch high.
 */

:root {
    --brand: #9b1321;
    --brand-bright: #b3202c;
    --brand-deep: #870d18;
    --brand-tint: #fbf1f2;
    --ink: #1b1b2f;
    --text: #333;
    --muted: #666;
    --line: #e4e4ec;
    --paper: #f6f6f9;
    --touch: 40px;
    --radius-card: 24px;
    --radius-pill: 999px;
    --shadow-soft: 0 4px 16px rgba(20, 20, 40, .08);
    --shadow-card: 0 10px 30px rgba(20, 20, 40, .08);
    --font-site: "Plus Jakarta Sans", Arial, Helvetica, sans-serif;
    --font-heading: var(--font-site);
    --font-serif: "EB Garamond", Georgia, "Times New Roman", serif;
    --site-header: 52px;

    /* Aliases used by site.css. */
    --site-brand: var(--brand);
    --site-touch: var(--touch);
}

html[lang="ar"] {
    --font-site: Tajawal, Arial, Helvetica, sans-serif;
    --font-heading: Cairo, Tajawal, Arial, sans-serif;
    --font-serif: Cairo, Tajawal, Arial, sans-serif;
}

/* ------------------------------------------------------------ base */

body {
    margin: 0;
    background: #fff;
    color: var(--text);
    font-family: var(--font-site);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--ink);
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.3;
}

a {
    color: var(--brand);
    text-decoration: none;
}

a:hover {
    color: var(--brand-deep);
}

img {
    max-width: 100%;
}

/* An image's width and height attributes reserve its box before it loads;
   its height still follows its width unless a rule sets one. */
:where(img[width][height]) {
    height: auto;
}

:focus-visible {
    outline: 3px solid #1976d2;
    outline-offset: 2px;
}

.page-wrapper {
    overflow-x: clip;
}

.auto-container {
    width: 100%;
    max-width: 1232px;
    margin-inline: auto;
    padding-inline: 16px;
}

.skip-link {
    position: absolute;
    inset-inline-start: 12px;
    top: -60px;
    z-index: 100000;
    padding: 10px 16px;
    border-radius: 6px;
    background: #000;
    color: #fff;
}

.skip-link:focus {
    top: 12px;
    color: #fff;
}

main:focus {
    outline: none;
}

/* Emails, phone numbers and URLs read left to right in any language. */
html[dir="rtl"] input[type="email"],
html[dir="rtl"] input[type="tel"],
html[dir="rtl"] input[type="url"],

html[dir="rtl"] .fa-angle-right,
html[dir="rtl"] .fa-angle-left,
html[dir="rtl"] .fa-arrow-right,
html[dir="rtl"] .fa-arrow-left,
html[dir="rtl"] .fa-chevron-right,
html[dir="rtl"] .fa-chevron-left {
    transform: scaleX(-1);
}

/* ------------------------------------------------------------ buttons */
/* Pill buttons: one filled, one white beside it. */

.theme-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 10px 26px;
    border: 2px solid transparent;
    border-radius: var(--radius-pill);
    font-family: var(--font-site);
    font-size: 15px;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}

.theme-btn:hover {
    transform: translateY(-1px);
}

.btn-style-one {
    background: linear-gradient(135deg, var(--brand-bright), var(--brand-deep));
    color: #fff;
    box-shadow: 0 6px 16px rgba(155, 19, 33, .25);
}

.btn-style-one:hover,
.btn-style-one:focus-visible {
    color: #fff;
    box-shadow: 0 8px 22px rgba(155, 19, 33, .32);
}

.btn-style-two {
    border-color: var(--line);
    background: #fff;
    color: var(--brand);
    box-shadow: var(--shadow-soft);
}

.btn-style-two:hover,
.btn-style-two:focus-visible {
    border-color: var(--brand);
    color: var(--brand);
}

.btn-title {
    color: inherit;
}

/* ------------------------------------------------------------ top bar */

.site-topbar {
    background: var(--paper);
    font-size: 14px;
}

.site-topbar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 40px;
}

.site-topbar__line {
    margin: 0;
    color: var(--text);
}

.site-topbar__line strong {
    color: var(--brand);
    font-weight: 600;
    text-transform: uppercase;
}

html[lang="ar"] .site-topbar__line strong {
    text-transform: none;
}

.site-social {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: var(--touch);
    height: var(--touch);
    border-radius: 50%;
    background: #fff;
    color: var(--brand-deep);
    font-size: 17px;
    transition: transform .15s ease;
}

.site-social a:hover {
    transform: translateY(-2px);
}

.site-social--dark a {
    width: 32px;
    height: 32px;
    background: var(--ink);
    color: #fff;
    font-size: 14px;
}

/* ------------------------------------------------------------ header */

.site-header {
    position: relative;
    z-index: 950;
    background: #fff;
}

.site-header__inner {
    display: flex;
    align-items: center;
    gap: 24px;
    min-height: 100px;
}

.site-header__logo img {
    display: block;
    width: auto;
    height: 58px;
}

.site-header__contact {
    display: flex;
    flex: 1;
    justify-content: center;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-header__contact li {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-inline: 26px;
}

.site-header__contact li + li {
    border-inline-start: 1px solid var(--line);
}

.site-header__contact small {
    display: block;
    color: var(--ink);
    font-size: 13px;
    font-weight: 600;
}

.site-header__contact a {
    color: var(--ink);
    font-size: 17px;
    font-weight: 600;
}

.site-badge {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand-bright), var(--brand-deep));
    color: #fff;
    font-size: 19px;
}

.site-badge--light {
    width: 34px;
    height: 34px;
    background: #fff;
    color: var(--brand-deep);
    font-size: 14px;
}

.site-header__actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.site-header__actions .btn-box,
.mobile-menu__extras .btn-box {
    margin: 0;
}

.site-header__toggler,
.mobile-menu .close-btn {
    display: none;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    margin-inline-start: auto;
    padding: 0;
    border: 0;
    border-radius: 12px;
    background: var(--brand-tint);
    color: var(--brand);
    font-size: 20px;
}

.language-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: var(--touch);
    padding: 6px 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius-pill);
    background: #fff;
    color: var(--ink);
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
}

.language-toggle:hover {
    border-color: var(--brand);
    color: var(--brand);
}

.account-dashboard {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand-bright), var(--brand-deep));
    color: #fff;
}

.account-dashboard:hover {
    color: #fff;
}

/* ------------------------------------------------------------ menu bar */

.site-nav {
    position: sticky;
    top: 0;
    z-index: 900;
    background: linear-gradient(90deg, var(--brand-bright) 0%, var(--brand) 55%, #5c0710 100%);
    box-shadow: 0 4px 14px rgba(0, 0, 0, .12);
}

.site-nav .navigation {
    display: flex;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-nav .navigation > li {
    position: relative;
    display: flex;
    align-items: center;
    border-inline-end: 1px solid rgba(255, 255, 255, .22);
}

.site-nav .navigation > li > a {
    display: flex;
    align-items: center;
    min-height: 52px;
    padding-inline: 22px;
    color: #fff;
    font-size: 15px;
    font-weight: 500;
}

.site-nav .navigation > li.dropdown > a {
    padding-inline-end: 4px;
}

.site-nav .navigation > li > a:hover,
.site-nav .navigation > li:focus-within > a {
    background: rgba(255, 255, 255, .1);
    color: #fff;
}

.navigation .dropdown-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: var(--touch);
    min-height: var(--touch);
    padding: 0;
    border: 0;
    background: none;
    color: inherit;
}

.site-nav .dropdown-btn {
    color: #fff;
}

.site-nav .sub-menu {
    position: absolute;
    top: 100%;
    inset-inline-start: 0;
    min-width: 250px;
    margin: 0;
    padding: 8px 0;
    list-style: none;
    border-radius: 0 0 14px 14px;
    background: #fff;
    box-shadow: var(--shadow-card);
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity .15s ease, transform .15s ease, visibility .15s;
}

.site-nav li.dropdown:hover > .sub-menu,
.site-nav li.dropdown:focus-within > .sub-menu,
.site-nav li.dropdown.open > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: none;
}

.sub-menu a {
    display: flex;
    align-items: center;
    min-height: var(--touch);
    padding: 8px 20px;
    color: var(--ink);
    font-size: 15px;
}

.sub-menu a:hover {
    background: var(--brand-tint);
    color: var(--brand);
}

/* ------------------------------------------------------------ phone menu */

.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 10000;
    visibility: hidden;
}

.mobile-menu-visible .mobile-menu {
    visibility: visible;
}

.mobile-menu__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10, 10, 25, .55);
    opacity: 0;
    transition: opacity .2s ease;
}

.mobile-menu-visible .mobile-menu__backdrop {
    opacity: 1;
}

.mobile-menu__panel {
    position: absolute;
    inset-block: 0;
    inset-inline-end: 0;
    width: min(340px, 88vw);
    overflow-y: auto;
    padding: 18px 18px 28px;
    background: #fff;
    transform: translateX(100%);
    transition: transform .25s ease;
}

html[dir="rtl"] .mobile-menu__panel {
    transform: translateX(-100%);
}

.mobile-menu-visible .mobile-menu__panel,
html[dir="rtl"] .mobile-menu-visible .mobile-menu__panel {
    transform: none;
}

.mobile-menu__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-block-end: 16px;
}

.mobile-menu .close-btn {
    display: inline-flex;
    margin: 0;
}

.mobile-menu .navigation {
    margin: 0;
    padding: 0;
    list-style: none;
}

.mobile-menu .navigation > li {
    position: relative;
    border-bottom: 1px solid var(--line);
}

.mobile-menu .navigation > li > a {
    display: flex;
    align-items: center;
    min-height: 48px;
    padding-inline-end: 48px;
    color: var(--ink);
    font-weight: 600;
}

.mobile-menu .dropdown-btn {
    position: absolute;
    top: 4px;
    inset-inline-end: 0;
    color: var(--brand);
}

.mobile-menu .sub-menu {
    display: none;
    margin: 0 0 10px;
    padding: 0;
    list-style: none;
}

.mobile-menu li.open > .sub-menu {
    display: block;
}

.mobile-menu .sub-menu a {
    padding-inline: 14px;
    border-radius: 8px;
}

.mobile-menu__extras {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-block-start: 22px;
}

@media (max-width: 1199.98px) {
    .site-header__contact li:first-child {
        display: none;
    }

    .site-header__contact li + li {
        border: 0;
    }
}

@media (max-width: 991.98px) {
    .site-topbar__line {
        display: none;
    }

    .site-topbar__inner {
        justify-content: center;
    }

    .site-header__inner {
        min-height: 76px;
    }

    .site-header__logo img {
        height: 46px;
    }

    .site-header__contact,
    .site-header__actions,
    .site-nav {
        display: none;
    }

    .site-header__toggler {
        display: inline-flex;
    }

    :root {
        --site-header: 0px;
    }
}

/* ------------------------------------------------------------ page banner */
/* An inner page's title, on the brand's gradient. */

.page-title {
    position: relative;
    padding: 56px 0 50px;
    background: linear-gradient(120deg, var(--brand-deep), var(--brand-bright));
    color: #fff;
    text-align: center;
}

/* A page with its own picture: the picture under a dark wash, so the title reads. */
.page-title--image {
    padding: clamp(64px, 10vw, 120px) 0 clamp(56px, 8vw, 96px);
    background: linear-gradient(120deg, rgba(20, 20, 40, .78), rgba(20, 20, 40, .42)), var(--page-title-image) center / cover no-repeat, var(--brand-deep);
}

.page-title h1 {
    margin: 0 0 10px;
    color: #fff;
    font-size: clamp(26px, 4vw, 40px);
    overflow-wrap: anywhere;
}

.page-title .bread-crumb {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
    color: rgba(255, 255, 255, .85);
    font-size: 15px;
}

.page-title .bread-crumb li {
    display: inline-flex;
    align-items: center;
}

.page-title .bread-crumb li + li::before {
    content: "/";
    margin-inline-end: 6px;
    opacity: .7;
}

.page-title .bread-crumb a {
    display: inline-flex;
    align-items: center;
    min-height: var(--touch);
    color: #fff;
}

/* The banner's shapes: a dot grid at the start, a ring at the end, both clipped to it. */
.page-title {
    isolation: isolate;
    overflow: clip;
}

.page-title > .auto-container {
    position: relative;
    z-index: 1;
}

.page-title::before,
.page-title::after {
    content: "";
    position: absolute;
    z-index: 0;
    pointer-events: none;
}

.page-title::before {
    inset-block-end: -10px;
    inset-inline-start: 4%;
    width: 220px;
    height: 140px;
    background-image: radial-gradient(rgba(255, 255, 255, .3) 2px, transparent 2.6px);
    background-size: 18px 18px;
    -webkit-mask-image: linear-gradient(to top, #000 20%, transparent);
    mask-image: linear-gradient(to top, #000 20%, transparent);
}

.page-title::after {
    inset-block-start: -110px;
    inset-inline-end: -80px;
    width: 300px;
    height: 300px;
    border: 2px solid rgba(255, 255, 255, .18);
    border-radius: 50%;
    box-shadow: 0 0 0 40px rgba(255, 255, 255, .04), 0 0 0 80px rgba(255, 255, 255, .03);
}

.page-title .bread-crumb {
    width: fit-content;
    max-width: 100%;
    margin-inline: auto;
    padding: 0 18px;
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, .12);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}

@media (max-width: 767px) {
    .page-title::before {
        width: 140px;
        height: 100px;
    }

    .page-title::after {
        width: 200px;
        height: 200px;
        inset-block-start: -90px;
        inset-inline-end: -90px;
    }
}

/* ------------------------------------------------------------ footer */

.site-footer {
    margin-block-start: 0;
    background: var(--paper);
    color: #fff;
}

.site-footer__wave {
    display: block;
    width: 100%;
    height: 90px;
    margin-block-end: -1px;
    fill: var(--brand-deep);
}

.site-footer__wave-line {
    fill: none;
    stroke: var(--brand-deep);
    stroke-width: 2;
    opacity: .55;
}

.site-footer__body {
    padding: 36px 0 56px;
    background: var(--brand-deep);
}

.site-footer__grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1.4fr;
    gap: 40px;
}

.site-footer__logo img {
    width: 170px;
    height: auto;
    margin-block-end: 18px;
    padding: 8px 12px;
    border-radius: 10px;
    background: #fff;
}

.site-footer__about p {
    margin-block-end: 20px;
    color: rgba(255, 255, 255, .88);
    font-size: 15px;
    line-height: 1.8;
}

.site-footer__title {
    margin-block-end: 18px;
    color: #fff;
    font-size: 21px;
    font-weight: 600;
}

.site-footer__links,
.site-footer__contact {
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-footer__links a {
    display: inline-flex;
    align-items: center;
    min-height: var(--touch);
    color: rgba(255, 255, 255, .88);
    font-size: 15px;
}

.site-footer__links a:hover,
.site-footer__contact a:hover {
    color: #fff;
    text-decoration: underline;
}

.site-footer__contact li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-block-end: 14px;
    color: rgba(255, 255, 255, .88);
    font-size: 15px;
}

.site-footer__contact a {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    color: rgba(255, 255, 255, .88);
}

.site-footer__bottom {
    background: #fff;
    color: var(--ink);
    font-size: 14px;
}

.site-footer__bottom-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 24px;
    min-height: 56px;
}

.site-footer__bottom p {
    margin: 0;
}

.site-footer__bottom a {
    display: inline-flex;
    align-items: center;
    min-height: var(--touch);
    color: var(--brand);
    font-weight: 600;
}

@media (max-width: 991.98px) {
    .site-footer__grid {
        grid-template-columns: 1fr 1fr;
    }

    .site-footer__about {
        grid-column: 1 / -1;
    }
}

@media (max-width: 575.98px) {
    .site-footer__wave {
        height: 56px;
    }

    .site-footer__grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .site-footer__bottom-inner {
        justify-content: center;
        padding-block: 10px;
        text-align: center;
    }
}

/* ------------------------------------------------------------ page numbers */
/* Laravel's Bootstrap pager, drawn in the brand: round numbers, the current one filled. */

.pagination {
    --bs-pagination-color: var(--ink);
    --bs-pagination-bg: #fff;
    --bs-pagination-border-color: var(--line);
    --bs-pagination-hover-color: var(--brand);
    --bs-pagination-hover-bg: var(--brand-tint);
    --bs-pagination-hover-border-color: var(--brand-tint);
    --bs-pagination-focus-color: var(--brand);
    --bs-pagination-focus-bg: var(--brand-tint);
    --bs-pagination-focus-box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 25%, transparent);
    --bs-pagination-active-color: #fff;
    --bs-pagination-active-bg: var(--brand);
    --bs-pagination-active-border-color: var(--brand);
    --bs-pagination-disabled-color: var(--muted);
    --bs-pagination-disabled-bg: var(--paper);
    --bs-pagination-disabled-border-color: var(--line);
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
}

.pagination .page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: var(--touch);
    height: var(--touch);
    padding: 0 12px;
    border-radius: var(--radius-pill) !important;
    font-weight: 600;
}

.pagination .page-item.active .page-link {
    box-shadow: 0 8px 18px color-mix(in srgb, var(--brand) 30%, transparent);
}

nav[role="navigation"] .small.text-muted {
    color: var(--muted) !important;
}
