/*
Theme Name: Kzoo Makers
Theme URI: https://kzoomakers.org
Author: Kzoo Makers
Author URI: https://kzoomakers.org
Description: A WordPress theme for Kzoo Makers blog, based on the Bingo Bootstrap template. All static assets are loaded from https://kzoomakers.org
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: kzoomakers
Tags: blog, custom-menu, featured-images, threaded-comments, translation-ready

This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned with others.
*/

/* 
 * All styles are loaded from https://kzoomakers.org/css/style.css
 * This file only contains WordPress-specific overrides and theme metadata
 */

/* WordPress Core Styles */
.alignnone {
    margin: 5px 20px 20px 0;
}

.aligncenter,
div.aligncenter {
    display: block;
    margin: 5px auto 5px auto;
}

.alignright {
    float: right;
    margin: 5px 0 20px 20px;
}

.alignleft {
    float: left;
    margin: 5px 20px 20px 0;
}

a img.alignright {
    float: right;
    margin: 5px 0 20px 20px;
}

a img.alignnone {
    margin: 5px 20px 20px 0;
}

a img.alignleft {
    float: left;
    margin: 5px 20px 20px 0;
}

a img.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.wp-caption {
    background: #fff;
    border: 1px solid #f0f0f0;
    max-width: 96%;
    padding: 5px 3px 10px;
    text-align: center;
}

.wp-caption.alignnone {
    margin: 5px 20px 20px 0;
}

.wp-caption.alignleft {
    margin: 5px 20px 20px 0;
}

.wp-caption.alignright {
    margin: 5px 0 20px 20px;
}

.wp-caption img {
    border: 0 none;
    height: auto;
    margin: 0;
    max-width: 98.5%;
    padding: 0;
    width: auto;
}

.wp-caption p.wp-caption-text {
    font-size: 11px;
    line-height: 17px;
    margin: 0;
    padding: 0 4px 5px;
}

/* Text meant only for screen readers. */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute !important;
    width: 1px;
    word-wrap: normal !important;
}

.screen-reader-text:focus {
    background-color: #f1f1f1;
    border-radius: 3px;
    box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
    clip: auto !important;
    clip-path: none;
    color: #21759b;
    display: block;
    font-size: 14px;
    font-weight: bold;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}

/* WordPress Gallery Styles */
.gallery {
    margin-bottom: 1.5em;
}

.gallery-item {
    display: inline-block;
    text-align: center;
    vertical-align: top;
    width: 100%;
}

.gallery-columns-2 .gallery-item {
    max-width: 50%;
}

.gallery-columns-3 .gallery-item {
    max-width: 33.33%;
}

.gallery-columns-4 .gallery-item {
    max-width: 25%;
}

.gallery-columns-5 .gallery-item {
    max-width: 20%;
}

.gallery-columns-6 .gallery-item {
    max-width: 16.66%;
}

.gallery-columns-7 .gallery-item {
    max-width: 14.28%;
}

.gallery-columns-8 .gallery-item {
    max-width: 12.5%;
}

.gallery-columns-9 .gallery-item {
    max-width: 11.11%;
}

.gallery-caption {
    display: block;
}

/* Comment List Styles */
.comment-list {
    list-style: none;
    padding: 0;
    margin: 30px 0;
}

.comment-list .comment-list-item {
    display: flex;
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #eee;
}

.comment-list .comment-list-item:last-child {
    border-bottom: none;
}

.comment-list-item-image {
    flex-shrink: 0;
    margin-right: 20px;
}

.comment-list-item-image img {
    border-radius: 50%;
    width: 80px;
    height: 80px;
}

.comment-list-item-content {
    flex-grow: 1;
}

.comment-list-item-content h5 {
    margin-bottom: 5px;
    font-weight: 600;
}

.comment-list-item-content h6 {
    color: #999;
    font-size: 14px;
    margin-bottom: 10px;
}

