
:root {
  --primary:linear-gradient(90deg, #1659a4 0%, #1c7ec0 25%, #1aa6c4 50%, #1cc9b0 75%, #2ec97e 100%);;
  --accent: #FFB81C;
  --text: #1a1a2e;
  --muted: #555566;
  --bg: #fafaf8;
  --card-bg: #ffffff;
  --border: #e8e8f0;
  --link: #1a5f8e;
}

/* ── Reset ── */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Source Serif 4', Georgia, serif;
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.7;
}

/* ── Navigation ── */
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 48px;
  background: #fff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 8px rgba(0,0,0,0.04);
}

.nav-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.01em;
}

.nav-links {
  display: flex;
  gap: 6px;
  list-style: none;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.88rem;
  padding: 7px 14px;
  border-radius: 4px;
  font-family: 'Source Serif 4', serif;
  font-weight: 300;
  letter-spacing: 0.02em;
  transition: all 0.2s;
}

.nav-links a:hover    { color: var(--primary); background: #f0f4ff; }
.nav-links a.active   { background: var(--primary); color: #fff; font-weight: 400; }

/* ── Page Container ── */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 52px 40px 0;
}

/* ── Profile Grid ── */
.profile-grid {
  text-align: justify;
  text-align-last: center;
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 56px;
  align-items: start;
}

/* ── Sidebar ── */
.sidebar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  animation: fadeInLeft 0.8s ease both;
}

@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(-24px); }
  to   { opacity: 1; transform: translateX(0); }
}

.profile-photo-wrap {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid var(--primary);
  box-shadow: 0 8px 32px rgba(0,53,148,0.15);
  margin-bottom: 28px;
  transition: box-shadow 0.3s;
}

.profile-photo-wrap:hover {
  box-shadow: 0 12px 40px rgba(0,53,148,0.25);
}

.profile-photo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.sidebar-roles {
  text-align: center;
  width: 90%;
}

.sidebar-roles p {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 4px;
}

.sidebar-roles a {
  color: var(--link);
  text-decoration: none;
  font-weight: 400;
}

.sidebar-roles a:hover { text-decoration: underline; }

/* ── Award Badges ── */
.award-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 16px 0 6px;
  padding: 10px 18px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  width: 100%;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

.award-badge .badge-logo {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #cc0000;
}

.award-badge .badge-logo.siim { color: #005a9c; }

.award-badge .badge-text {
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.3;
}

/* ── Sidebar Contact ── */
.sidebar-contact {
  margin-top: 24px;
  text-align: center;
}

.sidebar-contact p {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.8;
  font-style: italic;
}

/* ── Social Icons ── */
.social-icons {
  display: flex;
  gap: 16px;
  margin-top: 20px;
  justify-content: center;
}

.social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 700;
  transition: all 0.2s;
}

.social-icons a:hover {
  
  color: white;
  transform: translateY(-2px);
}

/* ── Main Profile Content ── */
.profile-content {
  animation: fadeInRight 0.8s ease both;
  animation-delay: 0.1s;
}

@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(24px); }
  to   { opacity: 1; transform: translateX(0); }
}

.profile-name {
  font-family: 'Playfair Display', serif;
  font-size: 2.1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 22px;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.profile-content p {
  color: #000000;
  margin-bottom: 18px;
  font-size: 0.97rem;
  font-weight: 400;
  width: 120%;
  max-width: none;
}

.profile-content a {
  color: var(--link);
  text-decoration: none;
  border-bottom: 1px solid rgba(0,53,148,0.25);
  transition: border-color 0.2s;
}

.profile-content a:hover { border-bottom-color: var(--primary); }

/* ── Consulting Box ── */
.consult-box {
  margin-top: 24px;
  padding: 18px 24px;
  background: linear-gradient(135deg, #f0f4ff 0%, #fff8e8 100%);
  border-left: 3px solid var(--primary);
  border-radius: 0 8px 8px 0;
  font-size: 0.92rem;
  color: var(--text);
}

.consult-box strong { font-weight: 600; color: var(--primary); }
.consult-box a      { color: var(--primary); font-weight: 500; }

/* ── Section Divider ── */
.section-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 52px 0 40px;
}

/* ── News Section ── */
.news-section {
  padding: 0 40px 60px;
  max-width: 1100px;
  margin: 0 auto;
  animation: fadeUp 0.9s ease both;
  animation-delay: 0.3s;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 24px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--accent);
  display: inline-block;
}

/* ── News List ── */
.news-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.news-list li {
  display: flex;
  gap: 14px;
  padding: 14px 18px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  align-items: flex-start;
  transition: box-shadow 0.2s, transform 0.2s;
}

.news-list li:hover {
  box-shadow: 0 4px 16px rgba(0,53,148,0.08);
  transform: translateX(4px);
}

.news-date {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--primary);
  white-space: nowrap;
  padding-top: 2px;
  min-width: 80px;
  font-family: 'Playfair Display', serif;
}

.news-text {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.6;
  font-weight: 300;
}

.news-text a {
  color: var(--link);
  text-decoration: none;
  border-bottom: 1px solid rgba(0,53,148,0.25);
}

.news-text a:hover { border-bottom-color: var(--primary); }

/* ── News Toggle Button ── */
.news-toggle {
  margin-top: 22px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 0.88rem;
  color: var(--muted);
  font-weight: 400;
  user-select: none;
  transition: color 0.2s;
}

.news-toggle:hover { color: var(--primary); }

.news-toggle-arrow {
  font-size: 0.75rem;
  transition: transform 0.3s;
}

.news-toggle.open .news-toggle-arrow { transform: rotate(90deg); }

/* ── Year Heading ── */
.year-heading {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--border);
  margin: 28px 0 18px;
  letter-spacing: -0.02em;
}

/* ── Old News Panel ── */
#old-news          { display: none; }
#old-news.visible  { display: block; }

/* ── Footer ── */
footer {
  background: var(--primary);
  color: rgba(255,255,255,0.7);
  text-align: center;
  padding: 24px;
  font-size: 0.8rem;
  margin-top: 40px;
}
