/*
Theme Name: SmartMag Inspired Tech Blog
Theme URI: http://example.com/
Author: Your Name
Author URI: http://example.com/
Description: A custom tech blog theme inspired by SmartMag demo.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: smartmag-inspired
Tags: blog, tech, news, responsive
*/

body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    background: #f8f9fa;
    color: #333;
}

a {
    color: #0073aa;
    text-decoration: none;
}
a:hover {
    color: #005177;
}

.site-header {
    background: #222;
    color: white;
    padding: 10px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-logo {
    font-size: 30px;
    font-weight: 700;
}

nav.primary-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 25px;
}
nav.primary-menu ul li a {
    color: white;
    font-weight: 600;
    font-size: 16px;
}

.featured-slider {
    max-width: 1200px;
    margin: 30px auto;
    position: relative;
    overflow: hidden;
}

.featured-post {
    position: relative;
    overflow: hidden;
}

.featured-post img {
    width: 100%;
    height: 450px;
    object-fit: cover;
    border-radius: 8px;
}

.featured-post .post-title {
    position: absolute;
    bottom: 25px;
    left: 25px;
    color: white;
    background: rgba(0,0,0,0.6);
    padding: 12px 18px;
    font-size: 28px;
    border-radius: 6px;
    max-width: 80%;
}

.container {
    max-width: 1200px;
    margin: 0 auto 60px;
    display: flex;
    gap: 30px;
    padding: 0 20px;
    flex-wrap: wrap;
}

.main-content {
    flex: 3;
    min-width: 0;
}

.sidebar {
    flex: 1;
    background: white;
    padding: 25px 20px;
    box-shadow: 0 0 15px rgb(0 0 0 / 0.1);
    border-radius: 8px;
    min-width: 280px;
}

.post-listing {
    background: white;
    padding: 20px;
    margin-bottom: 30px;
    display: flex;
    gap: 20px;
    border-radius: 6px;
    box-shadow: 0 1px 4px rgb(0 0 0 / 0.1);
    align-items: flex-start;
}

.post-listing img {
    width: 260px;
    height: 140px;
    object-fit: cover;
    border-radius: 6px;
}

.post-details h2 {
    margin: 0 0 12px 0;
    font-size: 22px;
}

.post-details h2 a {
    color: #222;
}

.post-excerpt {
    font-size: 15px;
    color: #555;
}

.widget {
    margin-bottom: 35px;
}

.widget h3 {
    font-size: 20px;
    margin-bottom: 15px;
    border-bottom: 2px solid #0073aa;
    padding-bottom: 6px;
    font-weight: 700;
}

.site-footer {
    background: #222;
    color: white;
    padding: 35px 30px;
    text-align: center;
    font-size: 15px;
    border-top: 4px solid #0073aa;
    margin-top: 40px;
}

@media (max-width: 900px) {
    .container {
        flex-direction: column;
    }
    .sidebar {
        margin-top: 40px;
        min-width: 100%;
    }
    .post-listing {
        flex-direction: column;
    }
    .post-listing img {
        width: 100%;
        height: auto;
    }
}