:root {
  --blue: #278ba3;
  --blue-light: #4ec3d8;
  --white: #ffffff;
  --black: #000000;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: Georgia, serif;
  background: var(--black);
  color: var(--white);
  padding: 40px clamp(20px, 4vw, 60px);
  overflow-x: hidden;
}

.header-container {
  display: flex;
  justify-content: center;
  text-align: center;
  margin-bottom: 40px;
}

.title-link { text-decoration: none; color: inherit; }

.title-link h1 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 30px);
  line-height: 1.1;
  text-transform: uppercase;
  user-select: none;
}

.blue  { color: var(--blue); }
.white { color: var(--white); }

.blog-title,
.blog-container {
  max-width: 1150px;
  margin-left: auto;
  margin-right: auto;
}

.blog-title {
  font-size: 30px;
  color: var(--blue-light);
  text-transform: uppercase;
  margin-bottom: 40px;
  text-align: center;
}

.blog-container { display: flex; flex-direction: column; gap: 90px; padding-bottom: 40px; }

.blog-post {
  display: flex;
  gap: clamp(30px, 4vw, 60px);
  border-left: 4px solid var(--blue);
  padding-left: 30px;
  align-items: center;
  transition: transform .3s ease;
}
.blog-post:hover { transform: translateY(-5px); }

.blog-text { flex: 1; min-width: 0; }

.blog-text h2 a { text-decoration: none; color: inherit; display: block; }
.blog-text h2 a:hover { color: var(--blue-light); }

.blog-text h2 { font-size: 24px; margin: 0 0 12px; line-height: 1.3; }
.blog-text p  { font-size: 17px; line-height: 1.8; text-indent: .5em; margin: 0; }
.blog-text p + p { margin-top: 12px; }

.blog-image { width: 300px; flex-shrink: 0; }
.blog-image img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 4px;
  box-shadow: 0 4px 20px rgba(255,255,255,.2);
  transition: transform .3s ease;
}
.blog-image img:hover { transform: scale(1.02); }

@media (max-width: 900px) {
  body { padding: 30px 20px; }
  .blog-post { flex-direction: column-reverse; align-items: stretch; padding-left: 18px; gap: 20px; }
  .blog-post:hover { transform: none; }
  .blog-image { width: 100%; }
  .blog-image img { aspect-ratio: 4 / 3; }
  .blog-text h2 { font-size: 21px; }
  .blog-text p { font-size: 16px; }
}

/* separator între articole */
.blog-post + .blog-post { position: relative; }
.blog-post + .blog-post::before {
  content: "";
  position: absolute;
  top: -46px;
  left: -4px;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(78,195,216,1) 15%, rgba(255,255,255,.9) 50%, rgba(78,195,216,1) 85%, transparent);
}
.blog-post + .blog-post::after {
  content: "";
  position: absolute;
  top: -52px;
  left: calc(50% - 6px);
  width: 11px;
  height: 11px;
  background: #000;
  border: 1px solid #4ec3d8;
  transform: rotate(45deg);
}
@media (max-width: 900px) {
}

/* link „Citește articolul” */
.read-more {
  display: inline-block;
  margin-top: 16px;
  color: var(--blue-light);
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .5px;
  text-transform: uppercase;
  transition: color .25s;
}
.read-more:hover { color: var(--white); }

/* telefon: rezumat scurt — 4 rânduri și „…” */
@media (max-width: 900px) {
  .blog-text p + p { display: none; }
  .blog-text p {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
    line-clamp: 4;
    overflow: hidden;
  }
  .read-more { margin-top: 10px; }
}
