/* ============== ROOT VARIABLES ============== */
:root {
    --primary-color: #003f87;
    --primary-light: #0052cc;
    --text-color: #333;
    --gray-light: #f5f5f5;
    --gray-dark: #666;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;

}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    animation: fadeIn 0.8s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ============== TOP HEADER ============== */
.top-header {
    background-color:#002d5f;
    color: white;
    padding: 10px 0;
    font-size: 13px;
    font-weight: 500;
}

.top-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.contact-info i,
.search-section i {
    margin-right: 5px;
}

/* ============== MAIN HEADER ============== */
.main-header {
    background-color: #f8f9fa;
    padding: 20px 0;
    border-bottom: 1px solid #e0e0e0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo-section {
    flex-shrink: 0;
    margin-right: 20px;
}

.ghana-logo {
    width: 80px;
    height: 80px;
    object-fit: contain;
}

.title-section {
    flex-grow: 1;
    text-align: center;
}

.main-title {
    color: var(--primary-color);
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
}

.subtitle {
    color: var(--gray-dark);
    font-size: 14px;
    letter-spacing: 0.3px;
}

.gifec-logo-section {
    flex-shrink: 0;
    margin-left: 20px;
}

.gifec-logo {
    width: 100px;
    height: auto;
    object-fit: contain;
}

/* ============== NAVIGATION BAR ============== */

/* ============== CONTACT HERO SECTION ============== */
.contact-hero-section {
    position: relative;
    min-height: 380px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    padding: 60px 0;
    overflow: hidden;
}

.contact-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.45) 30%, rgba(0, 0, 0, 0.05) 100%);
    pointer-events: none;
}

.contact-hero-container {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    width: 100%;
}

.contact-hero-content {
    max-width: 520px;
}

.contact-hero-title {
    color: white;
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 14px;
    letter-spacing: 0.5px;
}

.contact-hero-description {
    color: rgba(255, 255, 255, 0.92);
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 32px;
}

.contact-hero-buttons {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.btn {
    padding: 11px 26px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: #002d5f;
    border-color: #002d5f;
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    color: white;
    border: 2px solid white;
}

.btn-outline:hover {
    background-color: rgba(255,255,255,0.15);
    transform: translateY(-2px);
}

/* ============== CONTACT INFO CARDS ============== */
.contact-cards-section {
    background-color: white;
    padding: 40px 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.contact-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.contact-card {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 24px 28px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background-color: white;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.office-address-card {
    color: inherit;
    text-decoration: none;
    cursor: pointer;
}

.contact-card:hover {
    box-shadow: 0 4px 16px rgba(0, 63, 135, 0.1);
    transform: translateY(-2px);
}

.contact-card-icon {
    color: var(--primary-color);
    font-size: 28px;
    flex-shrink: 0;
}

.contact-card-text h4 {
    color: var(--text-color);
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 4px;
}

.contact-card-text p {
    color: var(--gray-dark);
    font-size: 14px;
    margin: 0;
}
.contact-card-text a {
    color: var(--gray-dark);
    text-decoration: none;
}

/* ============== CONTACT MAIN SECTION (FORM + OFFICE LOCATION) ============== */
.contact-main-section {
    background-color: var(--gray-light);
    padding: 50px 0 60px;
}

.contact-form-title {
    color: var(--text-color);
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 24px;
}

.contact-main-grid {
    display: grid;
    grid-template-columns: 1fr 0.85fr;
    gap: 30px;
    align-items: start;
}

/* Contact Form Card */
.contact-form-card {
    background-color: white;
    border-radius: 8px;
    padding: 32px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.form-group {
    margin-bottom: 16px;
}

.form-input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #d8d8d8;
    border-radius: 4px;
    font-size: 14px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-color);
    background-color: white;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    outline: none;
    resize: none;
}

.form-input::placeholder {
    color: #aaa;
}

.form-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 63, 135, 0.08);
}

.form-textarea {
    height: 110px;
}

