/*
Theme Name: Kicking Stones
Theme URI: http://www.kickingstones.co.uk
Author: Marc Robinson
Author URI: http://www.kickingstones.co.uk
Description: Kicking Stones Bento Style Layout
Version: 1.0
License: GNU General Public License v2 or later
Text Domain: kicking-stones-bento-theme
*/

/* ===================== */
/* BODY & GENERAL */
/* ===================== */

body {
    background-color: #f5f0d6;
    overflow-x: hidden;
}

/* ===================== */
/* HEADER / NAVIGATION */
/* ===================== */

.navbar-brand img {
    max-height: 40px !important;
    width: auto !important;
    height: auto !important;
}

.nav-link {
    color: #293148;
    text-decoration: none;
    font-weight: bold;
}

.nav-link:hover,
.nav-link:focus {
    color: #3f8c6e;
    text-decoration: underline;
}

/* ===================== */
/* SECTION HEADINGS */
/* ===================== */

.section-heading {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: #293148;
    margin: 1.5rem 0 1rem;
}

/* ===================== */
/* BOX LAYOUT */
/* ===================== */

.box {
    background-color: #fff;
    border: 5px solid #293148;
    border-radius: 15px;
    overflow: hidden;
    font-weight: bold;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 1;
    min-height: 150px;
    padding: 10px;
}

.latest-post-box,
.top-right-box,
.bottom-right-box,
.square-box {
    padding: 0;
}

.top-left-box { flex: 1; }

.top-right-container {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.top-right-container > .flex-fill {
    flex: 1 1 0;
    display: flex;
}

.top-right-box,
.bottom-right-box {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
}

.square-box {
    width: 100%;
    aspect-ratio: 1 / 1;
}

.top-row,
.bottom-row {
    margin-bottom: 2rem;
}

.row > .col-lg-3,
.row > .col-lg-6,
.row > .col-md-6 {
    padding: 3px;
}

/* ===================== */
/* POST IMAGES & LINKS */
/* ===================== */

.latest-post-link,
.small-post-link {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.latest-post-image,
.small-post-image {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    width: 100%;
    background-size: cover;
    background-position: center;
    position: relative;
}

.latest-post-title,
.small-post-title {
    width: 100%;
    box-sizing: border-box;
    text-align: center;
    color: #fff;
    font-weight: bold;
}

.latest-post-title {
    padding: 0.5rem;
    font-size: 1.2rem;
    background: linear-gradient(to top, rgba(0,0,0,0.85), rgba(0,0,0,0));
}

.small-post-title {
    padding: 0.3rem;
    font-size: 1rem;
    background: linear-gradient(to top, rgba(0,0,0,0.75), rgba(0,0,0,0));
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
}

.latest-post-title.no-image,
.small-post-title.no-image {
    background: #293148;
    color: #fff;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.latest-post-link:hover .latest-post-title,
.small-post-link:hover .small-post-title {
    background: linear-gradient(to top, rgba(0,0,0,0.9), rgba(0,0,0,0.1));
}

/* ===================== */
/* BENTO BOXES */
/* ===================== */

.bento-box {
    background: #ffffff;
    border: 5px solid #293148;
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.bento-box:hover {
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
    transform: translateY(-3px);
}

/* ===================== */
/* SINGLE PAGE */
/* ===================== */

.single-featured {
    width: 100%;
    aspect-ratio: 16 / 9;
    background-size: cover;
    background-position: center;
    border-radius: 10px;
    margin-bottom: 1.5rem;
}

.post-title {
    font-size: 2.2rem;
    color: #293148;
    font-weight: 700;
}

.post-content {
    font-size: 1.15rem;
    line-height: 1.9;
    color: #000;
}

.post-content img {
    border: 4px solid #293148;
    border-radius: 10px;
    margin: 1.5rem 0;
    max-width: 100%;
    height: auto;
}

/* ===================== */
/* SIMILAR / DISCOVER POSTS */
/* ===================== */

.similar-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

/* ===================== */
/* SIMILAR / DISCOVER CARDS SQUARE FIX */
/* ===================== */

.similar-card {
    position: relative;
    aspect-ratio: 1 / 1;
    background: #fff;
    border: 3px solid #293148;
    border-radius: 10px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease;
}

.similar-card:hover {
    transform: translateY(-5px);
}

.similar-card .similar-thumb {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.similar-card .similar-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.similar-card .similar-title {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0,0,0,0.6);
    color: #fff;
    font-weight: 600;
    text-align: center;
    padding: 0.5rem;
    box-sizing: border-box;
}

/* ===================== */
/* SIDEBAR */
/* ===================== */

.author-avatar img {
    border-radius: 50%;
    border: 4px solid #293148;
    margin-bottom: 1rem;
}

.categories-block ul {
    list-style: none;
    padding-left: 0;
}

.categories-block li {
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.categories-block a {
    color: #293148;
    text-decoration: none;
    font-weight: bold;
}

.categories-block a:hover {
    color: #3f8c6e;
    text-decoration: underline;
}

/* ===================== */
/* FOOTER */
/* ===================== */

.site-footer {
    background-color: #e0d8c2;
    border-top: 3px solid #293148;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-copy {
    color: #293148;
    font-weight: bold;
}

.footer-social a {
    margin-left: 0.5rem;
}

.footer-social img {
    width: 24px;
    height: 24px;
    filter: brightness(0.2);
    transition: 0.3s ease;
}

.footer-social a:hover img {
    filter: brightness(1);
    transform: scale(1.1);
}

/* ===================== */
/* MOBILE FIXES */
/* ===================== */

@media (max-width: 991.98px) {

    /* Navbar adjustments */
    .navbar {
        position: relative;
    }

    .navbar-brand {
        margin-left: auto;
        margin-right: auto;
    }

    .navbar-toggler {
        margin-left: auto;
        border: none;
    }

    .navbar-toggler:focus {
        box-shadow: none;
    }

    .navbar-collapse {
        margin-top: 1rem;
        text-align: center;
    }

    .navbar-nav .nav-link {
        padding: 0.75rem 0;
    }

    /* Responsive grids */
    .similar-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Single page full-width content fix */
    .single-wrapper .col-lg-8,
    .single-wrapper .col-lg-4 {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .single-wrapper .row {
        margin-left: 0;
        margin-right: 0;
    }

    .single-wrapper .col-lg-8,
    .single-wrapper .col-lg-4 {
        padding-left: 0;
        padding-right: 0;
    }

    /* Keep internal padding inside bento boxes */
    .single-wrapper .col-lg-8 .bento-box,
    .single-wrapper .col-lg-4 .bento-box {
        padding-left: 2rem;
        padding-right: 2rem;
        margin-left: 0;
        margin-right: 0;
    }

    /* ===================== */
    /* COMMENT BOX FULL WIDTH FIX */
    /* ===================== */
    .single-wrapper .comments-box {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box;
        padding-left: 2rem;
        padding-right: 2rem;
        margin-left: 0;
        margin-right: 0;
    }

    /* Ensure WP comment form elements fit inside */
    .single-wrapper .comments-box textarea,
    .single-wrapper .comments-box input,
    .single-wrapper .comments-box select,
    .single-wrapper .comments-box button {
        width: 100%;
        box-sizing: border-box;
    }
}

@media (max-width: 575px) {
    .similar-grid {
        grid-template-columns: 1fr;
    }
}










