/* Rotary Club of Pathanamthitta Metro — site styles.
   Mobile-first: base rules target 360px, media queries scale up.
   Palette follows Rotary International brand colours. */

:root {
    --rc-blue:      #17458F;   /* Royal Blue */
    --rc-blue-dark: #0F2F63;
    --rc-gold:      #F7A81B;   /* Gold */
    --rc-azure:     #0067C8;
    --rc-ink:       #1B2A41;
    --rc-muted:     #5A6B84;
    --rc-line:      #E4E9F2;
    --rc-surface:   #F6F8FB;
}

body {
    font-family: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
    color: var(--rc-ink);
    line-height: 1.6;
}

/* Nothing may force the body to scroll sideways on a phone. */
html, body { overflow-x: hidden; }

/* Visible focus ring — keyboard users need it and it survives the dark navbar. */
.btn:focus-visible, .nav-link:focus-visible, .form-control:focus-visible,
.rc-quick a:focus-visible, .rc-card-title a:focus-visible {
    outline: 3px solid var(--rc-gold);
    outline-offset: 2px;
}

/* ---------- Navbar ---------- */
.rc-navbar { background: var(--rc-blue); box-shadow: 0 2px 8px rgba(0,0,0,.15); }

.rc-wheel {
    display: inline-flex; align-items: center; justify-content: center;
    width: 2.25rem; height: 2.25rem; border-radius: 50%;
    background: var(--rc-gold); color: var(--rc-blue-dark);
    font-size: 1.35rem; flex-shrink: 0;
}

.rc-brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.rc-brand-main { font-weight: 700; font-size: 1rem; letter-spacing: .2px; }
.rc-brand-sub  { font-size: .72rem; opacity: .85; letter-spacing: .3px; }

