:root {
    --ghana-red: #EF3340;
    --ghana-yellow: #FFD100;
    --ghana-green: #00843D;
    --deep-green: #064e3b;
    --white: #ffffff;
    --dark: #1a1a1a;
    --focus: #0f766e;
}

.ghana-green-text {
    color: var(--ghana-green);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #f1f5f9;
    color: #334155;
    line-height: 1.6;
    scroll-behavior: smooth;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

.skip-link {
    position: absolute;
    left: 1rem;
    top: -4rem;
    z-index: 3000;
    background: var(--dark);
    color: var(--white);
    padding: 0.75rem 1rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 700;
}

.skip-link:focus {
    top: 1rem;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
video:focus-visible {
    outline: 3px solid var(--focus);
    outline-offset: 3px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', system-ui, -apple-system, sans-serif;
}

.top-bar {
    background: var(--ghana-red);
    height: 5px;
    width: 100%;
}

nav {
    background: var(--white);
    padding: 0.65rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    min-width: 0;
}

.brand-logos {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    flex: 0 0 auto;
}

.brand-logos img {
    display: block;
    width: 74px;
    height: 74px;
    object-fit: contain;
    border-radius: 6px;
    background: var(--white);
}

.brand-logos .logo-primary {
    width: 112px;
    height: auto;
}

.logo-text {
    font-weight: 800;
    color: var(--deep-green);
    font-size: 1.2rem;
    line-height: 1.15;
}

nav ul {
    display: flex;
    flex: 0 0 auto;
    list-style: none;
    gap: 28px;
}

nav ul li a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1.2;
    text-transform: uppercase;
}

nav ul li a:hover {
    color: var(--ghana-green);
}

.hero {
    display: flex;
    align-items: center;
    padding: 5rem 5%;
    background: linear-gradient(135deg, var(--deep-green) 0%, #065f46 100%);
    color: var(--white);
    gap: 2rem;
}

.hero-content,
.hero-image {
    flex: 1;
}

.hero-image {
    text-align: center;
}

.hero-image img {
    width: 90%;
    border-radius: 15px;
    border: 5px solid rgba(255,255,255,0.1);
    box-shadow: 0 15px 30px rgba(0,0,0,0.3);
}

.hero h1 {
    font-size: 3.25rem;
    margin-bottom: 1rem;
    color: var(--ghana-yellow);
    font-weight: 900;
}

.btn-main {
    background: var(--ghana-yellow);
    color: var(--deep-green);
    padding: 0.8rem 2.2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 800;
    display: inline-block;
    margin-top: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 10px rgba(255, 209, 0, 0.2);
}

.btn-main:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(255, 209, 0, 0.45);
    background: #ffe04d;
}

.slogan-bar {
    background: var(--ghana-yellow);
    padding: 1.5rem;
    text-align: center;
    font-weight: 800;
    font-size: 1.4rem;
    color: var(--deep-green);
    text-transform: uppercase;
}

.container {
    max-width: 1100px;
    margin: 4rem auto;
    padding: 0 2rem;
}

.agenda-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 2rem;
    margin-bottom: 4rem;
}

.info-card {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.07);
}

.info-card.info-card-yellow {
    background: var(--ghana-yellow);
    box-shadow: 0 4px 20px rgba(255, 209, 0, 0.15);
}

.info-card.info-card-yellow:hover {
    box-shadow: 0 12px 35px rgba(255, 209, 0, 0.3);
}

.info-card-yellow h3 {
    color: var(--deep-green);
}

.section-heading {
    color: var(--ghana-green);
    margin-bottom: 2rem;
    padding-left: 1rem;
}

.section-heading-red {
    border-left: 5px solid var(--ghana-red);
}

.section-heading-yellow {
    border-left: 8px solid var(--ghana-yellow);
}

.spaced-text {
    margin-top: 15px;
}

.event-location {
    font-size: 1.1rem;
    margin-top: 10px;
}

.slideshow {
    overflow: hidden;
    background: white;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    margin-bottom: 1.5rem;
}

.slideshow-track {
    display: flex;
    gap: 10px;
    width: max-content;
    animation: slideShow 45s linear infinite;
}

.slideshow:hover .slideshow-track {
    animation-play-state: paused;
}

