:root {
    --fg-navy: #0b1f3a;
    --fg-navy-deep: #071526;
    --fg-royal: #163a6b;
    --fg-gold: #c4a35a;
    --fg-gold-soft: #e4d2a3;
    --fg-cream: #f6f3ec;
    --fg-paper: #ffffff;
    --fg-muted: #5d6b7c;
    --fg-line: rgba(11, 31, 58, 0.1);
    --fg-text: #142033;
    --fg-white: #ffffff;
    --fg-shadow: 0 18px 50px rgba(11, 31, 58, 0.08);
    --fg-radius: 18px;
    --fg-header: 92px;
    --fg-font: "Inter", "Cairo", sans-serif;
    --fg-serif: "Cormorant Garamond", "Cairo", serif;
}

html {
    scroll-behavior: smooth;
}

body.fg-home,
body.fg-inner {
    font-family: var(--fg-font);
    color: var(--fg-text);
    background: var(--fg-cream);
}

body.fg-home {
    padding-top: 0;
}

body.fg-inner {
    padding-top: 118px;
}

.fg-header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 1050;
    transition: background 0.25s ease, box-shadow 0.25s ease, backdrop-filter 0.25s ease;
}

.fg-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 8px 28px;
    background: var(--fg-navy-deep);
    color: rgba(255, 255, 255, 0.82);
    font-size: 13px;
}

.fg-topbar a {
    color: inherit;
}

.fg-topbar-social {
    display: flex;
    align-items: center;
    gap: 10px;
}

.fg-topbar-social a:hover {
    color: var(--fg-gold);
}

.fg-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 22px;
    background: transparent;
}

body.fg-home .fg-header {
    background: transparent;
}

body.fg-home .fg-header.is-scrolled,
body.fg-inner .fg-header {
    background: rgba(7, 21, 38, 0.96);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
    backdrop-filter: blur(16px);
}

.fg-logo img {
    max-height: 52px;
    width: auto;
}

.fg-menu {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.fg-menu > li {
    position: relative;
}

.fg-menu a {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 8px 8px;
    color: #fff;
    font-size: 12.5px;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
}

.fg-menu a:hover,
.fg-menu a.is-active {
    color: var(--fg-gold-soft);
}

.fg-menu .fg-dropdown {
    display: none;
    position: absolute;
    inset-inline-start: 0;
    top: 100%;
    min-width: 220px;
    background: #fff;
    border-radius: 12px;
    box-shadow: var(--fg-shadow);
    padding: 8px;
    z-index: 20;
    list-style: none;
    margin: 0;
}

.fg-menu li:hover > .fg-dropdown {
    display: block;
}

.fg-menu .fg-dropdown a {
    color: var(--fg-navy);
    width: 100%;
    border-radius: 8px;
}

.fg-menu .fg-dropdown a:hover {
    background: var(--fg-cream);
    color: var(--fg-royal);
}

.fg-header a,
.fg-footer a,
.fg-card,
.fg-person-body h3 a,
.fg-post h3 a {
    text-decoration: none;
}

.fg-hero h1,
.fg-hero p {
    color: #fff !important;
}

.fg-why p {
    color: rgba(255, 255, 255, 0.86);
}

.fg-nav-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.fg-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 18px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    border: 1px solid transparent;
    transition: 0.2s ease;
    cursor: pointer;
}

.fg-btn-gold {
    background: var(--fg-gold);
    color: var(--fg-navy-deep);
}

.fg-btn-gold:hover {
    background: #d4b56a;
    color: var(--fg-navy-deep);
}

.fg-btn-outline {
    border-color: rgba(255, 255, 255, 0.35);
    color: #fff;
    background: transparent;
}

.fg-btn-outline:hover {
    border-color: var(--fg-gold);
    color: var(--fg-gold);
}

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

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

.fg-btn-ghost {
    background: transparent;
    color: #fff;
}

.fg-btn-lg {
    min-height: 52px;
    padding: 0 24px;
    font-size: 15px;
}

.fg-burger {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: transparent;
    color: #fff;
    border-radius: 10px;
}

.fg-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    color: #fff;
    background: var(--fg-navy) center/cover no-repeat;
}

