:root {
    margin: 0;
    padding: 0;
    --primary-color: #2c5e2e;
    /* Forest Green */
    --secondary-color: #d4a373;
    /* Earthy Gold */
    --accent-color: #bc6c25;
    /* Warm Brown/Orange */
    --bg-color: #fefae0;
    /* Off-white/Cream */
    --text-color: #333;
    --card-bg: #fff;
    --font-heading: 'cc-near-myth-legends', serif;
    --font-body: 'Lato', sans-serif;
    --shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

* {
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

h1,
h2,
h3 {
    font-family: var(--font-heading);
    color: var(--primary-color);
}

a {
    text-decoration: none;
    color: inherit;
}

/* Hero Section */
.hero {
    position: relative;
    overflow: hidden;
    color: #fff;
    text-align: center;
    padding: 100px 20px;
    margin-bottom: 50px;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hero-overlay {
    background: linear-gradient(rgba(44, 94, 46, 0.8), rgba(44, 94, 46, 0.6));
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
    font-style: italic;
}

.hero .signature {
    margin-top: 20px;
    font-weight: bold;
    color: var(--secondary-color);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Books Grid */
.books-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 80px;
}

.book-card {
    background: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    will-change: transform, box-shadow;
}

.book-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.book-image {
    width: 100%;
    aspect-ratio: 2/3;
    overflow: hidden;
    position: relative;
    background-color: #f9f9f9;
    display: flex;
    align-items: center;
    justify-content: center;
}

.book-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
    backface-visibility: hidden;
}

.book-card:hover .book-image img {
    transform: scale(1.05);
}

.book-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.book-title {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.book-desc {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 20px;
    flex-grow: 1;
}

.book-meta {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 15px;
    border-top: 1px solid #eee;
    padding-top: 10px;
}

.book-price {
    font-size: 1.25rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: #fff;
    padding: 4px 4px;
    border-radius: 30px;
    text-align: center;
    font-weight: bold;
    transition: var(--transition);
    width: 100%;
    border: 2px solid var(--primary-color);
}

.btn:hover {
    background-color: transparent;
    color: var(--primary-color);
}

/* Free Resources Section */
.free-resources {
    background-color: var(--primary-color);
    color: #fff;
    text-align: center;
    padding: 60px 20px;
    border-radius: 20px;
    margin-bottom: 80px;
}

.free-resources h2 {
    color: #fff;
    margin-bottom: 20px;
}

.free-resources .btn-light {
    background-color: #fff;
    color: var(--primary-color);
    border: 2px solid #fff;
    width: auto;
    padding: 12px 40px;
}

.free-resources .btn-light:hover {
    color: #fff;
}

/* Spotify Section */
/* Spotify Section */
.spotify-section {
    background-color: #191414;
    /* Spotify Black */
    color: #fff;
    text-align: center;
    padding: 60px 20px;
    border-radius: 20px;
    margin-bottom: 80px;
    /* border: 1px solid #333; */
}

.spotify-container {
    max-width: 600px;
    margin: 0 auto;
    background: #181818;
    border-radius: 8px;
    padding: 20px;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: background-color 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.spotify-container:hover {
    background-color: #282828;
}

.spotify-album-art {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 4px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

.spotify-info {
    flex-grow: 1;
}

.spotify-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 5px 0;
    color: #fff;
}

.spotify-subtitle {
    font-size: 0.9rem;
    color: #b3b3b3;
    margin: 0;
}

.spotify-icon-large {
    color: #1DB954;
    font-size: 3rem;
    /* Fallback */
    width: 50px;
    height: 50px;
}

.spotify-play-btn {
    width: 50px;
    height: 50px;
    background-color: #1DB954;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s ease, background-color 0.2s ease;
    flex-shrink: 0;
}

.spotify-container:hover .spotify-play-btn {
    transform: scale(1.1);
    background-color: #1ed760;
}

.spotify-header-text {
    margin-bottom: 30px;
    color: #fff;
}

/* Footer */
footer {
    text-align: center;
    padding: 40px 0;
    color: #666;
    font-size: 0.9rem;
    border-top: 1px solid #ddd;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    opacity: 0;
    animation: fadeInUp 0.8s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}

.delay-100 {
    animation-delay: 0.1s;
}

.delay-200 {
    animation-delay: 0.2s;
}

.delay-300 {
    animation-delay: 0.3s;
}

/* Responsive */
@media (max-width: 1024px) {
    .books-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .books-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .book-card {
        flex-direction: row;
        align-items: stretch;
    }

    .book-image {
        width: 35%;
        aspect-ratio: auto;
        flex-shrink: 0;
    }

    .book-image img {
        height: 100%;
        object-fit: cover;
    }

    .book-content {
        width: 65%;
        padding: 15px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        text-align: left;
    }

    .book-title {
        font-size: 1.1rem;
        margin-bottom: 5px;
    }

    .book-desc {
        font-size: 0.85rem;
        margin-bottom: 10px;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .book-meta {
        display: none;
        /* Hide meta on mobile to save space if needed, or keep small */
    }

    .book-price {
        font-size: 1.1rem;
        margin-bottom: 10px;
    }

    /* Reduce Hero Height on Mobile */
    .hero {
        padding: 60px 20px;
    }

    .hero h1 {
        font-size: 2.5rem;
        margin-bottom: 10px;
    }

    .hero p {
        font-size: 1rem;
    }
}

/* Blog Section Styles */
.blog-section {
    padding: 60px 0;
    background-color: #fcfcfc;
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-header h2 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.section-header p {
    color: #666;
    font-size: 1.1rem;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 0px;
}

.blog-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.blog-image {
    height: 200px;
    overflow: hidden;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-card:hover .blog-image img {
    transform: scale(1.05);
}

.blog-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.blog-meta {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.blog-title {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    color: var(--text-color);
    margin-bottom: 15px;
    line-height: 1.3;
    transition: color 0.2s ease;
}

.blog-card:hover .blog-title {
    color: var(--primary-color);
}

.blog-excerpt {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-link {
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    transition: transform 0.2s ease;
}

.blog-link:hover {
    transform: translateX(5px);
}

/* Contact Form Styles */
.contact-section {
    padding: 60px 0 80px;
    background-color: var(--bg-color);
    /* Same as body or slight variation */
}

.contact-form {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    background-color: #fcfcfc;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(44, 94, 46, 0.1);
    background-color: #fff;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}