@charset "utf-8";

/* Reset */
@import url("https://unpkg.com/sanitize.css");
@import url("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/css/all.min.css");
@import url("animation.css");

/* =========================================================
   belkosmos.org — International theme
   Palette: navy #0d1b2a | gold #c9a84c | text #e8e8e8
   ========================================================= */

/* --- Google Fonts loaded in HTML --- */

html, body {
	margin: 0; padding: 0;
	font-size: 14px;
	height: 100%;
}

body {
	font-family: 'Inter', 'Segoe UI', sans-serif;
	-webkit-text-size-adjust: none;
	background: #0d1b2a;
	color: #e8e8e8;
	line-height: 1.8;
}

/* Text helpers */
.english-text  { font-family: 'Playfair Display', serif; }
.russian-text  { font-family: Georgia, 'Times New Roman', Times, serif; }
.greek-text    { font-family: Georgia, 'Times New Roman', Times, serif; }
.gold-text     { color: #c9a84c; }

/* Reset */
figure  { margin: 0; }
dd      { margin: 0; }
nav     { margin: 0; padding: 0; }
table   { border-collapse: collapse; }
img     { border: none; max-width: 100%; height: auto; vertical-align: middle; }
video   { max-width: 100%; }
iframe  { width: 100%; }
section + section { padding-top: 50px; }

/* Links */
a { color: #c9a84c; transition: 0.3s; text-decoration: none; }
a:hover { opacity: 0.75; }

/* =====================
   Container
   ===================== */
#container {
	height: 100%;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
}

/* =====================
   Header
   ===================== */
header {
	position: fixed;
	z-index: 100;
	top: 0; left: 0;
	width: 100%;
	display: flex;
	align-items: center;
	padding: 6px 20px;
	background: rgba(10, 21, 32, 0.95);
	backdrop-filter: blur(8px);
	border-bottom: 1px solid rgba(201, 168, 76, 0.3);
	color: #e8e8e8;
	box-sizing: border-box;
}

header a { color: #e8e8e8; }

/* Logo */
header #logo { order: 1; margin: 0 0 0 50px; width: 220px; }
header #logo img { display: block; }

/* Header icons */
#header-icon {
	order: 2;
	font-size: 18px;
	margin-left: auto;
	display: flex;
	align-items: center;
	gap: 10px;
}
#header-icon i { padding: 5px; }

/* Language switcher */
#lang-switch {
	order: 3;
	margin-left: 15px;
	font-size: 12px;
	font-family: 'Inter', sans-serif;
	letter-spacing: 0.05em;
}
#lang-switch a {
	display: inline-block;
	border: 1px solid #c9a84c;
	border-radius: 3px;
	padding: 3px 10px;
	color: #c9a84c;
	transition: 0.3s;
}
#lang-switch a:hover { background: #c9a84c; color: #0d1b2a; }

/* Hamburger */
#menubar_hdr {
	position: fixed;
	z-index: 101;
	cursor: pointer;
	left: 10px; top: 3px;
	padding: 10px 8px;
	width: 40px; height: 40px;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	order: 0;
	background: transparent;
}
#menubar_hdr span {
	display: block;
	transition: 0.3s;
	border-top: 2px solid #c9a84c;
}
#menubar_hdr.ham span:nth-of-type(1),
#menubar_hdr.ham span:nth-of-type(3) { transform-origin: center; width: 26px; }
#menubar_hdr.ham span:nth-of-type(1) { transform: rotate(45deg) translate(6px, 7px); }
#menubar_hdr.ham span:nth-of-type(3) { transform: rotate(-45deg) translate(6px, -7px); }
#menubar_hdr.ham span:nth-of-type(2) { display: none; }

/* =====================
   Sidebar menu
   ===================== */
#menubar { height: 0; overflow: hidden; }
#menubar ul { list-style: none; margin: 0; padding: 0; }

#menubar_bg {
	position: fixed; top: 0; left: 0;
	width: 100%; height: 100%;
	background: rgba(0,0,0,0.4);
	opacity: 0; visibility: hidden;
	transition: all 0.5s;
	z-index: 99;
}
#menubar.db ~ #menubar_bg { opacity: 1; visibility: visible; }

