/**
 * Zenith Portal - Undar Modern E-Journal Theme
 * Design inspired by Poltekpar Bali Modern Portal
 * Compatible with OJS 3.3.0.13
 * Fully Optimized for Mobile & Desktop
 */

/* ==========================================================================
   1. CSS VARIABLES & THEME TOKENS
   ========================================================================== */
:root {
	--undar-primary: #1e40af;
	--undar-primary-rgb: 30, 64, 175;
	--undar-primary-light: #3b82f6;
	--undar-primary-dark: #1e3a8a;
	--undar-accent: #059669;

	/* Light Mode (Default) */
	--undar-bg: #f8fafc;
	--undar-surface: #ffffff;
	--undar-surface-alt: #f1f5f9;
	--undar-border: #e2e8f0;
	--undar-border-light: #edf2f7;
	--undar-text: #0f172a;
	--undar-text-secondary: #475569;
	--undar-text-muted: #64748b;
	--undar-navbar-bg: rgba(255, 255, 255, 0.94);
	--undar-card-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.05), 0 2px 6px -1px rgba(0, 0, 0, 0.03);
	--undar-card-hover: 0 16px 36px -4px rgba(30, 64, 175, 0.12), 0 4px 12px -2px rgba(0, 0, 0, 0.04);
}

[data-theme="dark"] {
	--undar-primary: #3b82f6;
	--undar-primary-rgb: 59, 130, 246;
	--undar-primary-light: #60a5fa;
	--undar-primary-dark: #2563eb;
	--undar-accent: #10b981;

	/* Dark Mode */
	--undar-bg: #090e17;
	--undar-surface: #111827;
	--undar-surface-alt: #1f2937;
	--undar-border: rgba(255, 255, 255, 0.08);
	--undar-border-light: rgba(255, 255, 255, 0.05);
	--undar-text: #f8fafc;
	--undar-text-secondary: #cbd5e1;
	--undar-text-muted: #94a3b8;
	--undar-navbar-bg: rgba(17, 24, 39, 0.94);
	--undar-card-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.4);
	--undar-card-hover: 0 16px 36px -4px rgba(59, 130, 246, 0.2);
}

/* ==========================================================================
   2. GLOBAL BASE STYLES & OVERFLOW PREVENTION
   ========================================================================== */
*, *::before, *::after {
	box-sizing: border-box;
}

html {
	margin: 0;
	padding: 0;
	width: 100%;
	scroll-behavior: smooth;
	overflow-x: clip;
}

body.undar-portal-body {
	margin: 0;
	padding: 0;
	width: 100%;
	min-height: 100vh;
	position: relative;
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	background-color: var(--undar-bg);
	color: var(--undar-text);
	transition: background-color 0.3s ease, color 0.3s ease;
	-webkit-font-smoothing: antialiased;
	overflow-x: clip;
}

.undar-main-wrapper {
	width: 100%;
	overflow-x: hidden;
	position: relative;
}

h1, h2, h3, h4, h5, h6 {
	font-family: 'Outfit', 'Inter', sans-serif;
}

/* Glowing Background Blobs */
.bg-blobs {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 600px;
	pointer-events: none;
	overflow: hidden;
	z-index: 0;
}

.blob {
	position: absolute;
	border-radius: 50%;
	filter: blur(90px);
	opacity: 0.18;
}

