/* Base Typography & Layout */
:root {
	--bg: #ffffff;
	--panel: #ffffff;
	--text: #1b1f24;
	--muted: #5a6b7d;
	--brand: #0e4acc;
	--brand-strong: #0b3ea9;
	--accent: #1ea7ff;
	--border: #e6ebf1;
	--shadow: 0 2px 12px rgba(16,24,40,0.08);
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
	margin: 0;
	font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
	background: var(--bg);
	color: var(--text);
	line-height: 1.7;
}
img { max-width: 100%; display: block; }

.container { width: min(1040px, 92%); margin: 0 auto; }

/* Utility Classes */
.text-center { text-align: center; }

/* Latest Articles Section */
.latest-articles {
    padding: 60px 0;
    background: #f8fafc;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin: 32px 0;
}

.article-card {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 24px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.article-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.article-meta {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 0.875rem;
}

.article-type {
    color: var(--brand);
    font-weight: 500;
}

.article-date {
    color: var(--muted);
}

.article-card h3 {
    margin: 0 0 12px 0;
    font-size: 1.25rem;
}

.article-card h3 a {
    color: var(--text);
    text-decoration: none;
}

.article-card h3 a:hover {
    color: var(--brand);
}

.article-card p {
    color: var(--muted);
    margin: 0;
    font-size: 0.9375rem;
}

/* Footer Styles */
.site-footer {
    background: #f1f5f9;
    padding: 48px 0 0;
}

.footer-inner {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 48px;
    margin-bottom: 48px;
}

.footer-section h3 {
    font-size: 1.125rem;
    margin: 0 0 16px;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section ul li {
    margin-bottom: 8px;
}

.footer-section ul a {
    color: var(--muted);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-section ul a:hover {
    color: var(--brand);
}

.social-links {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

.social-links a {
    color: var(--muted);
    transition: color 0.2s ease;
}

.social-links a:hover {
    color: var(--brand);
}

.footer-bottom {
    border-top: 1px solid var(--border);
    padding: 24px 0;
    font-size: 0.875rem;
    color: var(--muted);
}

.footer-bottom p {
    margin: 0;
}

/* Header */
.site-header { 
	position: sticky; 
	top: 0; 
	z-index: 10; 
	background: rgba(255,255,255,0.95); 
	backdrop-filter: saturate(180%) blur(12px); 
	border-bottom: 1px solid var(--border);
	box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.header-inner { 
	display: grid; 
	grid-template-columns: auto 1fr; 
	align-items: center; 
	gap: 24px; 
	padding: 12px 0; 
}
.logo-section { display: flex; align-items: center; }
.logo { 
	display: flex; 
	align-items: center; 
	gap: 12px; 
	text-decoration: none; 
	color: var(--text);
	transition: transform 0.2s ease;
}
.logo:hover { transform: translateY(-1px); }
.logo img { 
	height: 48px; 
	width: auto; 
	display: block;
	filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}
.logo-text { display: flex; flex-direction: column; }
.journal-name { 
	font-weight: 700; 
	font-size: 20px; 
	color: var(--brand);
	line-height: 1.2;
}
.journal-tagline { 
	font-size: 12px; 
	color: var(--muted); 
	font-weight: 500;
	line-height: 1.2;
	max-width: 200px;
}
.site-nav { 
	justify-self: end; 
	display: flex; 
	align-items: center;
}
.site-nav ul { 
	list-style: none; 
	margin: 0; 
	padding: 0; 
	display: flex; 
	gap: 4px; 
	align-items: center; 
}
.site-nav > ul > li {
	position: relative;
}
.site-nav a { 
	text-decoration: none; 
	color: var(--muted); 
	padding: 12px 16px; 
	border-radius: 6px; 
	font-weight: 500;
	font-size: 15px;
	transition: all 0.2s ease;
	position: relative;
	display: flex;
	align-items: center;
	gap: 4px;
}
.site-nav a[aria-current="page"], .site-nav a:hover { 
	color: var(--brand); 
	background: rgba(14, 74, 204, 0.08);
}
.site-nav a[aria-current="page"]::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 50%;
	transform: translateX(-50%);
	width: 24px;
	height: 2px;
	background: var(--brand);
	border-radius: 1px;
}

/* Dropdown Styles */
.dropdown {
	position: relative;
}
.dropdown-toggle::after {
	content: '▼';
	font-size: 10px;
	transition: transform 0.2s ease;
}
.dropdown:hover .dropdown-toggle::after {
	transform: rotate(180deg);
}
.dropdown-menu {
	position: absolute;
	top: 100%;
	left: 0;
	background: #ffffff;
	border: 1px solid var(--border);
	border-radius: 8px;
	box-shadow: 0 8px 32px rgba(0,0,0,0.12);
	min-width: 180px;
	opacity: 0;
	visibility: hidden;
	transform: translateY(-10px);
	transition: all 0.2s ease;
	z-index: 1000;
	padding: 8px 0;
	margin-top: 4px;
}
.dropdown:hover .dropdown-menu {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}
.dropdown-menu li {
	margin: 0;
}
.dropdown-menu a {
	padding: 10px 16px;
	border-radius: 0;
	font-size: 14px;
	white-space: nowrap;
}
.dropdown-menu a:hover {
	background: rgba(14, 74, 204, 0.08);
	color: var(--brand);
}
.dropdown-menu a::after {
	display: none;
}
.nav-toggle { 
	display: none; 
	background: transparent; 
	border: 1px solid var(--border); 
	color: var(--text); 
	padding: 8px; 
	border-radius: 8px;
	flex-direction: column;
	gap: 3px;
	cursor: pointer;
	transition: all 0.2s ease;
}
.nav-toggle:hover { background: #f4f7fb; }
.hamburger {
	width: 18px;
	height: 2px;
	background: var(--text);
	border-radius: 1px;
	transition: all 0.3s ease;
}
.nav-toggle.active .hamburger:nth-child(1) {
	transform: rotate(45deg) translate(5px, 5px);
}
.nav-toggle.active .hamburger:nth-child(2) {
	opacity: 0;
}
.nav-toggle.active .hamburger:nth-child(3) {
	transform: rotate(-45deg) translate(7px, -6px);
}

/* Hero */
.hero { padding: 50px 0 18px; background: linear-gradient(180deg, #f8fbff, #ffffff 60%); border-bottom: 1px solid var(--border); }
.hero h1 { font-family: Georgia, 'Times New Roman', serif; font-weight: 700; letter-spacing: 0.2px; font-size: clamp(28px, 5vw, 44px); margin: 0 0 10px; color: #0b1f44; }
.lead { color: var(--muted); font-size: 18px; margin: 0 0 18px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.btn { display: inline-block; padding: 10px 16px; border-radius: 8px; text-decoration: none; background: #ffffff; color: var(--brand); border: 1px solid var(--border); box-shadow: var(--shadow); transition: background .2s ease, border-color .2s ease, transform .06s ease; }
.btn:hover { background: #f7fbff; border-color: #dbe5f1; }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--brand); border-color: var(--brand-strong); color: #ffffff; box-shadow: 0 2px 10px rgba(14,74,204,0.25); }
.btn.primary:hover { background: var(--brand-strong); }

/* Cards & Highlights */
.highlights { padding: 28px 0; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card { background: var(--panel); border: 1px solid var(--border); border-radius: 12px; padding: 18px; box-shadow: var(--shadow); }
.card h2 { margin-top: 0; font-family: Georgia, 'Times New Roman', serif; color: #0b1f44; }
.card .link { color: var(--brand); text-decoration: none; }
.card .link:hover { text-decoration: underline; }

/* Current Issue */
.current-issue-preview { padding: 10px 0 40px; }
.article-list { list-style: none; padding: 0; margin: 0 0 18px; }
.article-list li { padding: 12px 0; border-bottom: 1px dashed #d8e2ef; }
.article-list a { text-decoration: none; color: var(--text); display: grid; }
.article-title { font-weight: 700; }
.article-authors { color: var(--muted); font-size: 14px; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); background: #fafcff; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; padding: 18px 0; }
.footer-nav ul { list-style: none; padding: 0; margin: 0; display: flex; gap: 16px; }
.footer-nav a { color: var(--muted); text-decoration: none; }
.footer-nav a:hover { color: var(--brand); }
.copyright { padding: 10px 0 22px; color: var(--muted); font-size: 14px; }

/* Utilities */
.section { padding: 32px 0; }
.page-header { padding: 34px 0 12px; border-bottom: 1px solid var(--border); }
.page-header h1 { margin: 0 0 8px; font-family: Georgia, 'Times New Roman', serif; color: #0b1f44; }
.content { padding: 18px 0 32px; }
.content h2 { margin-top: 26px; font-family: Georgia, 'Times New Roman', serif; color: #0b1f44; }
.content a { color: var(--brand); }
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { border: 1px solid var(--border); padding: 10px; text-align: left; }

/* Responsive */
@media (max-width: 900px) {
	.grid-3 { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
	.nav-toggle { 
		display: flex; 
		background: transparent; 
		border: 1px solid var(--border); 
		color: var(--text); 
		padding: 8px; 
		border-radius: 8px;
		flex-direction: column;
		gap: 3px;
	}
	.site-nav { 
		display: none; 
		position: absolute; 
		right: 4%; 
		top: 70px; 
		background: #ffffff; 
		border: 1px solid var(--border); 
		border-radius: 12px; 
		box-shadow: 0 8px 32px rgba(0,0,0,0.12);
		padding: 16px;
		min-width: 200px;
	}
	.site-nav.open { display: block; }
	.site-nav ul { 
		flex-direction: column; 
		padding: 0; 
		gap: 4px; 
		width: 100%;
	}
	.site-nav a { 
		display: block; 
		padding: 12px 16px;
		border-radius: 8px;
		width: 100%;
		text-align: left;
	}
	.dropdown-menu {
		position: static;
		opacity: 1;
		visibility: visible;
		transform: none;
		box-shadow: none;
		border: none;
		background: rgba(14, 74, 204, 0.05);
		margin: 0;
		padding: 0;
		border-radius: 0;
	}
	.dropdown-menu li {
		margin: 0;
	}
	.dropdown-menu a {
		padding: 8px 16px 8px 32px;
		font-size: 14px;
		border-radius: 0;
	}
	.dropdown-toggle::after {
		display: none;
	}
	.logo-text .journal-tagline {
		display: none;
	}
	.footer-inner { flex-direction: column; gap: 10px; align-items: flex-start; }
}

/* Submission Form Styles */
.submission-form {
	background: #ffffff;
	border: 1px solid var(--border);
	padding: 20px;
	border-radius: 12px;
	box-shadow: 0 6px 24px rgba(11,31,68,0.06);
}
.submission-form .grid-3 {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 16px;
}
.submission-form .grid-3 > div { display: flex; flex-direction: column; }
.submission-form label { font-weight: 600; margin-bottom: 6px; color: #0b1f44; }
.submission-form input[type="text"],
.submission-form input[type="email"],
.submission-form input[type="file"],
.submission-form textarea {
	border: 1px solid var(--border);
	padding: 10px 12px;
	border-radius: 8px;
	background: #fbfdff;
	color: var(--text);
	font-size: 14px;
}
.submission-form textarea { resize: vertical; }
.submission-form small { color: var(--muted); margin-top: 6px; display: inline-block; }
.submission-form .full-width { grid-column: 1 / -1; }
.submission-form .file-info { font-size: 13px; color: var(--muted); margin-top: 6px; }
.submission-actions { display: flex; align-items: center; gap: 12px; margin-top: 12px; }
.alert { padding: 10px 14px; border-radius: 8px; font-size: 14px; }
.alert-success { background: #f0fbf6; color: #0a6b3a; border: 1px solid rgba(10,107,58,0.12); }
.alert-error { background: #fff6f6; color: #9b2a2a; border: 1px solid rgba(155,42,42,0.08); }

/* Success modal */
.modal-overlay { position: fixed; inset: 0; background: rgba(7,12,24,0.45); display: none; align-items: center; justify-content: center; z-index: 2000; }
.modal { background: white; padding: 20px; border-radius: 12px; width: min(600px, 94%); box-shadow: 0 12px 48px rgba(11,31,68,0.18); }
.modal h3 { margin-top: 0; }
.modal .modal-actions { display:flex; justify-content:flex-end; gap:8px; margin-top:12px; }

@media (max-width: 900px) {
	.submission-form .grid-3 { grid-template-columns: 1fr; }
}