.rc-navbar .nav-link { color: rgba(255,255,255,.88); font-weight: 500; }
.rc-navbar .nav-link:hover, .rc-navbar .nav-link:focus { color: #fff; }

/* Finger-sized tap targets once the menu collapses. */
@media (max-width: 991.98px) {
    .rc-navbar .nav-link { padding-top: .65rem; padding-bottom: .65rem; }
}

/* Dropdown in the top nav */
.rc-navbar .dropdown-toggle::after { vertical-align: .15em; }
.rc-dropdown {
    border: 0;
    border-radius: .6rem;
    box-shadow: 0 .5rem 1.5rem rgba(15, 47, 99, .18);
    padding: .4rem;
    margin-top: .35rem;
}
.rc-dropdown .dropdown-item {
    border-radius: .4rem;
    padding: .5rem .7rem;
    font-size: .92rem;
    color: var(--rc-ink);
    display: flex;
    align-items: center;
}
.rc-dropdown .dropdown-item i { color: var(--rc-blue); }
.rc-dropdown .dropdown-item:hover,
.rc-dropdown .dropdown-item:focus { background: var(--rc-surface); color: var(--rc-blue); }

/* On phones the menu opens inside the collapsed navbar; tint it to match. */
@media (max-width: 991.98px) {
    .rc-navbar .rc-dropdown {
        background: rgba(255, 255, 255, .06);
        box-shadow: none;
        margin: .25rem 0 .25rem .75rem;
    }
    .rc-navbar .rc-dropdown .dropdown-item { color: rgba(255, 255, 255, .88); }
    .rc-navbar .rc-dropdown .dropdown-item i { color: var(--rc-gold); }
    .rc-navbar .rc-dropdown .dropdown-item:hover { background: rgba(255, 255, 255, .12); color: #fff; }
    .rc-navbar .dropdown-divider { border-color: rgba(255, 255, 255, .2); }
}

.btn-rc-gold {
    background: var(--rc-gold); border-color: var(--rc-gold);
    color: var(--rc-blue-dark); font-weight: 600;
}
.btn-rc-gold:hover, .btn-rc-gold:focus {
    background: #E09A15; border-color: #E09A15; color: var(--rc-blue-dark);
}

/* ---------- Hero ---------- */
.rc-hero {
    background: linear-gradient(135deg, var(--rc-blue) 0%, var(--rc-azure) 100%);
    color: #fff; padding: 2.5rem 0;
}

/* Photo hero: cover the section, then lay a blue-to-dark scrim over the image so
   the heading and buttons stay legible on any photograph. */
.rc-hero-photo {
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.rc-hero-photo::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
                rgba(15, 47, 99, .88) 0%,
                rgba(23, 69, 143, .72) 55%,
                rgba(0, 103, 200, .55) 100%);
}
.rc-hero-photo > .container { position: relative; z-index: 1; }

.rc-hero h1    { font-weight: 700; font-size: 1.65rem; }
.rc-hero .lead { font-size: 1rem; opacity: .92; }

@media (min-width: 768px) {
    .rc-hero       { padding: 4rem 0; }
    .rc-hero h1    { font-size: 2.5rem; }
    .rc-hero .lead { font-size: 1.15rem; }
}

/* President / Secretary cards in the hero */
.rc-hero-leader {
    display: flex;
    align-items: center;
    gap: .85rem;
    background: #fff;
    color: var(--rc-ink);
    border-radius: .75rem;
    padding: .75rem .9rem;
}
.rc-hero-leader img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

/* ---------- Sections ---------- */
.rc-section      { padding: 2.25rem 0; }
.rc-section-head { margin-bottom: 1.25rem; }
.rc-section-head h2 {
    font-weight: 700; font-size: 1.35rem;
    color: var(--rc-blue); margin-bottom: .25rem;
}
.rc-section-head p { color: var(--rc-muted); margin-bottom: 0; font-size: .95rem; }

@media (min-width: 768px) {
    .rc-section         { padding: 3.5rem 0; }
    .rc-section-head h2 { font-size: 1.75rem; }
}

/* ---------- Statistic tiles ---------- */
.rc-stat {
    background: #fff; border: 1px solid var(--rc-line); border-radius: .75rem;
    padding: 1.1rem .75rem; text-align: center; height: 100%;
}
.rc-stat-value { font-size: 1.6rem; font-weight: 700; color: var(--rc-blue); line-height: 1.1; }
.rc-stat-label { font-size: .8rem; color: var(--rc-muted); }

@media (min-width: 768px) {
    .rc-stat-value { font-size: 2.1rem; }
    .rc-stat-label { font-size: .875rem; }
}

/* ---------- Cards ---------- */
/* No height:100% here. Columns that stack more than one card (the Contact page
   stacks details + map) would then demand 100% each and overflow the layout.
   Add Bootstrap's .h-100 on cards inside equal-height grids instead. */
.rc-card {
    border: 1px solid var(--rc-line); border-radius: .75rem; overflow: hidden;
    background: #fff; transition: box-shadow .15s ease-in-out;
}
.rc-card:hover { box-shadow: 0 .5rem 1rem rgba(23,69,143,.10); }

.rc-card-img {
    width: 100%; aspect-ratio: 16 / 9; object-fit: cover;
    background: var(--rc-surface); display: block;
}

.rc-card-body  { padding: .9rem 1rem 1.1rem; }
.rc-card-title { font-size: 1.02rem; font-weight: 600; margin-bottom: .35rem; }
.rc-card-title a { color: var(--rc-ink); text-decoration: none; }
.rc-card-title a:hover { color: var(--rc-blue); }
.rc-card-meta  { font-size: .8rem; color: var(--rc-muted); }
.rc-card-text  { font-size: .9rem; color: #445; margin-bottom: 0; }

.rc-badge-cat {
    background: rgba(23,69,143,.08); color: var(--rc-blue);
    font-size: .72rem; font-weight: 600; padding: .2rem .5rem; border-radius: 1rem;
}

/* ---------- End Polio Now band ---------- */
.rc-epn-band { padding: 1.5rem 0; }
.rc-epn-inner {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    background: linear-gradient(135deg, #E60012 0%, #C40010 100%);
    border-radius: .9rem;
    padding: 1.25rem 1.5rem;
    text-decoration: none;
    color: #fff;
    box-shadow: 0 .4rem 1rem rgba(196, 0, 16, .22);
    transition: transform .15s ease, box-shadow .15s ease;
}
.rc-epn-inner:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 .6rem 1.4rem rgba(196, 0, 16, .3);
}
.rc-epn-logo {
    width: 5rem;
    height: 5rem;
    border-radius: .6rem;
    flex-shrink: 0;
    background: #fff;
    padding: .15rem;
}
.rc-epn-text  { flex-grow: 1; min-width: 0; }
.rc-epn-title { font-size: 1.15rem; font-weight: 700; margin-bottom: .2rem; }
.rc-epn-sub   { font-size: .9rem; opacity: .95; }
.rc-epn-cta {
    flex-shrink: 0;
    font-weight: 600;
    background: rgba(255, 255, 255, .18);
    border-radius: 2rem;
    padding: .5rem 1rem;
    white-space: nowrap;
}

@media (max-width: 575.98px) {
    .rc-epn-inner { flex-direction: column; text-align: center; }
    .rc-epn-cta   { width: 100%; }
}

/* ---------- Celebrations ---------- */
.rc-celebrate-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: #fff;
    border: 1px solid var(--rc-line);
    border-radius: .75rem;
    padding: 1.25rem 1rem 1.1rem;
    position: relative;
    overflow: hidden;
}
.rc-celebrate-card.birthday    { border-top: 3px solid var(--rc-gold); }
.rc-celebrate-card.anniversary { border-top: 3px solid #EC407A; }

.rc-celebrate-badge {
    font-size: .78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .03em;
    color: var(--rc-muted);
    display: flex;
    align-items: center;
    gap: .35rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: .9rem;
}
.rc-celebrate-card.birthday    .rc-celebrate-badge i { color: var(--rc-gold); font-size: 1.1rem; }
.rc-celebrate-card.anniversary .rc-celebrate-badge i { color: #EC407A; font-size: 1.1rem; }
.rc-celebrate-when {
    background: var(--rc-surface);
    border-radius: 1rem;
    padding: .1rem .5rem;
    color: var(--rc-blue);
    font-weight: 700;
}

.rc-celebrate-people {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .75rem;
    margin-bottom: .85rem;
}
.rc-celebrate-person { display: flex; flex-direction: column; align-items: center; gap: .4rem; }
.rc-celebrate-person img,
.rc-celebrate-avatar {
    width: 4.5rem;
    height: 4.5rem;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--rc-surface);
    box-shadow: 0 .25rem .6rem rgba(0, 0, 0, .1);
}
.rc-celebrate-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--rc-surface);
    color: var(--rc-blue);
    font-size: 1.6rem;
}
.rc-celebrate-name { font-size: .82rem; font-weight: 600; max-width: 6.5rem; line-height: 1.25; }
.rc-celebrate-join { color: #EC407A; font-size: 1.35rem; }
.rc-celebrate-msg  { font-size: .9rem; color: #445; margin-bottom: 0; }

/* ---------- Quick actions (spec section 29) ---------- */
.rc-quick a {
    display: flex; flex-direction: column; align-items: center; gap: .35rem;
    padding: .9rem .4rem; background: #fff; border: 1px solid var(--rc-line);
    border-radius: .75rem; text-decoration: none; color: var(--rc-ink);
    font-size: .8rem; font-weight: 500; text-align: center;
    height: 100%; min-height: 5rem;      /* comfortable tap target */
}
.rc-quick a:hover { border-color: var(--rc-blue); color: var(--rc-blue); }
.rc-quick i       { font-size: 1.5rem; color: var(--rc-blue); }

/* ---------- Footer ---------- */
.rc-footer         { background: var(--rc-blue-dark); color: rgba(255,255,255,.85); }
.rc-footer a       { color: rgba(255,255,255,.85); text-decoration: none; }
.rc-footer a:hover { color: #fff; text-decoration: underline; }
.rc-footer-head    { color: var(--rc-gold); font-weight: 600; font-size: .95rem; margin-bottom: .6rem; }

/* Quick Links flow into two columns — the list is long enough to warrant it. */
.rc-footer-links {
    column-count: 2;
    column-gap: 1.25rem;
}
.rc-footer-links li { break-inside: avoid; margin-bottom: .15rem; }

/* ---------- Gallery ---------- */
.rc-album-card       { color: inherit; }
.rc-album-card:hover { color: inherit; }
.rc-album-card .rc-card-img { background: var(--rc-surface); }

.rc-photo-btn {
    display: block;
    width: 100%;
    padding: 0;
    border: 1px solid var(--rc-line);
    border-radius: .5rem;
    overflow: hidden;
    background: var(--rc-surface);
    cursor: pointer;
}
.rc-photo-btn img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}
.rc-photo-btn:hover        { border-color: var(--rc-blue); }
.rc-photo-btn:focus-visible { outline: 3px solid var(--rc-gold); outline-offset: 2px; }
.rc-photo-btn { position: relative; }

/* Play badge over a video thumbnail. */
.rc-video-play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 2.25rem;
    background: rgba(0, 0, 0, .28);
    pointer-events: none;
}
.rc-video-play i { filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .5)); }
.rc-video-blank {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    aspect-ratio: 4 / 3;
    background: var(--rc-blue-dark);
    color: rgba(255, 255, 255, .8);
    font-size: 2rem;
}

