/* ============== 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;
    }
}


/* Skip link - accessible "Skip to main content" */
.skip-link {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
    z-index: 10000;
    background: #003f87;
    color: #fff;
    padding: 8px 12px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
}
.skip-link:focus {
    left: 12px;
    top: 12px;
    width: auto;
    height: auto;
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

/* ============== 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;
}

.contact-info a,
.search-section a {
    color: white;
    text-decoration: none;
}


/* ============== 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 ============== */



/* ============== HERO SECTION ============== */
.hero-section {
    position: relative;
    /* Use min-height to ensure the hero never collapses; height can expand if content requires it */
    min-height: 400px;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Slider internals — make sure slides always fill the hero's height */
.hero-slider { position: absolute; inset: 0; height: 100%; max-height: 450px; }
.hero-slide { position: absolute; inset: 0; height: 100%; background-size: cover; background-position: center; opacity: 0; transition: opacity 1s ease-in-out; }
.hero-slide.active { opacity: 1; }
.hero-overlay { position:absolute; inset:0; background: rgba(0,0,0,0.35); pointer-events:none; z-index:2;max-height: 450px; }
.hero-content { position: relative; z-index: 5; color: #fff; padding: 28px 20px; max-width: 1100px; margin: 0 auto; text-align:center; }
.hero-title { font-size: 28px; margin: 0 0 8px; }
.hero-subtitle { margin: 0; font-size: 16px; }
.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 {
    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));
     /* background: linear-gradient(rgba(82, 75, 104, 0.3), rgba(66, 75, 105, 0.4)); */
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: white;
    max-width: 900px;
    padding: 0 20px;
}

.hero-title {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    letter-spacing: -0.5px;
}

.hero-subtitle {
    font-size: 20px;
    font-weight: 500;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
    letter-spacing: 0.2px;
}


/* ============== MANDATE SECTION ============== */
/* This section displays the organization's mandate with text and image side-by-side */
.mandate-section {
    background-color: #f8f9fa;
    padding: 60px 0;
    margin: 40px 0;
}

.mandate-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

/* Mandate Text Container */
.mandate-text {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

/* Mandate Section Title */
.mandate-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 20px;
    letter-spacing: 1px;
}

/* Mandate Description Text */
.mandate-description {
    font-size: 16px;
    color: var(--gray-dark);
    line-height: 1.8;
    margin-bottom: 30px;
}

/* Read More Button Style */
.btn-mandate{
    background-color: #c9a135;
    color: white;
    padding: 12px 35px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: fit-content;
}
a.btn-mandate{
    color: white;
    text-decoration:none;
}
.btn-mandate:hover {
    background-color: #b8901f;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(201, 161, 53, 0.3);
}

/* Mandate Image Container */
.mandate-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Mandate Image Styling */
.mandate-img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
    /* INSERT PROFESSIONAL PORTRAIT IMAGE HERE - see HTML comments for details */
}

/* ============== PROGRAMS & ACTIVITIES SECTION ============== */
/* This section showcases four main programs using a card grid layout */
.programs-section {
    padding: 60px 0;
    background-color: white;
}

/* Programs Section Title */
.programs-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 20px;
    letter-spacing: 1px;
}

/* Programs Section Description */
.programs-description {
    font-size: 16px;
    color: var(--gray-dark);
    line-height: 1.8;
    margin-bottom: 50px;
    max-width: 900px;
}

/* Programs Grid - 4 columns that responsive down to 1 column on mobile */
.programs-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

/* programs card */
.program-card {
    position: relative;
    min-height: 310px;
    display: block;
    overflow: hidden;
    padding: 0;
    border: 0;
    border-radius: 10px;
    color: #fff;
    text-align: left;
    text-decoration: none;
}

.program-card-image {
    width: 100%;
    height: 100%;
    position: absolute;
    inset: 0;
    object-fit: cover;
    transition: transform .45s ease;
}
.program-name {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-color);
}

.program-card-overlay {
    /* position: relative; */
    position:absolute;
    inset:0;
    z-index: 1;
    /* min-height: 310px; */
    display: flex;
    flex-direction: column;
    justify-content: end;
    padding: 24px;
    background: linear-gradient(0deg, rgba(0, 45, 75, .95), rgba(0, 45, 75, .0));
}

.program-card .program-name { color: #fff; }
.program-card .program-description,
.program-card .program-link {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity .3s ease, transform .3s ease;
}

.program-card:hover .program-card-image,
.program-card:focus-visible .program-card-image {
    transform: scale(1.08);
}

.program-card:hover .program-description,
.program-card:hover .program-link,
.program-card:focus-visible .program-description,
.program-card:focus-visible .program-link {
    opacity: 1;
    transform: translateY(0);
}

 /* Individual Program Card  *
.program-card {
    background-color: #f8f9fa;
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #e0e0e0;
    cursor: pointer;
}

/* Hover effect for program cards  *
.program-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    background-color: white;
}

 /* Program Icon Container  *
.program-icon {
    margin-bottom: 20px;
     /* INSERT ICON HERE - Font Awesome or custom SVG - see HTML comments  *
}

/* Program Icon Styling  
.program-icon i {
    font-size: 48px;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

/* Icon hover animation 
.program-card:hover .program-icon i {
    transform: scale(1.1);
    color: var(--primary-light);
}

/* Program Name/Title 
.program-name {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 15px;
}

/* Program Description Text 
.program-description {
    font-size: 14px;
    color: var(--gray-dark);
    line-height: 1.6;
}
*/


/* ============== LATEST NEWS & QUICK LINKS SECTION ============== */
/* This section displays news articles and quick navigation links side-by-side */
.news-quicklinks-section {
    padding: 60px 0;
    background-color: white;
}

/* Wrapper for news and quick links - creates 2-column layout */
.news-quicklinks-wrapper {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}

/* Latest News Container */
.latest-news {
    flex: 1;
}

/* News Section Title */
.news-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 30px;
    letter-spacing: 0.5px;
}