#menubar.db {
	position: fixed; overflow: auto; z-index: 100;
	left: 0; top: 50px;
	width: 200px; height: 100%;
	padding: 70px 0 0;
	background: rgba(10, 21, 32, 0.97);
	color: #e8e8e8;
	border-right: 1px solid rgba(201,168,76,0.2);
	animation: animation1 0.2s both;
}
#menubar.db a { color: #e8e8e8; }
#menubar.db li.current a { background: rgba(201,168,76,0.2); color: #c9a84c; }

/* Menu items */
#menubar li {
	margin-bottom: 28px;
	font-size: 0.8em;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}
#menubar a { display: block; text-decoration: none; text-align: center; padding: 2px 5px; }

#close_list { margin: 1rem 0 0; padding: 0; list-style: none; }
#close_list li { position: relative; }
#close_list ul { display: none; padding: .3rem 1rem; list-style: none; transition: 0.2s; }
#close_list a { display: block; padding: .3rem 1rem; }
#close_list a:hover { background-color: rgba(201,168,76,0.15); }

#close_list input {
	position: absolute; white-space: nowrap;
	width: 1px; height: 1px; overflow: hidden;
	border: 0; padding: 0;
	clip: rect(0 0 0 0); clip-path: inset(50%); margin: -1px;
}
#close_list label { position: relative; display: block; padding: .5rem 1rem .5rem 2rem; text-align: center; }
#close_list label::before { content: "▼"; position: absolute; top: 0; left: .5rem; color: #c9a84c; }
#close_list input:checked ~ label::before { content: "▲"; top: 25%; }
#close_list input:checked ~ ul { display: block; }

/* =====================
   Hero Section (starfield)
   ===================== */
.hero-section {
	position: relative;
	width: 100%;
	height: 100vh;
	min-height: 500px;
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-top: 50px; /* offset fixed header */
}

#starfield {
	position: absolute;
	top: 0; left: 0;
	width: 100%; height: 100%;
	z-index: 0;
}

.hero-content {
	position: relative;
	z-index: 1;
	text-align: center;
	padding: 20px;
}

.hero-org-name {
	font-family: 'Inter', sans-serif;
	font-size: 0.85rem;
	letter-spacing: 0.35em;
	text-transform: uppercase;
	color: #c9a84c;
	margin-bottom: 18px;
	opacity: 0.9;
}

.hero-title {
	font-family: 'Playfair Display', serif;
	font-size: clamp(2rem, 5vw, 3.8rem);
	font-weight: 700;
	color: #ffffff;
	line-height: 1.2;
	margin: 0 0 20px;
	text-shadow: 0 2px 20px rgba(0,0,0,0.6);
}

.hero-abbreviation {
	font-family: 'Playfair Display', serif;
	font-size: clamp(1rem, 2vw, 1.4rem);
	color: rgba(255,255,255,0.6);
	letter-spacing: 0.2em;
	margin-bottom: 30px;
}

.hero-motto {
	font-family: 'Playfair Display', serif;
	font-style: italic;
	font-size: clamp(1rem, 2vw, 1.25rem);
	color: #c9a84c;
	border-top: 1px solid rgba(201,168,76,0.4);
	border-bottom: 1px solid rgba(201,168,76,0.4);
	padding: 12px 30px;
	display: inline-block;
}

.hero-scroll-hint {
	position: absolute;
	bottom: 30px;
	left: 50%;
	transform: translateX(-50%);
	z-index: 1;
	color: rgba(255,255,255,0.4);
	font-size: 0.75rem;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	animation: pulse 2s infinite;
}

@keyframes pulse {
	0%, 100% { opacity: 0.4; }
	50%       { opacity: 0.9; }
}

/* =====================
   Main content
   ===================== */
main {
	flex: 1;
	margin: 60px 50px 40px;
	max-width: 960px;
}

