/*
    OJS Two-Column Theme — Redesign
    Tema dominan biru, modern & profesional
    Edit theme ojs jurnal pknstan
*/

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=Source+Sans+3:wght@300;400;600;700&family=DM+Mono:wght@400;500&display=swap');

/* ============================================================
   CSS VARIABLES — Palet Biru
   ============================================================ */
:root {
    --blue-950:  #010e2a;
    --blue-900:  #031535;
    --blue-800:  #052057;
    --blue-700:  #0a2d7a;
    --blue-600:  #1040a0;
    --blue-500:  #1a56cc;
    --blue-400:  #3b78e8;
    --blue-300:  #6fa3f0;
    --blue-200:  #a8c8f8;
    --blue-100:  #d6e8fd;
    --blue-50:   #edf4ff;

    --accent-gold:    #e8a020;
    --accent-gold-lt: #fdf0d8;
    --accent-teal:    #0f8c7a;
    --accent-teal-lt: #e0f7f4;

    --grey-900: #111827;
    --grey-700: #374151;
    --grey-500: #6b7280;
    --grey-300: #d1d5db;
    --grey-100: #f3f4f6;
    --grey-50:  #f9fafb;

    --white: #ffffff;

    --font-display: 'Playfair Display', 'Georgia', serif;
    --font-body:    'Source Sans 3', 'Tahoma', 'Verdana', sans-serif;
    --font-mono:    'DM Mono', 'Courier New', monospace;

    --shadow-sm:  0 1px 4px rgba(1,14,42,0.10);
    --shadow-md:  0 4px 16px rgba(1,14,42,0.14);
    --shadow-lg:  0 8px 32px rgba(1,14,42,0.18);
    --shadow-top: 0 -2px 10px rgba(1,14,42,0.10);

    --radius-sm:  4px;
    --radius-md:  8px;
    --radius-lg:  12px;
    --radius-xl:  16px;

    --transition: 0.2s ease;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    background-color: var(--blue-50);
    background-image:
        radial-gradient(ellipse 80% 50% at 50% -10%, rgba(10,45,122,0.12) 0%, transparent 70%);
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 14px;
    color: var(--grey-900);
    line-height: 1.65;
}

a:link, a:visited, a:active {
    color: var(--blue-600);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--blue-400);
    text-decoration: underline;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    color: var(--blue-900);
    font-weight: 600;
    text-align: left;
    line-height: 1.25;
    margin-top: 0;
}

h1 { font-size: 2.6em;  font-weight: 700; }
h2 { font-size: 1.9em; }
h3 { font-size: 1.5em; }
h4 { font-size: 1.25em; }
h5 { font-size: 1.05em; }
h6 { font-size: 0.9em; }

p {
    font-size: 14px;
    line-height: 1.7;
    text-align: justify;
    margin: 0 0 0.9em;
}

/* ============================================================
   UTILITY
   ============================================================ */
.pull-right { float: right !important; }
.pull-left  { float: left !important; }
.clear      { clear: both; }

.color1, .color1-light, .color2, .color2-light {
    background-color: var(--white);
}

.color-grey-light { background-color: var(--grey-100); }

.color-box {
    display: block;
    width: 60px;
    height: 40px;
    float: left;
    margin-right: 5px;
    border-radius: var(--radius-sm);
}

/* ============================================================
   #CONTAINER
   ============================================================ */
#container {
    margin: 0 auto;
    padding: 0;
    background-color: var(--blue-50);
    width: auto;
    min-width: 730px !important;
    text-align: center;
    display: inline-block;
}

/* ============================================================
   #HEADER
   ============================================================ */
#header {
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, var(--blue-950) 0%, var(--blue-800) 55%, var(--blue-600) 100%);
    min-height: 150px;
    position: relative;
    overflow: hidden;
}

/* subtle geometric texture */
#header::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        repeating-linear-gradient(
            -55deg,
            transparent,
            transparent 40px,
            rgba(255,255,255,0.03) 40px,
            rgba(255,255,255,0.03) 41px
        );
    pointer-events: none;
}