.blob-1 {
	top: -80px;
	left: -80px;
	width: 440px;
	height: 440px;
	background: radial-gradient(circle, #3b82f6 0%, #1e40af 100%);
}

.blob-2 {
	top: 80px;
	right: -100px;
	width: 500px;
	height: 500px;
	background: radial-gradient(circle, #10b981 0%, #3b82f6 100%);
	opacity: 0.14;
}

[data-theme="dark"] .blob {
	opacity: 0.25;
}

/* ==========================================================================
   3. STICKY NAVBAR
   ========================================================================== */
.undar-navbar {
	position: -webkit-sticky !important;
	position: sticky !important;
	top: 0 !important;
	left: 0;
	right: 0;
	z-index: 1050;
	background: var(--undar-navbar-bg);
	backdrop-filter: blur(14px);
	-webkit-backdrop-filter: blur(14px);
	border-bottom: 1px solid var(--undar-border);
	transition: background-color 0.25s ease, box-shadow 0.25s ease, padding 0.25s ease;
	padding: 0.75rem 0;
	width: 100%;
}

.undar-navbar.navbar-scrolled {
	padding: 0.55rem 0;
	box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.08), 0 2px 6px -1px rgba(0, 0, 0, 0.04);
	border-bottom-color: rgba(0, 0, 0, 0.06);
}

[data-theme="dark"] .undar-navbar.navbar-scrolled {
	box-shadow: 0 4px 25px -2px rgba(0, 0, 0, 0.5);
	border-bottom-color: rgba(255, 255, 255, 0.12);
}

.undar-nav-container {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
}

.undar-nav-logo {
	display: flex;
	align-items: center;
	gap: 10px;
	text-decoration: none;
	color: var(--undar-text);
	flex-shrink: 0;
	max-width: 60%;
}

.undar-logo-img {
	height: 38px;
	max-width: 140px;
	width: auto;
	object-fit: contain;
}

.undar-logo-text {
	font-family: 'Outfit', sans-serif;
	font-weight: 700;
	font-size: 1.15rem;
	letter-spacing: -0.3px;
	color: var(--undar-text);
	white-space: nowrap;
}

.undar-nav-menu {
	display: flex;
	align-items: center;
	gap: 26px;
}

.undar-nav-link {
	font-size: 0.85rem;
	font-weight: 600;
	letter-spacing: 0.4px;
	text-decoration: none;
	color: var(--undar-text-secondary);
	transition: color 0.2s ease;
	position: relative;
	padding: 4px 0;
}

.undar-nav-link:hover,
.undar-nav-link.active {
	color: var(--undar-primary);
}

.undar-nav-link.active::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	height: 2px;
	background: var(--undar-primary);
	border-radius: 2px;
}

.undar-nav-actions {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-shrink: 0;
}

.undar-theme-btn {
	background: var(--undar-surface-alt);
	border: 1px solid var(--undar-border);
	color: var(--undar-text-secondary);
	width: 36px;
	height: 36px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: all 0.2s ease;
}

.undar-theme-btn:hover {
	background: var(--undar-border);
	color: var(--undar-primary);
}

