/*
Theme Name: Eminescu Custom
Author: Alexandru Tampiza
Version: 4.0
Description: Tema personalizata pentru Liceul Teoretic "Mihai Eminescu".
*/

@font-face {
  font-family: 'Helvetica Neue W02 75 Bold';
  src: url('fonts/helvetica-neue-75-bold.woff2') format('woff2'),
       url('fonts/helvetica-neue-75-bold.woff') format('woff');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Neue Haas Grotesk';
  src: url('fonts/NeueHaasDisplay-Roman.woff2') format('woff2'),
       url('fonts/NeueHaasDisplay-Roman.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Neue Haas Grotesk Thin';
  src: url('fonts/NeueHaasDisplay-Thin.woff2') format('woff2'),
       url('fonts/NeueHaasDisplay-Thin.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Departure Mono';
  src: url('fonts/departure_mono/DepartureMono-Regular.woff2') format('woff2'),
       url('fonts/departure_mono/DepartureMono-Regular.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Messina Sans';
  src: url('fonts/MessinaSans-Regular.woff2') format('woff2'),
       url('fonts/MessinaSans-Regular.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Messina Sans';
  src: url('fonts/MessinaSans-Book.woff2') format('woff2'),
       url('fonts/MessinaSans-Book.woff') format('woff');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Messina Sans';
  src: url('fonts/MessinaSans-SemiBold.woff2') format('woff2'),
       url('fonts/MessinaSans-SemiBold.woff') format('woff');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Messina Sans';
  src: url('fonts/MessinaSans-Bold.woff2') format('woff2'),
       url('fonts/MessinaSans-Bold.woff') format('woff');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Messina Sans';
  src: url('fonts/MessinaSans-Black.woff2') format('woff2'),
       url('fonts/MessinaSans-Black.woff') format('woff');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --color-primary: #800000;
  --color-bg: #FFFFFF;
  --color-dark: #000000;
  --color-gray-dark: #4B4B4B;
  --color-gray-light: #D6D6D6;

  --color-card: #FFFFFF;
  --color-border: #D6D6D6;
  --color-muted: #4B4B4B;

  --font-heading: 'EB Garamond', Georgia, serif;
  --font-body: 'Source Sans 3', 'Segoe UI', sans-serif;
  --font-ui: 'Source Sans 3', 'Segoe UI', sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

main {
  font-size: 20px;
  line-height: 1.15;
}

::selection {
  background: #E46478;
}

body {
  margin: 0;
  background-color: var(--color-bg);
  color: var(--color-gray-dark);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 0.5em;
  color: #000000;
}

h1 { font-size: 2.441rem; }
h2 { font-size: 1.953rem; }
h3 { font-size: 1.563rem; }
h4 { font-size: 1.25rem; }

p { margin: 0 0 1rem; }

a {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.2s ease;
}

a:hover {
  color: #000000;
}

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.tp-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 80px;
  margin-left: -24px;
  margin-bottom: 32px;
  font-family: 'Messina Sans', sans-serif;
  font-size: 17px;
  color: #333;
}

.tp-breadcrumb a {
  color: #A31F34;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.tp-breadcrumb a:hover {
  border-bottom-color: #A31F34;
}

.tp-breadcrumb-sep {
  color: #a5a5a5;
}

.tp-breadcrumb-current {
  color: #050505;
}

.section-heading {
  position: relative;
  padding-bottom: 0.75rem;
  margin-bottom: 1.5rem;
}

.section-heading::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 56px;
  height: 2px;
  background-color: var(--color-primary);
}

/* =========== HERO =========== */

.hero-section {
  position: relative;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.hero-track-wrap {
  position: relative;
  width: 100%;
  height: 550px;
  overflow: hidden;
}

@keyframes heroZoom {
  from { transform: scale(1); }
  to { transform: scale(1.08); }
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover !important;
  background-position: center center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
  animation: heroZoom 12s ease-in-out infinite alternate;
}

.hero-slide.fast {
  transition: opacity 0.3s ease-in-out;
}

.hero-slide.active {
  opacity: 1;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(0, 0, 0, 0.70) 0%,
    rgba(0, 0, 0, 0.30) 50%,
    rgba(0, 0, 0, 0.50) 100%
  );
  z-index: 2;
}

.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  border: none;
  background: transparent;
  color: var(--color-bg);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 10;
  opacity: 0.7;
  padding: 0;
}

.hero-arrow:hover {
  opacity: 1;
}

.hero-arrow svg {
  display: block;
  width: 20px;
  height: 20px;
}

.hero-arrow svg path {
  stroke-width: 3;
}

.hero-arrow-prev { left: 1.5rem; }
.hero-arrow-next { right: 1.5rem; }

.hero-track {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  max-width: 184px;
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent 0%, black 15%, black 85%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 15%, black 85%, transparent 100%);
}

.hero-track-inner {
  display: flex;
  gap: 0.375rem;
  transition: transform 0.3s ease;
}

.hero-track-seg {
  width: 32px;
  height: 3px;
  border-radius: 0;
  border: none;
  background: rgba(235, 239, 238, 0.3);
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
  transition: background 0.3s ease;
}

.hero-track-seg.active {
  background: var(--color-primary);
}

.hero-track-seg:hover {
  background: rgba(235, 239, 238, 0.6);
}

/* =========== TOP BAR =========== */

.header-top-bar {
  background-color: var(--color-primary);
  color: var(--color-bg);
  border-bottom: 1px solid var(--color-gray-light);
  font-family: 'JetBrains Mono', 'Cascadia Code', Consolas, 'Fira Code', 'Courier New', monospace;
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: 0;
  padding: 0.4rem 1.5rem;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

.top-bar-inner {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.top-bar-left {
  display: flex;
  align-items: center;
  gap: 2rem;
  color: var(--color-bg);
}

.top-bar-address {
  opacity: 0.8;
  font-size: 0.82rem;
  color: inherit;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  position: relative;
  transition: opacity 0.25s ease;
}

.top-bar-address::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  height: 1.5px;
  width: 0;
  background: currentColor;
  transform: translateZ(0);
  transition: width 0.25s ease;
}

.top-bar-address:hover::after {
  width: 100%;
}

.top-bar-address:hover {
  color: inherit;
}

.top-bar-right {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-left: auto;
}

.top-bar-email {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  opacity: 0.8;
  font-size: 0.82rem;
  color: var(--color-bg);
}

.top-bar-email i {
  font-size: 0.85rem;
}

.top-bar-email a {
  color: inherit;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  position: relative;
  transition: opacity 0.25s ease;
}

.top-bar-email a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  height: 1.5px;
  width: 0;
  background: currentColor;
  transform: translateZ(0);
  transition: width 0.25s ease;
}

.top-bar-email a:hover::after {
  width: 100%;
}

.top-bar-icon {
  display: flex;
  align-items: center;
  line-height: 0;
}

.top-bar-icon a {
  color: var(--color-bg);
  opacity: 0.8;
  display: flex;
  align-items: center;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.top-bar-icon a i {
  font-size: 1.1rem;
}

.top-bar-icon a:hover {
  opacity: 1;
}

/* =========== NAV BAR =========== */

.header-main-bar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #000000;
  padding: 0;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-left: 2rem;
  position: relative;
  z-index: 3;
}

.menu-column {
  flex: 1;
  display: flex;
  justify-content: flex-end;
  max-width: 1200px;
  margin-right: auto;
}

.logo-column {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* --- LANGUAGE SWITCHER --- */

.lang-switcher ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
}

.lang-switcher li {
  display: flex;
  align-items: center;
}

.lang-switcher li:not(:first-child)::before {
  content: '/';
  color: #cccccc;
  margin: 0 0.25rem;
  font-family: 'Departure Mono', monospace;
  font-size: 18px;
  font-weight: 400;
}

.lang-switcher a {
  font-family: 'Departure Mono', monospace;
  font-size: 18px;
  font-weight: 400;
  color: #000000;
  text-decoration: none;
  text-transform: uppercase;
  display: inline-block;
  position: relative;
  line-height: 24px;
}

.lang-switcher a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: #A31F34;
  transition: width 0.3s ease;
}

