/* ===========================================================================
   Kishore Kumar Memorial Club — premium theme
   Palette: deep charcoal + warm gold accent + ivory
=========================================================================== */
:root {
    --ink: #16161a;
    --ink-soft: #3a3a42;
    --muted: #6c6c78;
    --ivory: #faf8f4;
    --paper: #ffffff;
    --line: #ece7df;
    --gold: #b72e32;
    --gold-dark: #8f2226;
    --gold-soft: #f7e3e3;
    --charcoal: #1b1b20;
    --charcoal-2: #26262d;
    --max: 1200px;
    --serif: "Poppins", system-ui, -apple-system, Segoe UI, sans-serif;
    --sans: "Poppins", system-ui, -apple-system, Segoe UI, sans-serif;
    --shadow-sm: 0 2px 10px rgba(20, 20, 30, 0.06);
    --shadow-md: 0 14px 40px rgba(20, 20, 30, 0.12);
    --shadow-lg: 0 30px 70px rgba(20, 20, 30, 0.18);
    --radius: 14px;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }

html { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--sans);
    font-size: 17px;
    font-weight: 300;
    color: var(--ink-soft);
    background: var(--ivory);
    line-height: 1.75;
}

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

a { color: var(--gold-dark); text-decoration: none; transition: color 0.2s var(--ease); }
a:hover { color: var(--gold); }

.container { max-width: var(--max); margin: 0 auto; padding: 0 1.5rem; }

h1, h2, h3, h4 { font-family: var(--serif); color: var(--ink); font-weight: 200; letter-spacing: 0.2px; }

.eyebrow {
    font-family: var(--sans);
    text-transform: uppercase;
    letter-spacing: 0.28em;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--gold-dark);
    margin: 0 0 0.6rem;
}

.section-title { font-size: clamp(1.9rem, 3.6vw, 2.9rem); line-height: 1.1; margin: 0; }

.rule { display: block; width: 68px; height: 3px; background: linear-gradient(90deg, var(--gold), var(--gold-dark)); margin: 1.1rem 0 1.5rem; border-radius: 2px; }
.rule.center { margin-left: auto; margin-right: auto; }

.section { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 3rem; }
.section-desc { margin: 1rem 0 0; color: var(--muted); font-size: 1.02rem; line-height: 1.6; }

