/*
Theme Name: A4HSS - Agency for Health System Strengthening
Theme URI: https://yourdomain.com
Author: A4HSS Team
Author URI: https://yourdomain.com
Description: Custom theme for Agency for Health System Strengthening (A4HSS)
Version: 1.0
License: GPL v2 or later
Text Domain: a4hss
*/

/* ===== PASTE YOUR ENTIRE EXISTING style.css CONTENT BELOW THIS LINE ===== */
/* ===== A4HSS MAIN STYLESHEET ===== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #81D742;
    color: #333;
    line-height: 1.6;
    font-size: 18px;
}

/* ===== TOP BAR - FULL WIDTH, NO GAPS ===== */
.top-bar {
    font-size: 15px;
    width: 100%;
}

.top-bar-container {
    display: flex;
    width: 100%;
    margin: 0;
    padding: 0;
}

/* Left section - contact info */
.top-bar-left {
    background-color: #33CC33;
    color: #ffffff;
    flex: 1;
    padding: 13px 20px;
}

.top-bar-left a {
    color: #ffffff;
    text-decoration: none;
}

.top-bar-left a:hover {
    text-decoration: underline;
}

.top-bar-left span {
    margin-right: 20px;
    display: inline-block;
}

/* Right section - social icons */
.top-bar-right {
    background-color: #CCCC00;
    width: 237px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 10px 0;
}

.top-bar-right a {
    color: #ffffff;
    font-size: 1.2srem;
    transition: transform 0.2s, opacity 0.2s;
}

.top-bar-right a:hover {
    transform: scale(1.15);
    opacity: 0.85;
    color: #ffffff;
}

/* ===== HEADER ===== */
header {
    background-color: #fff;
    padding: 15px 20px;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    gap: 20px;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.logo-area img {
    height: 60px;
}

/* ===== NAVIGATION ===== */
nav {
    flex: 1;
    background-color: #fff;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
}

nav ul li {
    position: relative;
}

nav ul li a {
    display: block;
    color: #1E73BE;
    text-decoration: none;
    padding: 10px 16px;
    font-size: 1.05rem;
    font-weight: 500;
    transition: background 0.3s, color 0.3s;
    white-space: nowrap;
}

nav ul li a:hover {
    background-color: #e6f3ff;
    color: #0d4a73;
    border-radius: 4px;
}

nav ul li a.active {
    background-color: #e6f3ff;
    color: #0d4a73;
    font-weight: 600;
    border-radius: 4px;
}

nav ul li ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #fff;
    min-width: 200px;
    z-index: 999;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

nav ul li:hover ul {
    display: block;
}

nav ul li ul li a {
    padding: 10px 16px;
    font-size: 1rem;
    white-space: nowrap;
}

nav ul li ul li a:hover {
    background-color: #e6f3ff;
    border-radius: 0;
}

/* Donate Button - RIGHT */
.header-donate {
    flex-shrink: 0;
}

.btn-donate {
    background-color: #33CC33;
    color: #ffffff;
    border: 2px solid #33CC33;
    padding: 10px 24px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s;
    display: inline-block;
    animation: pulse 2s infinite;
}

.btn-donate:hover {
    background-color: #28a828;
    border-color: #28a828;
    color: #ffffff;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(51,204,51,0.5); }
    70% { box-shadow: 0 0 0 12px rgba(51,204,51,0); }
    100% { box-shadow: 0 0 0 0 rgba(51,204,51,0); }
}

/* ===== SLIDESHOW ===== */
.slideshow-container {
    position: relative;
    max-width: 100%;
    margin: 0 auto;
    background-color: #1a1a1a;
}

.slideshow-container .slides {
    display: none;
    position: relative;
}

.slideshow-container .slides img {
    width: 100%;
    height: 500px;
    object-fit: cover;
}

.slide-caption {
    position: absolute;
    bottom: 20%;
    left: 0;
    right: 0;
    text-align: center;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: #ffffff;
    padding: 30px 20px;
}

.slide-caption h3 {
    font-size: 2rem;
    margin-bottom: 10px;
    color: #81D742;
}

.slide-caption p {
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
    color: #ffffff;
}

.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    margin-top: -25px;
    padding: 16px;
    color: #ffffff;
    font-weight: bold;
    font-size: 1.5rem;
    transition: 0.3s;
    border-radius: 0 3px 3px 0;
    user-select: none;
    background-color: rgba(0,0,0,0.5);
    text-decoration: none;
    z-index: 10;
}

