:root {
  --primary: #0c2d48;
  --accent: #1f4e79;
  --light: #f5f7fa;
  --border: #e2e6ea;
  --text: #222;
}

/* =========================================================
   RESET
   ========================================================= */

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background: #ffffff;
  color: var(--text);
  line-height: 1.7;
}

/* =========================================================
   HEADER
   ========================================================= */

header {
  background: var(--primary);
  color: white;
  padding: 60px 20px;
  text-align: center;
}

header h1 {
  margin: 0;
  font-size: 2.4rem;
  font-weight: 600;
  letter-spacing: 1px;
}

header p {
  margin-top: 15px;
  font-weight: 300;
  color: #d8e3ec;
}

/* =========================================================
   NAVIGATION
   ========================================================= */

nav {
  background: white;
  border-bottom: 1px solid var(--border);
  padding: 15px 20px;
  text-align: center;
}

.nav-container {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

nav a,
.dropbtn {
  padding: 15px 18px;
  text-decoration: none;
  color: var(--primary);
  font-weight: 500;
  position: relative;
  display: inline-block;
}

/* =========================================================
   ACTIVE PAGE
   ========================================================= */

nav a.active {
  color: var(--accent);
}

nav a.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 25%;
  width: 50%;
  height: 3px;
  background: var(--accent);
}

/* =========================================================
   DROPDOWN
   ========================================================= */

.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-content {
  display: none;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  background: white;
  min-width: 200px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--border);
  z-index: 1000;
  text-align: left;
}

.dropdown-content a {
  display: block;
  padding: 12px 16px;
  color: var(--primary);
}

.dropdown-content a:hover {
  background: var(--light);
}

.dropdown:hover .dropdown-content {
  display: block;
}

/* =========================================================
   MAIN CONTENT
   ========================================================= */

.container {
  max-width: 900px;
  margin: 60px auto;
  padding: 0 20px;
}

section {
  margin-bottom: 70px;
}

h2 {
  color: var(--primary);
  font-size: 1.6rem;
  margin-bottom: 20px;
  border-bottom: 2px solid var(--border);
  padding-bottom: 8px;
}

p {
  margin-bottom: 15px;
  text-align: justify;
}

a {
  color: var(--accent);
}

.highlight {
  background: var(--light);
  padding: 20px;
  border-left: 4px solid var(--primary);
  border-radius: 4px;
}

/* =========================================================
   LISTS
   ========================================================= */

ul {
  list-style-type: disc;
  padding-left: 40px;
  margin: 20px 0;
}

ul ul {
  list-style-type: circle;
  padding-left: 30px;
}

ul li {
  line-height: 1.6;
}

/* =========================================================
   MEMORIAL
   ========================================================= */

.memorial-item {
  border: 1px solid #999;
  padding: 10px 15px;
  margin-bottom: 8px;
  background: #fff;
  font-style: italic;
}

/* =========================================================
   TEXT + IMAGE
   ========================================================= */

.text-image-wrapper {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  flex-wrap: wrap;
}

.text-image-wrapper .text {
  flex: 1;
  min-width: 250px;
}

.text-image-wrapper .image {
  flex: 0 0 250px;
}

.text-image-wrapper .image img {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid #ddd;
  border-radius: 4px;
}

/* =========================================================
   ACCORDION
   ========================================================= */

.accordion {
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 6px;
  background: #f9f9f9;
  overflow: hidden;
}

.accordion-title {
  width: 100%;
  background: #f5f7fa;
  color: var(--primary);
  cursor: pointer;
  padding: 15px 20px;
  text-align: left;
  border: none;
  outline: none;
  font-weight: 600;
  font-size: 1.1em;
  position: relative;
  transition: background 0.3s ease;
}

.accordion-title:hover {
  background-color: #d0e4f2;
}

/* Săgeata: ▶ când este închisă */
.accordion-title::after {
  content: "\25B6";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.9rem;
  color: var(--primary);
  transition: transform 0.3s ease;
}

/* Săgeata: ▼ când este deschisă */
.accordion-title.active::after {
  transform: translateY(-50%) rotate(90deg);
}

