/* ==========================================================================
   Studenta eternă - Minimalist Clean Stylesheet
   ========================================================================== */

:root {
  --primary-color: #1D174B;
  --secondary-color: #2E6CB5;
  --accent-color: #FFFFFF;
  --text-color: #555555;
  --text-muted: #7A7A7A;
  --hover-green: #7C9489;
  --bg-gradient: linear-gradient(180deg, #1D174B 0%, #8DB5E2 100%);
  --font-main: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --transition: all 0.25s ease;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-main);
  color: var(--text-color);
  background-color: #FFFFFF;
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */

.site-header {
  background-color: var(--primary-color);
  color: var(--accent-color);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.header-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-link img {
  height: 48px;
  width: auto;
}

.main-nav {
  display: flex;
  align-items: center;
}

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

.nav-list > li {
  position: relative;
}

.nav-list a {
  color: var(--accent-color);
  font-size: 15px;
  font-weight: 500;
  padding: 8px 0;
  display: inline-block;
}

.nav-list a:hover {
  text-decoration: underline;
}

.has-submenu > a::after {
  content: ' ▾';
  font-size: 11px;
  margin-left: 4px;
}

/* Submenu dropdown */
.submenu {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #FFFFFF;
  color: var(--primary-color);
  min-width: 230px;
  padding: 8px 0;
  border-radius: 4px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: var(--transition);
  z-index: 100;
}

.submenu li a {
  color: var(--primary-color);
  display: block;
  padding: 9px 20px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}

.submenu li a:hover {
  background-color: #F4F6FB;
  text-decoration: none;
  color: var(--secondary-color);
}

.has-submenu:hover .submenu,
.has-submenu:focus-within .submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Mobile Toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--accent-color);
  font-size: 28px;
  cursor: pointer;
  padding: 4px 8px;
  line-height: 1;
}

/* ==========================================================================
   ARTICLE
   ========================================================================== */

.article {
  max-width: 800px;
  margin: 0 auto;
  padding: 60px 24px 80px;
}

.article-body {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 19px;
  line-height: 1.7;
  text-align: justify;
  color: var(--text-muted);
}

.article-body p {
  margin-bottom: 1.2em;
}

.article-title {
  text-align: center;
  font-weight: 700;
  font-size: clamp(32px, 5vw, 48px);
  line-height: 1.2;
  color: var(--primary-color);
  margin-bottom: 20px;
}

.article-subtitle {
  text-align: center;
  font-weight: 700;
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.3;
  color: var(--primary-color);
  margin: 30px 0;
}

.article-body .article-highlight {
  text-align: center;
  font-style: italic;
  margin: 25px 0;
}

.article-body ul {
  margin: 0 0 1.2em 20px;
  padding-left: 20px;
}

.article-body li {
  margin-bottom: 0.5em;
}

.article-body .article-signature {
  margin-top: 40px;
  text-align: center;
  font-weight: 700;
  color: var(--primary-color);
}

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

.site-footer {
  background-color: var(--primary-color);
  color: var(--accent-color);
}

.footer-top {
  max-width: 1240px;
  margin: 0 auto;
  padding: 36px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-logo img {
  height: 48px;
  width: auto;
}

.footer-socials {
  display: flex;
  gap: 20px;
}

.footer-socials a {
  color: var(--accent-color);
  font-size: 22px;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.footer-socials a:hover {
  transform: translateY(-2px) scale(1.1);
  color: #8DB5E2;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 18px 24px;
  text-align: center;
  font-size: 13px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.85);
}

/* Previous / next article */
.post-nav {
  max-width: 1140px;
  margin: 0 auto;
  padding: 40px 24px 60px;
  display: flex;
  justify-content: space-between;
  gap: 40px;
  border-top: 1px solid #DEDFDF;
  font-size: 20px;
  font-weight: 600;
  color: var(--primary-color);
}

.post-nav-link {
  display: flex;
  align-items: baseline;
  gap: 16px;
}

.post-nav-link.next {
  margin-left: auto;
  flex-direction: row-reverse;
  text-align: right;
}

.post-nav-link:hover .title {
  text-decoration: underline;
}

@media (max-width: 767px) {
  .post-nav {
    flex-direction: column;
    gap: 16px;
    font-size: 17px;
  }
}

/* ==========================================================================
   RESPONSIVE DESIGN (TABLET & MOBILE)
   ========================================================================== */

@media (max-width: 1024px) {
  .menu-toggle {
    display: block;
  }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--primary-color);
    padding: 20px 24px;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  }

  .main-nav.active {
    display: flex;
  }

  .nav-list {
    flex-direction: column;
    width: 100%;
    gap: 12px;
    align-items: flex-start;
  }

  .nav-list > li {
    width: 100%;
  }

  .submenu {
    position: static;
    box-shadow: none;
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    margin-top: 8px;
    padding: 6px 0;
    display: none;
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .submenu.active {
    display: block;
  }

  .submenu li a {
    color: var(--accent-color);
    padding: 8px 16px;
  }
}

@media (max-width: 768px) {
  .header-inner {
    padding: 12px 16px;
  }

  .logo-link img {
    height: 40px;
  }

  .article {
    padding: 40px 16px 60px;
  }

  .article-body {
    font-size: 17px;
    text-align: left;
  }

  .article-body ul {
    margin-left: 0;
  }

  .footer-top {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }
}