@supports (-moz-appearance: none) {
  .lang-switcher a::after {
    transform: translateZ(0);
  }
}

.lang-switcher .current-lang a {
  font-weight: 700;
  color: #A31F34;
}

.lang-switcher li:not(.current-lang) a:hover::after {
  width: 100%;
}

.site-branding {
  display: flex;
  align-items: center;
}

.logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: inherit;
}

.crest-wrap {
  display: flex;
  align-items: center;
  line-height: 0;
}

.crest-wrap img {
  display: block;
  height: 90px;
  width: auto;
}

/* --- HAMBURGER TOGGLE --- */

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #000000;
  cursor: pointer;
  padding: 0.5rem;
  line-height: 0;
}

.menu-toggle svg {
  display: block;
}

/* --- NAVIGATION --- */

.site-navigation {
  display: flex;
  align-items: center;
  flex: 1;
  justify-content: flex-end;
}

#primary-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 0.5rem;
}

#primary-menu a {
  font-family: 'Helvetica Neue W02 75 Bold', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: #000000;
  text-decoration: none;
  padding: 0.6rem 0.8rem;
  display: block;
  transition: color 0.2s ease, background-color 0.2s ease;
  position: relative;
}

#primary-menu a::after {
  content: '';
  position: absolute;
  bottom: 0.3rem;
  left: 0.8rem;
  height: 3px;
  width: 0;
  background: #A31F34;
  transition: width 0.5s ease;
}

#primary-menu > li > a:hover::after,
#primary-menu > li.current-menu-item > a::after {
  width: calc(100% - 1.6rem);
}

#primary-menu > li > a:hover {
  color: #A31F34;
  background-color: #F0F0F0;
}

#primary-menu > li.current-menu-item > a,
#primary-menu > li.current-page-ancestor > a {
  color: #A31F34;
}

#primary-menu .sub-menu {
  display: none;
}

#primary-menu .sub-menu a {
  display: block;
  padding: 10px 20px;
  color: #000000;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 14px;
  font-weight: 400;
  border-bottom: 1px solid #f0f0f0;
  text-decoration: none;
}

#primary-menu .sub-menu a:hover {
  color: #800000;
  background: #f9f9f9;
}

#primary-menu > li > a.active {
  color: #A31F34;
  background-color: #F0F0F0;
}

