/* General reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f7f7f7;
    color: #333;
}

/* Header Section */
header {
    background-color: #3498db;
    color: white;
    text-align: center;
    padding: 60px 20px;
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

header p {
    font-size: 1.2rem;
}


/* Articles Section */
#articles {
    background-color: #fff;
    padding: 40px 20px;
    text-align: center;
	.article-image img {
    width: 100%;  /* Gambar akan mengisi lebar kontainer */
    height: auto; /* Tinggi akan disesuaikan dengan lebar untuk mempertahankan rasio aspek */
    max-width: 600px;  /* Batasi lebar gambar maksimal 600px */
    object-fit: cover; /* Gambar akan menutupi kontainer dan dipotong jika perlu */
}

}

#articles h2 {
    font-size: 2rem;
    margin-bottom: 30px;
}

/* Article Block */
.article {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin: 20px auto;
    padding: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    max-width: 800px;
    cursor: pointer;
    transition: transform 0.3s ease-in-out;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 300px; /* Ensuring consistent size */
}

.article:hover {
    transform: translateY(-5px); /* Slight lift effect on hover */
}

.article-header h3 {
    font-size: 1.6rem;
    color: #3498db;
    margin-bottom: 10px;
}

.article-body p {
    font-size: 1rem;
    color: #555;
    flex-grow: 1; /* Allows content to stretch and use available space */
}

/* New Section with Image and Content */
.container-with-image {
    display: flex;
    flex-direction: column;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin: 20px auto;
    padding: 20px;
    max-width: 900px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.image-container {
    width: 100%;
    height: 250px;
}

.image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.content-container {
    padding: 15px;
}

.content-container h3 {
    font-size: 1.6rem;
    color: #3498db;
    margin-bottom: 10px;
}

.content-container p {
    font-size: 1rem;
    color: #555;
}
/* Sidebar Left */
.sidebar-left {
    flex: 1;
    background-color: #f7f7f7;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.sidebar-left h3 {
    font-size: 1.4rem;
    color: #3498db;
    margin-bottom: 20px;
}

.sidebar-left ul {
    list-style-type: none;
}

.sidebar-left ul li {
    margin-bottom: 10px;
}

.sidebar-left ul li a {
    color: #3498db;
    text-decoration: none;
}

.sidebar-left ul li a:hover {
    text-decoration: underline;
}

/* Sidebar Right */
.sidebar-right {
    flex: 1;
    background-color: #f7f7f7;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.sidebar-right h3 {
    font-size: 1.4rem;
    color: #3498db;
    margin-bottom: 20px;
}

.sidebar-right ul {
    list-style-type: none;
}

.sidebar-right ul li {
    margin-bottom: 10px;
}

.sidebar-right ul li a {
    color: #3498db;
    text-decoration: none;
}

.sidebar-right ul li a:hover {
    text-decoration: underline;
}

/* Footer Section */
footer {
    background-color: #333;
    color: white;
    padding: 30px 20px;
    text-align: center;
}

footer .footer-links a {
    color: #3498db;
    text-decoration: none;
    margin: 0 10px;
    font-size: 1rem;
}

footer .footer-links a:hover {
    text-decoration: underline;
}

footer p {
    margin-top: 20px;
    font-size: 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    header h1 {
        font-size: 1.8rem;
    }

    header p {
        font-size: 1rem;
    }

    #articles h2 {
        font-size: 1.5rem;
    }

    .article-header h3 {
        font-size: 1.3rem;
    }

    .article-body p {
        font-size: 0.9rem;
    }

    .content-container h3 {
        font-size: 1.4rem;
    }

    footer .footer-links a {
        font-size: 0.9rem;
    }
}
