/* File: style.css */
:root {
  --primary-color: #4A90E2;
  --dark-blue: #1D2C3E;
  --light-gray: #f4f7f9;
  --text-color: #333;
  --gray-text: #6c757d;
  --white: #ffffff;
  --border-color: #e0e0e0;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--light-gray);
    color: var(--text-color);
    margin: 0;
    line-height: 1.7;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px;
}

.site-header {
    text-align: center;
    padding: 40px 20px;
    background-color: var(--white);
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 40px;
}

.site-header h1 {
    color: var(--dark-blue);
    font-size: 3rem;
    font-weight: 700;
    margin: 0;
}

.site-header h1 span {
    color: var(--primary-color);
}

.site-header p {
    color: var(--gray-text);
    font-size: 1.1rem;
    margin-top: 5px;
}

/* Tampilan daftar artikel */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

.post-card {
    background-color: var(--white);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.07);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
}

.post-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.post-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.post-card-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.post-card-content h2 {
    margin: 0 0 15px 0;
    font-size: 1.4rem;
    font-weight: 600;
}

.post-card-content h2 a {
    text-decoration: none;
    color: var(--dark-blue);
    transition: color 0.2s;
}

.post-card-content h2 a:hover {
    color: var(--primary-color);
}

.post-card-excerpt {
    color: var(--gray-text);
    font-size: 0.95rem;
    flex-grow: 1;
}

.post-card-meta {
    margin-top: 20px;
    font-size: 0.85rem;
    color: #999;
    border-top: 1px solid var(--border-color);
    padding-top: 15px;
}

/* Halaman detail artikel */
.single-post-container {
    max-width: 800px;
    background: var(--white);
    padding: 40px;
    margin: 0 auto 40px auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.07);
}

.single-post-header img {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 30px;
}

.single-post-header h1 {
    font-size: 2.8rem;
    color: var(--dark-blue);
    margin: 0 0 10px 0;
    line-height: 1.3;
}

.post-meta {
    color: var(--gray-text);
    margin-bottom: 30px;
}

.single-post-content {
    font-size: 1.1rem;
}

.single-post-content a {
    color: var(--primary-color);
    font-weight: 600;
}

.back-to-home {
    display: inline-block;
    margin-top: 40px;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.back-to-home:hover {
    text-decoration: underline;
}

.not-found {
    text-align: center;
    padding: 50px;
}

/* ================================== */
/* == STYLING FOOTER                == */
/* ================================== */

.site-footer {
    background-color: var(--dark-blue);
    color: #a9b4c2;
    padding: 60px 0 20px 0;
    margin-top: 60px;
    font-size: 0.95rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-column h4, .footer-column .footer-logo {
    color: var(--white);
    font-weight: 600;
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-logo span {
    color: var(--primary-color);
}

.footer-about p {
    margin-bottom: 20px;
    line-height: 1.8;
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links ul li {
    margin-bottom: 12px;
}

.footer-links ul li a {
    color: #a9b4c2;
    text-decoration: none;
    transition: color 0.3s, padding-left 0.3s;
}

.footer-links ul li a:hover {
    color: var(--white);
    padding-left: 5px;
    text-decoration: none;
}

.social-icons a {
    color: #a9b4c2;
    font-size: 1.3rem;
    margin-right: 18px;
    transition: color 0.3s, transform 0.3s;
    display: inline-block;
}

.social-icons a:hover {
    color: var(--primary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid #293e56; /* Warna batas yang lebih gelap */
    padding-top: 20px;
    color: #888;
    font-size: 0.9rem;
}

/* Responsif untuk footer */
@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-about p {
        text-align: center;
    }

    .social-icons {
        margin-bottom: 30px;
    }
}