/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --green: #2f6b3f;
    --yellow: #fff3c9;
    --border: rgba(0, 0, 0, 0.08);
}

body {
    font-family: "Segoe UI", Tahoma, sans-serif;
    background: #fff;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ================= NAVBAR ================= */

.navbar {
    background: var(--yellow);
    position: fixed;
    /* 🔥 Make navbar fixed */
    top: 0;
    left: 0;
    width: 100%;
    z-index: 999;
    /* stay on top */
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    /* optional: subtle shadow */
}

.nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.logo img {
    height: 44px;
}

/* Navigation */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 26px;
}

.nav-menu a {
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    color: var(--green);
}

.nav-menu a.active {
    font-weight: 600;
}

/* Buttons */
.btn {
    background: var(--green);
    color: #fff;
    padding: 10px 22px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    white-space: nowrap;
}

/* 🔥 FIX: override nav-menu link color */
.nav-menu .btn,
.nav-menu .btn-cta {
    color: #ffffff !important;
}

/* Hamburger */
#nav-toggle {
    display: none;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.hamburger span {
    width: 24px;
    height: 2px;
    background: var(--green);
}

/* ================= HERO ================= */

.hero {
    background: var(--yellow);
    padding: 140px 0 90px;
    /* 🔥 Add top padding to avoid overlap with fixed navbar */
    text-align: center;
    position: relative;
}

.hero h1 {
    font-size: 34px;
    font-weight: 700;
    color: var(--green);
}

/* Wave */
.wave {
    position: absolute;
    bottom: -1px;
    width: 100%;
}

.wave svg {
    width: 100%;
    height: 120px;
    display: block;
}

/* ================= MOBILE ================= */

@media (max-width: 768px) {

    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: absolute;
        top: 72px;
        left: 0;
        width: 100%;
        max-height: calc(100vh - 72px);
        overflow-y: auto;
        background: var(--yellow);
        flex-direction: column;
        align-items: stretch;
        border-top: 1px solid var(--border);
        display: none;
        z-index: 1000;
    }

    #nav-toggle:checked~.nav-menu {
        display: flex;
    }

    .nav-menu a {
        padding: 16px;
        font-size: 16px;
        text-align: center;
        border-bottom: 1px solid var(--border);
    }

    .nav-menu a.active {
        background: rgba(47, 107, 63, 0.08);
    }

    /* Mobile Get Started */
    .btn-cta {
        margin: 20px;
        width: calc(100% - 40px);
        font-size: 16px;
        padding: 14px 0;
    }

    .hero h1 {
        font-size: 26px;
    }
}





{/* ================= Main Content================= */}

/* Container Grid */
.kp-blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px 24px;
    /* vertical and horizontal spacing */
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Individual Card */
.kp-card {
    display: flex;
    flex-direction: column;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.kp-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

/* Image Styling */
.kp-image-wrapper {
    width: 100%;
    height: 200px;
    /* fixed height for uniformity */
    overflow: hidden;
}

.kp-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* cover area without stretching */
    transition: transform 0.3s ease;
}

.kp-card:hover .kp-image-wrapper img {
    transform: scale(1.05);
}

/* Typography */
.kp-content {
    padding: 16px;
}

.kp-content h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1a3c1a;
    /* dark green hue */
    line-height: 1.4;
    margin: 0 0 12px 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    /* clip text after 3 lines */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.kp-meta {
    font-size: 0.85rem;
    color: #888;
    margin: 0;
}

/* Responsive adjustment for mobile */
@media (max-width: 600px) {
    .kp-blog-grid {
        grid-template-columns: 1fr;
        gap: 24px 0;
        padding: 20px 10px;
    }
}




/* ================= FOOTER ================= */

.kp-footer {
    background-color: #f7f8f2;
    /* Off-white/cream background */
    padding: 80px 20px 20px 20px;
    font-family: 'Segoe UI', sans-serif;
    /* This creates the subtle upward curve at the top */
    border-top-left-radius: 50% 40px;
    border-top-right-radius: 50% 40px;
    margin-top: 50px;
}

.kp-footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr 1.5fr 2fr;
    gap: 40px;
    padding-bottom: 40px;
}

.kp-footer-col h4 {
    color: #2d5a27;
    /* Forest green */
    font-size: 1.2rem;
    margin-bottom: 20px;
}

/* Social Icons Styling */
.kp-footer-logo {
    width: 100px;
    margin-bottom: 20px;
}

.kp-social-icons {
    display: flex;
    gap: 15px;
}

.kp-social-icons a {
    color: #2d5a27;
    font-size: 1.1rem;
    text-decoration: none;
}

/* List & Address Styling */
.kp-footer-col ul {
    list-style: none;
    padding: 0;
}

.kp-footer-col ul li {
    margin-bottom: 10px;
}

.kp-footer-col a,
.kp-footer-col address,
.kp-footer-col p {
    color: #444;
    text-decoration: none;
    font-style: normal;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Newsletter Form */
.kp-newsletter-text {
    margin-bottom: 20px;
    max-width: 300px;
}

.kp-newsletter-form input {
    width: 100%;
    padding: 12px 20px;
    border-radius: 25px;
    border: 1px solid #ddd;
    margin-bottom: 15px;
    outline: none;
}

.kp-newsletter-form button {
    width: 100%;
    padding: 12px;
    background-color: #2d5a27;
    color: white;
    border: none;
    border-radius: 25px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
}

.kp-newsletter-form button:hover {
    background-color: #1e3d1a;
}

/* Bottom Copyright */
.kp-footer-bottom {
    border-top: 1px solid #e0e0e0;
    text-align: center;
    padding-top: 20px;
    font-size: 0.85rem;
    color: #666;
}

/* Responsive for Mobile */
@media (max-width: 992px) {
    .kp-footer-container {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 600px) {
    .kp-footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .kp-social-icons {
        justify-content: center;
    }
}