#primary-menu > li > a.active::after {
  width: calc(100% - 1.6rem);
}

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

  #primary-menu {
    display: none;
    flex-direction: column;
    gap: 0;
    width: 100%;
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  }

  #primary-menu.open {
    display: flex;
  }

  #primary-menu a {
    padding: 0.8rem 1rem;
    border-bottom: 1px solid #D6D6D6;
  }

  #primary-menu > li > a:hover::after,
  #primary-menu > li.current-menu-item > a::after {
    display: none;
  }

  .site-navigation {
    position: relative;
  }

  #primary-menu .sub-menu {
    position: static;
    display: block;
    box-shadow: none;
    border-top: none;
    min-width: auto;
    padding-left: 1rem;
    visibility: visible;
    opacity: 1;
    transform: none;
    transition: none;
  }

}

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

.site-footer {
  background-color: #404040 !important;
  font-family: 'Fira Sans', sans-serif;
}

.site-footer *,
.site-footer *:hover {
  color: #FFFFFF;
}

.footer-inner {
  margin: 0 auto;
  max-width: 1488px;
}

.footer-main {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  padding: 32px 0 12px;
}

.footer-main > * {
  flex-shrink: 0;
}

.footer-logo-wrap {
  width: 25%;
  align-self: center;
  padding: 2px 24px 0 24px;
  text-decoration: none;
}

.footer-logo {
  height: auto;
  width: 360px;
  max-width: 100%;
}

.footer-address-wrap {
  width: 25%;
  padding: 8px 12px 0 48px;
}

.footer-address-title {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
}

.footer-address address {
  font-size: 14px;
  font-style: normal;
  line-height: 1.5;
  opacity: 0.8;
  padding-top: 6px;
}

.footer-links-wrap {
  column-count: 2;
  column-gap: 48px;
  padding: 8px 0 0 120px;
  width: 50%;
}

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

.footer-menu-list li {
  break-inside: avoid;
  margin-bottom: 5px;
}

.footer-menu-list a {
  color: #FFFFFF;
  font-size: 14px;
  line-height: 20px;
  opacity: 0.8;
  text-decoration: none;
}

.footer-menu-list a:hover {
  opacity: 1;
  text-decoration: underline;
}

.footer-social {
  align-items: center;
  display: flex;
  margin-top: -20px;
  margin-left: auto;
  width: calc(25% - 36px);
}

.footer-social-link {
  opacity: 0.8;
  text-decoration: none;
}

.footer-social-link:hover {
  opacity: 1;
}

.footer-social-icon {
  font-size: 23px;
}

.footer-copyright {
  position: relative;
  padding: 20px 0 16px;
  text-align: center;
}

.footer-copyright-text {
  display: block;
  font-size: 14px;
  line-height: 23px;
  opacity: 0.8;
}

@media (max-width: 1024px) {
  .footer-main {
    padding: 48px 0 58px;
  }

  .footer-links-wrap {
    column-gap: 32px;
  }
}

@media (max-width: 768px) {
  .footer-main {
    display: block;
  }

  .footer-logo-wrap,
  .footer-address-wrap,
  .footer-links-wrap,
  .footer-social {
    width: 100%;
  }

  .footer-logo-wrap {
    padding-right: 0;
  }

  .footer-address-wrap {
    padding: 32px 0 24px;
  }

  .footer-links-wrap {
    padding-left: 0;
    column-count: 1;
  }

  .footer-social {
    margin-top: 32px;
    margin-left: 0;
  }
}

@media (max-width: 480px) {
  .footer-main {
    padding: 32px 0;
  }

  .footer-links-wrap {
    column-gap: 24px;
  }

  .footer-copyright {
    padding: 16px 0 12px;
  }
}

/* =========== NOUTĂȚI SECTION =========== */

.noutati-section {
  background: #f7f7f7 url('images/infinity_bg.png') repeat;
  background-size: 1920px auto;
  padding: 80px 0;
  margin-bottom: 50px;
  position: relative;
  overflow: hidden;
}

body.has-side-label .noutati-section {
  padding: 0 0 64px;
  overflow: visible;
}

.performante-section {
  background: #f7f7f7 url('images/infinity_bg.png') repeat;
  background-size: 1920px auto;
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.noutati__inner, .performante__inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

.noutati__heading, .performante__heading {
  display: block;
  width: fit-content;
  margin: 0 auto 24px;
  font-family: 'Departure Mono', monospace;
  font-weight: 700;
  font-size: 28px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-align: center;
  color: #FFFFFF;
  background: #A31F34;
  padding: 16px 32px;
  line-height: 1.1;
}

  .noutati__grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 48px;
}

  .performante__grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 48px;
}

.noutati__item, .performante__item {
  margin: 0;
  padding: 0;
}

.noutati__card, .performante__card {
  display: block;
  position: relative;
  overflow: hidden;
  background: #FFFFFF;
  text-decoration: none;
  color: inherit;
}

.noutati__image, .performante__image {
  width: 100%;
  height: 320px;
  object-fit: cover;
  display: block;
}

.noutati__overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: #313131;
  padding: 20px;
  display: flex;
  flex-direction: column;
}

.performante__overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: #002A3A;
  padding: 20px;
  display: flex;
  flex-direction: column;
}

.noutati__title-line, .performante__title-line {
  display: block;
  min-width: 0;
}

.noutati__title, .performante__title {
  display: inline;
  color: #FFFFFF;
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  font-size: 16px;
  line-height: 1.15;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.noutati__card:hover .noutati__title,
.performante__card:hover .performante__title {
  border-color: #FFFFFF;
}

.external-link-icon {
  display: inline;
  margin-left: 6px;
  width: 19px;
  height: 19px;
  vertical-align: -3px;
  filter: brightness(0) invert(1);
}

.noutati__title:hover, .performante__title:hover {
  color: #FFFFFF;
  opacity: 0.85;
}

.noutati__date, .performante__date {
  display: block;
  margin-top: auto;
  padding-top: 10px;
  margin-bottom: -8px;
  align-self: flex-end;
  color: #CCCCCC;
  font-family: 'Share Tech Mono', monospace;
  font-weight: 400;
  font-size: 0.84rem;
  text-align: right;
}

.news-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: 48px;
  row-gap: 24px;
  margin-top: 0;
}

