/* Global Styles */
:root {
    --primary-color: #3498db;
    --secondary-color: #2c3e50;
    --accent-color: #e74c3c;
    --light-color: #ecf0f1;
    --dark-color: #2c3e50;
    --gray-color: #95a5a6;
    --font-main: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --font-heading: 'Georgia', serif;
    --max-width: 1200px;
    --border-radius: 8px;
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    line-height: 1.6;
    color: var(--dark-color);
    background-color: #f9f9f9;
}

.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}

a:hover {
    color: var(--accent-color);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--primary-color);
    color: white;
    border-radius: var(--border-radius);
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: var(--secondary-color);
    color: white;
}

/* Header Styles */
.header {
    background-color: white;
    box-shadow: var(--box-shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo a {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--secondary-color);
    font-family: var(--font-heading);
}

.nav ul {
    display: flex;
    list-style: none;
}

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

.nav ul li a {
    color: var(--dark-color);
    font-weight: 500;
}

.nav ul li a:hover {
    color: var(--primary-color);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--dark-color);
}

/* Featured Post */
.featured-post {
    margin: 40px 0;
}

.post-card.featured {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.post-card.featured .post-image {
    height: 100%;
}

.post-card.featured .post-image img {
    height: 100%;
    object-fit: cover;
}

.post-card.featured .post-content {
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.post-category {
    display: inline-block;
    padding: 5px 10px;
    background-color: var(--primary-color);
    color: white;
    border-radius: var(--border-radius);
    font-size: 0.8rem;
    margin-bottom: 15px;
}

.post-title {
    font-family: var(--font-heading);
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.post-card.featured .post-title {
    font-size: 2rem;
}

.post-excerpt {
    color: var(--gray-color);
    margin-bottom: 20px;
}

.read-more {
    font-weight: bold;
    display: inline-flex;
    align-items: center;
}

.read-more::after {
    content: '→';
    margin-left: 5px;
    transition: var(--transition);
}

.read-more:hover::after {
    margin-left: 10px;
}

/* Recent Posts */
.recent-posts {
    margin: 60px 0;
}

.section-title {
    font-family: var(--font-heading);
    color: var(--secondary-color);
    margin-bottom: 30px;
    font-size: 1.8rem;
    position: relative;
    padding-bottom: 10px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.post-card {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.post-card .post-image {
    height: 200px;
}

.post-card .post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

.post-card .post-title {
    font-size: 1.3rem;
}

/* Author Section */
.author-section {
    margin: 60px 0;
}

.author-card {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 30px;
    background: white;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.author-image {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
}

.author-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-info h3 {
    font-family: var(--font-heading);
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.author-name {
    font-weight: bold;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.author-bio {
    color: var(--gray-color);
    margin-bottom: 15px;
}

.author-social {
    display: flex;
    gap: 15px;
}

.author-social a {
    color: var(--dark-color);
    font-size: 1.2rem;
}

.author-social a:hover {
    color: var(--primary-color);
}

/* Footer */
.footer {
    background-color: var(--secondary-color);
    color: white;
    padding: 60px 0 20px;
}

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

.footer-brand .logo {
    color: white;
    font-size: 1.8rem;
    font-weight: bold;
    font-family: var(--font-heading);
    margin-bottom: 15px;
    display: block;
}

.footer-brand p {
    color: var(--light-color);
    opacity: 0.8;
}

.footer-links h4 {
    font-family: var(--font-heading);
    margin-bottom: 20px;
    color: white;
}

.footer-links ul {
    list-style: none;
}

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

.footer-links ul li a {
    color: var(--light-color);
    opacity: 0.8;
}

.footer-links ul li a:hover {
    opacity: 1;
    color: white;
}

.footer-social h4 {
    font-family: var(--font-heading);
    margin-bottom: 20px;
    color: white;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    color: white;
    font-size: 1.5rem;
    opacity: 0.8;
    transition: var(--transition);
}

.social-links a:hover {
    opacity: 1;
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--light-color);
    opacity: 0.8;
    font-size: 0.9rem;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .post-card.featured {
        grid-template-columns: 1fr;
    }
    
    .post-card.featured .post-image {
        height: 300px;
    }
}

@media (max-width: 768px) {
    .nav ul {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background-color: white;
        flex-direction: column;
        align-items: center;
        padding: 40px 0;
        transition: var(--transition);
    }
    
    .nav ul.active {
        left: 0;
    }
    
    .nav ul li {
        margin: 15px 0;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .author-card {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .author-image {
        margin: 0 auto;
    }
    
    .author-social {
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .header .container {
        padding: 15px;
    }
    
    .logo a {
        font-size: 1.5rem;
    }
    
    .post-card.featured .post-title {
        font-size: 1.5rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
}