/* Reset and Base Styles */
:root {
    --color-primary: #4CAF50; /* A fresh green, like nature/skincare */
    --color-primary-dark: #388E3C;
    --color-secondary: #FFC107; /* A warm accent yellow */
    --color-text-dark: #212121;
    --color-text-light: #555555;
    --color-background-light: #F8F8F8;
    --color-background-white: #FFFFFF;
    --color-border: #EEEEEE;
    --font-family-thai: 'Noto Sans Thai', sans-serif; /* Example: Google Font for Thai */
    --font-family-body: 'Roboto', sans-serif; /* Example: Google Font for general text */
    --font-family-headings: 'Sarabun', sans-serif; /* Example: Google Font for headings */
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-family-body); /* Default to Roboto or a similar sans-serif */
    line-height: 1.6;
    color: var(--color-text-light);
    background-color: var(--color-background-light);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    padding: 20px 0; /* Add some vertical padding for overall page */
}

/* Adjust font for Thai characters if Noto Sans Thai is preferred for body */
body, h1, h2, h3, p, ul, span, a {
    font-family: var(--font-family-thai), var(--font-family-body);
}


/* Layout Container */
.container {
    max-width: 960px; /* Increased max-width for a more spacious feel */
    margin: auto;
    background: var(--color-background-white);
    padding: 30px;
    border-radius: 12px; /* Slightly more rounded corners */
    box-shadow: 0 4px 12px rgba(0,0,0,0.08); /* Softer, more prominent shadow */
}

/* Typography */
h1, h2, h3 {
    font-family: var(--font-family-headings), var(--font-family-thai), sans-serif;
    color: var(--color-text-dark);
    margin-bottom: 0.8em;
    line-height: 1.2;
}

h1 {
    font-size: 2.5em; /* Larger main title */
    margin-top: 0;
}

h2 {
    font-size: 1.8em;
    border-bottom: 2px solid var(--color-border); /* Clearer separator */
    padding-bottom: 10px;
    margin-top: 40px;
}

h3 {
    font-size: 1.4em;
    color: var(--color-primary-dark);
    margin-top: 25px;
}

p {
    margin-bottom: 1em;
}

ul {
    list-style-type: disc;
    margin-left: 25px;
    margin-bottom: 1em;
}

/* Affiliate Disclaimer */
.affiliate-disclaimer {
    font-size: 0.85em;
    color: var(--color-text-light);
    margin-top: 40px;
    border-top: 1px dashed var(--color-border); /* Dotted line for a softer look */
    padding-top: 15px;
    text-align: center;
}

.affiliate-disclaimer p {
    margin-bottom: 0.5em;
}

/* Affiliate Buttons */
.affiliate-link-btn {
    display: inline-flex; /* Use flex for alignment */
    align-items: center;
    justify-content: center;
    background-color: var(--color-primary);
    color: white;
    padding: 12px 20px;
    text-decoration: none;
    border-radius: 6px;
    margin-right: 15px;
    margin-top: 20px;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease;
    min-width: 150px; /* Ensure buttons have a minimum width */
}

.affiliate-link-btn:hover {
    background-color: var(--color-primary-dark);
    transform: translateY(-2px); /* Slight lift effect */
}

/* Tags */
.tags {
    margin-top: 30px;
    font-size: 0.85em;
    border-top: 1px solid var(--color-border);
    padding-top: 15px;
}

.tags strong {
    color: var(--color-text-dark);
    margin-right: 10px;
}

.tags span {
    display: inline-block;
    background-color: var(--color-background-white); /* Changed tag background */
    border: 1px solid var(--color-border);
    color: var(--color-text-light);
    padding: 6px 12px;
    border-radius: 20px; /* Pill-shaped tags */
    margin-right: 8px;
    margin-bottom: 8px;
    transition: background-color 0.3s ease;
}

.tags span:hover {
    background-color: var(--color-primary);
    color: white;
    cursor: default;
}

/* Header specific styles */
header p em {
    font-size: 1.1em;
    color: var(--color-text-dark);
    display: block;
    margin-top: -10px;
    margin-bottom: 20px;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .container {
        padding: 20px;
        margin: 10px;
    }
    h1 {
        font-size: 2em;
    }
    h2 {
        font-size: 1.5em;
        margin-top: 30px;
    }
    .affiliate-link-btn {
        display: block; /* Stack buttons on small screens */
        margin-right: 0;
        margin-bottom: 10px;
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 480px) {
    body {
        padding: 10px 0;
    }
    .container {
        padding: 15px;
        border-radius: 8px;
    }
    h1 {
        font-size: 1.8em;
    }
    h2 {
        font-size: 1.3em;
    }
    .affiliate-link-btn {
        padding: 10px 15px;
        font-size: 0.9em;
    }
    .tags span {
        padding: 5px 10px;
        font-size: 0.8em;
    }
}
