:root {
  --green: #164b37;
  --deep: #0c3025;
  --gold: #e6c37a;
  --text: #23372e;
  --muted: #64736b;
  --light: #f3f7f3;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: Arial, Helvetica, sans-serif; color: var(--text); line-height: 1.7; }
a { text-decoration: none; }
.container { width: min(1160px, 92%); margin: auto; }
.header { background: white; position: sticky; top: 0; z-index: 10; box-shadow: 0 2px 16px #0000000d; }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 88px; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--deep); line-height: 1.3; }
.brand strong { display: block; font-size: 16px; }
.brand small { letter-spacing: 3px; color: var(--muted); }
.brand-symbol { background: var(--green); color: var(--gold); border-radius: 12px; padding: 12px; font-weight: bold; font-size: 19px; }
.nav { display: flex; gap: 21px; flex-wrap: wrap; }
.nav a { color: var(--text); font-size: 14px; font-weight: bold; }
.nav a:hover { color: #32805b; }
.menu-toggle { display: none; }
.hero {
    background:
        linear-gradient(100deg, rgba(5, 36, 26, 0.90) 0%, rgba(9, 49, 35, 0.58) 42%, rgba(8, 42, 31, 0.04) 100%),
        url("../imagini/galerie/poza8.jpg") center 25% / cover no-repeat;
    color: white;
    padding: 120px 0 135px;
}
.hero-content { max-width: 1160px; }
.hero h1 { font-size: clamp(37px, 5vw, 65px); line-height: 1.12; max-width: 790px; margin: 18px 0 26px; letter-spacing: -1.8px; }
.hero p { font-size: 20px; color: #e0ebe3; }
.eyebrow { font-size: 12px; font-weight: bold; letter-spacing: 3px; color: var(--gold); }
.eyebrow.dark { color: #9c7635; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 13px; margin-top: 32px; }
.btn { display: inline-block; padding: 13px 25px; border-radius: 6px; font-weight: bold; }
.btn-primary { background: var(--gold); color: var(--deep); }
.btn-outline { border: 1px solid #ffffffaa; color: white; }
.section { padding: 88px 0; scroll-margin-top: 85px; }
.section-muted { background: var(--light); }
.section-heading { max-width: 690px; margin-bottom: 38px; }
.section-heading h2 { font-size: clamp(29px, 3vw, 42px); line-height: 1.2; margin: 10px 0; }
.section-heading p { color: var(--muted); }
.mission { display: grid; grid-template-columns: 1.5fr 1fr; gap: 55px; align-items: center; }
.mission h3 { font-size: 25px; }
.mission p { color: #52655a; }
.mission-aside { background: var(--green); padding: 45px; border-radius: 14px; color: white; }
.mission-aside p { color: #dbe9df; }
.aside-icon { font-size: 42px; color: var(--gold); }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card { background: white; padding: 34px 29px; border: 1px solid #e3eae4; border-radius: 12px; box-shadow: 0 8px 28px #123e2510; }
.card-icon { font-size: 34px; }
.card h3 { font-size: 20px; line-height: 1.35; }
.card p { color: var(--muted); font-size: 15px; }
.notice { background: white; border-left: 4px solid var(--green); padding: 25px; border-radius: 6px; }
.footer { background: var(--deep); color: white; padding: 55px 0 18px; }
.footer-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 35px; }
.footer p { color: #cad9ce; }
.footer-bottom { border-top: 1px solid #ffffff26; margin-top: 35px; padding-top: 20px; color: #b6c8ba; font-size: 13px; }
@media (max-width: 850px) {
  .header-inner { min-height: 76px; flex-wrap: wrap; }
  .menu-toggle { display: block; margin-left: auto; border: 0; background: var(--green); color: white; border-radius: 7px; padding: 9px 13px; font-size: 22px; cursor: pointer; }
  .nav { display: none; width: 100%; flex-direction: column; gap: 0; padding-bottom: 15px; }
  .nav.open { display: flex; }
  .nav a { padding: 11px 0; }
  .hero { padding: 85px 0 95px; }
  .mission, .cards, .footer-inner { grid-template-columns: 1fr; }
  .section { padding: 60px 0; }
}

/* Sigla noua Sandu Aldea */
.brand-logo {
    width: 76px;
    height: 76px;
    object-fit: contain;
    object-position: left center;
    flex-shrink: 0;
}
@media (max-width: 850px) {
    .brand-logo {
        width: 58px;
        height: 58px;
    }
}


/* DESPRE LICEU - PREZENTARE */
.about-heading { max-width: 850px; margin-bottom: 48px; }
.about-intro { display: grid; grid-template-columns: 1.1fr 1fr; gap: 55px; align-items: center; }
.about-intro h3 { font-size: clamp(25px, 3vw, 35px); line-height: 1.25; margin: 13px 0 22px; }
.about-intro p { color: var(--muted); line-height: 1.85; margin-bottom: 17px; }
.about-visual { overflow: hidden; border-radius: 16px; background: var(--light); box-shadow: 0 15px 40px #123e2520; }
.about-visual img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.about-visual-caption { padding: 16px 22px; background: var(--green); color: white; font-size: 14px; }
.about-panels { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 60px; }
.about-panel { padding: 38px; background: #f3f7f2; border: 1px solid #e1eae1; border-radius: 14px; }
.about-panel-green { background: var(--green); color: white; border-color: var(--green); }
.about-panel h3 { font-size: 25px; margin: 12px 0 20px; }
.about-panel p { line-height: 1.8; }
.about-panel-green p { color: #e2eee6; }
.about-panel-icon { color: #bd9145; font-size: 38px; }
.about-values { margin-top: 65px; }
.about-values .section-heading { margin-bottom: 26px; }
.about-values h3 { font-size: 30px; margin: 12px 0; }
.about-values-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.about-value { border: 1px solid #e2eae3; border-radius: 12px; padding: 25px 20px; background: white; }
.about-value span { font-size: 31px; }
.about-value h4 { font-size: 18px; margin: 16px 0 9px; }
.about-value p { color: var(--muted); font-size: 14px; line-height: 1.65; }
@media (max-width: 850px) {
  .about-intro, .about-panels { grid-template-columns: 1fr; gap: 25px; }
  .about-values-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .about-values-grid { grid-template-columns: 1fr; }
  .about-panel { padding: 27px; }
}

/* Fundal discret pentru sectiunea Despre liceu */
.about-section {
    background:
        radial-gradient(ellipse at 95% 10%, rgba(198, 218, 185, 0.32), transparent 42%),
        radial-gradient(ellipse at 5% 90%, rgba(221, 192, 126, 0.13), transparent 38%),
        linear-gradient(135deg, #f8faf5 0%, #edf4e9 55%, #f9faf6 100%);
}



/* EDUCATIE - OFERTA 2025-2026 */
.education-section {
    background: linear-gradient(150deg, #f3f7f1, #ffffff 65%, #f1f6ee);
}
.education-heading { max-width: 820px; }
.education-notice {
    background: #fff9ea;
    border-left: 4px solid #c49a48;
    border-radius: 8px;
    padding: 22px 27px;
    margin-bottom: 48px;
}
.education-notice strong { color: #76551c; }
.education-notice p { margin: 9px 0 0; line-height: 1.7; color: #5e614f; }
.education-category { margin: 30px 0 25px; }
.education-category h3 { font-size: 29px; margin: 10px 0; }
.education-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
}
.education-card {
    background: white;
    border: 1px solid #e0e9df;
    border-radius: 14px;
    padding: 34px;
    box-shadow: 0 10px 28px #123e2510;
}
.education-icon { display: block; font-size: 36px; margin-bottom: 18px; }
.education-domain {
    font-size: 11px;
    font-weight: bold;
    letter-spacing: 1.7px;
    color: #a17b36;
}
.education-card h4 { font-size: 22px; line-height: 1.35; margin: 13px 0; }
.education-card p { color: var(--muted); line-height: 1.75; }
.education-professional-title { margin-top: 58px; }
.education-professional { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.education-professional-item {
    padding: 32px;
    border-radius: 14px;
    background: var(--green);
    color: white;
}
.education-professional-item h4 { font-size: 22px; line-height: 1.4; margin: 0; }
.education-professional-item p { color: #dcece0; line-height: 1.6; }
.education-document {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    padding: 35px;
    margin-top: 55px;
    border: 1px solid #e0e9df;
    border-radius: 14px;
    background: white;
}
.education-document h3 { font-size: 24px; margin: 12px 0; }
.education-document p { color: var(--muted); line-height: 1.7; }
.education-document .btn { flex-shrink: 0; }
@media (max-width: 850px) {
    .education-grid, .education-professional { grid-template-columns: 1fr; }
    .education-document { flex-direction: column; align-items: flex-start; }
}

/* EDUCATIE - FOTOGRAFII SPECIALIZARI */
.education-card {
    overflow: hidden;
}

.education-card .education-photo {
    display: block;
    width: 100%;
    height: 230px;
    object-fit: cover;
    object-position: center;
    border-radius: 14px;
    margin-bottom: 20px;
}

.education-card .education-domain,
.education-card h4,
.education-card p {
    position: relative;
    z-index: 1;
}

@media (max-width: 600px) {
    .education-card .education-photo {
        height: 210px;
    }
}

/* INVATAMANT PROFESIONAL - DESIGN */
.education-professional-item {
    position: relative;
    overflow: hidden;
    min-height: 190px;
    padding: 36px;
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 18px;
    background: linear-gradient(135deg, #174d32, #103823);
    box-shadow: 0 12px 30px rgba(15,55,32,.14);
    transition: transform .25s ease, box-shadow .25s ease;
}

.education-professional-item::after {
    content: "";
    position: absolute;
    right: -45px;
    bottom: -75px;
    width: 190px;
    height: 190px;
    border: 1px solid rgba(218,183,105,.25);
    border-radius: 50%;
    box-shadow: 0 0 0 28px rgba(218,183,105,.05);
    pointer-events: none;
}

.education-professional-item .education-icon {
    font-size: 39px;
    margin-bottom: 20px;
}

.education-professional-item h4 {
    position: relative;
    z-index: 1;
    color: #fff;
    font-size: 23px;
    line-height: 1.4;
}

.education-professional-item p {
    position: relative;
    z-index: 1;
    color: #e0eadf;
}

@media (hover: hover) {
    .education-professional-item:hover {
        transform: translateY(-4px);
        box-shadow: 0 18px 38px rgba(15,55,32,.20);
    }
}

/* Fotografii calificari profesionale */
.education-professional-item {
    overflow: hidden;
}

.education-professional-item .education-photo {
    display: block;
    width: 100%;
    height: 230px;
    object-fit: cover;
    object-position: center 45%;
    border-radius: 10px;
    margin-bottom: 22px;
}

@media (max-width: 600px) {
    .education-professional-item .education-photo {
        height: 210px;
    }
}

/* Corectie aspect calificari profesionale */
.education-professional {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.education-professional-item {
    min-width: 0;
}

.education-professional-item .education-photo {
    width: 100%;
    height: 230px;
    object-fit: cover;
    object-position: center;
}

@media (max-width: 850px) {
    .education-professional {
        grid-template-columns: 1fr;
    }
}

/* FIX FINAL - doua carduri profesionale egale */
.education-professional {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
    gap: 22px;
}

.education-professional-item {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
}

.education-professional-item img.education-photo {
    display: block;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    height: 230px;
    object-fit: cover;
}

@media (max-width: 850px) {
    .education-professional {
        grid-template-columns: minmax(0, 1fr) !important;
    }
}

/* ACTIVITATI - CARDURI CU FOTOGRAFII */
#activitati .cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

#activitati .card {
    min-width: 0;
    overflow: hidden;
    padding: 20px;
    border-radius: 16px;
    transition: transform .25s ease, box-shadow .25s ease;
}

#activitati .activity-photo {
    display: block;
    width: 100%;
    height: 210px;
    object-fit: cover;
    border-radius: 11px;
    margin-bottom: 20px;
}

#activitati .card h3 {
    color: #174d32;
    margin: 0 0 12px;
}

#activitati .card p {
    line-height: 1.7;
}

@media (hover: hover) {
    #activitati .card:hover {
        transform: translateY(-4px);
        box-shadow: 0 16px 36px rgba(15,55,32,.16);
    }
}

@media (max-width: 850px) {
    #activitati .cards {
        grid-template-columns: 1fr;
    }
}


/* MENIU COMPLET SANDU ALDEA */
.nav {
  gap: 12px;
  align-items: center;
  justify-content: flex-end;
}
.nav a, .nav-pending {
  font-size: 12px;
  line-height: 1.4;
}
.nav-pending {
  color: #8a9690;
  cursor: default;
  font-weight: 600;
}
@media (max-width: 1200px) {
  .header-inner { flex-wrap: wrap; padding-top: 12px; padding-bottom: 12px; }
  .nav { width: 100%; justify-content: center; }
}
@media (max-width: 850px) {
  .nav { display: none; flex-direction: column; align-items: stretch; }
  .nav.open { display: flex; }
  .nav a, .nav-pending { padding: 10px 0; font-size: 14px; }
}

/* MENIU DROPDOWN SANDU ALDEA */
.header { z-index: 100; }
.header-inner { flex-wrap: nowrap; }
.nav { display: flex; flex-wrap: nowrap; align-items: center; gap: 17px; width: auto; }
.nav-group { position: relative; flex: 0 0 auto; }
.nav-group > a { display: block; white-space: nowrap; font-size: 13px; padding: 14px 0; }
.nav-submenu {
  display: none; position: absolute; top: 100%; left: 0;
  min-width: 230px; background: #fff; border-radius: 10px;
  box-shadow: 0 12px 28px #0002; padding: 8px; z-index: 110;
}
.nav-group:hover > .nav-submenu,
.nav-group:focus-within > .nav-submenu { display: block; }
.nav-submenu a { display: block; padding: 11px 12px; font-size: 13px; }
.nav-submenu a:hover { background: #eef5f0; border-radius: 6px; }
.legacy-content { max-width: 1000px; line-height: 1.8; }
.legacy-content p { margin: 0 0 13px; }
@media (max-width: 1100px) {
  .header-inner { flex-wrap: wrap; }
  .menu-toggle { display: block; margin-left: auto; }
  .nav { display: none; width: 100%; flex-direction: column; align-items: stretch; gap: 0; }
  .nav.open { display: flex; }
  .nav-group > a { padding: 11px 0; font-size: 14px; }
  .nav-submenu { display: block; position: static; box-shadow: none; padding: 0 0 6px 16px; min-width: 0; }
  .nav-submenu a { padding: 7px 10px; }
}

/* PERSONAL AUXILIAR */
.page-intro {
  color: #66766d;
  margin: 15px 0 30px;
  font-size: 17px;
}
.staff-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin-top: 30px;
}
.staff-card {
  background: #fff;
  border: 1px solid #e2eae5;
  border-radius: 14px;
  padding: 25px;
  box-shadow: 0 5px 20px #00000008;
}
.staff-card h2 {
  color: #174c36;
  font-size: 19px;
  margin: 0 0 20px;
}
.staff-card p {
  margin: 9px 0;
  line-height: 1.6;
}
@media (max-width: 850px) {
  .staff-grid { grid-template-columns: 1fr; }
}

/* PAGINI ARHIVA MODERNE */
.archive-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 28px;
}
.archive-card {
  display: block;
  background: white;
  border: 1px solid #e2eae5;
  border-radius: 14px;
  padding: 22px 26px;
  box-shadow: 0 5px 20px #00000008;
  overflow-wrap: anywhere;
}
.archive-card p {
  margin: 0;
  line-height: 1.7;
}
.archive-card h2 {
  color: #174c36;
  font-size: 19px;
  margin: 0 0 12px;
}
.archive-link:hover {
  border-color: #7caa8e;
  transform: translateY(-2px);
  transition: .2s;
}
@media (max-width: 850px) {
  .archive-grid { grid-template-columns: 1fr; }
}

/* NE MANDRIM */
.pride-section { margin-top: 38px; }
.pride-section h2 {
  color: #174c36;
  font-size: 24px;
  margin-bottom: 18px;
}
.pride-panel {
  background: #fff;
  border: 1px solid #e2eae5;
  border-radius: 14px;
  padding: 28px;
  box-shadow: 0 5px 20px #00000008;
}
.pride-panel p {
  line-height: 1.9;
  margin: 0;
  white-space: normal;
}

/* PRIDE MODERN V2 */
.pride-page {
  background: linear-gradient(180deg, #f8faf7 0%, #fff 35%);
}
.pride-page > .container > h1 {
  font-size: clamp(32px, 4vw, 48px);
  color: #163f30;
}
.pride-page .page-intro {
  max-width: 780px;
  font-size: 18px;
  line-height: 1.8;
}
.pride-modern-section { margin: 55px 0 65px; }
.pride-section-heading {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 24px;
}
.pride-section-heading h2 {
  font-size: clamp(22px, 2.5vw, 30px);
  color: #174c36;
  margin: 0;
}
.pride-number {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  border-radius: 50%;
  background: #174c36;
  color: #e8c978;
  font-weight: 800;
}
.pride-people-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.pride-person {
  display: flex;
  align-items: flex-start;
  gap: 17px;
  padding: 25px;
  background: white;
  border: 1px solid #e3e9df;
  border-left: 4px solid #c5a65d;
  border-radius: 12px;
  box-shadow: 0 6px 22px #173d2a0a;
}
.pride-mark {
  color: #b69a50;
  font-size: 25px;
  flex-shrink: 0;
}
.pride-person h3 {
  margin: 0 0 9px;
  color: #174c36;
  font-size: 18px;
}
.pride-person p {
  margin: 0;
  line-height: 1.75;
  color: #526359;
}
@media (max-width: 800px) {
  .pride-people-grid { grid-template-columns: 1fr; }
  .pride-person { padding: 20px; }
}

/* DOCUMENTE RESURSE UMANE */
.resource-section { margin: 40px 0; }
.resource-section > h2 {
  color: #174c36;
  font-size: 24px;
  margin-bottom: 18px;
}
.resource-documents {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.resource-document {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  background: white;
  border: 1px solid #e2eae5;
  border-radius: 10px;
  color: #174c36;
  line-height: 1.5;
}
.resource-document span:nth-child(2) { flex: 1; }
.resource-document:hover {
  background: #f2f8f3;
  border-color: #9abda6;
}
@media (max-width: 850px) {
  .resource-documents { grid-template-columns: 1fr; }
}

/* TABEL COLECTIV DIDACTIC */
.teachers-table-wrap {
  overflow-x: auto;
  border: 1px solid #e2eae5;
  border-radius: 14px;
  box-shadow: 0 5px 20px #00000008;
}
.teachers-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
}
.teachers-table th {
  background: #174c36;
  color: white;
  padding: 16px;
  text-align: left;
}
.teachers-table td {
  padding: 15px 16px;
  border-bottom: 1px solid #e8eee9;
  line-height: 1.5;
}
.teachers-table tbody tr:nth-child(even) {
  background: #f6faf7;
}
.teachers-table tbody tr:hover {
  background: #edf5ee;
}
.teachers-table td:nth-child(2) {
  font-weight: 600;
  color: #174c36;
}

/* RESURSE MATERIALE REORGANIZATE */
.material-section { margin: 42px 0; }
.material-section h2 {
  color: #174c36;
  font-size: 25px;
  margin-bottom: 18px;
}
.material-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.material-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 20px;
  background: #fff;
  border: 1px solid #e2eae5;
  border-radius: 12px;
  line-height: 1.5;
  box-shadow: 0 4px 14px #00000006;
}
.material-check {
  color: #23814d;
  font-weight: 700;
  font-size: 19px;
}
.material-note {
  margin-top: 36px;
  font-size: 14px;
  color: #63756b;
}
@media (max-width: 900px) {
  .material-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .material-grid { grid-template-columns: 1fr; }
}

/* FINISAJ RESURSE MATERIALE */
.material-section {
  margin: 28px 0 34px;
}
.material-section h2 {
  margin-bottom: 14px;
}
.material-grid {
  gap: 10px;
}
.material-item {
  padding: 13px 16px;
  border-radius: 9px;
  box-shadow: none;
}
.material-check {
  font-size: 17px;
}

/* PERSONAL AUXILIAR - DESIGN PREMIUM */
.staff-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  align-items: stretch;
}

.staff-card {
  position: relative;
  padding: 30px 26px 26px;
  border: 1px solid #dce8df;
  border-radius: 18px;
  background: linear-gradient(145deg, #ffffff 55%, #f3f8f4);
  box-shadow: 0 8px 28px rgba(20, 65, 43, .055);
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
}

.staff-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, #155b3a, #76ad70);
}

.staff-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 35px rgba(20, 65, 43, .12);
}

.staff-card h2,
.staff-card h3 {
  color: #174c36;
  font-size: 21px;
  line-height: 1.4;
  margin-bottom: 24px;
  padding-bottom: 15px;
  border-bottom: 1px solid #dce8df;
}

.staff-card p,
.staff-card li {
  line-height: 1.65;
  margin-bottom: 10px;
}

@media (max-width: 950px) {
  .staff-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
  .staff-grid { grid-template-columns: 1fr; }
}

/* VIDEO CONSTANTIN SANDU ALDEA */
.sandu-video-section {
  padding: 60px 0 75px;
  background: #f3f8f4;
}
.sandu-video-heading {
  max-width: 800px;
  margin: 0 auto 28px;
  text-align: center;
}
.sandu-video-heading h2 {
  color: #174c36;
  font-size: clamp(27px, 3vw, 38px);
  margin: 12px 0;
}
.sandu-video-heading p {
  color: #52675a;
  line-height: 1.7;
}
.sandu-video-frame {
  max-width: 1000px;
  margin: auto;
  background: #10291c;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 18px 45px rgba(15, 50, 29, .18);
}
.sandu-video-frame video {
  display: block;
  width: 100%;
  max-height: 620px;
}
.sandu-video-caption {
  margin-top: 15px;
  text-align: center;
  color: #66766b;
  font-size: 14px;
}

/* CORECTIE PLAYER GALERIE VIDEO */
.sandu-video-frame {
  width: 100%;
  max-width: 1000px;
  aspect-ratio: 16 / 9;
}

.sandu-video-frame video {
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: contain;
}

.sandu-video-heading h2 {
  font-size: clamp(25px, 2.5vw, 34px);
  line-height: 1.25;
}



/* MENIU MOBIL ACORDEON 2026 */
@media (max-width: 1100px) {
  .nav.open {
    padding: 10px 0 18px;
    max-height: calc(100dvh - 95px);
    overflow-y: auto;
  }

  .nav-group {
    position: relative;
    border-bottom: 1px solid #e3ebe4;
  }

  .nav-group > a {
    display: block;
    padding: 15px 45px 15px 12px;
    color: #153c30;
    font-size: 15px;
    font-weight: 700;
  }

  .nav-group > a:hover {
    background: #f2f7f0;
  }

  .nav-group > .nav-submenu {
    display: none;
    position: static;
    padding: 4px 0 12px 18px;
    background: #f6f9f5;
    box-shadow: none;
    border-left: 3px solid #cba45e;
    min-width: 0;
  }

  .nav-group.submenu-open > .nav-submenu {
    display: block;
  }

  .nav-submenu a {
    display: block;
    padding: 11px 12px;
    font-size: 14px;
  }

  .submenu-toggle {
    position: absolute;
    top: 6px;
    right: 3px;
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #a47b37;
    font-size: 23px;
    cursor: pointer;
  }

  .submenu-toggle[aria-expanded="true"] {
    background: #edf3e9;
  }

  .submenu-toggle[aria-expanded="true"] .submenu-chevron {
    transform: rotate(180deg);
  }

  .submenu-chevron {
    transition: transform .2s ease;
  }
}

@media (min-width: 1101px) {
  .submenu-toggle {
    display: none;
  }
}


/* FIX SAGETI SUBMENIU MOBIL 2026 */
@media (max-width: 1100px) {
  .nav .nav-group {
    position: relative;
  }

  .nav .nav-group > .submenu-toggle {
    display: flex !important;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 6px;
    right: 5px;
    width: 40px;
    height: 40px;
    padding: 0;
    margin: 0;
    z-index: 10;
    visibility: visible !important;
    opacity: 1 !important;
    background: #f1f6ef;
    border: 1px solid #dce6dc;
    border-radius: 8px;
    color: #174b36;
    cursor: pointer;
  }

  .nav .nav-group > .submenu-toggle .submenu-chevron {
    display: inline-block;
    font-size: 24px;
    line-height: 1;
  }

  .nav .nav-group.submenu-open > .nav-submenu {
    display: block !important;
  }
}

/* SANDU ALDEA - SUBMENIU NIVEL 2: BUGET */
@media (min-width: 1101px) {
  .nav .nav-subgroup {
    position: relative;
  }

  .nav .nav-subgroup > a {
    display: block;
    padding: 11px 32px 11px 12px;
    font-size: 13px;
    white-space: nowrap;
  }

  .nav .nav-subgroup > a::after {
    content: "›";
    position: absolute;
    right: 12px;
    font-size: 18px;
  }

  .nav .nav-subgroup > .nav-submenu {
    display: none;
    position: absolute;
    top: 0;
    left: 100%;
    min-width: 230px;
    z-index: 120;
  }

  .nav .nav-subgroup:hover > .nav-submenu,
  .nav .nav-subgroup:focus-within > .nav-submenu {
    display: block;
  }
}

@media (max-width: 1100px) {
  .nav .nav-subgroup {
    position: relative;
    border-bottom: 0;
  }

  .nav .nav-subgroup > a {
    padding: 11px 45px 11px 12px;
    font-size: 14px;
    font-weight: 600;
  }

  .nav .nav-subgroup > .nav-submenu {
    display: none;
    position: static;
    padding: 4px 0 8px 15px;
    margin-left: 10px;
    min-width: 0;
    box-shadow: none;
    border-left: 2px solid #cba45e;
  }

  .nav .nav-subgroup.submenu-open > .nav-submenu {
    display: block !important;
  }
}


/* MENIU 5 + EMBLEMA + 5 */
.header-inner {
  width: min(1760px, 98%);
  max-width: none;
  min-height: 112px;
  gap: 0;
}
.nav-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 112px minmax(0, 1fr);
  align-items: center;
  gap: 20px;
  width: 100%;
}
.nav-layout .brand {
  justify-content: center;
}
.nav-layout .brand span {
  display: none;
}
.nav-layout .brand-logo {
  width: 104px;
  height: 104px;
  object-position: center;
}
.nav-layout .nav {
  display: flex;
  width: 100%;
  flex-wrap: nowrap;
  align-items: center;
  gap: clamp(8px, 1.15vw, 22px);
}
.nav-layout .nav-left {
  justify-content: flex-end;
}
.nav-layout .nav-right {
  justify-content: flex-start;
}
.nav-layout .nav-group > a {
  font-size: clamp(12px, .95vw, 16px);
  line-height: 1.3;
  white-space: normal;
  text-align: center;
}
.nav-layout .nav-group {
  min-width: 0;
}
@media (max-width: 1100px) {
  .header-inner {
    min-height: 82px;
    flex-wrap: wrap;
  }
  .nav-layout {
    display: contents;
  }
  .nav-layout .brand {
    order: 0;
    margin-right: auto;
  }
  .nav-layout .brand-logo {
    width: 70px;
    height: 70px;
  }
  .header-inner .menu-toggle {
    order: 1;
    display: block;
    margin-left: auto;
  }
  .nav-layout .nav {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: 100%;
  }
  .nav-layout .nav.open {
    display: flex;
  }
  .nav-layout .nav-group > a {
    font-size: 15px;
    text-align: left;
  }
}

/* CORECTIE MENIU 5 + EMBLEMA + 5 */
@media (min-width: 1101px) {
  .header .header-inner {
    width: 98%;
    max-width: none;
    display: block;
    position: relative;
    min-height: 125px;
  }

  .header .nav-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 125px minmax(0, 1fr);
    align-items: center;
    gap: 16px;
    width: 100%;
    min-height: 125px;
  }

  .header .nav-layout > .brand {
    display: flex;
    justify-content: center;
    margin: 0;
  }

  .header .nav-layout > .brand span {
    display: none;
  }

  .header .nav-layout .brand-logo {
    width: 115px;
    height: 115px;
  }

  .header .nav-layout > .nav {
    display: flex;
    width: 100%;
    gap: 12px;
  }

  .header .nav-layout > .nav-left {
    justify-content: space-evenly;
  }

  .header .nav-layout > .nav-right {
    justify-content: space-evenly;
  }

  .header .nav-layout .nav-group > a {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
    text-align: center;
    white-space: normal;
  }
}

/* DESIGN PAGINI DOCUMENTE - SANDU ALDEA */
body:has(.legacy-content) {
  background: linear-gradient(145deg, #f0f6f1, #ffffff 65%);
}

main:has(.legacy-content) {
  width: min(1160px, 92%);
  margin: 55px auto 85px;
  padding: 45px 55px;
  background: #ffffff;
  border: 1px solid #e0eae2;
  border-radius: 20px;
  box-shadow: 0 15px 45px rgba(20, 65, 43, .09);
}

main .legacy-content {
  max-width: 100%;
}

main:has(.legacy-content) h1 {
  color: #164b37;
  font-size: clamp(32px, 3vw, 44px);
  line-height: 1.25;
  margin: 0 0 30px;
  padding-bottom: 20px;
  border-bottom: 3px solid #e6c37a;
}

main:has(.legacy-content) h2 {
  color: #164b37;
  font-size: clamp(22px, 2vw, 28px);
  margin: 35px 0 20px;
}

main:has(.legacy-content) ul {
  list-style: none;
  padding: 0;
  margin: 20px 0 35px;
}

main:has(.legacy-content) li {
  margin: 10px 0;
}

main:has(.legacy-content) li > a {
  display: block;
  padding: 15px 20px;
  color: #164b37;
  background: #f5f9f5;
  border: 1px solid #e0eae2;
  border-left: 4px solid #c8a45d;
  border-radius: 9px;
  font-weight: 600;
  transition: background .2s, transform .2s;
}

main:has(.legacy-content) li > a:hover {
  background: #e9f3e9;
  transform: translateX(4px);
}

main:has(.legacy-content) li ul {
  margin: 8px 0 12px 25px;
}

@media (max-width: 700px) {
  main:has(.legacy-content) {
    width: 94%;
    margin: 25px auto 45px;
    padding: 25px 18px;
  }
}

/* DESIGN MODERN - PAGINI INFORMATII SI DOCUMENTE */
body:has(main.utile-page) {
  background: #f1f6f2;
}

main.utile-page {
  width: min(1120px, 92%);
  max-width: 1120px;
  margin: 55px auto 80px;
  padding: clamp(28px, 5vw, 65px);
  background: #ffffff;
  border: 1px solid #dce8df;
  border-radius: 22px;
  box-shadow: 0 16px 50px rgba(20, 65, 43, 0.10);
  box-sizing: border-box;
}

main.utile-page h1 {
  color: #164b37;
  font-size: clamp(32px, 3.5vw, 44px);
  line-height: 1.2;
  margin: 0 0 30px;
  padding-bottom: 22px;
  border-bottom: 4px solid #e6c37a;
}

main.utile-page h2 {
  color: #164b37;
  font-size: clamp(23px, 2.5vw, 30px);
  margin: 38px 0 24px;
}

main.utile-page p {
  color: #52655a;
  font-size: 17px;
  line-height: 1.85;
}

main.utile-page ul {
  list-style: none;
  padding: 0;
  margin: 20px 0 30px;
}

main.utile-page li {
  margin: 12px 0;
}

main.utile-page li > a {
  display: block;
  padding: 17px 22px;
  color: #164b37;
  background: #f5f9f5;
  border: 1px solid #e0eae2;
  border-left: 5px solid #d2ad66;
  border-radius: 11px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  transition: background .2s, transform .2s, box-shadow .2s;
}

main.utile-page li > a:hover {
  background: #e8f3e9;
  transform: translateX(4px);
  box-shadow: 0 5px 18px rgba(20, 65, 43, .08);
}

main.utile-page li > ul {
  margin: 12px 0 20px 30px;
  padding-left: 15px;
  border-left: 2px solid #dce8df;
}

main.utile-page li > ul a {
  background: #ffffff;
  border-left-color: #8eaf95;
}

@media (max-width: 700px) {
  main.utile-page {
    width: 94%;
    margin: 25px auto 45px;
    padding: 25px 18px;
  }

  main.utile-page li > ul {
    margin-left: 12px;
    padding-left: 10px;
  }
}

/* PROBA DESIGN MENIU VERDE-AURIU */
@media (min-width: 1101px) {
  .header {
    background: linear-gradient(110deg, #103d2d, #19553d);
    border-bottom: 4px solid #d9b66d;
    box-shadow: 0 5px 22px rgba(9, 43, 29, .22);
  }

  .header .nav-layout > .nav .nav-group > a {
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    padding: 15px 8px;
    border-radius: 8px;
    transition: background .2s, color .2s;
  }

  .header .nav-layout > .nav .nav-group > a:hover,
  .header .nav-layout > .nav .nav-group:focus-within > a {
    background: rgba(255, 255, 255, .12);
    color: #f2d28b;
  }

  .header .nav-layout > .brand {
    padding: 5px;
  }

  .header .nav-layout .brand-logo {
    width: 112px;
    height: 112px;
  }

  .header .nav-submenu {
    background: #ffffff;
    border-top: 3px solid #d9b66d;
  }

  .header .nav-submenu a {
    color: #164b37;
  }
}

/* CORECTIE SUBMENIURI - CULORI SI SPATIERE */
@media (min-width: 1101px) {
  .header .nav-submenu {
    padding: 8px;
  }

  .header .nav-submenu > a,
  .header .nav-submenu > .nav-subgroup > a {
    display: block;
    color: #164b37 !important;
    background: transparent;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;
    padding: 11px 12px;
    margin: 0;
    border-radius: 6px;
  }

  .header .nav-submenu > a:hover,
  .header .nav-submenu > .nav-subgroup > a:hover,
  .header .nav-submenu > .nav-subgroup:hover > a {
    color: #164b37 !important;
    background: #edf5ee;
  }

  .header .nav-submenu .nav-submenu {
    padding: 8px;
  }
}

/* SUBMENIURI COMPACTE SI ALINIATE */
@media (min-width: 1101px) {
  .header .nav-layout .nav-submenu {
    min-width: 245px;
    width: 245px;
    padding: 6px;
    border-radius: 9px;
  }

  .header .nav-layout .nav-submenu > a,
  .header .nav-layout .nav-submenu > .nav-subgroup > a {
    font-size: 13px !important;
    font-weight: 600;
    line-height: 1.3;
    text-align: left !important;
    padding: 9px 12px !important;
    margin: 0;
  }

  .header .nav-layout .nav-submenu > .nav-subgroup > a {
    padding-right: 30px !important;
  }

  .header .nav-layout .nav-submenu .nav-submenu {
    top: 0;
    left: 100%;
    min-width: 230px;
    width: 230px;
  }

  .header .nav-layout .nav-submenu .nav-submenu a {
    font-size: 13px !important;
    padding: 9px 12px !important;
    text-align: left !important;
  }
}