/* Lightbox video: 16:9 responsive iframe. */
.rc-lb-video {
    width: min(90vw, 1100px);
    aspect-ratio: 16 / 9;
    max-height: calc(100vh - 7rem);
}
.rc-lb-video iframe,
.rc-lb-video video { width: 100%; height: 100%; border-radius: .25rem; background: #000; }

/* Video gallery cover button */
.rc-video-cover {
    position: relative;
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    cursor: pointer;
    background: var(--rc-blue-dark);
    overflow: hidden;
}
.rc-video-cover img,
.rc-video-cover .rc-video-blank {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
}
.rc-video-cover:focus-visible { outline: 3px solid var(--rc-gold); outline-offset: 2px; }

/* ---------- Lightbox ---------- */
.rc-lightbox {
    position: fixed;
    inset: 0;
    z-index: 1090;
    background: rgba(0, 0, 0, .92);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem .5rem;
}
.rc-lightbox[hidden] { display: none; }

.rc-lb-figure { margin: 0; max-width: 100%; max-height: 100%; text-align: center; }
.rc-lb-figure img {
    max-width: 100%;
    max-height: calc(100vh - 7rem);
    object-fit: contain;
    border-radius: .25rem;
}
.rc-lb-figure figcaption {
    color: #fff;
    font-size: .875rem;
    margin-top: .75rem;
    opacity: .85;
}

.rc-lb-close, .rc-lb-nav {
    position: absolute;
    background: rgba(255, 255, 255, .12);
    color: #fff;
    border: 0;
    border-radius: 50%;
    width: 2.75rem;                  /* 44px — a real tap target */
    height: 2.75rem;
    font-size: 1.35rem;
    display: flex;
    align-items: center;
    justify-content: center;
}
.rc-lb-close:hover, .rc-lb-nav:hover { background: rgba(255, 255, 255, .25); }
.rc-lb-close:focus-visible, .rc-lb-nav:focus-visible {
    outline: 3px solid var(--rc-gold); outline-offset: 2px;
}

.rc-lb-close { top: .75rem; right: .75rem; }
.rc-lb-prev  { left: .5rem; }
.rc-lb-next  { right: .5rem; }

@media (min-width: 768px) {
    .rc-lb-prev { left: 1.5rem; }
    .rc-lb-next { right: 1.5rem; }
}

/* ---------- Theme timeline ---------- */
.rc-timeline {
    list-style: none;
    margin: 0;
    padding: 0 0 0 1.75rem;
    position: relative;
}
/* The spine runs behind the markers. */
.rc-timeline::before {
    content: "";
    position: absolute;
    left: .45rem;
    top: .5rem;
    bottom: .5rem;
    width: 2px;
    background: var(--rc-line);
}

.rc-timeline-item { position: relative; padding-bottom: 1.5rem; }
.rc-timeline-item:last-child { padding-bottom: 0; }

.rc-timeline-marker {
    position: absolute;
    left: -1.75rem;
    top: .35rem;
    width: .95rem;
    height: .95rem;
    border-radius: 50%;
    background: #fff;
    border: 3px solid var(--rc-blue);
}
.rc-timeline-item.current .rc-timeline-marker {
    border-color: var(--rc-gold);
    box-shadow: 0 0 0 4px rgba(247, 168, 27, .22);
}

.rc-timeline-year {
    font-size: .82rem;
    font-weight: 700;
    color: var(--rc-muted);
    letter-spacing: .03em;
}
.rc-timeline-theme {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--rc-blue);
    line-height: 1.35;
}
.rc-timeline-item.current .rc-timeline-theme { color: var(--rc-blue-dark); }
.rc-timeline-president { font-size: .85rem; color: var(--rc-muted); margin-top: .1rem; }

