@import url('../vendor/bootstrap/css/bootstrap.min.css');
@import url('./fonts.css');
@import url('./header.css');
@import url('./pages/home.css');
@import url('./pages/about.css');
@import url('./pages/seminars.css');
@import url('./pages/library.css');
@import url('./pages/consultations.css');
@import url('./pages/join-training.css');
@import url('./pages/team.css');
@import url('./pages/contact.css');

:root {
    --navy: #081a3b;
    --navy2: #0d2856;
    --blue: #145da0;
    --royal: #1e73be;
    --sky: #eaf4ff;
    --gold: #c7a54b;
    --gold2: #e2c46a;
    --ink: #18243a;
    --muted: #68758a;
    --white: #fff;
    --soft: #f6f8fb;
    --border: #dfe6ef;
    --shadow: 0 14px 40px rgba(8, 26, 59, .09);
    --r: 18px
}

* {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth
}

body {
    margin: 0;
    font-family: Cairo, Arial, sans-serif;
    color: var(--ink);
    background: #fff;
    line-height: 1.8
}

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

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

h1,
h2,
h3,
h4,
h5,
h6,
p {
    margin-top: 0
}

.btn-brand {
    background: linear-gradient(135deg, var(--gold2), var(--gold));
    border: 1px solid transparent;
    color: var(--navy);
    font-weight: 800;
    transition: transform .2s ease, box-shadow .2s ease, filter .2s ease
}

.btn-brand:hover,
.btn-brand:focus {
    color: var(--navy);
    filter: brightness(1.05);
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(199, 165, 75, .24)
}

.btn-ghost {
    border: 1px solid rgba(255, 255, 255, .8);
    color: #fff;
    background: rgba(8, 26, 59, .18);
    font-weight: 700
}

.btn-ghost:hover {
    background: #fff;
    color: var(--navy)
}

.section {
    padding: 80px 0
}

.section-soft {
    background: var(--soft)
}

.section-kicker,
.eyebrow {
    color: var(--gold2);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .5px
}

.section-title {
    color: var(--navy);
    font-size: clamp(26px, 3vw, 40px);
    font-weight: 800;
    margin: 8px 0 14px
}

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

.section-head {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 30px;
    margin-bottom: 34px
}

.service-card,
.content-card,
.team-card,
.consult-card,
.join-card,
.library-card {
    height: 100%;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--r);
    padding: 26px;
    box-shadow: var(--shadow);
    transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease
}

.service-card:hover,
.content-card:hover,
.library-card:hover {
    transform: translateY(-5px);
    border-color: rgba(30, 115, 190, .35);
    box-shadow: 0 20px 48px rgba(8, 26, 59, .13)
}

.service-card h3,
.content-card h3,
.library-card h3 {
    color: var(--navy);
    font-size: 19px;
    font-weight: 800
}

.service-card p,
.content-card p,
.library-card p {
    color: var(--muted);
    font-size: 14px
}

.icon-box,
.service-card>i {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: var(--sky);
    color: var(--royal);
    font-size: 23px;
    margin-bottom: 18px
}

.page-hero {
    position: relative;
    overflow: hidden;
    padding: 22px 0;
    min-height: 72px;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--navy), #0c2451 60%, #123e73);
    color: #fff
}

.page-hero:after {
    content: '⚖';
    position: absolute;
    left: 4%;
    bottom: -58px;
    font-size: 190px;
    color: rgba(255, 255, 255, .025)
}

.page-hero .container-xl {
    position: relative;
    z-index: 1
}

.breadcrumb-lite {
    display: flex;
    gap: 8px;
    align-items: center;
    font-size: 13px;
    font-weight: 700;
    color: rgba(255, 255, 255, .66)
}

.breadcrumb-lite a {
    color: var(--gold2)
}

.meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin: 12px 0
}

.tag {
    font-size: 11px;
    padding: 4px 9px;
    border-radius: 999px;
    background: var(--sky);
    color: var(--blue);
    font-weight: 700
}

.form-control,
.form-select {
    border-radius: 12px;
    padding: 12px 14px;
    border-color: var(--border)
}

.form-control:focus,
.form-select:focus {
    border-color: var(--royal);
    box-shadow: 0 0 0 .2rem rgba(30, 115, 190, .12)
}

.footer {
    background: #06152f;
    color: #fff;
    padding: 60px 0 0
}

