:root {
    --page-bg: #e6f4ff;
    --page-text: #102f4a;
    --page-muted: #557590;
    --page-line: rgba(16, 47, 74, 0.1);
    --page-brand: #4aa3ff;
    --page-brand-deep: #1f6fe5;
    --page-accent: #8ecbff;
    --page-surface: rgba(255, 255, 255, 0.84);
    --page-card: #ffffff;
    --page-shadow: 0 24px 60px rgba(17, 40, 93, 0.12);
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--page-text);
    font-family: "Manrope", sans-serif;
    background:
        radial-gradient(circle at top left, rgba(74, 163, 255, 0.18), transparent 28%),
        radial-gradient(circle at right 20%, rgba(142, 203, 255, 0.16), transparent 22%),
        linear-gradient(180deg, #f7fbff 0%, var(--page-bg) 55%, #dcedff 100%);
}

a {
    color: inherit;
    text-decoration: none;
}

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

.class-hero,
.class-shell,
.footer-container,
.footer-bottom {
    width: min(1180px, calc(100% - 32px));
}

.class-hero {
    margin: 24px auto 0;
    padding: 40px;
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(250px, 0.75fr);
    gap: 26px;
    width: 97%;
    color: #fff;
    border-radius: 25px;
    background:
        linear-gradient(140deg, rgb(24, 91, 191), rgb(74, 164, 255)),
        linear-gradient(90deg, #1f6fe5, #4aa3ff);
    box-shadow: 0 28px 80px rgba(31, 111, 229, 0.24);
}

.eyebrow,
.section-kicker {
    display: inline-flex;
    text-transform: uppercase;
    font-size: 0.75rem;
    font-weight: 700;
}

.eyebrow {
    color: #dbe5ff;
    margin-bottom: 14px;
}

.hero-copy h1,
.section-heading h2,
.contact-card h2 {
    margin: 0 0 12px;
    font-family: "Playfair Display", serif;
}

.hero-copy h1 {
    font-size: clamp(2rem, 4vw, 3.5rem);
    line-height: 1;
}

.hero-copy p,
.section-heading p,
.cover-text p,
.chapter-card p,
.contact-card p,
.footer-about p,
.footer-contact p {
    margin: 0;
    line-height: 1.8;
    color: var(--page-muted);
}

.class-hero .hero-copy p,
.class-hero .hero-stat span {
    color: rgba(255, 255, 255, 0.82);
}

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

.hero-stat {
    padding: 18px;
    align-content: center;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.14);
}

.hero-stat strong {
    display: block;
    margin-bottom: 6px;
    font-size: 1.5rem;
}

.class-shell {
    margin: 0 auto;
    padding: 34px 0 80px;
    width: 80%;
}

.book-section,
.contact-section {
    margin-top: 22px;
    padding: 34px;
    border-radius: 32px;
    background: var(--page-surface);
    border: 1px solid rgba(255, 255, 255, 0.65);
    box-shadow: var(--page-shadow);
    backdrop-filter: blur(16px);
}

.section-kicker {
    color: var(--page-brand);
    margin-bottom: 10px;
}

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

.section-heading h2,
.contact-card h2 {
    font-size: clamp(1.9rem, 3vw, 2.8rem);
    line-height: 1.12;
}

.book-layout {
    display: grid;
    grid-template-columns: minmax(260px, 320px) minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}

.book-cover-card,
.chapter-card,
.contact-card {
    background: var(--page-card);
    border-radius: 24px;
    border: 1px solid var(--page-line);
    box-shadow: 0 18px 40px rgba(18, 41, 96, 0.08);
}

.book-cover-card {
    padding: 22px;
    position: sticky;
    top: 112px;
}

.book-cover-card img {
    width: min(100%, 220px);
    margin: 0 auto 18px;
    filter: drop-shadow(0 16px 30px rgba(16, 45, 135, 0.16));
}

.cover-text h3,
.footer h2,
.footer h3 {
    margin: 0 0 10px;
}

.chapter-list {
    display: grid;
    gap: 14px;
}