/* Prose variant, used for the Paul Harris life timeline. */
.rc-timeline-text { font-size: .95rem; line-height: 1.55; }

/* ---------- Our Work cards ---------- */
.rc-work-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--rc-line);
    border-radius: .75rem;
    overflow: hidden;
    transition: box-shadow .15s ease-in-out;
}
.rc-work-card:hover { box-shadow: 0 .5rem 1rem rgba(23, 69, 143, .10); }

.rc-work-icon {
    height: 96px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}
.rc-work-icon i { font-size: 2.75rem; }

.rc-work-body  { padding: 1rem; display: flex; flex-direction: column; flex-grow: 1; }
.rc-work-title { font-size: 1.05rem; font-weight: 600; color: var(--rc-blue); margin-bottom: .4rem; }
.rc-work-text  { font-size: .9rem; color: #445; margin-bottom: .75rem; }
.rc-work-link  {
    margin-top: auto;
    font-size: .875rem;
    font-weight: 600;
    text-decoration: none;
    color: var(--rc-blue);
}
.rc-work-link:hover { text-decoration: underline; }

/* ---------- Leader message cards ---------- */
.rc-message-card {
    position: relative;
    background: #fff;
    border: 1px solid var(--rc-line);
    border-radius: .75rem;
    padding: 1.5rem 1.25rem 1.25rem;
    margin: 0;
}
.rc-message-icon {
    position: absolute;
    top: -1.1rem;
    left: 1.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 50%;
    background: var(--rc-gold);
    color: var(--rc-blue-dark);
    font-size: 1.25rem;
}
.rc-message-quote {
    font-size: .98rem;
    line-height: 1.6;
    color: var(--rc-ink);
    font-style: italic;
    margin: .5rem 0 1rem;
    padding-left: .9rem;
    border-left: 3px solid var(--rc-line);
}
.rc-message-by { font-size: .85rem; color: var(--rc-muted); }
.rc-message-by strong { color: var(--rc-blue); font-style: normal; }
.rc-message-photo {
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid var(--rc-surface);
    box-shadow: 0 .2rem .5rem rgba(0, 0, 0, .12);
}

/* District Governor photo in the feature banner. */
.rc-dg-photo {
    width: 4.5rem;
    height: 4.5rem;
    border-radius: .75rem;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid var(--rc-surface);
}

/* ---------- District signature projects ---------- */
.rc-signature-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--rc-line);
    border-radius: .75rem;
    overflow: hidden;
    transition: box-shadow .15s ease-in-out;
}
.rc-signature-card:hover { box-shadow: 0 .5rem 1rem rgba(23, 69, 143, .10); }

