/**
 * Tricore Homepage Theme - Bootstrap 5
 * Custom Styles
 */

/* Font Face Declarations */
@font-face {
	font-family: 'Neo Sans';
	src: url('../fonts/NeoSans-Regular.woff2') format('woff2');
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: 'Neo Sans';
	src: url('../fonts/NeoSans-Bold.woff2') format('woff2');
	font-weight: 700;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: 'Neo Sans';
	src: url('../fonts/NeoSans-Light.woff2') format('woff2');
	font-weight: 300;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: 'Open Sans';
	src: url('../fonts/OpenSans-Regular.woff2') format('woff2');
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: 'Open Sans';
	src: url('../fonts/OpenSans-Bold.woff2') format('woff2');
	font-weight: 700;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: 'Open Sans';
	src: url('../fonts/OpenSans-Regular-Italic.woff') format('woff');
	font-weight: 400;
	font-style: italic;
	font-display: swap;
}

/* Root Variables */
:root {
	--primary-color: #0d6efd;
	--secondary-color: #6c757d;
	--success-color: #198754;
	--danger-color: #dc3545;
	--warning-color: #ffc107;
	--info-color: #0dcaf0;
	--light-color: #f8f9fa;
	--dark-color: #212529;
	--font-family-heading: "Neo Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	--font-family-body: "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	--font-family-serif: Georgia, "Times New Roman", Times, serif;
}

/* General Styles */
body {
	font-family: var(--font-family-body);
	font-size: 14px;
	line-height: 20px;
	color: var(--dark-color);
	background-color: #fff;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

/* Typography - Headings use Neo Sans */
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
	font-family: var(--font-family-heading);
	font-weight: 700;
	line-height: 1.2;
}

/* Navigation uses Neo Sans */
.navbar,
.nav,
.navbar-nav,
.breadcrumb,
.btn,
.badge,
.card-header {
	font-family: var(--font-family-heading);
}

#customblock-additional-menu .content p {
  margin: 0;
  padding: 0;
}

#customblock-additional-menu .content a {
  display: block;
  padding: 2px 0;
  text-decoration: none;
  border-bottom: 1px solid #ddd;
  color: #333;
}

#customblock-additional-menu .content a:hover {
  color: #000;
  border-bottom-color: #999;
}

/* Header Styles */
.pkp_structure_head {
	background: #fff;
}

.sidebar .pkp_block img {
	width: 100%;
	height: auto;
	margin-bottom: 15px;
}

.pkp_block .title {
    font-size: 18px;
    font-weight: bold;
    margin: 2em 0;
}
/* Header Top - Date and User Nav */
.header-top {
	background: #f8f9fa;
	padding: 0.5rem 0;
	font-size: 0.875rem;
}

.header-date {
	color: #495057;
	font-weight: 500;
}

.header-date i {
	margin-right: 0.5rem;
	color: #1e5ba8;
}

/* Header Main - Logo and Title */
.header-main {
	background: linear-gradient(135deg, #1e5ba8 0%, #2563b8 100%);
	color: #fff;
}

.header-logo {
	max-height: 90px;
	width: auto;
}

.header-logo-link {
	display: block;
	transition: transform 0.3s ease;
}

.header-title {
	font-family: var(--font-family-heading);
	font-size: 1.75rem;
	font-weight: 700;
	margin: 0;
	line-height: 1.2;
	letter-spacing: 0.5px;
}

.header-description {
	font-family: var(--font-family-body);
	font-size: 1rem;
	opacity: 0.95;
	font-weight: 400;
}

/* Navigation - Blue Bar */
#main-navigation {
	background: #1e5ba8 !important;
	padding: 0;
}

#main-navigation {
  position: relative;
  padding-bottom: 10px; /* Memberi ruang agar konten tidak tertutup border */
}

#main-navigation::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, #f8ff00 0%, #3ad59f 100%)
}

#main-navigation .navbar-nav .nav-link {
	color: rgba(255,255,255,0.95);
	font-weight: 500;
	padding: 1rem 1.25rem;
	font-size: 14px;
    font-weight: bold;
	transition: all 0.3s ease;
	border-bottom: 3px solid transparent;
}

#main-navigation .navbar-nav .nav-link:hover {
	color: #fff;
	background: rgba(255,255,255,0.1);
	border-bottom-color: #ffc107;
}

