:root {
    --bg-main: #050505;
    --bg-soft: #0d0d0d;
    --bg-card: #111111;
    --bg-header: #0a0a0a;

    --text-main: #f8f8f8;
    --text-soft: #d6d6d6;
    --text-muted: #a8a8a8;

    --ghana-red: #c1121f;
    --ghana-gold: #d4a017;
    --ghana-green: #0b6e3d;

    --border-soft: rgba(212, 160, 23, 0.18);
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.35);
    --shadow-gold: 0 0 0 1px rgba(212, 160, 23, 0.08), 0 10px 24px rgba(0, 0, 0, 0.35);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    color: var(--text-main);
    line-height: 1.6;
    position: relative;
    z-index: 0;
    background-color: var(--bg-main);
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -2;
    background:
        linear-gradient(135deg, rgba(0, 0, 0, 0.86), rgba(0, 0, 0, 0.68)),
        radial-gradient(circle at top left, rgba(11, 110, 61, 0.12), transparent 28%),
        radial-gradient(circle at top right, rgba(193, 18, 31, 0.10), transparent 24%),
        url('/assets/images/main-background.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        linear-gradient(
            120deg,
            rgba(255, 255, 255, 0.05) 0%,
            rgba(255, 255, 255, 0.015) 18%,
            transparent 36%,
            transparent 64%,
            rgba(255, 255, 255, 0.03) 82%,
            rgba(255, 255, 255, 0.05) 100%
        );
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

a:hover,
a:focus,
a:active,
a:visited {
    text-decoration: none;
    color: inherit;
}

button {
    font: inherit;
    cursor: pointer;
    border: none;
    outline: none;
}

.container {
    width: min(1200px, 92%);
    margin: 0 auto;
}

/* TOP BAR */
.topbar {
    background: rgba(10, 10, 10, 0.82);
    border-bottom: 1px solid var(--border-soft);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 10px 0;
}

.topbar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.powered-by-text {
    font-size: 14px;
    color: var(--text-soft);
}

.powered-by-logo {
    display: flex;
    align-items: center;
}

.powered-by-logo img {
    height: 26px;
    width: auto;
    opacity: 0.9;
    transition: 0.3s ease;
}

.powered-by-logo img:hover {
    opacity: 1;
    transform: scale(1.05);
}

.whats-new-btn {
    border: 1px solid var(--border-soft);
    padding: 8px 16px;
    border-radius: 10px;
    color: var(--text-main);
    background: transparent;
    transition: 0.3s ease;
}

.whats-new-btn:hover {
    background: var(--ghana-gold);
    color: #000;
}

/* HEADER */
.site-header {
    background: rgba(10, 10, 10, 0.86);
    border-bottom: 1px solid var(--border-soft);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 88px;
    gap: 20px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.brand-logo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #ffffff;
    border: 2px solid rgba(212, 160, 23, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow:
        0 0 0 2px rgba(212, 160, 23, 0.08),
        0 6px 18px rgba(0, 0, 0, 0.4);
    transition: 0.3s ease;
    flex-shrink: 0;
}

.brand-logo:hover {
    transform: scale(1.05);
    box-shadow:
        0 0 0 2px rgba(212, 160, 23, 0.15),
        0 10px 25px rgba(0, 0, 0, 0.5);
}

.brand-logo img {
    width: 90%;
    height: 90%;
    object-fit: contain;
}

.brand-name {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.3;
}

/* NAV */
.main-nav {
    display: flex;
    align-items: center;
    gap: 10px;
}

.main-nav a {
    padding: 10px 14px;
    border-radius: 8px;
    color: var(--text-soft);
    transition: 0.3s ease;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--ghana-gold);
    background: rgba(212, 160, 23, 0.06);
}

