/*
Theme Name: KTSFIXED
Theme URI: https://ktsfixed.com.ng
Author: KTSFIXED Team
Author URI: https://ktsfixed.com.ng
Description: A responsive WordPress theme for KTSFIXED.COM.NG, a mobile device service website.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ktsfixed
Tags: responsive, mobile, clean, modern
*/

/* Global Styles */
:root {
    --primary-color: #007BFF;
    --nav-bg-color: green;
    --footer-bg-color: #4a5568;
    --text-color: #000;
    --bg-color: #fff;
    --gold-color: #FFD700;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    margin: 0;
    padding: 0;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: #0056b3;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header Styles */
.site-header {
    text-align: center;
    padding: 20px 0;
    border-bottom: 1px solid #eee;
}

.site-logo {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 20px;
    text-align: center;
}

.site-logo a {
    color: var(--text-color);
}

.site-logo a.site-title {
    color: #0000FF; /* Blue */
    font-weight: bold;
}

.custom-logo-link {
    display: inline-block;
    max-width: 300px;
    margin-bottom: 10px;
}

.custom-logo {
    max-width: 100%;
    height: auto;
}

/* Navigation Styles */
.main-navigation {
    background-color: var(--nav-bg-color);
    padding: 10px 0;
}

.menu-toggle {
    display: none;
    background-color: transparent;
    border: 2px solid white;
    color: white;
    padding: 8px 15px;
    font-size: 1rem;
    cursor: pointer;
    margin: 0 auto 10px;
    border-radius: 4px;
}

.menu-toggle:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.main-navigation ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.main-navigation li {
    margin: 0 15px;
    position: relative;
}

.main-navigation a {
    color: white;
    font-weight: bold;
    padding: 10px 0;
    display: block;
}

.main-navigation a:hover {
    color: #f0f0f0;
}

/* Dropdown Menu */
.main-navigation .sub-menu {
    display: none;
    position: absolute;
    background-color: var(--nav-bg-color);
    min-width: 200px;
    z-index: 999;
    padding: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.main-navigation li:hover > .sub-menu {
    display: block;
}

.main-navigation .sub-menu li {
    margin: 10px 0;
}

.main-navigation .sub-menu a {
    padding: 5px 10px;
}

/* Content Area */
.site-content {
    display: flex;
    flex-wrap: wrap;
    padding: 20px 0;
}

.content-area {
    flex: 1;
    min-width: 0;
    padding-right: 30px;
}

/* Posts */
.post {
    margin-bottom: 40px;
    border-bottom: 1px solid #eee;
    padding-bottom: 30px;
}

.post-thumbnail img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
}

.post-title {
    font-size: 1.8rem;
    margin: 15px 0;
}

.post-title a {
    color: var(--text-color);
}

/* Section headings like "LATEST POSTS" */
.section-title {
    color: #0000FF; /* Blue */
}

.post-meta {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.post-category {
    background-color: var(--primary-color);
    color: white;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 0.8rem;
    margin-right: 10px;
    display: inline-block;
}

.post-excerpt {
    margin-bottom: 20px;
}

.read-more {
    background-color: var(--primary-color);
    color: white;
    padding: 8px 15px;
    border-radius: 4px;
    display: inline-block;
}

.read-more:hover {
    background-color: #0056b3;
    color: white;
}

/* Share Buttons */
.share-buttons {
    margin-top: 20px;
}

.share-buttons a {
    display: inline-block;
    margin-right: 10px;
    padding: 5px 10px;
    border-radius: 3px;
    color: white;
}

.share-facebook {
    background-color: #3b5998;
}

.share-twitter {
    background-color: #1da1f2;
}

.share-whatsapp {
    background-color: #25d366;
}

/* Pagination */
.pagination {
    margin: 30px 0;
    text-align: center;
}

.pagination a {
    display: inline-block;
    padding: 8px 15px;
    margin: 0 5px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 4px;
}

.pagination a:hover {
    background-color: #0056b3;
}

/* Sidebar */
.sidebar {
    width: 300px;
    padding-left: 30px;
    border-left: 1px solid #eee;
}

.widget {
    margin-bottom: 40px;
}

.widget-title {
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 10px;
    margin-bottom: 20px;
    font-size: 1.2rem;
}

/* Search Widget */
.search-form {
    display: flex;
}

.search-field {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px 0 0 4px;
}

.search-submit {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
}

/* Categories Widget */
.widget ul {
    list-style: none;
    padding: 0;
}

.widget ul li {
    border-bottom: 1px solid #eee;
    padding: 8px 0;
}

.widget ul li:last-child {
    border-bottom: none;
}

/* Social Icons Widget */
.social-icons {
    display: flex;
    justify-content: center;
    margin-top: 15px;
}

.social-icons a {
    display: inline-block;
    margin: 0 10px;
    color: var(--primary-color);
    font-size: 1.5rem;
}

.social-icons a:hover {
    color: #0056b3;
}

/* Footer */
.site-footer {
    background-color: var(--footer-bg-color);
    color: white;
    padding: 30px 0;
    text-align: center;
}

.footer-navigation ul {
    list-style: none;
    padding: 0;
    margin: 20px 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.footer-navigation li {
    margin: 0 15px;
}

.footer-navigation a {
    color: white;
}

.footer-navigation a:hover {
    color: var(--primary-color);
}

.copyright {
    margin-top: 20px;
    font-size: 0.9rem;
}

.developer-credit {
    color: var(--gold-color);
    font-weight: bold;
}

.developer-credit a {
    color: var(--gold-color);
    text-decoration: none;
}

.developer-credit a:hover {
    text-decoration: underline;
}

/* Comments Styles */
.comments-area {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #eee;
}

.comments-title {
    font-size: 1.5rem;
    margin-bottom: 30px;
}

.comment-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.comment-body {
    margin-bottom: 30px;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 5px;
}

.comment-meta {
    margin-bottom: 15px;
}

.comment-author {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
}

.comment-author .avatar {
    margin-right: 15px;
    border-radius: 50%;
}

.comment-metadata {
    font-size: 0.8rem;
    color: #666;
}

.comment-content {
    margin-bottom: 15px;
}

.comment-content p:last-child {
    margin-bottom: 0;
}

.reply {
    text-align: right;
}

.reply a {
    display: inline-block;
    padding: 5px 10px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 3px;
    font-size: 0.8rem;
}

.reply a:hover {
    background-color: #0056b3;
    color: white;
}

.comment-respond {
    margin-top: 40px;
}

.comment-reply-title {
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.comment-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 15px;
}

.comment-form-cookies-consent {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.comment-form-cookies-consent input {
    margin-right: 10px;
}

.form-submit {
    margin-top: 20px;
}

.comment-awaiting-moderation {
    color: #d32f2f;
    font-style: italic;
    margin-bottom: 10px;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .site-content {
        flex-direction: column;
    }
    
    .content-area {
        padding-right: 0;
    }
    
    .sidebar {
        width: 100%;
        padding-left: 0;
        border-left: none;
        border-top: 1px solid #eee;
        padding-top: 30px;
        margin-top: 30px;
    }
    
    /* Mobile Menu Styles */
    .menu-toggle {
        display: block;
    }
    
    .main-navigation ul {
        display: none;
        flex-direction: column;
        align-items: center;
    }
    
    .main-navigation ul.show {
        display: flex;
    }
    
    .main-navigation li {
        margin: 10px 0;
        width: 100%;
        text-align: center;
    }
    
    .main-navigation .sub-menu {
        position: static;
        display: none;
        width: 100%;
        padding: 0;
        box-shadow: none;
        background-color: rgba(0, 0, 0, 0.1);
        margin-top: 10px;
    }
    
    .main-navigation .menu-item-has-children {
        position: relative;
    }
    
    .dropdown-toggle {
        position: absolute;
        right: 0;
        top: 10px;
        background: transparent;
        border: none;
        color: white;
        font-size: 1.2rem;
        cursor: pointer;
        padding: 0 10px;
    }
    
    .dropdown-toggle::after {
        content: '+';
    }
    
    .menu-item-has-children.toggled-on > .dropdown-toggle::after {
        content: '-';
    }
    
    .menu-item-has-children.toggled-on > .sub-menu {
        display: block;
    }
    
    /* Comment Styles for Mobile */
    .comment-author .avatar {
        width: 40px;
        height: 40px;
    }
    
    .comment-form-author,
    .comment-form-email,
    .comment-form-url {
        width: 100%;
        float: none;
        margin-right: 0;
    }
    
    /* Fix for social sharing buttons */
    .share-buttons {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .share-buttons a {
        margin: 5px;
        padding: 8px 15px;
        font-size: 0.9rem;
    }
    
    /* Fix for post thumbnails */
    .post-thumbnail img {
        width: 100%;
        height: auto;
    }
    
    /* Fix for footer navigation */
    .footer-navigation ul {
        flex-direction: column;
    }
    
    .footer-navigation li {
        margin: 5px 0;
    }
    
    /* Fix for social icons */
    .social-icons {
        margin-top: 20px;
    }
}

/* Additional responsive fixes for smaller screens */
@media (max-width: 480px) {
    .site-logo {
        font-size: 2rem;
    }
    
    .post-title {
        font-size: 1.5rem;
    }
    
    .post-category {
        display: inline-block;
        margin-bottom: 10px;
    }
    
    .post-meta {
        display: block;
        margin-bottom: 15px;
    }
    
    .post-actions {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .read-more {
        margin-bottom: 15px;
        width: 100%;
        text-align: center;
    }
    
    .share-buttons {
        width: 100%;
        justify-content: space-between;
    }
    
    .share-buttons a {
        flex: 1;
        margin: 0 5px;
        text-align: center;
        font-size: 0.8rem;
        padding: 8px 5px;
    }
    
    .pagination a {
        padding: 5px 10px;
        margin: 0 2px;
        font-size: 0.9rem;
    }
    
    .widget-title {
        font-size: 1.1rem;
    }
    
    .comment-body {
        padding: 15px;
    }
    
    .comment-author .avatar {
        width: 30px;
        height: 30px;
    }
}