/* ==========================================================================
   ISKCON Hare Krishna Fields - main styles
   Desktop values follow the 1920px Figma mockup (_design/home-desktop.png);
   clamp() scales them down for laptops. Breakpoint overrides: responsive.css
   ========================================================================== */

:root {
    --hkd-cream: #F7EFD8;
    --hkd-brown: #843E18;
    --hkd-yellow: #F7DC7A;
    --hkd-yellow-strip: #FCEA84;
    --hkd-blue: #054983;
    --hkd-green: #0C4B46;
    --hkd-sky: #C3D7E9;
    --hkd-dark: #303030;
    --hkd-black: #000;
    --hkd-white: #fff;

    --hkd-font-display: 'Inter', 'Helvetica Neue', Arial, sans-serif;
    --hkd-font-body: 'Poppins', 'Helvetica Neue', Arial, sans-serif;

    --hkd-container: 1570px;
    /* Side margin scales with the viewport: 175px at 1920 = 9.11vw (mockup) */
    --hkd-gutter: clamp(24px, 9.11vw, 175px);
    --hkd-radius: 16px;
    --hkd-section-y: clamp(56px, 5vw, 96px);
}

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

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--hkd-font-body);
    font-size: 16px;
    line-height: 1.4;
    color: var(--hkd-black);
    background: var(--hkd-cream);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }

.hkd-container {
    width: min(var(--hkd-container), 100% - var(--hkd-gutter) * 2);
    margin-inline: auto;
}
/* Seva grid sits inside 213px margins at 1920 = 11.09vw */
.hkd-container--narrow { --hkd-container: 1494px; --hkd-gutter: clamp(24px, 11.09vw, 213px); }

.hkd-sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.hkd-skip-link {
    position: absolute; left: 16px; top: -60px; z-index: 1000;
    padding: 10px 16px; background: var(--hkd-black); color: var(--hkd-white); border-radius: 6px;
}
.hkd-skip-link:focus { top: 16px; }

:focus-visible { outline: 3px solid var(--hkd-brown); outline-offset: 3px; }

/* Links for pages that are not built yet (see includes/config.php) */
.is-pending { cursor: default; }

/* ---------- Buttons & shared bits ---------- */
.hkd-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 6px 28px;
    border-radius: 999px;
    background: var(--hkd-yellow);
    color: var(--hkd-black);
    font-family: var(--hkd-font-display);
    font-size: clamp(15px, 0.94vw, 18px);
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
    transition: background-color .2s ease, transform .2s ease;
}
a.hkd-btn:hover { background: #F2CF52; transform: translateY(-1px); }

.hkd-more {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--hkd-font-body);
    font-size: clamp(15px, 0.89vw, 17px);
    font-weight: 500;
    color: var(--hkd-black);
}
.hkd-more i { font-size: .85em; transition: transform .2s ease; }
a.hkd-more:hover i { transform: translateX(3px); }

.hkd-center { text-align: center; }

.hkd-section { padding-block: var(--hkd-section-y); }
.hkd-section--brown { background: var(--hkd-brown); }
.hkd-section--blue { background: var(--hkd-blue); color: var(--hkd-white); }

.hkd-title {
    font-family: var(--hkd-font-display);
    font-size: clamp(32px, 2.76vw, 53px);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.01em;
}
.hkd-title--center { text-align: center; }
.hkd-title--yellow { color: var(--hkd-yellow); }
.hkd-title--white { color: var(--hkd-white); }

/* Section eyebrow with the brown "leaf" marker */
.hkd-tag {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 6px;
    font-size: clamp(18px, 1.25vw, 24px);
}
.hkd-tag__icon {
    flex: none;
    width: 40px;
    height: 33px;
    background: url('../images/section-icon1.webp') center / contain no-repeat;
}
.hkd-tag--light { color: var(--hkd-white); }
.hkd-tag--light .hkd-tag__icon { background-image: url('../images/section-icon2.webp'); }

/* Two-column text + image */
.hkd-split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 725px);
    align-items: center;
    gap: 40px;
}
.hkd-split__media img { width: 100%; }

/* ---------- Header ---------- */
.hkd-header {
    position: relative;
    z-index: 50;
    background: var(--hkd-sky);
}
.hkd-mantra {
    padding: 14px 0 12px;
    border-bottom: 1px solid #75828C;
    text-align: center;
    font-size: 14px;
    font-style: italic;
    line-height: 1.6;
}
.hkd-header__main {
    display: flex;
    align-items: center;
    height: clamp(95px, 6.56vw, 126px);
}
.hkd-logo {
    flex: none;
    align-self: flex-end;
    width: clamp(95px, 6.15vw, 118px);
}
.hkd-nav {
    flex: 1;
    display: flex;
    align-items: center;
    padding-left: 24px;
}
.hkd-nav__list {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}
.hkd-nav__list > li {
    position: relative;
    display: flex;
    align-items: center;
}
.hkd-nav__list > li + li::before {
    content: '';
    width: 1px;
    height: 20px;
    background: #616B74;
}
.hkd-nav__list > li > a,
.hkd-nav__list > li > span {
    display: block;
    padding: 12px clamp(10px, 0.8vw, 15px);
    font-family: var(--hkd-font-display);
    font-size: clamp(15px, 0.94vw, 18px);
    font-weight: 500;
    white-space: nowrap;
}
.hkd-nav__list > li > a:hover { color: var(--hkd-brown); }
.hkd-nav__donate { flex: none; }

.hkd-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 335px;
    padding: 4px 0;
    background: var(--hkd-black);
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity .2s ease, transform .2s ease, visibility .2s;
}
.has-dropdown:hover .hkd-dropdown,
.has-dropdown:focus-within .hkd-dropdown {
    opacity: 1;
    visibility: visible;
    transform: none;
}
.hkd-dropdown a {
    display: block;
    padding: 12px 16px;
    color: var(--hkd-white);
    font-family: var(--hkd-font-display);
    font-size: 20px;
}
.hkd-dropdown a:hover { color: var(--hkd-yellow); }

.hkd-nav-toggle {
    display: none;
    margin-left: auto;
    padding: 10px;
    background: none;
    border: 0;
    cursor: pointer;
}
.hkd-nav-toggle span {
    display: block;
    width: 26px;
    height: 3px;
    margin: 5px 0;
    border-radius: 2px;
    background: var(--hkd-black);
    transition: transform .25s ease, opacity .25s ease;
}
.hkd-nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hkd-nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hkd-nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Hero ---------- */
/* The banner image carries its own headline. The header covers its top 175px in the
   mockup, so we show the bottom 905px (1920:905) and pin the CTA to the artwork. */
.hkd-hero {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1920 / 905;
    background: var(--hkd-blue);
}
.hkd-hero__track,
.hkd-hero__slide { position: absolute; inset: 0; }
.hkd-hero__slide {
    opacity: 0;
    transition: opacity .8s ease;
}
.hkd-hero__slide.is-active { opacity: 1; }
.hkd-hero__slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center bottom;
}
.hkd-hero__cta {
    position: absolute;
    left: 9.11%;
    top: 47.85%;
}
.hkd-hero__arrow {
    position: absolute;
    top: 50%;
    width: 50px;
    height: 50px;
    margin-top: 25px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: rgba(48, 48, 48, .75);
    color: var(--hkd-white);
    font-size: 22px;
    cursor: pointer;
}
.hkd-hero__arrow--prev { left: 2%; }
.hkd-hero__arrow--next { right: 2%; }