/* Conținut ascuns */
.accordion-content {
  max-height: 0;
  overflow-y: auto;
  padding: 0 15px;
  transition:
    max-height 0.35s ease,
    padding 0.35s ease;
}

/*
   Notă:
   JavaScript-ul tău setează max-height direct pe element,
   deci această regulă este doar fallback pentru starea activă.
*/
.accordion-title.active + .accordion-content {
  padding: 15px;
}

/* =========================================================
   ACADEMIC TABLE
   ========================================================= */

.table-wrapper {
  overflow-x: auto;
  margin-top: 10px;
}

.academic-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
}

.academic-table th,
.academic-table td {
  border: 1px solid #999;
  padding: 12px 15px;
  text-align: left;
}

.academic-table th {
  background: #f5f7fa;
  color: var(--primary);
  font-weight: 600;
}

.academic-table tbody tr:nth-child(even) {
  background: #fafafa;
}

/* =========================================================
   GO TO TOP BUTTON
   ========================================================= */

#goTopBtn {
  position: fixed;
  bottom: 25px;
  right: 25px;
  display: none;
  z-index: 9999;

  width: 50px;
  height: 50px;

  background-color: #222;
  color: white;
  border: none;
  border-radius: 12px;

  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  cursor: pointer;

  align-items: center;
  justify-content: center;

  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;

  transform: rotate(-90deg);
}

#goTopBtn:hover {
  background-color: #444;
}

/* =========================================================
   LANGUAGE SWITCHER
   ========================================================= */

.language-switcher {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 15px;
}

.lang-btn {
  display: inline-block;
  padding: 5px 12px;
  border: 1px solid var(--primary);
  border-radius: 4px;
  text-decoration: none;
  color: var(--primary);
  background-color: #fff;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.2s ease;
}

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

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

/* =========================================================
   NEWS TICKER
   ========================================================= */

.news-ticker {
  width: fit-content;
  max-width: 90%;
  margin: 18px auto;
  display: flex;
  align-items: center;
  background: #f5f5f5;
  border: 1px solid #ddd;
  border-radius: 4px;
  overflow: hidden;
  height: 40px;
}

.news-label {
  flex-shrink: 0;
  background: #2c5f8a;
  color: white;
  font-weight: 600;
  font-size: 12px;
  padding: 12px 15px;
  z-index: 2;
}

.ticker-wrapper {
  overflow: hidden;
  white-space: nowrap;
  width: 800px;
}

.ticker-content {
  display: inline-flex;
  gap: 70px;
  padding-left: 100%;
  animation: ticker-scroll 25s linear infinite;
}

.ticker-content span {
  font-size: 14px;
  color: #333;
}

.ticker-content:hover {
  animation-play-state: paused;
}

@keyframes ticker-scroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-100%);
  }
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 768px) {

  header {
    padding: 40px 15px;
  }

  header h1 {
    font-size: 1.8rem;
  }

  .nav-container {
    flex-direction: column;
    align-items: center;
  }

  nav a,
  .dropbtn {
    padding: 12px;
  }

  .dropdown-content {
    position: static;
    transform: none;
    box-shadow: none;
    border: none;
    text-align: center;
  }

  .dropdown-content a {
    padding: 10px;
  }

  .accordion-title {
    font-size: 1em;
    padding: 12px 15px;
  }

  .academic-table th,
  .academic-table td {
    padding: 6px 8px;
  }

  .ticker-wrapper {
    width: 300px;
  }

  .ticker-content span {
    font-size: 12px;
  }
}

/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 600px) {

  .academic-table th,
  .academic-table td {
    padding: 8px 10px;
    font-size: 0.9rem;
  }
}

/* =========================================================
   MOBILE NEWS TICKER
   ========================================================= */

@media (max-width: 700px) {

  .news-ticker {
    max-width: 95%;
  }

  .ticker-wrapper {
    width: 300px;
  }

  .ticker-content span {
    font-size: 12px;
  }
}

/* =========================================================
   FOOTER
   ========================================================= */

footer {
  text-align: center;
  padding: 30px 20px;
  background: var(--light);
  color: #555;
  font-size: 0.9rem;
  border-top: 1px solid var(--border);
  margin-top: 60px;
}