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

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: 100px;
    height: auto;
    object-fit: contain;
}

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

/* Hamburger Button - Hidden by default (shows only on mobile) */

/* Hamburger Lines - Three horizontal bars */

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

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

/* Hero Background Image */
.news-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 */
.news-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 */
.news-hero-content {
    position: relative;
    z-index: 5;
    color: white;
    max-width: 600px;
    padding: 0 40px;
}

/* Hero Title */
.news-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 */
.news-hero-subtitle {
    font-size: 18px;
    font-weight: 400;
    margin-bottom: 40px;
    line-height: 1.6;
    letter-spacing: 0.5px;
}

/* ============== HERO BUTTONS ============== */
.news-hero-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

.btn-primary,
.btn-secondary {
    padding: 15px;
    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);
}

/* Events Button - Arrow icon */
.btn-events i {
    margin-left: 8px;
    font-size: 14px;
}

/* ============== HERO SEARCH BAR ============== */
.hero-search {
    display: flex;
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 4px;
    overflow: hidden;
    max-width: 450px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.search-input {
    flex-grow: 1;
    border: none;
    padding: 15px 20px;
    font-size: 16px;
    background: transparent;
    color: var(--text-color);
}

.search-input::placeholder {
    color: #bbb;
}

.search-input:focus {
    outline: none;
}

.search-btn {
    background-color: transparent;
    border: none;
    padding: 0 20px;
    cursor: pointer;
    color: #999;
    font-size: 16px;
    transition: color 0.3s ease;
}

.search-btn:hover {
    color: var(--primary-color);
}

/* ============== FEATURED NEWS SECTION ============== */
.featured-news-section {
    padding: 30px 0px;
    background-color: white;
}

.section-title {
    font-size: 32px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom:20px;
    letter-spacing: 0.5px;
}

.featured-news-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
    align-items: stretch;
}

/* Large Featured News Item */
.featured-news-large {
    position: relative;
    height: 300px;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.featured-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}



/* Featured News Item (Right) */
.featured-news-item {
    background-color: #f8f9fa;
    padding: 30px;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.news-badge {
    display: inline-block;
    background-color: #ffc107;
    color: #333;
    padding: 6px 15px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 15px;
    width: fit-content;
}

.featured-title {
    font-size: 22px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 15px;
    line-height: 1.4;
}

.featured-description {
    color: var(--gray-dark);
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.read-more {
    color: #ffc107;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: gap 0.3s ease;
    width: fit-content;
}

.read-more:hover {
    gap: 12px;
}

.read-more i {
    font-size: 12px;
}

/* ============== NEWS SECTION ============== */
.news-section {
    padding: 10px 0;
    background-color: white;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
.profile-link {
    /* display: block; */
    color: inherit;
    text-decoration: none;
}
.news-card {
    background-color: white;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.news-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.news-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.news-date {
    color: #999;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

.news-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 12px;
    line-height: 1.4;
}

.news-description {
    color: var(--gray-dark);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 15px;
    flex-grow: 1;
}

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

/* ============== 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-title {
        font-size: 42px;
    }

    .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;
    }
      .hamburger {
        flex-shrink: 0;
    }

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

    

    

}

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

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

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

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

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

    .hero-section {
        height: auto;
        padding: 40px 0;
    }

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

    

    

  

    /* Featured News responsive */
    .featured-news-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .featured-news-large {
        height: 250px;
    }

    .section-title {
        font-size: 26px;
    }

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

    /* News Grid - 1 column on mobile */
    .news-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .news-image {
        height: 160px;
    }

    .news-content {
        padding: 20px;
    }

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

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

    .hero-search {
        max-width: 100%;
    }
}