/*
Theme Name: Benson Dubois 2025
Theme URI: http://bensondubois.com
Author: Benson Dubois
Author URI: http://bensondubois.com
Description: A modern and responsive WordPress theme designed for Benson Dubois.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: benson-dubois-2025

This theme is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 2 of the License, or
any later version.

This theme is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
*/


/* Basic Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

a:not(:has(*)) {
    border: 1px solid black;
    color: black;
    padding: 2px 5px;
    text-decoration: none;
    font-size: 0.9em;
    border-radius: 4px;
}

a:not(:has(*)):hover {
    border: 1px solid black;
    background: black;
    color: white;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    background-color: #ffffff; 
    color: #333;
    letter-spacing: -0.5px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    margin-bottom: 0.5em; /* Space below headings */
}

p {
    padding-bottom: 16px;
}

#container {
    display: flex;
    margin: 20px auto;
    max-width: 1200px;
    width: 95%;
}

.column {
    padding: 0px 30px;
}

.sidebar {
    background-color: #ffffff;
    flex: 0 0 30%; /* Sidebar takes up 30% of the container */
    max-width: 30%;
}

.main-content {
    background-color: #ffffff;
    flex: 0 0 70%; /* Main content takes up 70% of the container */
    max-width: 70%;
}

/* Add this to your theme's stylesheet */
.featured-posts-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.post-item {
    flex: 1 1 calc(33.33% - 20px); /* Three columns with gaps */
    box-sizing: border-box;
}

.featured-post-item {
    text-decoration: none;
    color: #333;
    background-color: #ffffff;
    padding: 15px;
    border-top-left-radius: 8px; /* Top left rounded corner */
    border-top-right-radius: 8px; /* Top right rounded corner */
    transition: transform 0.2s ease;
}

.featured-post-item:hover {
    transform: scale(1.05);
}

.post-title {
    margin-top: 10px;
    font-size: 18px;
}

.masonry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px; /* Space between grid items */
}

.post-item {
    background-color: #f9f9f9;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease;
    width: 100%;
    box-sizing: border-box; /* Ensure padding and borders are included in the width */
}

.post-item:hover {
    transform: scale(1.05);
}

.featured-image {
    width: 100%; /* Make sure the image takes up the full width of the post-item */
    height: auto;
    display: block;
    object-fit: cover; /* Ensure the image covers the entire area without distorting */
}

h2 {
    padding: 16px;
    margin: 0;
    font-size: 18px;
    text-align: center;
}

/* Increase font size for post content */
.post-content p,
.post-content h1,
.post-content h2,
.post-content h3,
.post-content h4,
.post-content h5,
.post-content h6,
.post-content li {
    font-size: 1.2em; /* Adjust the font size as needed */
    line-height: 1.8em; /* Optional: Increase line height for better readability */
}

/* Ensure images are responsive */
.img-responsive {
    max-width: 100%;
    height: auto;
}

.featured-image img {
    display: block;
    margin: 0 auto; /* Center the image if needed */
    max-width: 500px;
}

/* Remove any default margins and paddings for a seamless transition */
.featured-image,
.post-content {
    margin: 0;
    padding: 0;
}

/* Style for the excerpt text */
.post-excerpt-wrapper {
    margin: 0 auto;
    max-width: 500px; /* Adjust this value as needed */
    background-color: #000; /* Black background */
    color: #fff; /* White text */
    padding: 20px; /* Padding inside the content box */
    border-bottom-left-radius: 8px; /* Bottom left rounded corner */
    border-bottom-right-radius: 8px; /* Bottom right rounded corner */
    line-height: 1.2em;
    font-size: 1em;
}

.post-excerpt-content {
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3; /* Limit to 3 lines */
    -webkit-box-orient: vertical;
}

.post-item a {
    text-decoration: none;
}

.post-excerpt p,
.post-excerpt h1,
.post-excerpt h2,
.post-excerpt h3,
.post-excerpt h4,
.post-excerpt h5,
.post-excerpt h6,
.post-excerpt li {
    color: #fff; /* Ensure text inside elements is white */
}

/* Style for the featured image */
.single-post-featured-image {
    border-top-left-radius: 8px; /* Top left rounded corner */
    border-top-right-radius: 8px; /* Top right rounded corner */
    display: block; /* Ensures no extra space around the image */
    width: 100%; /* Full-width image */
}

/* Style for the post content */
.single-post-content {
    margin: 0 auto;
    max-width: 500px;
    background-color: #000; /* Black background */
    color: #fff; /* White text */
    padding: 20px; /* Padding inside the content box */
    border-bottom-left-radius: 8px; /* Bottom left rounded corner */
    border-bottom-right-radius: 8px; /* Bottom right rounded corner */
}

/* Ensure no gap between the image and the post content */
.featured-image + .post-content {
    margin-top: -1px; /* Adjust this value if needed to ensure seamless connection */
}

#footer-widget-area {
    padding: 20px 0; /* Adjust as needed */
}

.widget-area {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.widget {
    width: 100%;
    margin-bottom: 20px;
    padding: 0 10px; /* Optional: Add some padding between widgets */
}

/* Responsive Design */
@media (max-width: 900px) {
    #container {
        flex-direction: column;
    }

    .sidebar, .main-content {
        flex: 0 0 100%; /* Full width on smaller screens */
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    body {
        line-height: 1.7; /* Slightly increase line height for smaller screens */
        letter-spacing: -0.4px; /* Adjust letter spacing for better readability on small screens */
    }

    .post-item {
        flex: 1 1 calc(50% - 20px); /* Two columns on smaller screens */
    }
}

@media (max-width: 480px) {
    body {
        line-height: 1.8; /* Further increase line height for very small screens */
        letter-spacing: -0.3px; /* Adjust letter spacing for better readability on tiny screens */
    }

    .post-item {
        flex: 1 1 100%; /* One column on very small screens */
    }
}