/* General Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: #f2f2f2;
    color: #333;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Header */
header {
    background: linear-gradient(45deg, #ff8008, #ffc837);
    color: white;
    padding: 60px 0;
    text-align: center;
}

header h1 {
    font-size: 48px;
    margin-bottom: 10px;
    font-weight: 700;
    text-transform: uppercase;
}

header p {
    font-size: 20px;
    margin-bottom: 30px;
}

header .btn-primary {
    background-color: #ff6f61;
    color: white;
    padding: 15px 30px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: bold;
    text-transform: uppercase;
    transition: background 0.3s;
}

header .btn-primary:hover {
    background-color: #e55a4f;
}

/* Main Section */
main {
    padding: 50px 0;
    background-color: #ffffff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    border-radius: 12px;
}

.featured-article {
    text-align: center;
    margin-bottom: 50px;
}

.featured-article h2 {
    font-size: 36px;
    color: #ff6f61;
    margin-bottom: 20px;
}

.featured-article p {
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 30px;
    color: #555;
}

.featured-article a.read-more {
    background: #ff6f61;
    color: white;
    padding: 10px 20px;
    font-size: 16px;
    border-radius: 25px;
    transition: background 0.3s;
}

.featured-article a.read-more:hover {
    background: #e55a4f;
}

/* Latest Articles */
.latest-articles {
    padding: 20px;
}

.latest-articles h2 {
    font-size: 28px;
    margin-bottom: 40px;
    text-align: center;
    color: #333;
}

.articles {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: space-around;
}

article {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    width: 100%;
    max-width: 30%;
    transition: transform 0.3s, box-shadow 0.3s;
}

article img {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 15px;
}

article h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #ff6f61;
}

article p {
    font-size: 16px;
    color: #555;
    margin-bottom: 15px;
}

article a {
    color: #ff6f61;
    font-weight: bold;
    transition: color 0.3s;
}

article a:hover {
    color: #e55a4f;
}

article:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* Footer */
footer {
    background-color: #333;
    color: white;
    padding: 20px 0;
    text-align: center;
}

footer p {
    margin: 10px 0;
}

footer a {
    color: #ff6f61;
    transition: color 0.3s;
}

footer a:hover {
    color: #ffc837;
}

/* Responsive Design */
@media (max-width: 992px) {
    .articles {
        flex-direction: column;
        align-items: center;
    }
    
    article {
        max-width: 90%;
    }
}

@media (max-width: 768px) {
    header h1 {
        font-size: 36px;
    }
    
    header p {
        font-size: 18px;
    }

    .featured-article h2 {
        font-size: 28px;
    }

    .latest-articles h2 {
        font-size: 24px;
    }
}

/* Meletakkan logo di pojok kiri atas */
.logo-container {
    position: absolute;
    top: 20px; /* Atur jarak dari atas */
    left: 20px; /* Atur jarak dari kiri */
}

.logo-container a {
    display: inline-block;
}

.logo {
    width: 120px; /* Ubah sesuai ukuran logo */
    height: auto;
}

@media (max-width: 768px) {
    .logo {
        width: 90px; /* Logo lebih kecil di layar kecil */
    }
}

/* Style untuk tombol Login dan Daftar di sudut kanan atas */
.auth-buttons {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    gap: 15px; /* Jarak antar tombol */
}

.auth-buttons a {
    padding: 10px 20px;
    font-size: 16px;
    text-transform: uppercase;
    font-weight: bold;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Tombol Login */
.btn-login {
    background-color: #ffffff; /* Warna dasar putih */
    color: #ff6f61;            /* Warna teks merah */
    border: 2px solid #ff6f61; /* Batas tombol */
}

.btn-login:hover {
    background-color: #ff6f61; /* Warna latar berubah saat hover */
    color: #ffffff;            /* Teks menjadi putih */
}

/* Tombol Daftar */
.btn-register {
    background-color: #ff6f61; /* Warna dasar merah */
    color: white;
    border: 2px solid #ff6f61;
}

.btn-register:hover {
    background-color: #e55a4f; /* Warna latar berubah saat hover */
    color: white;
}

/* Responsif untuk layar kecil */
@media (max-width: 768px) {
    .auth-buttons {
        top: 10px;
        right: 10px;
    }

    .auth-buttons a {
        padding: 8px 15px;
        font-size: 14px;
    }
}

/* Tombol Kembali ke Halaman Utama */
.back-home {
    text-align: center;
    margin: 40px 0; /* Jarak atas dan bawah untuk membuat ruang */
}

.btn-back-home {
    background-color: #ff6f61; /* Warna latar tombol */
    color: #fff;               /* Warna teks putih */
    padding: 10px 20px;        /* Padding dalam tombol */
    font-size: 16px;           /* Ukuran teks */
    text-transform: uppercase; /* Huruf kapital */
    text-decoration: none;     /* Menghilangkan garis bawah */
    border-radius: 5px;        /* Membuat sudut membulat */
    transition: background-color 0.3s ease, color 0.3s ease; /* Animasi saat hover */
}

.btn-back-home:hover {
    background-color: #e55a4f; /* Warna latar saat di-hover */
    color: #fff;               /* Warna teks tetap putih */
}

/* Style untuk gambar artikel */
.image-container {
    text-align: center;
    margin-bottom: 20px;
}

.strategy-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

/* Default Styling for Desktop */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
}

.container {
    width: 80%;
    margin: 0 auto;
}

header {
    text-align: center;
    padding: 20px 0;
    background-color: #f4f4f4;
}

.logo-container {
    text-align: center;
}

.logo {
    max-width: 200px;
    height: auto;
}

.auth-buttons {
    margin-top: 10px;
}

.auth-buttons a {
    text-decoration: none;
    padding: 10px 20px;
    background-color: #ff6f61;
    color: white;
    border-radius: 5px;
    margin: 0 5px;
}

.auth-buttons a:hover {
    background-color: #e55a4f;
}

.header-content h1 {
    font-size: 32px;
}

.header-content p {
    font-size: 18px;
}

.strategy-image {
    max-width: 100%;
    height: auto;
    margin: 20px 0;
}

.back-home {
    text-align: center;
    margin-top: 30px;
}

.btn-back-home {
    text-decoration: none;
    padding: 10px 20px;
    background-color: #007BFF;
    color: white;
    border-radius: 5px;
}

.btn-back-home:hover {
    background-color: #0056b3;
}

/* Styling for Mobile (Devices with max-width: 768px) */
@media screen and (max-width: 768px) {
    .container {
        width: 95%;
        margin: 0 auto;
    }

    header {
        padding: 15px 0;
    }

    .logo {
        max-width: 150px;
    }

    .auth-buttons a {
        padding: 8px 15px;
        font-size: 14px;
    }

    .header-content h1 {
        font-size: 24px;
    }

    .header-content p {
        font-size: 16px;
    }

    .strategy-image {
        margin: 15px 0;
    }

    .btn-back-home {
        padding: 8px 15px;
    }
}

/* Styling for smaller screens (Devices with max-width: 480px) */
@media screen and (max-width: 480px) {
    .header-content h1 {
        font-size: 20px;
    }

    .header-content p {
        font-size: 14px;
    }

    .auth-buttons a {
        padding: 6px 12px;
        font-size: 12px;
    }

    .strategy-image {
        margin: 10px 0;
    }

    .btn-back-home {
        padding: 6px 12px;
        font-size: 12px;
    }
}