.news-month {
  position: relative;
  padding-top: 32px;
  padding-bottom: 64px;
}

body.has-side-label .news-month::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: var(--rail-left, -96px);
  right: var(--rail-right, 0);
  height: 1px;
  background: #e2e2e2;
}

body.has-side-label .news-month:last-of-type::after {
  display: none;
}

.news-row {
  margin: 12px 0 0;
  padding: 0;
}

.news-row--card {
  display: flex;
  align-items: stretch;
  color: inherit;
  user-select: text;
  -webkit-user-select: text;
}

.news-row--card * {
  user-select: text;
  -webkit-user-select: text;
}

.news-row--thumb-link {
  display: block;
  flex: 0 0 40%;
  max-width: 40%;
  text-decoration: none;
}

.news-row--thumb {
  user-select: none;
  -webkit-user-select: none;
  position: relative;
  overflow: hidden;
  background: #D6D6D6;
  aspect-ratio: 16 / 10;
}

.news-row--image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.news-row--body {
  flex: 1;
  min-width: 0;
  padding: 8px 0 8px 16px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.news-row--title {
  font-family: 'Messina Sans', sans-serif;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1em;
  color: #050505;
  margin: 0 0 4px;
}

.news-row--title-link {
  font-family: 'Messina Sans', sans-serif;
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.035em;
  color: #333;
  text-decoration: none;
  border-bottom: 2px solid transparent;
}

.news-row--title-link:hover {
  color: #333;
  border-bottom-color: #E56478;
}

.news-row--dek {
  font-family: 'Messina Sans', sans-serif;
  font-size: 17px;
  font-weight: 400;
  line-height: 1.3;
  color: #050505;
  margin: 0 0 14px;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  overflow: hidden;
}

.front-page--recent-news--content--load-more {
  margin: 16px 0 0;
  text-align: center;
}

.front-page--recent-news--content--load-more--button {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-color: #fff;
  border-radius: 0;
  box-shadow: none;
  color: inherit;
  margin: 0;
  cursor: pointer;
  padding: 15px 25px;
  border: 2px solid #333;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 17px;
  letter-spacing: 0.02em;
  color: #333;
  font-family: 'Messina Sans', sans-serif;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.front-page--recent-news--content--load-more--button:hover {
  background-color: #B03A54;
  color: #000;
}

.front-page--recent-news--content--load-more--button:focus {
  outline: 3px solid #005fcc;
  outline-offset: 1px;
}

@media (max-width: 768px) {
  .front-page--recent-news--content--load-more--button {
    font-size: 15px;
    padding: 12px 20px;
  }
}

.news-row--date {
  margin-top: auto;
  color: #888888;
  font-family: 'Share Tech Mono', monospace;
  font-weight: 400;
  font-size: 0.82rem;
}

@media (max-width: 1100px) {
  .news-list {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

@media (max-width: 768px) {
  .news-row--thumb-link {
    flex: 0 0 100%;
    max-width: 100%;
    width: 100%;
  }
  .news-row--thumb {
    width: 100%;
  }
  .news-row--card {
    flex-direction: column;
  }
  .news-row--body {
    padding: 12px 0 0;
  }
}

.noutati__empty, .performante__empty {
  text-align: center;
  padding: 60px 0;
  color: #1E1A16;
  font-family: 'Source Sans 3', sans-serif;
}

.noutati__actions, .performante__actions {
  text-align: center;
  margin-top: 40px;
}

.noutati__button, .performante__button {
  display: inline-block;
  border: 1px solid #800000;
  padding: 6px 18px;
  background: #FFFFFF;
  color: #800000;
  font-family: 'Outfit', sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1.65;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  z-index: 1;
  transition: color 0.3s ease;
}

.noutati__button::before, .performante__button::before {
  content: '';
  position: absolute;
  inset: -1px;
  background: #800000;
  clip-path: circle(0% at var(--x, 50%) var(--y, 50%));
  transition: clip-path 0s;
  z-index: -1;
}

.noutati__button:hover, .performante__button:hover {
  color: #FFFFFF;
}

.noutati__button.hover-fill::before, .performante__button.hover-fill::before {
  transition: clip-path 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  clip-path: circle(150% at var(--x, 50%) var(--y, 50%));
}

.noutati__button.fill-exit::before, .performante__button.fill-exit::before {
  transition: clip-path 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

@media (max-width: 768px) {
.noutati__grid,
.performante__grid {
    grid-template-columns: 1fr;
  }

  .noutati-section, .performante-section {
    padding: 48px 0;
  }

  body.has-side-label .noutati-section {
    padding: 0;
  }
}

body.has-side-label {
  display: flex;
  flex-wrap: wrap;
}

body.has-side-label .header-top-bar,
body.has-side-label .header-main-bar,
body.has-side-label .site-footer {
  flex: 1 1 100%;
}

body.has-side-label main {
  flex: 1 1 0;
  min-width: 0;
}

.page-side-label {
  position: relative;
  flex: 0 0 72px;
  width: 72px;
  align-self: stretch;
  background: #FFFFFF;
  border-right: 1px solid #e2e2e2;
}

.page-side-label > span {
  display: block;
  font-family: 'Messina Sans', sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: #333;
  padding: 80px 14px;
  writing-mode: vertical-rl;
  text-orientation: mixed;
}

.page-side-label .side-label-month {
  position: absolute;
  left: 0;
  top: 0;
  display: block;
  font-family: 'Messina Sans', sans-serif;
  font-size: 28px;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: #333;
  padding: 0 14px;
  white-space: nowrap;
  writing-mode: vertical-rl;
  text-orientation: mixed;
}

@media (max-width: 768px) {
  .page-side-label {
    display: none;
  }
}

/* =========== SITE HEADER (MIT News style) =========== */

.site-header {
  border-bottom: 1px solid #e2e2e2;
  background-color: #f7f7f7;
  position: relative;
}

body.has-side-label .site-header {
  border-bottom: none;
}

body.has-side-label .site-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: -72px;
  width: 71px;
  height: 100%;
  background: #f7f7f7;
}

body.has-side-label .site-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: -72px;
  right: 0;
  height: 1px;
  background: #e2e2e2;
}

.site-header--inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 44px 84px 18px 0;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-logo--eminescu {
  margin: 0;
  font-family: 'Messina Sans', sans-serif;
  font-size: 44px;
  font-weight: 600;
  color: #333;
  letter-spacing: -0.01em;
  line-height: 1em;
  white-space: nowrap;
}

.site-logo--eminescu .site-logo--accent {
  color: #B03A54;
  font-weight: 700;
}

@media (max-width: 1100px) {
  .site-header--inner {
    padding: 34px 33px 18px 0;
  }
}

@media (max-width: 768px) {
  .site-logo--eminescu {
    font-size: 32px;
  }
}

/* =========== NEWS SEARCH =========== */

.news-search {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.news-search-input {
  border: none;
  border-bottom: 1px solid #e2e2e2;
  background: transparent;
  font-family: 'Messina Sans', sans-serif;
  font-size: 18px;
  font-weight: 400;
  color: #333;
  padding: 4px 0;
  width: 180px;
  transition: border-color 0.2s ease, width 0.2s ease;
}

.news-search-input::-webkit-search-cancel-button {
  -webkit-appearance: none;
  appearance: none;
}

.news-search-input:focus {
  outline: none;
  border-bottom-color: #E56478;
}

.news-search-input::placeholder {
  color: #a5a5a5;
}

.news-search-button {
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: #333;
  padding: 4px;
  cursor: pointer;
  transition: color 0.2s ease;
}

.news-search-button:hover {
  color: #E56478;
}

@media (max-width: 768px) {
  .news-search-input {
    width: 120px;
    font-size: 16px;
  }
}

/* =========== NEWS CTA (MIT News style) =========== */

.news-cta {
  border-bottom: 1px solid #e2e2e2;
  background-color: #FFFFFF;
  position: relative;
}

body.has-side-label .news-cta {
  border-bottom: none;
}

body.has-side-label .news-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: -72px;
  width: 71px;
  height: 100%;
  background: #FFFFFF;
}

body.has-side-label .news-cta::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: -72px;
  right: 0;
  height: 1px;
  background: #e2e2e2;
}

.news-cta--inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 12px 84px 12px 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 5px;
  position: relative;
}

.news-cta-icon {
  width: 18px;
  height: 18px;
  display: inline-block;
  flex-shrink: 0;
}

.news-cta-text {
  margin: 0;
  font-family: 'Messina Sans', sans-serif;
  font-size: 15px;
  font-weight: 400;
  color: #333;
}

.news-cta-link {
  font-family: 'Messina Sans', sans-serif;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.005em;
  color: #333;
  text-decoration: none;
  box-shadow: inset 0 -2px #E56478;
  transition: background-color 0.2s ease;
}

.news-cta-link:hover {
  background-color: #E56478;
  box-shadow: inset 0 -2px #E56478;
}

@media (max-width: 768px) {
  .news-cta--inner {
    flex-wrap: wrap;
    gap: 10px;
    padding: 18px 16px;
    text-align: center;
  }
}

/* =========== TOP NEWS (MIT News style) =========== */

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  clip: rect(0 0 0 0);
  overflow: hidden;
  white-space: nowrap;
}

