/*
 Theme Name: AFT Blog
 Theme URI: https://aftcalculatorr.com/
 Author: Grok
 Author URI: https://x.ai
 Description: A simple WordPress theme based on the AFT Calculator design, featuring a two-column layout for blog posts with a sidebar.
 Version: 1.7
 License: GNU General Public License v2 or later
 License URI: http://www.gnu.org/licenses/gpl-2.0.html
 Text Domain: aft-blog
*/

/* General Styling */
body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    background-color: #f4f7f66d;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin-bottom: 20px;
}

h1, h2, h3, h4 {
    color: #2c3e50;
    margin-top: 0;
}

h1 {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 10px;
}

h2 {
    font-size: 2em;
    margin-bottom: 20px;
}

p {
    margin-bottom: 15px;
}

a {
    color: #007bff;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Navbar */
.navbar {
    background-color: #0f4c75;
    color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar .logo {
    display: flex;
    align-items: center;
}

.navbar .logo span {
    font-size: 1.5em;
    font-weight: bold;
}

.navbar nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

.navbar nav ul li {
    margin-left: 20px;
}

.navbar nav ul li a {
    color: #fff;
    font-weight: 500;
}

.navbar nav ul li a:hover {
    color: #a0dcfc;
    text-decoration: none;
}

/* Hero Section Blog*/
.hero-section-blog {
    width: 100%;
    max-height: 300px;
    text-align: center;
    align-items: center;
	padding-top:20px;
    padding-bottom: 20px;
    background-color: #e0f2f7;
    border-radius: 8px;
    margin-bottom: 30px;
}
.hero-section-blog p {
    font-size: 1.1em;
    max-width: 900px;
    margin: 20px auto;
}

/* Hero Section Posts */
.hero-section {
    width: 100%;
    max-height: 300px;
    text-align: center;
    align-items: center;
	padding-top:20px;
    padding-bottom: 20px;
    background-color: #e0f2f7;
    border-radius: 8px;
    margin-bottom: 30px;
}

.hero-section h1 {
    padding-top: 20px;
	font-size:28px !important;
}

.hero-section p {
    font-size: 1.1em;
    max-width: 900px;
    margin: 20px auto;
}

.ad-banner {
    background-color: #f0f0f0;
    border: 1px solid #ddd;
    padding: 15px;
    margin-left: 110px;
    margin-right: 110px;
    border-radius: 5px;
    text-align: center;
}

.ad-banner p {
    margin-bottom: 10px;
    font-style: italic;
    color: #666;
}

.ad-banner img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
}

/* Two-Column Layout */
.content-area {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.main-content {
	max-width: 780px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    padding: 30px;
}

.sidebar {
    border-radius: 8px;
}

.sidebar h3 {
    font-size: 1.5em;
    color: #2c3e50;
    margin-bottom: 15px;
}

.sidebar ul {
    list-style: none;
    padding: 0;
}

.sidebar ul li {
    margin-bottom: 10px;
}

.sidebar ul li a {
    color: #0F4C76;
    font-weight: 500;
}

.sidebar ul li a:hover {
    color: #0056b3;
    text-decoration: underline;
}

/* Sidebar Widget Styling */
.sidebar .widget {
    margin-bottom: 20px;
}

.sidebar .widget:last-child {
    margin-bottom: 0;
}

.sidebar .widget .search-form {
    position: relative;
    width: 100%;
}

.sidebar .widget .search-form input[type="search"] {
    width: 100%;
    padding: 10px 40px 10px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1em;
    box-sizing: border-box;
    height: 40px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.sidebar .widget .search-form input[type="search"]:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.3);
}

.sidebar .widget .search-form button.search-submit {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    color: #007bff;
    font-size: 1.2em;
    line-height: 1;
    z-index: 1;
}

.sidebar .widget .search-form button.search-submit:hover {
    color: #0056b3;
}

.sidebar .widget .search-form button.search-submit i {
    display: block;
}

/* Post Styling */
.post {
    margin-bottom: 40px;
}

.post h2 {
    font-size: 1.8em;
    margin-bottom: 10px;
}

.post h2 a {
    color: #2c3e50;
}

.post h2 a:hover {
    color: #007bff;
}

.post-meta {
    color: #6c757d;
    font-size: 0.9em;
    margin-bottom: 15px;
}

.post-content {
    line-height: 1.8;
}

.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 15px 0;
}

.read-more {
    display: inline-block;
    margin-top: 10px;
    color: #007bff;
    font-weight: 500;
}

.read-more:hover {
    color: #0056b3;
    text-decoration: underline;
}

/* Featured Image */
.post-thumbnail {
    margin-bottom: 20px;
    max-width: 100%;
    overflow: hidden;
}

.featured-image {
    width: 100%;
    height: auto;
    max-width: 100%;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    display: block;
    object-fit: cover;
}

/* Comments */
.comments-area {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    padding: 30px;
    margin-top: 30px;
}

.comments-title, .comment-reply-title {
    font-size: 1.5em;
    color: #2c3e50;
    margin-bottom: 20px;
}

.comment-list {
    list-style: none;
    padding: 0;
}

.comment {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.comment-meta {
    color: #6c757d;
    font-size: 0.9em;
    margin-bottom: 10px;
}

.comment-content {
    margin-bottom: 10px;
}

.comment-reply-link {
    color: #007bff;
    font-weight: 500;
}

.comment-reply-link:hover {
    color: #0056b3;
}

/* Footer */
.footer {
    background-color: #2c3e50;
    color: #fff;
    padding: 40px 0;
    margin-top: 50px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.footer-section h4 {
    color: #fff;
    margin-bottom: 15px;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 8px;
}

.footer-section ul li a {
    color: #bdc3c7;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #fff;
}

.footer-bottom {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #34495e;
    color: #bdc3c7;
}

/* Responsive Design */
@media (max-width: 768px) {
    .content-area {
        grid-template-columns: 1fr;
    }
    
    .container {
        padding: 15px;
    }
    
    h1 {
        font-size: 2em;
    }
    
    .ad-banner {
        margin-left: 15px;
        margin-right: 15px;
    }

    .post-thumbnail,
    .featured-image {
        max-width: 100%;
        width: 100%;
    }
}