/* Global Reset & Basic Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Lato', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
}

h1, h2, h3, h4, .logo {
    font-family: 'Playfair Display', serif;
    color: #1a1a1a;
}

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

ul {
    list-style: none;
}

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

/* Navbar */
.navbar {
    background: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #d32f2f; /* China Red */
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-weight: 500;
    font-size: 1rem;
}

.nav-links a:hover, .nav-links a.active {
    color: #d32f2f;
}

.btn-primary {
    background: #d32f2f;
    color: #fff !important;
    padding: 10px 20px;
    border-radius: 5px;
}

.btn-primary:hover {
    background: #b71c1c;
}

/* Hero Section */
.hero {
    /* Using a linear gradient overlay for better text readability */
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), #666; 
    /* Ideally replace #666 with a background-image url */
    background-size: cover;
    background-position: center;
    height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    color: #fff;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.btn-large {
    display: inline-block;
    background: #fff;
    color: #d32f2f;
    padding: 15px 35px;
    font-weight: bold;
    border-radius: 30px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-large:hover {
    background: #eee;
}

/* Common Sections */
.section {
    padding: 60px 0;
}

.bg-light {
    background-color: #fff;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: #d32f2f;
    margin: 15px auto 0;
}

/* Grids */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
}

/* Cards */
.card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s;
}

.card:hover {
    transform: translateY(-5px);
}

.card-content {
    padding: 20px;
}

.card h3 {
    margin-bottom: 10px;
}

.read-more {
    display: inline-block;
    margin-top: 15px;
    color: #d32f2f;
    font-weight: bold;
}

/* Info Box */
.info-box {
    background: #f4f4f4;
    padding: 40px;
    text-align: center;
    border-radius: 8px;
}

.info-box h3 {
    margin-bottom: 15px;
}

.info-box a {
    display: inline-block;
    margin-top: 20px;
    border: 2px solid #333;
    padding: 10px 25px;
    border-radius: 25px;
}

.info-box a:hover {
    background: #333;
    color: #fff;
}

/* Footer */
footer {
    background: #1a1a1a;
    color: #ccc;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    color: #fff;
    margin-bottom: 20px;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col a:hover {
    color: #fff;
    text-decoration: underline;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid #333;
    padding-top: 20px;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none; 
        /* Mobile menu logic would go here */
    }
    .hero h1 {
        font-size: 2.5rem;
    }
}

.lang-switcher {
    margin-left: 15px;
    padding: 6px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
}

body[data-lang="zh-CN"] {
    font-family: 'Noto Sans SC', 'Microsoft YaHei', 'PingFang SC', sans-serif;
    line-height: 1.8;
}

body[data-lang="es-ES"] {
    font-family: 'Lato', 'Segoe UI', 'Helvetica Neue', sans-serif;
    line-height: 1.7;
}