/* ---------- Prabhupada ---------- */
.hkd-prabhupada { padding-block: clamp(48px, 3.65vw, 70px) clamp(40px, 2.35vw, 45px); }
.hkd-prabhupada .hkd-title { margin-bottom: clamp(16px, 1.25vw, 24px); }
.hkd-prabhupada__name {
    color: var(--hkd-brown);
    font-size: clamp(25px, 2.37vw, 46px);
    font-weight: 600;
    line-height: 1.2;
}
.hkd-prabhupada__full {
    margin-top: 10px;
    font-size: clamp(18px, 1.72vw, 34px);
    font-weight: 500;
    line-height: 1.2;
}
.hkd-prabhupada__rule {
    max-width: 615px;
    margin: 18px 0 20px;
    border: 0;
    border-top: 1px solid var(--hkd-brown);
}
.hkd-prabhupada__role {
    margin-bottom: 20px;
    font-size: clamp(16px, 1.04vw, 20px);
}

/* ---------- Events ---------- */
.hkd-events .hkd-title { margin-bottom: 30px; }
.hkd-events__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 25px;
}
.hkd-event-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 14px;
    background: var(--hkd-cream);
}
.hkd-event-card__img img {
    width: 100%;
    aspect-ratio: 512 / 289;
    object-fit: cover;
}
.hkd-event-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: clamp(20px, 1.6vw, 30px) clamp(20px, 2.5vw, 48px) clamp(32px, 3.6vw, 70px);
}
.hkd-event-card h3 {
    margin-bottom: 10px;
    color: var(--hkd-brown);
    font-size: clamp(18px, 1.24vw, 24px);
    font-weight: 600;
    line-height: 1.08;
}
.hkd-event-card p {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 30px;
    font-size: clamp(15px, 0.94vw, 18px);
    line-height: 1.1;
    text-align: justify;
}
.hkd-event-card .hkd-more { margin-top: auto; align-self: flex-start; }

/* Events page: the same cards in white on the cream page */
.hkd-events-page { padding-bottom: clamp(48px, 4.7vw, 90px); }
.hkd-events-page .hkd-events__grid { gap: 20px; margin-bottom: 0; }
.hkd-events-page .hkd-event-card { background: var(--hkd-white); }
.hkd-events-page .hkd-event-card h3 { font-size: clamp(19px, 1.25vw, 24px); }
.hkd-events-page .hkd-more { font-size: clamp(15px, 0.83vw, 16px); }
.hkd-events-page .hkd-more i { font-size: 1.1em; }

/* ---------- Sandhya Gurukul ---------- */
.hkd-gurukul { padding-block: clamp(56px, 6.7vw, 128px) clamp(56px, 5.5vw, 105px); }
.hkd-gurukul__top {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 475px);
    gap: 40px;
    align-items: start;
}
.hkd-gurukul .hkd-title { margin-bottom: clamp(18px, 1.8vw, 34px); }
.hkd-gurukul__tagline {
    color: var(--hkd-brown);
    font-size: clamp(20px, 1.5vw, 29px);
    font-weight: 700;
    line-height: 1.2;
}
.hkd-gurukul__meta {
    display: flex;
    flex-wrap: wrap;
    margin: 12px 0 20px;
    font-size: clamp(15px, 0.99vw, 19px);
    font-weight: 500;
}
.hkd-gurukul__meta span + span::before {
    content: '|';
    margin: 0 16px;
}
.hkd-gurukul__img img { width: 100%; border-radius: 6px; }
.hkd-gurukul__copy {
    max-width: 1500px;
    margin-top: 28px;
    font-size: clamp(15px, 0.99vw, 19px);
    line-height: 1.08;
}
.hkd-gurukul__copy p + p { margin-top: 24px; }

/* ---------- About Temple ---------- */
.hkd-temple { padding-block: clamp(56px, 4.8vw, 92px); }
.hkd-temple .hkd-split { grid-template-columns: minmax(0, 1fr) minmax(0, 710px); }
.hkd-temple .hkd-title { margin-bottom: 20px; line-height: 1; }
.hkd-temple__sub {
    margin-bottom: 14px;
    font-size: clamp(20px, 1.56vw, 30px);
    font-weight: 700;
    line-height: 1.2;
}
.hkd-temple__text {
    max-width: 720px;
    margin-bottom: 16px;
    font-size: clamp(15px, 0.94vw, 18px);
    line-height: 1.1;
}
.hkd-temple__img img { border-radius: var(--hkd-radius); }

/* ---------- Concept Design ---------- */
.hkd-concept { padding-block: clamp(56px, 4.8vw, 80px) clamp(48px, 3.6vw, 70px); }
.hkd-concept .hkd-title { margin-bottom: 30px; }
.hkd-concept__grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: clamp(16px, 3.1vw, 60px);
}
.hkd-concept__item { flex: 0 1 424px; }
.hkd-concept__item.is-featured { flex-basis: 470px; }
.hkd-concept__item img { width: 100%; border-radius: var(--hkd-radius); }
.hkd-concept__text {
    max-width: 1580px;
    margin: clamp(32px, 2.8vw, 55px) auto clamp(28px, 2.3vw, 45px);
    text-align: center;
    font-size: clamp(15px, 0.94vw, 18px);
    line-height: 1.1;
}