.chapter-card {
    padding: 18px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.chapter-card strong {
    display: block;
    margin-bottom: 4px;
}

.orange{
    color: orange;
}

.red{
    color: #ff5500;
}

.chapter-card p[lang="hi"] {
    color: var(--page-text);
    font-weight: 600;
    line-height: 1.6;
}

.chapter-link,
.footer-home-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 96px;
    min-height: 44px;
    padding: 0 16px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--page-brand), var(--page-brand-deep));
    color: #fff;
    font-weight: 700;
    flex-shrink: 0;
    transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.world-btn {
    min-width: 90px;
    min-height: 52px;
    position: relative;

    width: clamp(90px, 20vw, 115px);
    height: clamp(50px, 6vw, 60px);

    border: none;
    cursor: pointer;

    /* softer premium globe gradient */
    background: radial-gradient(
        circle at 30% 25%,
        #5eead4,
        #0ea5e9 58%,
        #1d4ed8
    );

    color: #f8fafc;

    font-size: clamp(15px, 2vw, 15px);
    font-weight: 700;

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

    overflow: hidden;

    /* much smoother unique shape */
    border-radius:
        18px 38px 18px 38px /
        28px 22px 36px 22px;

    /* softer 3D */
    box-shadow:
        0 8px 18px rgba(0,0,0,0.22),
        inset 0 2px 5px rgba(255,255,255,0.16),
        inset 0 -4px 8px rgba(0,0,0,0.12);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

/* subtle globe lines */
.world-btn::before {
    content: "";

    position: absolute;
    inset: 0;

    border-radius: inherit;

    background:
        repeating-linear-gradient(
            90deg,
            transparent 0 18%,
            rgba(255,255,255,0.07) 18% 20%
        ),
        repeating-linear-gradient(
            0deg,
            transparent 0 24%,
            rgba(255,255,255,0.05) 24% 26%
        );

    opacity: 0.5;
}

/* tiny moon */
.world-btn::after {
    content: "";

    position: absolute;

    top: 16%;
    right: 12%;

    width: 8px;
    height: 8px;

    background: rgba(255,255,255,0.9);

    border-radius: 50%;

    box-shadow:
        0 0 8px rgba(255,255,255,0.45);
}

.world-btn:hover {
    transform: translateY(-2px) scale(1.02);

    box-shadow:
        0 12px 22px rgba(0,0,0,0.24),
        inset 0 2px 5px rgba(255,255,255,0.18),
        inset 0 -4px 8px rgba(0,0,0,0.14);
}

.world-btn:hover {
    transform: scale(1.01);
}

.wing-btn {
    position: relative;

    width: 120px;
    height: 55px;

    border: none;
    cursor: pointer;

    background: linear-gradient(
        135deg,
        #f7d48e,
        #E3A659 55%,
        #c8842e
    );

    color: #3d2a00;

    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.8px;

    /* modern flowing wing shape */
    border-radius:
        18px 38px 18px 38px /
        28px 22px 36px 22px;

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

    overflow: hidden;

    transform: rotate(-2deg);

    box-shadow:
        0 8px 16px rgba(0,0,0,0.18),
        inset 0 2px 4px rgba(255,255,255,0.35);
}

/* glossy curve */
.wing-btn::before {
    content: "";

    position: absolute;

    top: -12px;
    left: -18px;

    width: 70px;
    height: 90px;

    background: rgba(255,255,255,0.18);

    border-radius: 50%;

    transform: rotate(20deg);
}

/* sleek feather line */
.wing-btn::after {
    content: "";

    position: absolute;

    width: 75px;
    height: 2px;

    background: rgba(61,42,0,0.18);

    border-radius: 999px;

    bottom: 14px;
    right: 10px;

    transform: rotate(-10deg);
}

.contact-card {
    padding: 30px;
}

.contact-methods {
    display: grid;
    gap: 14px;
    margin-top: 24px;
}

.contact-methods a {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    border-radius: 18px;
    background: #fff;
    border: 1px solid var(--page-line);
    font-weight: 700;
}

.contact-methods i {
    color: var(--page-brand);
}

.footer {
    padding: 36px 0 18px;
    color: #fff;
    background: linear-gradient(145deg, #184c99, #2154fd);
}

.footer-container {
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 28px;
}

.footer-links ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-links li + li {
    margin-top: 10px;
}

.footer-links a,
.footer-about p,
.footer-contact p {
    color: rgba(255, 255, 255, 0.82);
}

.footer-bottom {
    margin: 30px auto 0;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    text-align: center;
    color: rgba(255, 255, 255, 0.72);
}

.btn-top {
    position: fixed;
    right: 22px;
    bottom: 22px;
    min-width: 94px;
    font-size: 15px;
    height: 48px;
    border: none;
    padding: 0 14px 0 10px;
    border-radius: 25px;
    background: linear-gradient(135deg, var(--page-brand), var(--page-brand-deep));
    color: #fff;
    font-weight: 700;
    letter-spacing: 0.02em;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 100;
    gap: 8px;
    box-shadow: 0 16px 28px rgba(16, 45, 135, 0.22);
    transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.btn-top:hover,
.chapter-link:hover {
    transform: translateY(-3px);
}

.btn-top-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 22px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.14);
    font-size: 0.92rem;
}

.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

body.dark-mode {
    color: #e8edf8;
    background:
        radial-gradient(circle at top left, rgba(80, 138, 255, 0.18), transparent 28%),
        radial-gradient(circle at right 20%, rgba(217, 119, 6, 0.14), transparent 22%),
        linear-gradient(180deg, #08101f 0%, #0c172d 55%, #0f1b34 100%);
}

body.dark-mode .book-section,
body.dark-mode .contact-section,
body.dark-mode .book-cover-card,
body.dark-mode .chapter-card,
body.dark-mode .contact-card,
body.dark-mode .contact-methods a {
    background: rgba(12, 23, 45, 0.84);
    border-color: rgba(148, 163, 184, 0.14);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.24);
}

body.dark-mode .chapter-card p[lang="hi"],
body.dark-mode .section-heading h2,
body.dark-mode .contact-card h2,
body.dark-mode .cover-text h3,
body.dark-mode .footer h2,
body.dark-mode .footer h3 {
    color: #e8edf8;
}

body.dark-mode .section-heading p,
body.dark-mode .cover-text p,
body.dark-mode .contact-card p,
body.dark-mode .chapter-card p,
body.dark-mode .footer-about p,
body.dark-mode .footer-contact p {
    color: #aebcd6;
}

body.dark-mode .class-hero {
    background:
        linear-gradient(140deg, rgba(6, 16, 40, 0.98), rgba(19, 56, 127, 0.84)),
        linear-gradient(90deg, #071127, #1f6fe5);
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.42);
}