/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2c5530;
    --secondary-color: #4a7c59;
    --text-color: #333;
    --text-light: #666;
    --bg-color: #f5f5f5;
    --white: #ffffff;
    --border-color: #e0e0e0;
    --hover-color: #1e3d21;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Header Styles */
.header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    padding: 20px 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logos {
    display: flex;
    align-items: center;
    gap: 30px;
    justify-content: center;
}

.logo {
    width: auto;
    filter: brightness(0) invert(1);
}

.vivara-logo {
    height: 44px;
}

.cj-logo {
    height: 34px;
}

@media (max-width: 768px) {
    .logos {
        gap: 20px;
    }

    .logo {
        height: 30px;
    }
}

/* Banner Section */
.banner-section {
    width: 100%;
    margin: 0;
}

.banner-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* Country Selection Section */
.country-selection {
    background-color: var(--white);
    padding: 60px 0;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #E0946F;
    margin-bottom: 40px;
    letter-spacing: -0.5px;
}

.country-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
    margin: 0 auto;
    max-width: 1200px;
}

.country-button {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 16px 20px;
    background-color: var(--white);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    text-decoration: none;
    color: var(--text-color);
    transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    gap: 16px;
    width: 100%;
    box-sizing: border-box;
}

.country-button:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(44, 85, 48, 0.15);
    background-color: #f9f9f9;
}

.country-flag {
    font-size: 2rem;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.country-info {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}

.country-name {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 4px;
    display: block;
    line-height: 1.3;
}

.country-url {
    font-size: 0.875rem;
    color: var(--text-light);
    display: block;
}

@media (max-width: 768px) {
    .page-title {
        font-size: 2rem;
        margin-bottom: 30px;
    }

    .country-buttons {
        grid-template-columns: 1fr;
        gap: 12px;
        max-width: 500px;
    }

    .country-button {
        padding: 14px 18px;
    }

    .country-flag {
        font-size: 1.75rem;
    }

    .country-name {
        font-size: 1rem;
    }

    .country-url {
        font-size: 0.8rem;
    }
}

/* Content Section */
.content-section {
    background-color: var(--white);
    padding: 80px 0;
    border-top: 1px solid var(--border-color);
}

.content-title {
    font-size: 2.25rem;
    font-weight: 700;
    color: #E0946F;
    margin-bottom: 16px;
    margin-top: 24px;
    text-align: left;
    line-height: 1.5;
}

.content-text {
    margin: 0 auto;
    font-size: 1.125rem;
    line-height: 1.6;
    color: var(--text-color);
}

.language-section {
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--border-color);
}

.language-section:last-of-type {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.language-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.content-text p {
    margin-bottom: 20px;
}

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

@media (max-width: 768px) {
    .content-section {
        padding: 60px 0;
    }

    .content-title {
        font-size: 1.75rem;
        margin-bottom: 25px;
    }

    .content-text {
        font-size: 1rem;
    }

    .language-section {
        margin-bottom: 30px;
        padding-bottom: 30px;
    }

    .language-title {
        font-size: 1.25rem;
        margin-bottom: 15px;
    }
}

/* Partners Section */
.partners-section {
    background-color: var(--bg-color);
    padding: 80px 0;
    border-top: 1px solid var(--border-color);
}

.partners-title {
    font-size: 2.25rem;
    font-weight: 700;
    color: #E0946F;
    margin-bottom: 50px;
    letter-spacing: -0.5px;
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 30px;
    align-items: center;
    justify-items: center;
    margin: 0 auto;
}

.partner-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--white);
    border-radius: 8px;
    width: 100%;
    height: 140px;
    box-sizing: border-box;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.partner-logo:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.partner-logo img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: grayscale(20%);
    transition: filter 0.3s ease;
}

.partner-logo:hover img {
    filter: grayscale(0%);
}

@media (max-width: 768px) {
    .partners-section {
        padding: 60px 0;
    }

    .partners-title {
        font-size: 1.75rem;
        margin-bottom: 40px;
    }

    .partners-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 20px;
    }

    .partner-logo {
        height: 120px;
        padding: 12px;
    }

    .partner-logo img {
        width: 100%;
        height: 100%;
        max-width: 100%;
        max-height: 100%;
    }
}

@media (max-width: 480px) {
    .partners-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Footer */
.footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 30px 0;
    text-align: center;
}

.footer p {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Utility Classes */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
}
