:root {
	--color-snow: #fafbfc;
	--color-ice: #e8f4f8;
	--color-frost: #d4e9f2;
	--color-winter-blue: #7ba8bd;
	--color-slate: #4a5f6d;
	--color-charcoal: #2c3e50;
	--color-white: #ffffff;
	--font-serif: 'Cormorant Garamond', serif;
	--font-sans: 'Montserrat', sans-serif;
}

/* 1. Facem bara de navigare solidă și vizibilă din start */
.navbar-default {
    background-color: #222 !important; /* Culoare închisă */
    position: fixed !important;
    top: 0;
    width: 100%;
    border-bottom: 2px solid #f13a11; /* O linie fină roșie sub meniu */
}

/* 2. Resetăm secțiunea Intro să nu mai fie tabel și să aibă spațiu sus */
#intro {
    height: auto!important ;
    min-height: 760px;
    display: block !important; /* Foarte important: de la table la block */
    padding-top: 150px !important; /* Spațiu generos pentru a coborî sub navbar */
    padding-bottom: 100px !important;
    background-position: center center;
}

/* 3. Resetăm containerul din Intro (în template e setat ca table-cell) */
#intro .container {
    display: block !important;
    vertical-align: top !important;
}



/* 4. Ajustăm titlurile să nu fie prea mari dacă am micșorat secțiunea */
#intro h1 {
    margin-top: 20px;
    font-size: 3.5rem; /* Ajustează dimensiunea dacă e prea mare */
}


@media (max-width: 760px) {
    #intro {
        height: 30vh!important; /* Reducem înălțimea la jumătate pe mobil */
        background-size: contain; /* Opțional: forțează imaginea să se vadă TOATĂ pe lățime */
        background-repeat: no-repeat;
        background-color: #000; /* Fundal negru pentru golurile de sus/jos dacă imaginea e prea lată */
    }
}


/* --- AJUSTĂRI PENTRU LOGO NAVBAR --- */

/* 1. Resetăm padding-ul containerului pentru a face loc imaginii */
.navbar-brand {
    padding: 15px !important; /* Mai puțin spațiu sus/jos */
    height: auto !important;      /* Permitem înălțimii să se adapteze */
    display: flex;                /* Folosim flexbox pentru centrare */
    align-items: center;          /* Centrează vertical imaginea */
}

/* 2. Controlăm dimensiunea imaginii */
.navbar-brand img {
    height: 50px;  /* Setează o înălțime fixă potrivită pentru meniu */
    width: auto;   /* Păstrează proporțiile originale ale logo-ului */
    /* Opțional: dacă pare prea înghesuit, mai adaugă puțin spațiu */
    /* margin-top: 5px; */
}

/* Ajustare fină pentru mobil (când meniul se restrânge) */
@media (max-width: 767px) {
    .navbar-brand img {
        height: 40px; /* Puțin mai mic pe ecranele mici */
    }
}


/* --- STILURI PENTRU HEADER TOP --- */

#header-top {
    background-color: #ffffff;
    padding: 30px 0;
    border-bottom: 4px solid #fcb040; /* Linie roșie sub header, asortată cu logo-ul */
}

/* Aliniere verticală logo și text */
.display-flex-header {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.logo-mare {
    max-height: 180px; /* Dimensiune generoasă pentru header */
    width: auto;
    margin-bottom: 15px;
}

/* Formatare text tip #intro */
.header-text-area h1 {
	font-family: 'Great Vibes', cursive;
    font-size: 60px;       /* Fonturile cursive par mai mici, deci mărim un pic */
    font-weight: 800;      /* Great Vibes nu are variantă bold, 400 e perfect */
    letter-spacing: 1px;   /* Oferă un pic de spațiu între literele legate */
    display: inline-block;
    padding-left: 5px;     /* Previne tăierea primei litere dacă e foarte înclinată */
	color: #00adef;
	margin: 5px 0;
    vertical-align: middle;
}

.header-text-area h3 {
    font-size: 23px;
	line-height: 25px;
    color: #652d90; /* Roșul din logo pentru contrast */
    text-transform: uppercase;
    font-weight: 600;
    margin: 0;
	
}

/* --- AJUSTARE NAVBAR --- */
/* Deoarece avem header sus, meniul nu mai trebuie să fie 'fixed' din start 
   sau trebuie să îi resetăm poziția dacă vrei să apară sub header */

.navbar-default {
    position: relative !important; /* Meniul va sta sub header, nu peste el */
    top: 0;
    margin-bottom: 0;
}

/* Resetăm și spațiul de la #intro deoarece navbar nu mai 'plutește' peste el */
#intro {
    padding-top: 80px !important;
}

