:root {
    --primary-color: #1d4b00;
    --accent-color: #b5e941;
    --text-color: #333;
    --light-bg: #f8f9fa;
    --success-color: #28a745;
}

* {
    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);
    overflow-x: hidden;
}


/* Leadership section */
.leadership {
    background: white;
    padding-bottom: 40px;
}

/* Results section styling */
.results-images {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

.results-images .image-container {
    max-width: 500px;
    width: 100%;
}

.results-images .image-container img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    object-fit: cover;
}

.leadership-text h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin: 2rem 0 1rem 0;
    font-weight: 600;
}

/* Reduce spacing before results section */
[data-i18n="leadership.p12"] {
    margin-bottom: 10px;
}

.leadership-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 5%;
    width: 90%;
}

/* Keep two-column layout for first leadership section but hide second column */
#leadership .leadership-content {
    grid-template-columns: 1fr 1fr;
}

#leadership .leadership-text {
    grid-column: 1 / 3; /* Span both columns */
}

/* Results section keeps normal two-column layout with image */
#results .leadership-content {
    grid-template-columns: 1fr 1fr;
}

.leadership-images {
    display: flex;
    justify-content: center;
}

.leadership-images .image-container {
    max-width: 400px;
    width: 100%;
}

.leadership-images .image-container img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    object-fit: cover;
}

.leadership-text p,
.leadership-text-full p,
.leadership-text-partial p {
    margin-bottom: 20px;
    line-height: 1.7;
    color: #555;
    font-size: 1.1rem;
}

.leadership-text p:last-child {
    margin-bottom: 0;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
}

/* Language Switcher */
.language-switcher {
    display: flex;
    align-items: center;
    margin-left: 20px;
    gap: 5px;
}

.language-option {
    cursor: pointer;
    padding: 5px 8px;
    border-radius: 4px;
    font-weight: 500;
    transition: all 0.3s ease;
    color: var(--text-color);
    opacity: 0.7;
}

.language-option.active {
    color: var(--primary-color);
    opacity: 1;
    font-weight: 600;
}

.language-option:not(.active):hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.language-separator {
    color: #ccc;
    user-select: none;
}

/* Adjust nav links for language switcher */
.nav-links {
    display: flex;
    align-items: center;
    gap: 20px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links li:last-child {
    margin-left: 10px;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo {
    height: 40px;
}

.site-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0;
    line-height: 1;
}

.author-name {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-left: 15px;
    font-weight: 600;
    border-left: 2px solid var(--accent-color);
    padding-left: 15px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s ease;
    display: block;
}

.nav-links a:hover {
    color: var(--accent-color);
}

/* Section Headers */
.section-header {
    max-width: 1440px;
    margin: 0 auto 3rem;
    width: 100%;
    padding: 0 5%;
}

.section-header h2 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.section-header h3.section-subtitle {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 0;
    font-weight: 500;
    line-height: 1.5;
    opacity: 0.8;
    font-style: italic;
}

/* Sections */
section {
    padding: 80px 0;  /* Reduced padding */
    min-height: auto;  /* Changed from 100vh */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Reduce spacing for trusted section */
.trusted {
    min-height: auto;
    padding-top: 50px;
    padding-bottom: 50px;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    text-align: left;
    min-height: 50vh;  /* Increased height for better centering */
    padding: 120px 0 60px;  /* Further reduced bottom padding */
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero .section-header {
    margin-bottom: 2rem;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
    width: 90%;
}

.hero h1 {
    font-size: 2.2rem;  /* Reduced from 3rem */
    margin-bottom: 1rem;
    line-height: 1.3;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

/* About Section */
.about {
    background: white;
    padding-top: 40px;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 5%;
    width: 90%;
}

.about-images {
    display: flex;
    justify-content: center;
}

.image-container {
    max-width: 400px;
    width: 100%;
}

.spaced-paragraph {
    margin-bottom: 30px !important;
    padding-bottom: 20px !important;
    border-bottom: 1px solid var(--accent-color);
}

.image-container img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    object-fit: cover;
}

/* Trusted Section */
.trusted {
    background: var(--light-bg);
    text-align: left;
}

.trusted .section-header {
    padding-bottom: 0;
    margin-bottom: 1.5rem;
}

.logo-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 2rem 5%;
    overflow: hidden;
    max-width: 100%;
}

.logo-row {
    display: flex;
    white-space: nowrap;
    animation: scroll 30s linear infinite;
    will-change: transform; /* Improve performance */
    width: 100%; /* Reset width */
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-100% / 2)); } /* More precise calculation */
}