.footer p {
    color: rgba(255, 255, 255, .6);
    font-size: 13px
}

.footer h4 {
    font-size: 14px;
    color: var(--gold2);
    margin-bottom: 16px
}

.footer-links {
    display: grid;
    gap: 8px
}

.footer-links a {
    color: rgba(255, 255, 255, .68);
    font-size: 13px
}

.footer-links a:hover {
    color: var(--gold2)
}

.socials {
    display: flex;
    gap: 9px
}

.socials a {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, .15);
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: #fff;
    font-family: Exo, Arial, sans-serif
}

.socials a:hover {
    background: var(--royal)
}

.footer-bottom {
    margin-top: 45px;
    padding: 18px 0;
    border-top: 1px solid rgba(255, 255, 255, .1);
    display: flex;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    color: rgba(255, 255, 255, .55);
    font-size: 11px
}

.footer-bottom a {
    color: var(--gold2)
}

.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .55s ease, transform .55s ease
}

.reveal.is-visible {
    opacity: 1;
    transform: none
}

@media(max-width:767px) {
    .section {
        padding: 58px 0
    }

    .section-head {
        display: block
    }

    .page-hero {
        padding: 18px 0;
        min-height: 62px
    }

    .footer-bottom {
        justify-content: center;
        text-align: center
    }

    .reveal {
        transform: none
    }
}

@media(prefers-reduced-motion:reduce) {
    html {
        scroll-behavior: auto
    }

    .reveal {
        opacity: 1;
        transform: none;
        transition: none !important
    }
}

/* 2026 content/UI refinement */
.section-kicker,
.eyebrow {
    display: none !important
}

.socials {
    gap: 10px;
    align-items: center
}

.socials a {
    width: 46px;
    height: 46px;
    transition: transform .2s ease, background .2s ease, border-color .2s ease
}

.socials a:hover {
    transform: translateY(-3px);
    background: rgba(226, 196, 106, .12);
    border-color: var(--gold2)
}

.socials svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
    display: block
}

.form-select {
    appearance: none;
    -webkit-appearance: none;
    background-color: #fff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 20 20'%3E%3Cpath fill='%2318243a' d='M5.2 7.4 10 12.2l4.8-4.8 1.4 1.4-6.2 6.2-6.2-6.2z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 16px center;
    background-size: 14px;
    padding-left: 46px !important
}

.text-link {
    color: var(--royal);
    font-weight: 800
}

.feature-story {
    height: 100%;
    padding: 34px;
    border: 1px solid var(--border);
    border-radius: 24px;
    background: #fff;
    box-shadow: var(--shadow)
}

.feature-story h3 {
    color: var(--navy);
    font-weight: 800;
    font-size: 26px
}

.feature-story--dark {
    background: linear-gradient(145deg, var(--navy), var(--navy2));
    color: #fff
}

.feature-story--dark h3 {
    color: #fff
}

.feature-story--dark p {
    color: rgba(255, 255, 255, .75)
}

.about-points {
    display: grid;
    gap: 12px;
    margin-top: 26px
}

.about-points>div {
    display: grid;
    gap: 3px;
    padding: 16px 18px;
    border: 1px solid var(--border);
    border-radius: 14px
}

.about-points strong {
    color: var(--navy)
}

.about-points span {
    color: var(--muted);
    font-size: 14px
}

.seminar-feature .seminar-thumb {
    min-height: 260px
}

.play-mark {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, .13);
    border: 1px solid rgba(255, 255, 255, .4);
    font-size: 30px;
    padding-right: 4px
}

.seminar-time {
    padding: 12px 15px;
    border-radius: 12px;
    background: var(--soft);
    color: var(--ink) !important
}

.doc-mark {
    font: 700 42px/1 Exo, Arial;
    margin-bottom: auto
}

.library-note {
    padding: 16px 20px;
    border: 1px dashed rgba(30, 115, 190, .35);
    border-radius: 14px;
    background: #fff;
    color: var(--muted)
}

.mini-icon {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, .08);
    color: var(--gold2)
}

.mini-icon svg {
    width: 19px;
    height: 19px;
    fill: currentColor
}

.contact-line a {
    color: #fff
}

.contact-map-link {
    display: inline-block;
    margin-top: 6px;
    color: var(--gold2) !important;
    font-weight: 700
}

