/* ============== 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;
}

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

/* ============== ANIMATION KEYFRAMES ============== */
/* Simple fade-in animation for page load */
@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: 90px;
    height: auto;
    object-fit: contain;
}

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

/* ============== HAMBURGER MENU ============== */

/* Hamburger Lines - Three horizontal bars */

/* Hamburger Animation - X shape when menu is open */

/* ============== HERO SECTION ============== */
.pro-hero-section {
    position: relative;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    overflow: hidden;
}

/* Hero Background Image */
.pro-hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
}

/* Hero Overlay - Dark overlay for text contrast */
.pro-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.4));
    z-index: 2;
}



/* Hero Content */
.pro-hero-content {
    position: relative;
    z-index: 5;
    color: white;
    max-width: 600px;
    padding: 0 40px;
}

/* Hero Title */
.pro-hero-title {
    font-size: 48px;
    font-weight: 300;
    letter-spacing: 2px;
    margin-bottom: 20px;
    line-height: 1.2;
    font-family: Georgia, serif;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* Hero Subtitle */
.pro-hero-subtitle {
    font-size: 18px;
    font-weight: 400;
    margin-bottom: 40px;
    line-height: 1.6;
    letter-spacing: 0.5px;
}

/* ============== HERO BUTTONS ============== */
.pro-hero-buttons {
    display: flex;
    gap: 20px;
}

.btn-primary,
.btn-secondary {
    padding: 15px 35px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
}

/* Primary Button - Blue */
.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 63, 135, 0.3);
}

/* Secondary Button - White */
.btn-secondary {
    background-color: white;
    color: var(--primary-color);
    border: 2px solid white;
}

.btn-secondary:hover {
    background-color: transparent;
    color: white;
    border-color: white;
    transform: translateY(-2px);
}

/* ============== PROGRAMMES OVERVIEW SECTION ============== */
/* This section displays the main GIFEC programmes with overview text and 3-card grid */
.programmes-overview-section {
    padding: 80px 0;
    background-color: #f8f9fa;
}

/* Introduction Text Container */

.programmes-intro {
    margin-bottom: 60px;
    text-align: center;
}

/* Introduction Paragraph */
.intro-text {
    font-size: 16px;
    color: var(--gray-dark);
    line-height: 1.8;
    max-width: 900px;
    margin: 0 auto;
    letter-spacing: 0.3px;
}

/* ============== PROGRAMMES GRID ============== */
/* 3-column grid layout for programme cards */
.programmes-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
}

/* Individual Programme Card */
.programme-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Card Hover Effect */
.programme-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Programme Image Container */
.programme-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
    background-color: #f0f0f0;
}

/* Programme Image Styling */
.programme-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

/* Image Zoom on Card Hover */
.programme-card:hover .programme-image img {
    transform: scale(1.05);
}

/* Programme Content Container */
.programme-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

/* Programme Title */
.programme-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 15px;
    letter-spacing: 0.5px;
}

/* Programme Description */
.programme-description {
    font-size: 14px;
    color: var(--gray-dark);
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

/* Programme Highlights List */
.programme-highlights {
    list-style: none;
    margin: 20px 0;
    padding: 0;
}

/* Programme Highlight Item */
.programme-highlights li {
    font-size: 13px;
    color: var(--text-color);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Highlight Checkmark Icon */
.programme-highlights i {
    color: #c9a135;
    font-size: 16px;
}

/* Read More Link */
.read-more-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    align-self: flex-start;
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid #e0e0e0;
    display: inline-block;
}

.read-more-link:hover {
    color: var(--primary-light);
    padding-left: 5px;
}

/* ============== PROGRAMMES DETAILS SECTION ============== */
/* This section uses expandable details/summary elements for detailed programme information */
.programmes-details-section {
    padding: 80px 0;
    background-color: white;
}

/* Section Title */
.section-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 10px;
    letter-spacing: 0.5px;
}

/* Section Subtitle */
.section-subtitle {
    font-size: 16px;
    color: var(--gray-dark);
    text-align: center;
    margin-bottom: 50px;
    letter-spacing: 0.3px;
}

/* Programme Details Wrapper */
.programme-details-wrapper {
    max-width: 900px;
    margin: 0 auto;
}

/* Programme Section Title */
.programme-section-title {
    font-size: 26px;
    font-weight: 700;
    color: var(--primary-color);
    margin: 30px 0 20px 0;
    letter-spacing: 0.5px;
}

