﻿/* ------------------------------
   Variabile & bază
--------------------------------*/
:root {
  --accent: #008e6b;
  --accent-2: #0077cc;
  --text: #222;
  --muted: #555;
  --bg: #ffffff;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { font-family: "Inter", sans-serif; background: var(--bg); color: var(--text); line-height: 1.6; }
img { max-width: 100%; display: block; }
.container { width: min(1100px, 90%); margin: 0 auto; }

/* ------------------------------
   Header & nav
--------------------------------*/
header {
  background: #ffffffcc;
  backdrop-filter: blur(6px);
  position: fixed; top: 0; z-index: 100;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}
.nav { display: flex; justify-content: space-between; align-items: center; padding: 14px 0; }
.brand { font-weight: 800; font-size: 22px; color: var(--accent); }
.nav-links a { margin-left: 25px; text-decoration: none; color: var(--text); font-weight: 500; transition: color .2s; }
.nav-links a:hover { color: var(--accent-2); }

/* ------------------------------
   Hero (caietul)
--------------------------------*/
.hero-header {
  width: 100%;
  height: auto;          /* nu tăiem imaginea */
  max-height: 260px;     /* prevenim header uriaș */
  object-fit: contain;   /* păstrăm conținutul complet */
}

/* ------------------------------
   Motto + Slider
--------------------------------*/
.motto-bar {
  background: #f3f7f9;   /* NU verde */
  color: var(--text);
  text-align: center;
  padding: 10px;
  font-weight: 500;
}

.slider-wrapper {
  display: flex; align-items: center; justify-content: space-between;
  padding: 50px 0; gap: 40px;
}

.slider-text { flex: 1 1 480px; }
.hero-title { color: var(--accent-2); margin-bottom: 12px; }
.lead { color: var(--muted); }

.slider {
  flex: 1 1 450px; position: relative; overflow: hidden;
  border-radius: 12px; min-height: 320px;
}
.slides img {
  width: 100%; height: 100%; object-fit: cover;
  position: absolute; top: 0; left: 0;
  opacity: 0; transition: opacity 1s ease-in-out;
}
.slides img.active { opacity: 1; }

@media (max-width: 900px) {
  .slider-wrapper { flex-direction: column; }
  .slider { width: 100%; min-height: 260px; }
}

/* ------------------------------
   Despre (bloc clicabil)
--------------------------------*/
#despre { padding: 60px 0; }
.decorative-title { font-size: 14px; text-transform: uppercase; letter-spacing: 1px; color: var(--accent); font-weight: 600; margin-bottom: 5px; }

/* ------------------------------
   Titluri decorative (ex: "Cine suntem", "Ce facem")
--------------------------------*/
.decorative-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--accent-2);
  text-transform: uppercase;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.decorative-title::before {
  content: "";
  display: inline-block;
  width: 40px;
  height: 50px;
  background-color: var(--accent-2);
  border-radius: 2px;
}

.about-link-block {
  display: block; color: inherit; text-decoration: none;
  transition: transform .25s ease, box-shadow .25s ease; border-radius: 12px;
}
.about-link-block:hover { transform: translateY(-6px); box-shadow: 0 10px 25px rgba(0,0,0,0.1); }

.about-content { display: flex; align-items: flex-start; gap: 30px; flex-wrap: wrap; margin-top: 30px; }
.about-image { flex: 0 0 350px; max-width: 350px; border-radius: 12px; box-shadow: 0 8px 20px rgba(0,0,0,0.08); transition: transform .3s ease; }
.about-link-block:hover .about-image { transform: scale(1.03); }
.about-text { flex: 1 1 400px; color: var(--muted); }

/* ------------------------------
   Foști membri (cercuri)
--------------------------------*/
.former-members {
  margin-top: 60px;
}

.former-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 20px;
  margin-top: 25px;
  justify-items: center;
  align-items: start;
}