main h2 {
	margin: 0 0 20px;
	font-family: 'Playfair Display', serif;
	font-weight: 700;
	font-size: 1.6rem;
	color: #ffffff;
	border-bottom: 3px solid #c9a84c;
	padding-bottom: 8px;
}
main h2 span.uline {
	display: inline-block; position: relative;
	border-bottom: 3px solid #c9a84c;
	bottom: -3px;
	padding: 0 20px;
}

main h3 {
	margin: 0 0 15px;
	font-family: 'Playfair Display', serif;
	font-size: 1.1rem;
	font-weight: 600;
	color: #c9a84c;
	background: rgba(255,255,255,0.05);
	padding: 4px 16px;
	border-left: 3px solid #c9a84c;
	border-radius: 0 3px 3px 0;
}

main h4 {
	font-family: 'Playfair Display', serif;
	font-size: 1rem;
	color: #e8e8e8;
	margin: 12px 0 6px;
}

main p { margin: 0 0 20px; line-height: 1.9; }

/* Table */
table.ta1 {
	width: 100%;
	border-collapse: collapse;
	border: 1px solid rgba(201,168,76,0.2);
	margin-bottom: 30px;
}
table.ta1 th, table.ta1 td {
	padding: 10px 16px;
	border: 1px solid rgba(201,168,76,0.15);
	text-align: left;
}
table.ta1 th {
	background: rgba(201,168,76,0.1);
	color: #c9a84c;
	font-family: 'Inter', sans-serif;
	font-size: 0.85em;
	text-transform: uppercase;
	letter-spacing: 0.08em;
}

/* =====================
   News (dl#new)
   ===================== */
#new {
	margin: 0;
	display: flex;
	flex-wrap: wrap;
	padding: 0 10px;
}
#new dt, #new dd { padding: 6px 0; }
#new dt {
	width: 16em;
	display: flex;
	justify-content: space-between;
}
#new dd { width: calc(100% - 16em); }

/* Category badges */
#new dt span {
	display: inline-block;
	width: 7em;
	background: #555;
	color: #fff;
	font-size: 0.8em;
	text-align: center;
	border-radius: 3px;
	margin-right: 1em;
	align-self: flex-start;
	line-height: 1.5;
	position: relative; top: 0.4em;
}
#new dt span.icon-research  { background: #c9a84c; color: #0d1b2a; }
#new dt span.icon-dev       { background: #3a6fd8; }
#new dt span.icon-announce  { background: #666; }
#new dt span.icon-event     { background: #8a4fc7; }

@media screen and (max-width: 767px) {
	#new dt { width: 100%; display: block; margin-bottom: 5px; }
	#new dd { width: 100%; }
}

/* =====================
   Cards / staff / projects
   ===================== */
.card-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 24px;
	margin-bottom: 40px;
}

.card {
	width: calc(50% - 12px);
	background: rgba(255,255,255,0.04);
	border: 1px solid rgba(201,168,76,0.2);
	border-radius: 6px;
	padding: 20px;
	transition: border-color 0.3s;
}