/* MOBILE MENU BUTTON */
.menu-toggle {
    display: none;
    background: rgba(17, 17, 17, 0.9);
    color: var(--ghana-gold);
    width: 44px;
    height: 44px;
    border-radius: 10px;
    border: 1px solid var(--border-soft);
    font-size: 22px;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* SECTION SPACING */
.page-hero {
    padding: 36px 0 40px;
}

.form-section,
.homepage-cards-section,
.content-section,
.section-block {
    padding-top: 20px;
}

@media (min-width: 769px) {
    .page-hero {
        min-height: 620px;
        padding: 40px 0 50px;
    }

    .page-hero .container {
        min-height: 620px;
        display: flex;
        align-items: flex-end;
        justify-content: flex-end;
    }
}

/* REUSABLE BACKGROUND IMAGE CARD SYSTEM */
.card-with-bg {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.card-with-bg::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: var(--card-bg, none);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
}

.card-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.62)),
        linear-gradient(135deg, rgba(11, 110, 61, 0.12), transparent 40%),
        linear-gradient(225deg, rgba(193, 18, 31, 0.10), transparent 35%);
    z-index: 1;
}

.card-content {
    position: relative;
    z-index: 2;
}

/* HERO CARD */
.hero-card {
    position: relative;
    border: 1px solid rgba(212, 160, 23, 0.22);
    border-radius: 24px;
    padding: 42px;
    min-height: 320px;
    display: flex;
    align-items: center;
    background-color: rgba(17, 17, 17, 0.68);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    box-shadow:
        0 0 0 1px rgba(212, 160, 23, 0.08),
        0 0 18px rgba(212, 160, 23, 0.10),
        0 0 34px rgba(212, 160, 23, 0.08),
        0 18px 42px rgba(0, 0, 0, 0.42);
    visibility: visible;
    pointer-events: auto;
}

.hero-card::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.10),
        inset 0 0 0 1px rgba(255, 255, 255, 0.03),
        inset 0 -14px 30px rgba(0, 0, 0, 0.28),
        0 0 0 1px rgba(212, 160, 23, 0.12),
        0 0 26px rgba(212, 160, 23, 0.14),
        0 0 46px rgba(212, 160, 23, 0.08);
}

.hero-card h1 {
    font-size: 56px;
    line-height: 1.1;
    margin-bottom: 14px;
    max-width: 780px;
}

.hero-card p {
    font-size: 20px;
    color: var(--text-soft);
    max-width: 860px;
}

/* DESKTOP / LARGE SCREEN HERO POSITION */
@media (min-width: 769px) {
    .hero-card {
        width: min(100%, 540px);
        min-height: 330px;
        margin: 0;
        padding: 34px 32px;
    }
}

/* HOMEPAGE CARDS */
.homepage-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin-top: 24px;
}

.homepage-card {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    border: 1px solid rgba(212, 160, 23, 0.18);
    background-color: rgba(17, 17, 17, 0.78);
    min-height: 230px;
    padding: 24px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
    transition: 0.3s ease;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

.homepage-card:hover {
    transform: translateY(-4px);
    border-color: rgba(212, 160, 23, 0.30);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.28);
}

.homepage-card .card-content {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.card-badge {
    display: inline-block;
    margin-bottom: 10px;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    color: var(--ghana-gold);
    background: rgba(212, 160, 23, 0.10);
    border: 1px solid rgba(212, 160, 23, 0.14);
    width: fit-content;
}

.homepage-card h3 {
    font-size: 24px;
    line-height: 1.2;
    margin-bottom: 8px;
}

.homepage-card p {
    font-size: 15px;
    color: var(--text-soft);
}

/* FORM */
.gfaf-form {
    background: rgba(17, 17, 17, 0.82);
    border: 1px solid rgba(212, 160, 23, 0.2);
    border-radius: 20px;
    padding: 28px;
    box-shadow: var(--shadow-gold);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-main);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    min-height: 48px;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid rgba(212, 160, 23, 0.16);
    background: rgba(15, 15, 15, 0.88);
    color: var(--text-main);
    font: inherit;
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.form-submit {
    margin-top: 22px;
}

.form-errors {
    margin-bottom: 18px;
    background: rgba(193, 18, 31, 0.10);
    border: 1px solid rgba(193, 18, 31, 0.30);
    border-radius: 14px;
    padding: 14px 16px;
}

.form-errors p {
    color: #ffd7db;
    margin-bottom: 6px;
}

.form-errors p:last-child {
    margin-bottom: 0;
}

/* HERO BUTTONS */
.hero-actions {
    margin-top: 24px;
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 12px 20px;
    border-radius: 10px;
    font-weight: 600;
    transition: 0.3s ease;
}

.btn-primary {
    background: var(--ghana-gold);
    color: #000000;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.4);
}

.btn-outline {
    border: 1px solid var(--border-soft);
    color: var(--text-main);
    background: transparent;
}

.btn-outline:hover {
    background: rgba(212, 160, 23, 0.08);
    color: var(--ghana-gold);
}

/* SUCCESS POPUP */
.success-popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.70);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 3000;
}

