﻿:root {
    --kk-bg: #f6f3ec;
    --kk-surface: #fffdf8;
    --kk-surface-soft: #f1eee7;
    --kk-text: #1f2b22;
    --kk-muted: #5f6e63;
    --kk-primary: #2e6729;
    --kk-primary-2: #3a7a32;
    --kk-accent: #d8a74d;
    --kk-dark: #111812;
    --kk-border: #e4dece;
    --kk-radius: 16px;
    --kk-radius-lg: 24px;
    --kk-shadow: 0 14px 30px rgba(30, 45, 30, 0.09);
    --kk-shadow-soft: 0 8px 18px rgba(35, 50, 34, 0.08);
    --kk-fs-14: 0.875rem;
    --kk-fs-15: 0.938rem;
    --kk-fs-16: 1rem;
    --kk-fs-17: 1.063rem;
    --kk-fs-18: 1.125rem;
}

* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background: radial-gradient(circle at 20% 0%, #fffdf7 0%, var(--kk-bg) 60%, #f2eee4 100%);
    color: var(--kk-text);
    font-family: 'Manrope', 'Segoe UI', sans-serif;
    font-size: var(--kk-fs-16);
    line-height: 1.65;
    letter-spacing: 0.01em;
}

@media (min-width: 1400px) {
    .container,
    .container-lg,
    .container-md,
    .container-sm,
    .container-xl,
    .container-xxl {
        max-width: 1220px;
    }
}

/* =========================
   Typography System
========================= */

h1,
h2,
h3,
h4,
h5,
h6,
.navbar-brand,
.footer-brand,
.kk-title,
.kk-section-title,
.kk-page-title {
    font-family: 'Cormorant Garamond', Georgia, serif;
    letter-spacing: 0.01em;
    color: #214b1f;
}

.kk-page-title {
    font-size: clamp(2.2rem, 4.8vw, 4rem);
    line-height: 1.15;
    margin-bottom: 0.5rem;
}

.kk-section-title {
    font-size: clamp(1.8rem, 3.3vw, 2.8rem);
    line-height: 1.2;
    margin: 0;
}

.kk-eyebrow,
.kk-section-kicker {
    display: inline-block;
    font-size: var(--kk-fs-14);
    font-weight: 700;
    color: var(--kk-accent);
    letter-spacing: 0.13em;
    text-transform: uppercase;
    margin-bottom: .45rem;
}

.kk-body,
p,
li,
label,
input,
textarea,
select {
    font-size: clamp(var(--kk-fs-14), 1.2vw, var(--kk-fs-18));
}

a,
.kk-link {
    color: var(--kk-primary);
    text-decoration: none;
    transition: color .2s ease, opacity .2s ease;
}

a:hover,
.kk-link:hover {
    color: #224d20;
    opacity: .92;
}

/* =========================
   Layout Rhythm
========================= */

main {
    min-height: 56vh;
}

.kk-section,
section.py-5 {
    padding-top: clamp(3.3rem, 5.3vw, 5.2rem) !important;
    padding-bottom: clamp(3.3rem, 5.3vw, 5.2rem) !important;
}

.kk-section-head {
    margin-bottom: clamp(1.25rem, 2.2vw, 2rem);
}

.bg-body-tertiary {
    background-color: var(--kk-surface-soft) !important;
}

/* =========================
   Header
========================= */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1030;
    backdrop-filter: saturate(180%) blur(10px);
    background: rgba(255, 253, 248, 0.94) !important;
    border-bottom: 1px solid rgba(63, 86, 58, 0.14) !important;
    min-height: 70px;
}

.navbar-brand {
    font-size: 1.9rem;
    line-height: 1;
    font-weight: 700;
}

.site-header .navbar-nav .nav-link {
    color: #2d4330;
    font-size: .95rem;
    font-weight: 600;
    border-radius: 10px;
    padding: 0.48rem 0.82rem;
    transition: all .2s ease;
}

.site-header .navbar-nav .nav-link:hover,
.site-header .navbar-nav .nav-link:focus {
    background: #edf3e6;
    color: #234b20;
}

.site-header .navbar-nav .nav-link.active {
    background: #e4ecd9;
    color: #214b1f;
}

.site-header .btn-outline-secondary {
    border-color: #9aac95;
    color: #2f4533;
    border-radius: 11px;
    font-weight: 700;
    padding: .42rem .9rem;
}