.card:hover { border-color: #c9a84c; }
.card.officer { border-left: 4px solid #c9a84c; }
.card.officer::before {
	content: "★ Officer";
	display: inline-block;
	background: #c9a84c;
	color: #0d1b2a;
	font-size: 0.75rem;
	padding: 2px 8px;
	border-radius: 3px;
	margin-bottom: 8px;
}
.card h4 { margin: 6px 0; font-size: 1rem; color: #c9a84c; }
.card h4 span { font-size: 0.8em; color: #aaa; margin-left: 8px; }
.card p { font-size: 0.88rem; margin: 0; line-height: 1.6; color: #ccc; }

@media screen and (max-width: 767px) { .card { width: 100%; } }

/* Publications */
.pub-item {
	background: rgba(255,255,255,0.04);
	border: 1px solid rgba(201,168,76,0.2);
	border-radius: 6px;
	padding: 22px 26px;
	margin-bottom: 24px;
	transition: border-color 0.3s;
}
.pub-item:hover { border-color: #c9a84c; }
.pub-item .pub-tag {
	display: inline-block;
	background: rgba(201,168,76,0.15);
	color: #c9a84c;
	font-size: 0.75rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	padding: 2px 10px;
	border-radius: 3px;
	margin-bottom: 10px;
}
.pub-item h3 {
	font-family: 'Playfair Display', serif;
	font-size: 1.1rem;
	color: #fff;
	margin: 0 0 8px;
	background: none;
	border: none;
	padding: 0;
}
.pub-item .pub-authors { font-size: 0.85rem; color: #aaa; margin-bottom: 6px; }
.pub-item .pub-abstract {
	font-size: 0.85rem;
	color: #bbb;
	line-height: 1.7;
	margin-bottom: 12px;
}
.pub-item .pub-links a {
	display: inline-block;
	border: 1px solid #c9a84c;
	color: #c9a84c;
	padding: 4px 14px;
	border-radius: 3px;
	font-size: 0.8rem;
	margin-right: 8px;
	transition: 0.3s;
}
.pub-item .pub-links a:hover { background: #c9a84c; color: #0d1b2a; }

/* =====================
   Slogan card
   ===================== */
.slogan-card {
	background: rgba(255,255,255,0.04);
	border: 1px solid rgba(201,168,76,0.3);
	border-radius: 8px;
	padding: 30px;
	max-width: 560px;
	margin: 0 auto 30px;
	text-align: center;
}
.slogan-inner { border: 1px solid rgba(201,168,76,0.4); padding: 20px; border-radius: 6px; }
.slogan-title { color: #c9a84c; font-size: 1rem; text-transform: uppercase; letter-spacing: 0.15em; margin-bottom: 14px; }
.slogan-text { font-family: 'Playfair Display', serif; font-size: 1.3rem; line-height: 1.7; margin-bottom: 14px; }
.slogan-caption { font-size: 0.85rem; color: #aaa; font-style: italic; }

/* =====================
   Buttons
   ===================== */
.btn { text-align: center; }
.btn a, .btn input {
	display: inline-block; text-decoration: none; border: 1px solid #c9a84c;
	border-radius: 3px;
	padding: 10px 36px;
	font-size: 0.9rem;
	background: transparent;
	letter-spacing: 0.1em;
	color: #c9a84c;
	transition: 0.3s;
}
.btn a:hover { background: #c9a84c; color: #0d1b2a; }

/* =====================
   Footer
   ===================== */
footer {
	font-size: 0.7rem;
	background: rgba(10,21,32,0.95);
	border-top: 1px solid rgba(201,168,76,0.2);
	color: #888;
	text-align: center;
	padding: 14px;
}
footer a { color: #c9a84c; text-decoration: none; }

/* =====================
   Page-top button
   ===================== */
.pagetop {
	position: fixed; bottom: 20px; right: 20px; z-index: 200;
}
.pagetop a {
	display: flex; align-items: center; justify-content: center;
	width: 40px; height: 40px;
	background: #c9a84c;
	color: #0d1b2a;
	border-radius: 50%;
	font-size: 18px;
}

/* =====================
   Responsive: ≥900px (side nav revealed)
   ===================== */
@media screen and (min-width: 900px) {
	body { font-size: 15px; }

	header #logo { width: 260px; }

	#menubar.pc {
		display: block; height: auto; overflow: visible;
		position: fixed; left: 0; top: 50px;
		width: 200px;
		height: calc(100% - 50px);
		padding: 40px 0;
		background: rgba(10,21,32,0.97);
		border-right: 1px solid rgba(201,168,76,0.15);
		z-index: 50;
	}
	#menubar.pc a { color: #e8e8e8; }
	#menubar.pc li.current a { color: #c9a84c; background: rgba(201,168,76,0.1); }
	#menubar_hdr { display: none; }
	#menubar_bg  { display: none !important; }

	main  { margin: 80px 40px 40px 260px; }
	.hero-section { margin-top: 50px; }

	#new dt { width: 18em; }
	#new dd  { width: calc(100% - 18em); }
}