.front-page--top-news {
  background-color: #2e2e2e;
  position: relative;
}

body.has-side-label .front-page--top-news::before {
  content: '';
  position: absolute;
  top: 0;
  left: -72px;
  width: 71px;
  height: 100%;
  background: #2e2e2e;
}

body.has-side-label .front-page--top-news::after {
  content: '';
  position: absolute;
  top: 0;
  left: -1px;
  width: 1px;
  height: 100%;
  background: #575757;
}

.front-page--top-news .page--section--inner {
  max-width: 1500px;
  margin: 0 auto;
  padding: 0;
  position: relative;
}

.front-page--top-news .front-page--news-item--teaser {
  display: flex;
  align-items: stretch;
  overflow: hidden;
}

.front-page--top-news .front-page--news-item--cover-image {
  width: 50%;
  flex-shrink: 0;
}

.front-page--top-news .front-page--news-item--cover-image--file {
  position: relative;
  height: 0;
  padding-top: 64%;
  background: #1f1f1f;
}

.front-page--top-news .front-page--news-item--cover-image--file img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.front-page--top-news .front-page--news-item--descr {
  flex: 1;
  display: flex;
  align-items: center;
}

.front-page--top-news .front-page--news-item--descr--inner {
  padding: 0 25px;
  transform: translateY(-25%);
  font-size: 29px;
  font-weight: 600;
  color: #fff;
}

