/* ══ Şcoala Gimnazială Ştefan cel Mare — Design 2026 ══ */

:root {
    --primary:      #1a3a6b;
    --primary-dark: #0f2347;
    --accent:       #e8a020;
    --accent-light: #f5c55a;
    --surface:      #f4f7fb;
    --surface-2:    #e8eef7;
    --text:         #1e293b;
    --text-muted:   #64748b;
    --white:        #ffffff;
    --border:       rgba(255,255,255,0.15);
    --shadow-sm:    0 2px 8px rgba(0,0,0,.06), 0 1px 3px rgba(0,0,0,.04);
    --shadow-md:    0 8px 30px rgba(0,0,0,.10);
    --shadow-lg:    0 20px 60px rgba(0,0,0,.16);
    --shadow-card:  0 4px 20px rgba(26,58,107,.08);
    --radius:       18px;
    --radius-lg:    26px;
    --transition:   all .28s cubic-bezier(.4,0,.2,1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', sans-serif;
    background: var(--surface);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ── NAVBAR ─────────────────────────────────────── */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    padding: 0 2rem;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--primary-dark);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(255,255,255,.07);
    transition: var(--transition);
}
.navbar.scrolled {
    box-shadow: 0 4px 30px rgba(0,0,0,.4);
}
.navbar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--white);
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: -.01em;
}
.navbar-brand img { height: 38px; width: auto; filter: brightness(0) invert(1); }
@media (min-width: 768px) { .navbar-brand span { display: block; } }

.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
}
.nav-links a {
    display: block;
    padding: 8px 14px;
    color: rgba(255,255,255,.80);
    text-decoration: none;
    font-size: .88rem;
    font-weight: 500;
    border-radius: 8px;
    transition: var(--transition);
    letter-spacing: .01em;
}
.nav-links a:hover,
.nav-links a.active {
    background: rgba(255,255,255,.12);
    color: var(--white);
}
.nav-links .nav-cta a {
    background: var(--accent);
    color: var(--primary-dark);
    font-weight: 700;
}
.nav-links .nav-cta a:hover { background: var(--accent-light); }

/* Hamburger */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    z-index: 1100;
}
.nav-toggle span {
    display: block;
    width: 24px; height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: transform .3s ease, opacity .2s ease;
}
/* Hamburger → X when menu open */
.nav-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

@media (max-width: 900px) {
    .nav-links {
        display: none;
        position: fixed;
        top: 0; left: 0;
        width: 100%; height: 100vh;
        background: #0a1738;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 0;
        z-index: 1050;
        padding: 0;
        list-style: none;
    }
    .nav-links.open { display: flex; }
    .nav-links li { width: 100%; text-align: center; }
    .nav-links a {
        font-size: 1.2rem;
        font-weight: 600;
        padding: 1.1rem 2rem;
        width: 100%;
        display: block;
        text-align: center;
        border-radius: 0;
        border-bottom: 1px solid rgba(255,255,255,.08);
        color: rgba(255,255,255,.85);
        letter-spacing: .02em;
    }
    .nav-links a:hover, .nav-links a.active {
        background: rgba(255,255,255,.08);
        color: white;
    }
    .nav-links .nav-cta { margin-top: 2rem; }
    .nav-links .nav-cta a {
        display: inline-block;
        width: auto;
        border-radius: 50px;
        border-bottom: none;
        padding: .85rem 2.5rem;
        background: var(--accent);
        color: var(--primary-dark);
    }
    .nav-links .nav-cta a:hover { background: var(--accent-light); }
    .nav-toggle { display: flex; z-index: 1100; }
}

/* ── PAGE WRAPPER ───────────────────────────────── */
.page-body { margin-top: 70px; flex: 1; }