/* Ajustări pentru mobil */
@media (max-width: 767px) {
    .header-text-area {
        text-align: center;
    }
    .header-text-area h1 {
        font-size: 44px;
    }
    .logo-mare {
        max-height: 120px;
    }
}

/* Stilul pentru meniu când devine fix */
.navbar.navbar-fixed-top {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 9999;
    background-color: #ffffff; /* Sau culoarea dorită */
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    animation: fadeInDown 0.4s; /* Efect de apariție lină */
}

/* Prevenim suprapunerea conținutului când meniul devine fix */
.navbar-fixed-top + #intro {
    margin-top: 70px; /* Ajustează în funcție de înălțimea meniului tău */
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 1. Fundalul meniului în stare normală (sub antet) */
.custom-navbar {
    background-color: #652d90; /* Albastrul din logo-ul tău */
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

/* 2. Fundalul meniului când devine FIX (Sticky) la scroll */
.navbar.navbar-fixed-top {
    background-color: #652d90 !important; /* Forțăm culoarea și pentru starea fixă */
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

/* 3. Schimbăm culoarea textului în ALB (pentru contrast pe fundal albastru) */
.custom-navbar .nav li a {
    color: #ffffff !important;
}

/* 4. Culoarea la hover (când treci cu mouse-ul peste link-uri) */
.custom-navbar .nav li a:hover {
    color: #f9bc28 !important; /* Galbenul din steagul tău pentru evidențiere */
}

/* 5. Culoarea link-ului activ (secțiunea în care te afli) */
.custom-navbar .nav li.active a {
    color: #f9bc28 !important;
}

/* --- VIZIBILITATE NAVBAR-HEADER (LOGO MIC) --- */

/* 1. Starea inițială: Ascundem navbar-header pe ecrane mari (Desktop) */
@media (min-width: 768px) {
    .custom-navbar .navbar-header {
        opacity: 0;
        visibility: hidden;
        transition: all 0.4s ease-in-out;
        transform: translateY(-10px); /* Opțional: un ușor efect de mișcare */
		display: none
    }

    /* 2. Starea Sticky: Îl afișăm doar când meniul devine fix */
    .navbar.navbar-fixed-top .navbar-header {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
}

/* 3. Ajustare pentru Mobil (sub 768px) */
/* Pe mobil trebuie să fim atenți: navbar-header conține butonul "hamburger". 
   Dacă vrei ca butonul să fie vizibil mereu (pentru a putea deschide meniul), 
   ascundem DOAR textul/logo-ul (navbar-brand) nu tot containerul. */
@media (max-width: 767px) {
    .custom-navbar .navbar-brand {
        display: none; /* Ascundem "ONLR 2026" inițial */
    }
    
    .navbar.navbar-fixed-top .navbar-brand {
        display: block; /* Îl afișăm doar când meniul e sticky */
    }
    
    /* Butonul hamburger rămâne vizibil pentru a permite navigarea */
    .custom-navbar .navbar-toggle {
        display: block;
    }
}


/* --- CENTRARE ANTET (HEADER-TOP) --- */

#header-top {
    padding: 30px 0;

}

/* Containerul Flex pentru aliniere */
.display-flex-header {
    display: flex;
    flex-wrap: wrap;           /* Permite elementelor să treacă pe rândul următor pe mobil */
    justify-content: center;    /* Centrează coloanele orizontal pe axa principală */
    align-items: center;       /* Centrează elementele vertical */
    text-align: center;        /* Asigură centrarea textului în interiorul coloanelor */
}

/* Ajustări pentru coloane pe Desktop */
@media (min-width: 992px) {
    .display-flex-header .col-md-3,
    .display-flex-header .col-md-9 {
        float: none;           /* Eliminăm float-ul Bootstrap pentru a lăsa Flexbox să lucreze */
        display: inline-block;
    }
}

/* Stil text antet */
.header-text-area h1, 
.header-text-area h3 {
    margin: 5px 0;
    text-align: center;        /* Centrare forțată pentru titluri */
}

/* Logo mare - Centrare imagine */
.logo-mare {
    max-height: 200px;         /* Limitează înălțimea pentru a nu domina pagina */
    width: auto;
    margin: 0 auto 15px;       /* Centrează imaginea și adaugă spațiu jos pe mobil */
    display: block;
}

/* --- STILURI PENTRU SECTIUNEA WELCOME --- */

.welcome-card {
    background: rgba(255, 255, 255, 0.9); /* Fundal alb curat, usor transparent */
    padding: 40px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    margin-top: 20px;
    min-height: 450px; /* Asigură că ambele carduri au aceeași înălțime */
}

.author-img {
    width: 120px;
    height: 120px;
    margin: 0 auto 20px;
    border: 5px solid #0057a0; /* Contur albastru ca logo-ul */
    object-fit: cover;
}

.author-info h3 {
    margin-bottom: 5px;
    color: #0057a0;
    font-weight: 700;
}

.author-info h5 {
    color: #f9bc28; /* Galben pentru titlu oficial */
    margin-bottom: 20px;
    text-transform: uppercase;
    font-size: 14px;
}

.teaser-text {
    font-style: italic;
    line-height: 1.8;
    margin-bottom: 30px;
    color: #555;
}

.line-divider {
    width: 60px;
    height: 3px;
    background: #0057a0;
    margin: 20px auto 40px;
}

.custom-btn {
    background-color: #0057a0 !important;
    border: none;
    padding: 10px 25px;
    transition: all 0.3s;
}

.custom-btn:hover {
    background-color: #f9bc28 !important;
    transform: translateY(-3px);
}

/* --- STIL NOU OWL SPEAKERS (SINGLE VIEW) --- */

.display-flex-center {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    padding: 40px 0;
}

.speaker-card {
    padding: 20px;
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.05);
}

.speaker-img {
    /* width: 200px !important; Forțăm dimensiunea în carusel */
    height: 200px;
    margin: 0 auto 20px;
    border: 6px solid #f5f5f5;
    object-fit: cover;
}

.speaker-meta h4 {
    color: #0057a0;
    margin-bottom: 5px;
    font-weight: 700;
}

.speaker-content {
    padding-left: 50px;
}

.speaker-content h2 {
    font-weight: 800;
    margin-bottom: 20px;
    color: #333;
}

.speaker-content p {
    font-size: 18px;
    line-height: 1.8;
    font-style: italic;
    color: #666;
    margin-bottom: 30px;
}

/* Ajustare Mobil */
@media (max-width: 767px) {
    .speaker-content {
        padding-left: 15px;
        text-align: center;
        margin-top: 30px;
    }
    .display-flex-center {
        display: block; /* Dezactivăm flex-ul pe mobil pentru a curge normal */
    }
}

.owl-carousel .owl-item {
    float: left;
    padding-right: 10px;
}

#partners{text-align: center}

#footer{margin-top: 50px;}

/* Ajustări pentru ecrane sub 768px (Tablete și Telefoane) */
@media screen and (max-width: 767px) {
    #intro {
        /* Reducem înălțimea minimă pentru a nu tăia imaginea pe lateral */
        min-height: 350px !important; 
        height: 350px !important;
        
        /* Dezactivăm efectul 'fixed' pe mobil pentru că face zoom excesiv */
        background-attachment: scroll !important; 
        
        /* Ne asigurăm că imaginea este centrată și acoperă zona */
        background-size: cover !important;
        background-position: center center !important;
        
        /* Reducem spațiul de sus ca să urcăm conținutul */
        padding-top: 60px !important;
        padding-bottom: 40px !important;
    }
}

