/* Global Styles */
body {
    margin: 0;
    padding: 0;
    font-family: "Encode Sans", sans-serif;
    background-color: #f0f4f8;
    color: #2c2a29;
    line-height: 1.6;
}

main {
    padding-left: 20px;
    padding-right: 20px;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #1e8c9a;
}

/* Container Utility */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header Styles */
header {
    background-color: #f0f4f8;
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

header .logo {
    display: flex;
    align-items: center;
}

header .logo img {
    width: 40px;
    height: 40px;
    margin-right: 10px;
}

header nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 0;
}

header nav li {
    display: inline;
}

header nav a {
    font-weight: 600;
}

/* Hamburger Menu */
#hamburger {
    display: none;
    font-size: 24px;
    cursor: pointer;
}

/* Hero Section */
.hero {
    padding: 30px 20px;
    text-align: center;
    animation: fadeIn 1.5s ease-in;
}

.hero img {
    width: 200px;
    height: 200px;
    border-radius: 65%;
    object-fit: contain;
    object-position: center;
    margin-bottom: 10px;
}

.hero h1 {
    font-size: 2.5rem;
    margin: 5px 0;
}

.hero p {
    max-width: 600px;
    margin: 5px auto;
}

.cta-button {
    background-color: #3d5b3d; /* Primary accent */
    color: #f0f4f8;
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 10px;
    display: inline-block;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.cta-button:hover {
    background-color: #2c2a29;
}

/* Fade-in Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Clients Section */
#clients {
    padding: 20px 20px 40px;
    text-align: center;
}

#clients h2 {
    margin-bottom: 20px;
}

.client-wrapper {
    overflow: hidden;
    position: relative;
}

.client-container {
    display: flex;
    justify-content: center; /* Centers the client logos horizontally */
    gap: 20px;
    transition: transform 0.5s ease; /* Smooth auto-scroll */
    padding: 10px 0;
}

/* Each client logo container */
.client-logo {
    display: flex;
    flex-direction: column; /* Stack image on top of text */
    align-items: center;
    text-align: center;
    text-decoration: none; /* Remove default underline on links */
    color: inherit; /* Use parent text color */
}

.client-logo img {
    width: 64px; /* Fixed width */
    height: 64px; /* Fixed height */
    object-fit: contain; /* Maintain aspect ratio */
    border: 1px solid #a8d8e0; /* Light secondary accent */
    border-radius: 4px;
    margin-bottom: 4px; /* Spacing between logo and client's name */
}

.client-logo span {
    font-size: 0.9em;
    color: #2c2a29;
}

/* Scroll Arrow Buttons */
.scroll-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.8);
    border: none;
    cursor: pointer;
    font-size: 24px;
    padding: 5px;
    border-radius: 50%;
    display: none; /* Hidden by default; shown on hover */
    transition: background 0.3s ease;
}

.scroll-arrow:hover {
    background: rgba(255, 255, 255, 1);
}

#scroll-left {
    left: 10px;
}

#scroll-right {
    right: 10px;
}

.client-wrapper:hover .scroll-arrow {
    display: block;
}

/* Article Previews */
.article-preview {
    padding: 20px;
    border-bottom: 1px solid #a8d8e0;
    margin: 0 auto;
    max-width: 800px;
}

.article-preview h2 {
    color: #3d5b3d;
    margin-bottom: 10px;
}

.article-preview p {
    margin-bottom: 10px;
}

/* Footer Styles */
footer {
    background-color: #f0f4f8;
    border-top: 1px solid #a8d8e0;
    padding: 20px;
    text-align: center;
    font-size: 0.9rem;
}

.footer-links {
    margin-top: 10px;
}

.footer-links a {
    margin: 0 10px;
    display: inline-block;
}

.footer-links img {
    width: 24px;
    height: 24px;
}

/* Google Form Container */
.google-form iframe {
    max-width: 100%;
}

/* Responsive Styles */
@media (max-width: 768px) {
    header nav ul {
        display: none;
    }

    #hamburger {
        display: block;
    }

    /* Mobile Navigation Menu */
    #nav-menu.show {
        display: flex;
        flex-direction: column;
        gap: 10px;
        position: absolute;
        right: 20px;
        top: 60px;
        background-color: #f0f4f8;
        padding: 10px;
        border: 1px solid #a8d8e0;
    }

    /* Adjust client container for mobile */
    .client-container {
        flex-wrap: nowrap;
        overflow-x: auto;
    }

    .client-logo img {
        width: 80px;
        height: 80px;
    }
}