/* Programme Overview Text */
.programme-overview-text {
    font-size: 15px;
    color: var(--text-color);
    line-height: 1.8;
    margin-bottom: 30px;
    letter-spacing: 0.2px;
}

/* Individual Detail Element */
.programme-detail {
    margin-bottom: 20px;
    border-left: 4px solid var(--primary-color);
    background-color: #f8f9fa;
    border-radius: 4px;
}

/* Detail Summary (Clickable Header) */
.detail-summary {
    cursor: pointer;
    padding: 18px 20px;
    font-weight: 600;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 12px;
    user-select: none;
    transition: background-color 0.3s ease;
}

/* Hover Effect on Summary */
.detail-summary:hover {
    background-color: #f0f0f0;
}

/* Detail Icon (Arrow) */
.detail-icon {
    font-size: 12px;
    transition: transform 0.3s ease;
    display: inline-block;
}

/* Rotate Icon when Details Open */
.programme-detail[open] .detail-icon {
    transform: rotate(90deg);
}

/* Detail Title */
.detail-title {
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.3px;
}

/* Detail Content Container */
.detail-content {
    padding: 20px 20px;
    background-color: white;
    border-top: 1px solid #e0e0e0;
    animation: slideDown 0.3s ease;
}

/* Animation for smooth expansion */
@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
    }
    to {
        opacity: 1;
        max-height: 1000px;
    }
}

/* Paragraph inside Detail Content */
.detail-content p {
    font-size: 14px;
    color: var(--text-color);
    line-height: 1.8;
    margin-bottom: 15px;
    letter-spacing: 0.2px;
}

/* Detail Subtitle (like "The project adopts the following:") */
.detail-subtitle {
    font-weight: 600;
    color: var(--primary-color);
    margin-top: 15px !important;
    margin-bottom: 10px !important;
}

/* Detail List Items */
.detail-list {
    list-style: none;
    padding: 0;
    margin: 10px 0 15px 0;
}

/* Individual List Item */
.detail-list li {
    font-size: 14px;
    color: var(--text-color);
    line-height: 1.8;
    padding-left: 20px;
    position: relative;
    margin-bottom: 8px;
    letter-spacing: 0.2px;
}

/* Bullet Point for List Items */
.detail-list li:before {
    content: "•";
    color: var(--primary-color);
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* ============== RESPONSIVE DESIGN - TABLET (768px and below) ============== */
@media (max-width: 768px) {
    /* Header responsive styling */
    .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: 90px;
    }

    /* Hero section responsive 
    .hero-section {
        /* height: 400px; 
    }*/

    .pro-hero-title {
        font-size: 42px;
    }

    .pro-hero-subtitle {
        font-size: 16px;
    }

    

    /* Top Header adjustments for tablet */
    .top-header-content {
        gap: 10px;
    }

    /* Hide contact info and search section on mobile/tablet */
    .contact-info
     {
        display: none;
    }

    .search-section {
        margin-right: auto;
    }

    /* Programmes section responsive for tablet */
    .programmes-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }

    .intro-text {
        font-size: 15px;
    }

    .programme-image {
        height: 180px;
    }

    .programme-content {
        padding: 20px;
    }

    .programme-title {
        font-size: 18px;
    }

    .programme-description {
        font-size: 13px;
    }

    /* Details section responsive for tablet */
    .section-title {
        font-size: 26px;
    }

    .section-subtitle {
        font-size: 15px;
        margin-bottom: 40px;
    }

    .programme-section-title {
        font-size: 22px;
        margin: 25px 0 15px 0;
    }

    .programme-overview-text {
        font-size: 14px;
        margin-bottom: 25px;
    }

    .detail-summary {
        padding: 16px 18px;
        font-size: 15px;
    }

    .detail-content {
        padding: 18px;
    }

    .detail-content p {
        font-size: 13px;
        margin-bottom: 12px;
    }

    .detail-list li {
        font-size: 13px;
        margin-bottom: 6px;
    }
}