.next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

.prev:hover, .next:hover {
    background-color: rgba(0,0,0,0.8);
    color: #81D742;
}

.dots-container {
    text-align: center;
    position: absolute;
    bottom: 15px;
    left: 0;
    right: 0;
    z-index: 10;
}

.dot {
    cursor: pointer;
    height: 12px;
    width: 12px;
    margin: 0 5px;
    background-color: rgba(255,255,255,0.6);
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.3s;
}

.dot:hover, .dot.active {
    background-color: #81D742;
}

.fade {
    animation-name: fade;
    animation-duration: 1s;
}

@keyframes fade {
    from {opacity: 0.4;}
    to {opacity: 1;}
}

/* ===== HERO SECTION ===== */
.hero {
    background: linear-gradient(rgba(0,0,0,0.55), rgba(0,0,0,0.55)), url('../images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    color: #ffffff;
    text-align: center;
    padding: 80px 20px;
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: #81D742;
}

.hero p {
    font-size: 1.2rem;
    max-width: 750px;
    margin: 0 auto 30px;
    color: #ffffff;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s;
    cursor: pointer;
}

.btn-primary {
    background-color: #33CC33;
    color: #ffffff;
    border: 2px solid #33CC33;
}

.btn-primary:hover {
    background-color: #28a828;
    border-color: #28a828;
    color: #ffffff;
}

.btn-secondary {
    background-color: transparent;
    color: #ffffff;
    border: 2px solid #ffffff;
}

.btn-secondary:hover {
    background-color: #ffffff;
    color: #1E73BE;
}

/* ===== SECTIONS ===== */
.section {
    padding: 60px 20px;
    background-color: #fff;
    margin-bottom: 0;
}

.section-alt {
    background-color: #f8f9fa;
}

.section .container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
}

.section-title h2 {
    color: #81D742;
    font-size: 2.2rem;
    margin-bottom: 10px;
}

.section-title .underline {
    width: 70px;
    height: 4px;
    background-color: #1E73BE;
    margin: 0 auto;
}

/* ===== CARD GRID ===== */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 12px;
}

.card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 25px;
    text-align: center;
    transition: box-shadow 0.3s, transform 0.3s;
}

.card:hover {
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
    transform: translateY(-4px);
}

/* Card icons - White icons in blue circle */
.card-icon {
    font-size: 2rem;
    margin-bottom: 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #1E73BE;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    color: #ffffff;
    text-align: center;
}

/* Make ALL Font Awesome icons in cards white */
.card-icon i,
.card-icon i.fas,
.card-icon i.far,
.card-icon i.fab {
    color: #ffffff !important;
}

/* Make ALL button icons white */
.btn i,
.btn-donate i,
.btn-primary i,
.btn-secondary i {
    color: #ffffff !important;
}

/* Make ALL social media icons white */
.top-bar-right a i,
.footer-grid a i,
.social-icons a i {
    color: #ffffff !important;
}

/* Make top bar contact icons white */
.top-bar-left span i,
.top-bar-left span::before {
    color: #ffffff !important;
}
/* Force all icons to be white */
.fa, .fas, .far, .fab, 
i[class*="fa-"],
span i,
a i,
.btn i {
    color: #ffffff !important;
}

/* Make emoji icons white on blue circle */
.card-icon {
    background-color: #1E73BE !important;
    width: 70px !important;
    height: 70px !important;
    line-height: 70px !important;
    border-radius: 50% !important;
    display: inline-block !important;
    text-align: center !important;
    font-size: 2rem !important;
    color: #ffffff !important;
}
/* ===== FOOTER ===== */
footer {
    background-color: #33CC33;
    color: #ffffff;
    padding: 50px 20px 20px;
}