/* Ajustări extra pentru telefoane foarte înguste (sub 480px) */
@media screen and (max-width: 479px) {
    #intro {
        min-height: 250px !important;
        height: 250px !important;
    }
}




/* Filter Section */
.filter-container {
	padding: 3rem 2rem;
	text-align: center;
}

.filter-buttons {
	display: inline-flex;
	gap: 2.5rem;
	flex-wrap: wrap;
	justify-content: center;
}

.filter-btn {
	background: none;
	border: none;
	font-family: var(--font-sans);
	font-size: 0.95rem;
	color: var(--color-slate);
	cursor: pointer;
	padding: 0.5rem 0;
	position: relative;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	font-weight: 300;
	transition: color 0.3s ease;
}

.filter-btn::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 50%;
	transform: translateX(-50%) scaleX(0);
	width: 100%;
	height: 1px;
	background: var(--color-winter-blue);
	transition: transform 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
	color: var(--color-winter-blue);
}

.filter-btn.active::after {
	transform: translateX(-50%) scaleX(1);
}

/* Gallery Section */
.gallery-container {
	max-width: 1400px;
	margin: 0 auto;
	padding: 2rem;
}

.gallery-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
	gap: 1.5rem;
	grid-auto-flow: dense;
}

.gallery-item {
	position: relative;
	overflow: hidden;
	border-radius: 2px;
	cursor: pointer;
	background: var(--color-white);
	box-shadow: 0 4px 20px rgba(123, 168, 189, 0.08);
	transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
	opacity: 0;
	animation: fadeInUp 0.6s ease forwards;
}