/* gold accent line bottom */
#header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-gold), var(--blue-300), var(--accent-gold));
}

#headerTitle {
    width: 1160px;
    margin: 0 auto;
    display: inline-block;
    position: relative;
}

#header h1 {
    font-family: var(--font-display);
    font-weight: 700;
    text-transform: none;
    font-size: 2.8em;
    letter-spacing: 0.01em;
    color: var(--white);
    text-shadow: 0 2px 12px rgba(0,0,0,0.4);
    padding: 0 !important;
    line-height: 150px;
    margin-top: -13.333px;
}

#headerTitle img {
    float: left;
    display: inline-block;
    margin-top: 13.333px;
    margin-bottom: 0;
    max-width: 1160px;
    height: auto;
}

/* ============================================================
   #BODY
   ============================================================ */
#body {
    margin: 0 auto 16px auto;
    padding: 0 0 28px 0;
    background-color: var(--white);
    width: 1160px !important;
    display: inline-block;
    height: auto;
    box-shadow: var(--shadow-lg);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

/* ============================================================
   #NAVBAR
   ============================================================ */
#navbar {
    margin: 0 0 12px 0;
    padding: 0;
    background: linear-gradient(180deg, var(--blue-700) 0%, var(--blue-800) 100%);
    clear: both;
    text-align: center;
    height: 44px;
    width: 1160px;
    position: relative;
}

#navbar::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--accent-gold);
    opacity: 0.7;
}

#navbar ul {
    margin: 0;
    padding: 0;
    display: inline-block;
}

#navbar ul li {
    margin: 0;
    padding: 0;
    float: left;
}

#navbar a,
#navbar a:link,
#navbar a:visited {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 13px !important;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--blue-100);
    line-height: 44px;
    display: inline-block;
    margin: 0;
    padding-left: 18px;
    padding-right: 18px;
    position: relative;
    transition: background var(--transition), color var(--transition);
}

#navbar a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 18px;
    right: 18px;
    height: 2px;
    background: var(--accent-gold);
    transform: scaleX(0);
    transition: transform var(--transition);
}

#navbar a:hover {
    background-color: rgba(255,255,255,0.10);
    color: var(--white);
    text-shadow: 0 0 12px rgba(255,255,255,0.4);
    text-decoration: none;
}

#navbar a:hover::after {
    transform: scaleX(1);
}

#navbar a:active {
    background: rgba(255,255,255,0.15);
    text-decoration: none;
}

/* separator lines between items */
#navbar a:before {
    content: '';
    position: absolute;
    top: 10px;
    left: 0;
    display: block;
    height: 24px;
    width: 1px;
    background: rgba(255,255,255,0.18);
}

#navbar li:first-child a:before { display: none; }

/* ============================================================
   #MAIN & #CONTENT
   ============================================================ */
#main {
    margin: 0;
    padding: 0;
    background-color: transparent;
    display: inline;
    float: left;
    position: relative;
    width: 874px;
    overflow: visible !important;
}

#content {
    border-top: 0;
    font-size: 1em;
}

#main > h2,
#content {
    padding-left: 40px;
    padding-right: 24px;
}

/* ============================================================
   #BREADCRUMB
   ============================================================ */
#breadcrumb {
    margin: 16px 24px 16px 40px;
    padding: 0.55em 1em;
    overflow: hidden;
    border-radius: var(--radius-md);
    background-color: var(--blue-50);
    border: 1px solid var(--blue-200);
    font-size: 13px;
    color: var(--grey-500);
    font-family: var(--font-body);
    box-shadow: var(--shadow-sm);
    position: relative;
    z-index: 10;
}

#breadcrumb a {
    color: var(--blue-600);
    font-weight: 600;
}

#breadcrumb a:hover { color: var(--blue-400); }

/* ============================================================
   SIDEBARS
   ============================================================ */
#leftSidebar,
#rightSidebar {
    margin: 0;
    padding: 12px;
    padding-top: 16px;
    background-color: transparent;
    font-size: 1em;
    height: auto;
    overflow: visible;
}

#leftSidebar {
    width: 0;
    display: none;
    float: left;
    border-right: 1px solid var(--blue-100);
}