.site-header .btn-outline-secondary:hover {
    background: #2f6b2b;
    border-color: #2f6b2b;
    color: #fff;
}

.site-header .dropdown-menu {
    border-radius: 14px;
    border: 1px solid var(--kk-border);
    box-shadow: var(--kk-shadow);
    padding: .5rem;
}

.site-header .dropdown-item {
    border-radius: 10px;
    padding: .55rem .75rem;
}

.site-header .dropdown-item.active,
.site-header .dropdown-item:hover {
    background: #edf4e5;
    color: #234b20;
}

.logo-only {
    padding-block: .25rem;
}

.brand-logo {
    width: 78px;
    height: 78px;
    object-fit: contain;
    object-position: center;
    display: block;
}

.brand-logo-placeholder {
    width: 78px;
    height: 78px;
    border-radius: 12px;
    background: linear-gradient(180deg, #edf3e6, #dfe8d6);
    border: 1px solid #cfdbc4;
    display: inline-block;
}
/* =========================
   Hero
========================= */

.hero-slider-wrap {
    width: 100%;
}

.hero-slide {
    min-height: min(78vh, 900px);
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    position: relative;
}

.hero-slide::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(8, 13, 9, .3), rgba(8, 13, 9, .62));
}

.hero-content {
    position: relative;
    z-index: 2;
    color: #fff;
    max-width: 820px;
    padding-top: 6rem;
    padding-bottom: 6rem;
}

.hero-content h1 {
    font-size: clamp(2.5rem, 6vw, 4.7rem);
    font-weight: 700;
    letter-spacing: 0.01em;
    color: #fff;
}

.hero-content {
    margin: 0 auto;
    text-align: center;
    transform: translateY(2vh);
}

.hero-content .lead {
    max-width: 65ch;
    font-size: clamp(1.05rem, 2.1vw, 1.35rem);
    color: rgba(245, 245, 238, 0.95);
    margin-left: auto;
    margin-right: auto;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    margin-bottom: 1rem;
    padding: .42rem .85rem;
    border-radius: 999px;
    background: rgba(216, 167, 77, 0.16);
    color: #f3cb7c;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .14em;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .75rem;
}

.hero-actions .btn {
    min-width: 170px;
}

.hero-scroll-indicator {
    position: absolute;
    left: 50%;
    bottom: 1.25rem;
    transform: translateX(-50%);
    width: 24px;
    height: 44px;
    border: 1px solid rgba(245, 245, 238, 0.65);
    border-radius: 999px;
    display: grid;
    place-items: start center;
    padding-top: 8px;
    z-index: 3;
}

.hero-scroll-indicator span {
    width: 4px;
    height: 9px;
    border-radius: 999px;
    background: rgba(245, 245, 238, 0.95);
    animation: kkScrollPulse 1.6s ease-in-out infinite;
}

@keyframes kkScrollPulse {
    0% { transform: translateY(0); opacity: .95; }
    70% { transform: translateY(14px); opacity: .25; }
    100% { transform: translateY(0); opacity: .95; }
}

#homeHeroSlider .carousel-control-prev,
#homeHeroSlider .carousel-control-next {
    width: 7%;
}

/* =========================
   Home Sections
========================= */

.hero-stats-band {
    background: #2f6b2b;
    padding: 1.2rem 0;
}

.stat-box {
    text-align: center;
    color: #f3f7ef;
    padding: .7rem .35rem;
}

.stat-icon {
    color: #f0c777;
    display: inline-flex;
    margin-bottom: .35rem;
}

.stat-icon svg {
    width: 26px;
    height: 26px;
}

.stat-number {
    font-size: clamp(1.8rem, 2.9vw, 2.5rem);
    font-weight: 800;
    line-height: 1.1;
    color: #fff;
}

.stat-label {
    font-size: 1rem;
    font-weight: 600;
    color: #e6eedc;
}

.about-home .about-text {
    color: #536257;
    margin-bottom: .85rem;
}

.about-location {
    display: inline-flex;
    align-items: center;
    gap: .42rem;
    margin-top: .35rem;
    color: #5f6e63;
    font-weight: 600;
}

.about-location svg {
    width: 18px;
    height: 18px;
    color: #d8a74d;
}

.about-media-wrap {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--kk-shadow);
    min-height: 360px;
    background: #f1eee7;
}