/* ── PAGE HERO BANNER ───────────────────────────── */
.page-hero {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 60%, #2d5fa6 100%);
    padding: 5rem 2rem 4rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.page-hero::before {
    content: '';
    position: absolute; inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.page-hero h1 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 800;
    color: var(--white);
    letter-spacing: -.02em;
    position: relative;
}
.page-hero p {
    color: rgba(255,255,255,.7);
    margin-top: .7rem;
    font-size: 1.05rem;
    position: relative;
}
.page-hero .accent-line {
    width: 60px; height: 5px;
    background: var(--accent);
    border-radius: 3px;
    margin: 1.2rem auto 0;
}

/* ── CONTAINER ──────────────────────────────────── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }

/* ── SECTION ──────────────────────────────────────  */
.section { padding: 5rem 0; }
.section-title {
    font-size: 1.8rem; font-weight: 800;
    color: var(--primary); letter-spacing: -.025em; margin-bottom: .5rem;
}
.section-subtitle { color: var(--text-muted); font-size: 1rem; margin-bottom: 3rem; }

/* ── CARD ─────────────────────────────────────────── */
.card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-card);
    border: 1px solid rgba(26,58,107,.06);
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}
.card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(26,58,107,.12);
}
.card-img { width: 100%; height: 240px; object-fit: cover; }
.card-body { padding: 1.8rem 2rem; flex: 1; display: flex; flex-direction: column; }
.card-tag {
    font-size: .72rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: .1em; color: var(--accent); margin-bottom: .6rem;
    display: flex; align-items: center; gap: 5px;
}
.card-title {
    font-size: 1.15rem; font-weight: 700; color: var(--primary);
    line-height: 1.4; margin-bottom: .8rem;
}
.card-text {
    font-size: .93rem; color: var(--text-muted);
    line-height: 1.7; flex: 1;
}
.card-meta { font-size: .8rem; color: var(--text-muted); display: flex; align-items: center; gap: .4rem; }
.card-link {
    display: inline-flex; align-items: center; gap: 7px;
    margin-top: 1.2rem; font-size: .85rem; font-weight: 700;
    color: var(--primary); text-decoration: none; transition: var(--transition);
    padding: .5rem 0; border-top: 1px solid var(--surface-2);
    align-self: flex-start; width: 100%;
}
.card-link:hover { color: var(--accent); gap: 12px; }

.card-img-placeholder {
    height: 200px;
    background: linear-gradient(135deg, #dde8f5 0%, #c8d9ef 100%);
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    gap: 10px;
    font-size: 3.2rem;
    color: var(--primary);
    opacity: .5;
    position: relative;
    overflow: hidden;
}
.card-img-placeholder::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(180deg, transparent 60%, rgba(255,255,255,.3) 100%);
}