/* News Grid - 2 columns that stack on mobile */
.news-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

/* Individual News Card */
.news-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;
    border: 1px solid #e0e0e0;
}
.profile-link {
    color: inherit;
    text-decoration: none;
}

/* Hover effect for news cards */
.news-card:hover {
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
    transform: translateY(-3px);
}

/* News Image Container */
.news-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background-color: #f0f0f0;
}

/* News Image Styling */
.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

/* Image zoom on card hover */
.news-card:hover .news-image img {
    transform: scale(1.05);
}

/* News Card Content Padding */
.news-content {
    padding: 20px;
}

/* News Date */
.news-date {
    font-size: 12px;
    color: #999;
    margin-bottom: 8px;
}

/* News Headline */
.news-headline {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 12px;
    line-height: 1.4;
}

/* News Excerpt/Description */
.news-excerpt {
    font-size: 13px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
}

/* Read More Link */
.read-more {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    transition: color 0.3s ease;
}

.read-more:hover {
    color: var(--primary-light);
}

/* ============== QUICK LINKS SIDEBAR ============== */
/* Sidebar containing quick navigation links */
.quick-links-sidebar {
    background-color: #f8f9fa;
    padding: 30px;
    border-radius: 8px;
    height: fit-content;
    position: sticky;
    top: 100px;
}

/* Quick Links Title */
.quicklinks-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 25px;
}

/* Quick Links List */
.quick-links-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Individual Quick Link Item */
.quick-link-item {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Last item - no border */
.quick-link-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

/* Quick Link Icon */
.quick-link-item i {
    font-size: 24px;
    color: var(--primary-color);
    width: 30px;
    text-align: center;
}

/* Quick Link Text */
.quicklink {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    flex: 1;
}

.quicklink:hover {
    color: var(--primary-light);
}

/* ============== 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 {
    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 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;
}



@media (min-width:900px) { .hero-section { min-height: 520px; } .hero-title { font-size: 40px; } .hero-subtitle { font-size: 18px; } }

/* ============== RESPONSIVE DESIGN - HAMBURGER MENU ============== */
/* Show hamburger menu and adjust layout for tablet (768px and below) */
@media (max-width: 768px) {
   

    /* Adjust mandate section layout */
    .mandate-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .mandate-title {
        font-size: 24px;
    }

    .mandate-description {
        font-size: 14px;
    }

    /* Adjust programs grid for tablet */
    .programs-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .programs-title {
        font-size: 24px;
    }

    .program-card {
        padding: 20px;
    }

    .program-icon i {
        font-size: 40px;
    }

    .program-name {
        font-size: 16px;
    }
}

/* ============== 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: 70px;
    }

    /* Hero section responsive */
    .hero-section {
        height: 300px;
    }

    .hero-title {
        font-size: 28px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    /* .nav-divider {
        display: none;
    } */

    /* 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;
    }

    /* Adjust news and quick links for tablet */
    .news-quicklinks-wrapper {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .quick-links-sidebar {
        position: relative;
        top: auto;
        width: 100%;
    }

    .news-grid {
        grid-template-columns: 1fr;
    }

    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .project-image {
        height: 180px;
    }

    /* Footer responsive for tablet */
    .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 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: 250px;
    }

    .hero-title {
        font-size: 20px;
    }

    .hero-subtitle {
        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;
    }

    /* Programs grid becomes single column on mobile */
    .programs-grid {
        grid-template-columns: 1fr;
    }

    .mandate-title,
    .programs-title {
        font-size: 20px;
    }

    .mandate-description,
    .programs-description {
        font-size: 13px;
    }

    .program-card {
        padding: 15px;
    }

    .program-icon i {
        font-size: 32px;
    }

    .program-name {
        font-size: 14px;
    }

    .program-description {
        font-size: 12px;
    }

    .btn-mandate {
        padding: 10px 25px;
        font-size: 14px;
    }

    /* News and Quick Links - Stack vertically on mobile */
    .news-quicklinks-wrapper {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .quick-links-sidebar {
        position: relative;
        top: auto;
        width: 100%;
    }

    .news-grid {
        grid-template-columns: 1fr;
    }

    .news-section-title {
        font-size: 20px;
    }

    .news-headline {
        font-size: 14px;
    }

    .quicklinks-title {
        font-size: 20px;
    }

    .quick-link-item {
        margin-bottom: 12px;
        padding-bottom: 12px;
    }

    .quick-link-icon {
        font-size: 16px;
    }

    /* Projects section - 1 column on mobile */
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .projects-section-title {
        font-size: 20px;
    }

    .project-image {
        height: 200px;
    }

    .project-title {
        font-size: 14px;
    }

    .project-description {
        font-size: 12px;
    }

    .read-more-link {
        font-size: 13px;
    }

    /* Footer responsive for mobile */
    .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;
    }
}