.about-media-img {
    width: 100%;
    height: 100%;
    min-height: 360px;
    object-fit: cover;
    display: block;
}

.about-media-fallback {
    min-height: 360px;
    display: grid;
    place-items: center;
    color: #5f6e63;
    font-weight: 700;
    background: #ebe7dd;
}

.about-badge {
    position: absolute;
    left: 1.1rem;
    bottom: 1.1rem;
    background: rgba(46, 103, 41, .95);
    color: #fff;
    border-radius: 14px;
    padding: .65rem .85rem;
    box-shadow: 0 12px 20px rgba(24, 45, 22, .2);
}

.about-badge strong {
    display: block;
    font-size: 1.9rem;
    line-height: 1;
}

.about-badge span {
    font-size: .95rem;
}

.updates-image {
    height: 220px;
    object-fit: cover;
}

.updates-badge {
    background: #edf4e7;
    color: #2e6729;
    border: 1px solid #d1dec5;
}

.updates-summary {
    color: #5f6e63;
}

.gallery-media-wrap {
    position: relative;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: var(--kk-shadow-soft);
    min-height: 260px;
    background: #ece7dc;
}

.gallery-media {
    width: 100%;
    height: 100%;
    min-height: 260px;
    object-fit: cover;
    display: block;
    transition: transform .35s ease;
}

.gallery-media-fallback {
    display: grid;
    place-items: center;
    color: #5f6e63;
    font-weight: 700;
}

.gallery-overlay {
    position: absolute;
    inset: auto 0 0 0;
    background: linear-gradient(180deg, transparent 0%, rgba(7, 14, 8, .68) 80%);
    padding: 1.2rem 1.1rem .9rem;
}

.gallery-title {
    color: #fff;
    margin: 0;
    font-size: clamp(1.5rem, 2.3vw, 2rem);
}

.gallery-tile:hover .gallery-media {
    transform: scale(1.03);
}

/* =========================
   Component System
========================= */

.kk-card,
.card {
    border: 1px solid var(--kk-border) !important;
    background: var(--kk-surface);
    border-radius: var(--kk-radius) !important;
    box-shadow: var(--kk-shadow-soft) !important;
    overflow: hidden;
}

.card .card-title,
.card h3,
.card h4,
.card h5,
.card h6,
.kk-card-title {
    color: #214b1f;
}

.kk-media,
.card-img-top,
img.rounded,
img.rounded-4 {
    border-radius: calc(var(--kk-radius) - 2px);
}

.kk-shadow,
.shadow-sm,
.shadow {
    box-shadow: var(--kk-shadow-soft) !important;
}

.kk-btn,
.btn {
    border-radius: 12px;
    font-weight: 700;
    letter-spacing: .01em;
    padding: .58rem 1rem;
}

.kk-btn-primary,
.btn-primary,
.btn-outline-primary:hover {
    background: linear-gradient(180deg, var(--kk-primary-2), var(--kk-primary));
    border-color: var(--kk-primary);
    color: #fff;
}

.kk-btn-outline,
.btn-outline-primary {
    color: var(--kk-primary);
    border-color: #8eaf83;
    background: #f8fbf6;
}

.btn-outline-secondary {
    border-color: #b7bba8;
    color: #3b4539;
}

.kk-badge,
.badge {
    border-radius: 999px;
    padding: .4rem .75rem;
    font-size: .78rem;
    letter-spacing: .02em;
}

.kk-input,
.kk-textarea,
.form-control,
.form-select,
textarea {
    border-radius: 12px;
    border: 1px solid #d4d8c9;
    min-height: 46px;
    background: #fffdf9;
}

.kk-input:focus,
.kk-textarea:focus,
.form-control:focus,
.form-select:focus,
textarea:focus {
    border-color: #85a36f;
    box-shadow: 0 0 0 .24rem rgba(78, 128, 72, .14);
}

.kk-meta {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem .8rem;
    align-items: center;
    color: var(--kk-muted);
    font-size: var(--kk-fs-14);
    line-height: 1.4;
}

.kk-meta-item {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
}

.kk-empty,
.text-muted {
    color: var(--kk-muted) !important;
}

.kk-empty {
    font-size: var(--kk-fs-15);
    padding: 1.25rem 0;
}

/* =========================
   Footer
========================= */

