/*
Theme Name: CSA Ionica Munteanu
Author: Tu
Description: Tema custom din cod pentru CSA
Version: 1.0
*/

/* --- RESETARE GENERALĂ --- */
*, *::before, *::after {
    box-sizing: border-box;
}

body, html { 
    margin: 0; 
    padding: 0; 
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow-x: hidden; /* Previne orice scroll orizontal accidental */
}

/* === HEADER TRANSPARENT (Stil Agriserv) === */
.custom-header {
    position: absolute; /* Ca să stea peste imagine, nu deasupra ei */
    top: 0;
    left: 0;
    width: 100%;
    background: transparent; 
    z-index: 1000;
    padding: 20px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    font-size: 28px;
    font-weight: bold;
    color: #ffffff; /* Text alb */
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
    margin: 0;
    padding: 0;
}

.main-nav a {
    text-decoration: none;
    color: #ffffff; /* Text alb */
    font-weight: 600;
    font-size: 16px;
    transition: color 0.3s;
}

.main-nav a:hover {
    color: #ffcc00; /* Un galben sportiv la hover */
}

/* === CARUSEL FULL SCREEN === */
.hero-slider {
    position: relative;
    width: 100%;
    height: 100vh; /* Pentru vizitatorii normali */
    min-height: 600px;
    overflow: hidden;
    background-color: #111;
}

/* Ajustare exactă când bara neagră de admin este vizibilă */
body.admin-bar .hero-slider {
    height: calc(100vh - 32px);
}

.slide {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    z-index: 1;
}

.slide.active {
    opacity: 1;
    z-index: 2;
}

/* O nuanță închisă peste poză pentru contrastul textului */
.slide-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.5); 
}

.slide-content {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -40%);
    text-align: center;
    color: #fff;
    z-index: 3;
    width: 90%;
    opacity: 0;
    transition: all 1s ease 0.5s;
}

.slide.active .slide-content {
    transform: translate(-50%, -50%);
    opacity: 1;
}

.slide-content h1 {
    font-size: 4rem;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.slide-content p {
    font-size: 1.3rem;
    margin-bottom: 30px;
}

.btn-primary {
    display: inline-block;
    padding: 15px 40px;
    background-color: transparent;
    border: 2px solid #fff;
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    text-transform: uppercase;
    transition: all 0.3s;
}

.btn-primary:hover {
    background-color: #fff;
    color: #000;
}

/* === SĂGEȚI CARUSEL === */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.3); /* Ușor transparent */
    color: #fff;
    border: none;
    font-size: 2rem;
    padding: 15px 20px;
    cursor: pointer;
    z-index: 10;
    transition: background 0.3s ease;
}

.slider-arrow:hover {
    background: rgba(0, 0, 0, 0.8); /* Mai închis la hover */
}

.prev-arrow {
    left: 20px;
}

.next-arrow {
    right: 20px;
}

/* Stil pentru logo-ul imagine */
.logo img {
    max-height: 70px; /* Poți mări sau micșora această valoare în funcție de cât de mare vrei logo-ul */
    width: auto;
    display: block;
    transition: transform 0.3s ease;
}

.logo a:hover img {
    transform: scale(1.05); /* Un efect subtil de mărire când pui mouse-ul pe logo */
}

/* === CARUSEL FULL SCREEN === */
.hero-slider {
    position: relative;
    width: 100%;
    height: 100vh; /* 100vh = 100% din înălțimea ecranului (Viewport Height) */
    min-height: 600px; /* O înălțime minimă de siguranță pentru telefoane/tablete */
    overflow: hidden;
    background-color: #111;
    margin: 0;
    padding: 0;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: center; /* Centrează conținutul principal (logo-ul) */
    align-items: center;
    position: relative; /* Permite fixarea meniului în dreapta */
}

.main-nav {
    position: absolute;
    right: 20px; /* Ține meniul în extremitatea dreaptă */
    top: 50%;
    transform: translateY(-50%); /* Îl centrează vertical perfect cu logo-ul */
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between; /* Ține logo-ul în stânga și meniul în dreapta */
    align-items: center; /* Centrează perfect pe verticală tot conținutul */
}

.logo a {
    display: flex;
    align-items: center; /* Asigură centrarea verticală strictă a imaginii */
    text-decoration: none;
}

