/* ===============================
   STIL GENERAL
================================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Arial, sans-serif;
}

body {
  background-color: #f5f7fa;
  color: #333;
  line-height: 1.6;
}

/* ===============================
   HEADER + LOGO
================================= */
header {
  background-color: #004aad;
  color: #fff;
  padding: 1rem 0;
  text-align: center;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.logo {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.logo img {
  width: 90px;
  height: auto;
  margin-bottom: 0.5rem;
}

.logo h1 {
  font-size: 1.5rem;
  font-weight: 700;
}

/* ===============================
   MENIU DE NAVIGARE
================================= */
nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  background: #003580;
  padding: 0.5rem 0;
  margin-top: 1rem;
}

nav ul li {
  margin: 0.5rem 1rem;
}

nav ul li a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  transition: color 0.3s, transform 0.2s;
  display: flex;
  align-items: center;
  gap: 6px;
}

nav ul li a i {
  font-size: 1.3rem;
  color: #ffde00;
  transition: transform 0.3s;
}

nav ul li a:hover {
  color: #ffde00;
}

nav ul li a:hover i {
  transform: scale(1.2);
}

nav ul li a.active {
  border-bottom: 2px solid #ffde00;
}

/* ===== CITAT HERO (CENTRAT + FONT MARE) ===== */
.hero {
  background: url("../img/liceu.jpg") center/cover no-repeat;
  color: white;
  text-align: center;
  height: 100vh; /* umple ecranul */
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.hero-overlay {
  background: rgba(0, 0, 0, 0.55);
  padding: 3rem;
  border-radius: 16px;
  text-align: center;
  max-width: 900px;
  animation: fadeInHero 2s ease forwards;
}

.hero h1 {
  font-size: 2.4rem;
  margin-bottom: 1.5rem;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.4);
}

/* ===== TITLU HERO ANIMAT PE DOUĂ RANDURI ===== */
.hero-title {
  color: #ffffff;
  text-align: center;
  line-height: 1.3;
  text-shadow: 1px 1px 4px rgba(0,0,0,0.5);
}

.hero-title .title-top {
  display: block;
  font-size: 2.4rem;
  color: #ffde00;
  font-weight: 300;
  opacity: 0;
  transform: translateY(-40px);
  animation: slideDown 1.5s ease forwards;
}

.hero-title .title-bottom {
  display: block;
  font-size: 3rem;
  color: #ffffff;
  font-weight: 600;
  opacity: 0;
  transform: translateY(40px);
  animation: slideUp 1.5s ease 0.8s forwards; /* începe după o mică întârziere */
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.citat {
  font-size: 2rem;              /* mai mare */
  font-weight: 400;
  font-style: italic;
  color: #ffde00;
  line-height: 1.6;
  margin: 0 auto;
  text-align: center;
  max-width: 800px;
  animation: fadeInQuote 2s ease forwards;
}

.citat i {
  font-size: 1.4rem;
  color: #ffde00;
  margin: 0 10px;
}

.citat span {
  display: block;
  margin-top: 1rem;
  font-size: 1.2rem;
  color: #ffffff;
  text-align: center;
  font-style: normal;
  font-weight: 500;
  opacity: 0.9;
}

.citat::after {
  content: "";
  display: block;
  width: 150px;
  height: 3px;
  background-color: #ffde00;
  margin: 1.5rem auto 0;
  border-radius: 2px;
}

/* Cursor animat pentru efectul de scriere */
#typewriter-text::after {
  content: "|";
  display: inline-block;
  animation: blink 0.8s infinite;
  color: #ffde00;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

@keyframes fadeInQuote {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===============================
   GALERIE FOTO
================================= */
#galerie {
  max-width: 1100px;
  margin: 2rem auto;
  text-align: center;
  padding: 1rem;
  background: #f6f8ff;
  border-radius: 12px;
}

#galerie h2 {
  color: #004aad;
  margin-bottom: 1rem;
}

.galerie-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
}

.galerie-grid img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}

.galerie-grid img:hover {
  transform: scale(1.03);
  box-shadow: 0 6px 14px rgba(0,0,0,0.2);
}

/* ===============================
   CONTACT
================================= */
#contact {
  background-color: #ffffff;
  padding: 2.5rem 1rem;
  border-radius: 12px;
  max-width: 800px;
  margin: 2rem auto;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  text-align: left;
}

#contact h2 {
  text-align: center;
  color: #004aad;
  margin-bottom: 1.5rem;
}