/* Second carousel - styled to match first row exactly */
.second-carousel {
    position: relative;
    overflow: hidden;
    margin: 0;
    padding: 0;
}

.second-wrapper {
    display: flex;
    white-space: nowrap;
    animation: scroll 30s linear infinite;
    will-change: transform;
    width: 100%;
}

.second-slide {
    display: inline-block;
    margin: 0 1.5rem; /* Match exactly the margin from .logo-item */
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.second-slide:hover {
    opacity: 1;
}

.second-slide img {
    max-height: 60px;
    width: auto;
}

.logo-item {
    display: inline-block;
    margin: 0 1.5rem;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.logo-item:hover {
    opacity: 1;
}

.logo-item img {
    max-height: 60px;
    width: auto;
}

/* Make first row logos smaller */
.logo-row:first-child .logo-item img {
    max-height: 40px !important;
}

/* Contact Section */
.contact {
    background-color: #ffffff;
    padding: 100px 0;
}

.contact-content {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 5%;
    width: 90%;
}

.contact .section-header {
    margin-bottom: 3rem;
}

.contact-wrapper {
    max-width: 1000px;
    margin: 0 auto;
}

.contact-intro h3 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.contact-intro .lead {
    font-size: 1.25rem;
    line-height: 1.7;
    color: #444;
    margin-bottom: 3rem;
    max-width: 700px;
}

/* Email Form */
.email-form-container {
    margin-bottom: 3rem;
}

.email-form .form-group {
    margin-bottom: 1rem;
    max-width: 600px;
}

.email-form label {
    display: block;
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.input-group {
    display: flex;
    border: 2px solid #e1e5ee;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    max-width: 600px;
}

.input-group:focus-within {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(181, 233, 65, 0.3);
}

.input-group input[type="email"] {
    flex: 1;
    padding: 0.9rem 1.2rem;
    border: none;
    font-size: 1rem;
    outline: none;
    background: #fff;
}

.input-group .submit-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0 1.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.input-group .submit-btn:hover {
    background: #164000;
}

.input-group .submit-btn svg {
    width: 20px;
    height: 20px;
}

.privacy-note {
    font-size: 0.85rem;
    color: #666;
    margin-top: 0.75rem;
}

/* Form Messages */
.form-message {
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
}

.form-message.success {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.form-message.error {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

/* Benefits Grid */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.benefit {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.benefit-icon {
    background: rgba(181, 233, 65, 0.2);
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 0.25rem;
}

.benefit-icon svg {
    width: 24px;
    height: 24px;
}

.benefit-content h4 {
    font-size: 1.1rem;
    color: var(--primary-color);
    margin-bottom: 0.4rem;
    font-weight: 600;
}

.benefit-content p {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
}

/* Contact Note */
.contact-note {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid #eee;
    color: #666;
    font-size: 0.95rem;
}

.contact-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
    position: relative;
}

.contact-link:after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

.contact-link:hover {
    color: var(--accent-color);
}

.contact-link:hover:after {
    width: 100%;
}

/* Responsive Design */
@media (max-width: 768px) {
    .contact h2 {
        font-size: 2rem;
    }
    
    .contact-intro h3 {
        font-size: 1.6rem;
    }
    
    .contact-intro .lead {
        font-size: 1.1rem;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .input-group {
        flex-direction: column;
        border: none;
    }
    
    .input-group input[type="email"] {
        border: 2px solid #e1e5ee;
        border-radius: 8px;
        margin-bottom: 1rem;
        width: 100%;
    }
    
    .input-group .submit-btn {
        width: 100%;
        justify-content: center;
        padding: 0.9rem 1.2rem;
        border-radius: 8px;
    }
}

/* CTA Buttons */
.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s ease;
}

.cta-button:hover {
    background: var(--accent-color);
}

.calendly {
    margin-top: 1rem;
}

/* Animations */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

section {
    animation: slideIn 1s ease-out;
}

/* Footer Styles */
.footer {
    background-color: #f8f8f8;
    padding: 20px 5%;
    text-align: center;
    border-top: 1px solid #eaeaea;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.footer p {
    margin: 10px 0;
    font-size: 0.9rem;
    color: var(--text-color);
}

.footer a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

/* Privacy Policy Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    overflow-y: auto;
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 30px;
    width: 80%;
    max-width: 800px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

.close-button {
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 28px;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
}

/* Confirmation Page Styles */
.confirmation-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 5% 60px;
    background: linear-gradient(135deg, var(--light-bg) 0%, #ffffff 100%);
}

.confirmation-content {
    text-align: center;
    max-width: 600px;
    padding: 60px 40px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.confirmation-icon {
    margin-bottom: 30px;
}

.confirmation-icon .fas {
    font-size: 4rem;
    color: var(--success-color);
}

.confirmation-content h1 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    font-weight: 700;
}

.confirmation-content p {
    font-size: 1.2rem;
    color: var(--text-color);
    margin-bottom: 20px;
    line-height: 1.7;
}

.confirmation-actions {
    margin-top: 40px;
}

.confirmation-actions .btn {
    display: inline-block;
    padding: 15px 30px;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-bottom: 30px;
}

.confirmation-actions .btn:hover {
    background: var(--accent-color);
    color: var(--primary-color);
    transform: translateY(-2px);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: var(--light-bg);
    border-radius: 50%;
    color: var(--primary-color);
    text-decoration: none;
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .confirmation-content {
        padding: 40px 20px;
        margin: 0 20px;
    }
    
    .confirmation-content h1 {
        font-size: 2rem;
    }
    
    .confirmation-content p {
        font-size: 1rem;
    }
    
    .confirmation-icon .fas {
        font-size: 3rem;
    }
}

.close-button:hover {
    color: var(--primary-color);
}

.policy-content {
    margin-top: 20px;
}

.policy-content h3 {
    color: var(--primary-color);
    margin-top: 20px;
    margin-bottom: 10px;
}

.policy-content p, .policy-content ul {
    margin-bottom: 15px;
    line-height: 1.6;
}

.policy-content ul {
    padding-left: 20px;
}

.about-text p {
    margin-bottom: 20px;
    line-height: 1.7;
    color: #555;
    font-size: 1.1rem;
}

.about-text p:last-child {
    margin-bottom: 0;
}

/* Style for Adevinta achievements list */
.achievements-list {
    margin: 15px 0;
    padding-left: 0;
    list-style: none;
}

.achievements-list li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 10px;
    font-size: 1.1rem;
    line-height: 1.6;
    color: #555;
}

.achievements-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 12px;
    width: 8px;
    height: 8px;
    background: var(--accent-color);
    border-radius: 50%;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links li:not(.language-switcher) {
        display: none;
    }
    
    .language-switcher {
        margin-left: auto;
    }
    
    .author-name {
        display: none;
    }
    
    .about-content,
    .leadership-content {
        grid-template-columns: 1fr;
        text-align: left;
    }
    
    .about-images {
        grid-template-columns: 1fr;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .logo-item {
        margin: 0 1rem;
    }
    
    .logo-item img {
        max-height: 40px;
    }
    
    .footer-content {
        flex-direction: column;
    }
}