/* =================================================================== */
/* ==   STYLESHEET UNTUK JURNAL RENEWABLE TADULAKO (styles.css)   == */
/* =================================================================== */

/* 1. Impor Font dari Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Lato:wght@400;700&family=Merriweather:ital,wght@0,400;0,700;1,400&family=Montserrat:wght@700;800&display=swap');

/* 2. CSS Variables (Variabel Global untuk Tema) */
/* Ubah nilai di sini untuk mengubah tema seluruh website dengan mudah! */
:root {
    --primary-color: #0A2F5B;   /* Biru Tua (Untuk Judul, Header, Footer) */
    --secondary-color: #008080; /* Teal (Untuk Link dan Aksen) */
    --dark-text: #333333;       /* Warna Teks Utama */
    --light-gray: #757575;      /* Warna Teks Sekunder (Afiliasi, caption) */
    --background-color: #FFFFFF; /* Latar Belakang Konten */
    --body-bg: #F8F9FA;         /* Latar Belakang Halaman (Sangat Abu-abu Muda) */

    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Merriweather', serif;
    --font-ui: 'Lato', sans-serif; /* Untuk Tombol, Navigasi, dll. */

    --container-width: 960px;
    --border-radius: 5px;
}

/* 3. Reset dan Gaya Dasar (Global Styles) */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    color: var(--dark-text);
    background-color: var(--body-bg);
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

/* 4. Tipografi */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    line-height: 1.3;
    margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; } /* Judul Artikel */
h2 { font-size: 1.75rem; } /* Judul Bab (INTRODUCTION, etc.) */
h3 { font-size: 1.25rem; } /* Sub-judul */

p {
    margin-bottom: 1.5rem;
}

a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

/* 5. Struktur Halaman (Header, Main, Footer) */
.site-header {
    background-color: var(--primary-color);
    color: #FFFFFF;
    padding: 1rem 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.site-header .logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
}

.site-header .main-nav ul {
    list-style-type: none;
    display: flex;
    gap: 1.5rem;
}

.site-header .main-nav a {
    color: #FFFFFF;
    font-family: var(--font-ui);
    font-weight: 700;
    text-decoration: none;
}

.site-footer {
    background-color: var(--primary-color);
    color: #FFFFFF;
    text-align: center;
    padding: 2rem 1rem;
    margin-top: 2rem;
}

main {
    background-color: var(--background-color);
    box-shadow: 0 0 15px rgba(0,0,0,0.05);
}

/* 6. Komponen Spesifik Jurnal */
.article-header {
    text-align: center;
    border-bottom: 2px solid #EEE;
    padding-bottom: 2rem;
    margin-bottom: 2rem;
}

.article-title {
    font-size: 2.8rem; /* Lebih besar dari H1 biasa */
}

.article-authors {
    font-family: var(--font-ui);
    font-size: 1.1rem;
    font-weight: 700;
    margin-top: 1.5rem;
}

.article-affiliation {
    font-family: var(--font-ui);
    font-size: 0.9rem;
    font-style: italic;
    color: var(--light-gray);
}

.article-abstract {
    background-color: #F8F9FA;
    border-left: 5px solid var(--secondary-color);
    padding: 1.5rem;
    margin-bottom: 2rem;
    font-style: italic;
}

/* 7. Tabel dan Gambar */
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.5rem;
}

table th, table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid #E0E0E0;
}

table th {
    font-family: var(--font-ui);
    font-weight: 700;
    background-color: #F8F9FA;
}

figure {
    margin: 2rem 0;
    text-align: center;
}

figure img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

figcaption {
    font-family: var(--font-ui);
    font-size: 0.9rem;
    color: var(--light-gray);
    margin-top: 0.5rem;
    font-style: italic;
}

/* 8. Desain Responsif (Untuk Tablet dan Mobile) */
@media (max-width: 768px) {
    .site-header .container {
        flex-direction: column;
        gap: 1rem;
    }

    h1, .article-title { font-size: 2rem; }
    h2 { font-size: 1.5rem; }

    .container {
        padding: 1.5rem 1rem;
    }
}

/* =================================================================== */
/* ==                     9. GAYA FOOTER MODERN                     == */
/* =================================================================== */

.site-footer {
    background-color: var(--primary-color);
    color: rgba(255, 255, 255, 0.8);
    font-family: var(--font-ui);
    padding: 3rem 0 0 0; /* Padding atas lebih besar */
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    padding-bottom: 2rem;
}

.footer-column {
    padding: 0 1rem;
}

.footer-heading {
    font-family: var(--font-heading);
    color: #FFFFFF;
    font-size: 1.1rem;
    margin-bottom: 1.2rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--secondary-color);
    display: inline-block; /* Agar border hanya selebar teks */
}

.footer-column p {
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.footer-links {
    list-style-type: none;
}

.footer-links li {
    margin-bottom: 0.7rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: #FFFFFF;
    text-decoration: none;
    padding-left: 5px; /* Efek hover modern */
}

.contact-info p {
    display: flex;
    align-items: center;
    gap: 10px; /* Jarak antara ikon dan teks */
}

.contact-info a {
    color: rgba(255, 255, 255, 0.8);
}

.contact-info a:hover {
    color: #FFFFFF;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
    padding: 1.5rem 0;
    margin-top: 2rem;
}

.footer-bottom p {
    margin: 0;
    font-size: 0.85rem;
}