.success-popup-overlay.show {
    display: flex;
}

.success-popup-card {
    width: min(520px, 100%);
    background: rgba(17, 17, 17, 0.92);
    border: 1px solid rgba(212, 160, 23, 0.20);
    border-radius: 18px;
    padding: 28px;
    box-shadow: var(--shadow-gold);
    text-align: center;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.success-popup-check {
    width: 74px;
    height: 74px;
    margin: 0 auto 14px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(11, 110, 61, 0.16);
    color: #8ff0b2;
    font-size: 34px;
    font-weight: 700;
}

.success-popup-card h2 {
    margin-bottom: 8px;
    color: var(--text-main);
}

.success-popup-card p {
    color: var(--text-soft);
}

.success-popup-meta {
    margin-top: 14px;
    font-size: 14px;
    color: var(--text-muted);
}

/* SECTION HEADING */
.section-heading {
    margin-bottom: 20px;
}

.section-heading h2 {
    font-size: 32px;
    margin-bottom: 8px;
}

.section-heading p {
    color: var(--text-soft);
}

/* FOOTER */
.site-footer {
    background: rgba(11, 11, 11, 0.88);
    border-top: 1px solid var(--border-soft);
    padding: 30px 0;
    margin-top: 80px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-inner h3 {
    color: var(--ghana-gold);
    margin-bottom: 8px;
}

.footer-inner p {
    color: var(--text-soft);
}

/* MODAL */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 2000;
}

.modal-overlay.show {
    display: flex;
}

.modal-box {
    background: rgba(17, 17, 17, 0.94);
    border: 1px solid rgba(212, 160, 23, 0.2);
    padding: 20px;
    border-radius: 16px;
    width: 90%;
    max-width: 600px;
    position: relative;
    box-shadow: var(--shadow-gold);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.modal-close {
    position: absolute;
    right: 20px;
    top: 10px;
    font-size: 24px;
    color: #ffffff;
    background: transparent;
}

/* MOBILE ONLY */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .main-nav {
        display: none;
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        margin-top: 10px;
        gap: 8px;
    }

    .main-nav.active,
    .main-nav.show {
        display: flex;
    }

    .header-inner {
        flex-wrap: wrap;
        align-items: center;
    }

    .brand {
        flex: 1 1 auto;
        min-width: 0;
    }

    .brand-name {
        font-size: 16px;
    }

    .page-hero {
        padding: 24px 0 28px;
    }

    .hero-card {
        width: 100%;
        padding: 28px 22px;
        min-height: 250px;
        background-color: rgba(17, 17, 17, 0.12);
        backdrop-filter: blur(0px);
        -webkit-backdrop-filter: blur(0px);
        box-shadow:
            0 0 0 1px rgba(212, 160, 23, 0.08),
            0 12px 28px rgba(0, 0, 0, 0.24);
        visibility: visible;
        pointer-events: auto;
    }

    .hero-card::after {
        box-shadow:
            inset 0 1px 0 rgba(255, 255, 255, 0.05),
            0 0 0 1px rgba(212, 160, 23, 0.08);
    }

    .hero-card h1 {
        font-size: 38px;
    }

    .hero-card p {
        font-size: 18px;
    }

    .homepage-cards-grid {
        grid-template-columns: 1fr;
    }

    .homepage-card {
        background-color: rgba(17, 17, 17, 0.12);
        backdrop-filter: blur(0px);
        -webkit-backdrop-filter: blur(0px);
        box-shadow:
            0 0 0 1px rgba(212, 160, 23, 0.08),
            0 10px 22px rgba(0, 0, 0, 0.22);
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .hero-actions {
        gap: 10px;
    }

    .btn {
        width: 100%;
    }

    body::before {
        background-position: center top;
    }
}