.logo img {
    max-height: 50px;
    width: auto;
    display: block;
    margin: 0; /* Elimină orice margine accidentală */
    padding: 0;
    transition: transform 0.3s ease;
}

.logo a:hover img {
    transform: scale(1.05);
}

/* Ajustare header când bara neagră de admin este vizibilă */
body.admin-bar .custom-header {
    top: 32px;
}

.custom-header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    background: transparent; 
    z-index: 1000;
    padding: 20px 0; /* Spațiul egal de sus și de jos */
    border-bottom: 1px solid rgba(255, 255, 255, 0.2); /* Linia despărțitoare */
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center; /* Aceasta este comanda magică pentru centrarea pe verticală */
}

/* --- BUTON HAMBURGER (Ascuns pe Desktop) --- */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 1001; /* Să stea deasupra meniului deschis */
}

.mobile-menu-toggle span {
    width: 30px;
    height: 3px;
    background-color: #ffffff;
    transition: all 0.3s ease;
}

/* === BANNER PAGINI INTERNE === */
.page-hero {
    position: relative;
    width: 100%;
    height: 40vh; /* Mai scurt decât pe prima pagină */
    min-height: 300px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-hero-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.6); /* Fundal întunecat pentru contrast */
}

.page-hero-content {
    position: relative;
    z-index: 2;
    color: #fff;
    text-align: center;
    margin-top: 50px; /* Coboară textul ca să nu se bată cu header-ul */
}