#main-navigation .navbar-nav .nav-link.active {
	color: #fff;
	font-weight: 600;
	border-bottom-color: #ffc107;
	background: rgba(255,255,255,0.05);
}

.navbar-search {
	padding: 0.5rem;
}

.navbar-search .nav-link {
	color: rgba(255,255,255,0.95);
	font-size: 1.25rem;
	padding: 0.5rem 1rem;
}

.navbar-search .nav-link:hover {
	color: #fff;
	background: rgba(255,255,255,0.1);
}

/* User Navigation */
.user-nav .nav {
	display: flex;
	list-style: none;
	padding: 0;
	margin: 0;
	align-items: center;
	gap: 0.5rem;
}

.user-nav .nav > li {
	list-style: none;
	position: relative;
}

.user-nav .nav a {
	color: #495057;
	font-size: 0.875rem;
	padding: 0.25rem 0.75rem;
	text-decoration: none;
	display: inline-block;
	transition: all 0.2s ease;
	border-radius: 0.25rem;
}

.user-nav .nav a {
	color: #495057;
	font-size: 0.875rem;
	padding: 0.25rem 0.75rem;
	text-decoration: none;
	display: inline-block;
	transition: all 0.2s ease;
}

.user-nav .nav a:hover {
	color: #1e5ba8;
	background-color: rgba(30,91,168,0.1);
}

/* Task Count Badge - Notification Counter */
.task_count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 1.25rem;
	height: 1.25rem;
	padding: 0.15rem 0.4rem;
	margin-left: 0.5rem;
	background: #dc3545;
	color: #fff;
	font-size: 0.7rem;
	font-weight: 600;
	line-height: 1;
	vertical-align: middle;
}

/* Badge in dropdown menu */
#navigationUser li ul .task_count {
	background: #ffc107;
	color: #212529;
	margin-left: 0.5rem;
}

/* Badge hover state */
.user-nav .nav a:hover .task_count {
	background: #bb2d3b;
	transform: scale(1.1);
}

#navigationUser li ul a:hover .task_count {
	background: #ffc720;
	color: #000;
}

/* Fix OJS menu structure for Bootstrap 5 */
#main-navigation .navbar-nav {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-direction: row;
	align-items: stretch;
}

#main-navigation .navbar-nav > li {
	position: relative;
	list-style: none;
	display: flex;
	align-items: stretch;
}

#main-navigation .navbar-nav > li > a {
	color: rgba(255,255,255,0.95);
	padding: 1rem 1.25rem;
	
	font-size: 14px;
    font-weight: bold;
	transition: all 0.3s ease;
	text-decoration: none;
	display: flex;
	align-items: center;
	border-bottom: 3px solid transparent;
}

#main-navigation .navbar-nav > li > a:hover {
	color: #fff;
	background: rgba(255,255,255,0.1);
	border-bottom-color: #ffc107;
}

#main-navigation .navbar-nav > li.current > a,
#main-navigation .navbar-nav > li.active > a {
	color: #fff;
	font-weight: 600;
	border-bottom-color: #ffc107;
	background: rgba(255,255,255,0.05);
}
.issue-toc .cover img {
    max-width: 280px;
}

.issue-toc .toc-title{
	font-size: 18px;
	font-weight: bold;
}

.issue-description .issue-cover img, .issue-cover img {
	max-width: 200px;
	margin-right: 20px;
	display: inline-block;float: left;

}


/* Dropdown menu styles */
#main-navigation .navbar-nav li ul {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 220px;
	background: #fff;
	border: 2px solid #dee2e6;
	padding: 0;
	margin: 0;
	list-style: none;
	z-index: 99999;
	border-top: 3px solid #ffc107;
}

#main-navigation .navbar-nav li:hover > ul,
#main-navigation .navbar-nav li:focus-within > ul {
	display: block;
}

#main-navigation .navbar-nav li ul li {
	display: block;
	width: 100%;
}

#main-navigation .navbar-nav li ul li a {
	padding: 0.75rem 1.25rem;
	display: block;
    font-size: 13px;
    font-weight: bold;
	text-decoration: none;
	white-space: nowrap;
	transition: all 0.2s ease;
	text-transform: none;
	border-bottom: 1px solid #f0f0f0;
	border-left: none;
}

#main-navigation .navbar-nav li ul li a:hover {
	background-color: #1e5ba8;
	color: #fff;
}