.front-page--top-news .front-page--news-item--descr--text {
  margin-right: 60px;
}

.front-page--top-news .front-page--news-item--title {
  font-family: 'Messina Sans', sans-serif;
  font-size: 38px;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0 0 6px;
  line-height: 1.05em;
  color: #fff;
}

.front-page--top-news .front-page--news-item--title--link {
  color: #fff;
  text-decoration: none;
}

.front-page--top-news .front-page--news-item--title--link:hover {
  box-shadow: inset 0 -3px #E56478;
}

.front-page--top-news .front-page--news-item--dek {
  display: block;
  max-width: 52ch;
  font-family: 'Messina Sans', sans-serif;
  font-size: 25px;
  font-weight: 400;
}

.front-page--top-news .front-page--news-item--full-story {
  margin: 14px 0 0;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.front-page--top-news .front-page--news-item--full-story-link {
  color: #050505;
  text-decoration: none;
  box-shadow: inset 0 -2px #ff4646;
}

.front-page--top-news .front-page--news-item--full-story-link:hover {
  background-color: #ff655d;
  box-shadow: inset 0 -2px #ff655d;
}

@media (max-width: 1100px) {
  .front-page--top-news .front-page--news-item--cover-image {
    width: 44%;
  }
  .front-page--top-news .front-page--news-item--descr--inner {
    font-size: 21px;
  }
  .front-page--top-news .front-page--news-item--title {
    font-size: 28px;
  }
}

@media (max-width: 768px) {
  .front-page--top-news .front-page--news-item--teaser {
    flex-direction: column;
  }
  .front-page--top-news .front-page--news-item--cover-image {
    width: 100%;
  }
  .front-page--top-news .front-page--news-item--descr--inner {
    padding: 25px;
    font-size: 20px;
  }
  .front-page--top-news .front-page--news-item--title {
    font-size: 30px;
  }
}


/* =========== LEGAL DOCUMENT (Terms, Privacy, Transparency) =========== */
.tp-page-content {
  max-width: 720px;
  margin-left: -24px;
  padding-bottom: 120px;
  font-family: 'Neue Haas Grotesk', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  letter-spacing: 0.02em;
  color: #000000;
}

.tp-page-content h1,
.tp-page-content h2,
.tp-page-content h3 {
  font-family: 'Neue Haas Grotesk', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

.tp-page-content h1 {
  font-size: 40px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: #050505;
  margin: 0 0 20px;
  padding-bottom: 24px;
  border-bottom: 1px solid #e2e2e2;
}

.tp-page-content .tp-doc-meta {
  font-size: 16px;
  color: #a5a5a5;
  margin: -8px 0 40px;
}

.tp-page-content h2 {
  font-size: 21px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: #050505;
  margin: 48px 0 16px;
}

.tp-page-content h2:first-of-type {
  margin-top: 0;
}

.tp-page-content h3 {
  font-size: 24px;
  font-weight: 500;
  line-height: 1.0;
  letter-spacing: 0;
  color: #050505;
  margin: 32px 0 12px;
}

.tp-page-content .tle-body-text h3:nth-of-type(2) {
  margin-top: 16px;
}

.tp-page-content p {
  font-size: 18px;
  line-height: 1.5;
  color: #000000;
  margin: 0 0 18px;
}

.tp-page-content a {
  color: #800000;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.tp-page-content a:hover {
  border-bottom-color: #800000;
}

.tp-page-content .tle-body-text a {
  color: #000000;
  border-bottom: 2px solid #E01220;
}

.tp-page-content .tle-body-text a:hover {
  color: #E01220;
}

.tp-page-content strong {
  font-weight: 700;
  color: #050505;
}

.tp-page-content .tp-doc-prohibit {
  list-style: none;
  margin: 0 0 24px;
  padding: 0 0 0 20px;
  border-left: 1px solid #e2e2e2;
}

.tp-page-content .tp-doc-prohibit li {
  font-size: 17px;
  line-height: 1.6;
  color: #333;
  margin: 0 0 10px;
  padding-left: 20px;
  text-indent: -20px;
}

.tp-page-content .tp-doc-contact {
  margin: 24px 0 0;
  padding: 0 0 0 20px;
  border-left: 1px solid #e2e2e2;
}

.tp-page-content .tp-doc-contact-item {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 0 0 10px;
}

.tp-page-content .tp-doc-contact dt {
  flex-shrink: 0;
  width: 110px;
  font-size: 16px;
  font-weight: 700;
  color: #050505;
}

.tp-page-content .tp-doc-contact dd {
  font-size: 16px;
  line-height: 1.5;
  color: #333;
  margin: 0;
}

@media (max-width: 768px) {
  .tp-page-content {
    margin-left: 0;
  }
}

/* =========== PARTNERS (homepage logos strip) =========== */
.partners-section {
  background: #FFFFFF;
  padding: 24px 0;
}

.partners-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
}

.partners-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 48px;
}

.partners-item {
  display: flex;
  align-items: center;
  justify-content: center;
}

.partners-logo {
  height: 72px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  display: block;
}

.partners-logo--lg {
  height: 96px;
}