.page-hero-content h1 {
    font-size: 3rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* =========================================
   PRIMA PAGINĂ - SECȚIUNI NOI (SEO & CONVERSIE)
========================================= */

/* 1. Secțiunea Despre (Home) */
.home-about-section {
    padding: 100px 0;
    background-color: #ffffff;
}
.home-about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.home-about-text .subtitle {
    display: block;
    color: #e65100;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}
.home-about-text h2 { font-size: 2.5rem; color: #111; margin-bottom: 20px; line-height: 1.2; }
.home-about-text p { font-size: 1.1rem; line-height: 1.8; color: #555; margin-bottom: 30px; text-align: justify; }
.home-about-image img { width: 100%; border-radius: 8px; box-shadow: 0 20px 40px rgba(0,0,0,0.1); }

.btn-outline-orange {
    display: inline-block;
    padding: 12px 25px;
    border: 2px solid #e65100;
    color: #e65100;
    text-transform: uppercase;
    font-weight: bold;
    border-radius: 5px;
    text-decoration: none;
    transition: all 0.3s;
}
.btn-outline-orange:hover { background: #e65100; color: #fff; }

/* 2. Secțiunea Grupe (Home) */
.home-groups-section {
    padding: 80px 0 100px;
    background-color: #f8f9fa;
}
.home-groups-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
.home-group-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}
.home-group-card:hover { transform: translateY(-10px); box-shadow: 0 15px 35px rgba(0,0,0,0.1); }
.home-group-card img { width: 100%; height: 240px; object-fit: cover; display: block; }
.home-group-info { padding: 25px; text-align: center; }
.home-group-info h3 { font-size: 1.4rem; color: #111; margin: 0 0 10px 0; }
.home-group-info .varsta { display: block; color: #e65100; font-weight: bold; margin-bottom: 15px; }
.btn-link { color: #111; font-weight: bold; text-decoration: none; text-transform: uppercase; font-size: 0.9rem; transition: color 0.3s; }
.btn-link:hover { color: #e65100; }

/* 3. Secțiunea CTA (Banner Imagine) */
.home-banner-cta {
    padding: 20px 0 100px;
    background-color: #f8f9fa;
}

.banner-wrapper {
    max-width: 1000px;
    margin: 0 auto 35px auto; /* 35px spațiu gol sub imagine ca să respire */
}

.banner-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

/* Butonul centrat sub imagine */
.btn-banner-standalone {
    display: inline-block;
    background: #e65100;
    color: #ffffff !important;
    padding: 18px 50px;
    font-size: 1.2rem;
    font-weight: 800;
    text-transform: uppercase;
    border-radius: 50px;
    text-decoration: none;
    box-shadow: 0 10px 20px rgba(230, 81, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin: 0 auto;
}

.btn-banner-standalone:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 25px rgba(230, 81, 0, 0.45);
}

/* Butonul care "plutește" la baza imaginii */
.btn-banner-overlay {
    display: inline-block;
    background: #e65100;
    color: #ffffff;
    padding: 16px 45px;
    font-size: 1.2rem;
    font-weight: 800;
    text-transform: uppercase;
    border-radius: 50px;
    text-decoration: none;
    box-shadow: 0 10px 20px rgba(230, 81, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    
    /* TRUCUL MAGIC: Tragem butonul în sus peste imagine */
    margin-top: -30px; 
    position: relative;
    z-index: 10;
}

.btn-banner-overlay:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 25px rgba(230, 81, 0, 0.45);
    color: #ffffff;
}

.home-cta-section h2 { font-size: 2.5rem; margin-bottom: 20px; text-shadow: 1px 1px 3px rgba(0,0,0,0.2); }
.home-cta-section p { font-size: 1.2rem; margin-bottom: 35px; max-width: 700px; margin-left: auto; margin-right: auto; }
.btn-cta-large {
    display: inline-block;
    background: #fff;
    color: #e65100;
    padding: 15px 40px;
    font-size: 1.2rem;
    font-weight: 800;
    text-transform: uppercase;
    border-radius: 50px;
    text-decoration: none;
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
    transition: transform 0.3s, box-shadow 0.3s;
}
.btn-cta-large:hover { transform: translateY(-3px); box-shadow: 0 15px 25px rgba(0,0,0,0.25); }

/* === SECȚIUNEA DESPRE NOI === */
.about-section {
    padding: 80px 20px;
    background-color: #ffffff;
}

.about-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex; /* Pune textul și poza pe același rând */
    align-items: center;
    gap: 50px; /* Spațiu între text și poză */
}

.about-text {
    flex: 1; /* Ocupă jumătate din spațiu */
}

.about-text h2 {
    font-size: 2.5rem;
    color: #111;
    margin-bottom: 20px;
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 15px;
}

.about-image {
    flex: 1; /* Ocupă cealaltă jumătate */
}

.about-image img {
    width: 100%;
    height: auto;
    border-radius: 10px; /* Colțuri rotunjite */
    box-shadow: 0 10px 30px rgba(0,0,0,0.15); /* O umbră fină 3D */
}

/* Ajustare suplimentară când ești logat (pentru banner) */
body.admin-bar .page-hero {
    margin-top: 0;
}

/* =========================================
   PAGINA DESPRE NOI - DESIGN PREMIUM
========================================= */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 1. Intro Academie (Nou: Text Stânga, Poză Dreapta) */
.academy-intro {
    padding: 80px 0 50px;
    background: #fff;
}
.academy-intro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.intro-text .section-title { font-size: 2.5rem; color: #111; margin-bottom: 15px; }
.intro-text .title-separator { width: 60px; height: 3px; background: #e0a800; margin-bottom: 25px; }
.intro-text .lead-text { font-size: 1.15rem; color: #555; line-height: 1.8; margin: 0; }

.intro-image img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.08);
    display: block;
}

.intro-text .lead-text { 
    font-size: 1.15rem; 
    color: #555; 
    line-height: 1.8; 
    margin: 0; 
    text-align: justify; 
}

/* 2. Misiune și Viziune (Carduri paralele, fără iconițe) */
.mission-vision-section {
    background-color: #f8f9fa;
    padding: 60px 0;
}
.mv-container {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr; /* Forțează cardurile să stea în paralel (pe 2 coloane) */
    gap: 40px;
}
.mv-card {
    background: #fff;
    padding: 35px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-top: 3px solid #e0a800;
    text-align: center; /* Centrăm textul pentru echilibru vizual */
}
.mv-card:hover { 
    transform: translateY(-5px); 
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}
.mv-card h3 { 
    font-size: 1.5rem; 
    margin-bottom: 15px; 
    color: #111; 
}
.mv-card p { 
    font-size: 1.05rem; 
    line-height: 1.6; 
    color: #555; 
    margin: 0; 
}

.mv-card p { 
    font-size: 1.05rem; 
    line-height: 1.6; 
    color: #555; 
    margin: 0; 
    text-align: justify; 
}

/* =========================================
   ANIMAȚII DINAMICE LA SCROLL
========================================= */
.animate-on-scroll {
    opacity: 0;
    /* Tranziție foarte fină tipică site-urilor premium */
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94); 
}

/* Tipuri de animații */
.slide-up { transform: translateY(40px); }
.slide-right { transform: translateX(-40px); }
.slide-left { transform: translateX(40px); }
.fade-in { transform: scale(0.96); }

/* Clasa adăugată de JavaScript când elementul intră pe ecran */
.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0) translateX(0) scale(1);
}

/* 3. Secțiunea Fondatoarei */
.founder-section {
    padding: 80px 0;
    background: #fff;
}
.founder-grid {
    display: grid;
    grid-template-columns: 5fr 7fr; /* Poza e mai îngustă, textul ocupă mai mult spațiu */
    gap: 60px;
    align-items: center;
}
.founder-image {
    position: relative;
}
.founder-image img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}
.founder-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: #111;
    color: #fff;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}
.founder-badge strong { display: block; font-size: 1.4rem; color: #e0a800; }

.founder-content .subtitle {
    display: block;
    color: #e0a800;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}
.founder-content h2 { font-size: 2.5rem; color: #111; margin-bottom: 15px; }
.founder-content p { font-size: 1.1rem; line-height: 1.8; color: #555; margin-bottom: 20px; }

.achievements-list {
    list-style: none;
    padding: 0;
    margin: 0 0 30px 0;
}
.achievements-list li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 15px;
    font-size: 1.1rem;
    line-height: 1.6;
    color: #333;
}
.achievements-list li::before {
    content: '🏆'; /* O mică cupă în loc de bulină */
    position: absolute;
    left: 0;
    top: 2px;
}

.founder-quote {
    background: #f8f9fa;
    padding: 25px;
    border-left: 4px solid #e0a800;
    font-size: 1.1rem;
    color: #333;
    line-height: 1.6;
}
.quote-author {
    display: block;
    margin-top: 15px;
    font-weight: bold;
    color: #111;
}

.founder-content p { 
    font-size: 1.1rem; 
    line-height: 1.8; 
    color: #555; 
    margin-bottom: 20px; 
    text-align: justify; 
}

/* === HEADER STICKY & TRANSPARENT === */
.custom-header {
    position: fixed; /* Schimbat din absolute în fixed pentru a rămâne la scroll */
    top: 0;
    left: 0;
    width: 100%;
    background: transparent; 
    z-index: 1000;
    padding: 20px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.4s ease; /* Animație fină la schimbarea culorii */
}

/* CLASA NOUĂ - Când facem scroll */
.custom-header.scrolled {
    background: #ffffff; /* Fundal alb */
    padding: 10px 0; /* Se face puțin mai îngust pentru eleganță */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05); /* Umbră foarte fină */
    border-bottom: none;
}

/* Schimbăm culoarea linkurilor în negru la scroll */
.custom-header.scrolled .main-nav a {
    color: #111111; 
}
.custom-header.scrolled .main-nav a:hover {
    color: #e0a800; /* Păstrăm galbenul la hover */
}

/* TRUC MAGIC: Dacă logo-ul tău e o imagine albă (PNG), asta îl va face negru automat la scroll! */
.custom-header.scrolled .logo img {
    filter: brightness(0); 
}

/* Schimbăm liniuțele de la meniul de telefon în negru la scroll */
.custom-header.scrolled .mobile-menu-toggle span {
    background-color: #111111;
}

/* === BANNER PAGINI INTERNE (Redesenat) === */
.page-hero {
    position: relative;
    width: 100%;
    height: 25vh; /* Puțin mai înalt pentru un impact vizual mai bun */
    min-height: 300px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center; /* Centrează vertical */
}

.page-hero-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 1;
}

.page-hero-content {
    position: relative;
    z-index: 2;
    color: #fff;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: left; /* Textul aliniat la stânga denotă profesionalism */
    margin-top: 60px; /* Lasă loc pentru header */
}

.breadcrumbs {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0px;
    color: #aaaaaa;
}

.breadcrumbs a {
    color: #e0a800;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}

.breadcrumbs a:hover {
    color: #ffffff;
}

.breadcrumbs .sep {
    margin: 0 10px;
    color: #ffffff;
}

.page-hero-content h1 {
    font-size: 4rem; /* Un titlu impunător */
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0 0 5px 0;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-size: 1.4rem;
    font-weight: 300;
    color: #f8f9fa;
    max-width: 600px;
    margin-top: 0;
}

/* === MENIU DROPDOWN (DESKTOP CLEAN UI) === */
.has-dropdown {
    position: relative;
}

.has-dropdown .arrow {
    display: inline-block;
    font-size: 0.7em;
    margin-left: 5px;
    vertical-align: middle;
    transition: transform 0.3s ease;
}

.has-dropdown:hover .arrow {
    transform: rotate(180deg);
}

.main-nav ul .dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fdfdfd; 
    min-width: 200px;
    padding: 0; 
    margin: 0;
    margin-top: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    border-radius: 4px; 
    border: 1px solid #eaeaea; 
    overflow: hidden; 
    flex-direction: column;
    z-index: 2000;
    
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    display: flex; 
    
    gap: 0 !important; 
}

/* Pod invizibil pentru a menține meniul deschis */
.has-dropdown::after {
    content: "";
    position: absolute;
    bottom: -15px;
    left: 0;
    width: 100%;
    height: 15px;
    background: transparent;
}

/* Ascundem vechiul triunghi dacă exista */
.main-nav ul .dropdown::before {
    display: none;
}

/* Afișarea casetei */
.has-dropdown:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.main-nav ul .dropdown li {
    width: 100%;
    list-style: none;
    margin: 0 !important; /* Ne asigurăm că nu au margini invizibile */
    padding: 0 !important;
}

.main-nav ul .dropdown li:not(:last-child) {
    border-bottom: 1px solid #eeeeee; 
}

.main-nav ul .dropdown a {
    color: #333333 !important;
    font-size: 15px;
    padding: 10px 20px; 
    display: block; 
    text-transform: none;
    font-weight: 500;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.main-nav ul .dropdown a:hover {
    background-color: #e65100;
    color: #ffffff !important; 
}

/* =========================================
   PAGINA STAFF - FĂRĂ SCROLL (DREPTUNGHIURI)
========================================= */

/* 1. Bannerul de sus (mai mic) */
.hero-staff {
    height: 25vh !important; 
    min-height: 150px !important;
}

/* 2. Secțiunea compactă (lăsăm 5% marjă liberă pentru a garanta dispariția scroll-ului) */
.staff-section-compact {
    background-color: #f8f9fa;
    height: 70vh; /* 25vh + 70vh = 95vh (niciodată nu va depăși ecranul) */
    display: flex;
    align-items: center; 
    padding: 0; 
    margin: 0;
}

/* 3. Grila */
.staff-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px; 
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

/* 4. Cardurile (Mai late, formă de dreptunghi) */
.staff-card-minimal {
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
    border-bottom: 4px solid transparent;
    max-width: 380px; /* Am lățit cardul */
    margin: 0 auto; 
    width: 100%;
}

.staff-card-minimal:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.12);
    border-bottom-color: #e65100;
}

/* 5. Imaginile (Mai scurte pentru a salva spațiu vertical) */
.staff-card-minimal .staff-img img {
    width: 100%;
    height: 420px; /* Am redus înălțimea pentru a crea acel dreptunghi orizontal */
    object-fit: cover;
    object-position: center 10%; /* MAGIC: Ține focusul pozei în partea de sus (pe fața antrenorului) */
    display: block;
}

/* 6. Zona de text */
.staff-info-minimal {
    padding: 12px; 
    text-align: center;
}

.staff-info-minimal h3 {
    margin: 0;
    font-size: 1.2rem;
    color: #111111;
}

/* Design pentru vârsta grupelor */
.grupa-varsta {
    display: block;
    color: #e65100; /* Portocaliul academiei */
    font-size: 0.95rem;
    font-weight: 700;
    margin-top: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* =========================================
   PAGINA SĂLI ANTRENAMENT (CU HARTĂ)
========================================= */
.sali-section {
    padding: 60px 0 80px;
    background-color: #f8f9fa;
}

.sali-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Structura cardului */
.sala-card {
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column; /* Asigură că poza, textul și harta se pun unele sub altele */
    border: 1px solid #eaeaea;
}

.sala-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.12);
}

/* Poza Sălii */
.sala-img img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

/* Zona centrală (Text) */
.sala-info {
    padding: 20px;
    text-align: center;
    flex-grow: 1; /* Împinge harta mereu în partea de jos a cardului */
}

.sala-info h3 {
    margin: 0 0 8px 0;
    font-size: 1.3rem;
    color: #111111;
}

.sala-locatie {
    color: #e65100;
    font-weight: 700;
    margin: 0;
    font-size: 0.95rem;
}

/* Harta Google Maps */
.sala-map {
    width: 100%;
    height: 250px; /* Harta primește spațiu generos pentru a putea fi navigată */
    border-top: 1px solid #eaeaea; /* O linie fină despărțitoare între text și hartă */
}

.sala-map iframe {
    width: 100%;
    height: 100%;
}

/* =========================================
   PAGINA TABERE SPORTIVE (STRUCTURĂ LINIARĂ)
========================================= */
.camp-section-custom {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.text-orange { color: #e65100; }

/* Partea de sus: Grid cu 2 coloane egale */
.camp-intro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 70px; /* Spațiu generos înainte de carduri */
}

/* Modificăm separatorul să stea la stânga, sub titlu */
.camp-intro-text .title-separator {
    margin: 0 0 25px 0; 
}

.camp-intro-img img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.08);
    display: block;
}

/* Design-ul butonului */
.btn-camp {
    display: inline-block;
    background-color: #e65100;
    color: #ffffff !important;
    padding: 14px 28px;
    border-radius: 5px;
    font-weight: 700;
    font-size: 1.05rem;
    text-transform: uppercase;
    text-decoration: none;
    margin-top: 15px;
    transition: background 0.3s ease;
}

.btn-camp:hover {
    background-color: #bf360c;
}

/* Partea de jos: Cele 5 carduri pe o linie */
.camp-cards-row {
    display: grid;
    grid-template-columns: repeat(5, 1fr); /* Împarte ecranul în fix 5 coloane egale */
    gap: 20px;
}

.camp-card-5 {
    background: #ffffff;
    padding: 25px 15px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.04);
    border: 1px solid #eaeaea;
    transition: transform 0.3s ease;
    border-bottom: 3px solid transparent;
}

.camp-card-5:hover {
    transform: translateY(-5px);
    border-bottom-color: #e65100;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.camp-card-5 .icon {
    font-size: 2.2rem;
    margin-bottom: 15px;
}

.camp-card-5 h4 {
    font-size: 1.05rem;
    color: #111111;
    margin-bottom: 10px;
    line-height: 1.3;
}

.camp-card-5 p {
    font-size: 0.85rem;
    color: #666666;
    margin: 0;
    line-height: 1.4;
}

/* =========================================
   PAGINA CONTACT & FORMULARE DE ÎNSCRIERE
========================================= */
.contact-section {
    padding: 80px 0;
    background-color: #ffffff;
}

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.contact-info h2 {
    font-size: 2.2rem;
    color: #111111;
    margin-bottom: 15px;
}

.contact-info p {
    font-size: 1.05rem;
    color: #555;
    line-height: 1.6;
    margin-bottom: 30px;
}

.contact-list {
    list-style: none;
    padding: 0;
}

.contact-list li {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: #333;
}

/* Caseta elegantă pentru formular */
.contact-form-wrapper {
    background: #f8f9fa;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border-top: 4px solid #e65100;
}

.contact-form-wrapper h3 {
    margin: 0 0 20px 0;
    font-size: 1.5rem;
    color: #111111;
}

/* Stil pentru etichetele câmpurilor (Labels) */
.contact-form-wrapper label {
    display: block;
    font-weight: 500;
    margin-bottom: 8px;
    color: #111111;
}

/* Forțăm TOATE câmpurile să arate modern, mari și aerisite */
.contact-form-wrapper input[type="text"],
.contact-form-wrapper input[type="email"],
.contact-form-wrapper input[type="date"],  
.contact-form-wrapper select,              
.contact-form-wrapper textarea {
    width: 100%;
    padding: 14px 15px; 
    margin-bottom: 25px;
    border: 1px solid #dddddd;
    border-radius: 6px; 
    font-size: 1rem;
    font-family: inherit;
    box-sizing: border-box;
    background-color: #ffffff;
    color: #333333;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Efect elegant când dai click pe un câmp să scrii */
.contact-form-wrapper input:focus,
.contact-form-wrapper select:focus,
.contact-form-wrapper textarea:focus {
    border-color: #e65100;
    outline: none;
    box-shadow: 0 0 0 3px rgba(230, 81, 0, 0.1);
}

/* Customizare specială pentru locație (săgeată elegantă) */
.contact-form-wrapper select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="%23555" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="6 9 12 15 18 9"></polyline></svg>');
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 14px;
    padding-right: 40px; 
    cursor: pointer;
}

/* Butonul de trimitere */
.contact-form-wrapper input[type="submit"],
.contact-form-wrapper button {
    background-color: #e65100;
    color: #fff;
    padding: 14px 30px;
    border: none;
    border-radius: 6px;
    font-weight: bold;
    font-size: 1.05rem;
    cursor: pointer;
    transition: background 0.3s;
    text-transform: uppercase;
    width: 100%; /* Facem butonul lat pe toată lățimea formularului */
}

.contact-form-wrapper input[type="submit"]:hover,
.contact-form-wrapper button:hover {
    background-color: #bf360c;
}

/* Butonul de Înscriere din Header */
.main-nav ul li.nav-cta {
    margin-left: 15px;
}

.main-nav ul li.nav-cta a {
    background-color: #e65100;
    color: #ffffff !important;
    padding: 5px 10px;
    border-radius: 6px;
    font-weight: 700;
    transition: background-color 0.3s ease;
}

.main-nav ul li.nav-cta a:hover {
    background-color: #bf360c;
    color: #ffffff !important;
}

/* === RESPONSIVE (TELEFOANE ȘI TABLETE) === */
@media screen and (max-width: 768px) {
    
    /* 1. HEADER & LOGO */
    .custom-header { padding: 10px 0 !important; }
    .header-container { flex-direction: row; justify-content: space-between; align-items: center; padding: 0 15px; width: 100%; }
    .logo img { max-height: 40px !important; } /* Micșorăm logo-ul */

    .mobile-menu-toggle { display: flex !important; z-index: 1005; }
    .mobile-menu-toggle span { background-color: #ffffff; box-shadow: 0 1px 2px rgba(0,0,0,0.8); }
    .custom-header.scrolled .mobile-menu-toggle span { background-color: #111111; }

    /* 2. MENIUL HAMBURGER (TIP APLICAȚIE) */
    .main-nav {
        position: absolute;
        top: 100%; left: 0; width: 100%;
        background-color: #111111; 
        display: none; /* Ascuns până la click */
        padding: 0 0 30px 0;
        border-top: 3px solid #e65100;
        z-index: 1000;
        box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    }
    .main-nav.active { display: block; }
    
    .main-nav ul { display: flex; flex-direction: column; align-items: center; gap: 0; padding: 0; margin: 0; width: 100%; }
    .main-nav > ul > li { width: 100%; text-align: center; border-bottom: 1px solid #222222; } /* Linie fină între categorii */
    .main-nav a { font-size: 18px !important; padding: 15px 20px !important; display: block; color: #ffffff !important; }

    /* Meniurile Ascunse (Dropdowns) */
    .main-nav ul .has-dropdown > a { color: #e65100 !important; font-weight: 700; text-transform: uppercase; }
    .main-nav ul .dropdown {
        position: static !important;
        display: flex !important;
        flex-direction: column;
        background: #0a0a0a !important; /* Fundal puțin mai închis pentru a diferenția sub-paginile */
        box-shadow: none !important; border: none !important;
        opacity: 1 !important; visibility: visible !important; transform: none !important;
        margin: 0 !important; padding: 10px 0 !important; gap: 0 !important; width: 100%;
    }
    .main-nav ul .dropdown li { border: none !important; }
    .main-nav ul .dropdown a { color: #cccccc !important; font-size: 15px !important; padding: 10px !important; text-transform: none; }

    /* Butonul Înscrie-te Acum din meniu */
    .main-nav ul li.nav-cta { margin: 20px auto 0; border: none; }
    .main-nav ul li.nav-cta a { display: inline-block; width: 85%; background-color: #e65100 !important; border-radius: 6px; font-weight: bold; padding: 12px !important; }

    /* Animația liniuțelor în X */
    .mobile-menu-toggle.active span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
    .mobile-menu-toggle.active span:nth-child(2) { opacity: 0; }
    .mobile-menu-toggle.active span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

    /* 3. REPARARE BANNERE PAGINI INTERNE (Împingem textul jos!) */
    .page-hero {
        min-height: 250px !important; 
        display: flex !important;
        align-items: flex-end !important; /* TRUC MAGIC: Forțează textul să stea jos, departe de logo */
        padding-bottom: 25px !important;
    }
    .page-hero-content {
        margin: 0 !important;
        width: 100% !important;
        padding: 0 15px !important;
    }
    .page-hero-content h1 {
        font-size: 26px !important; /* Mărime perfectă pentru ecranul telefonului */
        line-height: 1.2 !important;
        margin: 5px 0 0 0 !important;
        word-wrap: break-word !important; 
        white-space: normal !important;
    }
    .breadcrumbs { justify-content: center; font-size: 12px; margin-bottom: 5px; flex-wrap: wrap; }

    /* 4. REPARARE GRILĂ ȘI CARUSEL */
    .slider-arrow { display: block !important; font-size: 20px !important; padding: 10px !important; }
    .prev-arrow { left: 5px; } .next-arrow { right: 5px; }
    .slide-content h1 { font-size: 24px !important; margin-bottom: 10px; }
    .slide-content p { font-size: 14px !important; margin-bottom: 20px; }
    .btn-primary { padding: 10px 20px; font-size: 14px; }

    /* Restul secțiunilor - Punem totul frumos pe o coloană */
    .home-about-grid, .home-groups-grid, .grid-2, .founder-grid, .staff-grid-3, .sali-grid-3, .camp-intro-grid, .camp-cards-row, .contact-layout, .academy-intro-grid {
        grid-template-columns: 1fr !important; gap: 30px !important; text-align: center !important;
    }
    .home-about-text .title-separator, .intro-text .title-separator, .camp-intro-text .title-separator { margin: 0 auto 20px auto !important; }
    .founder-badge { right: 10px; bottom: -15px; padding: 15px; }
    .staff-section-compact { height: auto !important; padding: 40px 0 !important; }
    
    /* Reparare Bannere CTA de pe prima pagină */
    .home-cta-section h2 { font-size: 24px !important; }
    .btn-banner-standalone { font-size: 15px !important; padding: 14px 25px !important; width: 90% !important; box-sizing: border-box; }
    .banner-wrapper { margin-bottom: 25px !important; }
}

/* =========================================
   SOCIAL MEDIA ICONS (HEADER)
========================================= */
/* Varianta pentru ecrane mari (Desktop) */
.header-social {
    position: absolute;
    top: -25px; /* Le ridicăm exact deasupra textelor din meniu */
    right: 0;
    display: flex;
    gap: 20px;
}

.header-social a {
    color: #ffffff;
    font-size: 16px;
    transition: all 0.3s ease;
    opacity: 0.8;
}

.header-social a:hover {
    color: #e65100;
    opacity: 1;
    transform: translateY(-2px); /* Un mic salt elegant la hover */
}

/* Culoarea iconițelor când dai scroll (dacă header-ul devine alb) */
.custom-header.scrolled .header-social a { color: #111111; }
.custom-header.scrolled .header-social a:hover { color: #e65100; }

/* Varianta pentru Telefoane Mobile */
@media screen and (max-width: 768px) {
    .header-social {
        position: static !important; /* Anulăm plutirea */
        justify-content: center !important; /* Le centrăm */
        margin: 25px 0 10px 0 !important; /* Le dăm spațiu sub butonul Înscrie-te */
        gap: 30px !important;
        border-top: 1px solid rgba(255,255,255,0.05); /* O linie fină despărțitoare */
        padding-top: 20px !important;
        width: 100% !important;
    }
    
    .header-social a {
        font-size: 22px !important; /* Mai mari pe mobil ca să fie ușor de apăsat */
        opacity: 1 !important;
    }
}