.slideshow img {
    width: 280px;
    height: 190px;
    flex: 0 0 auto;
    object-fit: cover;
    border-radius: 5px;
    cursor: pointer;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    background: white;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.gallery-item img {
    width: 100%;
    border-radius: 5px;
    height: 250px;
    object-fit: cover;
}

.gallery-item p {
    padding: 10px;
    font-weight: bold;
    color: var(--deep-green);
    text-align: center;
}

.video-section {
    margin-top: 4rem;
}

.video-slider {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 0 0 1rem;
}

.video-card {
    flex: 0 0 min(88vw, 520px);
    scroll-snap-align: start;
    background: white;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    cursor: pointer;
    overflow: hidden;
}

.video-card video {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 5px;
    background: var(--dark);
}

.form-section {
    background: var(--white);
    padding: 3rem;
    border-radius: 8px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    border-top: 8px solid var(--ghana-green);
    margin-top: 4rem;
}

.form-section h2,
.form-section p {
    text-align: center;
}

.form-section h2 {
    color: var(--deep-green);
}

.form-section p {
    opacity: 0.8;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 2rem;
}

.form-alert {
    grid-column: span 2;
    padding: 1rem;
    border-radius: 8px;
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: none;
    text-align: center;
}

.trap-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.form-alert.success {
    display: block;
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #10b981;
}

.form-alert.error {
    display: block;
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #f87171;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: bold;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.form-group input,
.form-group select {
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
}

.form-group input:focus,
.form-group select:focus {
    border-color: var(--ghana-green);
    box-shadow: 0 0 0 4px rgba(0, 132, 61, 0.14);
    outline: none;
}

.consent-group {
    grid-column: span 2;
    display: grid;
    grid-template-columns: 22px 1fr;
    gap: 0.75rem;
    align-items: start;
    color: #475569;
    font-size: 0.94rem;
    line-height: 1.5;
}

.consent-group input {
    width: 18px;
    height: 18px;
    margin-top: 0.2rem;
}

.submit-btn {
    grid-column: span 2;
    background: var(--ghana-green);
    color: white;
    border: none;
    padding: 1rem;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.3s;
}

.submit-btn:hover {
    background: var(--dark);
}

.submit-btn:disabled {
    cursor: wait;
    opacity: 0.75;
}

.privacy-section {
    background: var(--white);
    border-left: 5px solid var(--ghana-green);
    border-radius: 8px;
    margin-top: 3rem;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.privacy-section p + p {
    margin-top: 1rem;
}

footer {
    background: var(--dark);
    color: white;
    padding: 3rem;
    text-align: center;
}

.copyright {
    margin-top: 1.5rem;
    font-size: 0.8rem;
    opacity: 0.6;
}

.gallery-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.82);
    padding: 1.5rem;
}

.gallery-modal.open {
    display: flex;
}

.gallery-modal-panel {
    position: relative;
    width: min(100%, 1000px);
    max-height: 92vh;
    overflow: hidden;
    background: var(--white);
    border-radius: 10px;
    padding: 1rem;
    box-shadow: 0 20px 60px rgba(0,0,0,0.35);
}

.gallery-close {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 1;
    width: 38px;
    height: 38px;
    border: none;
    border-radius: 50%;
    background: var(--dark);
    color: var(--white);
    cursor: pointer;
    font-size: 1.7rem;
    line-height: 1;
}

.gallery-preview {
    display: block;
    width: 100%;
    height: min(58vh, 560px);
    object-fit: contain;
    background: #111;
    border-radius: 6px;
}

.gallery-thumbnails {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
    gap: 8px;
    max-height: 24vh;
    overflow-y: auto;
    margin-top: 1rem;
}

.gallery-thumbnails button {
    border: 3px solid transparent;
    border-radius: 6px;
    padding: 0;
    background: transparent;
    cursor: pointer;
    overflow: hidden;
}

.gallery-thumbnails button.active {
    border-color: var(--ghana-yellow);
}

.gallery-thumbnails img {
    display: block;
    width: 100%;
    height: 74px;
    object-fit: cover;
}

.video-modal-panel {
    max-width: 1100px;
}

.video-preview {
    display: block;
    width: 100%;
    max-height: 62vh;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    background: #111;
    border-radius: 6px;
}

.video-thumbnails {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 10px;
    max-height: 24vh;
    overflow-y: auto;
    margin-top: 1rem;
}

.video-thumbnails button {
    border: 3px solid transparent;
    border-radius: 6px;
    padding: 0;
    background: #111;
    cursor: pointer;
    overflow: hidden;
}

.video-thumbnails button.active {
    border-color: var(--ghana-yellow);
}

.video-thumbnails video {
    display: block;
    width: 100%;
    height: 92px;
    object-fit: cover;
}

@keyframes slideShow {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(calc(-50% - 5px));
    }
}