/* --- Buttons ------------------------------------------------------------- */
.btn {
    display: inline-block;
    font-family: var(--sans);
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.04em;
    padding: 0.85rem 2rem;
    border-radius: 50px;
    border: 1.5px solid transparent;
    cursor: pointer;
    transition: all 0.25s var(--ease);
}
.btn-gold { background: linear-gradient(120deg, var(--gold), var(--gold-dark)); color: #fff; box-shadow: 0 10px 26px rgba(183, 46, 50, 0.4); }
.btn-gold:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 16px 34px rgba(183, 46, 50, 0.5); }
.btn-ghost { border-color: rgba(255,255,255,0.7); color: #fff; }
.btn-ghost:hover { background: #fff; color: var(--ink); }
.btn-dark { background: var(--charcoal); color: #fff; }
.btn-dark:hover { background: #000; color: #fff; transform: translateY(-2px); }

/* --- Top bar ------------------------------------------------------------- */
.topbar { background: var(--charcoal); color: rgba(255,255,255,0.72); font-size: 0.8rem; letter-spacing: 0.02em; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0.5rem; padding: 0.55rem 1.5rem; max-width: var(--max); margin: 0 auto; }
.topbar a { color: rgba(255,255,255,0.72); margin-right: 1.25rem; }
.topbar a:hover { color: var(--gold); }
.topbar-social a { margin: 0 0 0 1rem; }

/* --- Header / nav -------------------------------------------------------- */
.site-header { background: rgba(255,255,255,0.92); backdrop-filter: saturate(140%) blur(8px); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 100; }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 0.65rem 1.5rem; gap: 1rem; max-width: var(--max); margin: 0 auto; }
.site-logo { max-height: 64px; width: auto; }

.nav-toggle { display: none; background: none; border: 0; font-size: 1.7rem; color: var(--ink); cursor: pointer; }

.main-nav .menu { list-style: none; display: flex; gap: 0.15rem; margin: 0; padding: 0; align-items: center; }
.main-nav .menu-item { position: relative; }
.main-nav .menu-item > a {
    display: block;
    padding: 0.7rem 0.85rem;
    color: var(--ink);
    font-weight: 500;
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    position: relative;
}
.main-nav .menu-item > a::after {
    content: ""; position: absolute; left: 0.95rem; right: 0.95rem; bottom: 0.5rem;
    height: 2px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform 0.28s var(--ease);
}
.main-nav .menu-item > a:hover, .main-nav .menu-item.active > a { color: var(--gold-dark); }
.main-nav .menu-item > a:hover::after, .main-nav .menu-item.active > a::after { transform: scaleX(1); }

/* Dropdown indicator (caret) for items that have a submenu */
.main-nav .has-children > a { padding-right: 1.55rem; }
.main-nav .has-children > a::before {
    content: "";
    position: absolute;
    right: 0.85rem;
    top: 50%;
    width: 6px;
    height: 6px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: translateY(-70%) rotate(45deg);
    transition: transform 0.28s var(--ease);
    opacity: 0.75;
}
.main-nav .has-children:hover > a::before { transform: translateY(-30%) rotate(225deg); opacity: 1; }

.main-nav .sub-menu {
    list-style: none; margin: 0; padding: 0.5rem 0; position: absolute; left: 0; top: calc(100% + 6px);
    min-width: 260px; background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--gold);
    box-shadow: var(--shadow-md); opacity: 0; visibility: hidden; transform: translateY(8px);
    transition: all 0.25s var(--ease); z-index: 110;
}
.main-nav .has-children:hover > .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.main-nav .sub-menu a { display: block; padding: 0.65rem 1.15rem; color: var(--ink-soft); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em; }
.main-nav .sub-menu a:hover { background: var(--gold-soft); color: var(--gold-dark); }

/* --- Page banner --------------------------------------------------------- */
.page-banner { position: relative; background: var(--charcoal) url("../images/uploads/2018/02/banner3-1.jpg") center/cover no-repeat; color: #fff; padding: clamp(3rem, 6vw, 5rem) 0; text-align: center; overflow: hidden; }
.page-banner__overlay { position: absolute; inset: 0; background: linear-gradient(rgba(18,18,22,0.82), rgba(18,18,22,0.9)); }
.page-banner .container { position: relative; z-index: 2; }
.page-banner h1 { color: #fff; font-size: clamp(2rem, 4.5vw, 3.2rem); margin: 0.3rem 0 0; }
.breadcrumb { font-family: var(--sans); font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,0.6); margin: 0; }
.breadcrumb a { color: rgba(255,255,255,0.6); }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb span { margin: 0 0.4rem; color: var(--gold); }
.banner-rule { display: inline-block; width: 70px; height: 3px; background: var(--gold); margin-top: 1.1rem; border-radius: 2px; }

/* --- Hero banner (home) — full-width image carousel, no overlay text --- */
.hero--home {
    position: relative;
    background: #0e0e10;
    overflow: hidden;
    line-height: 0;
}
.hero-slider {
    display: grid;
    width: 100%;
    max-width: none;
    margin: 0;
}
.hero-slider img {
    grid-area: 1 / 1;
    width: 100%;
    height: auto;
    display: block;
    opacity: 0;
    animation: heroFade 18s infinite;
}
.hero-slider img:nth-child(1) { animation-delay: 0s; }
.hero-slider img:nth-child(2) { animation-delay: 6s; }
.hero-slider img:nth-child(3) { animation-delay: 12s; }
@keyframes heroFade {
    0% { opacity: 0; }
    4% { opacity: 1; }
    30% { opacity: 1; }
    34% { opacity: 0; }
    100% { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
    .hero-slider img { animation: none; opacity: 1; }
    .hero-slider img:nth-child(n+2) { display: none; }
}

/* --- Welcome section ----------------------------------------------------- */
.welcome-section { background: linear-gradient(180deg, var(--paper) 0%, var(--ivory) 100%); }
.welcome-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.welcome-media img, .welcome-media .media-placeholder {
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    width: 100%;
    display: block;
}
.welcome-media { position: relative; }
.welcome-media::before {
    content: "";
    position: absolute;
    inset: -14px -14px auto auto;
    width: 55%;
    height: 55%;
    border: 2px solid var(--gold);
    border-radius: var(--radius);
    z-index: -1;
    opacity: 0.85;
}
.welcome-copy .section-title { text-align: left; font-size: clamp(1.75rem, 3vw, 2.35rem); }
.welcome-highlights {
    list-style: none;
    margin: 0 0 1.75rem;
    padding: 0;
    display: grid;
    gap: 0.55rem;
}
.welcome-highlights li {
    position: relative;
    padding-left: 1.35rem;
    font-size: 0.95rem;
    color: var(--ink-soft);
}
.welcome-highlights li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--gold);
}
.welcome-actions { display: flex; flex-wrap: wrap; gap: 0.75rem 1.25rem; align-items: center; }
.btn-text {
    font-family: var(--sans);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--gold-dark);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.btn-text:hover { color: var(--gold); border-bottom-color: var(--gold); }

/* --- Objectives ---------------------------------------------------------- */
.objectives-section {
    background-color: var(--ivory);
    background-image: radial-gradient(rgba(183, 46, 50, 0.06) 1px, transparent 1px);
    background-size: 22px 22px;
}
.objectives-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.35rem; }
.objective-card {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.75rem 1.5rem 1.65rem;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
    position: relative;
    overflow: hidden;
}
.objective-card::after {
    content: "";
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, var(--gold), var(--gold-dark));
    opacity: 0;
    transition: opacity 0.3s var(--ease);
}
.objective-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: rgba(183, 46, 50, 0.22); }
.objective-card:hover::after { opacity: 1; }
.objective-num { font-family: var(--serif); font-size: 2.1rem; color: var(--gold); font-weight: 700; display: block; line-height: 1; margin-bottom: 0.55rem; opacity: 0.95; }
.objective-card p { margin: 0; color: var(--ink-soft); font-size: 0.96rem; line-height: 1.55; }

