@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700&family=Lato:wght@400;700&display=swap');

body {
    font-family: 'Lato', sans-serif;
    background-color: #F4F1EB; /* Oatmeal */
    color: #333333; /* Charcoal Grey */
    margin: 0;
    padding: 0;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 850px;
    margin: 0 auto;
    padding: 2rem;
    position: relative; /* Needed for language switcher positioning */
}

/* --- Language Switcher --- */
.language-switcher {
    position: absolute;
    top: 2.5rem;
    right: 2rem;
    font-family: 'Lato', sans-serif;
}

.language-switcher .current-lang {
    cursor: pointer;
    font-weight: 700;
    color: #888;
    border: 1px solid #E0DCD5;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    background-color: #fff;
    transition: all 0.3s ease;
}
.language-switcher .current-lang:hover {
    color: #333;
    border-color: #B98B73;
}

.language-switcher .lang-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background-color: #fff;
    border: 1px solid #E0DCD5;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.07);
    list-style: none;
    padding: 0.5rem 0;
    margin: 0.5rem 0 0 0;
    z-index: 10;
}

.language-switcher.active .lang-dropdown {
    display: block;
}

.language-switcher .lang-dropdown a {
    display: block;
    padding: 0.5rem 1.5rem;
    text-decoration: none;
    color: #333;
    font-weight: 700;
    white-space: nowrap;
}

.language-switcher .lang-dropdown a:hover {
    background-color: #F4F1EB;
}

header {
    text-align: center;
    padding: 2rem 0;
    margin-bottom: 2rem;
}

header h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    color: #333333;
    margin: 0;
    font-weight: 700;
}

header p {
    font-size: 1.1rem;
    color: #555;
    margin-top: 0.5rem;
    font-style: italic;
}

nav {
    text-align: center;
    margin-bottom: 3rem;
    border-top: 1px solid #E0DCD5;
    border-bottom: 1px solid #E0DCD5;
    padding: 1rem 0;
}

nav a {
    font-family: 'Lato', sans-serif;
    text-decoration: none;
    color: #B98B73; /* Muted Gold */
    margin: 0 20px;
    font-weight: 700;
    font-size: 1.05rem;
    transition: color 0.3s ease;
}

nav a:hover {
    color: #333333;
}

.hero {
    text-align: center;
    margin-bottom: 4rem;
    max-height: 500px; /* Control max height */
    overflow: hidden; /* Hide part of the image that overflows */
    display: flex; /* Helps with vertical alignment if needed */
    justify-content: center;
    align-items: center;
    border-radius: 8px; /* Apply radius to the container */
}

.hero img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    filter: brightness(98%) sepia(10%);
}

.cta-section {
    text-align: center;
    background-color: #FFFFFF;
    padding: 3rem 2rem;
    border-radius: 8px;
    margin-bottom: 4rem;
    box-shadow: 0 8px 25px rgba(0,0,0,0.05);
}

.cta-section h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    margin: 0 0 1rem 0;
    color: #333;
}

.cta-section p {
    font-size: 1.1rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto 2rem auto;
}

.cta-button {
    display: inline-block;
    background-color: #B98B73; /* Muted Gold */
    color: #FFFFFF;
    padding: 1rem 2.5rem;
    border-radius: 5px;
    text-decoration: none;
    font-family: 'Lato', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.cta-button:hover {
    background-color: #a87c65;
    transform: translateY(-3px);
}

.content-section {
    margin-bottom: 3rem;
    text-align: center;
}

.content-section h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    color: #333333;
    margin-bottom: 2.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #B98B73;
    display: inline-block;
}

.article-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    text-align: left;
}

.article-card {
    background-color: #FFFFFF;
    border: 1px solid #EAEAEA;
    border-radius: 8px;
    padding: 2rem;
    text-decoration: none;
    color: #333333;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.07);
    background-color: #FFFDFB;
}