.rc-signature-head {
    display: flex;
    align-items: center;
    gap: .65rem;
    padding: .85rem 1rem;
    color: #fff;
}
.rc-signature-head i { font-size: 1.75rem; flex-shrink: 0; }
.rc-signature-name {
    font-weight: 700;
    font-size: 1.02rem;
    letter-spacing: .06em;   /* the Malayalam names read better spaced */
}

.rc-signature-body  { padding: .85rem 1rem 1rem; }
.rc-signature-focus {
    font-size: .78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .03em;
    color: var(--rc-muted);
    margin-bottom: .4rem;
}
.rc-signature-text { font-size: .875rem; color: #445; margin-bottom: 0; }

/* ---------- Member benefit cards ---------- */
.rc-benefit-card {
    background: #fff;
    border: 1px solid var(--rc-line);
    border-radius: .75rem;
    padding: 1.25rem 1rem;
}
.rc-benefit-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: .65rem;
    color: #fff;
    font-size: 1.4rem;
    margin-bottom: .75rem;
}
.rc-benefit-title { font-size: 1rem; font-weight: 600; color: var(--rc-blue); margin-bottom: .35rem; }
.rc-benefit-text  { font-size: .875rem; color: #445; margin-bottom: 0; }

/* ---------- Foundation recognition cards ---------- */
.rc-recog-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--rc-line);
    border-radius: .75rem;
    overflow: hidden;
}
.rc-recog-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: .5rem;
    padding: .7rem 1rem;
    color: #fff;
}
.rc-recog-abbr   { font-weight: 700; font-size: 1rem; letter-spacing: .02em; }
.rc-recog-amount { font-size: .82rem; opacity: .95; text-align: right; }