/* --- Explore ------------------------------------------------------------- */
.explore-section { background: var(--charcoal); }
.explore-section .eyebrow { color: var(--gold); }
.explore-section .section-title { color: #fff; }
.explore-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.explore-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 2.25rem 1.6rem 2rem;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.explore-card::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--gold), var(--gold-dark));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s var(--ease);
}
.explore-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 12px;
    background: var(--gold-soft);
    color: var(--gold-dark);
    font-size: 1.25rem;
    margin-bottom: 1.1rem;
    transition: transform 0.3s var(--ease), background 0.3s var(--ease);
}
.explore-card:hover .explore-icon { transform: scale(1.06); background: var(--gold); color: #fff; }
.explore-card h3 { color: var(--ink); margin: 0 0 0.6rem; font-size: 1.45rem; }
.explore-card p { color: var(--muted); font-size: 0.94rem; margin: 0 0 1.4rem; flex: 1; }
.explore-more { color: var(--gold-dark); font-family: var(--sans); font-size: 0.82rem; font-weight: 600; letter-spacing: 0.05em; margin-top: auto; }
.explore-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.explore-card:hover::before { transform: scaleX(1); }
.explore-card:hover .explore-more { color: var(--gold); }

/* --- Content layout + sidebar -------------------------------------------- */
.site-content { padding: 0 0 4rem; }
/* Give inner pages that follow the banner some breathing room */
.page-banner + .site-content { padding-top: clamp(2rem, 4vw, 3rem); }
/* Home manages its own full-width sections, so no top padding */
body.is-home .site-content { padding-top: 0; padding-bottom: 0; }
.content-layout { display: grid; grid-template-columns: 1fr 300px; gap: 3rem; align-items: start; }
.content-main { min-width: 0; }

.page { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.75rem, 4vw, 3rem); box-shadow: var(--shadow-sm); }
.page h2 { font-size: 1.9rem; margin: 0 0 0.4rem; }
.page h3 { font-size: 1.4rem; margin: 1.8rem 0 0.6rem; color: var(--gold-dark); }
.page h4 { font-size: 1.25rem; color: var(--gold-dark); margin: 1.6rem 0 0.6rem; }
.page p { margin: 0 0 1.2rem; }
.page ul { margin: 0 0 1.3rem; padding: 0; list-style: none; }
.page ul li { position: relative; padding-left: 1.6rem; margin-bottom: 0.7rem; }
.page ul li::before { content: "\276F"; position: absolute; left: 0; top: 0; color: var(--gold); font-size: 0.85rem; }
.lead { font-size: 1.2rem; font-weight: 500; color: var(--ink); margin: 0 0 1.4rem; }

.founder-section > section { margin-top: clamp(2rem, 4vw, 2.75rem); }
.founder-section > section > h2 {
    font-family: var(--serif);
    font-size: clamp(1.35rem, 2.8vw, 1.65rem);
    color: var(--gold-dark);
    margin: 0 0 1rem;
    padding-bottom: 0.35rem;
    border-bottom: 1px solid var(--line);
}
.founder-header { margin-bottom: 0.5rem; }
.founder-intro { display: flex; gap: 2rem; align-items: flex-start; flex-wrap: wrap; }
.founder-photo { flex: 0 0 220px; }
.founder-photo img, .founder-photo .media-placeholder { border-radius: var(--radius); box-shadow: var(--shadow-sm); width: 100%; }
.founder-lead { flex: 1; min-width: 220px; }
.founder-lead h1 {
    font-family: var(--serif);
    font-size: clamp(1.65rem, 3.5vw, 2.1rem);
    color: var(--ink);
    margin: 0 0 1rem;
    line-height: 1.2;
}
.founder-section cite { font-style: italic; font-weight: 500; }
.founder-books-list a { color: var(--ink-soft); text-decoration: none; border-bottom: 1px solid transparent; transition: color 0.2s, border-color 0.2s; }
.founder-books-list a:hover { color: var(--gold-dark); border-bottom-color: var(--gold); }
.founder-section .book-gallery { margin-top: 2rem; }