/* ---------- Stay connected strip ---------- */
.hkd-connect { background: var(--hkd-yellow-strip); }
.hkd-connect__inner {
    display: grid;
    grid-template-columns: minmax(0, 450px) minmax(0, 1fr) minmax(0, 220px);
    align-items: center;
    gap: 24px;
}
.hkd-connect__art { align-self: stretch; }
.hkd-connect__art img { width: 100%; height: 100%; object-fit: cover; }
.hkd-connect__body {
    padding-block: 24px;
    text-align: center;
}
.hkd-connect h2 {
    font-family: var(--hkd-font-display);
    font-size: clamp(22px, 1.63vw, 31px);
    font-weight: 600;
    line-height: 1.2;
}
.hkd-connect__social {
    display: flex;
    justify-content: center;
    gap: clamp(20px, 1.8vw, 35px);
    margin: 12px 0 10px;
    font-size: clamp(34px, 2.4vw, 46px);
    line-height: 1;
}
.hkd-connect__social .is-youtube { color: #E62117; }
.hkd-connect__social .is-whatsapp { color: #25A23B; }
.hkd-connect__social .is-facebook { color: #0866FF; }
.hkd-connect__social .is-x { color: var(--hkd-black); }
.hkd-connect__social .is-instagram i {
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hkd-connect__social a { transition: transform .2s ease; }
.hkd-connect__social a:hover { transform: translateY(-2px); }
.hkd-connect__lead {
    font-size: clamp(20px, 1.46vw, 28px);
    font-weight: 500;
    line-height: 1.3;
}
.hkd-connect__small {
    margin-top: 8px;
    font-size: clamp(14px, 0.94vw, 18px);
}
.hkd-connect__qr {
    padding: 12px;
    border-radius: 14px;
    background: var(--hkd-white);
}
.hkd-connect__qr img { width: 100%; }

/* ---------- Donation & Seva ---------- */
.hkd-seva { padding-block: clamp(56px, 4.2vw, 80px) clamp(48px, 3.6vw, 70px); }
.hkd-seva__sub {
    margin: 10px 0 24px;
    color: var(--hkd-yellow);
    text-align: center;
    font-size: clamp(15px, 0.94vw, 18px);
}
.hkd-seva__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 35px 18px;
    margin-bottom: 25px;
}
.hkd-seva-card {
    display: flex;
    flex-direction: column;
    min-height: 400px;
    padding: 0 clamp(16px, 1.15vw, 22px) 28px;
    border-radius: var(--hkd-radius);
    background: var(--hkd-cream);
}
.hkd-seva-card__img img {
    width: 100%;
    aspect-ratio: 315 / 230;
    object-fit: cover;
    border-radius: 0 0 12px 12px;
}
.hkd-seva-card h3 {
    margin: 20px 0 12px;
    padding-inline: 11px;
    color: var(--hkd-brown);
    font-size: clamp(20px, 1.46vw, 28px);
    font-weight: 600;
    line-height: 1;
}
.hkd-seva-card .hkd-more { padding-inline: 11px; align-self: flex-start; }
/* Only two cards now (Brick / Square Foot) - keep them centred instead of filling a 4-column row */
.hkd-seva__grid.hkd-seva__grid--pair { grid-template-columns: repeat(2, minmax(0, 315px)); justify-content: center; }

/* Seva enquiry (the other sevas, chosen with checkboxes) */
.hkd-enquiry {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
    margin-top: clamp(40px, 3.6vw, 64px);
    border-radius: 20px;
    background:
        radial-gradient(120% 90% at 20% 10%, rgba(140, 104, 110, .45), transparent 60%),
        linear-gradient(135deg, #3A2A2C 0%, #241819 55%, #2E2224 100%);
    color: var(--hkd-white);
    overflow: hidden;
}
.hkd-enquiry__intro {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(32px, 3vw, 56px) clamp(24px, 3vw, 56px);
    border-right: 1px solid rgba(247, 220, 122, .35);
    margin-block: clamp(24px, 2.4vw, 44px);
}
.hkd-enquiry__title {
    padding-bottom: 18px;
    margin-bottom: 22px;
    border-bottom: 1px solid rgba(255, 255, 255, .8);
    font-family: Georgia, 'Times New Roman', serif;
    font-size: clamp(30px, 2.6vw, 48px);
    font-weight: 400;
    line-height: 1.05;
    letter-spacing: .02em;
    text-align: center;
    text-transform: uppercase;
}
.hkd-enquiry__list {
    display: grid;
    gap: 10px;
    padding-left: 22px;
    font-size: clamp(16px, 1.1vw, 20px);
    line-height: 1.4;
    list-style: disc;
}
.hkd-enquiry__form-wrap { padding: clamp(32px, 3vw, 56px) clamp(24px, 3vw, 56px); }
.hkd-enquiry__heading {
    font-size: clamp(24px, 1.8vw, 32px);
    font-weight: 700;
    line-height: 1.15;
}
.hkd-enquiry__sub { margin: 8px 0 22px; font-size: 15px; line-height: 1.5; }
.hkd-enquiry__form { display: grid; gap: 16px; }
.hkd-enquiry__sevas { border: 0; padding: 0; margin: 0; min-width: 0; }
.hkd-enquiry__sevas legend {
    margin-bottom: 12px;
    color: var(--hkd-yellow);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
}
.hkd-enquiry__sevas legend span { color: #FF8A80; }
.hkd-enquiry__checks {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}
.hkd-enquiry__check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 14px;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 12px;
    background: rgba(255, 255, 255, .06);
    font-size: 14px;
    line-height: 1.35;
    cursor: pointer;
    transition: background-color .15s ease, border-color .15s ease;
}
.hkd-enquiry__check:hover { background: rgba(255, 255, 255, .12); }
.hkd-enquiry__check:has(input:checked) { border-color: var(--hkd-yellow); background: rgba(247, 220, 122, .14); }
.hkd-enquiry__check input {
    flex: none;
    width: 17px;
    height: 17px;
    margin-top: 1px;
    accent-color: #F9B233;
    cursor: pointer;
}
.hkd-enquiry__sevas.hkd-field--invalid .hkd-enquiry__check { border-color: #FF8A80; }
.hkd-enquiry__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.hkd-enquiry .hkd-field input {
    height: 48px;
    padding: 0 20px;
    border: 2px solid transparent;
    border-radius: 999px;
    background: var(--hkd-white);
    color: var(--hkd-dark);
    font-size: 15px;
}
.hkd-enquiry .hkd-field input:focus { border-color: #F9B233; }
.hkd-enquiry .hkd-field [aria-invalid="true"] { border-color: #FF8A80; }
.hkd-enquiry .hkd-field__error { padding-inline: 14px; color: #FFB4A8; }
.hkd-enquiry .hkd-form-msg { margin-bottom: 18px; }
.hkd-enquiry__btn {
    justify-self: start;
    min-width: 150px;
    height: 48px;
    padding: 0 32px;
    border: 0;
    border-radius: 999px;
    background: #F9B233;
    color: #1E1E1E;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color .15s ease, transform .15s ease;
}
.hkd-enquiry__btn:hover { background: #F7C552; transform: translateY(-1px); }
.hkd-enquiry__btn:focus-visible { outline: 2px solid var(--hkd-white); outline-offset: 3px; }

/* ---------- Volunteering ---------- */
.hkd-volunteer {
    background: var(--hkd-green);
    color: var(--hkd-yellow);
}
.hkd-volunteer__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 576px);
    align-items: center;
    gap: 40px;
}
.hkd-volunteer__text { padding-block: 40px; }
.hkd-volunteer .hkd-title { margin-bottom: 18px; }
.hkd-volunteer__text p {
    max-width: 780px;
    margin-bottom: 20px;
    font-size: clamp(15px, 0.94vw, 18px);
    line-height: 1.08;
}
.hkd-volunteer__img { align-self: stretch; }
.hkd-volunteer__img img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Facilities ---------- */
.hkd-facilities { padding-block: clamp(48px, 3.9vw, 75px); }
.hkd-facilities__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}
.hkd-facility {
    position: relative;
    overflow: hidden;
    border-radius: var(--hkd-radius);
}
.hkd-facility img {
    width: 100%;
    aspect-ratio: 510 / 275;
    object-fit: cover;
    transition: transform .4s ease;
}
.hkd-facility:hover img { transform: scale(1.04); }
.hkd-facility figcaption {
    position: absolute;
    left: clamp(20px, 2.2vw, 43px);
    bottom: clamp(18px, 1.6vw, 30px);
    color: var(--hkd-white);
    font-family: var(--hkd-font-display);
    font-size: clamp(22px, 1.7vw, 32px);
    font-weight: 600;
    line-height: 1;
    text-shadow: 0 2px 12px rgba(0, 0, 0, .55);
}

/* ---------- Footer ---------- */
.hkd-footer {
    padding: 62px 0 50px;
    background: var(--hkd-dark);
    color: var(--hkd-white);
    font-size: clamp(15px, 0.89vw, 17px);
}
.hkd-footer__logo {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
}
.hkd-footer__grid {
    display: grid;
    grid-template-columns: minmax(0, 368px) minmax(0, 386px) minmax(0, 1fr) auto;
    gap: 24px;
}
.hkd-footer__head {
    margin-bottom: 14px;
    font-family: var(--hkd-font-display);
    font-size: clamp(18px, 1.22vw, 23px);
    font-weight: 700;
    text-transform: uppercase;
}
.hkd-footer__col--address .hkd-footer__head i {
    width: 24px;
    margin-left: -40px;
    margin-right: 12px;
    text-align: center;
}
/* Icons hang outside the text column, as in the mockup */
.hkd-footer__col--address { margin-left: -17px; padding-left: 40px; }
.hkd-footer address { font-style: normal; line-height: 1.42; }
.hkd-footer__contact { margin-top: 36px; }
.hkd-footer__contact li {
    position: relative;
    margin-bottom: 8px;
}
.hkd-footer__contact i {
    position: absolute;
    left: -40px;
    top: 3px;
    width: 24px;
    text-align: center;
}
.hkd-footer__links li { margin-bottom: 10px; }
.hkd-footer a:hover { color: var(--hkd-yellow); }
.hkd-footer__col--policies { padding-top: calc(clamp(20px, 1.35vw, 26px) * 1.4 + 14px); }
.hkd-footer__col--social { text-align: right; padding-top: 10px; }
.hkd-footer__social {
    display: flex;
    gap: 22px;
    font-size: 30px;
}
.hkd-footer__copy {
    margin-top: 56px;
    text-align: center;
}

/* Back to top: appears once the page is scrolled (main.js) */
.hkd-to-top {
    position: fixed;
    right: clamp(16px, 1.5vw, 28px);
    bottom: clamp(16px, 1.5vw, 28px);
    z-index: 150;
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border: 2px solid var(--hkd-brown);
    border-radius: 50%;
    background: var(--hkd-yellow);
    color: var(--hkd-brown);
    font-size: 18px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .2);
    cursor: pointer;
    transition: background .2s ease, color .2s ease, transform .2s ease;
}
.hkd-to-top[hidden] { display: none; }
#hkdMain:focus { outline: none; }
.hkd-to-top:hover,
.hkd-to-top:focus-visible { background: var(--hkd-brown); color: var(--hkd-yellow); transform: translateY(-3px); }

/* ==========================================================================
   Inner pages (About Temple - _design/about-desktop mockup)
   ========================================================================== */

/* Header sits over the page banner, translucent. --hkd-header-h is kept in sync by main.js */
:root { --hkd-header-h: 175px; }
.hkd-overlay-header .hkd-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background: #FFFFFFBF;
}

.hkd-page-banner {
    position: relative;
    display: flex;
    align-items: center;
    min-height: calc(var(--hkd-header-h) + 200px);
    padding-top: var(--hkd-header-h);
    overflow: hidden;
    color: var(--hkd-white);
    /* Fallback until assets/images/about-temple/banner-desktop.webp is added */
    background: linear-gradient(180deg, #0B4F98 0%, #2F7BC4 55%, #8DBCE6 100%);
}
.hkd-page-banner__bg {
    position: absolute;
    inset: 0;
}
/* Banner art is the Home hero render without its headline. If the full 1920x1080 render is used,
   31.5% shows the same band as the mockup (hero y 222-597); a pre-cropped 1920x375 file is unaffected. */
.hkd-page-banner__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 31.5%;
}
/* hero-1 carries its own headline on the left; fade it out with the sky's own colours */
.hkd-page-banner--veiled .hkd-page-banner__bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, #1364A6 0%, #2C72B0 50%, #73A2C0 100%);
    -webkit-mask-image: linear-gradient(90deg, #000 0%, #000 44%, transparent 54%);
    mask-image: linear-gradient(90deg, #000 0%, #000 44%, transparent 54%);
}
.hkd-page-banner__inner {
    position: relative;
    padding-block: 40px 12px;
    text-shadow: 0 1px 6px rgba(0, 0, 0, .15);
}
.hkd-page-banner__title {
    font-family: var(--hkd-font-display);
    font-size: clamp(30px, 2.4vw, 46px);
    font-weight: 600;
    line-height: 1.1;
}
.hkd-breadcrumb ol {
    display: flex;
    flex-wrap: wrap;
    margin: 6px 0 0;
    padding: 0;
    list-style: none;
    font-size: clamp(14px, .83vw, 16px);
}
.hkd-breadcrumb li + li::before {
    content: '\f054';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: .6em;
    vertical-align: .15em;
    margin: 0 12px;
}

/* Text + image rows */
.hkd-about-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 710px);
    align-items: center;
    gap: clamp(32px, 4.4vw, 85px);
}
.hkd-about-row--media-left {
    grid-template-columns: minmax(0, 710px) minmax(0, 1fr);
    gap: clamp(32px, 3.9vw, 75px);
}
.hkd-about-row--media-left .hkd-about-row__media { order: -1; }
.hkd-about-row__media img {
    width: 100%;
    border-radius: var(--hkd-radius);
}
.hkd-about-row__text p {
    font-size: clamp(15px, .94vw, 18px);
    line-height: 1.1;
}
.hkd-about-row__text p + p { margin-top: 24px; }

.hkd-about-intro { padding-block: clamp(48px, 4.1vw, 79px); }
.hkd-about-intro .hkd-title { margin-bottom: 18px; }
.hkd-about-row__text .hkd-about-intro__sub {
    margin-bottom: 8px;
    font-size: clamp(24px, 1.88vw, 36px);
    font-weight: 600;
    line-height: 1.15;
}
.hkd-about-intro .hkd-about-row__text p:last-child { font-size: clamp(15px, .99vw, 19px); }

.hkd-about-feature { padding-block: clamp(48px, 4.1vw, 79px); }
.hkd-about-feature .hkd-about-row { align-items: start; }
.hkd-about-feature .hkd-about-row__text { padding-top: clamp(0px, 4vw, 76px); }
.hkd-about-feature__heading { margin-bottom: 34px; }
.hkd-about-feature__title {
    margin-bottom: 16px;
    font-size: clamp(22px, 1.77vw, 34px);
    font-weight: 600;
    line-height: 1.15;
}
.hkd-about-feature--brown {
    padding-block: clamp(48px, 3.4vw, 65px) clamp(48px, 3.1vw, 60px);
    background: var(--hkd-brown);
    color: var(--hkd-white);
}
.hkd-about-feature--blue {
    padding-block: clamp(48px, 3.7vw, 71px) clamp(48px, 4.5vw, 87px);
    background: var(--hkd-blue);
    color: var(--hkd-white);
}

/* ==========================================================================
   About Srila Prabhupada
   ========================================================================== */

/* Placeholder for a photo that has not been added yet (see hkd_img() in includes/config.php) */
.hkd-img-missing {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    border: 2px dashed #C9B88F;
    border-radius: 8px;
    background: repeating-linear-gradient(45deg, #ECE2C6 0 12px, #F2E9D1 12px 24px);
    color: #7A6A45;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    text-align: center;
}

.hkd-pp-section { padding-block: clamp(48px, 4.7vw, 90px); }
.hkd-pp-section--pale {
    padding-block: 40px;
    background: #FDF4BE;
}

.hkd-pp-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 675px);
    align-items: start;
    gap: clamp(32px, 2.6vw, 50px);
}
.hkd-pp-row--media-left { grid-template-columns: minmax(0, 675px) minmax(0, 1fr); gap: clamp(32px, 2.3vw, 45px); }
.hkd-pp-row--pair { grid-template-columns: minmax(0, 691px) minmax(0, 1fr); gap: clamp(32px, 2.3vw, 45px); }
.hkd-pp-row--video { grid-template-columns: minmax(0, 763px) minmax(0, 1fr); gap: clamp(32px, 2.3vw, 45px); }

.hkd-pp-media img,
.hkd-pp-pair img,
.hkd-pp-gallery img {
    width: 100%;
    border-radius: 8px;
}
.hkd-pp-pair {
    display: grid;
    grid-template-columns: 319fr 343fr;
    gap: 29px;
}
.hkd-pp-pair img { height: 100%; object-fit: cover; }

.hkd-pp-text p,
.hkd-pp-list {
    font-size: clamp(15px, .99vw, 19px);
    line-height: 1.05;
}
.hkd-pp-text p + p,
.hkd-pp-list + p { margin-top: 20px; }
.hkd-pp-text em { font-style: italic; }
.hkd-pp-section--pale .hkd-pp-text p { font-size: clamp(15px, .94vw, 18px); }

.hkd-pp-list {
    margin: 4px 0 0;
    padding-left: 27px;
    list-style: disc;
}

.hkd-pp-heading {
    margin: 4px 0 12px;
    font-family: var(--hkd-font-display);
    font-size: clamp(22px, 1.56vw, 30px);
    font-weight: 400;
    line-height: 1.1;
}
.hkd-pp-title {
    margin-bottom: 40px;
    font-family: var(--hkd-font-display);
    font-size: clamp(24px, 1.77vw, 34px);
    font-weight: 500;
    line-height: 1.1;
    text-align: center;
}

.hkd-pp-gallery {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(16px, 2.35vw, 45px);
    margin-top: clamp(40px, 4.8vw, 93px);
}
.hkd-pp-gallery img { aspect-ratio: 494 / 369; object-fit: cover; }

/* Achievements */
.hkd-pp-achievements { padding-block: 35px 40px; }
.hkd-pp-achievements .hkd-pp-title { margin-bottom: 45px; }
.hkd-pp-achievements__list {
    margin: 0;
    padding: 0;
    list-style: none;
    columns: 2;
    column-gap: clamp(32px, 2.35vw, 45px);
}
.hkd-pp-achievements__list li {
    break-inside: avoid;
    margin-bottom: 30px;
}
.hkd-pp-achievements__list h3 {
    margin-bottom: 12px;
    font-family: var(--hkd-font-display);
    font-size: clamp(18px, 1.15vw, 22px);
    font-weight: 500;
    line-height: 1.1;
}
.hkd-pp-achievements__list p {
    font-size: clamp(15px, .94vw, 18px);
    line-height: 1.1;
}
.hkd-pp-achievements__list p + p { margin-top: 20px; }

/* Achievements in numbers */
.hkd-pp-stats {
    padding-block: 40px;
    background: linear-gradient(180deg, #F8B257 0%, #FBCC72 50%, #FEE68E 100%);
}
.hkd-pp-stats .hkd-pp-title { margin-top: 2px; }
.hkd-pp-stats__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 50px 20px;
}
.hkd-pp-stat__label {
    font-family: var(--hkd-font-display);
    font-size: clamp(17px, 1.1vw, 21px);
    font-weight: 500;
    line-height: 1.05;
}
.hkd-pp-stat__num {
    margin: 10px 0 18px;
    color: #7629C5;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: clamp(30px, 2.1vw, 40px);
    line-height: 1;
}
.hkd-pp-stat__desc {
    font-size: clamp(14px, .94vw, 18px);
    line-height: 1.1;
}
.hkd-pp-stats .hkd-pp-media img { border-radius: 10px; }

/* Video + e-books */
.hkd-pp-row--video .hkd-pp-heading { font-size: clamp(22px, 1.4vw, 27px); letter-spacing: -0.01em; }
.hkd-pp-video__link { display: block; }
.hkd-pp-video img { border-radius: 0; }
.hkd-pp-subheading {
    margin: 26px 0 14px;
    font-size: clamp(18px, 1.15vw, 22px);
    font-weight: 600;
    line-height: 1.2;
}
.hkd-pp-ebooks li + li { margin-top: 15px; }
.hkd-pp-ebooks a,
.hkd-pp-ebooks .is-pending {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 40px;
    padding: 8px 20px;
    background: #FDF4BE;
    font-size: clamp(15px, .99vw, 19px);
    line-height: 1.15;
}
.hkd-pp-ebooks a > span,
.hkd-pp-ebooks .is-pending > span { text-decoration: underline; text-underline-offset: 3px; }
.hkd-pp-ebooks i { flex: none; font-size: 24px; }
.hkd-pp-ebooks a:hover { background: var(--hkd-yellow); }

/* ==========================================================================
   Temple Construction Progress
   ========================================================================== */

.hkd-tc-section { padding-top: clamp(40px, 4.7vw, 90px); }
.hkd-tc-section--last { padding-block: clamp(28px, 2.6vw, 50px) clamp(40px, 2.6vw, 50px); }
.hkd-tc-card {
    border-radius: var(--hkd-radius);
    background: var(--hkd-white);
}

/* Timeline: a dashed rail down the left edge with a green tick on each milestone */
.hkd-timeline {
    position: relative;
    padding: clamp(28px, 2.1vw, 40px) clamp(20px, 2.2vw, 42px) clamp(48px, 5.9vw, 115px) clamp(36px, 3vw, 58px);
}
.hkd-timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: clamp(20px, 2.6vw, 50px);
    border-left: 1px dashed #999;
}
.hkd-timeline__title {
    margin-bottom: 18px;
    color: var(--hkd-brown);
    font-size: clamp(22px, 1.56vw, 30px);
    font-weight: 600;
    line-height: 1.2;
}
.hkd-timeline__title em {
    color: var(--hkd-black);
    font-size: .67em;
    font-weight: 400;
}
.hkd-timeline__list {
    margin: 0;
    padding: 0;
    list-style: none;
}
.hkd-milestone {
    position: relative;
    padding: 16px clamp(16px, 1.9vw, 36px) 16px;
    border-radius: 14px;
    background: #FDF4BE;
}
.hkd-milestone + .hkd-milestone { margin-top: 30px; }
.hkd-milestone__tick {
    position: absolute;
    top: 20px;
    left: calc(clamp(20px, 2.6vw, 50px) - clamp(36px, 3vw, 58px) - 17px);
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border: 2px solid var(--hkd-white);
    border-radius: 50%;
    background: #88C941;
    color: var(--hkd-white);
    font-size: 16px;
}
.hkd-milestone__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 10px;
    border-bottom: 1px dashed #999;
}
.hkd-milestone__head h3 {
    color: var(--hkd-brown);
    font-family: var(--hkd-font-display);
    font-size: clamp(20px, 1.35vw, 26px);
    font-weight: 600;
    line-height: 1.2;
}
.hkd-milestone__head h3 span {
    margin-left: 6px;
    color: var(--hkd-black);
    font-family: var(--hkd-font-body);
    font-size: .7em;
    font-style: italic;
    font-weight: 500;
}
.hkd-milestone__head sup { font-size: .6em; }
.hkd-milestone__status {
    flex: none;
    padding: 4px 30px;
    border-radius: 999px;
    background: #88C941;
    color: var(--hkd-white);
    font-family: var(--hkd-font-display);
    font-size: 16px;
    font-style: italic;
    line-height: 1.4;
}
.hkd-milestone__body {
    padding: 10px 0;
    border-bottom: 1px dashed #999;
    font-size: clamp(15px, .89vw, 17px);
    line-height: 1.1;
}
.hkd-milestone__body p + p { margin-top: 12px; }
.hkd-milestone__photos {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
    max-width: 1180px; /* 8 landscape photos per row, as in the mockup */
    padding-top: 10px;
}
.hkd-milestone__thumb {
    padding: 0;
    border: 0;
    border-radius: 4px;
    overflow: hidden;
    background: none;
    cursor: zoom-in;
}
.hkd-milestone__thumb img {
    width: auto;
    height: 100px;
    max-width: 200px;
    object-fit: cover;
    transition: transform .3s ease;
}
.hkd-milestone__thumb:hover img { transform: scale(1.06); }
.hkd-milestone__empty { font-size: 14px; color: #7A6A45; }

/* Photo viewer: a framed photo floating over the page, as in the mockup */
.hkd-lightbox {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: grid;
    place-items: center;
    padding: 24px;
}
.hkd-lightbox[hidden] { display: none; }
.hkd-lightbox__frame {
    position: relative;
    padding: 15px;
    border-radius: 4px;
    background: var(--hkd-white);
    box-shadow: 0 6px 30px rgba(0, 0, 0, .3);
}
.hkd-lightbox__img {
    /* width/height are set by main.js to fit 800 x 600 */
    max-width: none;
    object-fit: cover;
}
.hkd-lightbox__close {
    position: absolute;
    top: -10px;
    right: -10px;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    background: var(--hkd-black);
    color: var(--hkd-white);
    font-size: 24px;
    cursor: pointer;
}
.hkd-lightbox__nav {
    position: absolute;
    top: 50%;
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    margin-top: -20px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .85);
    color: var(--hkd-black);
    font-size: 16px;
    cursor: pointer;
}
.hkd-lightbox__nav--prev { left: 25px; }
.hkd-lightbox__nav--next { right: 25px; }
.hkd-lightbox.is-single .hkd-lightbox__nav { display: none; }
.hkd-no-scroll { overflow: hidden; }