/* Dropdown indicator */
#main-navigation .navbar-nav li.has-submenu > a::after {
	content: '\25BE';
	margin-left: 0.5rem;
	font-size: 0.7rem;
	opacity: 0.8;
}

/* User navigation dropdown fix */
#navigationUser {
	display: flex;
	flex-direction: row;
	list-style: none;
	padding: 0;
	margin: 0;
	align-items: center;
	gap: 0.5rem;
}

#navigationUser > li {
	position: relative;
	list-style: none;
}

#navigationUser li ul {
	display: none;
	position: absolute;
	top: 100%;
	right: 0;
	min-width: 180px;
	background: #fff;
	padding: 0.5rem 0;
	margin: 0.5rem 0 0 0;
	list-style: none;
z-index: 9999;
	border: 2px solid #dee2e6;
}

#navigationUser li:hover > ul,
#navigationUser li:focus-within > ul {
	display: block;
}

#navigationUser li ul li {
	display: block;
	width: 100%;
}

#navigationUser li ul li a {
	padding: 0.5rem 1rem;
	display: block;
	color: #495057 !important;
	text-decoration: none;
	white-space: nowrap;
	background: transparent;
	transition: all 0.2s ease;
}

#navigationUser li ul li a:hover {
	background-color: #f8f9fa;
	color: #1e5ba8 !important;
}

/* Mobile Navigation */
@media (max-width: 991.98px) {
	.header-title {
		font-size: 1.25rem;
	}
	
	.header-description {
		font-size: 0.875rem;
	}
	
	.header-logo {
		max-height: 60px;
	}
	
	#main-navigation {
		position: static !important;
	}
	
	#main-navigation .navbar-nav {
		flex-direction: column;
		width: 100%;
		align-items: stretch;
	}
	
	#main-navigation .navbar-nav > li {
		width: 100%;
		display: block;
	}
	
	#main-navigation .navbar-nav > li > a {
		border-bottom: 1px solid rgba(255,255,255,0.1);
		border-left: none;
	}
	
	#main-navigation .navbar-nav li ul {
		position: static;
		background: rgba(0,0,0,0.1);
		padding-left: 1rem;
		border-top: none;
		border: none;
	}
	
	#main-navigation .navbar-nav li ul li a {
		color: rgba(255,255,255,0.9);
		border-bottom: 1px solid rgba(255,255,255,0.05);
	}
	
	#main-navigation .navbar-nav li ul li a:hover {
		background: rgba(255,255,255,0.1);
		color: #fff;
	}
	
	#main-navigation .navbar-nav li ul {
		display: none;
	}
	
	#main-navigation .navbar-nav li.show-submenu > ul {
		display: block;
	}
}

/* Main Content */
#main-content {
	padding: 3em 0;
}

.page_index_journal .journal-description-content .data{
  border-collapse: collapse;
  width: 100%;
}

.page_index_journal .journal-description-content .data td, .page_index_journal .journal-description-content .data th {
  border: 1px solid #ddd;
  padding: 8px;
}

.page_index_journal .journal-description-content a{
	color: inherit; /* Default link color */
	background-color: #fffda4;
  text-decoration: none; /* Remove default underline */
  transition: background-color 0.3s ease;
}
.page_index_journal .journal-description-content a:hover{

  background-color: #ffffff; /* Highlight background color */
  color: #0056b3; 
}