@media (max-width: 1180px) {
    nav {
        align-items: flex-start;
        gap: 1rem;
        flex-direction: column;
    }

    .brand {
        align-items: flex-start;
        flex-wrap: wrap;
        width: 100%;
    }

    nav ul {
        flex-wrap: wrap;
        gap: 18px;
    }
}

@media (max-width: 768px) {
    nav {
        flex-direction: column;
        align-items: center;
        padding: 0.75rem 1rem;
        gap: 0.75rem;
    }

    .brand {
        justify-content: center;
        width: 100%;
        gap: 0.75rem;
    }

    nav ul {
        width: 100%;
        display: flex;
        justify-content: center;
        overflow-x: auto;
        white-space: nowrap;
        padding: 0.25rem 0.5rem 0.5rem;
        gap: 1.25rem;
        scrollbar-width: none; /* Hide scrollbar for Firefox */
        -webkit-overflow-scrolling: touch;
    }

    nav ul::-webkit-scrollbar {
        display: none; /* Hide scrollbar for Chrome/Safari */
    }

    nav ul li {
        flex: 0 0 auto;
    }

    .hero {
        flex-direction: column;
        text-align: center;
        padding: 3rem 1.5rem;
        gap: 1.5rem;
    }

    .hero h1 {
        font-size: clamp(2rem, 6vw, 2.75rem);
    }

    .hero-image img {
        width: 100%;
        max-width: 450px;
    }

    .form-grid,
    .agenda-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .submit-btn,
    .form-alert,
    .consent-group {
        grid-column: span 1;
    }
}

@media (max-width: 480px) {
    nav {
        padding: 0.75rem 0.5rem;
    }

    .logo-text {
        font-size: clamp(0.9rem, 4vw, 1.1rem);
        text-align: left;
    }

    .brand {
        flex-wrap: nowrap;
        justify-content: flex-start;
        align-items: center;
    }

    .brand-logos {
        flex-wrap: nowrap;
        gap: 0.4rem;
        flex-shrink: 0;
    }

    .brand-logos img {
        width: 48px;
        height: 48px;
    }

    .brand-logos .logo-primary {
        width: 74px;
        height: auto;
    }

    nav ul {
        justify-content: flex-start;
        gap: 1rem;
    }

    nav ul li a {
        font-size: 0.9rem;
    }

    .hero h1 {
        font-size: 1.85rem;
    }

    .hero p {
        font-size: 0.95rem;
    }

    .slogan-bar {
        font-size: 1rem;
        padding: 1rem;
    }

    .container {
        margin: 2rem auto;
        padding: 0 1rem;
    }

    .info-card,
    .form-section {
        padding: 1.25rem;
    }

    .slideshow img {
        width: 200px;
        height: 140px;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .video-card {
        flex-basis: 85vw;
    }

    .gallery-modal {
        padding: 0.5rem;
    }

    .gallery-modal-panel {
        padding: 0.5rem;
    }

    .gallery-close {
        width: 44px;
        height: 44px;
        font-size: 1.8rem;
        top: 8px;
        right: 8px;
    }

    .gallery-preview {
        height: 42vh;
    }

    .gallery-thumbnails {
        grid-template-columns: repeat(auto-fill, minmax(64px, 1fr));
        gap: 6px;
    }

    .gallery-thumbnails img {
        height: 50px;
    }

    .video-thumbnails {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 8px;
    }

    .video-thumbnails video {
        height: 60px;
    }
}

@media (max-width: 360px) {
    .brand-logos img {
        width: 40px;
        height: 40px;
    }

    .brand-logos .logo-primary {
        width: 62px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}