.comment-btn {
    color: #007bff;
    text-decoration: none;
    font-size: 14px;
}

.comment-btn:hover {
    text-decoration: underline;
}

/* Pagination Styles */
.pagination {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.pagination .nav-links {
    display: flex;
    gap: 10px;
}

.pagination .page-numbers {
    padding: 8px 15px;
    border: 1px solid #ddd;
    text-decoration: none;
    color: #333;
    border-radius: 3px;
}

.pagination .page-numbers.current {
    background-color: #007bff;
    color: white;
    border-color: #007bff;
}

.pagination .page-numbers:hover {
    background-color: #f8f9fa;
}

/* Sticky Post */
.sticky {
    /* Add styles for sticky posts if needed */
}

/* Post Navigation */
.post-navigation {
    margin: 40px 0;
}

/* Fix Single Post Layout - Prevent background image overlay */
.single .post {
    background: none !important;
}

.single .post-image {
    position: relative !important;
    background: none !important;
}

.single .post-image img {
    position: relative !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
}

.single .post-content {
    background: #ffffff !important;
    padding: 30px !important;
    position: relative !important;
    z-index: 10 !important;
}

.single .post-content h3,
.single .post-content p,
.single .post-content ul,
.single .post-content .list-inline {
    position: relative !important;
    z-index: 10 !important;
    background: transparent !important;
}

/* Ensure proper text visibility */
.single article.post {
    background-color: #ffffff !important;
}

.single .blog-details {
    background-color: #f8f9fa !important;
}

/* Custom Header Styling - Black Background */
.navigation.fixed-top {
    background-color: #000000 !important;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.navigation.fixed-top .navbar {
    background-color: transparent;
}

/* Ensure logo visibility on black background */
.navigation.fixed-top .logo-default {
    display: none !important;
}

.navigation.fixed-top .logo-white {
    display: block !important;
}

/* Make nav links white on black background */
.navigation.fixed-top .navbar-nav .nav-link {
    color: #ffffff !important;
}

.navigation.fixed-top .navbar-nav .nav-link:hover {
    color: #cccccc !important;
}

/* Dropdown menu styling */
.navigation.fixed-top .dropdown-menu {
    background-color: #1a1a1a;
    border: 1px solid #333;
}

.navigation.fixed-top .dropdown-menu .dropdown-item {
    color: #ffffff;
}

.navigation.fixed-top .dropdown-menu .dropdown-item:hover {
    background-color: #333;
    color: #ffffff;
}

/* Mobile menu toggle button */
.navigation.fixed-top .navbar-toggler {
    border-color: rgba(255, 255, 255, 0.5);
}

.navigation.fixed-top .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 255, 255, 0.8)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .comment-list-item-image img {
        width: 60px;
        height: 60px;
    }
    
    /* Mobile menu background */
    .navigation.fixed-top .navbar-collapse {
        background-color: #000000;
        padding: 15px;
        margin-top: 10px;
    }
}

/* Improve readability for single post content */
.single .post-content,
.single .post-content p,
.single .post-content li,
.single .post-content span,
.single .post-content a {
    color: #000000 !important;
    line-height: 1.7 !important;
    font-size: 18px;
}

/* Better blog cards */
.post-card {
    background: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: transform .15s ease, box-shadow .15s ease;
}

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

.post-card-image img {
    width: 100%;
    height: auto;
    display: block;
}

.post-card-body {
    padding: 20px;
}

.post-card-title {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 10px;
}

.post-card-title a {
    color: #000 !important;
    text-decoration: none;
}

.post-card-title a:hover {
    color: #007bff !important;
}

.post-card-excerpt {
    color: #444;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 15px;
}

.post-card-button {
    display: inline-block;
    padding: 8px 15px;
    background: #007bff;
    color: #fff !important;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    transition: background .15s ease;
}

.post-card-button:hover {
    background: #0056d2;
}