.fg-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(7, 21, 38, 0.92) 0%, rgba(7, 21, 38, 0.78) 42%, rgba(7, 21, 38, 0.35) 100%),
        linear-gradient(180deg, rgba(7, 21, 38, 0.25) 0%, rgba(7, 21, 38, 0.55) 100%);
}

[dir="rtl"] .fg-hero::before {
    background:
        linear-gradient(270deg, rgba(7, 21, 38, 0.92) 0%, rgba(7, 21, 38, 0.78) 42%, rgba(7, 21, 38, 0.35) 100%),
        linear-gradient(180deg, rgba(7, 21, 38, 0.25) 0%, rgba(7, 21, 38, 0.55) 100%);
}

.fg-hero-inner {
    position: relative;
    z-index: 2;
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
    padding: 160px 0 80px;
    opacity: 1 !important;
    transform: none !important;
}

.fg-kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--fg-gold-soft);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 18px;
}

.fg-kicker::before {
    content: "";
    width: 34px;
    height: 1px;
    background: var(--fg-gold);
}

.fg-hero .fg-kicker {
    max-width: none;
    letter-spacing: 0.16em;
    color: var(--fg-gold-soft);
}

.fg-hero h1 {
    font-family: var(--fg-serif) !important;
    font-size: clamp(40px, 5.6vw, 72px) !important;
    line-height: 1.12 !important;
    max-width: 14em;
    margin: 0 0 18px !important;
    color: #fff !important;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.fg-hero p.lead {
    max-width: 38em;
    font-size: 18px !important;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.9) !important;
    margin-bottom: 32px !important;
}

.fg-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.fg-section {
    padding: 88px 0;
}

.fg-wrap {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}

.fg-center {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 48px;
}

.fg-center h2,
.fg-split-copy h2,
.fg-section-head h2 {
    font-family: var(--fg-serif);
    font-size: clamp(30px, 3.5vw, 44px);
    color: var(--fg-navy);
    margin: 8px 0 12px;
}

.fg-muted {
    color: var(--fg-muted);
    line-height: 1.75;
}

.fg-services {
    background: var(--fg-paper);
}

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

.fg-card {
    background: #fff;
    border: 1px solid var(--fg-line);
    border-radius: var(--fg-radius);
    padding: 28px 22px;
    box-shadow: 0 1px 0 rgba(11, 31, 58, 0.03);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    height: 100%;
    text-decoration: none;
    color: inherit;
    display: block;
}

.fg-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--fg-shadow);
    border-color: rgba(196, 163, 90, 0.45);
    color: inherit;
}

.fg-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: rgba(196, 163, 90, 0.12);
    color: var(--fg-navy);
    font-size: 22px;
    margin-bottom: 18px;
}

.fg-card h3 {
    font-size: 18px;
    margin: 0 0 10px;
    color: var(--fg-navy);
}

.fg-about {
    background: var(--fg-cream);
}

.fg-split {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 56px;
    align-items: start;
}

.fg-split-media {
    position: sticky;
    top: 130px;
    z-index: 1;
}

.fg-about-cta {
    margin-bottom: 8px;
}

.fg-split-media img {
    width: 100%;
    height: 620px !important;
    object-fit: cover;
    object-position: top center;
    border-radius: 24px;
    display: block;
    box-shadow: var(--fg-shadow);
}

.fg-split-media::after {
    content: "";
    position: absolute;
    inset: auto -18px -18px auto;
    width: 42%;
    height: 42%;
    border: 2px solid var(--fg-gold);
    border-radius: 24px;
    z-index: -1;
}

[dir="rtl"] .fg-split-media::after {
    inset: auto auto -18px -18px;
}

.fg-split-copy .fg-lead {
    font-size: 17px;
    line-height: 1.8;
    color: var(--fg-muted);
    margin: 0 0 22px;
}

.fg-split-copy .fg-lead,
.fg-split-copy .fg-lead * {
    font-family: var(--fg-font) !important;
    color: var(--fg-muted) !important;
    font-size: 17px !important;
    line-height: 1.8 !important;
    background: none !important;
}

.fg-pillars {
    display: grid;
    gap: 14px;
    margin-top: 22px;
}

