/* Reset dan Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

a {
    text-decoration: none;
    color: #2c3e50;
    transition: color 0.3s ease;
}

a:hover {
    color: #3498db;
}

ul {
    list-style: none;
}

/* Header Styles */
header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.logo h1 {
    font-size: 1.8rem;
    color: #3498db;
    font-weight: 700;
}

nav ul {
    display: flex;
}

nav ul li {
    margin-left: 25px;
}

nav ul li a {
    font-weight: 500;
    padding: 5px 0;
    position: relative;
}

nav ul li a:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: #3498db;
    bottom: 0;
    left: 0;
    transition: width 0.3s ease;
}

nav ul li a:hover:after, nav ul li a.active:after {
    width: 100%;
}

nav ul li a.active {
    color: #3498db;
}

/* Blog Hero Section */
.blog-hero {
    background: linear-gradient(135deg, #3498db, #2c3e50);
    color: white;
    padding: 80px 0;
    text-align: center;
}

.blog-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.blog-hero p {
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto 30px;
}

.search-container {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
}

.search-container input {
    flex: 1;
    padding: 12px 15px;
    border: none;
    border-radius: 5px 0 0 5px;
    font-size: 1rem;
}

.search-container button {
    background-color: #e74c3c;
    color: white;
    border: none;
    padding: 0 20px;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.search-container button:hover {
    background-color: #c0392b;
}

/* Blog Categories */
.blog-categories {
    padding: 30px 0;
    background-color: #fff;
    border-bottom: 1px solid #ecf0f1;
}

.category-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.category-tab {
    background: none;
    border: none;
    padding: 10px 20px;
    margin: 0 5px 10px;
    font-size: 1rem;
    font-weight: 500;
    color: #7f8c8d;
    cursor: pointer;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.category-tab:hover {
    color: #3498db;
    background-color: #f5f7fa;
}

.category-tab.active {
    color: white;
    background-color: #3498db;
}

/* Featured Post */
.featured-post {
    padding: 50px 0;
    background-color: #f5f7fa;
}

.featured-post-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

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

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

.featured-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background-color: #e74c3c;
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

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

.post-meta {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.post-category {
    background-color: #3498db;
    color: white;
    padding: 3px 10px;
    border-radius: 3px;
    font-size: 0.8rem;
    margin-right: 15px;
}

.post-date {
    color: #7f8c8d;
    font-size: 0.9rem;
}

.featured-post-content h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    line-height: 1.3;
    color: #2c3e50;
}

.featured-post-content p {
    color: #7f8c8d;
    margin-bottom: 25px;
}

.read-more {
    display: inline-flex;
    align-items: center;
    color: #3498db;
    font-weight: 600;
}

.read-more i {
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.read-more:hover i {
    transform: translateX(5px);
}

/* Blog Posts Grid */
.blog-posts {
    padding: 60px 0;
}

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

.post-card {
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.post-image {
    position: relative;
    height: 200px;
}

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

.post-category-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: #3498db;
    color: white;
    padding: 3px 10px;
    border-radius: 3px;
    font-size: 0.8rem;
}

.post-content {
    padding: 25px;
}

.post-content .post-meta {
    justify-content: space-between;
}

.post-read-time {
    color: #7f8c8d;
    font-size: 0.9rem;
}

.post-content h3 {
    font-size: 1.3rem;
    margin: 15px 0;
    line-height: 1.4;
    color: #2c3e50;
}

.post-content p {
    color: #7f8c8d;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

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

.pagination a {
    display: inline-block;
    padding: 8px 16px;
    margin: 0 5px;
    border-radius: 5px;
    background-color: white;
    color: #2c3e50;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.pagination a.active {
    background-color: #3498db;
    color: white;
}

.pagination a:hover:not(.active) {
    background-color: #ecf0f1;
}

.pagination a.next {
    margin-left: 15px;
}

/* Newsletter Section */
.newsletter {
    background-color: #2c3e50;
    color: white;
    padding: 60px 0;
}

.newsletter-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.newsletter-content h2 {
    font-size: 2rem;
    margin-bottom: 15px;
}

.newsletter-content p {
    margin-bottom: 30px;
    color: #bdc3c7;
}

.newsletter-form {
    display: flex;
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-form input {
    flex: 1;
    padding: 12px 15px;
    border: none;
    border-radius: 5px 0 0 5px;
    font-size: 1rem;
}

.newsletter-form button {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 0 25px;
    border-radius: 0 5px 5px 0;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.newsletter-form button:hover {
    background-color: #2980b9;
}

/* Footer */
footer {
    background-color: #2c3e50;
    color: #ecf0f1;
    padding: 60px 0 20px;
}

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

.footer-col h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: #3498db;
}

.footer-col p {
    margin-bottom: 15px;
    color: #bdc3c7;
}

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

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

.footer-col ul li a:hover {
    color: #3498db;
}

.social-icons {
    display: flex;
    margin-top: 20px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    margin-right: 10px;
    color: white;
    transition: background-color 0.3s ease;
}

.social-icons a:hover {
    background-color: #3498db;
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(189, 195, 199, 0.2);
    color: #bdc3c7;
}

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

@media (max-width: 768px) {
    header .container {
        flex-direction: column;
    }
    
    nav ul {
        margin-top: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    nav ul li {
        margin: 5px 10px;
    }
    
    .blog-hero h1 {
        font-size: 2rem;
    }
    
    .posts-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .newsletter-form input {
        border-radius: 5px;
        margin-bottom: 10px;
    }
    
    .newsletter-form button {
        border-radius: 5px;
        padding: 12px;
    }
}

@media (max-width: 480px) {
    .category-tab {
        padding: 8px 15px;
        font-size: 0.9rem;
    }
    
    .featured-post-content {
        padding: 25px;
    }
    
    .featured-post-content h2 {
        font-size: 1.5rem;
    }
    
    .post-content h3 {
        font-size: 1.2rem;
    }
}
