/* ============================================
   The Body Owl — Homepage Styles
   Ethereal gold glow (level 10) + modern clean
   ============================================ */

:root {
    --gold: #d4af37;
    --gold-bright: #f0d060;
    --gold-soft: rgba(212, 175, 55, 0.18);
    --gold-glow: rgba(212, 175, 55, 0.55);
    --cream: #fdfbf7;
    --text-dark: #12100e;
    --text-body: #2a2621;
    --text-muted: #5a544c;
    --border: rgba(212, 175, 55, 0.22);
    --shadow: 0 10px 36px rgba(0, 0, 0, 0.07);
    --radius: 16px;
    --black: #0c0b0a;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text-body);
    background: var(--cream);
    line-height: 1.65;
    margin: 0;
    -webkit-font-smoothing: antialiased;
}

/* ---------- Ethereal sunburst (level 10) ---------- */
.page-bg {
    position: fixed;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(ellipse 140% 100% at 50% -20%, rgba(255, 248, 210, 0.75) 0%, transparent 52%),
        radial-gradient(ellipse 100% 70% at 90% 10%, rgba(240, 208, 96, 0.35) 0%, transparent 48%),
        radial-gradient(ellipse 80% 60% at 5% 75%, rgba(255, 236, 170, 0.3) 0%, transparent 45%),
        radial-gradient(ellipse 60% 50% at 75% 90%, rgba(212, 175, 55, 0.18) 0%, transparent 42%),
        radial-gradient(ellipse 50% 40% at 30% 40%, rgba(255, 250, 220, 0.25) 0%, transparent 50%),
        var(--cream);
    pointer-events: none;
}

.page-bg::before {
    content: "";
    position: absolute;
    width: 520px;
    height: 520px;
    top: 4%;
    left: 50%;
    transform: translateX(-50%);
    background: radial-gradient(circle, rgba(255, 250, 220, 0.7) 0%, rgba(240, 208, 96, 0.25) 40%, transparent 70%);
    filter: blur(50px);
    animation: pulse-glow 7s ease-in-out infinite alternate;
}

.page-bg::after {
    content: "";
    position: absolute;
    width: 300px;
    height: 300px;
    bottom: 15%;
    right: 8%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.2) 0%, transparent 70%);
    filter: blur(40px);
    animation: pulse-glow 9s ease-in-out infinite alternate-reverse;
}

@keyframes pulse-glow {
    0% { opacity: 0.65; transform: translateX(-50%) scale(0.95); }
    100% { opacity: 1; transform: translateX(-50%) scale(1.12); }
}

/* ---------- Header ---------- */
.site-header {
    background: rgba(253, 251, 247, 0.78);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 0 40px rgba(212, 175, 55, 0.08);
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text-dark);
}

.logo-link img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow:
        0 0 0 2px rgba(255, 255, 255, 0.95),
        0 0 20px var(--gold-glow),
        0 0 40px rgba(240, 208, 96, 0.3);
}

.logo-text {
    font-weight: 650;
    font-size: 1.18rem;
    letter-spacing: 0.03em;
    color: var(--text-dark);
}

.nav-link {
    color: var(--text-muted) !important;
    font-size: 0.92rem;
    font-weight: 500;
    padding: 0.5rem 0.95rem !important;
    border-radius: 999px;
    transition: color 0.2s, background 0.2s, text-shadow 0.2s, box-shadow 0.2s;
}

.nav-link:hover {
    color: var(--text-dark) !important;
    background: var(--gold-soft);
    text-shadow: 0 0 16px rgba(212, 175, 55, 0.5);
    box-shadow: 0 0 16px rgba(212, 175, 55, 0.15);
}

/* ---------- Hero ---------- */
.hero {
    padding: 4.5rem 0 3.5rem;
    text-align: center;
}