/* Colour by tier so the ladder is readable at a glance. */
.tier-entry  .rc-recog-head { background: #00897B; }
.tier-core   .rc-recog-head { background: var(--rc-blue); }
.tier-legacy .rc-recog-head { background: #6A1B9A; }
.tier-major  .rc-recog-head { background: #B8860B; }

.rc-recog-body   { padding: .9rem 1rem 1rem; display: flex; flex-direction: column; flex-grow: 1; }
.rc-recog-name   { font-size: 1rem; font-weight: 600; color: var(--rc-ink); margin-bottom: .35rem; }
.rc-recog-detail { font-size: .875rem; color: #445; margin-bottom: .75rem; }
.rc-recog-receives {
    margin-top: auto;
    font-size: .82rem;
    color: var(--rc-muted);
    background: var(--rc-surface);
    border-radius: .4rem;
    padding: .45rem .6rem;
}

/* ---------- Monthly theme cards ---------- */
.rc-month-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--rc-line);
    border-radius: .75rem;
    overflow: hidden;
    transition: box-shadow .15s ease-in-out;
}
.rc-month-card:hover   { box-shadow: 0 .5rem 1rem rgba(23, 69, 143, .10); }
.rc-month-card.current { border-color: var(--rc-gold); border-width: 2px; }

.rc-month-icon {
    height: 92px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1rem;
    color: #fff;
}
.rc-month-icon i { font-size: 2.25rem; }
.rc-month-label {
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: .03em;
    opacity: .95;
}

.rc-month-body  { padding: .9rem 1rem 1rem; display: flex; flex-direction: column; flex-grow: 1; }
.rc-month-title { font-size: 1rem; font-weight: 600; color: var(--rc-blue); margin-bottom: .35rem; }
.rc-month-text  { font-size: .875rem; color: #445; margin-bottom: .6rem; }

/* "This month" banner */
.rc-month-feature {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    background: #fff;
    border: 1px solid var(--rc-line);
    border-left: 4px solid var(--rc-gold);
    border-radius: .75rem;
    padding: 1.25rem;
}
.rc-month-feature-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 4rem;
    height: 4rem;
    border-radius: .75rem;
    color: #fff;
    flex-shrink: 0;
}
.rc-month-feature-icon i { font-size: 2rem; }

@media (max-width: 575.98px) {
    .rc-month-feature { flex-direction: column; align-items: flex-start; gap: .75rem; }
}

/* ---------- RI leader cards ---------- */
.rc-leader-card {
    background: #fff;
    border: 1px solid var(--rc-line);
    border-top: 3px solid var(--rc-gold);
    border-radius: .75rem;
    padding: 1.5rem 1rem;
    text-align: center;
}
.rc-leader-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 50%;
    background: rgba(23, 69, 143, .07);
    color: var(--rc-blue);
    font-size: 1.6rem;
    margin-bottom: .75rem;
}
.rc-leader-photo {
    width: 7rem;
    height: 7rem;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto .75rem;
    display: block;
    border: 3px solid var(--rc-surface);
    box-shadow: 0 .25rem .6rem rgba(0, 0, 0, .12);
}
.rc-leader-name  { font-weight: 700; font-size: 1.05rem; color: var(--rc-ink); }
.rc-leader-role  { font-size: .85rem; color: var(--rc-muted); margin-top: .15rem; }
.rc-leader-where { font-size: .8rem; color: var(--rc-muted); margin-top: .35rem; }
.rc-leader-bio   {
    font-size: .85rem;
    color: #445;
    margin: .75rem 0 0;
    text-align: left;
}
.rc-leader-role-tag {
    display: inline-block;
    font-size: .7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--rc-blue);
    background: rgba(23, 69, 143, .08);
    border-radius: 1rem;
    padding: .2rem .6rem;
    margin-bottom: .5rem;
}

/* Compact cards for the 15 directors — a grid of full leader cards would
   dominate the page. */
.rc-director-card {
    background: #fff;
    border: 1px solid var(--rc-line);
    border-left: 3px solid var(--rc-blue);
    border-radius: .5rem;
    padding: .7rem .85rem;
    text-align: center;
}
.rc-director-photo {
    width: 4.5rem;
    height: 4.5rem;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    margin: 0 auto .5rem;
    border: 2px solid var(--rc-surface);
}
.rc-director-name    { font-weight: 600; font-size: .92rem; color: var(--rc-ink); }
.rc-director-club    { font-size: .78rem; color: var(--rc-muted); margin-top: .1rem; }
.rc-director-country { font-size: .78rem; color: var(--rc-blue); margin-top: .2rem; font-weight: 500; }

