/* === HERO BANNER BLOG === */
.blog-hero {
  position: relative;
  height: 480px;
  background-size: cover;
  background-position: center 30%; /* poziționează imaginea mai jos */
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  overflow: hidden;
}

.blog-hero-overlay {
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(0, 8, 24, 0.9), rgba(0, 8, 24, 0.5), transparent);
  display: flex;
  align-items: center;
  padding-left: 8%;
}

.blog-hero-content {
  color: white;
  max-width: 600px;
  width: 50%;
  z-index: 2;
  position: relative;
  /* background-position: center 10%; ← eliminăm, nu se aplică aici */
}

.blog-hero-content .subtitle {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  opacity: 0.8;
}

.blog-hero-content h1 {
  font-size: 2.0rem;
  margin-bottom: 1rem;
}

.blog-hero-content .description {
  font-size: 1.1rem;
  opacity: 0.85;
}

@media (max-width: 768px) {
  .blog-hero {
    height: 420px;
    justify-content: center;
  }

  .blog-hero-overlay {
    padding-left: 0;
    justify-content: center;
    text-align: center;
  }

  .blog-hero-content {
    width: 90%;
  }

  .blog-hero-content h1 {
    font-size: 2rem;
  }
}


/* === SEARCHBAR INTEGRATĂ CU FILTRU === */
.blog-searchbar {
  background: #f4f4f4;
  padding: 40px 20px;
  display: flex;
  justify-content: center;
}

.searchbar-wrapper {
  display: flex;
  align-items: center;
  background: white;
  border-radius: 40px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  max-width: 900px;
  width: 100%;
}

.searchbar-wrapper select {
  border: none;
  padding: 14px 20px;
  background: #151c37;
  color: white;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 0px 0 0 0px;
  appearance: none;
  cursor: pointer;
  min-width: 160px;
}

.searchbar-wrapper select:focus {
  outline: none;
}

.searchbar-wrapper input {
  flex: 1;
  border: none;
  padding: 14px 20px;
  font-size: 1rem;
  color: #333;
}

.searchbar-wrapper input::placeholder {
  color: #888;
}

.searchbar-wrapper button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: transparent;
  border: none;
  padding: 0 20px;
  font-size: 1.2rem;
  color: #151c37;
  cursor: pointer;
  transition: color 0.2s ease;
}

.searchbar-wrapper button:hover {
  color: #e60000;
}

/* === RESPONSIVE (MOBIL) === */
@media (max-width: 768px) {
  .searchbar-wrapper select,
  .searchbar-wrapper input,
  .searchbar-wrapper button {
    padding: 8px 12px;
    font-size: 0.8rem;
    min-width: auto;
    width: auto;
    border-radius: 1px; /* colțuri rotunjite */
  }

  .searchbar-wrapper {
    flex-direction: column;
    gap: 0.5rem;
    align-items: stretch;
    margin: 0 0rem;
    border-radius: 12px; /* colțuri rotunjite */
    max-width: 200px;
  }

  .searchbar-wrapper input {
    flex: 1;
    width: 80%;
  }

  .searchbar-wrapper button {
    width: 80%;
    border-radius: 1px; /* colțuri rotunjite */
  }
}



/* blog_style.css - Stiluri pentru carduri moderne */

.blog-list {
  display: flex;
  flex-direction: column;
  gap: 4rem;
  padding: 3rem 2rem;
  max-width: 1200px;
  margin: auto;
  position: relative;
}

.blog-entry {
  display: flex;
  flex-direction: column;
  background-color: #121424;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,0.25);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  animation: fadeInCard 0.6s ease both;
}

@keyframes fadeInCard {
  0% {
    transform: translateY(40px);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

.blog-entry::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%) rotate(-2deg);
  width: 60%;
  height: 12px;
  background: repeating-linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.05),
    rgba(255, 255, 255, 0.05) 4px,
    transparent 4px,
    transparent 8px
  );
  border-radius: 6px;
  filter: blur(1px);
  z-index: 1;
  animation: shadowZigzag 3s infinite ease-in-out;
}