footer .container {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

footer h3 {
    color: #ffffff;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

footer p, footer li {
    font-size: 0.95rem;
    margin-bottom: 8px;
    color: #ffffff;
}

footer a {
    color: #ffffff;
    text-decoration: none;
}

footer a:hover {
    color: #1E73BE;
    text-decoration: underline;
}

footer ul {
    list-style: none;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.2);
    padding-top: 20px;
    text-align: center;
    font-size: 0.9rem;
    color: #ffffff;
}

/* ===== FORMS ===== */
.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 5px;
    color: #333;
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
    font-family: inherit;
}

.form-group textarea {
    resize: vertical;
}

/* ===== MAKE ALL ICONS WHITE ===== */
.top-bar-left span i,
.top-bar-left span::before,
.top-bar-right a i,
.btn i,
.btn-donate i,
.footer-grid a i,
.card-icon i,
.hero-buttons a i {
    color: #ffffff !important;
}

/* For emoji icons in cards */
.card-icon {
    background-color: #1E73BE;
    width: 70px;
    height: 70px;
    line-height: 70px;
    border-radius: 50%;
    display: inline-block;
    text-align: center;
    font-size: 2rem;
}
/* ===== ADDITIONAL FIXES ===== */

/* Make all icons white */
.top-bar-left i,
.top-bar-right i,
.header-donate i,
.btn i,
.btn-donate i,
.card-icon i,
footer i,
nav ul li a i {
    color: #ffffff;
}

/* Footer chevron icons */
footer ul li a i {
    margin-right: 8px;
    font-size: 0.7rem;
}

/* Fix dropdown chevron */
nav ul li a i {
    font-size: 0.7rem;
    margin-left: 4px;
}

/* Ensure all card icons have white color */
.card-icon i {
    color: #ffffff !important;
}

/* Button hover text */
.btn-primary:hover i,
.btn-donate:hover i {
    color: #ffffff;
}

.btn-secondary:hover i {
    color: #1E73BE;
}

/* ===== ENHANCED RESPONSIVE DESIGN ===== */

/* Tablet Landscape (1024px and below) */
@media (max-width: 1024px) {
    .header-container {
        flex-wrap: wrap;
        gap: 15px;
    }
    
    nav ul li a {
        padding: 10px 12px;
        font-size: 0.9rem;
    }
    
    .hero h2 {
        font-size: 2.2rem;
    }
    
    .section-title h2 {
        font-size: 1.8rem;
    }
}