.hero-logo {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    margin: 0 auto 1.75rem;
    box-shadow:
        0 0 0 8px rgba(255, 255, 255, 0.9),
        0 0 60px rgba(212, 175, 55, 0.55),
        0 0 120px rgba(255, 240, 180, 0.4),
        0 0 180px rgba(240, 208, 96, 0.2),
        0 16px 48px rgba(0, 0, 0, 0.1);
    animation: logo-glow 5.5s ease-in-out infinite alternate;
}

@keyframes logo-glow {
    0% {
        box-shadow:
            0 0 0 8px rgba(255,255,255,0.9),
            0 0 50px rgba(212,175,55,0.45),
            0 0 100px rgba(255,240,180,0.3),
            0 0 150px rgba(240,208,96,0.15),
            0 16px 48px rgba(0,0,0,0.1);
    }
    100% {
        box-shadow:
            0 0 0 8px rgba(255,255,255,0.95),
            0 0 80px rgba(212,175,55,0.7),
            0 0 150px rgba(255,240,180,0.5),
            0 0 220px rgba(240,208,96,0.3),
            0 16px 48px rgba(0,0,0,0.1);
    }
}

.hero h1 {
    font-size: clamp(2.55rem, 5.8vw, 3.5rem);
    font-weight: 750;
    color: var(--text-dark);
    letter-spacing: -0.025em;
    margin-bottom: 0.4rem;
    text-shadow:
        0 0 40px rgba(255, 255, 255, 0.9),
        0 0 20px rgba(255, 250, 220, 0.6);
}

.hero .tagline {
    font-size: 1.08rem;
    letter-spacing: 0.26em;
    text-transform: uppercase;
    color: var(--gold);
    font-weight: 650;
    margin-bottom: 1.25rem;
    text-shadow:
        0 0 24px rgba(212, 175, 55, 0.7),
        0 0 48px rgba(240, 208, 96, 0.4);
}

.hero .lead {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 520px;
    margin: 0 auto 2rem;
}

/* ---------- Buttons ---------- */
.btn-glow {
    background: var(--black);
    color: #fff;
    border: 1px solid rgba(212, 175, 55, 0.45);
    font-weight: 600;
    padding: 0.78rem 1.55rem;
    border-radius: 12px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    letter-spacing: 0.02em;
    box-shadow:
        0 0 16px rgba(212, 175, 55, 0.4),
        0 0 32px rgba(212, 175, 55, 0.2),
        0 0 4px rgba(255, 255, 255, 0.2);
    text-shadow: 0 0 12px rgba(255, 255, 255, 0.7);
    transition: transform 0.22s, box-shadow 0.22s, background 0.22s, border-color 0.22s, text-shadow 0.22s;
    cursor: pointer;
}

.btn-glow:hover {
    background: #161412;
    color: #fff;
    border-color: var(--gold-bright);
    transform: translateY(-3px);
    box-shadow:
        0 0 28px rgba(212, 175, 55, 0.7),
        0 0 56px rgba(212, 175, 55, 0.35),
        0 0 80px rgba(240, 208, 96, 0.2),
        0 8px 24px rgba(0, 0, 0, 0.25);
    text-shadow: 0 0 18px rgba(255, 255, 255, 0.95);
}

.btn-glow:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 3px;
}

.btn-glow-sm {
    padding: 0.58rem 1.2rem;
    font-size: 0.9rem;
}

.btn-outline-glow {
    background: rgba(255, 255, 255, 0.5);
    color: var(--text-dark);
    border: 1.5px solid rgba(212, 175, 55, 0.5);
    font-weight: 550;
    padding: 0.72rem 1.4rem;
    border-radius: 12px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.22s;
    box-shadow: 0 0 14px rgba(212, 175, 55, 0.18);
}

.btn-outline-glow:hover {
    background: var(--gold-soft);
    border-color: var(--gold);
    color: var(--text-dark);
    box-shadow: 0 0 24px rgba(212, 175, 55, 0.4);
    transform: translateY(-2px);
}