.fg-pillar {
    background: #fff;
    border-radius: 14px;
    padding: 16px 18px;
    border-inline-start: 3px solid var(--fg-gold);
}

.fg-pillar h4 {
    margin: 0 0 6px;
    color: var(--fg-navy);
    font-size: 16px;
}

.fg-page-hero {
    background: linear-gradient(135deg, var(--fg-navy-deep) 0%, var(--fg-navy) 70%);
    color: #fff;
    padding: 56px 0 48px;
}

.fg-page-hero h1 {
    font-family: var(--fg-serif);
    font-size: clamp(32px, 4vw, 50px);
    margin: 10px 0 0;
    color: #fff;
}

.fg-crumbs {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0;
    margin: 0;
    color: rgba(255, 255, 255, 0.68);
    font-size: 13px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.fg-crumbs a {
    color: var(--fg-gold-soft);
    text-decoration: none;
}

.fg-crumbs li + li::before {
    content: "/";
    margin-inline-end: 8px;
    opacity: 0.45;
}

.fg-prose,
.fg-prose p,
.fg-prose span,
.fg-prose div,
.fg-prose font,
.fg-prose li {
    font-family: var(--fg-font) !important;
    color: var(--fg-muted) !important;
    font-size: 17px !important;
    line-height: 1.85 !important;
    background: none !important;
}

.fg-prose p {
    margin: 0 0 1.15em;
}

.fg-prose p:last-child {
    margin-bottom: 0;
}

.fg-feature-list {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 18px;
    margin: 28px 0 0;
    padding: 0;
}

.fg-feature-list li {
    position: relative;
    padding-inline-start: 26px;
    color: var(--fg-navy);
    font-size: 15px;
    line-height: 1.5;
}

.fg-feature-list li::before {
    content: "";
    position: absolute;
    inset-inline-start: 0;
    top: 8px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--fg-gold);
}

.fg-why {
    background: var(--fg-navy);
    color: #fff;
}

.fg-why h2,
.fg-why .fg-kicker {
    color: var(--fg-gold-soft);
}

.fg-why h2 {
    color: #fff;
}

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

.fg-why-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
}

.fg-why-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 28px;
}

.fg-why-card h3 {
    color: var(--fg-gold-soft);
    margin-bottom: 12px;
}

.fg-checks {
    list-style: none;
    margin: 0;
    padding: 0;
}

.fg-checks li {
    position: relative;
    padding-inline-start: 28px;
    margin-bottom: 10px;
    color: rgba(255, 255, 255, 0.86);
    line-height: 1.6;
}

.fg-checks li::before {
    content: "";
    position: absolute;
    inset-inline-start: 0;
    top: 8px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--fg-gold) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b1f3a' stroke-width='3'%3E%3Cpath d='M5 12l4 4L19 7'/%3E%3C/svg%3E") center/12px no-repeat;
}

.fg-partners {
    background: var(--fg-cream);
}

.fg-gallery {
    background: var(--fg-paper);
}

.fg-swiper {
    overflow: hidden;
    padding: 8px 4px 28px;
}

.fg-partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.fg-partner-card {
    min-height: 210px;
    background: #fff;
    border: 1px solid var(--fg-line);
    border-radius: 20px;
    padding: 28px 20px 22px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    text-align: center;
    box-shadow: 0 1px 0 rgba(11, 31, 58, 0.04);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.fg-partner-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--fg-shadow);
    border-color: rgba(196, 163, 90, 0.5);
}

.fg-partner-logo {
    width: 100%;
    height: 110px;
    display: grid;
    place-items: center;
}

.fg-partner-logo img {
    max-height: 110px !important;
    max-width: 160px;
    width: auto;
    height: auto !important;
    object-fit: contain;
    filter: none;
    opacity: 1;
}

.fg-partner-card span {
    font-size: 14px;
    line-height: 1.45;
    color: var(--fg-navy);
    font-weight: 600;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.9em;
}

.fg-gallery-card {
    display: block;
    border-radius: 18px;
    overflow: hidden;
    position: relative;
    background: #000;
}

.fg-gallery-card img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.fg-gallery-card:hover img {
    transform: scale(1.05);
}

.fg-gallery-card figcaption {
    position: absolute;
    inset: auto 0 0;
    padding: 16px;
    color: #fff;
    background: linear-gradient(transparent, rgba(7, 21, 38, 0.85));
    font-size: 14px;
}