#rightSidebar {
    width: 235px;
    float: right;
    border-left: 1px solid var(--blue-100);
}

/* sidebar blocks */
#rightSidebar div.block,
#leftSidebar div.block {
    overflow: hidden;
    border-radius: var(--radius-lg);
    border: 1px solid var(--blue-200);
    background: var(--white);
    padding: 0 0 12px 0;
    margin-bottom: 14px;
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--transition);
}

#rightSidebar div.block:hover,
#leftSidebar div.block:hover {
    box-shadow: var(--shadow-md);
}

/* block titles */
#leftSidebar div.block span.blockTitle,
#rightSidebar div.block span.blockTitle {
    padding: 0.65em 1em;
    margin-bottom: 10px;
    background: linear-gradient(135deg, var(--blue-800) 0%, var(--blue-600) 100%);
    display: block;
    color: var(--white);
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    text-align: center;
    border-radius: 0;
}

/* block content padding */
#rightSidebar div.block > *:not(span.blockTitle),
#leftSidebar div.block > *:not(span.blockTitle) {
    padding: 0 10px;
}

/* ── USER block — "You are logged in as" ── */
#sidebarUser.block {
    border: 1px solid var(--blue-200) !important;
    text-align: center !important;
}

/* Semua teks di dalam user block */
#sidebarUser p,
#sidebarUser div,
#sidebarUser span {
    text-align: center !important;
}

/* Pesan "You are logged in as..." */
#sidebarUser p {
    font-size: 11.5px !important;
    color: var(--grey-500) !important;
    margin: 10px 12px 2px 12px !important;
    padding: 0 !important;
    letter-spacing: 0.01em;
}

/* Nama username */
#sidebarUser p strong,
#sidebarUser strong {
    display: block;
    font-size: 13.5px !important;
    font-weight: 700 !important;
    color: var(--blue-900) !important;
    margin: 4px 12px 8px 12px !important;
    padding: 6px 10px !important;
    background: var(--blue-50);
    border-left: 3px solid var(--blue-500);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    word-break: break-all;
    text-align: center !important;
}

/* Divider tipis antara username dan link */
#sidebarUser ul.sidemenu {
    margin-top: 4px !important;
    border-top: 1px solid var(--blue-100);
}

/* sidebar nav list */
ul.sidemenu {
    margin-top: -1px;
    padding-left: 0 !important;
    list-style: none;
}

ul.sidemenu.full { margin: 0; }

ul.sidemenu li:before { display: none; }

ul.sidemenu li { padding: 0; }

ul.sidemenu li a {
    display: block;
    padding: 0.6em 12px;
    border-bottom: 1px solid var(--blue-100);
    background-color: transparent;
    text-decoration: none;
    color: var(--blue-700);
    font-size: 13px;
    text-align: center;
    transition: background var(--transition), color var(--transition);
}

ul.sidemenu li a:hover {
    background-color: var(--blue-50);
    color: var(--blue-500);
    text-decoration: none;
}

ul.sidemenu li:last-child a { border-bottom: none; }

/* ============================================================
   TABLE OF CONTENTS (TOC)
   ============================================================ */