.rc-leader-credit {
    font-size: .68rem;
    color: var(--rc-muted);
    margin-top: .6rem;
    line-height: 1.3;
}

/* Theme logo shown large on the leadership page. */
.rc-theme-feature {
    width: 190px;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid var(--rc-line);
    border-radius: .75rem;
    padding: .75rem;
}
.rc-theme-feature img { max-width: 100%; max-height: 100%; object-fit: contain; }

/* ---------- Founder portrait ---------- */
.rc-founder-portrait {
    width: 110px;
    height: auto;
    border-radius: .5rem;
    border: 3px solid rgba(255, 255, 255, .85);
    box-shadow: 0 .35rem .9rem rgba(0, 0, 0, .25);
    display: block;
}
@media (min-width: 768px) {
    .rc-founder-portrait { width: 150px; }
}

/* ---------- Theme cards ---------- */
.rc-theme-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--rc-line);
    border-radius: .75rem;
    overflow: hidden;
    transition: box-shadow .15s ease-in-out, border-color .15s;
}
.rc-theme-card:hover { box-shadow: 0 .5rem 1rem rgba(23, 69, 143, .10); }
.rc-theme-card.current { border-color: var(--rc-gold); border-width: 2px; }

/* Logos vary wildly in shape — 150x150 through 2850x1725 — so a fixed box with
   `contain` keeps the grid even without cropping any of them. */
.rc-theme-logo {
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: var(--rc-surface);
}
.rc-theme-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
.rc-theme-noimg { font-size: 2rem; color: var(--rc-line); }

.rc-theme-body { padding: .85rem 1rem 1rem; }
.rc-theme-year {
    font-size: .78rem;
    font-weight: 700;
    color: var(--rc-muted);
    letter-spacing: .04em;
}
.rc-theme-name {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--rc-blue);
    line-height: 1.3;
    margin: .15rem 0 .25rem;
}
.rc-theme-president { font-size: .82rem; color: var(--rc-muted); }

@media (min-width: 768px) {
    .rc-timeline-theme { font-size: 1.2rem; }
}

/* ---------- End Polio Now ---------- */
/* Rotary's polio campaign uses a distinct purple, not the club blue. */
.rc-polio-hero {
    background: linear-gradient(135deg, #6A1B9A 0%, #9C27B0 60%, var(--rc-gold) 240%);
    color: #fff;
    padding: 2.5rem 0;
}
.rc-polio-hero h1    { font-weight: 700; font-size: 1.75rem; }
.rc-polio-hero .lead { font-size: 1rem; opacity: .95; }

@media (min-width: 768px) {
    .rc-polio-hero       { padding: 4rem 0; }
    .rc-polio-hero h1    { font-size: 2.5rem; }
    .rc-polio-hero .lead { font-size: 1.15rem; max-width: 44rem; }
}

/* Callout for the "why we cannot stop" figure — it needs to read as a warning,
   not as another paragraph. */
.rc-polio-warning {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    background: #FFF8E1;
    border: 1px solid #FFE082;
    border-left: 4px solid var(--rc-gold);
    border-radius: .75rem;
    padding: 1rem;
    margin-top: 1.5rem;
}
.rc-polio-warning > i { font-size: 1.6rem; color: #E09A15; flex-shrink: 0; }
.rc-polio-warning h3  { color: #7A4E00; }

/* ---------- About: club building photo ---------- */
.rc-about-building {
    margin: 0;
    border-radius: .75rem;
    overflow: hidden;
    border: 1px solid var(--rc-line);
    position: relative;
}
.rc-about-building img {
    display: block;
    width: 100%;
    max-height: 420px;
    object-fit: cover;
}
.rc-about-building-cap {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: .6rem .9rem;
    color: #fff;
    font-size: .85rem;
    background: linear-gradient(to top, rgba(15, 47, 99, .8), rgba(15, 47, 99, 0));
}

/* ---------- History page ---------- */
.rc-history-hero {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #fff;
}

/* Gradient scrim so white text stays readable over any photograph, however
   bright. Without it the heading disappears on a pale sky. */
.rc-history-hero-inner {
    background: linear-gradient(180deg, rgba(15, 47, 99, .82) 0%, rgba(15, 47, 99, .68) 100%);
    padding: 3rem 0;
}
.rc-history-hero.no-image .rc-history-hero-inner {
    background: linear-gradient(135deg, var(--rc-blue) 0%, var(--rc-azure) 100%);
}

.rc-history-hero h1   { font-weight: 700; font-size: 1.75rem; }
.rc-history-hero .lead { font-size: 1rem; opacity: .95; }

@media (min-width: 768px) {
    .rc-history-hero-inner { padding: 5rem 0; }
    .rc-history-hero h1    { font-size: 2.75rem; }
    .rc-history-hero .lead { font-size: 1.2rem; max-width: 46rem; }
}

.rc-history-highlight {
    font-size: 1rem;
    font-weight: 700;
    color: var(--rc-blue);
    line-height: 1.25;
}
@media (min-width: 768px) { .rc-history-highlight { font-size: 1.15rem; } }

/* Charter team cards */
.rc-charter-card {
    display: flex;
    align-items: flex-start;
    gap: .85rem;
    background: #fff;
    border: 1px solid var(--rc-line);
    border-left: 3px solid var(--rc-gold);
    border-radius: .75rem;
    padding: 1rem;
}
.rc-charter-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    flex-shrink: 0;
    border-radius: 50%;
    background: rgba(23, 69, 143, .07);
    color: var(--rc-blue);
    font-size: 1.25rem;
}
.rc-charter-role {
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--rc-muted);
    font-weight: 600;
}
.rc-charter-name { font-weight: 600; font-size: .98rem; line-height: 1.35; }

.rc-charter-photo {
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid var(--rc-surface);
}

.rc-sponsor-person {
    display: flex;
    align-items: center;
    gap: .75rem;
    background: var(--rc-surface);
    border-radius: .6rem;
    padding: .6rem .75rem;
    height: 100%;
}
.rc-sponsor-photo {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}
.rc-sponsor-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: #fff;
    color: var(--rc-blue);
    font-size: 1.25rem;
    flex-shrink: 0;
}

