/* CSS Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Kenyan Flag Colors - Gradient Versions */
    --kenya-black: linear-gradient(135deg, #000000 0%, #333333 100%);
    --kenya-red: linear-gradient(135deg, #BB0000 0%, #FF4444 100%);
    --kenya-green: linear-gradient(135deg, #006600 0%, #00AA00 100%);
    --kenya-white: #f8f9fa;
    --kenya-vanilla: #FFFDD0;
    
    /* Color Variables */
    --primary-black: #000000;
    --primary-red: #BB0000;
    --primary-green: #006600;
    --light-gray: #f4f4f4;
    --dark-gray: #333333;
    --text-color: #333333;
    --text-light: #666666;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 3rem;
    --spacing-xl: 4rem;
    
    /* Border Radius */
    --border-radius: 8px;
    --border-radius-lg: 16px;
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 8px rgba(0,0,0,0.15);
    --shadow-lg: 0 8px 16px rgba(0,0,0,0.2);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--kenya-white);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--spacing-sm);
}

h1 {
    font-size: 2.5rem;
    background: var(--kenya-red);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

h2 {
    font-size: 2rem;
    color: var(--primary-black);
}

h3 {
    font-size: 1.5rem;
    color: var(--primary-black);
}

p {
    margin-bottom: var(--spacing-sm);
}

.highlight {
    background: var(--kenya-vanilla);
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 600;
    color: var(--text-color);
}

/* Navigation */
.navbar {
    background: var(--kenya-white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: var(--spacing-sm) 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-size: 1.8rem;
    margin-bottom: 0;
}

.tagline {
    font-size: 0.9rem;
    color: var(--primary-black);
    font-weight: 600;
    margin: 0;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: var(--spacing-md);
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
}

.nav-menu a:hover,
.nav-menu a.active {
    background: var(--kenya-red);
    color: white;
}

.nav-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary-red);
}

/* Hero Section */
.hero {
    background: var(--kenya-black);
    color: white;
    padding: var(--spacing-md) 0;
    text-align: center;
}

.hero h2 {
    font-size: 2.5rem;
    color: white;
    margin-bottom: 10px;
}

.hero p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto var(--spacing-lg);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: var(--spacing-sm) var(--spacing-lg);
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 0 var(--spacing-xs);
}

.btn-primary {
    background: var(--kenya-red);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-red);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: var(--kenya-green);
    color: white;
}

.btn-secondary:hover {
    background: var(--primary-green);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-accent {
    background: var(--kenya-black);
    color: white;
}

.btn-accent:hover {
    background: var(--primary-black);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.cta-buttons {
    margin-top: var(--spacing-md);
}

/* Section Styles */
section {
    padding: 10px 0;
}

.section-title {
    text-align: center;
    margin-bottom: var(--spacing-sm);
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 100px;
    height: 4px;
    background: var(--kenya-red);
    margin: var(--spacing-sm) auto;
    border-radius: 2px;
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    max-width: 800px;
    margin: 1 auto var(--spacing-lg);
}

.subtitle-black{
    color: var(--primary-black)
}

.subtitle-green{
    color: var(--primary-green);
}

.subtitle-red{
    color: var(--primary-red)
}

/* Philosophy Section */
.philosophy {
    background: var(--light-gray);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 10px;
    margin: 10px 0;
}

.value-card {
    background: white;
    padding: var(--spacing-lg);
    border-radius: var(--border-radius-lg);
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.value-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.value-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--spacing-md);
    color: white;
    font-size: 2rem;
}

.value-subtitle {
    color: var(--primary-red);
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
}

.philosophy-footer {
    text-align: center;
    font-style: italic;
    color: var(--text-light);
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #ddd;
}

/* Initiatives Preview */
.initiatives-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 10px;
    margin: 10px 0;
}

.initiative-item {
    background: white;
    padding: var(--spacing-md);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.initiative-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.initiative-item i {
    font-size: 1.5rem;
    color: var(--primary-red);
    min-width: 40px;
}

.initiative-item h4 {
    margin: 0;
    font-size: 1rem;
}

.section-footer {
    text-align: center;
    margin-top: var(--spacing-md);
    margin-bottom: var(--spacing-md);
    padding-top: 5px;
    border-top: 2px solid var(--kenya-vanilla);
}

/* Footer */
.footer {
    background: var(--kenya-black);
    color: white;
    padding: var(--spacing-xl) 0 var(--spacing-md);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.footer-logo h3 {
    color: white;
    background: var(--kenya-red);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-lg);
}

.link-group h4 {
    color: var(--kenya-vanilla);
    margin-bottom: var(--spacing-sm);
}

.link-group ul {
    list-style: none;
}

.link-group a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.link-group a:hover {
    color: white;
}

.footer-contact i {
    color: var(--kenya-vanilla);
    margin-right: var(--spacing-xs);
}

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-md);
    border-top: 1px solid rgba(255,255,255,0.1);
    color: #aaa;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-toggle {
        display: block;
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        flex-direction: column;
        background: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow-md);
        padding: var(--spacing-md) 0;
        z-index: 999;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .hero h2 {
        font-size: 2rem;
    }
    
    .btn {
        display: block;
        margin: var(--spacing-sm) 0;
        width: 100%;
        max-width: 300px;
    }
    
    .cta-buttons {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .values-grid,
    .initiatives-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-links {
        flex-direction: column;
        gap: var(--spacing-md);
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .hero {
        padding: var(--spacing-lg) 0;
    }
    
    section {
        padding: var(--spacing-lg) 0;
    }
}

/* For Hero Section */
.hero h1 {
    background: none;
    -webkit-background-clip: unset;
    background-clip: unset;
    color: transparent;
    position: relative;
    text-decoration: none;
}

.hero h1::before {
    content: "TAIFA LA FURSA";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        #ffffff 35%, #ffffff 40%,
        #BB0000 40%, #BB0000 55%,
        #006600 55%, #006600 100%
    );
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Remove all purple underlines from links */
a {
    text-decoration: none !important;
    color: inherit !important;
}

/* Remove purple color for visited links */
a:visited {
    color: inherit !important;
}

/* Remove purple underline on hover/focus */
a:hover,
a:focus,
a:active {
    text-decoration: none !important;
    color: inherit !important;
}

/* Specifically target navigation links */
.nav-menu a,
.nav-menu a:visited,
.nav-menu a:hover,
.nav-menu a:focus,
.nav-menu a:active {
    color: var(--text-color) !important;
    text-decoration: none !important;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: white !important;
    background: var(--kenya-red) !important;
    text-decoration: none !important;
}

/* Remove purple from footer links */
.footer-links a,
.footer-links a:visited,
.footer-links a:hover,
.footer-links a:focus,
.footer-links a:active {
    color: #ccc !important;
    text-decoration: none !important;
}

.footer-links a:hover {
    color: white !important;
    text-decoration: underline !important; /* Optional: add different style on hover */
}

/* Remove purple from all buttons */
.btn,
.btn:visited,
.btn:hover,
.btn:focus,
.btn:active {
    text-decoration: none !important;
    color: white !important;
}

/* Remove outline that can look like underline */
a:focus {
    outline: none !important;
    box-shadow: none !important;
}

.h3ab{
    color: white;
}