table.tocArticle {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 6px;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

table.tocArticle:nth-child(odd) tr {
    background-color: var(--blue-50);
}

table.tocArticle:nth-child(even) tr {
    background-color: var(--grey-50);
}

table.tocArticle tr:hover {
    background-color: var(--accent-gold-lt);
}

table.tocArticle td {
    padding: 8px 12px;
    border-bottom: 1px solid var(--blue-100);
}

table.tocArticle tr:last-child td { border-bottom: none; }

table.tocArticle a {
    text-decoration: none;
    color: var(--blue-700);
    transition: color var(--transition);
}

table.tocArticle a:hover { color: var(--blue-400); }

.tocTitle {
    font-weight: 700;
    font-family: var(--font-display);
    font-size: 14px;
    color: var(--blue-900);
}

.tocAuthors {
    font-style: italic;
    font-size: 13px;
    color: var(--grey-500);
    margin-top: 2px;
    padding-bottom: 4px;
    padding-left: 20px;
    background: url(http://ejurnal.ung.ac.id/public/site/images/geosrev/author_icon.png) 1px 2px no-repeat transparent;
}

td.tocGalleys {
    padding-right: 12px;
    text-align: right;
    white-space: nowrap;
}

/* ============================================================
   FORMS & INPUTS
   ============================================================ */
input.textField,
select.selectMenu,
textarea.textArea,
input.uploadField {
    padding: 0.45em 0.75em;
    background-color: var(--white);
    border: 1.5px solid var(--blue-200);
    border-radius: var(--radius-sm);
    color: var(--grey-700);
    font-family: var(--font-body);
    font-size: 13px;
    transition: border-color var(--transition), box-shadow var(--transition);
}

input.textField:focus,
select.selectMenu:focus,
textarea.textArea:focus,
input.uploadField:focus {
    border-color: var(--blue-500);
    box-shadow: 0 0 0 3px rgba(26,86,204,0.15);
    outline: none;
}

input[type=submit],
input[type=button] {
    background: linear-gradient(180deg, var(--blue-500) 0%, var(--blue-700) 100%);
    color: var(--white);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 0.03em;
    padding: 7px 18px;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    text-shadow: 0 1px 2px rgba(0,0,0,0.25);
    box-shadow: 0 2px 6px rgba(10,45,122,0.30);
    transition: all var(--transition);
}

input[type=submit]:hover,
input[type=button]:hover {
    background: linear-gradient(180deg, var(--blue-400) 0%, var(--blue-600) 100%);
    box-shadow: 0 4px 12px rgba(10,45,122,0.35);
    transform: translateY(-1px);
    text-decoration: none;
}

input[type=submit]:active,
input[type=button]:active {
    transform: translateY(0);
    box-shadow: 0 1px 3px rgba(10,45,122,0.25);
}

input.defaultButton {
    color: var(--white);
    font-weight: 700;
    background: linear-gradient(180deg, var(--accent-gold) 0%, #c07a10 100%);
}

.selectMenu { margin-right: 2px; }

/* ============================================================
   CONTENT AREAS
   ============================================================ */
#content ul.menu {
    margin: 0;
    padding: 0;
    list-style: none;
}

#content ul.menu li {
    background: linear-gradient(180deg, var(--blue-500) 0%, var(--blue-700) 100%);
    padding: 7px 10px;
    border-radius: var(--radius-sm);
    margin-bottom: 4px;
    transition: background var(--transition);
}

#content ul.menu li:hover,
#content ul.menu li.current {
    background: linear-gradient(180deg, var(--blue-400) 0%, var(--blue-600) 100%);
}

#content ul.menu a { color: var(--white); text-decoration: none; }
#content ul.menu a:hover { color: var(--accent-gold); }

/* ============================================================
   BLOCKS / SIDEBAR HELPERS
   ============================================================ */
.block p  { margin: 0 !important; }

.block ul {
    padding-left: 0;
    list-style: none;
    margin: 0;
}

/* Link biasa di dalam block (bukan sidemenu) */
.block ul li {
    border-bottom: 1px solid var(--blue-50);
}

.block ul li:last-child {
    border-bottom: none;
}

.block ul li a {
    display: block;
    padding: 0.6em 14px 0.6em 28px;
    font-size: 12.5px;
    color: var(--blue-700);
    text-decoration: none;
    position: relative;
    transition: background var(--transition), color var(--transition), padding-left var(--transition);
}

.block ul li a:hover {
    background: var(--blue-50);
    color: var(--blue-500);
    padding-left: 32px;
    text-decoration: none;
}

/* Panah kecil di depan link */
.block li:before {
    content: "";
    border-color: transparent var(--blue-400);
    border-style: solid;
    border-width: 0.32em 0 0.32em 0.42em;
    display: block;
    height: 0;
    width: 0;
    left: 14px;
    top: 1em;
    position: absolute;
    pointer-events: none;
}

#sidebarDevelopedBy.block,
#sidebarHelp.block {
    border: 1px solid var(--blue-200) !important;
    border-radius: var(--radius-md);
    padding: 0.5em 1em !important;
    background: var(--white);
}