/* Tablet Portrait (768px and below) */
@media (max-width: 768px) {
    /* Header */
    .header-container {
        flex-direction: column;
        text-align: center;
    }
    
    .logo-area {
        justify-content: center;
        margin-bottom: 10px;
    }
    
    /* Navigation - Hamburger already works */
    nav ul {
        flex-direction: column;
        width: 100%;
    }
    
    nav ul li {
        width: 100%;
        text-align: center;
    }
    
    nav ul li a {
        padding: 12px 20px;
        font-size: 1rem;
    }
    
    nav ul li ul {
        position: static;
        width: 100%;
        box-shadow: none;
        border: none;
        padding-left: 20px;
    }
    
    nav ul li ul li a {
        text-align: center;
    }
    
    /* Top Bar */
    .top-bar-container {
        flex-direction: column;
    }
    
    .top-bar-left {
        text-align: center;
        padding: 8px 12px;
    }
    
    .top-bar-left span {
        display: inline-block;
        margin: 3px 8px;
        font-size: 0.75rem;
    }
    
    .top-bar-right {
        width: 100%;
        padding: 8px 0;
    }
    
    /* Slideshow */
    .slideshow-container .slides img {
        height: 300px;
    }
    
    .slide-caption {
        bottom: 10%;
        padding: 15px;
    }
    
    .slide-caption h3 {
        font-size: 1.2rem;
    }
    
    .slide-caption p {
        font-size: 0.8rem;
    }
    
    .prev, .next {
        padding: 10px;
        font-size: 1rem;
    }
    
    /* Hero Section */
    .hero {
        padding: 50px 20px;
    }
    
    .hero h2 {
        font-size: 1.6rem;
    }
    
    .hero p {
        font-size: 0.95rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-buttons .btn {
        width: 80%;
        text-align: center;
    }
    
    /* Buttons */
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    /* Cards */
    .card-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .card {
        padding: 20px;
    }
    
    .card-icon {
        width: 55px;
        height: 55px;
        line-height: 55px;
        font-size: 1.5rem;
    }
    
    .card h3 {
        font-size: 1.2rem;
    }
    
    /* Section padding */
    .section {
        padding: 40px 15px;
    }
    
    .section-title h2 {
        font-size: 1.6rem;
    }
    
    /* Forms */
    .form-group input,
    .form-group textarea,
    .form-group select {
        padding: 10px;
        font-size: 0.9rem;
    }
    
    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 25px;
    }
    
    .footer-grid ul {
        padding-left: 0;
    }
    
    .footer-grid ul li {
        display: inline-block;
        margin: 0 10px;
    }
    
    /* Contact Page - Side by side becomes stacked */
    .contact-side-by-side {
        flex-direction: column !important;
    }
    
    /* Donation Page */
    .payment-tabs {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .payment-tab {
        padding: 8px 15px;
        font-size: 0.85rem;
    }
    
    .row-2col {
        flex-direction: column;
        gap: 0;
    }
    
    .amount-btn {
        font-size: 0.8rem;
        padding: 8px !important;
    }
    
    /* Donation amount buttons */
    .amount-buttons {
        flex-wrap: wrap;
    }
    
    /* Projects page */
    .project-card {
        flex-direction: column;
    }
    
    .project-image {
        width: 100%;
    }
    
    .project-content {
        width: 100%;
    }
}

/* Mobile Small (480px and below) */
@media (max-width: 480px) {
    .top-bar-left span {
        display: block;
        margin: 5px 0;
    }
    
    .slideshow-container .slides img {
        height: 200px;
    }
    
    .slide-caption {
        bottom: 5%;
    }
    
    .slide-caption h3 {
        font-size: 1rem;
    }
    
    .slide-caption p {
        font-size: 0.7rem;
        display: none;
    }
    
    .hero h2 {
        font-size: 1.3rem;
    }
    
    .section-title h2 {
        font-size: 1.3rem;
    }
    
    .card h3 {
        font-size: 1.1rem;
    }
    
    .card p {
        font-size: 0.85rem;
    }
    
    /* Donation page tabs */
    .payment-tab {
        flex: 1;
        text-align: center;
        font-size: 0.75rem;
        padding: 8px 10px;
    }
    
    .payment-tab i {
        margin-right: 5px;
    }
    
    /* Hide some less important elements on very small screens */
    .method-card p {
        font-size: 0.8rem;
        word-break: break-all;
    }
    
    .copy-btn {
        display: inline-block;
        margin-top: 5px;
    }
    
    /* Gallery page */
    .gallery-filter button {
        padding: 5px 12px;
        font-size: 0.75rem;
    }
    
    .gallery-item .overlay h4 {
        font-size: 0.75rem;
    }
    
    .gallery-item .overlay p {
        font-size: 0.65rem;
        display: none;
    }
}

/* Landscape orientation fix for mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .slideshow-container .slides img {
        height: 250px;
    }
    
    .hero {
        padding: 30px 20px;
    }
    
    nav ul {
        max-height: 300px;
        overflow-y: auto;
    }
}

/* Fix for very large screens (improved readability) */
@media (min-width: 1400px) {
    .container,
    .header-container,
    nav .container,
    footer .container {
        max-width: 1300px;
    }
    
    body {
        font-size: 18px;
    }
    
    .hero h2 {
        font-size: 3rem;
    }
    
    .hero p {
        font-size: 1.3rem;
    }
}

/* Print styles (optional - for when users print pages) */
@media print {
    .top-bar,
    .header-donate,
    .slideshow-container,
    .btn,
    footer,
    .hero-buttons {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .card {
        break-inside: avoid;
        border: 1px solid #ccc;
    }
}