/* Photo-setting rows in the admin panel */
.rc-photo-thumb {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--rc-line);
}
.rc-photo-empty {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: var(--rc-surface);
    color: var(--rc-muted);
    font-size: 1.2rem;
    border: 1px dashed var(--rc-line);
}

.rc-sponsor-panel {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: #fff;
    border: 1px solid var(--rc-line);
    border-radius: .75rem;
    padding: 1.25rem;
}
.rc-sponsor-panel > i {
    font-size: 2rem;
    color: var(--rc-gold);
    flex-shrink: 0;
}

/* ---------- History at a Glance ---------- */
/* CSS Grid, not Bootstrap columns. Floated/flex columns let a two-line label sit
   beside a one-line value, which makes the row borders ragged. Grid stretches
   both cells in a row to the same height, so the rules line up every time. */
.rc-history {
    display: grid;
    grid-template-columns: 1fr;          /* phones: label above value */
    border: 1px solid var(--rc-line);
    border-radius: .5rem;
    overflow: hidden;
}

@media (min-width: 576px) {
    .rc-history { grid-template-columns: minmax(11rem, 2fr) 3fr; }
}

.rc-history dt,
.rc-history dd {
    padding: .55rem .75rem;
    margin: 0;
    font-size: .9rem;
    border-bottom: 1px solid var(--rc-line);
    display: flex;                        /* vertical centring when heights differ */
    align-items: center;
    min-width: 0;                         /* let long values wrap, not overflow */
    overflow-wrap: anywhere;
}

.rc-history dt {
    font-weight: 600;
    color: var(--rc-blue);
    background: var(--rc-surface);
}
.rc-history dd { background: #fff; }

@media (min-width: 576px) {
    .rc-history dt { border-right: 1px solid var(--rc-line); }
}

/* Phones: label sits directly above its value, so drop the rule between them
   and let the pair read as one block. */
@media (max-width: 575.98px) {
    .rc-history dt { border-bottom: 0; padding-bottom: .1rem; font-size: .82rem; }
    .rc-history dd { padding-top: .1rem; }
}

/* No trailing rule under the last row. */
.rc-history dt:last-of-type,
.rc-history dd:last-of-type { border-bottom: 0; }

/* ---------- Utilities ---------- */
.rc-bg-surface { background: var(--rc-surface); }
.rc-empty {
    border: 1px dashed var(--rc-line); border-radius: .75rem;
    padding: 1.5rem; text-align: center; color: var(--rc-muted); font-size: .9rem;
}
