:root {
    --primary-red: #c0392b;
    --earth-brown: #5d4037;
    --gold-accent: #f1c40f;
    --light-cream: #fffaf0;
    /* Exact Gradient colors for the banner image */
    --orange-gradient-start: #ffcd69; 
    --orange-gradient-end: #ff8c42;
    --text-dark: #2c2c2c;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Lato', sans-serif;
    background-color: var(--light-cream);
    color: var(--text-dark);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Nav */
.nav-bar {
    display: flex; justify-content: space-between; align-items: center;
    padding: 20px 40px; background: transparent; position: absolute; top: 0; width: 100%; z-index: 10;
}
.logo-small {
    display: flex; align-items: center; gap: 10px; font-family: 'Cinzel', serif;
    font-weight: 700; font-size: 1.5rem; color: var(--earth-brown);
}
.back-btn {
    text-decoration: none; color: var(--earth-brown); font-weight: 700;
    display: flex; align-items: center; gap: 5px; transition: transform 0.3s;
}
.back-btn:hover { transform: translateX(-5px); }

/* Banner Styles */
.remedy-banner {
    width: 100%; height: 300px;
    background: linear-gradient(90deg, var(--orange-gradient-start), var(--orange-gradient-end));
    display: flex; justify-content: center; align-items: center;
    position: relative; overflow: hidden; margin-bottom: 50px;
}
/* The background blob */
.banner-accent {
    position: absolute; width: 500px; height: 500px; background: #ffeb3b;
    border-radius: 50%; top: -250px; left: 50%; transform: translateX(-50%);
    opacity: 0.6; filter: blur(40px); z-index: 1;
}
/* The Text Container Shape */
.banner-shape {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    background-color: #ffd54f; padding: 20px 60px; border-radius: 50px 0 50px 0;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1); z-index: 2; text-align: center;
}
.banner-title {
    font-family: 'Cinzel', serif; font-size: 3rem; color: white;
    text-shadow: 1px 1px 5px rgba(0,0,0,0.2); line-height: 1.2;
}

/* Dropdowns */
.selection-container {
    max-width: 600px; margin: 0 auto 50px auto; text-align: center;
    display: flex; flex-direction: column; gap: 20px; padding: 0 20px;
}
.dropdown-label {
    font-family: 'Cinzel', serif; color: #f39c12; font-size: 1.8rem;
    font-weight: 600; margin-bottom: 5px;
}
select {
    width: 100%; padding: 15px; font-size: 1.1rem; font-family: 'Lato', sans-serif;
    border: 2px solid #ddd; border-radius: 10px; background-color: white;
    color: var(--earth-brown); cursor: pointer; outline: none; appearance: none;
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%235d4037%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat; background-position: right 15px top 50%; background-size: 12px auto;
}

/* 3D Button */
.btn-3d-gold {
    background: linear-gradient(to bottom, #f1c40f, #f39c12); color: white;
    font-family: 'Cinzel', serif; font-weight: 700; font-size: 1.3rem;
    padding: 15px 60px; border: none; border-radius: 50px; cursor: pointer;
    margin-top: 20px; position: relative;
    box-shadow: 0 6px 0 #d35400, 0 15px 20px rgba(0,0,0,0.2); transition: all 0.1s;
}
.btn-3d-gold:active { top: 6px; box-shadow: 0 0 0 #d35400; }

/* Book Animation */
.book-scene {
    width: 320px; height: 450px; margin: 60px auto 100px; perspective: 1500px;
    position: relative; display: none; opacity: 0; transition: opacity 1s;
}
.book-scene.visible { display: block; opacity: 1; }

.book {
    width: 100%; height: 100%; position: relative;
    transform-style: preserve-3d; transform: rotateX(30deg); transition: transform 1s;
}

.book-cover {
    position: absolute; width: 100%; height: 100%;
    background-color: #8d6e63; border-radius: 10px 20px 20px 10px;
    box-shadow: 10px 10px 30px rgba(0,0,0,0.3); transform-origin: left;
    transition: transform 1.5s cubic-bezier(0.25, 1, 0.5, 1); z-index: 5;
    display: flex; justify-content: center; align-items: center;
}

.book-inside {
    position: absolute; top: 10px; left: 10px; width: 310px; height: 430px;
    background: #fff; border-radius: 5px 15px 15px 5px; z-index: 1;
    box-shadow: inset 10px 0 20px rgba(0,0,0,0.1); padding: 25px;
    display: flex; flex-direction: column; align-items: flex-start; text-align: left;
    overflow-y: auto;
}
.book-inside::-webkit-scrollbar { width: 6px; }
.book-inside::-webkit-scrollbar-thumb { background-color: #d7ccc8; border-radius: 10px; }

.remedy-header {
    font-family: 'Cinzel', serif; font-size: 1.2rem; color: var(--primary-red);
    margin-bottom: 15px; width: 100%; text-align: center;
    border-bottom: 1px solid #eee; padding-bottom: 10px;
}

.remedy-body {
    font-family: 'Lato', sans-serif; font-size: 1rem; line-height: 1.6;
    color: var(--text-dark); width: 100%;
}

/* Highlighted Mantra Box */
.mantra-box {
    background-color: #fff3e0; border: 2px dashed #ffb74d; padding: 15px;
    margin-top: 20px; border-radius: 8px; font-family: 'Cinzel', serif;
    color: #bf360c; text-align: center; font-weight: 700;
}

.book.open .book-cover { transform: rotateY(-160deg); }