.about-kkmc > section { margin-top: clamp(2rem, 4vw, 2.75rem); }
.about-kkmc > section > h2,
.about-kkmc-org > h2 {
    font-family: var(--serif);
    font-size: clamp(1.35rem, 2.8vw, 1.65rem);
    color: var(--gold-dark);
    margin: 0 0 1rem;
    padding-bottom: 0.35rem;
    border-bottom: 1px solid var(--line);
}
.about-kkmc-org > h2:not(:first-child) { margin-top: 2rem; }
.about-kkmc-header h1 {
    font-family: var(--serif);
    font-size: clamp(1.65rem, 3.5vw, 2.1rem);
    color: var(--ink);
    margin: 0 0 1rem;
    line-height: 1.2;
}
.about-kkmc h3 {
    font-family: var(--serif);
    font-size: 1.15rem;
    color: var(--ink);
    margin: 1.5rem 0 0.65rem;
}
.about-kkmc ul li strong { color: var(--ink); }
.about-kkmc-org img.about-kkmc-org-chart,
.about-kkmc-org .about-kkmc-org-chart.media-placeholder {
    display: block;
    width: 100%;
    max-width: min(100%, 1024px);
    height: auto;
    margin: 0.75rem auto 0;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

.kkmc-talent-promotion > section { margin-top: clamp(2rem, 4vw, 2.75rem); }
.kkmc-talent-promotion > section > h2 {
    font-family: var(--serif);
    font-size: clamp(1.35rem, 2.8vw, 1.65rem);
    color: var(--gold-dark);
    margin: 0 0 1rem;
    padding-bottom: 0.35rem;
    border-bottom: 1px solid var(--line);
}
.kkmc-talent-lead h1 {
    font-family: var(--serif);
    font-size: clamp(1.65rem, 3.2vw, 2rem);
    color: var(--ink);
    margin: 0 0 1rem;
    line-height: 1.2;
}
.kkmc-talent-intro {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    flex-wrap: wrap;
}
.kkmc-talent-photo { flex: 0 0 200px; }
.kkmc-talent-photo img,
.kkmc-talent-photo .media-placeholder {
    width: 100%;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}
.kkmc-talent-lead { flex: 1; min-width: 240px; }
.kkmc-singers-scans {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 1.5rem;
}
.kkmc-singer-scan { margin: 0; }
.kkmc-singer-scan img,
.kkmc-singer-scan .media-placeholder {
    display: block;
    width: 100%;
    max-width: 640px;
    height: auto;
    margin: 0 auto;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

.kkmc-social-activities > section { margin-top: clamp(2rem, 4vw, 2.75rem); }
.kkmc-social-activities > section > h2 {
    font-family: var(--serif);
    font-size: clamp(1.35rem, 2.8vw, 1.65rem);
    color: var(--gold-dark);
    margin: 0 0 1rem;
    padding-bottom: 0.35rem;
    border-bottom: 1px solid var(--line);
}
.kkmc-social-lead h1 {
    font-family: var(--serif);
    font-size: clamp(1.65rem, 3.2vw, 2rem);
    color: var(--ink);
    margin: 0 0 1rem;
    line-height: 1.2;
}
.kkmc-social-intro {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    flex-wrap: wrap;
}
.kkmc-social-photo { flex: 0 0 min(100%, 320px); }
.kkmc-social-photo img,
.kkmc-social-photo .media-placeholder {
    width: 100%;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}
.kkmc-social-lead { flex: 1; min-width: 240px; }
.kkmc-activity-image {
    margin: 1.5rem 0 0;
    max-width: min(100%, 640px);
}
.kkmc-activity-image img,
.kkmc-activity-image .media-placeholder {
    display: block;
    width: 100%;
    height: auto;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}
.kkmc-activity-image figcaption {
    margin-top: 0.65rem;
    font-size: 0.9rem;
    color: var(--muted);
    text-align: center;
}

/* Shared KKMC inner-page layout (About, Activities, biographies, etc.) */
.kkmc-page > section:not(.kkmc-prose),
.kkmc-page > .kkmc-page-block { margin-top: clamp(2rem, 4vw, 2.75rem); }
.kkmc-page > section > h2,
.kkmc-page > .kkmc-page-block > h2 {
    font-family: var(--serif);
    font-size: clamp(1.35rem, 2.8vw, 1.65rem);
    color: var(--gold-dark);
    margin: 0 0 1rem;
    padding-bottom: 0.35rem;
    border-bottom: 1px solid var(--line);
}
.kkmc-page-header h1,
.kkmc-page-lead h1 {
    font-family: var(--serif);
    font-size: clamp(1.65rem, 3.2vw, 2.1rem);
    color: var(--ink);
    margin: 0 0 1rem;
    line-height: 1.2;
}
.kkmc-page-intro,
.kkmc-talent-intro,
.kkmc-social-intro,
.founder-intro {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    flex-wrap: wrap;
}
.kkmc-page-photo,
.kkmc-talent-photo,
.kkmc-social-photo,
.founder-photo { flex: 0 0 min(100%, 280px); }
.kkmc-page-photo img,
.kkmc-page-photo .media-placeholder,
.kkmc-talent-photo img,
.kkmc-talent-photo .media-placeholder,
.kkmc-social-photo img,
.kkmc-social-photo .media-placeholder,
.founder-photo img,
.founder-photo .media-placeholder {
    width: 100%;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}
.kkmc-page-lead,
.kkmc-talent-lead,
.kkmc-social-lead,
.founder-lead { flex: 1; min-width: 240px; }
.kkmc-page h3 {
    font-family: var(--serif);
    font-size: 1.15rem;
    color: var(--ink);
    margin: 1.5rem 0 0.65rem;
}
.kkmc-prose { margin-top: clamp(2rem, 4vw, 2.75rem); }
.kkmc-prose > *:first-child { margin-top: 0; }
.kkmc-pdf-viewer iframe {
    width: 100%;
    min-height: 75vh;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
}
.kkmc-missing {
    padding: 1.25rem 1.5rem;
    background: var(--ivory);
    border: 1px dashed var(--line);
    border-radius: var(--radius);
    color: var(--muted);
}
.kkmc-book-entry {
    display: grid;
    grid-template-columns: minmax(140px, 220px) 1fr;
    gap: 1.5rem 2rem;
    align-items: start;
    margin-bottom: 2.5rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid var(--line);
}
.kkmc-book-entry:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
.kkmc-book-entry h3 { margin: 0 0 0.5rem; font-size: 1.2rem; }
.kkmc-book-entry cite { font-style: italic; font-weight: 600; }
.kkmc-book-entry a { color: var(--gold-dark); text-decoration: none; font-weight: 500; }
.kkmc-book-entry a:hover { text-decoration: underline; }
@media (max-width: 640px) {
    .kkmc-book-entry { grid-template-columns: 1fr; }
}
.kkmc-link-cards { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.65rem; }
.kkmc-link-cards li { padding-left: 0; margin: 0; }
.kkmc-link-cards li::before { display: none; }
.kkmc-awards-section { margin-top: clamp(2rem, 4vw, 2.75rem); }
.kkmc-award-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 0.15rem 1.5rem;
    list-style: none;
    padding: 0;
    margin: 1.25rem 0 0;
}
.kkmc-award-grid li {
    padding: 0.45rem 0;
    margin: 0;
    font-size: 0.94rem;
    line-height: 1.45;
    color: var(--ink-soft);
    border-bottom: 1px solid var(--line);
}
.kkmc-award-grid li::before { display: none; }
.kkmc-award-scans { margin-top: clamp(2rem, 4vw, 2.75rem); }
.kkmc-link-cards a {
    display: block;
    padding: 0.85rem 1.1rem;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    color: var(--ink);
    text-decoration: none;
    font-weight: 500;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.kkmc-link-cards a:hover {
    border-color: var(--gold);
    box-shadow: var(--shadow-sm);
    color: var(--gold-dark);
}

/* image grids inside content */
.image-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 1rem; margin: 1.6rem 0; }
.image-grid img, .image-grid .media-placeholder { width: 100%; border-radius: 10px; box-shadow: var(--shadow-sm); background: #fff; }

.figure-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1.25rem; margin: 1.8rem 0; }
.figure-gallery figure { margin: 0; }
.figure-gallery img, .figure-gallery .media-placeholder { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 10px; box-shadow: var(--shadow-sm); transition: transform 0.3s var(--ease); }
.figure-gallery figure:hover img { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.figure-gallery figcaption { margin-top: 0.55rem; font-size: 0.85rem; color: var(--muted); text-align: center; letter-spacing: 0.02em; }

/* --- Sidebar ------------------------------------------------------------- */
.sidebar { position: sticky; top: 100px; }
.widget { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; }
.widget-title { font-size: 1.25rem; color: #fff; margin: 0; padding: 1.1rem 1.4rem; background: linear-gradient(120deg, var(--charcoal), var(--charcoal-2)); position: relative; }
.widget-title::after { content: ""; position: absolute; left: 1.4rem; bottom: 0.7rem; width: 40px; height: 2px; background: var(--gold); }
.widget-menu { list-style: none; margin: 0; padding: 0.5rem 0; }
.widget-menu li { border-bottom: 1px solid var(--line); }
.widget-menu li:last-child { border-bottom: 0; }
.widget-menu a { display: flex; align-items: baseline; gap: 0.5rem; padding: 0.72rem 1.4rem; color: var(--ink-soft); font-size: 0.92rem; transition: all 0.2s var(--ease); }
.widget-menu a:hover { background: var(--gold-soft); color: var(--gold-dark); padding-left: 1.7rem; }
.widget-menu .widget-caret { color: var(--gold); font-weight: 700; }
.widget-menu li.active a { background: var(--gold-soft); color: var(--gold-dark); font-weight: 600; }

/* --- Gallery page -------------------------------------------------------- */
/* Masonry gallery (Gallery page — BWG "gallery section") */
.gallery-page .masonry-gallery {
    columns: 4 260px;
    column-gap: 1.25rem;
    margin-top: 1.5rem;
}
.masonry-item {
    display: block;
    break-inside: avoid;
    margin: 0 0 1.25rem;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    background: var(--paper);
    position: relative;
    transition: box-shadow 0.35s var(--ease), transform 0.35s var(--ease);
}
.masonry-item img {
    display: block;
    width: 100%;
    height: auto;
    vertical-align: middle;
    transition: transform 0.45s var(--ease);
}
.masonry-item::after {
    content: "\2197";
    position: absolute;
    top: 0.65rem;
    right: 0.65rem;
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    background: rgba(0, 0, 0, 0.55);
    color: var(--gold);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s var(--ease);
    pointer-events: none;
}
.masonry-item:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.masonry-item:hover img { transform: scale(1.03); }
.masonry-item:hover::after { opacity: 1; }
@media (max-width: 900px) {
    .gallery-page .masonry-gallery { columns: 3 200px; }
}
@media (max-width: 600px) {
    .gallery-page .masonry-gallery { columns: 2 140px; column-gap: 0.75rem; }
    .masonry-item { margin-bottom: 0.75rem; }
}

/* --- Contact ------------------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: 2.5rem; }
.contact-info { background: linear-gradient(150deg, var(--charcoal), var(--charcoal-2)); color: rgba(255,255,255,0.82); padding: 2.2rem; border-radius: var(--radius); }
.contact-info h2 { color: #fff; margin-top: 0; }
.contact-info a { color: var(--gold); }
.contact-form-wrap { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 2.2rem; box-shadow: var(--shadow-sm); }
.contact-form-wrap h2 { margin-top: 0; }
.field { margin-bottom: 1.15rem; }
.field label { display: block; font-family: var(--sans); font-weight: 600; font-size: 0.85rem; letter-spacing: 0.02em; margin-bottom: 0.4rem; color: var(--ink); }
.field input, .field textarea { width: 100%; padding: 0.8rem 0.9rem; border: 1px solid var(--line); border-radius: 8px; font: inherit; font-size: 0.95rem; background: var(--ivory); transition: all 0.2s var(--ease); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--gold); background: #fff; box-shadow: 0 0 0 3px rgba(183,46,50,0.18); }
.err { color: #b02a1e; font-size: 0.82rem; display: block; margin-top: 0.3rem; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.alert { padding: 0.95rem 1.1rem; border-radius: 8px; margin-bottom: 1.2rem; font-size: 0.95rem; }
.alert-success { background: #e9f7ee; color: #1e7e34; border: 1px solid #bfe6cc; }
.alert-error { background: #fdecea; color: #b02a1e; border: 1px solid #f3c7c2; }

/* --- Media placeholder --------------------------------------------------- */
.media-placeholder { display: flex; align-items: center; justify-content: center; text-align: center; aspect-ratio: 4/3; background: linear-gradient(135deg, var(--gold-soft), #f0d4d4); color: var(--gold-dark); border-radius: 10px; font-weight: 500; padding: 1rem; border: 1px dashed rgba(183,46,50,0.4); }
.media-placeholder span { font-size: 0.95rem; }

/* --- Footer -------------------------------------------------------------- */
.site-footer { background: var(--charcoal); color: rgba(255,255,255,0.65); margin-top: 0; }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; padding: 3.5rem 1.5rem; max-width: var(--max); margin: 0 auto; }
.footer-col h3 { color: #fff; font-size: 1.4rem; margin-top: 0; margin-bottom: 1rem; }
.footer-col p { font-size: 0.94rem; }
.footer-col a { color: rgba(255,255,255,0.72); }
.footer-col a:hover { color: var(--gold); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); text-align: center; padding: 1.3rem; font-size: 0.85rem; color: rgba(255,255,255,0.5); }
.footer-bottom .container { padding: 0; }

/* --- Reveal on scroll ---------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* --- Responsive ---------------------------------------------------------- */
@media (max-width: 1024px) {
    .explore-grid { grid-template-columns: repeat(2, 1fr); }
    .objectives-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
    .content-layout { grid-template-columns: 1fr; }
    .sidebar { position: static; }
    .welcome-grid { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
    .topbar { display: none; }
    .nav-toggle { display: block; }
    .main-nav { display: none; width: 100%; flex-basis: 100%; margin-top: 0.5rem; }
    .main-nav.open { display: block; }
    .header-inner { flex-wrap: wrap; }
    .main-nav .menu { flex-direction: column; align-items: stretch; }
    .main-nav .menu-item > a::after { display: none; }
    .main-nav .has-children > a::before { transform: translateY(-30%) rotate(45deg); opacity: 0.9; }
    .main-nav .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; border-left: 3px solid var(--gold); border-radius: 0; padding-left: 0.5rem; min-width: 0; }
}
@media (max-width: 600px) {
    body { font-size: 16px; }
    .objectives-grid, .explore-grid { grid-template-columns: 1fr; }
    .footer-inner { grid-template-columns: 1fr; gap: 1.75rem; }
}

/* --- Home legacy CTA ----------------------------------------------------- */
.home-legacy-cta {
    background: linear-gradient(125deg, var(--charcoal) 0%, var(--charcoal-2) 55%, #1a1214 100%);
    color: #fff;
    padding: clamp(2.75rem, 5vw, 4rem) 0;
    border-top: 3px solid var(--gold);
}
.home-legacy-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.75rem 2rem;
}
.home-legacy-copy { max-width: 520px; }
.home-legacy-copy .eyebrow { color: var(--gold); }
.home-legacy-copy .section-title { color: #fff; font-size: clamp(1.6rem, 3vw, 2.1rem); margin-bottom: 0.5rem; }
.home-legacy-copy p { margin: 0; color: rgba(255, 255, 255, 0.78); }
.home-legacy-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.btn-ghost-light {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 1.5rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.45);
    color: #fff;
    font-family: var(--sans);
    font-weight: 600;
    font-size: 0.88rem;
    letter-spacing: 0.04em;
    text-decoration: none;
    transition: background 0.25s var(--ease), border-color 0.25s var(--ease);
}
.btn-ghost-light:hover { background: rgba(255, 255, 255, 0.1); border-color: #fff; }

/* --- Activities Gallery carousel ----------------------------------------- */
.gallery-carousel-section { background: var(--paper); border-block: 1px solid var(--line); }
.carousel { position: relative; max-width: 1200px; margin: 0 auto; padding: 0 3.5rem; }
.carousel-footer { text-align: center; margin-top: 2rem; padding-bottom: 0.5rem; }
.carousel-viewport { overflow: hidden; }
.carousel-track { display: flex; gap: 18px; transition: transform 0.7s var(--ease); will-change: transform; }
.carousel-slide { flex: 0 0 auto; width: 240px; }
.carousel-slide img,
.carousel-slide .media-placeholder {
    width: 240px;
    height: 210px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    background: #fff;
    border: 4px solid #fff;
    outline: 1px solid var(--line);
    transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.carousel-slide:hover img { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.carousel-btn {
    position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
    width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line);
    background: #fff; color: var(--ink); font-size: 1.7rem; line-height: 1; cursor: pointer;
    box-shadow: var(--shadow-sm); display: grid; place-items: center; transition: all 0.25s var(--ease);
}
.carousel-btn:hover { background: var(--gold); color: #fff; border-color: var(--gold); }
.carousel-prev { left: 0; }
.carousel-next { right: 0; }
@media (max-width: 600px) {
    .carousel { padding: 0 2.75rem; }
    .carousel-slide, .carousel-slide img, .carousel-slide .media-placeholder { width: 200px; }
    .carousel-slide img, .carousel-slide .media-placeholder { height: 175px; }
}

/* --- Social icons -------------------------------------------------------- */
.social-links { display: inline-flex; align-items: center; gap: 0.5rem; }
.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    color: currentColor;
    transition: transform 0.25s var(--ease), background-color 0.25s var(--ease), color 0.25s var(--ease);
}
.social-icon svg { width: 17px; height: 17px; fill: currentColor; }
.social-icon:hover { transform: translateY(-2px); color: #fff; }

/* Topbar variant (on dark charcoal bar) */
.topbar-social { display: inline-flex; gap: 0.4rem; }
.topbar-social .social-icon { color: rgba(255,255,255,0.72); background: rgba(255,255,255,0.06); }
.topbar-social .social-icon.social-facebook:hover { background: #1877f2; }
.topbar-social .social-icon.social-linkedin:hover { background: #0a66c2; }
.topbar-social .social-icon.social-youtube:hover  { background: #ff0000; }

/* Footer variant */
.footer-social { display: inline-flex; gap: 0.6rem; margin-top: 0.25rem; }
.footer-social .social-icon { width: 40px; height: 40px; color: rgba(255,255,255,0.72); background: rgba(255,255,255,0.08); }
.footer-social .social-icon svg { width: 19px; height: 19px; }
.footer-social .social-icon.social-facebook:hover { background: #1877f2; }
.footer-social .social-icon.social-linkedin:hover { background: #0a66c2; }
.footer-social .social-icon.social-youtube:hover  { background: #ff0000; }

/* --- Imported WordPress page content --------------------------------------- */
/* Imported WordPress page prose */
.wp-import {
    font-size: 1.02rem;
    line-height: 1.75;
    color: var(--ink-soft);
}
.wp-import::after { content: ""; display: table; clear: both; }
.wp-import > *:first-child { margin-top: 0; }
.wp-import p {
    margin: 0 0 1.15rem;
    max-width: 72ch;
}
.wp-import p:last-child { margin-bottom: 0; }
.wp-import h2, .wp-import h3, .wp-import h4,
.wp-import .wp-subtitle {
    font-family: var(--serif);
    color: var(--ink);
    line-height: 1.25;
    margin: 2rem 0 0.85rem;
    clear: both;
}
.wp-import .wp-subtitle,
.wp-import h3.wp-subtitle {
    font-size: 1.35rem;
    color: var(--gold-dark);
    padding-bottom: 0.35rem;
    border-bottom: 2px solid var(--gold-soft);
}
.wp-import h2 { font-size: 1.65rem; }
.wp-import h4 { font-size: 1.15rem; color: var(--gold-dark); margin-top: 1.5rem; }
.wp-import ul, .wp-import ol {
    margin: 0 0 1.35rem;
    padding: 0;
    list-style: none;
    max-width: 72ch;
}
.wp-import ul li, .wp-import ol li {
    position: relative;
    padding-left: 1.45rem;
    margin-bottom: 0.55rem;
}
.wp-import ul li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.62em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--gold);
}
.wp-import ul.wp-name-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 0.35rem 1.25rem;
    max-width: none;
    margin-bottom: 1.75rem;
}
.wp-import ul.wp-name-grid li {
    padding-left: 0;
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.45;
}
.wp-import ul.wp-name-grid li::before { display: none; }
.wp-import ul.wp-name-grid li::marker { content: none; }
.wp-import strong { color: var(--ink); font-weight: 600; }
.wp-import img { max-width: 100%; height: auto; border-radius: 8px; margin: 0.5rem 0 1rem; }
.wp-import img.alignright { float: right; margin: 0.25rem 0 1rem 1.25rem; max-width: min(100%, 320px); }
.wp-import img.alignleft { float: left; margin: 0.25rem 1.25rem 1rem 0; max-width: min(100%, 320px); }
.wp-import img.aligncenter,
.wp-import img.alignnone { display: block; margin: 1.5rem auto; clear: both; }
.wp-import .img-thumbnail { border: 1px solid var(--line); padding: 4px; background: #fff; }
.wp-import iframe { max-width: 100%; width: 100%; min-height: 70vh; border-radius: var(--radius); border: 1px solid var(--line); }
.wp-import table.tabletemp {
    width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: 0.92rem;
    background: var(--paper); box-shadow: var(--shadow-sm); border-radius: var(--radius); overflow: hidden;
    clear: both;
}
.wp-import table.tabletemp td, .wp-import table.tabletemp th {
    border: 1px solid var(--line); padding: 0.5rem 0.75rem; vertical-align: top;
}
.wp-import table.tabletemp tr:first-child td { background: var(--gold-soft); font-weight: 600; }
/* Legacy horoscope export classes */
.wp-import .p5, .wp-import .p6 { margin: 0 0 0.85rem; max-width: 72ch; }
.wp-import .ft2, .wp-import .ft3 { font-weight: 600; color: var(--ink); }
@media (max-width: 640px) {
    .wp-import img.alignright, .wp-import img.alignleft {
        float: none;
        margin: 1rem auto;
        display: block;
    }
    .wp-import ul.wp-name-grid { grid-template-columns: 1fr; }
}
.activity-links, .pdf-links { list-style: none; padding: 0; margin: 0 0 1.5rem; }
.activity-links li { margin: 0.35rem 0; }
.activity-links a { color: var(--gold-dark); font-weight: 500; text-decoration: none; }
.activity-links a:hover { text-decoration: underline; }
.pdf-links li { margin: 1rem 0; }
.pdf-links a { display: inline-flex; align-items: center; gap: 0.75rem; color: var(--ink); text-decoration: none; }
.pdf-links a:hover strong { color: var(--gold); }
.gallery-count { color: var(--muted); font-size: 0.95rem; margin-bottom: 1rem; }
.image-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 1.25rem; }
.image-grid figure { margin: 0; text-align: center; }
.image-grid figcaption { margin-top: 0.5rem; font-size: 0.9rem; color: var(--muted); }
.book-gallery { margin-top: 1.25rem; }
.book-gallery img { width: 100%; max-height: 320px; object-fit: contain; background: var(--paper); padding: 0.5rem; box-shadow: var(--shadow-sm); }