.fg-team {
    background: var(--fg-cream);
}

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

.fg-person {
    background: #fff;
    border-radius: 22px;
    overflow: hidden;
    border: 1px solid var(--fg-line);
}

.fg-person img {
    width: 100%;
    height: 280px;
    object-fit: cover;
}

.fg-person-body {
    padding: 20px;
    text-align: center;
}

.fg-person-body h3 {
    margin: 0 0 4px;
    color: var(--fg-navy);
}

.fg-person-body span {
    color: var(--fg-gold);
    font-size: 13px;
    font-weight: 600;
}

.fg-social {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 12px;
}

.fg-social a {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--fg-cream);
    color: var(--fg-navy);
}

.fg-post {
    background: #fff;
    border-radius: 22px;
    overflow: hidden;
    border: 1px solid var(--fg-line);
    height: 100%;
    display: flex;
    flex-direction: column;
}

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

.fg-post-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.fg-meta {
    display: flex;
    gap: 12px;
    font-size: 12px;
    color: var(--fg-muted);
}

.fg-post h3 {
    font-size: 20px;
    line-height: 1.4;
    margin: 0;
}

.fg-post h3 a {
    color: var(--fg-navy);
    text-decoration: none;
}

.fg-more {
    margin-top: auto;
    color: var(--fg-gold);
    font-weight: 700;
    text-decoration: none;
}

.fg-center .fg-more {
    display: inline-block;
    margin-top: 4px;
}

.fg-footer {
    background: var(--fg-navy-deep);
    color: rgba(255, 255, 255, 0.78);
    padding-top: 64px;
}

.fg-footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 0.9fr 1fr 1.1fr;
    gap: 28px;
}

.fg-footer h3 {
    color: #fff;
    font-size: 16px;
    margin-bottom: 16px;
}

.fg-footer a {
    color: inherit;
    text-decoration: none;
}

.fg-footer a:hover {
    color: var(--fg-gold-soft);
}

.fg-footer ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.fg-footer li {
    margin-bottom: 10px;
}

.fg-news form {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.fg-news input {
    flex: 1;
    min-height: 46px;
    border: 0;
    border-radius: 999px;
    padding: 0 16px;
}

.fg-copy {
    margin-top: 36px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 18px 0;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-size: 13px;
}

.fg-mobile-panel {
    display: none;
}

@media (max-width: 1199px) {
    .fg-grid-5 {
        grid-template-columns: repeat(3, 1fr);
    }

    .fg-menu a {
        padding: 10px 8px;
        font-size: 12.5px;
    }
}

body.fg-home .go-top,
body.fg-inner .go-top {
    background: var(--fg-navy) !important;
    color: var(--fg-gold) !important;
    border: 1px solid var(--fg-gold);
}

@media (max-width: 991px) {
    body.fg-inner {
        padding-top: 72px;
    }
    :root {
        --fg-header: 72px;
    }

    .fg-topbar,
    .fg-menu,
    .fg-nav-actions {
        display: none;
    }

    .fg-burger {
        display: grid;
        place-items: center;
    }

    .fg-header.is-open .fg-mobile-panel {
        display: block;
        background: var(--fg-navy-deep);
        padding: 12px 20px 24px;
    }

    .fg-mobile-panel a {
        display: block;
        color: #fff;
        padding: 12px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        text-decoration: none;
    }

    .fg-split,
    .fg-why-grid,
    .fg-grid-3,
    .fg-feature-list,
    .fg-team-grid,
    .fg-posts,
    .fg-footer-grid,
    .fg-copy {
        grid-template-columns: 1fr;
    }

    .fg-split-media {
        position: static;
    }

    .fg-partners-grid {
        grid-template-columns: 1fr 1fr;
    }

    .fg-split-media img {
        height: 340px !important;
    }

    .fg-hero {
        min-height: 86vh;
    }
}

@media (max-width: 680px) {
    .fg-grid-5 {
        grid-template-columns: 1fr;
    }

    .fg-news form {
        flex-direction: column;
    }

    .fg-partners-grid {
        grid-template-columns: 1fr;
    }
}