[data-theme="light"] .sun-icon { display: block; color: #f59e0b; }
[data-theme="light"] .moon-icon { display: none; }
[data-theme="dark"] .sun-icon { display: none; }
[data-theme="dark"] .moon-icon { display: block; color: #60a5fa; }

.undar-btn-login {
	font-size: 0.82rem;
	font-weight: 600;
	color: var(--undar-text-secondary);
	text-decoration: none;
	padding: 6px 12px;
	border-radius: 8px;
	border: 1px solid var(--undar-border);
	transition: all 0.2s ease;
	display: inline-flex;
	align-items: center;
}

.undar-btn-login:hover {
	color: var(--undar-primary);
	border-color: var(--undar-primary-light);
	background: var(--undar-surface-alt);
}

.undar-btn-user {
	font-size: 0.82rem;
	font-weight: 600;
	color: var(--undar-text);
	background: var(--undar-surface-alt);
	border: 1px solid var(--undar-border);
	padding: 6px 12px;
	border-radius: 8px;
	display: inline-flex;
	align-items: center;
}

.undar-btn-cta {
	background: linear-gradient(135deg, #1e40af, #2563eb);
	color: #ffffff !important;
	font-size: 0.82rem;
	font-weight: 700;
	letter-spacing: 0.3px;
	padding: 8px 16px;
	border-radius: 10px;
	text-decoration: none;
	box-shadow: 0 4px 12px rgba(30, 64, 175, 0.25);
	transition: all 0.25s ease;
	display: inline-flex;
	align-items: center;
}

.undar-btn-cta:hover {
	background: linear-gradient(135deg, #1d4ed8, #1e40af);
	box-shadow: 0 6px 16px rgba(30, 64, 175, 0.35);
	transform: translateY(-1px);
}

/* ==========================================================================
   4. HERO BRANDING SECTION
   ========================================================================== */
.hero-section {
	position: relative;
	padding: 4rem 0 3rem;
	z-index: 1;
	width: 100%;
	overflow: hidden;
}

.hero-tag-badge {
	display: inline-flex;
	align-items: center;
	background: rgba(30, 64, 175, 0.1);
	color: var(--undar-primary);
	font-weight: 700;
	font-size: 0.75rem;
	letter-spacing: 1px;
	padding: 5px 13px;
	border-radius: 30px;
	border: 1px solid rgba(30, 64, 175, 0.18);
	margin-bottom: 1.15rem;
}

[data-theme="dark"] .hero-tag-badge {
	background: rgba(59, 130, 246, 0.15);
	color: #60a5fa;
	border-color: rgba(59, 130, 246, 0.3);
}

.hero-title {
	font-size: 2.75rem;
	font-weight: 800;
	line-height: 1.15;
	letter-spacing: -0.8px;
	color: var(--undar-text);
	margin-bottom: 0.85rem;
}

.hero-slogan {
	font-size: 1.05rem;
	color: var(--undar-text-secondary);
	line-height: 1.55;
	margin-bottom: 1.75rem;
	max-width: 520px;
}

.hero-ctas {
	margin-bottom: 1.75rem;
}

.btn-hero-explore {
	background: var(--undar-surface);
	color: var(--undar-text);
	border: 1px solid var(--undar-border);
	font-weight: 700;
	font-size: 0.88rem;
	padding: 12px 22px;
	border-radius: 12px;
	box-shadow: var(--undar-card-shadow);
	transition: all 0.25s ease;
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.btn-hero-explore:hover {
	background: var(--undar-surface-alt);
	color: var(--undar-primary);
	border-color: var(--undar-primary-light);
	transform: translateY(-2px);
}

.btn-hero-submit {
	background: linear-gradient(135deg, #1e40af, #3b82f6);
	color: #ffffff !important;
	font-weight: 700;
	font-size: 0.88rem;
	padding: 12px 24px;
	border-radius: 12px;
	box-shadow: 0 6px 18px rgba(30, 64, 175, 0.28);
	transition: all 0.25s ease;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	text-decoration: none;
}

.btn-hero-submit:hover {
	background: linear-gradient(135deg, #1d4ed8, #2563eb);
	box-shadow: 0 8px 22px rgba(30, 64, 175, 0.38);
	transform: translateY(-2px);
}

.hero-trust-note {
	font-size: 0.82rem;
	color: var(--undar-text-muted);
	display: flex;
	align-items: center;
	gap: 6px;
}

/* ==========================================================================
   5. 3D COVERFLOW CAROUSEL
   ========================================================================== */
.coverflow-3d-wrapper {
	position: relative;
	perspective: 1000px;
	width: 100%;
	max-width: 100%;
	padding: 15px 0 10px;
	overflow: hidden; /* CRITICAL: Prevents 3D elements from creating horizontal scrollbars */
}

.coverflow-stage {
	position: relative;
	height: 300px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
}

.coverflow-card {
	position: absolute;
	width: 190px;
	height: 270px;
	border-radius: 12px;
	cursor: pointer;
	transition: all 0.45s cubic-bezier(0.25, 1, 0.5, 1);
	box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
	user-select: none;
	opacity: 0;
	visibility: hidden;
	transform: scale(0.6);
}

.coverflow-card-inner {
	width: 100%;
	height: 100%;
	border-radius: 12px;
	overflow: hidden;
	position: relative;
	background: #ffffff;
	border: 2.5px solid rgba(255, 255, 255, 0.9);
}

.coverflow-card-inner img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.coverflow-card-overlay {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	padding: 8px;
	background: linear-gradient(to top, rgba(0, 0, 0, 0.85), transparent);
	color: #ffffff;
	font-size: 0.75rem;
	font-weight: 600;
	text-align: center;
	opacity: 0;
	transition: opacity 0.3s ease;
}

.coverflow-card.active {
	opacity: 1;
	visibility: visible;
	z-index: 10;
	transform: translate3d(0, 0, 80px) rotateY(0deg) scale(1.06);
	box-shadow: 0 16px 36px rgba(30, 64, 175, 0.3);
}

.coverflow-card.active .coverflow-card-overlay {
	opacity: 1;
}

.coverflow-card.prev-1 {
	opacity: 0.82;
	visibility: visible;
	z-index: 6;
	transform: translate3d(-110px, 0, -20px) rotateY(25deg) scale(0.86);
}

.coverflow-card.next-1 {
	opacity: 0.82;
	visibility: visible;
	z-index: 6;
	transform: translate3d(110px, 0, -20px) rotateY(-25deg) scale(0.86);
}

.coverflow-card.prev-2 {
	opacity: 0.45;
	visibility: visible;
	z-index: 3;
	transform: translate3d(-180px, 0, -60px) rotateY(35deg) scale(0.72);
}

.coverflow-card.next-2 {
	opacity: 0.45;
	visibility: visible;
	z-index: 3;
	transform: translate3d(180px, 0, -60px) rotateY(-35deg) scale(0.72);
}

.coverflow-controls {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 14px;
	margin-top: 12px;
}

.coverflow-btn {
	background: var(--undar-surface);
	border: 1px solid var(--undar-border);
	color: var(--undar-text);
	width: 34px;
	height: 34px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	box-shadow: var(--undar-card-shadow);
	transition: all 0.2s ease;
	flex-shrink: 0;
}

.coverflow-btn:hover {
	background: var(--undar-primary);
	color: #ffffff;
	border-color: var(--undar-primary);
}

.coverflow-dots {
	display: flex;
	gap: 6px;
	align-items: center;
	max-width: 240px;
	overflow-x: auto;
	padding: 4px 6px;
	scrollbar-width: none;
}

.coverflow-dots::-webkit-scrollbar {
	display: none;
}

.cf-dot {
	width: 7px;
	height: 7px;
	border-radius: 4px;
	background: var(--undar-border);
	cursor: pointer;
	transition: all 0.25s ease;
	flex-shrink: 0;
}

.cf-dot.active {
	width: 18px;
	background: var(--undar-primary);
}

.coverflow-current-title {
	font-family: 'Outfit', sans-serif;
	font-weight: 700;
	font-size: 0.92rem;
	color: var(--undar-text);
	text-align: center;
}

/* ==========================================================================
   6. SEARCH & FILTER PANEL
   ========================================================================== */
.search-filter-section {
	position: relative;
	z-index: 2;
	margin-bottom: 2rem;
	width: 100%;
}

.search-filter-box {
	background: var(--undar-surface);
	border: 1px solid var(--undar-border);
	border-radius: 16px;
	padding: 22px;
	box-shadow: var(--undar-card-shadow);
	width: 100%;
}

.search-input-wrapper {
	position: relative;
	margin-bottom: 16px;
	width: 100%;
}

.search-icon {
	position: absolute;
	left: 16px;
	top: 50%;
	transform: translateY(-50%);
	color: var(--undar-text-muted);
	font-size: 1.1rem;
	pointer-events: none;
}

.journal-search-input {
	width: 100%;
	padding: 13px 40px 13px 44px;
	border-radius: 12px;
	border: 1.5px solid var(--undar-border);
	background: var(--undar-surface-alt);
	color: var(--undar-text);
	font-size: 0.94rem;
	outline: none;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.journal-search-input:focus {
	border-color: var(--undar-primary);
	box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.12);
	background: var(--undar-surface);
}

.clear-search-btn {
	position: absolute;
	right: 12px;
	top: 50%;
	transform: translateY(-50%);
	background: none;
	border: none;
	color: var(--undar-text-muted);
	cursor: pointer;
	font-size: 1.1rem;
}

.category-pills-wrapper {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 12px;
	width: 100%;
}

.cat-pill {
	background: var(--undar-surface-alt);
	border: 1px solid var(--undar-border);
	color: var(--undar-text-secondary);
	font-size: 0.82rem;
	font-weight: 600;
	padding: 6px 14px;
	border-radius: 20px;
	cursor: pointer;
	transition: all 0.2s ease;
	white-space: nowrap;
}

.cat-pill:hover {
	background: var(--undar-border);
	color: var(--undar-text);
}

.cat-pill.active {
	background: var(--undar-primary);
	color: #ffffff;
	border-color: var(--undar-primary);
	box-shadow: 0 3px 8px rgba(30, 64, 175, 0.25);
}

.results-counter {
	font-size: 0.82rem;
	color: var(--undar-text-muted);
	font-weight: 500;
}

/* ==========================================================================
   7. JOURNALS CARD GRID
   ========================================================================== */
.journals-catalog-section {
	position: relative;
	z-index: 1;
	width: 100%;
}

.journal-card {
	background: var(--undar-surface);
	border: 1px solid var(--undar-border);
	border-radius: 16px;
	box-shadow: var(--undar-card-shadow);
	transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
	overflow: hidden;
}

.journal-card:hover {
	box-shadow: var(--undar-card-hover);
	transform: translateY(-3px);
	border-color: rgba(30, 64, 175, 0.3);
}

.journal-card-body {
	padding: 20px;
	gap: 18px;
}

.journal-cover-col {
	flex-shrink: 0;
	width: 135px;
}

.journal-cover-link {
	display: block;
	border-radius: 10px;
	overflow: hidden;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
	transition: transform 0.25s ease;
}

.journal-cover-link:hover {
	transform: scale(1.03);
}

.journal-cover-img {
	width: 100%;
	height: 190px;
	object-fit: cover;
	display: block;
}

.badge-ojs {
	background: rgba(30, 64, 175, 0.1);
	color: var(--undar-primary);
	border: 1px solid rgba(30, 64, 175, 0.2);
	font-size: 0.72rem;
	font-weight: 700;
	padding: 3px 9px;
	border-radius: 6px;
}

[data-theme="dark"] .badge-ojs {
	background: rgba(59, 130, 246, 0.18);
	color: #60a5fa;
	border-color: rgba(59, 130, 246, 0.3);
}

.badge-category {
	background: var(--undar-surface-alt);
	color: var(--undar-text-secondary);
	border: 1px solid var(--undar-border);
	font-size: 0.72rem;
	font-weight: 600;
	padding: 3px 9px;
	border-radius: 6px;
}

.journal-title {
	font-size: 1.15rem;
	font-weight: 700;
	line-height: 1.35;
	margin-bottom: 10px;
}

.journal-title a {
	color: var(--undar-text);
	text-decoration: none;
	transition: color 0.2s ease;
}

.journal-title a:hover {
	color: var(--undar-primary);
}

.journal-meta-table {
	display: flex;
	flex-direction: column;
	gap: 4px;
	font-size: 0.81rem;
	line-height: 1.45;
}

.meta-row {
	display: flex;
	align-items: flex-start;
}

.meta-label {
	width: 105px;
	flex-shrink: 0;
	color: var(--undar-text-muted);
}

.meta-separator {
	width: 12px;
	flex-shrink: 0;
	color: var(--undar-text-muted);
}

.meta-value {
	color: var(--undar-text);
	word-break: break-word;
}

.btn-read-more {
	background: var(--undar-surface-alt);
	color: var(--undar-text);
	border: 1px solid var(--undar-border);
	font-weight: 600;
	font-size: 0.82rem;
	padding: 8px 14px;
	border-radius: 8px;
	transition: all 0.2s ease;
}

.btn-read-more:hover {
	background: var(--undar-border);
	color: var(--undar-primary);
}

.btn-visit-site {
	background: var(--undar-primary);
	color: #ffffff !important;
	font-weight: 600;
	font-size: 0.82rem;
	padding: 8px 14px;
	border-radius: 8px;
	text-decoration: none;
	text-align: center;
	transition: all 0.2s ease;
}

.btn-visit-site:hover {
	background: var(--undar-primary-dark);
	box-shadow: 0 4px 12px rgba(30, 64, 175, 0.25);
}

/* ==========================================================================
   8. MODAL DETAIL JURNAL
   ========================================================================== */
.undar-modal .modal-content {
	background: var(--undar-surface);
	color: var(--undar-text);
	border: 1px solid var(--undar-border);
	border-radius: 16px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}

.undar-modal .modal-title {
	color: var(--undar-text) !important;
}

.undar-modal .modal-quick-meta {
	background: var(--undar-surface-alt) !important;
	border-color: var(--undar-border) !important;
	color: var(--undar-text-secondary);
}

.undar-modal .modal-desc-body {
	color: var(--undar-text-secondary) !important;
}

/* ==========================================================================
   9. FOOTER
   ========================================================================== */
.site-footer {
	background: var(--undar-surface);
	border-top: 1px solid var(--undar-border);
	padding: 3.5rem 0 2rem;
	margin-top: 4rem;
	color: var(--undar-text-secondary);
	width: 100%;
}

.footer-logo-img {
	max-height: 44px;
	max-width: 190px;
	width: auto;
	object-fit: contain;
	border-radius: 8px;
	border: 1px solid var(--undar-border);
	padding: 4px 8px;
	background: #ffffff;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.footer-title {
	color: var(--undar-text);
	font-size: 1.2rem;
}

.footer-address {
	font-size: 0.86rem;
	line-height: 1.6;
}

.footer-attribution {
	font-size: 0.88rem;
	font-weight: 600;
	color: #64748b;
	letter-spacing: -0.01em;
}

.footer-attribution strong {
	color: var(--undar-text);
}

.footer-attribution .author-link {
	color: #059669;
	font-weight: 700;
	text-decoration: underline;
	text-underline-offset: 3px;
	transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.footer-attribution .author-link:hover {
	color: #047857;
	text-decoration-color: #047857;
}

[data-theme="dark"] .footer-attribution {
	color: #94a3b8;
}

[data-theme="dark"] .footer-attribution .author-link {
	color: #10b981;
}

[data-theme="dark"] .footer-attribution .author-link:hover {
	color: #34d399;
}

/* ==========================================================================
   10. MOBILE OPTIMIZATION OVERRIDES (< 768px & < 576px)
   ========================================================================== */
@media (max-width: 991px) {
	.undar-nav-menu {
		display: none !important;
	}
	.hero-section {
		text-align: center;
	}
	.hero-text-col {
		align-items: center;
	}
	.hero-slogan {
		margin-left: auto;
		margin-right: auto;
	}
	.hero-ctas {
		justify-content: center;
	}
	.hero-trust-note {
		justify-content: center;
	}
}

@media (max-width: 768px) {
	.undar-navbar {
		padding: 0.55rem 0;
	}
	.undar-logo-img {
		height: 32px;
		max-width: 120px;
	}
	.undar-logo-text {
		font-size: 1.02rem;
	}
	.undar-nav-actions {
		gap: 8px;
	}
	.undar-theme-btn {
		width: 32px;
		height: 32px;
		font-size: 0.9rem;
	}
	.undar-btn-login {
		padding: 4px 9px;
		font-size: 0.78rem;
	}
	.undar-btn-user {
		padding: 4px 9px;
		font-size: 0.78rem;
	}

	/* Hero Text */
	.hero-section {
		padding: 2.25rem 0 1.5rem;
	}
	.hero-tag-badge {
		font-size: 0.7rem;
		padding: 4px 11px;
		margin-bottom: 0.75rem;
	}
	.hero-title {
		font-size: 1.75rem;
		line-height: 1.22;
		letter-spacing: -0.5px;
		margin-bottom: 0.65rem;
	}
	.hero-slogan {
		font-size: 0.92rem;
		line-height: 1.5;
		margin-bottom: 1.25rem;
	}
	.hero-ctas {
		display: flex;
		flex-direction: row;
		justify-content: center;
		gap: 8px;
		width: 100%;
		max-width: 340px;
		margin: 0 auto 1.25rem auto;
	}
	.btn-hero-explore,
	.btn-hero-submit {
		flex: 1 1 0;
		padding: 10px 12px;
		font-size: 0.78rem;
		border-radius: 10px;
		white-space: nowrap;
	}
	.hero-trust-note {
		font-size: 0.75rem;
		text-align: center;
		padding: 0 10px;
	}

	/* 3D Coverflow on Mobile */
	.coverflow-3d-wrapper {
		padding: 10px 0 5px;
		overflow: hidden !important;
	}
	.coverflow-stage {
		height: 220px;
	}
	.coverflow-card {
		width: 135px;
		height: 190px;
		border-radius: 10px;
	}
	.coverflow-card-inner {
		border-width: 2px;
		border-radius: 10px;
	}
	.coverflow-card.active {
		transform: translate3d(0, 0, 45px) rotateY(0deg) scale(1.05);
		z-index: 10;
	}
	.coverflow-card.prev-1 {
		transform: translate3d(-68px, 0, -20px) rotateY(20deg) scale(0.85);
		opacity: 0.85;
		z-index: 5;
	}
	.coverflow-card.next-1 {
		transform: translate3d(68px, 0, -20px) rotateY(-20deg) scale(0.85);
		opacity: 0.85;
		z-index: 5;
	}
	/* HIDE 2nd outer cards on mobile so they NEVER cause horizontal page overflow */
	.coverflow-card.prev-2,
	.coverflow-card.next-2 {
		display: none !important;
		opacity: 0 !important;
		visibility: hidden !important;
	}
	.coverflow-controls {
		gap: 10px;
		margin-top: 10px;
	}
	.coverflow-btn {
		width: 30px;
		height: 30px;
		font-size: 0.85rem;
	}
	.coverflow-dots {
		max-width: 180px;
	}
	.cf-dot {
		width: 5px;
		height: 5px;
	}
	.cf-dot.active {
		width: 14px;
	}
	.coverflow-current-title {
		font-size: 0.84rem;
		padding: 0 12px;
	}

	/* Search & Filter Box on Mobile */
	.search-filter-section {
		margin-bottom: 1.5rem;
	}
	.search-filter-box {
		padding: 14px;
		border-radius: 14px;
	}
	.search-input-wrapper {
		margin-bottom: 12px;
	}
	.search-icon {
		left: 12px;
		font-size: 1rem;
	}
	.journal-search-input {
		padding: 10px 34px 10px 38px;
		font-size: 0.86rem;
		border-radius: 10px;
	}
	.clear-search-btn {
		right: 10px;
		font-size: 1rem;
	}
	/* Smooth Horizontal Swipeable Category Pills on Mobile */
	.category-pills-wrapper {
		display: flex;
		flex-wrap: nowrap;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
		padding-bottom: 8px;
		margin-bottom: 8px;
		scrollbar-width: none;
		-ms-overflow-style: none;
	}
	.category-pills-wrapper::-webkit-scrollbar {
		display: none;
	}
	.cat-pill {
		flex-shrink: 0;
		font-size: 0.76rem;
		padding: 5px 12px;
		white-space: nowrap;
	}
	.results-counter {
		font-size: 0.76rem;
	}
}

@media (max-width: 576px) {
	/* Journal Cards on Compact Mobile Screens */
	.journal-card-body {
		padding: 14px;
		gap: 12px;
		flex-direction: row !important; /* Keep horizontal like a sleek app */
		align-items: flex-start;
	}
	.journal-cover-col {
		width: 90px;
		flex-shrink: 0;
	}
	.journal-cover-img {
		height: 130px;
		border-radius: 8px;
	}
	.journal-title {
		font-size: 0.96rem;
		line-height: 1.3;
		margin-bottom: 6px;
	}
	.badge-ojs, .badge-category {
		font-size: 0.66rem;
		padding: 2px 7px;
	}
	.journal-meta-table {
		gap: 2px;
		font-size: 0.72rem;
	}
	.meta-label {
		width: 80px;
	}
	.meta-separator {
		width: 8px;
	}
	.journal-actions-row {
		margin-top: 8px !important;
		padding-top: 8px !important;
		gap: 6px !important;
	}
	.btn-read-more,
	.btn-visit-site {
		padding: 6px 8px;
		font-size: 0.74rem;
		border-radius: 6px;
	}
}

/* ==========================================================================
   11. PROFESSIONAL DEDICATED LOGIN PAGE STYLING
   ========================================================================== */
.undar-login-page-bg {
	min-height: calc(90vh - 120px);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 3rem 1rem;
	position: relative;
	width: 100%;
}

.undar-login-container {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	width: 100%;
	max-width: 450px;
	position: relative;
	z-index: 2;
}

.undar-login-card {
	background: var(--undar-surface);
	border: 1px solid var(--undar-border);
	border-radius: 20px;
	padding: 2.75rem 2.25rem;
	width: 100%;
	box-shadow: 0 20px 45px -10px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(226, 232, 240, 0.8);
	transition: all 0.3s ease;
}

[data-theme="dark"] .undar-login-card {
	box-shadow: 0 20px 45px -10px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.undar-login-avatar {
	width: 62px;
	height: 62px;
	border-radius: 50%;
	background: linear-gradient(135deg, rgba(30, 64, 175, 0.12), rgba(59, 130, 246, 0.22));
	color: var(--undar-primary);
	font-size: 1.85rem;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto 14px auto;
	box-shadow: 0 6px 18px rgba(30, 64, 175, 0.18);
	border: 2px solid rgba(255, 255, 255, 0.8);
}

[data-theme="dark"] .undar-login-avatar {
	background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(30, 64, 175, 0.4));
	color: #60a5fa;
	border-color: rgba(255, 255, 255, 0.12);
}

.undar-login-title {
	font-size: 1.65rem;
	font-weight: 800;
	letter-spacing: -0.5px;
	color: var(--undar-text);
	margin-bottom: 4px;
}

.undar-login-subtitle {
	font-size: 0.85rem;
	color: var(--undar-text-muted);
	margin-bottom: 1.5rem;
	line-height: 1.4;
}

.undar-form-label {
	font-size: 0.84rem;
	font-weight: 600;
	color: var(--undar-text-secondary);
	margin-bottom: 6px;
}

.undar-login-input {
	width: 100%;
	height: 48px;
	padding: 10px 16px;
	border-radius: 12px !important;
	border: 1.5px solid var(--undar-border);
	background: var(--undar-surface-alt);
	color: var(--undar-text);
	font-size: 0.94rem;
	transition: all 0.2s ease;
	outline: none;
}

.undar-login-input:focus {
	background: var(--undar-surface);
	border-color: var(--undar-primary);
	box-shadow: 0 0 0 4px rgba(30, 64, 175, 0.12);
}

.undar-password-input {
	padding-right: 48px !important;
}

.undar-password-toggle-btn {
	position: absolute;
	right: 12px;
	top: 50%;
	transform: translateY(-50%);
	background: none;
	border: none;
	color: var(--undar-text-muted);
	font-size: 1.15rem;
	cursor: pointer;
	padding: 6px 8px;
	z-index: 10;
	line-height: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: color 0.2s ease;
}

.undar-password-toggle-btn:hover {
	color: var(--undar-primary);
}

.undar-forgot-link {
	font-size: 0.8rem;
	font-weight: 600;
	color: var(--undar-primary);
	text-decoration: none;
}

.undar-forgot-link:hover {
	text-decoration: underline;
}

.undar-check-label {
	font-size: 0.82rem;
	color: var(--undar-text-secondary);
	cursor: pointer;
	user-select: none;
}

/* Captcha Security Card */
.undar-captcha-wrapper {
	background: var(--undar-surface-alt);
	border: 1.5px solid var(--undar-border);
	border-radius: 14px;
	padding: 14px 16px;
	width: 100%;
}

.undar-captcha-badge {
	background: var(--undar-primary);
	color: #ffffff;
	font-family: 'Outfit', monospace;
	font-size: 0.94rem;
	font-weight: 800;
	padding: 4px 14px;
	border-radius: 20px;
	letter-spacing: 0.8px;
	box-shadow: 0 2px 8px rgba(30, 64, 175, 0.25);
}

[data-theme="dark"] .undar-captcha-badge {
	background: #2563eb;
}

.undar-btn-login-submit {
	height: 48px;
	border-radius: 12px !important;
	font-weight: 700 !important;
	font-size: 0.94rem !important;
	letter-spacing: 0.3px;
	background: linear-gradient(135deg, #1e40af, #2563eb) !important;
	border: none !important;
	box-shadow: 0 6px 18px rgba(30, 64, 175, 0.3) !important;
	display: flex !important;
	align-items: center;
	justify-content: center;
	transition: all 0.25s ease !important;
}

.undar-btn-login-submit:hover {
	background: linear-gradient(135deg, #1d4ed8, #1e40af) !important;
	box-shadow: 0 8px 24px rgba(30, 64, 175, 0.4) !important;
	transform: translateY(-1px);
}

.undar-register-link {
	font-weight: 600;
	color: var(--undar-primary);
	text-decoration: none;
}

.undar-register-link:hover {
	text-decoration: underline;
}

.undar-login-trust-footer {
	font-size: 0.78rem;
	color: var(--undar-text-muted);
}

/* ==========================================================================
   12. PROFESSIONAL REGISTRATION PAGE STYLING
   ========================================================================== */
.undar-register-container {
	max-width: 860px;
	position: relative;
	z-index: 2;
}

.undar-register-card {
	background: var(--undar-surface);
	border: 1px solid var(--undar-border);
	border-radius: 20px;
	padding: 2.75rem 2.5rem;
	box-shadow: 0 20px 45px -10px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(226, 232, 240, 0.8);
	transition: all 0.3s ease;
	width: 100%;
}

[data-theme="dark"] .undar-register-card {
	box-shadow: 0 20px 45px -10px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.undar-step-badge {
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: var(--undar-primary);
	color: #ffffff;
	font-weight: 700;
	font-size: 0.82rem;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	box-shadow: 0 2px 6px rgba(30, 64, 175, 0.3);
}

.undar-context-box {
	background: var(--undar-surface-alt);
	border: 1px solid var(--undar-border) !important;
	transition: all 0.2s ease;
}

.undar-context-box:hover {
	border-color: var(--undar-primary) !important;
	background: var(--undar-surface);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

@media (max-width: 768px) {
	.undar-register-card {
		padding: 2rem 1.25rem;
		border-radius: 16px;
	}
}

@media (max-width: 576px) {
	.undar-login-card {
		padding: 2rem 1.5rem;
		border-radius: 16px;
	}
	.undar-login-title {
		font-size: 1.45rem;
	}
	.undar-login-avatar {
		width: 54px;
		height: 54px;
		font-size: 1.6rem;
	}
}