.former-grid img {
  width: 100%;
  max-width: 160px;
  height: auto;
  object-fit: contain; /* se vede toată imaginea */
  background-color: #f5f5f5;
  border-radius: 10px;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  cursor: pointer;
}

.former-grid img:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}


/* ------------------------------
   Activități (6 carduri)
--------------------------------*/
#activitati { padding: 60px 0; background: #f8fafb; }
.activities-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 25px; margin-top: 30px; }
.activity-card {
  background: #fff; border-radius: 12px; padding: 25px; color: var(--text); text-decoration: none;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  transition: transform .25s ease, box-shadow .25s ease;
}
.activity-card h3 { color: var(--accent-2); margin-bottom: 10px; }
.activity-card p { color: var(--muted); font-size: 15px; }
.activity-card:hover { transform: translateY(-6px); box-shadow: 0 12px 25px rgba(0,0,0,0.08); }

/* ------------------------------
   Lightbox
--------------------------------*/
.lightbox {
  display: none; position: fixed; z-index: 9999; inset: 0;
  background: rgba(0,0,0,0.9); justify-content: center; align-items: center;
}
.lightbox.show { display: flex; }
.lightbox img { max-width: 80%; max-height: 80%; border-radius: 8px; box-shadow: 0 8px 25px rgba(0,0,0,0.5); }
.lightbox-prev, .lightbox-next, .lightbox-close {
  position: absolute; color: #fff; font-size: 40px; font-weight: bold; cursor: pointer; user-select: none; transition: .3s;
}
.lightbox-prev, .lightbox-next { top: 50%; transform: translateY(-50%); padding: 10px; border-radius: 4px; }
.lightbox-prev:hover, .lightbox-next:hover, .lightbox-close:hover { color: var(--accent-2); }
.lightbox-prev { left: 40px; }
.lightbox-next { right: 40px; }
.lightbox-close { top: 25px; right: 45px; font-size: 35px; }

/* ------------------------------
   Contact (2 coloane)
--------------------------------*/
#contact {
  padding: 60px 0;
}

.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 40px;
  align-items: start;
}

.contact-info {
  color: var(--muted);
}

.contact-form {
  display: flex;
  flex-direction: column;
}

/* --- Câmpuri mai mari și mai elegante --- */
.input {
  width: 100%;
  padding: 14px 18px; /* mai mult spațiu în interior */
  border: 1px solid #ccc;
  border-radius: 10px;
  margin-bottom: 15px;
  font-family: inherit;
  font-size: 16px;
  line-height: 1.5;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0, 150, 136, 0.1);
  outline: none;
}

/* --- Buton modern --- */
.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
  text-align: center;
  border: none;
  font-size: 16px;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  transition: background 0.2s ease, transform 0.2s ease;
}

.btn-primary:hover {
  background: var(--accent-2);
  transform: translateY(-2px);
}



/* ------------------------------
   Footer (aliniat stânga)
--------------------------------*/
#footer { background: #f3f7f9; padding: 40px 0; margin-top: 40px; }
.footer-old { display: flex; align-items: center; justify-content: flex-start; gap: 20px; }
.footer-logo-old { width: 80px; height: auto; }
.footer-text { font-size: 14px; color: var(--muted); line-height: 1.5; }
.footer-text a { color: var(--accent-2); text-decoration: none; }

/* ------------------------------
   Responsive
--------------------------------*/
@media (max-width: 900px) {
  .slider-wrapper { flex-direction: column; }
  .about-content { flex-direction: column; }
  .contact-wrapper { grid-template-columns: 1fr; }
  .footer-old { flex-direction: column; align-items: center; text-align: center; }
}
/* ------------------------------
   Pagina Cercul BioTEAM
--------------------------------*/

/* ------------------------------
   Carduri membri
--------------------------------*/
.member-section {
  margin-top: 50px;
}