.page_index_journal .journal-description-content .datatr:nth-child(even){background-color: #f2f2f2;}

.page_index_journal .journal-description-content .data tr:hover {background-color: #ddd;}

.page_index_journal .journal-description-content .data th {
  padding-top: 12px;
  padding-bottom: 12px;
  text-align: left;
  background-color: #04AA6D;
  color: white;
}


.page-header {
	margin-bottom: 2rem;
	padding-bottom: 1rem;
	border-bottom: 2px solid var(--primary-color);
}

.page-header h2 {
	font-size: 2rem;
	font-weight: 700;
	color: var(--dark-color);
	margin: 0;
}

/* Homepage Image */
.homepage-image {
	margin-bottom: 2rem;
	overflow: hidden;
	border: 2px solid #dee2e6;
}

.homepage-image img {
	width: 100%;
	height: auto;
	display: block;
}

/* Journal Description */
.journal-description {
	margin-bottom: 3rem;
	font-size: 1.1rem;
	line-height: 1.8;
}

/* Announcements */
.cmp_announcements {
	margin-bottom: 3rem;
}

.announcement {
	background-color: var(--light-color);
	padding: 1.5rem;
	margin-bottom: 1.5rem;
	border-left: 4px solid var(--primary-color);
	border: 2px solid #dee2e6;
	border-left-width: 4px;
}

.announcement h3 {
	font-size: 1.5rem;
	font-weight: 600;
	margin-bottom: 0.75rem;
}

.announcement-date {
	color: var(--secondary-color);
	font-size: 0.875rem;
	margin-bottom: 0.5rem;
}

/* Current Issue */
.current_issue {
	margin-bottom: 3rem;
}

.current_issue_title {
	font-size: 1.5rem;
	font-weight: 600;
	color: var(--primary-color);
	margin-bottom: 1.5rem;
}

/* Article List */
.obj_article_summary {
	background-color: #fff;
	border: 2px solid #dee2e6;
	padding: 1.5rem;
	margin-bottom: 1.5rem;
	transition: border-color 0.3s ease;
}

.obj_article_summary:hover {
	border-color: #1e5ba8;
}

.obj_article_summary h3 {
	font-size: 1.25rem;
	font-weight: 600;
	margin-bottom: 0.75rem;
}

.obj_article_summary h3 a {
	color: var(--dark-color);
	text-decoration: none;
	transition: color 0.3s ease;
}

.obj_article_summary h3 a:hover {
	color: var(--primary-color);
}

.obj_article_summary .authors {
	color: var(--secondary-color);
	margin-bottom: 0.5rem;
	font-size: 0.95rem;
}

.obj_article_summary .abstract {
	color: #495057;
	line-height: 1.6;
	margin-bottom: 1rem;
}

/* Buttons */
.btn {
	padding: 0.5rem 1.5rem;
	font-weight: 500;
	text-decoration: none;
	display: inline-block;
	transition: all 0.3s ease;
	border: 2px solid transparent;
}

.btn-primary {
	background-color: var(--primary-color);
	border-color: var(--primary-color);
	color: #fff;
}

.btn-primary:hover {
	background-color: #0b5ed7;
	border-color: #0a58ca;
	color: #fff;
}

.btn-outline-primary {
	color: var(--primary-color);
	border: 2px solid var(--primary-color);
	background-color: transparent;
}

.btn-outline-primary:hover {
	background-color: var(--primary-color);
	color: #fff;
}

/* Footer */
.pkp_structure_footer {
	background-color: var(--dark-color);
	color: rgba(255,255,255,0.8);
	padding: 3rem 0 1.5rem;
	margin-top: 4rem;
}

.pkp_structure_footer a {
	color: rgba(255,255,255,0.8);
	text-decoration: none;
	transition: color 0.3s ease;
}

.pkp_structure_footer a:hover {
	color: #fff;
}

.pkp_structure_footer h3 {
	color: #fff;
	font-size: 1.25rem;
	font-weight: 600;
	margin-bottom: 1rem;
}

.footer-bottom {
	margin-top: 2rem;
	padding-top: 1.5rem;
	border-top: 1px solid rgba(255,255,255,0.1);
	text-align: center;
	font-size: 0.875rem;
}

/* Cards */
.card {
	border: 1px solid #dee2e6;
}


.card-title {
	font-weight: 600;
	color: var(--dark-color);
}

/* Breadcrumb */
.breadcrumb {
	background-color: transparent;
	padding: 1rem 0;
	margin-bottom: 1rem;
}

h1.display-5{
	font-size: 1.5rem;
	font-weight: 700;
	line-height: 1.2;
	color: var(--dark-color);
}

/* Responsive */
@media (max-width: 768px) {
	.pkp_structure_head h1 {
		font-size: 2rem;
	}
	
	.pkp_structure_head .lead {
		font-size: 1rem;
	}
	
	.page-header h2 {
		font-size: 1.5rem;
	}
}

/* Accessibility */
.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0,0,0,0);
	white-space: nowrap;
	border-width: 0;
}

/* Skip to content link */
#accessibility-nav a {
	position: absolute;
	left: -10000px;
	top: auto;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

#accessibility-nav a:focus {
	position: static;
	width: auto;
	height: auto;
}