/* ---------- Sections ---------- */
.section {
    padding: 3.75rem 0;
}

.section-title {
    font-size: clamp(1.7rem, 3.6vw, 2.1rem);
    font-weight: 750;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.85);
}

.section-sub {
    color: var(--text-muted);
    max-width: 500px;
    margin: 0 auto 2.25rem;
    font-size: 1.05rem;
}

/* ---------- Cards ---------- */
.card-soft {
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    height: 100%;
    transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
    backdrop-filter: blur(8px);
}

.card-soft:hover {
    transform: translateY(-5px);
    box-shadow:
        0 16px 48px rgba(0, 0, 0, 0.08),
        0 0 40px rgba(212, 175, 55, 0.18);
    border-color: rgba(212, 175, 55, 0.45);
}

.card-soft .card-body {
    padding: 1.6rem;
}

.card-soft h3 {
    font-size: 1.18rem;
    font-weight: 650;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.card-soft p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 0;
}

.pillar-icon {
    font-size: 1.85rem;
    margin-bottom: 0.65rem;
    display: block;
    filter: drop-shadow(0 0 12px rgba(212, 175, 55, 0.45));
}

.pillar-card .btn {
    margin-top: 1.1rem;
    width: 100%;
}

.about-card h3 {
    color: var(--gold);
    font-size: 1.12rem;
    font-weight: 650;
    text-shadow: 0 0 20px rgba(212, 175, 55, 0.4);
}

/* ---------- Explore portals ---------- */
.portal-btn {
    display: block;
    width: 100%;
    text-align: center;
    padding: 0.9rem 1rem;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text-dark);
    font-weight: 550;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.22s;
    box-shadow: var(--shadow);
}

.portal-btn:hover {
    background: var(--gold-soft);
    border-color: var(--gold);
    color: var(--text-dark);
    transform: translateY(-3px);
    box-shadow: 0 0 24px rgba(212, 175, 55, 0.3);
}

/* ---------- Books carousel ---------- */
.carousel-container {
    position: relative;
    max-width: 920px;
    margin: 0 auto;
    overflow: hidden;
}

.books-carousel,
.reviews-carousel {
    display: flex;
    transition: transform 0.45s ease;
}

.carousel-item-custom {
    flex: 0 0 100%;
    padding: 0 4px;
}

.book-card {
    display: flex;
    gap: 1.75rem;
    align-items: center;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow), 0 0 30px rgba(212, 175, 55, 0.08);
    min-height: 300px;
}

.book-card img {
    width: 170px;
    height: 255px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow:
        0 10px 28px rgba(0, 0, 0, 0.14),
        0 0 24px rgba(212, 175, 55, 0.15);
    flex-shrink: 0;
    transition: box-shadow 0.25s;
}

.book-card:hover img {
    box-shadow:
        0 12px 32px rgba(0, 0, 0, 0.16),
        0 0 36px rgba(212, 175, 55, 0.3);
}

.book-card h3 {
    font-size: 1.2rem;
    font-weight: 650;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.book-card .subtitle {
    color: var(--gold);
    font-size: 0.9rem;
    font-weight: 550;
    margin-bottom: 0.7rem;
    text-shadow: 0 0 16px rgba(212, 175, 55, 0.4);
}

.book-card .desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1.1rem;
    line-height: 1.55;
}

.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--black);
    border: 1px solid rgba(212, 175, 55, 0.5);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 5;
    box-shadow:
        0 0 18px rgba(212, 175, 55, 0.4),
        0 0 4px rgba(255, 255, 255, 0.2);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.6);
    transition: all 0.22s;
}

.carousel-control:hover {
    background: #161412;
    border-color: var(--gold-bright);
    box-shadow:
        0 0 28px rgba(212, 175, 55, 0.65),
        0 0 50px rgba(212, 175, 55, 0.3);
    color: #fff;
}

