
/* SHARED SITE HEADER */
.site-header {
    position: relative;
    z-index: 20;
    color: var(--white);
    background:
        radial-gradient(circle at 88% 20%, rgba(12, 196, 232, 0.24), transparent 30%),
        linear-gradient(135deg, #062B52 0%, #0A5FA3 58%, #0CC4E8 100%);
    border-bottom: 1px solid rgba(255, 225, 107, 0.55);
}

.site-header .nav-wrap {
    min-height: 96px;
}



.site-header .brand {
    flex-shrink: 0;
}

.site-header .brand-logo {
    height: 80px;
}

:root {
            --navy: #062B52;
            --blue: #0A5FA3;
            --cyan: #0CC4E8;
            --gold: #F4C542;
            --white: #FFFFFF;
            --light: #F4F9FC;
            --text: #17324D;
            --muted: #60758A;
            --border: #D9E8F2;
            --shadow: 0 18px 45px rgba(6, 43, 82, 0.12);
            --shadow-soft: 0 10px 28px rgba(6, 43, 82, 0.09);
            --radius: 22px;
        }

        * {
            box-sizing: border-box;
        }

        html {
            scroll-behavior: smooth;
        }

        body {
            margin: 0;
            font-family: Arial, Helvetica, sans-serif;
            color: var(--text);
            background: var(--white);
            line-height: 1.65;
        }

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

        a {
            color: inherit;
        }

        .container {
            width: min(1180px, calc(100% - 40px));
            margin: 0 auto;
        }

        .hero-navigation {
            position: relative;
            z-index: 10;
            background: rgba(6, 43, 82, 0.28);
            border-bottom: 1px solid rgba(255, 225, 107, 0.55);
            backdrop-filter: blur(8px);
            -webkit-backdrop-filter: blur(8px);
        }

        .nav-wrap {
            min-height: 96px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 30px;
        }

        .brand {
            display: flex;
            align-items: center;
            gap: 14px;
            text-decoration: none;
            min-width: 210px;
        }

        .brand-logo {
            height: 80px;
            width: auto;
            object-fit: contain;
            filter: drop-shadow(0 5px 10px rgba(0, 0, 0, 0.24));
        }

        .brand-fallback {
            font-size: 25px;
            font-weight: 900;
            letter-spacing: 0.4px;
            color: var(--white);
            white-space: nowrap;
        }

        .brand-fallback span {
            color: #B00020;
        }
.nav-wrap {
    min-height: 96px;
}
        .main-nav {
            display: flex;
            align-items: center;
            gap: 24px;
            flex-wrap: wrap;
            justify-content: flex-end;
        }

        .main-nav a {
            position: relative;
            padding: 10px 0;
            text-decoration: none;
            font-weight: 800;
            color: var(--white);
            font-size: 15px;
            text-shadow: 0 1px 3px rgba(0,0,0,.18);
            transition: color .2s ease;
        }

        .main-nav a:not(.nav-cta)::after {
            content: "";
            position: absolute;
            left: 0;
            bottom: 3px;
            width: 0;
            height: 2px;
            background: var(--gold);
            transition: width .2s ease;
        }

        .main-nav a:hover {
            color: #FFE37A;
        }

        .main-nav a:not(.nav-cta):hover::after {
            width: 100%;
        }

        .nav-cta {
            padding: 11px 18px !important;
            border-radius: 999px;
            color: #2E2600 !important;
            background: linear-gradient(135deg, #FFE16B, var(--gold));
            box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
            text-shadow: none !important;
        }

        .nav-cta:hover {
            color: #1F1900 !important;
            transform: translateY(-1px);
        }

        .hero {
            position: relative;
            overflow: hidden;
            background:
                radial-gradient(circle at 88% 22%, rgba(12, 196, 232, 0.26), transparent 29%),
                radial-gradient(circle at 8% 80%, rgba(244, 197, 66, 0.15), transparent 24%),
                linear-gradient(135deg, #062B52 0%, #0A5FA3 48%, #0CC4E8 100%);
            color: var(--white);
            padding: 0 0 95px;
        }

        .hero::before,
        .hero::after {
            content: "";
            position: absolute;
            border-radius: 50%;
            filter: blur(2px);
            opacity: 0.28;
        }

        .hero::before {
            width: 300px;
            height: 300px;
            background: rgba(255, 255, 255, 0.1);
            top: -120px;
            right: -60px;
        }

        .hero::after {
            width: 180px;
            height: 180px;
            background: rgba(244, 197, 66, 0.14);
            bottom: -70px;
            left: 9%;
        }

        .hero-grid {
            position: relative;
            padding-top: 34px;
            z-index: 2;
            display: grid;
            grid-template-columns: 1.25fr 0.75fr;
            align-items: center;
            gap: 64px;
        }

        .eyebrow {
            display: inline-flex;
            align-items: center;
            gap: 9px;
            padding: 8px 14px;
            border: 1px solid rgba(255, 255, 255, 0.24);
            border-radius: 999px;
            background: rgba(255, 255, 255, 0.08);
            font-size: 13px;
            font-weight: 800;
            letter-spacing: 1.1px;
            text-transform: uppercase;
            margin-bottom: 22px;
        }

        .hero h1 {
            margin: 0;
            max-width: 780px;
            font-size: clamp(48px, 6vw, 76px);
            line-height: 1.03;
            letter-spacing: -2.2px;
        }

        .hero h1 span {
            color: var(--gold);
        }

        .hero p {
            max-width: 770px;
            margin: 24px 0 0;
            font-size: clamp(18px, 2vw, 22px);
            color: rgba(255, 255, 255, 0.88);
        }

        .hero-actions {
            display: flex;
            flex-wrap: wrap;
            gap: 15px;
            margin-top: 34px;
        }

        .button {
            display: inline-flex;
            justify-content: center;
            align-items: center;
            min-height: 52px;
            padding: 14px 25px;
            border-radius: 12px;
            text-decoration: none;
            font-weight: 900;
            transition: transform 0.2s ease, box-shadow 0.2s ease;
        }

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

        .button-primary {
            background: linear-gradient(135deg, var(--cyan), #29D5F2);
            color: #03213F;
            box-shadow: 0 12px 30px rgba(12, 196, 232, 0.33);
        }

        .button-secondary {
            background: var(--gold);
            color: #3B2D00;
            box-shadow: 0 12px 30px rgba(244, 197, 66, 0.25);
        }

        .hero-card {
            padding: 30px;
            border-radius: 28px;
            background: rgba(255, 255, 255, 0.1);
            border: 1px solid rgba(255, 255, 255, 0.19);
            box-shadow: 0 30px 70px rgba(0, 0, 0, 0.2);
            backdrop-filter: blur(15px);
        }

        .hero-card h2 {
            margin: 0 0 16px;
            font-size: 24px;
        }

        .hero-card ul {
            margin: 0;
            padding: 0;
            list-style: none;
        }

        .hero-card li {
            display: flex;
            gap: 12px;
            align-items: flex-start;
            padding: 12px 0;
            border-bottom: 1px solid rgba(255, 255, 255, 0.12);
            color: rgba(255, 255, 255, 0.9);
        }

        .hero-card li:last-child {
            border-bottom: 0;
        }

        .check {
            width: 25px;
            height: 25px;
            flex: 0 0 25px;
            display: inline-grid;
            place-items: center;
            border-radius: 50%;
            background: var(--gold);
            color: #3B2D00;
            font-weight: 900;
            font-size: 14px;
        }

        section {
            padding: 90px 0;
        }

        .section-light {
            background: var(--light);
        }

        .section-heading {
            max-width: 760px;
            margin-bottom: 40px;
        }

        .section-heading.center {
            margin-left: auto;
            margin-right: auto;
            text-align: center;
        }

        .section-kicker {
            margin: 0 0 10px;
            color: var(--blue);
            text-transform: uppercase;
            letter-spacing: 1.6px;
            font-weight: 900;
            font-size: 13px;
        }

        .section-heading h2 {
            margin: 0;
            font-size: clamp(34px, 4vw, 48px);
            line-height: 1.12;
            color: var(--navy);
            letter-spacing: -1px;
        }

        .section-heading p {
            margin: 16px 0 0;
            color: var(--muted);
            font-size: 18px;
        }

        .book-grid {
            display: grid;
            grid-template-columns: repeat(3, minmax(0, 1fr));
            gap: 28px;
        }

        .book-card {
            display: flex;
            flex-direction: column;
            overflow: hidden;
            border: 1px solid var(--border);
            border-radius: var(--radius);
            background: var(--white);
            box-shadow: var(--shadow-soft);
            transition: transform 0.22s ease, box-shadow 0.22s ease;
        }

        .book-card:hover {
            transform: translateY(-6px);
            box-shadow: var(--shadow);
        }

        .book-cover-wrap {
            min-height: 390px;
            padding: 28px;
            display: grid;
            place-items: center;
            background:
                radial-gradient(circle at top, rgba(12, 196, 232, 0.17), transparent 46%),
                linear-gradient(180deg, #EDF8FC, #DDEEF7);
        }

        .book-cover {
            width: min(245px, 82%);
            max-height: 335px;
            object-fit: contain;
            filter: drop-shadow(0 18px 22px rgba(6, 43, 82, 0.23));
        }

        .cover-placeholder {
            width: 220px;
            aspect-ratio: 2 / 3;
            padding: 25px;
            display: flex;
            align-items: center;
            justify-content: center;
            text-align: center;
            border-radius: 8px;
            background: linear-gradient(160deg, #041F3D, var(--navy) 55%, var(--blue));
            border: 4px solid rgba(244, 197, 66, 0.7);
            box-shadow: 0 18px 28px rgba(6, 43, 82, 0.24);
            color: var(--white);
            font-weight: 900;
            font-size: 22px;
            line-height: 1.2;
        }

        .book-content {
            display: flex;
            flex: 1;
            flex-direction: column;
            padding: 28px;
        }

        .book-content h3 {
            margin: 0;
            font-size: 24px;
            line-height: 1.25;
            color: var(--navy);
        }

        .book-content p {
            margin: 15px 0 24px;
            color: var(--muted);
        }

        .text-link {
            margin-top: auto;
            align-self: flex-start;
            display: inline-flex;
            align-items: center;
            gap: 8px;
            text-decoration: none;
            font-weight: 900;
            color: var(--blue);
        }

        .text-link:hover {
            color: var(--navy);
        }

        .why-grid {
            display: grid;
            grid-template-columns: 1.05fr 0.95fr;
            align-items: center;
            gap: 54px;
        }

        .why-copy h2 {
            margin: 0 0 18px;
            font-size: clamp(36px, 4vw, 50px);
            line-height: 1.12;
            color: var(--navy);
        }

        .why-copy p {
            color: var(--muted);
            font-size: 18px;
        }

        .benefit-panel {
            padding: 34px;
            border-radius: 26px;
            background: linear-gradient(145deg, var(--navy), var(--blue));
            color: var(--white);
            box-shadow: var(--shadow);
        }

        .benefit-panel h3 {
            margin: 0 0 18px;
            font-size: 27px;
        }

        .benefit-list {
            margin: 0;
            padding: 0;
            display: grid;
            gap: 14px;
            list-style: none;
        }

        .benefit-list li {
            display: flex;
            gap: 12px;
            align-items: center;
            font-weight: 700;
        }

        .topic-grid {
            display: grid;
            grid-template-columns: repeat(3, minmax(0, 1fr));
            gap: 22px;
        }

        .topic-card {
            min-height: 155px;
            padding: 26px;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            text-decoration: none;
            border: 1px solid var(--border);
            border-radius: 20px;
            background: var(--white);
            box-shadow: var(--shadow-soft);
            transition: transform 0.2s ease, border-color 0.2s ease;
        }

        .topic-card:hover {
            transform: translateY(-4px);
            border-color: var(--cyan);
        }

        .topic-icon {
            font-size: 34px;
        }

        .topic-card h3 {
            margin: 18px 0 0;
            font-size: 21px;
            color: var(--navy);
        }

        .favorites-strip {
            display: grid;
            grid-auto-flow: column;
            grid-auto-columns: minmax(265px, 32%);
            gap: 22px;
            overflow-x: auto;
            padding: 8px 4px 22px;
            scroll-snap-type: x mandatory;
        }

        .favorite-card {
            scroll-snap-align: start;
            padding: 25px;
            border-radius: 20px;
            border: 1px solid var(--border);
            background: var(--white);
            box-shadow: var(--shadow-soft);
        }

        .favorite-card .small-cover {
            width: 140px;
            height: 210px;
            margin: 0 auto 24px;
            padding: 0;
            display: flex;
            align-items: center;
            justify-content: center;
            background: transparent;
            border-radius: 8px;
        }

        .favorite-card .small-cover img {
            width: 100%;
            height: 100%;
            display: block;
            object-fit: contain;
            object-position: center;
            border-radius: 8px;
            box-shadow: 0 12px 24px rgba(6, 43, 82, 0.25);
        }

        .favorite-card h3 {
            margin: 0 0 10px;
            color: var(--navy);
            line-height: 1.25;
        }

        .favorite-card p {
            margin: 0;
            color: var(--muted);
        }

        .author-grid {
            display: grid;
            grid-template-columns: 0.75fr 1.25fr;
            gap: 52px;
            align-items: center;
        }

        .author-photo {
            min-height: 430px;
            border-radius: 28px;
            overflow: hidden;
            background:
                radial-gradient(circle at 70% 20%, rgba(12, 196, 232, 0.35), transparent 34%),
                linear-gradient(145deg, var(--navy), var(--blue));
            box-shadow: var(--shadow);
            display: grid;
            place-items: center;
            color: rgba(255, 255, 255, 0.85);
            text-align: center;
            font-weight: 800;
            padding: 30px;
        }

        .author-copy h2 {
            margin: 0 0 6px;
            font-size: clamp(36px, 4vw, 49px);
            color: var(--navy);
            line-height: 1.12;
        }

        .author-title {
            margin: 0 0 20px;
            color: var(--blue);
            font-size: 20px;
            font-weight: 900;
        }

        .author-copy p {
            color: var(--muted);
            font-size: 18px;
        }

        .newsletter {
            padding: 48px;
            border-radius: 30px;
            color: var(--white);
            background:
                radial-gradient(circle at top right, rgba(12, 196, 232, 0.35), transparent 33%),
                linear-gradient(135deg, #041F3D, var(--navy) 48%, var(--blue));
            box-shadow: var(--shadow);
        }

        .newsletter-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 40px;
            align-items: center;
        }

        .newsletter h2 {
            margin: 0 0 13px;
            font-size: clamp(34px, 4vw, 48px);
            line-height: 1.1;
        }

        .newsletter p {
            margin: 0;
            color: rgba(255, 255, 255, 0.82);
            font-size: 18px;
        }

        .signup-form {
            display: grid;
            grid-template-columns: 1fr auto;
            gap: 12px;
        }

        .signup-form input {
            width: 100%;
            min-height: 54px;
            border: 1px solid rgba(255, 255, 255, 0.28);
            border-radius: 12px;
            padding: 0 18px;
            font-size: 16px;
            outline: none;
        }

        .signup-form input:focus {
            box-shadow: 0 0 0 4px rgba(12, 196, 232, 0.22);
        }

        .signup-form button {
            border: 0;
            cursor: pointer;
            min-height: 54px;
        }

        .form-note {
            grid-column: 1 / -1;
            margin: 0;
            font-size: 13px !important;
            color: rgba(255, 255, 255, 0.68) !important;
        }

        .site-footer {
            padding: 65px 0 28px;
            background: #031C35;
            color: rgba(255, 255, 255, 0.78);
        }

        .footer-grid {
            display: grid;
            grid-template-columns: 1.4fr repeat(3, 1fr);
            gap: 36px;
        }

        .footer-brand h2 {
            margin: 0 0 14px;
            color: var(--white);
            font-size: 27px;
        }

        .footer-brand p {
            max-width: 390px;
            margin: 0;
        }

        /* Footer logo: intentionally smaller than the header logo */
        .site-footer .footer-brand img.footer-logo {
            display: block !important;
            width: auto !important;
            height: 32px !important;
            max-width: 125px !important;
            max-height: 32px !important;
            object-fit: contain !important;
            margin: 0 0 10px 0 !important;
            filter: none !important;
        }

        .footer-column h3 {
            margin: 0 0 16px;
            color: var(--white);
            font-size: 17px;
        }

        .footer-column a {
            display: block;
            margin: 9px 0;
            text-decoration: none;
            color: rgba(255, 255, 255, 0.72);
        }

        .footer-column a:hover {
            color: var(--cyan);
        }

        .footer-bottom {
            margin-top: 42px;
            padding-top: 24px;
            border-top: 1px solid rgba(255, 255, 255, 0.12);
            display: flex;
            justify-content: space-between;
            gap: 20px;
            flex-wrap: wrap;
            font-size: 14px;
        }
		
		/* ---------- Author Photo ---------- */

.author-photo {
    display: flex;
    justify-content: center;
    align-items: center;
}

.author-photo-round {
    width: 180px;
    height: 180px;
    object-fit: cover;
    object-position: center;
    border-radius: 50%;
    border: 4px solid #ffffff;
    box-shadow: 0 12px 30px rgba(6,43,82,.20);
}


        @media (max-width: 980px) {
            .nav-wrap {
                min-height: 0;
                padding: 15px 0 16px;
                flex-direction: column;
                align-items: center;
            }

            .main-nav {
                justify-content: center;
                gap: 18px;
            }

            .hero-grid,
            .why-grid,
            .author-grid,
            .newsletter-grid {
                grid-template-columns: 1fr;
            }

            .book-grid,
            .topic-grid {
                grid-template-columns: repeat(2, minmax(0, 1fr));
            }

            .hero-card {
                max-width: 650px;
            }

            .author-photo {
                min-height: 340px;
            }

            .favorites-strip {
                grid-auto-columns: minmax(270px, 46%);
            }

            .footer-grid {
                grid-template-columns: repeat(2, 1fr);
            }
        }

        @media (max-width: 680px) {
            .container {
                width: min(100% - 26px, 1180px);
            }

            .nav-wrap {
                padding: 12px 0 14px;
                gap: 10px;
            }

            .brand-logo {
                height: 58px;
            }

            .main-nav {
                gap: 7px 15px;
            }

            .main-nav a {
                font-size: 13px;
                padding: 6px 0;
            }

            .nav-cta {
                padding: 7px 12px !important;
            }

            .brand-fallback {
                font-size: 21px;
            }

            .hero {
                padding: 0 0 70px;
            }

            .hero-grid {
                padding-top: 28px;
            }

            .hero h1 {
                font-size: 46px;
                letter-spacing: -1.4px;
            }

            section {
                padding: 68px 0;
            }

            .book-grid,
            .topic-grid,
            .footer-grid {
                grid-template-columns: 1fr;
            }

            .book-cover-wrap {
                min-height: 350px;
            }

            .favorites-strip {
                grid-auto-columns: 86%;
            }

            .newsletter {
                padding: 32px 24px;
            }

            .signup-form {
                grid-template-columns: 1fr;
            }

            .signup-form button {
                width: 100%;
            }
        }

/* =========================================
   BOOKS PAGE — CORRECTED FINAL STYLES
   Keep this block at the very end of style.css.
========================================= */

/* Blue section immediately below the shared header */
.books-hero {
    position: relative;
    overflow: hidden;
    margin: 0;
    padding: 34px 0 30px;
    color: #FFFFFF;
    background:
        radial-gradient(circle at 88% 20%, rgba(12, 196, 232, 0.30), transparent 30%),
        radial-gradient(circle at 10% 90%, rgba(244, 197, 66, 0.14), transparent 26%),
        linear-gradient(135deg, #062B52 0%, #0A5FA3 58%, #0CC4E8 100%);
}

.books-hero .container {
    position: relative;
    z-index: 1;
}

.books-hero .eyebrow,
.books-hero h1,
.books-hero p {
    color: #FFFFFF;
}

.books-hero .eyebrow {
    margin: 0 0 12px;
}

.books-hero h1 {
    margin: 0;
    max-width: 900px;
    font-size: clamp(42px, 5vw, 64px);
    line-height: 1.08;
    letter-spacing: -1.5px;
}

.books-hero h1 span {
    color: #F4C542;
}

.books-hero p {
    max-width: 850px;
    margin: 13px 0 0;
    color: rgba(255, 255, 255, 0.92);
    font-size: 19px;
}

/* Colored library area with less space before the heading */
.books-library {
    margin: 0;
    padding: 18px 0 72px;
    background:
        radial-gradient(circle at 14% 5%, rgba(12, 196, 232, 0.18), transparent 32%),
        linear-gradient(180deg, #DDF3FC 0%, #EDF8FD 45%, #E5F4FA 100%);
}

.books-library .section-heading {
    max-width: 780px;
    margin-top: 0;
    margin-bottom: 28px;
}

.books-library .section-heading.center {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.books-library .kicker {
    display: block;
    margin: 0 0 5px;
    color: #0A5FA3;
    text-transform: uppercase;
    letter-spacing: 1.6px;
    font-size: 13px;
    font-weight: 900;
}

.books-library .section-heading h2 {
    margin: 0;
}

.books-library .section-heading p {
    margin: 10px 0 0;
}

/* Placeholder used when a book cover has not been added yet */
.book-cover-missing {
    width: 220px;
    aspect-ratio: 2 / 3;
    padding: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    border-radius: 8px;
    color: #FFFFFF;
    background: linear-gradient(160deg, #041F3D, #062B52 55%, #0A5FA3);
    border: 4px solid rgba(244, 197, 66, 0.7);
    box-shadow: 0 18px 28px rgba(6, 43, 82, 0.24);
    font-size: 22px;
    font-weight: 900;
    line-height: 1.2;
}

@media (max-width: 680px) {
    .books-hero {
        padding: 28px 0 25px;
    }

    .books-hero h1 {
        font-size: 40px;
    }

    .books-hero p {
        font-size: 17px;
    }

    .books-library {
        padding: 15px 0 54px;
    }
}


@media (max-width: 680px) {
    .site-footer .footer-brand img.footer-logo {
        height: 28px !important;
        max-height: 28px !important;
        max-width: 110px !important;
    }
}
.author-photo-round {
    width: 180px;
    height: 180px;
    object-fit: cover;
    object-position: center;
    border-radius: 50%;
    border: 4px solid #ffffff;
    box-shadow: 0 12px 30px rgba(6,43,82,.20);
    display: block;
}

/* =========================================
   ABOUT PAGE — LARGER ROUND AUTHOR PHOTO
   Keeps homepage author photo size unchanged.
========================================= */

html body .about-photo img.author-photo-round {
    width: 340px !important;
    height: 340px !important;
    min-width: 340px !important;
    max-width: 340px !important;
    min-height: 340px !important;
    max-height: 340px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    object-position: center !important;
    display: block !important;
    border: 6px solid #ffffff !important;
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.25) !important;
}

@media (max-width: 680px) {
    html body .about-photo img.author-photo-round {
        width: 260px !important;
        height: 260px !important;
        min-width: 260px !important;
        max-width: 260px !important;
        min-height: 260px !important;
        max-height: 260px !important;
    }
}