.article-card h3 {
    font-family: 'Playfair Display', serif;
    margin: 0 0 0.5rem 0;
    font-size: 1.6rem;
    color: #333333;
}

.article-card p {
    margin: 0;
    color: #666;
    line-height: 1.6;
}

footer {
    text-align: center;
    padding: 2rem 0;
    margin-top: 3rem;
    border-top: 1px solid #E0DCD5;
    font-size: 0.9rem;
    color: #888;
}

footer .attribution {
    font-size: 0.8rem;
    color: #aaa;
    margin-top: 1rem;
}

footer .attribution a {
    color: #aaa;
    text-decoration: none;
}
footer .attribution a:hover {
    text-decoration: underline;
}

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(51, 51, 51, 0.95); /* Charcoal, slightly transparent */
    color: #F4F1EB;
    padding: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(5px);
    transition: transform 0.5s ease;
    transform: translateY(100%);
}

.cookie-banner.active {
    transform: translateY(0);
}

.cookie-banner p {
    margin: 0 1.5rem 0 0;
}

.cookie-accept-btn {
    background-color: #B98B73;
    color: #fff;
    border: none;
    padding: 0.5rem 1.5rem;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 700;
}

/* --- Article Page Specific Styles --- */
.article-content {
    background-color: #FFFFFF;
    border: 1px solid #EAEAEA;
    border-radius: 8px;
    padding: 3rem 4rem; /* More padding for articles */
    text-align: left;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}

.article-content h1 {
    font-family: 'Playfair Display', serif;
    font-size: 2.8rem;
    text-align: center;
    margin-bottom: 2rem;
    color: #333;
}

.article-content h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: #B98B73; /* Use accent color for subheadings */
    border-bottom: none; /* Remove the underline from the main style */
    padding-bottom: 0;
}

.article-content p, .article-content li {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #444;
}

.article-content ul {
    list-style-type: none;
    padding-left: 0;
}

.article-content li {
    padding-left: 1.5em;
    position: relative;
    margin-bottom: 1em;
}

.article-content li::before {
    content: '✧';
    position: absolute;
    left: 0;
    color: #B98B73; /* Muted Gold accent */
    font-size: 0.8em;
    top: 0.4em;
}

.article-image {
    border-radius: 8px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    margin-bottom: 1rem;
    max-width: 100%;
}

.image-right {
    float: right;
    width: 45%;
    margin-left: 2rem;
    margin-bottom: 1rem;
}

.image-full-width {
    width: 100%;
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.image-caption {
    display: block;
    text-align: center;
    font-size: 0.9rem;
    color: #888;
    margin-top: 0.5rem;
}

/* Clear float for elements after a floated image */
.article-content h2, .article-content h3 {
    clear: both;
}

@media (max-width: 768px) {
    .image-right {
        float: none;
        width: 100%;
        margin-left: 0;
        margin-bottom: 2rem;
    }
    .article-content {
        padding: 2rem 1.5rem;
    }
    .article-content h1 {
        font-size: 2.2rem;
    }
    .article-content h2 {
        font-size: 1.8rem;
    }
    .table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch; /* Smoother scrolling on iOS */
        border: 1px solid #EAEAEA;
        border-radius: 8px;
        margin: 2rem 0;
    }
    .zodiac-table {
        width: 100%;
        min-width: 600px; /* Force table to be wide, causing scroll */
    }
}

/* --- In-Article CTA Section --- */
.article-cta-section {
    text-align: center;
    background-color: #FFFDFB; /* A very subtle warm color */
    padding: 2.5rem 2rem;
    border-radius: 8px;
    margin-top: 3rem;
    border: 1px solid #EAEAEA;
}

.article-cta-section h3 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    margin: 0 0 1rem 0;
    color: #333;
}

.article-cta-section p {
    font-size: 1.1rem;
    color: #666;
    max-width: 500px;
    margin: 0 auto 1.5rem auto;
}