@media (max-width: 768px) {
  .partners-list {
    gap: 32px;
  }

  .partners-logo {
    height: 48px;
  }
}

/* =========== STATISTICS SECTION (Bacalaureat) =========== */
.stats-section {
  background: #f7f7f7 url('images/infinity_bg.png') repeat;
  background-size: 1920px auto;
  padding: 96px 0;
  border-top: 1px solid #e2e2e2;
  border-bottom: 1px solid #e2e2e2;
  margin-bottom: 48px;
}

.stats-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
  text-align: center;
}

.stats-eyebrow {
  display: block;
  width: fit-content;
  margin: 0 auto 12px;
  font-family: 'Departure Mono', monospace;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #FFFFFF;
  background: #A31F34;
  padding: 12px 24px;
  text-align: center;
}

.stats-title {
  display: block;
  width: fit-content;
  margin: 0 auto 56px;
  font-family: 'Departure Mono', monospace;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.1;
  text-transform: uppercase;
  color: #FFFFFF;
  background: #333333;
  padding: 16px 32px;
  text-align: center;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 72px;
}

.stats-card {
  background: transparent;
  border: none;
  padding: 40px 24px;
  text-align: center;
}

.stats-num {
  display: block;
  font-family: 'Red Hat Display', sans-serif;
  font-size: 64px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  color: #A31F34;
  margin-bottom: 12px;
}

.stats-label {
  display: block;
  font-family: 'Messina Sans', sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: #333;
}