.site-footer {
    background: linear-gradient(180deg, #151d16, #0e140f);
    border-top: 1px solid rgba(193, 164, 92, 0.28) !important;
    color: #d8decc;
}

.site-footer .footer-brand {
    color: #f0c777;
    font-size: 2rem;
    margin-bottom: .75rem;
}

.site-footer h6 {
    color: #f0c777;
    font-size: 1.7rem;
    margin-bottom: .8rem;
}

.site-footer p,
.site-footer div,
.site-footer small {
    color: #cdd6c6;
}

.site-footer a {
    color: #dce5d2;
    text-decoration: none;
}

.site-footer a:hover {
    color: #f0c777;
}

.footer-bottom {
    border-top: 1px solid rgba(185, 195, 170, .18);
}

.footer-bottom .made-by {
    color: #95a18f;
    letter-spacing: .05em;
    text-transform: uppercase;
    font-size: .72rem;
}

/* =========================
   Modal
========================= */

.modal-content {
    border: 1px solid var(--kk-border);
    border-radius: var(--kk-radius);
}

/* =========================
   Responsive
========================= */


/* News Detail 2 Column Layout */
.content-detail-layout {
    max-width: 1220px;
}

.news-sidebar {
    position: sticky;
    top: 96px;
}

.sidebar-card {
    border-radius: var(--kk-radius) !important;
}

.sidebar-card .card-body {
    padding: 1.1rem 1rem;
}

.sidebar-news-list li + li {
    margin-top: .85rem;
    padding-top: .85rem;
    border-top: 1px solid var(--kk-border);
}

.sidebar-news-link {
    display: block;
    color: var(--kk-text);
}

.sidebar-news-link:hover .sidebar-news-title {
    color: var(--kk-primary);
}

.sidebar-news-title {
    display: block;
    font-weight: 700;
    line-height: 1.35;
}

.sidebar-contact-list li + li {
    margin-top: .55rem;
}

.facebook-embed-wrap {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--kk-border);
    background: #fff;
}

.facebook-embed-wrap iframe {
    width: 100%;
    max-width: 100%;
    display: block;
}

@media (max-width: 991px) {
    .brand-logo,
    .brand-logo-placeholder {
        width: 70px;
        height: 70px;
    }

    .news-sidebar {
        position: static;
        top: auto;
    }
}
/* Village History Layout Enhancements */
.village-history-layout .history-content-head {
    border-bottom: 1px solid var(--kk-border);
    padding-bottom: .9rem;
}

.history-empty-state {
    border: 1px dashed #cfd8c2;
    background: linear-gradient(180deg, #fcfcf7 0%, #f4f2ea 100%);
    border-radius: 14px;
}

.sidebar-mini-gallery {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .55rem;
}

.mini-gallery-item {
    border-radius: 10px;
    border: 1px solid var(--kk-border);
    overflow: hidden;
    min-height: 88px;
    display: grid;
    place-items: center;
    background: #f8f6ef;
    color: var(--kk-muted);
    font-size: .82rem;
    font-weight: 600;
    text-align: center;
    padding: .4rem;
}

.mini-gallery-item img {
    width: 100%;
    height: 88px;
    object-fit: cover;
    display: block;
}

@media (max-width: 991px) {
    .village-history-layout {
        max-width: 100%;
    }
}
/* Visitor Page Cleanup: single main content block */
.visitor-content-card--wide .card-body {
    padding: clamp(1.2rem, 2.6vw, 2rem);
}

.visitor-content-card--wide p {
    max-width: 100ch;
}
/* Contact Page Modern Refresh */
.contact-hero-modern {
    padding-block: clamp(2.7rem, 5.2vw, 4rem);
}

.contact-page-modern {
    max-width: 100%;
}

.contact-form-card,
.contact-info-modern-card,
.contact-map-card {
    border-radius: var(--kk-radius-lg) !important;
    border: 1px solid #dce2d3 !important;
    background: #fffefb;
}

.contact-form-card .card-body,
.contact-info-modern-card .card-body,
.contact-map-card .card-body {
    padding: clamp(1.1rem, 2.2vw, 1.7rem);
}

.contact-card-head {
    display: flex;
    align-items: flex-start;
    gap: .8rem;
}

.contact-card-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #eef5e9;
    color: #2f6b2b;
    border: 1px solid #d2dec6;
    flex-shrink: 0;
}

.contact-card-icon svg {
    width: 22px;
    height: 22px;
}