.member-section h3 {
  color: var(--accent-2);
  font-size: 20px;
  margin-bottom: 20px;
  border-left: 4px solid var(--accent-2);
  padding-left: 10px;
}

.member-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 15px;
}

.member-card {
  background: #fff;
  border-radius: 10px;
  padding: 15px 18px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.05);
  transition: all 0.25s ease;
}

.member-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 18px rgba(0,0,0,0.1);
}

.member-card p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}

/* ------------------------------
   Corectare afișare Foști membri
--------------------------------*/
.long-text {
  background: #f8fafb;
  border-radius: 10px;
  padding: 25px;
  box-shadow: none;
  width: 100%;
  display: block;
}

.long-text p {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.7;
  text-align: justify;
  margin: 0;
}



/* ------------------------------
   Grila trupe anterioare
--------------------------------*/
/* Grilă trupe anterioare - 3 pe rând */
.former-crew-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 25px;
  margin-top: 25px;
  justify-items: center;
}

.former-crew-grid div {
  text-align: center;
  width: 100%;
  max-width: 300px;
}

.former-crew-grid img {
  width: 100%;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  height: auto; /* înălțime naturală */
  object-fit: contain; /* se vede toată imaginea */
  background-color: #f5f5f5; /* opțional, fundal neutru */
  border-radius: 10px;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}


.former-crew-grid img:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.former-crew-grid p {
  margin-top: 8px;
  font-size: 14px;
  color: var(--muted);
  font-style: italic;
}


/* ------------------------------
   Casetă PDF Regulament
--------------------------------*/
.pdf-box {
  background: #f8fafb;
  border-radius: 12px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  margin-top: 25px;
}

.pdf-box p {
  color: var(--muted);
  margin-bottom: 15px;
  font-size: 15px;
}

.pdf-box .btn {
  padding: 10px 25px;
  font-size: 15px;
  border-radius: 8px;
}
.about-image-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 25px;
  margin-top: 40px;
}

.about-image-row img {
  max-width: 450px;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.caption-side {
  font-size: 16px;
  color: var(--accent-2);
  font-weight: 600;
  white-space: nowrap;
}

/* Face secțiunea trupe anterioare full width */
.member-section.fullwidth {
  width: 100%;
  display: block;
}

.member-section.fullwidth .former-crew-grid {
  width: 100%;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}

.member-section.fullwidth img {
  width: 100%;
  height: auto;
  object-fit: cover;
}
/* Corecție forțată pentru trupe anterioare */
.former-crew-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) !important;
  gap: 25px !important;
  width: 100% !important;
  margin-top: 25px;
  justify-items: center;
}

.member-section.fullwidth {
  display: block !important;
  width: 100% !important;
}

.member-section.fullwidth .former-crew-grid div {
  text-align: center;
  width: 100%;
  max-width: 300px;
}

.member-section.fullwidth img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 6px 14px rgba(0,0,0,0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.member-section.fullwidth img:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.member-section.fullwidth p {
  margin-top: 8px;
  font-size: 14px;
  color: var(--muted);
  font-style: italic;
}
/* Corecție completă pentru secțiunea Trupe anterioare */
.member-section.fullwidth {
  display: block !important;
  width: 100% !important;
}

.member-section.fullwidth > * {
  width: 100%;
}

.member-section.fullwidth .former-crew-grid {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important; /* forțăm 3 pe rând */
  gap: 25px;
  justify-items: center;
  align-items: start;
}

@media (max-width: 900px) {
  .member-section.fullwidth .former-crew-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 600px) {
  .member-section.fullwidth .former-crew-grid {
    grid-template-columns: 1fr !important;
  }
}
/* Lightbox trupe anterioare */
.lightbox {
  display: none;
  position: fixed;
  z-index: 9999;
  padding-top: 80px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.9);
}

.lightbox-content {
  display: block;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 90%;
  max-height: 80vh;
  border-radius: 10px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}