@keyframes fadeInUp {
	from {
		opacity: 0;
		transform: translateY(30px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.gallery-item:nth-child(1) {
	animation-delay: 0.1s;
}

.gallery-item:nth-child(2) {
	animation-delay: 0.15s;
}

.gallery-item:nth-child(3) {
	animation-delay: 0.2s;
}

.gallery-item:nth-child(4) {
	animation-delay: 0.25s;
}

.gallery-item:nth-child(5) {
	animation-delay: 0.3s;
}

.gallery-item:nth-child(6) {
	animation-delay: 0.35s;
}

.gallery-item:nth-child(7) {
	animation-delay: 0.4s;
}

.gallery-item:nth-child(8) {
	animation-delay: 0.45s;
}

.gallery-item:nth-child(9) {
	animation-delay: 0.5s;
}

.gallery-item.tall {
	grid-row: span 2;
}

.gallery-item:hover {
	transform: translateY(-5px);
	box-shadow: 0 12px 40px rgba(123, 168, 189, 0.15);
}

.gallery-item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-item:hover img {
	transform: scale(1.05);
}

.gallery-overlay {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	background: linear-gradient(to top, rgba(44, 62, 80, 0.8), transparent);
	padding: 2rem 1.5rem 1.5rem;
	transform: translateY(100%);
	transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-item:hover .gallery-overlay {
	transform: translateY(0);
}

.gallery-title {
	font-family: var(--font-serif);
	font-size: 1.3rem;
	color: var(--color-white);
	font-weight: 300;
	margin-bottom: 0.3rem;
}

.gallery-category {
	font-size: 0.75rem;
	color: var(--color-frost);
	text-transform: uppercase;
	letter-spacing: 1.5px;
	font-weight: 300;
}

/* Lightbox */
.lightbox {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(250, 251, 252, 0.98);
	z-index: 2000;
	align-items: center;
	justify-content: center;
	opacity: 0;
	transition: opacity 0.4s ease;
}

.lightbox.active {
	display: flex;
	opacity: 1;
}

.lightbox-content {
	max-width: 90%;
	max-height: 85vh;
	position: relative;
	animation: zoomIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes zoomIn {
	from {
		transform: scale(0.9);
		opacity: 0;
	}

	to {
		transform: scale(1);
		opacity: 1;
	}
}

.lightbox-content img {
	max-width: 100%;
	max-height: 85vh;
	display: block;
	box-shadow: 0 20px 60px rgba(123, 168, 189, 0.2);
}

.lightbox-info {
	text-align: center;
	margin-top: 2rem;
}

.lightbox-info h3 {
	font-family: var(--font-serif);
	font-size: 2rem;
	color: var(--color-slate);
	font-weight: 300;
	margin-bottom: 0.5rem;
}

.lightbox-info p {
	font-size: 0.85rem;
	color: var(--color-winter-blue);
	text-transform: uppercase;
	letter-spacing: 2px;
	font-weight: 300;
}

.lightbox-close {
	position: absolute;
	top: 4rem;
	right: 2rem;
	background: none;
	border: none;
	font-size: 3rem;
	color: var(--color-slate);
	cursor: pointer;
	width: 50px;
	height: 50px;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.3s ease;
	font-weight: 200;
}

.lightbox-close:hover {
	color: var(--color-winter-blue);
	transform: rotate(90deg);
}

.lightbox-nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	background: rgba(255, 255, 255, 0.9);
	border: none;
	width: 50px;
	height: 50px;
	cursor: pointer;
	font-size: 1.5rem;
	color: var(--color-slate);
	transition: all 0.3s ease;
	display: flex;
	align-items: center;
	justify-content: center;
}

.lightbox-nav:hover {
	background: var(--color-white);
	color: var(--color-winter-blue);
}

.lightbox-prev {
	left: 2rem;
}

.lightbox-next {
	right: 2rem;
}

/* CSS Reset și Centrare ( Full Screen 100% ) */
#preloader {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    background-color: #ffffff;
    display: flex; justify-content: center; align-items: center;
    z-index: 999999;
    overflow: hidden;
}

.spiral-wrapper {
    width: 250px;
    height: 250px;
}

/* --- LOGICA DE ANIMAȚIE (SPIRALA) --- */

.p-petal {
    opacity: 0; /* Pornește de la invizibil */
    
    /* DEFINIREA ANIMAȚIEI:
       - 1.2s: Timpul total pentru UN ciclu complet (Să apară și să dispară)
       - ease-out: Pornire rapidă, oprire lentă (ca un pas)
    */
    animation-name: olav-step-fade;
    animation-duration: 1.2s; 
    animation-timing-function: ease-out;
    animation-iteration-count: infinite; /* Să se repete continuu */
}

/* DEFINIREA "PASULUI" DE APARIȚIE:
   Petala apare foarte repede la 10% și stă aprinsă până la 40%, 
   apoi dispare până la 70% și stă stinsă.
*/
@keyframes olav-step-fade {
    0% { opacity: 0; }
    10% { opacity: 1; }  /* Apare instantaneu */
    40% { opacity: 1; }  /* Stă aprinsă */
    70% { opacity: 0; }  /* Dispare lin */
    100% { opacity: 0; } /* Stă stinsă */
}

/* --- SETAREA DELAY-URILOR (ORDINEA) --- */

/* 1. Violet Regal (cls-2) - Începe imediat */
.p-mov { animation-delay: 0.0s; }

/* 2. Albastru Azur (cls-5) - Începe după 0.15s (un sfert de animație) */
.p-albastru { animation-delay: 0.15s; }

/* 3. Verde Păpădie (cls-1) */
.p-verde { animation-delay: 0.3s; }

/* 4. Galben Lămâie (cls-6) */
.p-galben { animation-delay: 0.45s; }

/* 5. Portocaliu Chihlimbar (cls-3) */
.p-portocaliu { animation-delay: 0.6s; }

/* 6. Roz Magenta (cls-4) - Ultima formă */
.p-roz { animation-delay: 0.75s; }

/* CSS pentru mobil */
@media (max-width: 768px) {
    .spiral-wrapper { width: 180px; height: 180px; }
}

#welcome-message p {text-indent: 50px}
#welcome-message p.lead, #welcome-message p.signature {text-indent: 0; padding-left: 50px}