/* =========================
   Base / Bootstrap defaults
   ========================= */

html {
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
    position: relative;
    min-height: 100%;
}

body {
    margin-bottom: 60px;
}

.form-floating > .form-control-plaintext::placeholder,
.form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder,
.form-floating > .form-control:focus::placeholder {
    text-align: start;
}

/* =========================
   Kind Minds Theme Variables
   ========================= */

:root {
    --km-text: #1f2937;
    --km-muted: #6b7280;
    --km-sage: #A8BCA8;
    --km-sand: #E7D3A8;
    --km-cream: #FAF7F0;
    --km-ink: #2F3A5F;
    --km-border: #e7e3d8;
    --km-radius: 18px;
}

/* =========================
   Global Theme Styles
   ========================= */

body {
    color: var(--km-text);
    background: var(--km-cream);
}

.navbar {
    background: #fff !important;
    border-bottom: 1px solid var(--km-border);
}

/* =========================
   Hero / Intro / Why Section
   ========================= */

.km-hero {
    background: linear-gradient(180deg, rgba(168,188,168,0.35), rgba(231,211,168,0.18));
    border: 1px solid var(--km-border);
    border-radius: var(--km-radius);
    padding: 3rem 1.75rem;
}

.km-card {
    background: #fff;
    border: 1px solid var(--km-border);
    border-radius: var(--km-radius);
    padding: 1.25rem;
}

.km-intro {
    background-color: #f3efe7;
    border-radius: 16px;
    padding: 40px;
}

    .km-intro h2 {
        font-weight: 500;
        color: #2f3a46;
    }

    .km-intro p {
        color: #4a4a4a;
        line-height: 1.7;
    }

.km-why {
    padding: 50px 20px;
}

    .km-why h2 {
        text-align: center;
        color: #2f3a46;
        font-weight: 500;
    }

    .km-why p {
        max-width: 700px;
        margin: 0 auto 18px auto;
        line-height: 1.8;
        color: #4a4a4a;
        text-align: center;
    }

/* =========================
   Buttons (Theme)
   ========================= */

.btn-dark {
    background-color: var(--km-ink);
    border-color: var(--km-ink);
    border-radius: 999px;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
}

.btn-outline-dark {
    border-radius: 999px;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
}

.km-category-card {
    border: 1px solid var(--km-border);
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

    .km-category-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 8px 18px rgba(0,0,0,0.08);
    }

    .km-category-card img {
        display: block;
        width: 100%;
        height: 180px; /* change to 200px if you want taller thumbnails */
        object-fit: cover;
    }

    .km-category-card .card-body {
        padding-top: 1.25rem 1.25rem 1.5rem;
    }
/* Affiliate Product Cards */
.km-product-card {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

    .km-product-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 8px 18px rgba(0,0,0,0.08);
    }

.km-product-img {
    width: 100%;
    height: 180px; /* adjust to 200px if you want taller */
    object-fit: cover; /* crops nicely instead of stretching */
    display: block;
    background: #f3efe7; /* soft fallback if image loads slow */
}

.km-products h2 {
    color: var(--km-ink);
    font-weight: 600;
}

.km-links a {
    text-decoration: none;
    font-weight: 600;
}

    .km-links a:hover {
        text-decoration: underline;
    }

.km-links li {
    padding: 10px 0;
    border-bottom: 1px solid var(--km-border);
}
