/* JIPSE Journal Style Sheet Implementation */

:root {
    --primary-font: 'Times New Roman', Times, serif;
    --font-size-base: 12pt;
    --font-size-title: 14pt;
}

body {
    font-family: var(--primary-font);
    line-height: 1.5;
    color: #333;
    max-width: 800px; /* Sesuai standar pembacaan artikel */
    margin: 0 auto;
    padding: 20px;
}

/* --- TITLE PAGE --- */
/* [cite: 17, 18] Title: Bold, 14pt, centered */
.manuscript-title {
    font-size: var(--font-size-title);
    font-weight: bold;
    text-align: center;
    margin-bottom: 20px;
    text-transform: capitalize;
}

/* [cite: 19, 21] Authors section */
.authors {
    text-align: center;
    margin-bottom: 10px;
    font-weight: normal;
}

/* [cite: 19, 22, 23] Affiliations and ORCID */
.affiliations {
    text-align: center;
    font-size: 11pt;
    margin-bottom: 15px;
}

/* [cite: 24] Corresponding author (italicized) */
.corresponding-author {
    text-align: center;
    font-style: italic;
    font-size: 10pt;
    margin-bottom: 30px;
}

/* --- ABSTRACT & KEYWORDS --- */
/* [cite: 25, 26] Abstract structure */
.abstract {
    border: 1px solid #ddd;
    padding: 15px;
    margin-bottom: 20px;
    text-align: justify;
}

.abstract-title {
    font-weight: bold;
    display: block;
    margin-bottom: 5px;
}

/* [cite: 27] Keywords separated by semicolons */
.keywords {
    font-style: italic;
    margin-top: 10px;
}

/* --- HEADINGS --- */
/*  Level 1 (H1): 12pt, Bold, Left-Aligned */
h1.section-title {
    font-size: var(--font-size-base);
    font-weight: bold;
    text-align: left;
    margin-top: 25px;
    counter-increment: h1-counter;
}

h1.section-title::before {
    content: counter(h1-counter) ". ";
}

/*  Level 2 (H2): 12pt, Bold, Left-Aligned */
h2.subsection-title {
    font-size: var(--font-size-base);
    font-weight: bold;
    text-align: left;
    margin-left: 0;
}

/*  Level 3 (H3): 12pt, Italic, Left-Aligned */
h3.subsubsection-title {
    font-size: var(--font-size-base);
    font-style: italic;
    font-weight: normal;
    text-align: left;
}

/* --- FIGURES, TABLES, & EQUATIONS --- */
/* [cite: 55, 56] Figures: Caption below */
.figure-container {
    text-align: center;
    margin: 20px 0;
}

.figure-caption {
    margin-top: 10px;
    font-size: 11pt;
}

/* [cite: 59, 60] Tables: Caption above */
.table-container {
    margin: 20px 0;
}

.table-caption {
    margin-bottom: 10px;
    font-weight: normal;
    text-align: left;
    font-size: 11pt;
}

table {
    width: 100%;
    border-collapse: collapse;
}

/* [cite: 62, 63] Equations numbered in parentheses */
.equation {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 15px 0;
}

.equation::after {
    content: "(" attr(data-number) ")";
    float: right;
    margin-left: auto;
}

/* --- REFERENCES --- */
/*  APA 7th Edition style */
.references {
    font-size: 11pt;
    line-height: 1.4;
}

.reference-item {
    padding-left: 36px;
    text-indent: -36px; /* Hanging indent for APA */
    margin-bottom: 10px;
}

.reference-item i {
    font-style: italic; /* For Journal/Book titles */
}