/* ============== RESPONSIVE DESIGN - MOBILE PHONES (480px and below) ============== */
@media (max-width: 480px) {
    /* Header responsive styling */
    .header-content {
        padding: 10px;
    }

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

    /* Hero section responsive */
    /* .hero-section {
        height: 400px;
    } */

    .pro-hero-title {
        font-size: 36px;
        font-size: 32px;
    }

    .pro-hero-subtitle {
        font-size: 14px;
    }

    .pro-hero-content {
        padding: 0 20px;
    }

    .pro-hero-buttons {
        flex-direction: column;
    }

    .btn-primary,
    .btn-secondary {
        padding: 12px 25px;
        font-size: 14px;
    }

    /* Top Header adjustments for mobile */
    .top-header-content {
        flex-wrap: wrap;
        gap: 8px;
        justify-content: flex-end;
    }

    /* Contact info and search section already hidden at 768px */
    .contact-info {
        display: none;
    }

    .hamburger {
        flex-shrink: 0;
    }

    .hamburger-line {
        width: 22px;
        height: 2.5px;
    }

    
}

    /* Show hamburger menu and adjust layout for mobile */
    @media (max-width: 768px) {
       
        

        /* Programmes section responsive for mobile */
        .programmes-grid {
            grid-template-columns: 1fr;
            gap: 20px;
        }

        .programmes-overview-section {
            padding: 50px 20px;
        }

        .intro-text {
            font-size: 14px;
            line-height: 1.6;
        }

        .programme-image {
            height: 150px;
        }

        .programme-content {
            padding: 15px;
        }

        .programme-title {
            font-size: 16px;
            margin-bottom: 10px;
        }

        .programme-description {
            font-size: 12px;
            margin-bottom: 15px;
        }

        .programme-highlights li {
            font-size: 12px;
            margin-bottom: 8px;
        }

        .read-more-link {
            font-size: 13px;
        }

        /* Details section responsive for mobile */
        .programmes-details-section {
            padding: 50px 20px;
        }

        .section-title {
            font-size: 22px;
            margin-bottom: 8px;
        }

        .section-subtitle {
            font-size: 14px;
            margin-bottom: 30px;
        }

        .programme-details-wrapper {
            max-width: 100%;
        }

        .programme-section-title {
            font-size: 18px;
            margin: 20px 0 12px 0;
        }

        .programme-overview-text {
            font-size: 13px;
            margin-bottom: 20px;
            line-height: 1.7;
        }

        .programme-detail {
            margin-bottom: 15px;
            border-left: 3px solid var(--primary-color);
        }

        .detail-summary {
            padding: 14px 15px;
            font-size: 14px;
        }

        .detail-icon {
            font-size: 10px;
        }

        .detail-content {
            padding: 15px;
        }

        .detail-content p {
            font-size: 12px;
            margin-bottom: 10px;
            line-height: 1.6;
        }

        .detail-subtitle {
            font-size: 13px;
        }

        .detail-list li {
            font-size: 12px;
            margin-bottom: 5px;
            line-height: 1.6;
        }
    }

/* ============== KEY PROJECTS & INITIATIVES SECTION ============== */
/* This section showcases major projects and initiatives with images */
.projects-section {
    padding: 60px 0;
    background-color: #f8f9fa;
}

/* Projects Section Title */
.projects-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 40px;
    letter-spacing: 0.5px;
}

/* Projects Grid - 3 columns that responsive down to 1 column */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* Individual Project Card */
.project-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

/* Hover effect for project cards */
.project-card:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    transform: translateY(-5px);
}

/* Project Image Container */
.project-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
    background-color: #f0f0f0;
}

/* Project Image Styling */
.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

/* Image zoom on card hover */
.project-card:hover .project-image img {
    transform: scale(1.08);
}

/* Project Card Content Padding */
.project-content {
    padding: 25px;
}

/* Project Date */
.project-date {
    font-size: 12px;
    color: #999;
    margin-bottom: 10px;
}

/* Project Title */
.project-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 15px;
    line-height: 1.4;
}

/* Project Description */
.project-description {
    font-size: 13px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
}


/* ============== 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 Logo and Info Section */
.footer-info {
    border-right: 1px solid rgba(255, 255, 255, 0.2);
    padding-right: 40px;
}

.footer-logo {
    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 Titles and Links */
.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 Section */
.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);
}

/* Social Links */
.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 DESIGN - TABLET (768px and below) ============== */
@media (max-width: 768px) {
    .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;
    }

    .footer {
        padding: 40px 0 15px;
    }
}

/* ============== RESPONSIVE DESIGN - MOBILE PHONES (480px and below) ============== */
@media (max-width: 480px) {
    .footer-container {
        grid-template-columns: 1fr;
        gap: 30px;
        margin-bottom: 25px;
    }

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

    .footer-ministry {
        font-size: 12px;
    }

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

    .footer-section-title {
        font-size: 14px;
        margin-bottom: 15px;
    }

    .footer-links a {
        font-size: 12px;
    }

    .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;
    }
}