#crew-caption {
  margin: 20px auto;
  text-align: center;
  color: #f1f1f1;
  font-size: 16px;
  font-style: italic;
}

.lightbox .close {
  position: absolute;
  top: 30px;
  right: 45px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.2s;
}

.lightbox .close:hover {
  color: #bbb;
}

.lightbox .prev,
.lightbox .next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  margin-top: -25px;
  padding: 10px;
  color: #f1f1f1;
  font-weight: bold;
  font-size: 30px;
  transition: 0.3s;
  user-select: none;
}

.lightbox .prev {
  left: 30px;
}

.lightbox .next {
  right: 30px;
}

.lightbox .prev:hover,
.lightbox .next:hover {
  color: #bbb;
}
/* Membri actuali - titlu deasupra imaginii */
.about-image-center {
  display: flex;
  flex-direction: column; /* pune textul deasupra pozei */
  align-items: center;
  text-align: center;
  margin: 40px auto;
}

.about-image-center .section-title {
  font-size: 22px;
  color: var(--accent-2);
  margin-bottom: 15px;
  position: relative;
  display: inline-block;
}

.about-image-center .section-title::after {
  content: "";
  display: block;
  width: 60%;
  height: 2px;
  background: var(--accent-2);
  margin: 6px auto 0;
  opacity: 0.3;
}

.about-image-center img {
  max-width: 500px;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}
@keyframes zoomInLightbox {
  from { transform: translate(-50%, -50%) scale(0.9); opacity: 0; }
  to { transform: translate(-50%, -50%) scale(1); opacity: 1; }
}

.lightbox-content {
  display: block;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 90%;
  max-height: 80vh;
  border-radius: 10px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.3);
  animation: zoomInLightbox 0.3s ease;
}
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  max-width: 600px;
  margin: auto;
}

.contact-form input,
.contact-form textarea {
  padding: 12px 15px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 15px;
  width: 100%;
  resize: none;
}

.contact-form .btn {
  background: #009688;
  color: white;
  border: none;
  border-radius: 8px;
  padding: 12px 20px;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.3s ease;
}

.contact-form .btn:hover {
  background: #007b83;
}
/* ------------------------------
   Aliniere globală text (justify)
--------------------------------*/
p {
  text-align: justify;
}
.caption {
  font-size: 0.95rem;
  text-align: justify;
  margin-bottom: 8px;
  color: #333;
}

/* ------------------
Logo
-------------------*/
.brand {
  display: flex;
  align-items: center;
  gap: 10px; /* spațiu între logo și text */
  font-weight: 800;
  font-size: 22px;
  color: var(--accent);
}

.logo {
  height: 100px;      /* ajustează după preferință */
  width: auto;
  display: block;
}
/* ===============================
   Corecție meniu principal BioTEAM
   =============================== */
header {
  position: fixed;
  top: 0;
  width: 100%;
  background: #ffffffcc;
  backdrop-filter: blur(6px);
  z-index: 1000;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

header {
  min-height: 80px;
  display: flex;
  align-items: center;
}

body {
  padding-top: 90px; /* împinge conținutul sub header */
}
.container.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: min(1100px, 90%);
  margin: 0 auto;
  padding: 14px 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 25px;
}

.nav-links a {
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
  transition: color .2s;
}

.nav-links a:hover {
  color: var(--accent-2);
}
/* Corecție pentru paginile interne (ex: concursuri, revista, educatie etc.) */
body:not(.home) main {
  padding-top: 90px; /* împinge conținutul sub header */
}

.decorative-title {
  margin-top: 0; /* elimină dublura de spațiu */
}

/* ===============================
   Butoane in pagina Galerie
   =============================== */

.project-nav {
  position: fixed;
  top: 140px; /* ajustăm în funcție de înălțimea headerului */
  left: 0;
  width: 100%;
  z-index: 999;
  background-color: #fff;
  border-bottom: 1px solid #e0e0e0;
}

