/* ====== STIL GENERAL ====== */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: #222;
    background-color: #f5f7fb;
}

a {
    color: #165ba8;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 16px;
}

/* ====== HEADER & MENIU ====== */
header {
    background: #0c2340;
    color: #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.25);
    position: sticky;
    top: 0;
    z-index: 999;
}

.nav-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
}

.logo {
    font-weight: 600;
    font-size: 0.95rem;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

nav li {
    margin: 0;
}

nav a {
    color: #fff;
    font-size: 0.9rem;
    padding: 6px 10px;
    border-radius: 4px;
}

nav a:hover,
nav a.active {
    background: rgba(255,255,255,0.18);
}

/* ====== SECTIUNI ====== */
section {
    padding: 50px 0;
}

h1, h2, h3 {
    color: #0c2340;
    margin-top: 0;
}

.section-title {
    border-bottom: 2px solid #dde3f0;
    padding-bottom: 8px;
    margin-bottom: 20px;
}

/* ====== HERO (HOME) ====== */
.hero {
    padding: 70px 0 50px 0;
    background: linear-gradient(135deg, #0c2340, #165ba8);
    color: #fff;
}

.hero-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    align-items: center;
}

.hero-text {
    flex: 1 1 280px;
}

.hero-text h1 {
    color: #fff;
    font-size: 1.9rem;
    margin-bottom: 10px;
}

.hero-text h2 {
    color: #d8e4ff;
    font-size: 1rem;
    font-weight: 400;
    margin-top: 0;
}

.hero-actions {
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.btn {
    display: inline-block;
    padding: 10px 18px;
    border-radius: 20px;
    font-size: 0.9rem;
    border: none;
    cursor: pointer;
    text-align: center;
}

.btn-primary {
    background: #ffb703;
    color: #0c2340;
    font-weight: 600;
}

.btn-secondary {
    background: transparent;
    border: 1px solid #d8e4ff;
    color: #fff;
}

.hero-photo {
    flex: 0 0 250px;
    max-width: 250px;
    border-radius: 12px;
    
    background: #e5ebf7;
    display: flex;
    align-items: center;
    justify-content: center;
    height: auto;
}

/* imaginea portret din HERO */
.hero-photo img.hero-image {
    width: 100%;
    height: auto;
    display: block;
}

/* ===== CARDURI ===== */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 18px;
}

.card {
    background: #fff;
    border-radius: 12px;
    padding: 18px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

/* imaginile din cardurile de pe pagina Acasă */
.card img {
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
}

.card h3 {
    margin-top: 0;
    margin-bottom: 8px;
    font-size: 1rem;
}

.card p {
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.card a.more {
    font-size: 0.85rem;
    font-weight: 600;
}

/* ===== SECTIUNI INTERIOARE ===== */
.page-header {
    padding: 70px 0 30px 0;
    background: #edf1fb;
    border-bottom: 1px solid #dde3f0;
}

.page-header h1 {
    margin-bottom: 5px;
}

.breadcrumb {
    font-size: 0.8rem;
    color: #555;
}

/* Timeline */
.timeline {
    border-left: 3px solid #dde3f0;
    padding-left: 15px;
    margin-left: 5px;
}

.timeline-item {
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.timeline-item span.year {
    font-weight: 600;
    color: #165ba8;
    font-size: 0.9rem;
}

/* Liste publicații, conferințe */
.pub-type {
    font-weight: 600;
    font-size: 0.9rem;
    color: #165ba8;
    margin-top: 15px;
}

.pub-list {
    list-style: none;
    padding: 0;
    font-size: 0.9rem;
}

.pub-list li {
    margin-bottom: 10px;
}

.conf-year {
    font-weight: 600;
    margin-top: 15px;
    color: #165ba8;
}

.conf-item {
    font-size: 0.9rem;
    margin-bottom: 6px;
}

/* Media & galerie */
.media-grid,
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.media-block,
.gallery-item {
    background: #fff;
    border-radius: 12px;
    padding: 18px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    font-size: 0.9rem;
}

.gallery-image {
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    margin-bottom: 8px;
}

/* Contact */
form {
    max-width: 500px;
}

label {
    display: block;
    margin-bottom: 4px;
    font-size: 0.9rem;
}

input[type="text"],
input[type="email"],
textarea {
    width: 100%;
    padding: 8px 10px;
    margin-bottom: 12px;
    border-radius: 6px;
    border: 1px solid #ccd4e5;
    font-size: 0.9rem;
    font-family: inherit;
}

textarea {
    min-height: 120px;
    resize: vertical;
}

.contact-note {
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 10px;
}

/* Footer */
footer {
    background: #0c2340;
    color: #d8e4ff;
    padding: 14px 0;
    font-size: 0.8rem;
    margin-top: 30px;
    position: relative
    z-index: 9999;
}

.footer-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.footer-social a {
    color: #ffb703;
    margin-left: 10px;
    font-weight: 600;
    font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 720px) {
    .hero {
        padding-top: 80px;
    }
    .nav-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    nav ul {
        justify-content: flex-start;
    }
    .hero-inner {
        flex-direction: column;
    }
}
/* Forțăm imaginile din galerie să se vadă complet */
.media-block img,
.gallery-item img,
.gallery-image {
    width: 100% !important;
    height: auto !important;
    object-fit: contain !important;
}