.contact-card-icon i {
    font-size: 1.1rem;
    line-height: 1;
}

.contact-card-subtitle {
    color: #5b695e;
}

.contact-form-grid .form-label {
    font-weight: 700;
    color: #2e3e30;
}

.contact-form-grid .form-control {
    min-height: 48px;
    border-color: #cfd8c4;
    background: #fffefb;
}

.contact-form-grid textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

.contact-security-box {
    border: 1px solid #dbe2d2;
    border-radius: 14px;
    background: linear-gradient(180deg, #fbfcf8, #f5f7f0);
    padding: .9rem .95rem;
}

.contact-security-head {
    display: flex;
    align-items: center;
    gap: .65rem;
}

.contact-security-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #ecf3e7;
    border: 1px solid #d0dcc5;
    color: #2e6729;
    flex-shrink: 0;
}

.contact-security-icon svg {
    width: 18px;
    height: 18px;
}

.contact-submit-btn {
    min-width: 166px;
    gap: .45rem;
}

.contact-submit-btn svg {
    width: 16px;
    height: 16px;
}

.contact-info-list {
    display: grid;
    gap: .78rem;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: .75rem;
    padding: .72rem .74rem;
    border: 1px solid #e0e6d8;
    border-radius: 12px;
    background: #fcfdf9;
}

.contact-info-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #2f6b2b;
    background: #edf5e7;
    border: 1px solid #d3dfc8;
    flex-shrink: 0;
}

.contact-info-icon i {
    font-size: 1rem;
}

.contact-info-title {
    font-size: .83rem;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: #7a8779;
    font-weight: 700;
    margin-bottom: .15rem;
}

.contact-info-value {
    color: #354638;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.contact-map-embed iframe {
    width: 100%;
    min-height: 290px;
    border: 0;
    border-radius: 14px;
}

.contact-map-placeholder {
    min-height: 250px;
    border: 1px dashed #cfdac4;
    border-radius: 14px;
    background: linear-gradient(180deg, #f8faf4, #f2f6ec);
    color: #5b695e;
    display: grid;
    place-items: center;
    text-align: center;
    gap: .55rem;
    padding: 1rem;
}

.contact-map-placeholder .placeholder-icon i {
    font-size: 1.35rem;
    color: #2f6b2b;
}

@media (max-width: 991px) {
    .contact-form-card .card-body,
    .contact-info-modern-card .card-body,
    .contact-map-card .card-body {
        padding: 1rem;
    }

    .contact-map-embed iframe {
        min-height: 255px;
    }
}

@media (max-width: 767px) {
    .site-header {
        min-height: 84px;
    }

    .brand-logo,
    .brand-logo-placeholder {
        width: 66px;
        height: 66px;
    }

    .contact-hero-modern {
        padding-block: 2.25rem;
    }

    .contact-submit-btn {
        width: 100%;
    }

    .contact-info-item {
        padding: .68rem .7rem;
    }

    .contact-map-placeholder {
        min-height: 200px;
    }
}


@media (max-width: 575px) {
    .brand-logo,
    .brand-logo-placeholder {
        width: 62px;
        height: 62px;
    }

}








.home-facebook-embed {
    border: 1px solid var(--kk-border);
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
    height: 520px;
}

.home-facebook-embed iframe {
    width: 100%;
    height: 100%;
    display: block;
}

/* Memorial page image sizing */
.memorial-list-image {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: contain;
    object-position: center;
    border-radius: 14px;
    border: 1px solid var(--kk-border);
    background: #fff;
    display: block;
}

.memorial-detail-image {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: contain;
    object-position: center;
    border-radius: 16px;
    border: 1px solid var(--kk-border);
    background: #fff;
    display: block;
}

.memorial-image-placeholder {
    width: 100%;
    aspect-ratio: 4 / 5;
    border: 1px dashed #cfd8c2;
    border-radius: 14px;
    background: linear-gradient(180deg, #fbfcf8, #f2f6ec);
    color: #6c7a6e;
    font-weight: 700;
    display: grid;
    place-items: center;
    text-align: center;
    padding: .6rem;
}

.memorial-image-placeholder-lg {
    border-radius: 16px;
}

@media (max-width: 575px) {
    .home-facebook-embed {
        height: 430px;
    }

    .memorial-list-image {
        border-radius: 12px;
    }

    .memorial-detail-image {
        border-radius: 12px;
    }
}