.stats-breakdown {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.stats-note {
  padding-top: 0;
  text-align: left;
}

.stats-quote {
  margin: 0 0 8px;
  font-family: 'Messina Sans', sans-serif;
  font-size: 23px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: #050505;
}

.stats-congrats {
  margin: 0 96px 0 0;
  font-family: 'Messina Sans', sans-serif;
  font-size: 17px;
  font-weight: 400;
  line-height: 1.3;
  color: #333;
}

.stats-gallery {
  position: relative;
  margin-top: 16px;
  max-width: 600px;
}

.stats-gallery-viewport {
  overflow: hidden;
  border: 1px solid #e2e2e2;
  background: #FFFFFF;
  max-width: 450px;
}

.stats-gallery-track {
  display: flex;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.stats-gallery-slide {
  flex: 0 0 100%;
  min-width: 0;
}

.stats-gallery-slide img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.stats-gallery-arrow {
  position: absolute;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 72px;
  border: none;
  border-radius: 0;
  background: #913045;
  color: #FFFFFF;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.stats-gallery-arrow:hover:not(:disabled) {
  background: #B03A54;
}

.stats-gallery-arrow:disabled {
  background: #BEBEBE;
  cursor: default;
}

.stats-gallery-arrow--prev {
  right: 66px;
}

.stats-gallery-arrow--next {
  right: 0;
}
.stats-chart-title {
  margin: 0 0 24px;
  font-family: 'Messina Sans', sans-serif;
  font-size: 16px;
  font-weight: 700;
  font-style: italic;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #050505;
}

.stats-bar-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.stats-bar-label {
  flex: 0 0 96px;
  font-family: 'Red Hat Display', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: #050505;
  text-align: center;
}

.stats-bar-track {
  flex: 1;
  height: 8px;
  background: #e2e2e2;
  border-radius: 0;
  overflow: hidden;
}

.stats-bar-fill {
  height: 100%;
  width: 0;
  background: #B03A54;
  transition: width 1.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.stats-bar-value {
  flex: 0 0 24px;
  font-family: 'Red Hat Display', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: #333;
}

.stats-section .animate-fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.stats-section.animate-active .animate-fade-up {
  opacity: 1;
  transform: translateY(0);
}

.stats-section.animate-active .stats-grid .animate-fade-up:nth-child(2) { transition-delay: 0.1s; }
.stats-section.animate-active .stats-grid .animate-fade-up:nth-child(3) { transition-delay: 0.2s; }
.stats-section.animate-active .stats-grid .animate-fade-up:nth-child(4) { transition-delay: 0.3s; }
.stats-section.animate-active .stats-breakdown .animate-fade-up:nth-child(2) { transition-delay: 0.15s; }

.stats-section.animate-active .stats-bar-fill {
  width: var(--target-width);
}

@media (max-width: 1024px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats-breakdown {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}

@media (max-width: 768px) {
  .stats-section {
    padding: 64px 0;
  }

  .stats-title {
    font-size: 22px;
    padding: 12px 20px;
    margin-bottom: 40px;
  }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 56px;
  }

  .stats-card {
    padding: 28px 20px;
  }

  .stats-num {
    font-size: 48px;
  }

  .stats-quote {
    font-size: 22px;
  }

  .stats-gallery {
    max-width: 100%;
  }

  .stats-gallery-viewport {
    max-width: 100%;
  }
}

/* =========== ABOUT / DESPRE NOI =========== */
.about-section {
  background: #FFFFFF;
  padding: 48px 0 96px;
  border-bottom: 1px solid #e2e2e2;
}

.about-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
}

.col-lg-12 .about-section .about-inner {
  margin-left: -24px;
  padding-left: 0;
}

.about-title {
  display: inline-block;
  font-family: 'Departure Mono', monospace;
  font-size: 52px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.1;
  text-transform: uppercase;
  color: #FFFFFF;
  background: #A31F34;
  padding: 16px 32px;
  margin: 0 0 48px;
}

.about-intro {
  font-family: 'Neue Haas Grotesk', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 32px;
  font-weight: 400;
  line-height: 1.3;
  color: #050505;
  max-width: 1007px;
  margin: 0 0 56px;
}

.about-row {
  display: grid;
  grid-template-columns: minmax(0, 615px) minmax(0, 1fr);
  gap: 64px;
  align-items: start;
}

.about-text {
  margin-right: 110px;
}

.about-text p {
  font-family: 'Neue Haas Grotesk', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0.03em;
  color: #050505;
  margin: 0 0 18px;
}

.about-text p:last-child {
  margin-bottom: 0;
}

.about-accent {
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 2px;
  text-decoration-color: #A31F34;
}

.about-gallery {
  position: relative;
  max-width: 665px;
}

.about-gallery-viewport {
  overflow: hidden;
  border: 1px solid #e2e2e2;
  background: #FFFFFF;
}

.about-gallery-track {
  display: flex;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.about-gallery-slide {
  flex: 0 0 100%;
  min-width: 0;
}

.about-gallery-slide img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 665/374.067;
  object-fit: cover;
}

.about-gallery-arrows {
  position: absolute;
  bottom: 0;
  left: -140px;
  display: flex;
  gap: 10px;
}

.about-gallery-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 72px;
  border: none;
  border-radius: 0;
  background: #913045;
  color: #FFFFFF;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.about-gallery-arrow:hover:not(:disabled) {
  background: #B03A54;
}

.about-gallery-arrow:disabled {
  background: #BEBEBE;
  cursor: default;
}

.about-section .animate-fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.about-section.animate-active .animate-fade-up {
  opacity: 1;
  transform: translateY(0);
}

.about-section .about-text.animate-fade-up {
  transition-delay: 0.1s;
}

.about-section .about-gallery.animate-fade-up {
  transition-delay: 0.2s;
}

@media (max-width: 1024px) {
  .about-row {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}

@media (max-width: 768px) {
  .about-section {
    padding: 64px 0;
  }

  .about-title {
    font-size: 40px;
    margin: 0 0 32px;
  }

  .about-gallery,
  .about-gallery-viewport {
    max-width: 100%;
  }
}

/* =========== CONTACT PAGE (MIT-style) =========== */
.tp-page-content .tle-body-text h2:first-of-type {
  font-family: 'Neue Haas Grotesk', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 38px;
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: 0;
  color: #050505;
  margin: 40px 0 40px;
}

.tp-page-content .tle-body-text p:nth-of-type(2) {
  margin-bottom: 40px;
}

.tp-page-content .tle-body-text a[href^="tel:"],
.tp-page-content .tle-body-text a[href^="mailto:"] {
  white-space: nowrap;
}

.tp-page-content .site-footer__social-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.tp-page-content .site-footer__social-item a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #800000;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.tp-page-content .site-footer__social-item a:hover {
  border-bottom-color: #800000;
}
.contact-layout {
  display: flex;
  align-items: flex-start;
  gap: 48px;
}

.contact-layout .tp-page-content {
  flex: 1 1 0;
  min-width: 0;
  margin-left: -24px;
}

.contact-map {
  flex: 0 0 560px;
  margin-top: 125px;
  margin-left: 48px;
}

.contact-map iframe {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  border: 1px solid #e2e2e2;
}

@media (max-width: 1100px) {
  .contact-layout {
    flex-direction: column;
    gap: 32px;
  }

  .contact-map {
    flex: 1 1 auto;
    width: 100%;
    position: static;
  }
}

.contact-form-section {
  margin-top: 48px;
  padding: 80px 24px;
  background: #f7f7f7;
}

.contact-form-title {
  font-family: 'Neue Haas Grotesk', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 38px;
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: 0;
  color: #050505;
  margin: 0 0 24px;
  text-align: center;
}

.contact-form-msg {
  font-family: 'Messina Sans', sans-serif;
  font-size: 16px;
  line-height: 1.5;
  margin: 0 0 16px;
}

.contact-form-msg--success {
  color: #1e7e34;
}

.contact-form-msg--error {
  color: #b00020;
}

.contact-form {
  max-width: 560px;
  margin: 0 auto;
}

.contact-form-msg {
  text-align: center;
}

.contact-form-row {
  display: flex;
  gap: 24px;
}

.contact-form-row .contact-form-field {
  flex: 1 1 0;
  min-width: 0;
}

.contact-form-field {
  margin-bottom: 20px;
}

.contact-form-field label {
  display: block;
  font-family: 'Messina Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #050505;
  margin-bottom: 6px;
}

.contact-form-field input[type="text"],
.contact-form-field input[type="email"],
.contact-form-field textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 14px;
  border: 1px solid #e2e2e2;
  border-radius: 0;
  background: #ffffff;
  font-family: 'Messina Sans', sans-serif;
  font-size: 16px;
  color: #050505;
  transition: border-color 0.2s ease;
}

.contact-form-field input:focus,
.contact-form-field textarea:focus {
  outline: none;
  border-color: #A31F34;
}

.contact-form-field textarea {
  resize: vertical;
}

.contact-form-submit {
  display: inline-block;
  padding: 14px 32px;
  border: none;
  border-radius: 0;
  background: #A31F34;
  color: #ffffff;
  font-family: 'Messina Sans', sans-serif;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.contact-form-submit:hover {
  background: #B03A54;
}

@media (max-width: 768px) {
  .contact-form-row {
    flex-direction: column;
    gap: 0;
  }
}