#contact p {
  margin: 0.8rem 0;
  font-size: 1rem;
  line-height: 1.6;
}

#contact a {
  color: #007acc;
  text-decoration: none;
  font-weight: 500;
}

#contact a:hover {
  text-decoration: underline;
}

#contact i {
  margin-right: 6px;
  color: #004aad;
}

/* ===============================
   DOCUMENTE DESCARCABILE
================================= */
#documente {
  max-width: 1100px;
  margin: 2rem auto;
  padding: 1rem;
  text-align: center;
}

#documente h2 {
  color: #004aad;
  margin-bottom: 1.5rem;
}

#documente p {
  color: #444;
  margin-bottom: 2rem;
}

.documente-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.doc-card {
  background: #ffffff;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  transition: transform 0.3s, box-shadow 0.3s;
  text-align: left;
}

.doc-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.15);
}

.doc-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 1rem;
}

.doc-header h3 {
  font-size: 1.1rem;
  color: #222;
}

.doc-icon {
  font-size: 1.8rem;
  transition: transform 0.3s ease;
}

/* CULORI DIFERITE PENTRU ICONITE */
.doc-icon.blue { color: #1976d2; }   /* albastru */
.doc-icon.green { color: #388e3c; }  /* verde */
.doc-icon.orange { color: #f57c00; } /* portocaliu */
.doc-icon.red { color: #d32f2f; }    /* roșu */

/* Efect animat la hover */
.doc-icon:hover {
  transform: scale(1.2);
}

/* Buton descarcare */
.btn-download {
  display: inline-block;
  padding: 0.5rem 1rem;
  background-color: #004aad;
  color: #fff;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s;
}

.btn-download:hover {
  background-color: #003580;
}

/* ===============================
   FOOTER
================================= */
footer {
  background-color: #003580;
  color: #fff;
  text-align: center;
  padding: 1rem 0;
  margin-top: 2rem;
  font-size: 0.95rem;
}

/* ===============================
   RESPONSIVE DESIGN
================================= */
@media (max-width: 768px) {
  .logo h1 {
    font-size: 1.2rem;
  }

  nav ul {
    flex-direction: column;
    gap: 0.5rem;
  }

  .hero {
    padding: 5rem 1rem;
  }
}
/* ===== LIGHTBOX ===== */
.lightbox {
  display: none;
  position: fixed;
  z-index: 1000;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  justify-content: center;
  align-items: center;
}

.lightbox-content {
  max-width: 90%;
  max-height: 90%;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(255,255,255,0.2);
  animation: zoomIn 0.4s ease;
}

@keyframes zoomIn {
  from { transform: scale(0.8); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.close {
  position: absolute;
  top: 30px;
  right: 40px;
  color: white;
  font-size: 2rem;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.3s;
}

.close:hover {
  color: #ffde00;
}


/* =============================
     OFERTA EDUCAȚIONALĂ – CARDURI FIXE
============================== */

#oferta {
  padding: 60px 20px;
  background: linear-gradient(to bottom, #e8eef7, #ffffff);
}

/* GRID FIX – CARDURI CU LĂȚIME EGALĂ */
.oferta-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* exact 3 carduri pe rând */
  gap: 30px;
  max-width: 1100px;
  margin: 0 auto;
}


/* CARD FIX – TOATE CU ACEEAȘI DIMENSIUNE */
.oferta-card {
  background: white;
  padding: 25px;
  border-radius: 18px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.12);
  text-align: center;
  border-top: 6px solid transparent;
  transition: 0.35s ease;
   display: flex;
  flex-direction: column;
  justify-content: start; /* continutul începe sus */
}





/* Efect hover */
.oferta-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.18);
}

/* ICONIȚE */
.oferta-icon {
  font-size: 3rem;
  margin-bottom: 15px;
  display: block;
}

/* CULORI ICONIȚE */
.oferta-icon.red { color: #d32f2f; }
.oferta-icon.blue { color: #1976d2; }
.oferta-icon.green { color: #2e7d32; }
.oferta-icon.orange { color: #ef6c00; }
.oferta-icon.purple { color: #6a1b9a; }

/* CULORI BORDER CARD */
.oferta-card.red { border-top-color: #d32f2f; }
.oferta-card.blue { border-top-color: #1976d2; }
.oferta-card.green { border-top-color: #2e7d32; }
.oferta-card.orange { border-top-color: #ef6c00; }
.oferta-card.purple { border-top-color: #6a1b9a; }

/* TITLU */
.oferta-card h3 {
  font-size: 1.3rem;
  color: #003a72;
  margin-bottom: 10px;
  font-weight: 700;
}

/* TEXT – TRUNCHIAT CA SĂ ÎNCADEZE ÎN ÎNĂLȚIME FIXĂ */
.oferta-card p {
  font-size: 1rem;
  color: #4b4b4b;
  line-height: 1.6;
  text-align: justify;

  /* Text fix înălțime */
  max-height: 130px;
  overflow: hidden;
}




/* ===== BUTON SPECIAL EDUS ===== */
nav ul li a[href*="edus.ro"] {
  background-color: #004aad;
  color: #ffffff;
  padding: 0.4rem 0.8rem;
  border-radius: 8px;
  transition: background-color 0.3s, transform 0.2s;
}

nav ul li a[href*="edus.ro"] i {
  color: #ffde00;
}

nav ul li a[href*="edus.ro"]:hover {
  background-color: #003580;
  transform: scale(1.05);
}

/* ===== ACTIVITĂȚI ȘI PROIECTE – VARIANTA VIZIBILĂ ===== */
#activitati {
  max-width: 1200px;
  margin: 3rem auto;
  padding: 3rem 1rem;
  text-align: center;
  background: #ffffff;
}

#activitati h2 {
  color: #004aad;
  font-size: 2.4rem;
  margin-bottom: 1rem;
}

#activitati .intro-text {
  color: #333;
  margin-bottom: 2.5rem;
  font-size: 1.1rem;
  line-height: 1.6;
  max-width: 850px;
  margin-left: auto;
  margin-right: auto;
}

.activitati-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  justify-items: center;
}

/* ===== BUTOANE ACTIVITĂȚI ===== */
.btn-activitate {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.2rem;
  color: #ffffff;
  border-radius: 14px;
  padding: 1.4rem 1.6rem;
  width: 100%;
  max-width: 320px;
  text-align: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.btn-activitate i {
  font-size: 1.6rem;
}

/* ===== CULORI PUTERNICE ===== */
.btn-activitate.blue {
  background-color: #1565c0;
}
.btn-activitate.green {
  background-color: #2e7d32;
}
.btn-activitate.orange {
  background-color: #ef6c00;
}
.btn-activitate.red {
  background-color: #c62828;
}
.btn-activitate.purple {
  background-color: #6a1b9a;
}
.btn-activitate.teal {
  background-color: #00796b;
}

/* ===== EFECTE HOVER ===== */
.btn-activitate:hover {
  transform: translateY(-6px) scale(1.05);
  filter: brightness(1.2);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .btn-activitate {
    font-size: 1rem;
    padding: 1rem;
  }
}

/* ===== ACTIVITATI SI PROIECTE ===== */
#activitati {
  max-width: 1200px;
  margin: 3rem auto;
  padding: 3rem 1rem;
  text-align: center;
  background: #ffffff;
}

#activitati h2 {
  color: #004aad;
  font-size: 2.4rem;
  margin-bottom: 1rem;
}

#activitati .intro-text {
  color: #333;
  margin-bottom: 2.5rem;
  font-size: 1.1rem;
  line-height: 1.6;
  max-width: 850px;
  margin-left: auto;
  margin-right: auto;
}

.activitati-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  justify-items: center;
}

/* ===== BUTOANE ACTIVITATI ===== */
.btn-activitate {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.2rem;
  color: #ffffff;
  border-radius: 14px;
  padding: 1.4rem 1.6rem;
  width: 100%;
  max-width: 320px;
  text-align: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.btn-activitate i {
  font-size: 1.6rem;
}

/* ===== CULORI ===== */
.btn-activitate.blue {
  background-color: #1565c0;
}
.btn-activitate.green {
  background-color: #2e7d32;
}
.btn-activitate.orange {
  background-color: #ef6c00;
}
.btn-activitate.red {
  background-color: #c62828;
}
.btn-activitate.purple {
  background-color: #6a1b9a;
}
.btn-activitate.teal {
  background-color: #00796b;
}

/* ===== EFECTE HOVER ===== */
.btn-activitate:hover {
  transform: translateY(-6px) scale(1.05);
  filter: brightness(1.2);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .btn-activitate {
    font-size: 1rem;
    padding: 1rem;
  }
}

#visitor-counter {
  margin-top: 0.5rem;
  font-size: 1rem;
  color: #ffde00;
}

#visitor-counter span {
  font-weight: bold;
  font-size: 1.2rem;
  color: #ffffff;
}

/* ===== SCOALA ALTFEL - TEXT JUSTIFICAT SI INDENTAT ===== */
.activitate .continut p {
  text-align: justify;
  line-height: 1.7;
  text-indent: 1.5em; /* spațiu pentru primul rând */
  margin-bottom: 1rem; /* spațiu între paragrafe */
}

/* ========== ACCESIBILITATE WIDGET ========== */
.accessibility-widget {
  position: fixed;
  bottom: 18px;
  right: 18px;
  z-index: 9999;
  font-family: Arial, sans-serif;
}

.acc-btn {
  background: #1b3d8f;
  color: #fff;
  border: none;
  padding: 10px 14px;
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 6px 14px rgba(0,0,0,0.25);
}

.acc-panel {
  margin-top: 10px;
  display: flex;
  gap: 8px;
  background: #fff;
  padding: 10px;
  border-radius: 12px;
  box-shadow: 0 6px 14px rgba(0,0,0,0.20);
}

.acc-action {
  background: #f2f2f2;
  border: 1px solid #ddd;
  padding: 8px 10px;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
}

.acc-action:hover {
  background: #e8e8e8;
}

/* CONTRAST MARE */
body.high-contrast {
  background: #000 !important;
  color: #fff !important;
}

body.high-contrast a {
  color: #00ffff !important;
  text-decoration: underline !important;
}

body.high-contrast header,
body.high-contrast nav,
body.high-contrast section,
body.high-contrast footer,
body.high-contrast .card,
body.high-contrast .noutate-card {
  background: #000 !important;
  color: #fff !important;
  border-color: #fff !important;
}

body.high-contrast img {
  filter: contrast(1.2) brightness(1.1);
}


/* ===== VIDEO YOUTUBE RESPONSIVE ===== */
.video-container {
  position: relative;
  overflow: hidden;
  width: 100%;
  padding-top: 56.25%; /* raport 16:9 */
  margin-top: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 12px;
}
.video-link {
  text-align: center;
  margin-top: 1.5rem;
}
.video-link a {
  display: inline-block;
  background: #c4302b;
  color: white;
  padding: 0.8rem 1.5rem;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.3s, transform 0.3s;
}
.video-link a:hover {
  background: #a12420;
  transform: scale(1.05);
}
/* ===== LINK VIDEO YOUTUBE ===== */
.video-link {
  text-align: center;
  margin-top: 1.5rem;
}

.video-link a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #c4302b;
  color: white;
  padding: 0.8rem 1.5rem;
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
  font-size: 1.1rem;
  transition: background 0.3s, transform 0.3s;
}

.video-link a:hover {
  background: #a12420;
  transform: scale(1.05);
}

.video-link i {
  font-size: 1.3rem;
}
.oferta-grid::-webkit-scrollbar {
  height: 10px;
}

.oferta-grid::-webkit-scrollbar-thumb {
  background: #004aad;
  border-radius: 10px;
}

.oferta-grid::-webkit-scrollbar-track {
  background: #e5e5e5;
}




.noutate-card {
    display: flex;
    gap: 20px;
    background: #ffffff;
    border-radius: 10px;
    padding: 20px;
    margin: 20px auto;
    max-width: 900px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.noutate-image img {
    width: 250px;
    border-radius: 10px;
}

.noutate-text {
    flex: 1;
}

.noutate-text h3 {
    color: #1b3d8f;
    margin-top: 0;
}

@media(max-width: 768px) {
    .noutate-card {
        flex-direction: column;
        text-align: center;
    }

    .noutate-image img {
        width: 100%;
        max-width: 350px;
        margin: auto;
    }
}




.documents {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  padding: 20px;
}

.doc-card {
  background: #fff;
  border-radius: 10px;
  padding: 15px;
  width: 300px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.doc-header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.doc-icon {
  font-size: 24px;
  color: #0077cc;
}

.btn-download {
  display: inline-block;
  margin-top: 10px;
  text-decoration: none;
  background: #0077cc;
  color: #fff;
  padding: 8px 12px;
  border-radius: 6px;
}

.noutate-card {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    background: #fff;
    padding: 20px;
    margin: 20px auto;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.noutate-image {
    flex: 0 0 280px;
}

.noutate-image img {
    width: 100%;
    max-width: 280px;
    height: auto;
    display: block;
    border-radius: 10px;
    object-fit: contain;
}

.noutate-text {
    flex: 1;
}

.noutate-text p {
    text-align: justify;
    line-height: 1.7;
}