.btn-send {
    background-color: var(--primary-color);
    color: white;
    padding: 12px 32px;
    font-size: 15px;
    font-weight: 600;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    margin-top: 6px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.btn-send:hover {
    background-color: #002d5f;
    transform: translateY(-1px);
}

/* Office Map Card */
.office-map-card {
    background-color: white;
    border-radius: 8px;
    padding: 28px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    scroll-margin-top: 24px;
}

.office-map-title {
    color: var(--text-color);
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.4;
}

.office-map-card iframe {
    display: block;
    width: 100%;
    height: 360px;
    border: 0;
    border-radius: 6px;
}
/* ============== FOOTER ============== */
.footer {
    background-color: #003f87;
    color: white;
    padding: 60px 0 20px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 40px;
}

.footer-info {
    border-right: 1px solid rgba(255, 255, 255, 0.2);
    padding-right: 40px;
}

.footer-logo {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.footer-crest {
    width: 80px;
    height: 80px;
    object-fit: contain;
}

.footer-org-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.4;
}

.footer-ministry {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    margin-bottom: 20px;
    letter-spacing: 0.5px;
}

.footer-contact {
    font-size: 14px;
}

.footer-contact p {
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-contact i {
    width: 16px;
}

.footer-section-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-policies {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 13px;
}

.footer-policies a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-policies a:hover {
    color: white;
}

.divider {
    color: rgba(255, 255, 255, 0.4);
}

.footer-socials {
    display: flex;
    gap: 15px;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 50%;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease;
    font-size: 14px;
}

.social-link:hover {
    background-color: rgba(255, 255, 255, 0.2);
    color: #ffc107;
}

.footer-copyright {
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
}

/* ============== RESPONSIVE - TABLET (768px) ============== */
@media (max-width: 768px) {
    
    .header-content {
        flex-direction: column;
        text-align: center;
    }

    .logo-section,
    .gifec-logo-section {
        margin: 10px 0;
    }

    .main-title {
        font-size: 20px;
    }

    .subtitle {
        font-size: 12px;
    }

    .ghana-logo {
        width: 60px;
        height: 60px;
    }

    .gifec-logo {
        width: 70px;
    }

    .contact-info {
        display: none;
    }

    /* Hero */
    .contact-hero-section {
        min-height: 300px;
        padding: 40px 0;
    }

    .contact-hero-title {
        font-size: 26px;
    }

    .contact-hero-description {
        font-size: 14px;
    }

    .contact-hero-buttons {
        flex-direction: column;
        gap: 10px;
    }

    .btn {
        width: fit-content;
    }

    /* Cards */
    .contact-cards-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    /* Form + Dept */
    .contact-main-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    /* Footer */
    .footer-container {
        grid-template-columns: 1fr;
        gap: 40px;
        margin-bottom: 30px;
    }

    .footer-info {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
        padding-right: 0;
        padding-bottom: 30px;
    }

    .footer-bottom-content {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ============== RESPONSIVE - MOBILE (480px) ============== */
@media (max-width: 480px) {
    .header-content {
        padding: 10px;
    }

    .main-title {
        font-size: 16px;
    }

    .subtitle {
        font-size: 10px;
    }

    .top-header-content {
        flex-wrap: wrap;
        gap: 8px;
        justify-content: flex-end;
    }

    .contact-hero-section {
        min-height: 260px;
        padding: 30px 0;
    }

    .contact-hero-container {
        padding: 0 20px;
    }

    .contact-hero-title {
        font-size: 22px;
    }

    .contact-hero-description {
        font-size: 13px;
        margin-bottom: 20px;
    }

    .contact-cards-section {
        padding: 28px 0;
    }

    .contact-card {
        padding: 18px 20px;
        gap: 14px;
    }

    .contact-card-icon {
        font-size: 22px;
    }

    .contact-card-text h4 {
        font-size: 14px;
    }

    .contact-card-text p {
        font-size: 13px;
    }

    .contact-main-section {
        padding: 30px 0 40px;
    }

    .contact-form-title {
        font-size: 20px;
    }

    .contact-form-card {
        padding: 22px 18px;
    }

    .departments-card {
        padding: 20px 16px;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 30px;
        margin-bottom: 25px;
    }

    .footer-org-title {
        font-size: 16px;
    }

    .footer-bottom-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 15px;
    }

    .footer-policies {
        flex-wrap: wrap;
        justify-content: center;
        font-size: 11px;
    }

    .footer-copyright {
        font-size: 11px;
    }

    .footer {
        padding: 30px 0 10px;
    }
}