.team-profile {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 28px;
    align-items: start;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 34px;
    box-shadow: var(--shadow)
}

.team-profile .team-avatar {
    width: 110px;
    height: 110px
}

.team-profile h2 {
    color: var(--navy);
    font-weight: 800
}

.team-role {
    color: var(--royal);
    font-weight: 700
}

.profile-list {
    margin: 0;
    padding-right: 20px;
    color: var(--muted)
}

@media(max-width:767px) {
    .team-profile {
        grid-template-columns: 1fr;
        text-align: center
    }

    .team-profile .team-avatar {
        margin: auto
    }

    .profile-list {
        text-align: right
    }

    .socials a {
        width: 44px;
        height: 44px
    }
}


/* ===== Layout & icon correction ===== */
.content-card {
    height: auto
}

.service-card {
    height: 100%
}

.portal-icon {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    background: linear-gradient(145deg, #edf6ff, #e1efff);
    color: var(--royal);
    margin-bottom: 20px;
    transition: transform .22s ease, background .22s ease, color .22s ease
}

.portal-icon svg {
    width: 28px;
    height: 28px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round
}

.service-card:hover .portal-icon {
    transform: translateY(-3px) scale(1.04);
    background: var(--navy);
    color: var(--gold2)
}

.seminar-thumb--fallback {
    position: relative;
    background: url('../images/i1.jpg') center/cover no-repeat !important;
    isolation: isolate
}

.seminar-thumb--fallback::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(8, 26, 59, .62), rgba(20, 93, 160, .28));
    z-index: -1
}

.seminar-feature {
    height: auto !important
}

.seminars-side {
    display: grid;
    gap: 24px;
    align-content: start
}

.seminars-side .content-card {
    margin: 0 !important;
    height: auto !important
}

@media(max-width:991px) {
    .seminars-side {
        margin-top: 0
    }
}

/* ===== Mobile responsive corrections (mobile only) ===== */
@media (max-width: 767.98px) {

    html,
    body {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }

    /* Keep Bootstrap containers inside the viewport without changing desktop widths */
    .container,
    .container-sm,
    .container-md,
    .container-lg,
    .container-xl,
    .container-xxl {
        width: 100%;
        max-width: 100%;
        padding-right: 16px;
        padding-left: 16px;
    }

    main,
    .site-header,
    .page-hero,
    .section,
    .footer {
        width: 100%;
        max-width: 100%;
    }

    .section {
        padding: 44px 0;
    }

    .section-title {
        font-size: clamp(25px, 7.6vw, 32px);
        line-height: 1.45;
        overflow-wrap: anywhere;
    }

    .section-copy,
    .section p,
    .content-card,
    .join-card,
    .team-profile,
    .contact-box {
        overflow-wrap: anywhere;
        min-width: 0;
    }

    .content-card,
    .join-card,
    .team-profile {
        padding: 20px;
        border-radius: 16px;
    }

    /* Prevent nested Bootstrap form rows/cards from producing horizontal scroll */
    .join-card>.row,
    .join-card form.row {
        margin-right: 0;
        margin-left: 0;
    }

    .join-card form.row>* {
        padding-right: 0;
        padding-left: 0;
    }

    .join-card form.row {
        row-gap: 14px;
    }

    .form-control,
    .form-select,
    textarea {
        width: 100%;
        max-width: 100%;
    }

    .btn {
        white-space: normal;
    }
}
/* =========================================
   Dark Elegant Scrollbar
========================================= */

/* Firefox */
html {
    scrollbar-width: thin;
    scrollbar-color: #71839a #081a3b;
}


/* Chrome / Edge / Safari */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}


/* الخلفية الغامقة */
::-webkit-scrollbar-track {
    background: #081a3b;
}


/* الجزء المتحرك */
::-webkit-scrollbar-thumb {
    background: #71839a;
    border-radius: 20px;
    border: 2px solid #081a3b;
}


/* عند مرور الماوس */
::-webkit-scrollbar-thumb:hover {
    background: #9aa8b9;
}


/* أثناء السحب */
::-webkit-scrollbar-thumb:active {
    background: #d6b652;
}


/* إخفاء الأسهم */
::-webkit-scrollbar-button {
    display: none;
    width: 0;
    height: 0;
}


/* الزاوية */
::-webkit-scrollbar-corner {
    background: #081a3b;
}