/* ==========================================================================
   Donation
   ========================================================================== */

.hkd-donate-section { padding-bottom: clamp(48px, 4.7vw, 90px); }
.hkd-donate,
.hkd-form-card {
    padding: clamp(24px, 1.8vw, 35px) clamp(20px, 9.6vw, 185px) clamp(28px, 1.8vw, 35px);
    color: var(--hkd-black);
    font-size: 16px;
}
.hkd-donate__title {
    margin-bottom: 12px;
    color: var(--hkd-brown);
    font-size: clamp(20px, 1.25vw, 24px);
    font-weight: 600;
    line-height: 1.3;
}
.hkd-donate__cols {
    display: grid;
    grid-template-columns: minmax(0, 574fr) minmax(0, 592fr);
    column-gap: clamp(20px, 1.8vw, 34px);
}
.hkd-donate__intro {
    padding-bottom: 20px;
    border-bottom: 1px solid #999;
    line-height: 1.15;
}
.hkd-donate__heading {
    margin-bottom: 8px;
    font-size: clamp(18px, 1.05vw, 20px);
    font-weight: 600;
    line-height: 1.3;
}
.hkd-donate__intro p { max-width: 480px; }
.hkd-donate__benefits { padding-left: 24px; list-style: disc; }
.hkd-donate__benefits li::marker { font-size: 12px; }
.hkd-donate__form .hkd-donate__cols { padding-block: 20px; border-bottom: 1px solid #999; }
.hkd-donate__form .hkd-donate__heading { margin-bottom: 18px; }

/* Donation categories: collapsible rows, alternating yellow tones */
.hkd-seva-acc { display: grid; gap: 10px; }
.hkd-seva-acc__item {
    border-radius: 12px;
    background: var(--hkd-yellow-strip);
}
.hkd-seva-acc__item:nth-child(even) { background: #FDF4BE; }
.hkd-seva-acc__item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 65px;
    padding: 8px 26px 8px 24px;
    font-size: clamp(16px, 0.94vw, 18px);
    font-weight: 600;
    list-style: none;
    cursor: pointer;
}
.hkd-seva-acc__item summary::-webkit-details-marker { display: none; }
.hkd-seva-acc__item summary i { font-size: 17px; transition: transform .2s ease; }
.hkd-seva-acc__item[open] summary i { transform: rotate(45deg); }
.hkd-seva-acc__body { display: grid; gap: 8px; padding: 0 24px 18px; }
.hkd-seva-acc__option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 8px;
    background: var(--hkd-white);
    cursor: pointer;
}
.hkd-seva-acc__option strong { margin-left: auto; }
.hkd-seva-acc__empty { font-size: 14px; color: #7A6A45; }

/* Personal details */
.hkd-donate__fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 15px;
    margin-bottom: 20px;
}
.hkd-field { position: relative; }
.hkd-field label {
    display: block;
    margin-bottom: 9px;
    font-size: 16px;
    font-weight: 500;
}
.hkd-field label span { color: #E31E24; }
.hkd-field input {
    width: 100%;
    height: 40px;
    padding: 0 16px;
    border: 1px solid transparent;
    border-radius: 2px;
    background: #F7F7F7;
    font: inherit;
    font-size: 15px;
    color: var(--hkd-black);
}
.hkd-field select {
    width: 100%;
    height: 40px;
    padding: 0 44px 0 16px;
    border: 1px solid transparent;
    border-radius: 2px;
    background: #F7F7F7;
    font: inherit;
    font-size: 15px;
    color: var(--hkd-black);
    appearance: none;
    cursor: pointer;
}
.hkd-field select:invalid { color: #888; }
.hkd-field input::placeholder { color: #888; }
.hkd-field input:focus,
.hkd-field select:focus { border-color: var(--hkd-brown); outline: none; }
.hkd-field--select i {
    position: absolute;
    right: 18px;
    bottom: 14px;
    font-size: 12px;
    pointer-events: none;
}
.hkd-field--date input { padding-right: 44px; }
.hkd-field--date input::-webkit-calendar-picker-indicator { opacity: 0; cursor: pointer; }
.hkd-field--date i {
    position: absolute;
    right: 14px;
    bottom: 12px;
    font-size: 17px;
    color: #444;
    pointer-events: none;
}
.hkd-check {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    font-size: 16px;
    cursor: pointer;
}
.hkd-check input { width: 18px; height: 18px; margin: 0; accent-color: #1A73E8; }
.hkd-donate__submit { display: flex; justify-content: flex-end; padding-top: 22px; }
.hkd-donate__btn {
    min-width: 145px;
    height: 40px;
    padding: 0 28px;
    border: 0;
    border-radius: 999px;
    background: var(--hkd-black);
    color: var(--hkd-white);
    font-family: var(--hkd-font-display);
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
}
.hkd-donate__btn:hover { background: var(--hkd-brown); }

/* ==========================================================================
   Volunteer with us (form fields and Submit button are shared with Donation)
   ========================================================================== */

.hkd-volunteer-page { padding-block: clamp(28px, 2.35vw, 45px); }
.hkd-volunteer-page__intro { margin-bottom: 24px; line-height: 1.15; }
.hkd-volunteer-page__fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 24px;
}
.hkd-volunteer-page .hkd-donate__submit { padding-top: 18px; }
.hkd-volunteer-page .hkd-field [aria-invalid="true"],
.hkd-volunteer-page .hkd-field [aria-invalid="true"]:focus { border-color: #C4161C; }
/* select chevron stays on the input when an error line sits below it */
.hkd-volunteer-page .hkd-field--invalid i { bottom: 38px; }
.hkd-field__error {
    margin-top: 6px;
    font-size: 13px;
    line-height: 1.4;
    color: #C4161C;
}

/* Form result messages (server-side) */
.hkd-form-msg {
    margin-bottom: 20px;
    padding: 12px 16px;
    border-radius: 8px;
    font-weight: 500;
}
.hkd-form-msg--success { background: #E6F2EA; color: #1F5B36; }
.hkd-form-msg--error { background: #FBE9E9; color: #C4161C; }

/* Spam trap: hidden from people, filled in only by bots */
.hkd-hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* ==========================================================================
   Our Courses - Sandhya Gurukul
   ========================================================================== */

.hkd-gk { --gk-cream: #FFF2D1; --gk-orange: #F9BC50; --gk-text: clamp(15px, 0.84vw, 16px); }
.hkd-gk-title {
    margin-bottom: 18px;
    font-size: clamp(30px, 2.5vw, 48px);
    font-weight: 600;
    line-height: 1.06;
    text-align: center;
}
.hkd-gk-copy,
.hkd-gk-lead {
    max-width: 1180px;
    margin-inline: auto;
    font-size: var(--gk-text);
    line-height: 1.08;
    text-align: center;
}
.hkd-gk-copy p + p { margin-top: 10px; }
.hkd-gk-copy h3 { margin: 36px 0 6px; font-size: clamp(19px, 1.15vw, 22px); font-weight: 600; }
.hkd-gk-copy h3 + p { margin-top: 0; }

/* Banner and the two "Register Now" strips */
.hkd-gk-hero { padding-block: clamp(20px, 2.35vw, 45px); background: var(--gk-cream); }
.hkd-gk-hero img,
.hkd-gk-hero .hkd-img-missing { display: block; width: 100%; height: auto; }
.hkd-gk-strip {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px 16px;
    padding: 24px 16px;
    font-size: clamp(18px, 1.15vw, 22px);
    font-weight: 500;
}
.hkd-gk-strip p { margin: 0; }
.hkd-gk-strip--brown { background: var(--hkd-brown); color: var(--hkd-white); }
.hkd-gk-strip--orange { background: var(--gk-orange); color: var(--hkd-black); }
.hkd-gk-strip__btn {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0 26px;
    border-radius: 999px;
    font-family: var(--hkd-font-display);
    font-size: 18px;
    font-weight: 600;
    transition: filter .2s ease;
}
.hkd-gk-strip__btn:hover { filter: brightness(1.08); }
.hkd-gk-strip--brown .hkd-gk-strip__btn { background: var(--gk-orange); color: var(--hkd-black); }
.hkd-gk-strip--orange .hkd-gk-strip__btn { background: var(--hkd-brown); color: var(--hkd-white); }

/* About */
.hkd-gk-about { padding-block: clamp(48px, 3.7vw, 70px) clamp(48px, 3.4vw, 66px); background: var(--hkd-white); }

/* 6 Pillars, value-added feature, 64 Kalas */
.hkd-gk-pillars { padding-block: clamp(48px, 4.5vw, 86px) clamp(56px, 5.2vw, 100px); background: var(--gk-cream); }
.hkd-gk-pillars > .hkd-container > :last-child { margin-bottom: 0; }
.hkd-gk-pillars .hkd-gk-lead { margin-bottom: 25px; }
.hkd-gk-pillars__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 25px 20px;
    max-width: 1240px;
    margin: 0 auto 22px;
}
.hkd-gk-pillars__grid .hkd-gk-card { min-height: 480px; }
.hkd-gk-card {
    padding: 25px 25px 40px;
    border-radius: 16px;
    background: var(--hkd-white);
    font-size: var(--gk-text);
    line-height: 1.08;
}
.hkd-gk-card__img { width: 100%; aspect-ratio: 350 / 150; object-fit: cover; border-radius: 8px; }
.hkd-gk-card__title {
    margin: 18px 0 12px;
    font-size: clamp(26px, 1.67vw, 32px);
    font-weight: 600;
    line-height: 1.04;
}
.hkd-gk-card h4 { margin: 14px 0 4px; font-size: clamp(16px, 0.94vw, 18px); font-weight: 600; }
.hkd-gk-card ul { padding-left: 16px; list-style: disc; }
.hkd-gk-card li + li { margin-top: 5px; }
.hkd-gk-card li::marker { font-size: 13px; }
.hkd-gk-card--green .hkd-gk-card__title { color: #41A851; }
.hkd-gk-card--orange .hkd-gk-card__title { color: #F28935; }
.hkd-gk-card--pink .hkd-gk-card__title { color: #EC3A77; }
.hkd-gk-card--teal .hkd-gk-card__title { color: #00A6B4; }
.hkd-gk-card--purple .hkd-gk-card__title { color: #6937C5; }
.hkd-gk-card--gold .hkd-gk-card__title { color: #D69A00; }
.hkd-gk-card--plum .hkd-gk-card__title { color: #680895; margin-top: 0; }
.hkd-gk-card--wide {
    display: grid;
    grid-template-columns: minmax(0, 350px) minmax(0, 1fr);
    gap: 22px;
    align-items: start;
    max-width: 1240px;
    margin: 0 auto 24px;
    padding-bottom: 25px;
}
.hkd-gk-card--wide h4 { margin-top: 12px; }
.hkd-gk-subtitle {
    margin-bottom: 14px;
    font-size: clamp(22px, 1.56vw, 30px);
    font-weight: 600;
    line-height: 1.1;
    text-align: center;
}
.hkd-gk-lead--sm { max-width: 900px; margin-bottom: 25px; }

/* Why Sandhya Gurukul? */
.hkd-gk-why { padding-block: clamp(44px, 2.9vw, 56px) clamp(44px, 2.8vw, 54px); background: var(--hkd-blue); color: var(--hkd-white); }
.hkd-gk-why .hkd-gk-title { margin-bottom: 22px; }

/* A place where children feel at home + daily schedule */
.hkd-gk-info { padding-block: clamp(32px, 2.6vw, 50px); background: var(--gk-cream); }
.hkd-gk-info__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.hkd-gk-info__card {
    padding: clamp(28px, 2.4vw, 46px) clamp(20px, 2.2vw, 42px) 46px;
    border-radius: 16px;
    background: var(--hkd-white);
}
.hkd-gk-info__card .hkd-gk-title { margin-bottom: 30px; }
.hkd-gk-features { display: grid; gap: 46px; }
.hkd-gk-features li { display: flex; gap: 8px; align-items: flex-start; font-size: var(--gk-text); line-height: 1.04; }
.hkd-gk-features img { 
    flex-shrink: 0; 
    width: 40px; 
    height: auto; 
    /* margin-top: 2px;  */
}
.hkd-gk-features h3 { margin-bottom: 2px; font-size: clamp(17px, 1vw, 19px); font-weight: 600; }
.hkd-gk-info__card--schedule { text-align: center; }
.hkd-gk-info__card--schedule .hkd-gk-title { margin-bottom: 6px; line-height: 0.95; }
.hkd-gk-schedule__sub { margin-bottom: 28px; font-size: clamp(22px, 1.56vw, 30px); font-weight: 500; }
.hkd-gk-schedule { padding: 0; list-style: none; }
.hkd-gk-schedule strong { display: block; font-size: clamp(16px, 1vw, 19px); font-weight: 500; line-height: 1.1; }
.hkd-gk-schedule span { display: block; font-size: 15px; line-height: 1.2; }
.hkd-gk-schedule__arrow { padding-block: 6px 2px; }
.hkd-gk-schedule__arrow img { width: 35px; margin-inline: auto; }
.hkd-gk-schedule__note { margin-top: 24px; font-size: 15px; font-style: italic; line-height: 1.2; }

/* Program modalities */
.hkd-gk-modalities { padding-block: clamp(40px, 2.8vw, 55px) 46px; background: var(--gk-orange); }
.hkd-gk-modalities .hkd-gk-title { margin-bottom: 20px; }
.hkd-gk-modalities__card {
    display: grid;
    grid-template-columns: minmax(0, 475px) minmax(0, 1fr);
    gap: 10px 0;
    max-width: 1000px;
    margin: 0 auto;
    padding: 25px;
    border-radius: 24px;
    background: var(--hkd-white);
    font-size: clamp(16px, 1vw, 19px);
    line-height: 1.1;
}
.hkd-gk-modalities__card div { display: flex; flex-wrap: wrap; gap: 4px 14px; }
.hkd-gk-modalities__card dt,
.hkd-gk-modalities__card b { font-weight: 600; }
.hkd-gk-modalities__card dd { margin: 0; }
.hkd-gk-modalities__card s { margin-right: 16px; color: #E31E24; }

/* Registration form */
.hkd-gk-register { padding-block: 73px 50px; background: var(--hkd-white); }
.hkd-gk-register__inner { max-width: 1350px; margin-inline: auto; padding-inline: 16px; box-sizing: content-box; }
.hkd-gk-form__row { display: grid; gap: 20px; margin-bottom: 50px; }
.hkd-gk-form__row--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.hkd-gk-form__row--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.hkd-gk-form__field { position: relative; }
.hkd-gk-form__field label { display: block; margin-bottom: 10px; font-size: clamp(16px, 1vw, 19px); color: #112337; }
.hkd-gk-form__field label span,
.hkd-gk-form__field label span { margin-left: 2px; font-size: 15px; font-weight: 500; color: #BF2000; }
.hkd-gk-form__field input,
.hkd-gk-form__field select {
    width: 100%;
    height: 47px;
    padding: 0 16px;
    border: 1px solid #6C737D;
    border-radius: 3px;
    background: var(--hkd-white);
    font: inherit;
    font-size: 17px;
    color: #112337;
}
.hkd-gk-form__field select { padding-right: 44px; appearance: none; cursor: pointer; }
.hkd-gk-form__field input:focus,
.hkd-gk-form__field select:focus { border-color: var(--hkd-blue); outline: 2px solid rgba(32, 76, 229, .25); }
.hkd-gk-form__field--select i { position: absolute; right: 16px; bottom: 16px; font-size: 14px; pointer-events: none; }
.hkd-gk-form__field--date input { max-width: 245px; }
.hkd-gk-form__child { min-width: 0; margin: 0; padding: 0; border: 0; }
.hkd-gk-form__child legend {
    width: 100%;
    margin-bottom: 48px;
    padding-bottom: 20px;
    border-bottom: 1px solid #CCCDD1;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 26px;
    color: #333;
}
.hkd-gk-form__total { display: grid; gap: 8px; margin-bottom: 40px; font-size: 19px; color: #112337; }
.hkd-gk-form__total output { font-weight: 600; font-size: 20px; }
.hkd-gk-form__terms { display: flex; align-items: center; gap: 10px; margin-bottom: 60px; font-size: 19px; color: #112337; cursor: pointer; }
.hkd-gk-form__terms input { width: 38px; height: 38px; margin: 0 0 0 -6px; accent-color: #204CE5; }
.hkd-gk-form__terms a,
.hkd-gk-form__terms span { font-weight: 600; color: #01748D; }
.hkd-gk-form__submit {
    min-height: 47px;
    margin-left: -8px;
    padding: 0 20px;
    border: 0;
    border-radius: 3px;
    background: #204CE5;
    color: var(--hkd-white);
    font: inherit;
    font-size: 19px;
    font-weight: 600;
    cursor: pointer;
}
.hkd-gk-form__submit:hover { background: #1A3DBA; }

/* Video */
.hkd-gk-video { padding-block: clamp(44px, 3.3vw, 64px) clamp(48px, 4.2vw, 80px); background: #005341; color: var(--hkd-white); text-align: center; }
.hkd-gk-video h2 { margin-bottom: 24px; font-size: clamp(22px, 1.98vw, 38px); font-weight: 600; line-height: 1.05; }
.hkd-gk-video__frame { display: block; max-width: 846px; margin-inline: auto; }
.hkd-gk-video__frame img { width: 100%; height: auto; }

/* Gallery */
.hkd-gk-gallery { padding-block: clamp(44px, 3.8vw, 72px) clamp(48px, 3.4vw, 66px); background: var(--gk-cream); }
.hkd-gk-gallery .hkd-gk-title { margin-bottom: 6px; }
.hkd-gk-gallery__sub { margin-bottom: 18px; font-size: clamp(19px, 1.46vw, 28px); font-weight: 500; text-align: center; }
.hkd-gk-gallery__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 30px 25px;
    max-width: 1363px;
    margin: 0 auto 30px;
}
.hkd-gk-gallery__grid img { width: 100%; aspect-ratio: 322 / 215; object-fit: cover; border-radius: 8px; }
.hkd-gk-gallery__more {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 25px;
    border-radius: 999px;
    background: var(--hkd-black);
    color: var(--hkd-white);
    font-family: var(--hkd-font-display);
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
}

/* A Landmark of Devotion & Culture */
.hkd-landmark { padding: clamp(28px, 2.6vw, 50px) 24px clamp(28px, 1.8vw, 35px); }
.hkd-landmark__art {
    position: relative;
    max-width: 1110px;
    margin-inline: auto;
}
.hkd-landmark__title {
    position: absolute;
    top: 3%;
    left: 0;
    right: 0;
    color: var(--hkd-brown);
    font-size: clamp(18px, 1.77vw, 34px);
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
}
.hkd-landmark__subtitle {
    margin: 22px 0 12px;
    font-family: var(--hkd-font-display);
    font-size: clamp(22px, 1.56vw, 30px);
    font-weight: 500;
    text-align: center;
}
.hkd-landmark__temple,
.hkd-landmark__grid > li {
    border-radius: 6px;
    background: #FDF4BE;
    font-size: clamp(15px, .94vw, 18px);
    line-height: 1.2;
}
.hkd-landmark__temple {
    max-width: 1000px;
    margin: 0 auto 12px;
    padding: 14px 20px;
    text-align: center;
}
.hkd-landmark__temple span { display: block; }
.hkd-landmark__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    max-width: 1000px;
    margin: 0 auto;
}
.hkd-landmark__grid > li { padding: 14px 24px; }
.hkd-landmark__temple strong,
.hkd-landmark__grid strong { font-weight: 600; }
.hkd-landmark__grid ul {
    padding-left: 24px;
    list-style: disc;
}
