:root {
    /* Color Palette */
    --color-primary: #052c65;
    /* Darker Navy Blue */
    --color-primary-dark: #001240;
    --color-primary-light: #5472d3;
    --color-accent-orange: #ff6f00;
    --color-accent-yellow: #ffca28;
    --color-text-main: #333333;
    --color-text-light: #ffffff;
    --color-bg-light: #f5f5f5;
    --color-bg-white: #ffffff;

    /* Typography */
    --font-main: 'Inter', sans-serif;
    --font-heading: 'Roboto', sans-serif;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --container-width: 1200px;
}

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

body {
    font-family: var(--font-main);
    color: var(--color-text-main);
    line-height: 1.6;
    background-color: var(--color-bg-light);
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    width: 90%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

/* Sections */
section {
    padding: var(--spacing-lg) 0;
}

footer {
    background-color: var(--color-primary-dark);
    color: var(--color-text-light);
    padding: var(--spacing-md) 0;
    text-align: center;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 4px;
    font-weight: 600;
    text-align: center;
    transition: background-color 0.3s ease, transform 0.2s ease;
    margin: 0.5rem;
    font-family: var(--font-heading);
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    background-color: var(--color-accent-orange);
    color: var(--color-text-light);
}

.btn-primary:hover {
    background-color: #e65100;
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid var(--color-text-light);
    color: var(--color-text-light);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.btn-accent {
    background-color: var(--color-accent-yellow);
    color: var(--color-text-main);
}

.btn-accent:hover {
    background-color: #ffb300;
}

/* Hero Section */
.hero {
    background-color: var(--color-primary);
    color: var(--color-text-light);
    text-align: center;
    padding: 6rem 0;
    background-image: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 100%);
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    margin-bottom: var(--spacing-sm);
    font-weight: 700;
    line-height: 1.2;
}

.hero-description {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-lg);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.9;
}

.hero-ctas {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--spacing-sm);
}

/* Definition Section */
.definition {
    background-color: var(--color-bg-white);
    text-align: center;
}

.definition h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    margin-bottom: var(--spacing-sm);
    color: var(--color-primary);
}

.definition p {
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto var(--spacing-md);
    color: var(--color-text-main);
}

/* Resources Sections (Podcasts & Books) */
.section-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    margin-bottom: var(--spacing-md);
    color: var(--color-primary);
    text-align: center;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-md);
    justify-content: center;
}

.card {
    background-color: var(--color-bg-white);
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.15);
}

.card img {
    width: 100%;
    height: auto;
    object-fit: cover;
    aspect-ratio: 16/9;
    /* Default for podcasts */
}

/* Specific aspect ratio for podcasts */
.podcasts .card img {
    aspect-ratio: 1/1;
    object-fit: cover;
}

/* Specific aspect ratio for books */
.books .card img {
    aspect-ratio: 2/3;
    /* Book cover ratio */
    object-fit: contain;
    background-color: #eee;
    /* Fallback/padding color */
    padding: 1rem;
}

.card-title {
    padding: var(--spacing-md) var(--spacing-sm) var(--spacing-sm);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-text-main);
    text-align: center;
    flex-grow: 1;
    /* Push meta to bottom */
}

.card-meta {
    padding: 0 var(--spacing-sm) var(--spacing-sm);
    font-size: 0.9rem;
    color: #666;
    text-align: center;
    margin-top: auto;
}

/* Newsletter Section */
.newsletter {
    background-color: var(--color-bg-light);
    text-align: center;
    border-top: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
}

.newsletter h2 {
    font-family: var(--font-heading);
    font-size: 2rem;
    margin-bottom: var(--spacing-sm);
    color: var(--color-primary);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.newsletter p {
    font-size: 1.2rem;
    margin-bottom: var(--spacing-md);
}

/* Communities Section */
.communities .card {
    text-align: center;
    /* padding: var(--spacing-md);  - handled in inner div */
    background-color: var(--color-bg-white);
    border: 1px solid #eee;
}

.community-links {
    margin-top: var(--spacing-sm);
    display: flex;
    justify-content: center;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-description {
        font-size: 1.2rem;
    }

    .hero-ctas {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 300px;
    }
}