#sidebarDevelopedBy.block a,
#sidebarHelp.block a { text-decoration: none; color: var(--blue-600); }

#sidebarFontSize.block { padding-bottom: 35px !important; }

/* ============================================================
   HOMEPAGE SPECIFIC
   ============================================================ */
#journalDescription {
    float: left;
    width: 68%;
    text-align: justify;
    color: var(--grey-700);
}

#homepageImage {
    float: none;
    width: 100%;
    margin-top: 1em;
    margin-left: 12px;
    margin-bottom: 12px;
    text-align: center;
}

#homepageImage img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
}

#announcementsHome,
.clear { clear: both; }

/* SETUP FORM overrides */
#setupForm #homepageImage {
    float: none;
    width: auto;
    text-align: center;
    margin-top: 0;
    margin-left: 0;
}

#setupForm #journalDescription { float: none; }

#setupForm #homepageImage img,
#setupForm #journalThumbnail img {
    display: inline;
    margin: 5px 0;
}

/* ============================================================
   ANNOUNCEMENTS
   ============================================================ */
#announcements { width: auto; }

/* ============================================================
   INDEXERS
   ============================================================ */
.indexers { margin: 12px 0; }

.indexers a {
    border: 2px solid transparent;
    padding: 5px 4px;
    display: inline-block;
    border-radius: var(--radius-sm);
    transition: border-color var(--transition), box-shadow var(--transition);
}

.indexers a:hover {
    background: var(--blue-50);
    border: 2px solid var(--blue-300);
    box-shadow: var(--shadow-sm);
    opacity: 0.85;
}

.indexers a img { height: 48px; }

a img { border: 0; }

/* ============================================================
   MISC UI
   ============================================================ */
div.separator      { border-bottom: 1px solid var(--blue-100); }
div.thickSeparator { margin-bottom: 10px; border-bottom: 2px solid var(--blue-200); }

span.highlight {
    background-color: var(--blue-50);
    border-radius: var(--radius-sm);
    padding: 0 3px;
}

.intro {
    background-color: var(--blue-50);
    border-left: 4px solid var(--blue-500);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    padding: 12px 16px;
    margin-bottom: 16px;
}

.intro ul {
    margin: 0;
    padding-left: 1.2em;
}

/* ============================================================
   COVER IMAGES
   ============================================================ */
.cover-image-intro {
    margin: 0 0 0 1em;
    width: 100px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--blue-200);
    border-radius: var(--radius-sm);
}

.issueCoverImage {
    border: 1px solid var(--blue-100);
    padding: 0;
    margin: 0;
    border-radius: var(--radius-sm);
}

.issueCoverImage img {
    margin: 1em 2em 1em 0;
    width: 100px;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
}

/* ============================================================
   ARTICLE / ABSTRACT
   ============================================================ */
#articleAbstract div {
    text-align: justify;
    color: var(--grey-700);
    line-height: 1.75;
}

div { text-align: justify; }

#content h4 a {
    text-decoration: none;
    color: var(--blue-700);
}

#content h4 a:hover { color: var(--blue-400); }

/* ============================================================
   FOOTER / POWEREDBY
   ============================================================ */
#poweredby {
    clear: both;
    display: block;
    margin: 0 auto 1em auto;
    text-align: right;
    width: 1160px;
    padding-right: 14px;
    font-size: 12px;
    color: var(--grey-500);
}

#cpr { border: 0 none var(--white); }

/* ============================================================
   SCROLLBAR — WebKit
   ============================================================ */
::-webkit-scrollbar              { width: 7px; height: 7px; }
::-webkit-scrollbar-track        { background: var(--blue-50); }
::-webkit-scrollbar-thumb        { background: var(--blue-300); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover  { background: var(--blue-500); }

/* ============================================================
   PRINT
   ============================================================ */
@media print {
    #navbar, #leftSidebar, #rightSidebar, #header::before, #header::after { display: none !important; }
    #body { box-shadow: none !important; width: 100% !important; }
    body  { background: white !important; }
}
