/* --- Basic Reset & Global Styles --- */
:root {
    /* Thai-inspired Palette */
    --primary-color: #e63946; /* A warm, Siam red */
    --accent-color: #f1faee; /* A soft, off-white */
    --dark-bg: #1d3557; /* A deep, indigo blue */
    --light-text: #f1faee;
    --muted-text: #a8dadc; /* A soft, dusty turquoise */
    --card-bg: #457b9d; /* A lighter blue for cards */
    --border-color: #457b9d;
}

body {
    font-family: 'Sarabun', sans-serif;
    line-height: 1.7;
    margin: 0;
    background-color: var(--dark-bg);
    color: var(--light-text);
    position: relative; /* Needed for the pseudo-element to be positioned */
}

/* Global Thai pattern overlay */
body::before {
    content: '';
    position: fixed; /* Fixed position to cover the whole viewport */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23457b9d' fill-opacity='0.15'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none; /* Allows clicking through the pattern */
    z-index: 1; /* Places it behind the content */
}

.container {
    width: 90%;
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
    position: relative; /* Creates a new stacking context */
    z-index: 2; /* Ensures content is above the pattern */
}

/* --- Image Styles --- */
.content-image {
    width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 2rem 0; /* Adds space above and below the image */
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.image-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Two columns */
    gap: 20px; /* Space between images */
    margin: 2rem 0;
}

.image-grid img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

/* --- Typography --- */
h1, h2, h3 {
    font-family: 'Kanit', sans-serif;
    line-height: 1.2;
    font-weight: 700;
}

h1 {
    font-size: 3.5rem;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 1rem;
}

h2 {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

p {
    font-size: 1.1rem;
    color: var(--muted-text);
    margin-bottom: 1.5rem;
}

/* --- Section Styles --- */
section {
    padding: 60px 0;
    border-bottom: 1px solid var(--border-color);
}

section:last-of-type {
    border-bottom: none;
}

#hero {
    text-align: center;
    padding: 80px 0;
}

#hero p {
    font-size: 1.25rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    color: var(--accent-color);
}

/* --- Component Styles --- */
.cta-button {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--accent-color);
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: 700;
    font-family: 'Kanit', sans-serif;
    text-decoration: none;
    border-radius: 8px; /* Less rounded, more formal */
    margin-top: 1.5rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 2px solid transparent;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(230, 57, 70, 0.3);
    background-color: var(--accent-color);
    color: var(--primary-color);
    border-color: var(--primary-color);
}

ul.impact-list, ul.team-list {
    list-style: none;
    padding: 0;
}

ul.impact-list li, ul.team-list li {
    background-color: var(--card-bg);
    padding: 20px;
    margin-bottom: 15px;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
}

ul.impact-list strong, ul.team-list strong {
    color: var(--accent-color);
    display: block;
    margin-bottom: 0.5rem;
}

/* --- Footer --- */
footer {
    text-align: center;
    padding: 40px 20px;
    font-size: 0.9rem;
    color: var(--muted-text);
}

/* --- Responsive Design --- */
@media (max-width: 768px) {
    h1 {
        font-size: 2.8rem;
    }
    h2 {
        font-size: 2rem;
    }
    section {
        padding: 40px 0;
    }
    .image-grid {
        grid-template-columns: 1fr; /* Stack images on small screens */
    }
}