/*
Theme Name: Beestrot
Theme URI: https://themeisle.com/themes/neve/
Template: neve
Author: ThemeIsle
Author URI: https://themeisle.com
Description: Child theme for Neve
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: beestrot
*/

/* Add your custom styles after this line */
/* ============================================= */
/* Modern Card Layout for Post Navigation */
/* ============================================= */

/* FIX footer bottom height */
.site-footer p:last-child {
    margin-bottom: 0;
    margin-top: 10px!important;
}
/* Hide on tablet & mobile with multiple selectors */
.desktop-only-wrapper {
    display: contents; /* Prevents layout shifts */
}
@media (max-width: 1024px) {
    .desktop-only-wrapper > * {
        display: none !important;
    }
}
/* Apply layout fixes for single quiz post (custom post type) */
.single-beestrot_quiz .nv-single-post-wrap.col {
    max-width: 100% !important;  /* Override the 70% */
    flex: auto;
    padding: 20px;
}
.quiz-time-image {
    height: 200px; /* preset height */
    width: 400px; /* preset width */
    object-fit: cover; /* scale the image to cover the container */
}
.featured-image {
    position: relative;
}
/* Style the overlay for quiz-time thumbnails */
/* Targets quiz-time posts in ALL archives (home, search, etc.) */
.is-quiz-time .nv-post-thumbnail-wrap {
    position: relative; /* Required for absolute positioning */
}

.is-quiz-time .nv-post-thumbnail-wrap::after {
    content: "";
    position: absolute;
    top: 40%;
    left: 60%;
    width: 40%;
    height: 60%; /* Adjusted to prevent overflow */
    background-image: url('https://beestrot.com/wp-content/uploads/2025/04/quiz-time-overlay.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    z-index: 1;
    opacity: 1;
    pointer-events: none;
}
/* ============================================ */
/* POST CATEGORIES */
/* ============================================ */
.post-categories {
    margin: 0 0 12px 0;
    font-size: 14px;
    color: #83abc4;
    line-height: 1.4;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-weight: 600;
}

/* Recipe category groups */
.post-categories .category-group {
    display: inline-block;
    margin-right: 4px;
}

/* Category links */
.post-categories a {
    color: #2e5aa6;
    text-decoration: none;
    transition: color 0.2s ease;
}
.post-categories a:hover {
    color: #ac1219;
    text-decoration: underline;
}

/* ============================================ */
/* POST EXCERPTS */
/* ============================================ */
.post-excerpt {
    margin: 0 0 20px 0;
    font-style: italic;
    font-size: 15px;
    line-height: 1.6;
    color: #000;
    font-weight: 500;

/* Recipe-specific excerpt style */
.type-recipe .post-excerpt {
    font-style: italic;
    color: #000;
    font-weight: 500;
}

/* Read more link */
.read-more {
    color: #3083bf;
    text-decoration: none;
    font-weight: 500;
    white-space: nowrap;
    display: inline-block;
    margin-left: 4px;
}
.read-more:hover {
    text-decoration: underline;
}

/* ============================================ */
/* RESPONSIVE ADJUSTMENTS */
/* ============================================ */
@media (max-width: 768px) {
    .post-categories {
        font-size: 13px;
        margin-bottom: 10px;
    }
    .post-excerpt {
        font-size: 15px;
        margin-bottom: 16px;
    }
}
.nv-post-thumbnail-wrap img {
    width: 100%;
    height: 200px!important; /* Set the height to a fixed value */
    object-fit: cover; /* Scale the image to cover the container */
    box-shadow: var(--boxshadow, none);
}