.project-nav-buttons {
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 10px 0 14px 0; /* 🔸 padding jos adăugat */
}

.project-btn {
  background: #f6f6f6;
  border-radius: 6px;
  padding: 8px 16px;
  color: #333;
  text-decoration: none;
  font-weight: 600;
  transition: 0.3s;
}

.project-btn:hover {
  background: #dcdcdc;
}

.project-btn.active {
  background: #007b5e;
  color: white;
}


.download-btn {
  position: absolute;
  bottom: 20px;
  right: 20px;
  background-color: rgba(0, 0, 0, 0.7);
  color: #fff;
  padding: 8px 15px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.3s;
}
/* ===============================
   Buton Descarca poze
   =============================== */
.download-btn:hover {
  background-color: rgba(0, 0, 0, 0.9);
}

/* ===============================
		Lightbox Video
   =============================== */
.lightbox-video {
  width: 90%;
  height: auto;
  max-width: 1200px;        /* poți crește dacă vrei și mai mare */
  max-height: 70vh;         /* ocupă 90% din înălțimea ecranului */
  border-radius: 10px;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.7);
  background: #000;         /* dacă video e mic, se vede fundal negru */
}

#videoLightbox .download-btn {
  bottom: 15px;
  right: 25px;
}

.page-galerie main .container {
  padding-top: 50px !important;
}

/* ===============================
		Buton Back to Top
   =============================== */

#backToTop {
  position: fixed;
  bottom: 25px;
  right: 25px;
  background-color: #218b21;
  color: white;
  border: none;
  border-radius: 30px;
  padding: 8px 16px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.2s ease;
  box-shadow: 0 3px 8px rgba(0,0,0,0.3);
  z-index: 9999;
}

#backToTop.show {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1.05);
}

#backToTop:hover {
  background-color: #1b6e1b;
  transform: scale(1.1);
}

/* ===============================
		Sterge Buton Back to Top
   =============================== */
#backToTop.hidden {
  opacity: 0 !important;
  pointer-events: none !important;
  transition: opacity 0.3s ease;
}

/* ===============================
		Secțiune aniversară
   =============================== */
.aniversare-slider {
  width: 100%;
  max-width: 720px;
  margin: 20px auto;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  background: transparent;
}

/* container intern */
.aniversare-slider .slides {
  position: relative;
  width: 100%;
  height: 360px;
  background: #000;              /* doar fundalul din spate */
  display: flex;
  justify-content: center;
  align-items: center;
}

/* fiecare imagine e suprapusă și centrată perfect */
.aniversare-slider .slides img {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%); /* ❤️ centru real pe ambele axe */
  width: auto;
  height: 100%;
  max-width: 100%;
  object-fit: contain;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

/* imaginea activă e vizibilă */
.aniversare-slider .slides img.active {
  opacity: 1;
  z-index: 2;
}

/* versiune mai mică pe mobil */
@media (max-width: 768px) {
  .aniversare-slider .slides {
    height: 260px;
  }
}

/* DE AICI STERG*/

.member-cards.long-text {
  columns: 3;                 /* împarte automat în 3 coloane */
  column-gap: 2rem;           /* spațiu între coloane */
  text-align: justify;        /* text aliniat frumos */
  line-height: 1.6;           /* spațiere confortabilă */
  font-size: 0.95rem;
  color: #222;                /* text neutru */
  max-width: 1200px;
  margin: 0 auto 2rem;
  padding: 1rem 1.5rem;
  background: #fafafa;        /* fundal foarte deschis */
  border-radius: 10px;
  border-left: 4px solid #5cb85c; /* accent verde BioTEAM */
}

/* Pe ecrane mici, redu numărul de coloane */
@media (max-width: 900px) {
  .member-cards.long-text {
    columns: 2;
  }
}
@media (max-width: 600px) {
  .member-cards.long-text {
    columns: 1;
  }
}