.carousel-control.prev { left: 6px; }
.carousel-control.next { right: 6px; }

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 1.3rem;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #d0c9b8;
    cursor: pointer;
    transition: background 0.2s, box-shadow 0.2s;
}

.carousel-dot.active {
    background: var(--gold);
    box-shadow: 0 0 14px rgba(212, 175, 55, 0.7);
}

/* ---------- Listen ---------- */
.listen-card h3 {
    font-size: 1.22rem;
    font-weight: 650;
    color: var(--text-dark);
}

.platform-note {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 0.85rem;
}

/* ---------- Classes (compact — only live modules) ---------- */
.module-card {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    height: 100%;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.25s, border-color 0.25s;
}

.module-card:hover {
    border-color: rgba(212, 175, 55, 0.45);
    box-shadow: 0 0 36px rgba(212, 175, 55, 0.18), var(--shadow);
}

.module-card h4 {
    font-size: 1.3rem;
    font-weight: 750;
    color: var(--gold);
    text-align: center;
    margin-bottom: 1rem;
    text-shadow: 0 0 20px rgba(212, 175, 55, 0.45);
}

.module-card ul {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem;
    flex: 1;
}

.module-card li {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-bottom: 0.8rem;
    line-height: 1.5;
}

.module-card li strong {
    display: block;
    color: var(--text-dark);
    margin-bottom: 0.12rem;
}

.topic-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 1.1rem;
}

.topic-pills span {
    background: var(--gold-soft);
    color: #7a6418;
    font-size: 0.75rem;
    font-weight: 550;
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
}

.module-card .btn {
    margin-top: auto;
}

.coming-note {
    text-align: center;
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-top: 1.5rem;
    padding: 0.85rem 1.25rem;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 12px;
    border: 1px solid var(--border);
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}

/* ---------- Reviews ---------- */
.review-card {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem 1.75rem;
    text-align: center;
    box-shadow: var(--shadow);
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.review-card .stars {
    color: var(--gold);
    letter-spacing: 3px;
    font-size: 1.1rem;
    margin-bottom: 0.85rem;
    text-shadow: 0 0 16px rgba(212, 175, 55, 0.55);
}

.review-card p {
    font-size: 1.05rem;
    color: var(--text-body);
    margin-bottom: 0.75rem;
}

.review-card .reviewer {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ---------- Newsletter ---------- */
.newsletter-box {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2.25rem;
    box-shadow: var(--shadow), 0 0 50px rgba(212, 175, 55, 0.12);
    max-width: 480px;
    margin: 0 auto;
}

.newsletter-box input[type="email"] {
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    background: #fff;
    color: var(--text-dark);
}

.newsletter-box input[type="email"]:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px var(--gold-soft), 0 0 20px rgba(212, 175, 55, 0.2);
    outline: none;
}

/* ---------- Footer ---------- */
.site-footer {
    padding: 1.85rem 0;
    border-top: 1px solid var(--border);
    text-align: center;
    color: var(--text-muted);
    font-size: 0.875rem;
    background: rgba(255, 255, 255, 0.5);
}

/* ---------- Responsive ---------- */
@media (max-width: 767.98px) {
    .hero {
        padding: 3rem 0 2.5rem;
    }

    .hero-logo {
        width: 128px;
        height: 128px;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .book-card {
        flex-direction: column;
        text-align: center;
        gap: 1.2rem;
        padding: 1.25rem;
    }

    .book-card img {
        width: 140px;
        height: 210px;
    }

    .section {
        padding: 2.75rem 0;
    }

    .carousel-control {
        width: 40px;
        height: 40px;
        font-size: 0.95rem;
    }

    .btn-glow,
    .btn-outline-glow {
        width: 100%;
        max-width: 280px;
    }

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

@media (max-width: 480px) {
    .logo-text {
        font-size: 1rem;
    }

    .hero-logo {
        width: 110px;
        height: 110px;
    }

    .section-title {
        font-size: 1.45rem;
    }
}