@keyframes shadowZigzag {
  0%, 100% {
    transform: translateX(-50%) rotate(-2deg);
    opacity: 0.6;
  }
  50% {
    transform: translateX(-50%) rotate(2deg);
    opacity: 1;
  }
}

.blog-entry:hover {
  transform: scale(1.015);
  box-shadow: 0 24px 50px rgba(0,0,0,0.35);
}

.blog-preview {
  display: flex;
  flex-direction: row;
  width: 100%;
  height: 620px;
  position: relative;
  aspect-ratio: 4 / 2;
}

.blog-info {
  width: 50%;
  padding: 2.5rem;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.5rem;
  background: linear-gradient(to right, #1c1c3f, #151a30, #0e1021);
  z-index: 2;
}

.blog-author {
  font-size: 0.95rem;
  opacity: 0.85;
}

.blog-divider {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  margin: 0.5rem 0 0 0;
  width: 100%;
}

.blog-title {
  font-size: 2rem;
  font-weight: bold;
  margin: 0;
  color: #fff;
}

.blog-excerpt {
  font-size: 1rem;
  line-height: 1.6;
  color: #ddd;
}

.blog-image-wrapper {
  width: 50%;
  position: relative;
  overflow: hidden;
  z-index: 2;
}

.blog-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.blog-date {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(0,0,0,0.7);
  color: #fff;
  padding: 6px 10px;
  font-size: 0.8rem;
  border-radius: 8px;
  z-index: 3;
}

.entry-actions {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(16px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  z-index: 5;
  border-top: 1px solid rgba(255,255,255,0.1);
  border-radius: 0 0 14px 14px;
}


.entry-actions .left-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.entry-actions .tag {
  background: rgba(255,255,255,0.1);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.85rem;
  color: #fff;
}

.read-more {
  background: linear-gradient(to right, #1114398e, #20255c7e);
  color: white;
  border: none;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: 100px;
  font-size: 0.95rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.read-more:hover {
  background: linear-gradient(to right, #861010, #8b0909);
}

.blog-meta {
  display: flex;
  gap: 1.5rem;
  font-size: 0.9rem;
  color: #ccc;
  margin-top: auto;
}

.blog-meta .tag {
  background: rgba(255, 255, 255, 0.1);
  padding: 6px 12px;
  border-radius: 999px;
}

.blog-meta .comments {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.blog-full {
  padding: 1rem 2.5rem 2.5rem;
  color: #ddd;
  font-size: 1rem;
  line-height: 1.6;
  display: none;
  background-color: #2d221c;
}

.blog-entry.expanded .blog-full {
  display: block;
  background: linear-gradient(to right, #1c1c3f, #151a30, #0e1021);
  transition: background-color 0.4s ease;
  border-radius: 8px;
}

.blog-entry.glow-highlight {
  animation: glowFlash 1.6s ease-in-out;
  box-shadow: 0 0 25px 5px rgba(255, 60, 60, 0.4);
  border: 1px solid #ff5555;
}

@keyframes glowFlash {
  0% { box-shadow: 0 0 0px rgba(255, 60, 60, 0); }
  30% { box-shadow: 0 0 20px 8px rgba(255, 60, 60, 0.6); }
  100% { box-shadow: 0 0 0px rgba(255, 60, 60, 0); }
}

/* Paginare */
.pagination {
  text-align: center;
  margin-top: 3rem;
  margin-bottom: 3rem;
}

.page-btn {
  background: linear-gradient(to right, #1c1c3f, #151a30, #0e1021);
  color: #fff;
  border: none;
  margin: 0 0.3rem;
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
  transition: background 0.3s ease;
}

.page-btn.active,
.page-btn:hover {
  background: #f97316;
  color: #fff;
}

/* Responsivitate */
@media (max-width: 960px) {
  .blog-preview {
    flex-direction: column;
  }

  .blog-info,
  .blog-image-wrapper {
    width: 100%;
  }
}




/* === Paginare === */
.pagination {
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 40px 0;
}

.page-btn {
  padding: 10px 16px;
  font-size: 1rem;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.page-btn:hover {
  background: #f1f1f1;
}

.page-btn.active {
  background: #0f1127;
  color: white;
  border-color: #141539;
}

/* === NAVBAR LA SCROLL === */
.navbar.scrolled {
  background: rgba(5, 0, 36, 0.9);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

/* === Pagini Carduri === */
.pagination {
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 40px 0;
}

.page-btn {
  padding: 10px 16px;
  font-size: 1rem;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.page-btn:hover {
  background: #f1f1f1;
}

.page-btn.active {
  background: #0f1127;
  color: white;
  border-color: #141539;
}

/* === Carduri === */
.blog-section {
  display: flex;
  flex-direction: column;
  gap: 80px;
  padding: 80px 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.blog-entry-card {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  height: 720px;      /* 🔁 forțăm dimensiune fixă */
  width: 100%;
}

.blog-entry-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;     /* face imaginea să umple spațiul complet */
  z-index: 1;
}

.blog-entry-box {
  position: absolute;
  bottom: 40px;
  left: 40px;
  z-index: 2;
  max-width: 400px;
  min-height: 260px;
  background: rgba(255, 255, 255, 0.388);
  backdrop-filter: blur(10px);
  padding: 70px 40px;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.blog-category {
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #d32f2f;
  margin-bottom: 6px;
}

.blog-title {
  font-size: 1.8rem;
  font-weight: 800;
  color: #111;
  text-decoration: none;
  margin-bottom: 8px;
  display: inline-block;
}

.blog-snippet {
  font-size: 1rem;
  color: #333;
  line-height: 1.6;
}


/* === SOCIAL STICKY === */
.social-sticky {
  position: fixed;
  top: 35%;
  right: 0;
  background: #c00; 
  border-radius: 12px 0 0 12px;
  padding: 0.6rem 0.5rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  box-shadow: -2px 2px 10px rgba(0, 0, 0, 0.594);
  font-family: 'Decalotype', sans-serif !important;
}

.social-sticky .share-label {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-size: 12px;
  color: white;
  font-weight: bold;
}

.social-sticky a img {
  width: 22px;
  height: 22px;
  transition: transform 0.2s ease;
  filter: brightness(0) invert(1); /* face iconițele albe */
}

.social-sticky a:hover img {
  transform: scale(1.2);
}

/* Footer */
.gov-footer {
  position: relative;
  background-color: #0b1320;
  color: white;
  padding: 40px 20px 20px;
  font-family: 'League Spartan', sans-serif;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Watermark cu fade aplicat doar pe imagine */
.gov-footer::after {
  content: '';
  position: absolute;
  bottom: -90px;
  right: 20px;
  width: 1100px;
  height: 400px;
  background-image: url('images/Logo Timisoara.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;

  -webkit-mask-image: linear-gradient(to top, rgb(255, 255, 255), transparent);
  mask-image: linear-gradient(to top, rgb(255, 255, 255), transparent);

  opacity: 0.5;
  pointer-events: none;
  z-index: 0;
}

/* TOP FOOTER - aliniere pe linie */
.footer-top {
  display: flex;
  justify-content: space-between; /* 🔁 spațiere automată între cele 3 secțiuni */
  align-items: center;
  gap: 500px; /* 🔧 poți ajusta: 60px, 80px, 120px */
  max-width: 1600px;
  margin: 0 auto;
  padding-bottom: 30px;
  z-index: 1;
}


.footer-left,
.footer-center,
.footer-right {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 200px;
}

.footer-left {
  justify-content: flex-start;
  gap: 12px;
}

.footer-logo {
  width: 120px;
}

.footer-desc {
  font-size: 1rem;
  line-height: 1.4;
  white-space: nowrap;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.footer-center a {
  color: white;
  font-weight: bold;
  text-decoration: none;
  font-size: 1rem;
}

.footer-right {
  justify-content: flex-end;
  gap: 16px;
}

.footer-right a {
  display: inline-block;
  transition: transform 0.2s ease;
}

.footer-right img {
  width: 26px;
  height: 26px;
  object-fit: contain;
  filter: brightness(1) invert(0);
  transition: transform 0.2s ease;
}

.footer-right a:hover img {
  transform: scale(1.2);
}

/* BOTTOM FOOTER */
.footer-bottom {
  margin-top: 30px;
  text-align: center;
  z-index: 1;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.footer-links a {
  color: #ccc;
  text-decoration: none;
  font-size: 0.95rem;
}

.footer-links a:hover {
  color: #fff;
}

.footer-divider {
  height: 1px;
  width: 100%;
  background: #444;
  margin: 10px auto;
  max-width: 1500px;
}

.footer-copy {
  font-size: 0.85rem;
  color: #888;
  margin-top: 10px;
}

@media (max-width: 768px) {
  .footer-top {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.5rem;
  }

  .footer-left, .footer-center, .footer-right {
    justify-content: center;
    text-align: center;
  }

  .footer-left {
    flex-direction: column;
  }

  .footer-right {
    gap: 1rem;
  }

  .footer-logo {
    max-width: 120px;
    height: auto;
  }
}


/* === RESPONSIVE DESIGN pentru mobil === */
@media (max-width: 768px) {
  .blog-entry-card {
    width: 100%;
    height: 500px;
    max-width: 360px;
    margin: 5rem auto;
    border-radius: 16px;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(16px);
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.4);
    display: block;
    flex-direction: column;
    overflow: hidden;

    /* 🔽 REDUCERE ÎNĂLȚIME */
    padding: 0; /* eliminăm spațiu suplimentar */
  }

  .blog-entry-image {
    width: 100%;
    height: 500px; /* 🔽 imagine mai scundă */
    object-fit: cover;
  }

.blog-entry-box {
  /* margin-top: auto; 🔴 elimină linia asta */
  padding: 0.6rem 1rem;
  background: rgba(173, 173, 173, 0.527);
  backdrop-filter: blur(8px);
  border-radius: 0 0 14px 14px;
  max-height: 50px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
}



  .blog-title {
    font-size: 0.95rem;
    margin-bottom: 0.1rem;
  }

  .blog-snippet {
    font-size: 0.8rem;
    line-height: 1.2;
    color: #ccc;
  }

  .blog-category {
    font-size: 0.75rem;
    margin-bottom: 0.2rem;
    color: #ff5c5c;
    text-transform: uppercase;
  }
}

@media (max-width: 768px) {
.blog-hero {
  height: 400px;
  background-position: 70% top; /* 🔁 100% = dreapta complet, 70% e ușor spre dreapta */
  background-size: auto 150%;
  overflow: hidden;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 60px;
}

  .blog-hero-overlay {
    padding: 0 5vw;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding-top: 60px; /* sau mai mult dacă vrei mai jos */
  }

  .blog-hero-content {
    max-width: 90%;
  }
  .blog-hero-content .description {
    font-size: 0.8rem !important;
    text-align: center !important;
    padding: 5 1rem !important;
    margin-top: 1.8rem;
    margin-bottom: 2.2rem;
  }
  
 .blog-hero-content h1 {
    font-size: 1.0rem;
    font-weight: 600;
    text-align: center;
    margin-top: 1.8rem;
    margin-bottom: 0.2rem;
  }

    .blog-hero-content .subtitle {
    font-size: 1.0rem;
    text-align: center;
    margin-bottom: 1.5rem;
    margin-top: 1rem;
  }


  .blog-hero-content .description {
    font-size: 1rem;
    text-align: center;
    padding: 0 1rem;
    margin-top: 1rem;
    margin-bottom: -2.5rem;
  }
}
  


@media (max-width: 768px) {
  .blog-hero-content {
    padding-top: 6.5rem;
  }
 }

 