:root {
    --bg-color: #ffffff;
    --text-color: #24292f;
    --accent-color: #0969da;
    --secondary-bg: #f6f8fa;
    --card-bg: #ffffff;
    --border-color: #d0d7de;
    --font-main: 'Inter', sans-serif;
}

* {
    box-sizing: border_box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    /* Kept but carefully managed */
    min-height: 100vh;
    padding-bottom: 2rem;
    padding-top: 130px;
    /* Space for fixed header - ensure this is present */
}

@media (max-width: 768px) {
    body {
        padding-top: 100px;
        /* Smaller header on mobile */
    }

    header {
        padding: 0.5rem 1rem;
    }

    header .logo img {
        height: 50px;
        /* Smaller logo on mobile */
    }

    header nav {
        gap: 0.75rem;
        /* Smaller gap */
    }

    .nav-cta {
        padding: 0.4rem 0.8rem;
        /* Smaller button */
        font-size: 0.85rem;
    }
}

html {
    overflow-x: hidden;
    /* Better place for this */
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

a {
    color: var(--accent-color);
    text-decoration: none;
}

section {
    padding: 2rem 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

h1,
h2,
h3 {
    line-height: 1.2;
    margin-bottom: 1rem;
    color: #1f2328;
}

h1 {
    font-size: 2.5rem;
    font-weight: 700;
}

h2 {
    font-size: 2rem;
    font-weight: 600;
    margin-top: 2rem;
}

h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--accent-color);
}

p {
    margin-bottom: 1rem;
    color: #8b949e;
}

ul {
    list-style: none;
    padding-left: 0;
}

li {
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 1.5rem;
}

li::before {
    content: "•";
    color: var(--accent-color);
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* Specific Sections */

/* Header */
header {
    background-color: var(--secondary-bg);
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    /* Replaced width: 100% with right: 0 to prevent horizontal overflow */
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    /* Optional shadow for better visibility */
}

/* Navigation Styles */
header nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    padding: 0;
    margin: 0;
}

.nav-links li {
    padding: 0;
    margin: 0;
}

/* Remove the global bullet for nav items */
.nav-links li::before {
    content: none;
}

.nav-links a {
    color: var(--text-color);
    font-weight: 500;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--accent-color);
}

.hamburger {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-color);
}

/* Mobile Nav */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        /* Hidden by default on mobile */
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--bg-color);
        flex-direction: column;
        padding: 1.5rem;
        border-bottom: 1px solid var(--border-color);
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        z-index: 99;
    }

    .nav-links.active {
        display: flex;
    }

    .hamburger {
        display: block;
    }

    .nav-links li {
        width: 100%;
        text-align: center;
        padding: 0.5rem 0;
    }

    .nav-links a {
        justify-content: center;
        font-size: 1.1rem;
    }
}

header .logo img {
    height: 80px;
    /* Increased size as requested */
    width: auto;
    object-fit: contain;
}

/* Hero */
.hero {
    text-align: center;
    padding-top: 4rem;
    padding-bottom: 4rem;
    background: radial-gradient(circle at center, #f0f6fc 0%, var(--bg-color) 70%);
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #0969da;
    background: none;
    -webkit-background-clip: unset;
    -webkit-text-fill-color: initial;
}

.hero .subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: #57606a;
}

.hero .cta-button {
    display: inline-block;
    background: linear-gradient(135deg, var(--accent-color), #1f6feb);
    color: white;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 700;
    margin-top: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(47, 129, 247, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.hero .cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(47, 129, 247, 0.6);
}

.hero .cta-button::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.hero .cta-button:hover::after {
    left: 100%;
}

/* Nav Call Button */
.nav-cta {
    background: linear-gradient(135deg, var(--accent-color), #1f6feb);
    color: white !important;
    padding: 0.5rem 1.25rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(47, 129, 247, 0.3);
}

.nav-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(47, 129, 247, 0.5);
    opacity: 0.9;
}

/* Cards Grid */
.grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 2rem;
}

@media (min-width: 768px) {
    .grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.card {
    background-color: var(--card-bg);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: border-color 0.3s;
}

.card:hover {
    border-color: var(--accent-color);
}

.card h3 {
    margin-bottom: 0.75rem;
}

/* Profile Section */
.profile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

@media (min-width: 768px) {
    .profile {
        flex-direction: row;
        align-items: flex-start;
    }

    .profile img {
        max-width: 300px;
    }

    .profile-content {
        flex: 1;
    }
}

.stats {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-top: 2rem;
}

.stat-item {
    text-align: center;
    background: var(--secondary-bg);
    padding: 1rem;
    border-radius: 8px;
    min-width: 100px;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-color);
}

.stat-label {
    font-size: 0.9rem;
    color: #8b949e;
}

/* Services List */
.services-list li {
    background: var(--card-bg);
    padding: 0.75rem 1rem;
    margin-bottom: 0.75rem;
    border-radius: 6px;
    padding-left: 1rem;
    /* Reset padding for non-bullet style if preferred, keeping simple for now */
    border-left: 3px solid var(--accent-color);
}

.services-list li::before {
    content: none;
}

/* Role Cards Grid */
.role-cards-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 2rem;
}

@media (min-width: 768px) {
    .role-cards-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.role-card {
    background-color: #f7e7ce;
    /* Light beige/peach match */
    border: 2px solid #000;
    padding: 1.5rem;
    text-align: left;
    color: #000;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.role-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    text-align: center;
}

.role-card h3 {
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: #000;
}

.role-card p {
    color: #333;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Stats Container */
.stats-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    align-items: center;
    gap: 1.5rem;
    margin: 3rem 0;
    padding: 2rem 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.stat-box {
    text-align: center;
    flex: 1;
    min-width: 150px;
}

.stat-num {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: #000;
}

.stat-desc {
    display: block;
    font-size: 0.9rem;
    color: #555;
    margin-top: 0.5rem;
}

/* Organisations Section */
.organisations-section {
    text-align: center;
    margin-top: 4rem;
}

.organisations-section h2 {
    font-weight: 800;
}

.logos-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-top: 2rem;
}

.logos-grid img {
    height: 50px;
    /* Slightly larger for better visibility */
    width: auto;
    object-fit: contain;
    mix-blend-mode: multiply;
    /* Simulates transparent background on white */
    transition: all 0.3s;
}

.logos-grid img:hover {
    transform: scale(1.1);
}

/* Footer */
footer {
    text-align: center;
    padding: 3rem 1.5rem;
    background-color: var(--secondary-bg);
    margin-top: 4rem;
    border-top: 1px solid var(--border-color);
}

.contact-info {
    margin-top: 1.5rem;
    font-size: 1.1rem;
}