/* ── BADGE ─────────────────────────────────────────── */
.badge {
    display: inline-block; padding: 4px 12px; border-radius: 100px;
    font-size: .73rem; font-weight: 700; letter-spacing: .04em;
    background: var(--surface-2); color: var(--primary);
    margin-bottom: .6rem;
}
.badge-accent { background: rgba(232,160,32,.15); color: #a06010; }

/* ── GRID HELPERS ────────────────────────────────── */
.grid { display: grid; gap: 2rem; }
.grid-2 { grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
@media (max-width: 600px) {
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* ── BUTTON ──────────────────────────────────────── */
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 12px 26px; border-radius: 12px;
    font-size: .9rem; font-weight: 700; cursor: pointer;
    border: none; text-decoration: none; transition: var(--transition);
    letter-spacing: .01em;
}
.btn-primary {
    background: linear-gradient(135deg, var(--primary), #2d5fa6);
    color: white; box-shadow: 0 4px 16px rgba(26,58,107,.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(26,58,107,.45); }
.btn-outline { background: transparent; border: 2px solid var(--primary); color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: white; transform: translateY(-2px); }
.btn-glass {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 12px 26px; border-radius: 12px;
    font-size: .9rem; font-weight: 700;
    background: rgba(255,255,255,.12); backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,.25); color: white;
    text-decoration: none; transition: var(--transition); cursor: pointer;
}
.btn-glass:hover { background: rgba(255,255,255,.22); transform: translateY(-2px); }
.btn-outline-white {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 12px 26px; border-radius: 12px;
    font-size: .9rem; font-weight: 700;
    background: transparent; border: 2px solid rgba(255,255,255,.5);
    color: white; text-decoration: none; transition: var(--transition);
}
.btn-outline-white:hover { background: rgba(255,255,255,.15); border-color: white; transform: translateY(-2px); }

/* ── SECTION HEAD ────────────────────────────────── */
.section-head {
    display: flex; align-items: flex-end; justify-content: space-between;
    flex-wrap: wrap; gap: 1rem; margin-bottom: 3rem;
}

/* ── DARK SECTION ────────────────────────────────── */
.section-dark { background: linear-gradient(135deg, var(--primary-dark) 0%, #0f2a55 100%); }

/* ── TABLE ───────────────────────────────────────── */
.modern-table { width: 100%; border-collapse: collapse; }
.modern-table th {
    background: linear-gradient(135deg, var(--primary), #2d5fa6);
    color: white; padding: 1.1rem 1.4rem; text-align: left;
    font-size: .82rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
}
.modern-table th:first-child { border-radius: var(--radius) 0 0 0; }
.modern-table th:last-child  { border-radius: 0 var(--radius) 0 0; }
.modern-table td {
    padding: 1rem 1.4rem; border-bottom: 1px solid #edf2f8;
    font-size: .94rem; color: var(--text);
}
.modern-table tr:last-child td { border-bottom: none; }
.modern-table tr:hover td { background: var(--surface); }
.table-wrapper {
    background: var(--white); border-radius: var(--radius);
    box-shadow: var(--shadow-card); border: 1px solid rgba(26,58,107,.06);
    overflow: hidden; overflow-x: auto;
}

/* ── GALLERY ─────────────────────────────────────── */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 14px;
}
.gallery-thumb {
    position: relative; border-radius: var(--radius);
    overflow: hidden; aspect-ratio: 4/3; display: block; text-decoration: none;
    box-shadow: var(--shadow-sm);
}
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.gallery-thumb:hover img { transform: scale(1.08); }
.gallery-thumb-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(180deg, transparent 30%, rgba(10,24,60,.7) 100%);
    display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
    padding: 1.2rem; gap: 6px; color: white; opacity: 0; transition: var(--transition);
    font-size: .88rem; font-weight: 600;
}
.gallery-thumb-overlay i { font-size: 2rem; margin-bottom: .3rem; }
.gallery-thumb:hover .gallery-thumb-overlay { opacity: 1; }
.gallery-album-title {
    font-size: 1.15rem; font-weight: 800; color: var(--primary);
    margin-bottom: 1.2rem; margin-top: 3rem; padding-bottom: .6rem;
    border-bottom: 3px solid var(--accent);
    display: flex; align-items: center; gap: 10px;
}
.gallery-album-title:first-child { margin-top: 0; }

/* ── FOOTER ──────────────────────────────────────── */
footer {
    background: linear-gradient(135deg, var(--primary-dark) 0%, #0a1a38 100%);
    color: rgba(255,255,255,.85);
    padding: 5rem 0 0;
    margin-top: auto;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.6fr;
    gap: 3rem 4rem;
    align-items: start;
}
@media (max-width: 860px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
    .footer-grid { grid-template-columns: 1fr; }
    .footer-brand { grid-column: auto; }
}
.footer-brand { display: flex; flex-direction: column; gap: 1rem; }
.footer-brand img { height: 110px; width: auto; filter: brightness(0) invert(1); opacity: .9; }
.footer-brand p { font-size: .9rem; line-height: 1.8; color: rgba(255,255,255,.6); }
.footer-section h4 {
    font-size: .78rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: .1em; color: var(--accent); margin-bottom: 1.4rem;
}
.footer-section ul { list-style: none; display: flex; flex-direction: column; gap: .8rem; }
.footer-section ul li a { text-decoration: none; color: rgba(255,255,255,.65); font-size: .9rem; transition: var(--transition); }
.footer-section ul li a:hover { color: var(--white); padding-left: 5px; }
.footer-contact-item { display: flex; align-items: flex-start; gap: 12px; font-size: .9rem; color: rgba(255,255,255,.65); margin-bottom: 1rem; }
.footer-contact-item i { color: var(--accent); margin-top: 3px; min-width: 16px; }
.footer-social { display: flex; gap: 10px; margin-top: 1rem; }
.footer-social a {
    width: 42px; height: 42px; border-radius: 12px;
    background: rgba(255,255,255,.08);
    display: flex; align-items: center; justify-content: center;
    color: rgba(255,255,255,.7); text-decoration: none; font-size: 1rem; transition: var(--transition);
}
.footer-social a:hover { background: var(--accent); color: var(--primary-dark); transform: translateY(-3px); }
.footer-bottom {
    margin-top: 4rem; border-top: 1px solid rgba(255,255,255,.08);
    padding: 1.4rem 0; text-align: center;
    font-size: .8rem; color: rgba(255,255,255,.35);
}

/* ── SCROLL ANIMATIONS ───────────────────────────── */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp .55s ease both; }
.delay-1 { animation-delay: .12s; }
.delay-2 { animation-delay: .24s; }
.delay-3 { animation-delay: .36s; }

.observe {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .55s ease, transform .55s ease;
}
.observe.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ── SCROLLBAR ───────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--surface); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 3px; }

/* ── HERO (home) ─────────────────────────────────── */
.hero {
    position: relative; min-height: 94vh; display: flex; align-items: center;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}
.hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(0,0,0,.75) 0%, rgba(0,0,0,.45) 50%, rgba(0,0,0,.20) 100%);
}
.hero-content { position: relative; z-index: 1; padding: 6rem 1.5rem 3rem; max-width: 720px; }
.hero-badge {
    display: inline-block; background: rgba(255,255,255,.12); backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,.22); color: white;
    padding: 7px 18px; border-radius: 100px;
    font-size: .82rem; font-weight: 600; letter-spacing: .05em; margin-bottom: 1.6rem;
}
.hero-title { font-size: clamp(2.6rem, 6vw, 4.5rem); font-weight: 300; color: white; line-height: 1.12; letter-spacing: -.03em; margin-bottom: 1.3rem; }
.hero-title strong {
    font-weight: 800; display: block;
    background: linear-gradient(90deg, #f5c55a, #e8a020);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hero-desc { color: rgba(255,255,255,.8); font-size: 1.15rem; line-height: 1.75; margin-bottom: 2.5rem; max-width: 540px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-scroll-hint {
    position: absolute; bottom: 2.5rem; left: 50%; transform: translateX(-50%);
    color: rgba(255,255,255,.5); font-size: 1.1rem;
    animation: bounce 2s infinite;
}
@keyframes bounce {
    0%,100% { transform: translateX(-50%) translateY(0); }
    50%      { transform: translateX(-50%) translateY(10px); }
}

/* ── STATS STRIP ─────────────────────────────────── */
.stats-strip { background: white; border-bottom: 1px solid #e8edf2; box-shadow: var(--shadow-sm); }
.stats-grid { display: flex; align-items: center; justify-content: space-around; flex-wrap: wrap; padding: 2.5rem 0; gap: 2rem; }
.stats-item { text-align: center; }
.stats-value { display: block; font-size: 2.8rem; font-weight: 800; color: var(--primary); letter-spacing: -.04em; line-height: 1; }
.stats-label { font-size: .8rem; text-transform: uppercase; letter-spacing: .09em; color: var(--text-muted); font-weight: 600; margin-top: .4rem; }
.stats-divider { width: 1px; height: 50px; background: #e8edf2; }
@media (max-width: 600px) { .stats-divider { display: none; } }

/* ── GALLERY PREVIEW ─────────────────────────────── */
.gallery-preview-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; margin-top: .5rem; }

/* ── CTA STRIP ───────────────────────────────────── */
.cta-strip { background: linear-gradient(135deg, var(--primary) 0%, #2d5fa6 100%); padding: 5rem 0; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 2rem; }
.cta-inner h2 { font-size: 2rem; font-weight: 800; color: white; letter-spacing: -.025em; }
.cta-inner p  { color: rgba(255,255,255,.7); margin-top: .4rem; font-size: 1.05rem; }
.cta-actions  { display: flex; flex-wrap: wrap; gap: 14px; }

/* ── NOUTATE DETALIU ─────────────────────────────── */
.article-container { max-width: 860px; margin: 0 auto; }
.article-title { font-size: clamp(1.5rem, 4vw, 2.2rem); font-weight: 800; color: var(--primary); line-height: 1.25; margin: 1rem 0; }
.article-meta { display: flex; flex-wrap: wrap; gap: 1rem; color: var(--text-muted); font-size: .88rem; }
.article-meta span { display: flex; align-items: center; gap: 5px; }
.article-body { font-size: 1.02rem; line-height: 1.85; color: var(--text); margin-top: 1.5rem; }
.article-body p { margin-bottom: 1.2rem; }
.article-body h2 { font-size: 1.35rem; font-weight: 700; color: var(--primary); margin: 2rem 0 .8rem; }

/* ── PERSONAL DEPT ───────────────────────────────── */
.dept-title {
    font-size: 1rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em;
    color: var(--primary); margin-bottom: 1.2rem; margin-top: 3rem;
    padding: .7rem 1.2rem; background: var(--surface-2);
    border-left: 5px solid var(--accent); border-radius: 0 10px 10px 0;
    display: flex; align-items: center; gap: 10px;
}
.dept-title:first-child { margin-top: 0; }

/* ── EMPTY STATE ─────────────────────────────────── */
.empty-state {
    text-align: center; padding: 5rem 2rem; color: var(--text-muted);
}
.empty-state i { font-size: 4rem; margin-bottom: 1.5rem; display: block; opacity: .35; }
.empty-state p { font-size: 1.05rem; }

/* ── PERSON CARD ─────────────────────────────────── */
.person-card {
    background: var(--white);
    border-radius: var(--radius);
    border: 1px solid rgba(26,58,107,.06);
    box-shadow: var(--shadow-card);
    padding: 2rem 1.8rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: .8rem;
    transition: var(--transition);
}
.person-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(26,58,107,.12);
}
.person-avatar {
    width: 80px; height: 80px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.6rem; font-weight: 800; color: white;
    letter-spacing: -.02em;
    flex-shrink: 0;
    margin-bottom: .4rem;
}
.person-name {
    font-size: 1rem; font-weight: 700; color: var(--primary);
    line-height: 1.3;
}
.person-function {
    font-size: .85rem; color: var(--text-muted);
    line-height: 1.5;
}
.person-badge {
    display: inline-block; padding: 3px 12px; border-radius: 100px;
    font-size: .7rem; font-weight: 700; letter-spacing: .04em; margin-top: .3rem;
}
.dept-Conducere  .person-avatar { background: linear-gradient(135deg,#ef4444,#b91c1c); }
.dept-Didactic   .person-avatar { background: linear-gradient(135deg,#1a3a6b,#2d5fa6); }
.dept-Auxiliar   .person-avatar { background: linear-gradient(135deg,#d97706,#b45309); }
.dept-Nedidactic .person-avatar { background: linear-gradient(135deg,#059669,#047857); }

.dept-Conducere  .person-badge { background:rgba(239,68,68,.1);  color:#b91c1c; }
.dept-Didactic   .person-badge { background:rgba(26,58,107,.1);  color:#1a3a6b; }
.dept-Auxiliar   .person-badge { background:rgba(217,119,6,.1);  color:#b45309; }
.dept-Nedidactic .person-badge { background:rgba(5,150,105,.1);  color:#047857; }

/* ── CLASS CARD ──────────────────────────────────── */
.class-card {
    background: var(--white);
    border-radius: var(--radius);
    border: 1px solid rgba(26,58,107,.06);
    box-shadow: var(--shadow-card);
    overflow: hidden;
    transition: var(--transition);
}
.class-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}
.class-card-header {
    padding: 1.6rem 1.8rem;
    background: linear-gradient(135deg, var(--primary) 0%, #2d5fa6 100%);
    position: relative;
    overflow: hidden;
}
.class-card-header::before {
    content: '';
    position: absolute; right: -20px; top: -20px;
    width: 100px; height: 100px;
    border-radius: 50%;
    background: rgba(255,255,255,.06);
}
.class-level {
    font-size: .72rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: .1em; color: var(--accent); margin-bottom: .4rem;
}
.class-name {
    font-size: 1.1rem; font-weight: 800; color: white;
    line-height: 1.3;
}
.class-card-body {
    padding: 1.4rem 1.8rem;
    display: flex; flex-direction: column; gap: .8rem;
}
.class-info-row {
    display: flex; align-items: center; gap: 10px;
    font-size: .9rem; color: var(--text-muted);
}
.class-info-row i { color: var(--primary); width: 16px; text-align: center; }
.class-info-row strong { color: var(--text); }
.class-count {
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--surface-2); border-radius: 100px;
    padding: 4px 14px; font-size: .82rem; font-weight: 700;
    color: var(--primary); margin-top: .2rem; align-self: flex-start;
}

/* ── FEATURE CARD (baza materiala) ───────────────── */
.feature-card {
    background: var(--white);
    border-radius: var(--radius);
    border: 1px solid rgba(26,58,107,.06);
    box-shadow: var(--shadow-card);
    overflow: hidden;
    transition: var(--transition);
}
.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(26,58,107,.12);
}
.feature-icon-wrap {
    padding: 2.5rem 2rem;
    display: flex; align-items: center; justify-content: center;
    font-size: 4rem;
    position: relative; overflow: hidden;
}
.feature-icon-wrap::after {
    content: '';
    position: absolute; bottom: -30px; right: -30px;
    width: 120px; height: 120px;
    border-radius: 50%;
    background: rgba(255,255,255,.2);
}
.feature-body {
    padding: 1.6rem 2rem 2rem;
    border-top: 1px solid rgba(26,58,107,.05);
}
.feature-body .badge { display: block; margin-bottom: .8rem; }
.feature-title {
    font-size: 1.25rem; font-weight: 800; color: var(--primary);
    margin-bottom: .7rem; letter-spacing: -.02em;
}
.feature-desc {
    font-size: .93rem; color: var(--text-muted); line-height: 1.7;
}

/* ── GALLERY LARGE ───────────────────────────────── */
.gallery-grid-lg {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}
.gallery-grid-lg .gallery-thumb { aspect-ratio: 3/2; }

/* ── DEPT SECTION HEADER ─────────────────────────── */
.dept-section-title {
    display: flex; align-items: center; gap: 14px;
    margin-bottom: 2rem; margin-top: 3.5rem;
    padding: 1rem 1.5rem;
    border-radius: var(--radius);
    font-size: 1rem; font-weight: 800;
    text-transform: uppercase; letter-spacing: .08em;
}
.dept-section-title:first-child { margin-top: 0; }
.dept-section-title .dept-icon {
    width: 44px; height: 44px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem; flex-shrink: 0;
}
.dept-Conducere-hdr  { background:rgba(239,68,68,.08);  color:#b91c1c; }
.dept-Conducere-hdr  .dept-icon { background:rgba(239,68,68,.15); color:#ef4444; }
.dept-Didactic-hdr   { background:rgba(26,58,107,.07);  color:#1a3a6b; }
.dept-Didactic-hdr   .dept-icon { background:rgba(26,58,107,.12); color:#1a3a6b; }
.dept-Auxiliar-hdr   { background:rgba(217,119,6,.08);  color:#b45309; }
.dept-Auxiliar-hdr   .dept-icon { background:rgba(217,119,6,.15);  color:#d97706; }
.dept-Nedidactic-hdr { background:rgba(5,150,105,.08);  color:#047857; }
.dept-Nedidactic-hdr .dept-icon { background:rgba(5,150,105,.15); color:#059669; }
