@import url('https://fonts.googleapis.com/css2?family=Be+Vietnam+Pro:wght@700;800&family=Braah+One&family=Inter:wght@400;600;700&display=swap');

/* 🔥 SCOPED VARIABLES (IMPORTANT FOR ELEMENTOR) */
.nv-book-section {
    --primary-blue: #1a2e56;
    --bg-gray: #ccd3db;
    --ink: #101826;
    --muted-ink: #2d3748;
    --soft-gold: #caa86f;
    --card-bg: rgba(245, 248, 252, 0.76);
    --card-border: rgba(26, 46, 86, 0.24);

    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;

    background:
        radial-gradient(circle at 15% 15%, rgba(255, 255, 255, 0.64), transparent 45%),
        radial-gradient(circle at 85% 10%, rgba(26, 46, 86, 0.1), transparent 42%),
        linear-gradient(140deg, #d4dce4 0%, #c8d0d9 52%, #cfd7df 100%);

    padding: 30px 5% 70px 5%;
    font-family: 'Inter', sans-serif;
    gap: 40px;
    overflow: hidden;
    width: 100%;
    min-height: 85vh;
}

/* --- BACKGROUND DECORATION --- */
.nv-book-section::before {
    content: "";
    position: absolute;
    inset: auto auto -180px -160px;
    width: 430px;
    height: 430px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(26, 46, 86, 0.22) 0%, rgba(26, 46, 86, 0) 70%);
    pointer-events: none;
}

/* --- TEXT CONTENT --- */
.nv-book-content {
    flex: 0 0 50%;
    max-width: 700px;
    z-index: 20;
    position: relative;

    padding: 40px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 28px;
    backdrop-filter: blur(8px);

    box-shadow: 0 20px 45px rgba(16, 24, 38, 0.18);
    animation: fadeUp 900ms ease both;
}

.nv-book-content h2 {
    font-family: 'Braah One', sans-serif;
    font-size: clamp(38px, 3.5vw, 50px);
    color: var(--ink);
    line-height: 1.1;
    margin-bottom: 25px;
}

/* Highlight */
.step-highlight {
    color: var(--primary-blue);
    position: relative;
}

.step-highlight::after {
    content: "";
    position: absolute;
    bottom: 6px;
    left: 0;
    width: 100%;
    height: 10px;
    background: linear-gradient(90deg, rgba(26, 46, 86, 0.24), rgba(202, 168, 111, 0.35));
    z-index: -1;
    border-radius: 999px;
}

/* Paragraphs */
.nv-book-content p {
    font-size: 17px;
    color: var(--muted-ink);
    line-height: 1.65;
    margin-bottom: 20px;
}

/* Author Note */
.author-text {
    margin-bottom: 0;
    padding-left: 14px;
    border-left: 4px solid rgba(26, 46, 86, 0.35);
    font-weight: 600;
    color: #172337;
}

/* Button */
.nv-book-buy-button {
    font-family: 'Be Vietnam Pro', sans-serif;
    display: inline-block;

    background: linear-gradient(140deg, var(--primary-blue), #314874);
    color: #ffffff;
    padding: 18px 45px;

    font-size: 17px;
    font-weight: 800;
    text-decoration: none;

    border-radius: 100px;
    transition: all 0.3s ease;
    text-transform: uppercase;

    box-shadow: 0 10px 25px rgba(26, 46, 86, 0.3);
    margin-top: 15px;
}

.nv-book-buy-button:hover {
    transform: translateY(-3px);
}

/* --- IMAGE SECTION --- */
.nv-book-image-container {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* Book Image */
.book-mockup {
    position: relative;
    z-index: 50;
    width: 100%;
    max-width: 380px;
    height: auto;

    filter: drop-shadow(20px 20px 35px rgba(0,0,0,0.25));
    animation: float 6s ease-in-out infinite;
}

/* Collage */
.nv-collage-wrapper {
    position: absolute;
    width: 130%;
    height: 180%;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-flow: dense;
    gap: 12px;

    opacity: 0.7;
    filter: grayscale(15%) blur(0.3px);
    transform: rotate(-3deg);

    -webkit-mask-image: radial-gradient(circle, black 35%, transparent 85%);
    mask-image: radial-gradient(circle, black 35%, transparent 85%);

    pointer-events: none;
}

/* Collage Item */
.nv-collage-item {
    background: rgba(255, 255, 255, 0.4);
    border-radius: 10px;
    padding: 5px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

.nv-collage-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 6px;
}

/* Grid Types */
.img-wide { grid-column: span 2; aspect-ratio: 1920 / 720; }
.img-landscape { grid-column: span 2; aspect-ratio: 16 / 9; }
.img-square { grid-column: span 1; aspect-ratio: 1 / 1; }

/* --- ANIMATIONS --- */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-12px) rotate(1deg); }
}

/* --- MOBILE --- */
@media (max-width: 1024px) {

    .nv-book-section {
        flex-direction: column;
        text-align: center;
        padding: 40px 5%;
    }

    .nv-book-content {
        flex: 0 0 100%;
        width: 100%;
        max-width: 100%;
        padding: 30px;
    }

    .book-mockup {
        max-width: 320px;
    }

    .author-text {
        border-left: none;
        border-top: 3px solid rgba(26,46,86,0.2);
        padding-top: 15px;
    }
}