/* Rotary speaker page (page-rotary.php). Builds on speaking-page.css. */

.th-rotary-member,
.th-rotary-book {
    padding: clamp(64px, 9vw, 112px) 0;
}

.th-rotary-member h2,
.th-rotary-book h2,
.th-rotary-invite h2 {
    margin: 0;
    font-size: clamp(36px, 5vw, 62px);
    line-height: 0.98;
}

.th-rotary-member h2 {
    max-width: 820px;
    color: var(--th-speaking-blue);
}

.th-rotary-member__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: clamp(32px, 5vw, 64px);
    align-items: start;
    margin-top: clamp(32px, 4vw, 48px);
}

.th-rotary-video video {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: var(--th-speaking-blue);
    border: 10px solid var(--th-speaking-sky);
    border-radius: 18px;
    box-shadow: 0 26px 60px rgba(0, 51, 73, 0.2);
    object-fit: cover;
}

.th-rotary-member__copy > p {
    margin: 0 0 18px;
    color: var(--th-speaking-ink);
    font-size: clamp(17px, 1.45vw, 20px);
    line-height: 1.7;
}

.th-rotary-callout {
    margin-top: 28px;
    padding: clamp(22px, 3vw, 32px);
    background: var(--th-speaking-blue);
    border-top: 7px solid var(--th-speaking-orange);
    border-radius: 22px;
    box-shadow: 0 20px 44px rgba(0, 51, 73, 0.18);
}

.th-rotary-callout__title {
    margin: 0 0 16px;
    color: var(--th-speaking-sky);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.th-rotary-callout ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.th-rotary-callout li {
    padding: 12px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
    color: rgba(255, 255, 255, 0.82);
    font-size: 15px;
    line-height: 1.45;
}

.th-rotary-callout li:first-child {
    border-top: 0;
    padding-top: 0;
}

.th-rotary-callout li strong {
    display: block;
    color: #fff;
    font-size: 17px;
    font-weight: 800;
}

/* Book section: same background treatment as the Book page hero. */
.th-rotary-book {
    position: relative;
    background:
        linear-gradient(105deg, rgba(0, 51, 73, 0.97) 0%, rgba(0, 51, 73, 0.91) 43%, rgba(6, 37, 49, 0.62) 100%),
        var(--book-cover) center right / cover no-repeat;
    color: #fff;
}

.th-rotary-book__grid {
    display: grid;
    grid-template-columns: minmax(220px, 380px) minmax(0, 1fr);
    gap: clamp(32px, 6vw, 80px);
    align-items: center;
}

.th-rotary-book__cover {
    position: relative;
    margin: 0;
}

.th-rotary-book__cover::before {
    content: "";
    position: absolute;
    inset: 7% -7% -7% 7%;
    background: rgba(0, 0, 0, 0.28);
    filter: blur(24px);
    z-index: 0;
}

.th-rotary-book__cover img {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    height: auto;
    border: 10px solid #0b6d99;
    box-shadow: 0 26px 60px rgba(0, 0, 0, 0.34);
}

.th-rotary-book h2 {
    color: #fff;
    font-family: "Mr Eaves Mod OT", "Avenir Next", sans-serif;
}

.th-rotary-book__copy p {
    margin: 18px 0 0;
    color: rgba(255, 255, 255, 0.88);
    font-size: clamp(17px, 1.45vw, 20px);
    line-height: 1.65;
}

.th-rotary-book blockquote {
    margin: 26px 0 30px;
    padding: 4px 0 4px 22px;
    border-left: 5px solid var(--th-speaking-orange);
}

.th-rotary-book blockquote p {
    margin: 0;
    color: #fff;
    font-style: italic;
}

.th-rotary-book cite {
    display: block;
    margin-top: 8px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    font-style: normal;
}

/* Invite section: copy and program boxes on the left, form on the right.
   On narrow screens the form follows the intro, then the boxes. */
.th-rotary-invite__grid {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    grid-template-areas:
        "intro form"
        "programs form";
    grid-template-rows: auto 1fr;
    column-gap: clamp(32px, 5vw, 64px);
    align-items: start;
}

.th-rotary-invite__intro {
    grid-area: intro;
}

.th-rotary-invite h2 {
    color: #fff;
}

.th-rotary-invite__intro p {
    margin: 20px 0 0;
    color: rgba(255, 255, 255, 0.86);
    font-size: clamp(17px, 1.45vw, 20px);
    line-height: 1.7;
}

.th-rotary-programs {
    grid-area: programs;
    display: grid;
    gap: 16px;
    margin-top: clamp(28px, 3vw, 40px);
}

.th-rotary-programs .th-speaking-topic {
    padding: 20px 24px;
}

.th-rotary-programs .th-speaking-topic h3 {
    margin-bottom: 8px;
    font-size: clamp(24px, 2.2vw, 28px);
}

.th-rotary-programs .th-speaking-topic p {
    font-size: 16px;
    line-height: 1.5;
}

.th-rotary-form-card {
    grid-area: form;
    scroll-margin-top: 110px;
}

.th-rotary-form-card .th-speaking-form-note a {
    color: var(--th-speaking-harbor);
}

@media (max-width: 980px) {
    .th-rotary-member__grid,
    .th-rotary-book__grid {
        grid-template-columns: 1fr;
    }

    .th-rotary-invite__grid {
        grid-template-columns: 1fr;
        grid-template-areas:
            "intro"
            "form"
            "programs";
        grid-template-rows: auto;
    }

    .th-rotary-form-card {
        margin-top: 32px;
        scroll-margin-top: 90px;
    }

    .th-rotary-book__cover {
        width: min(320px, 80%);
    }
}

@media (max-width: 640px) {
    .th-rotary-video video {
        border-width: 7px;
        border-radius: 14px;
    }
}
