﻿:root {
    /* SCHIMBĂ poza aici (poți pune și un URL extern) */
    --hero-image: url('/images/orthodistrict-hero.jpg');
}

/* ===== Hero (full-bleed) ===== */
.hero-bleed {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    border-radius: 0;
}

.hero-landing {
    position: relative; /* important pentru .hero-bg/overlay */
    min-height: 340px; /* o singură valoare, mai mare */
}

    .hero-landing .hero-bg {
        position: absolute;
        inset: 0;
        background-image: var(--hero-image);
        background-size: cover;
        background-position: center;
        transform: scale(1.02);
        filter: blur(1px);
    }

    .hero-landing .hero-overlay {
        position: absolute;
        inset: 0;
        background: linear-gradient(135deg, rgba(13,110,253,.65), rgba(102,16,242,.65));
    }

/* fundal subtil pe toată pagina */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    background-image: var(--hero-image);
    background-size: cover;
    background-position: center;
    opacity: .15;
}

/* ===== Carduri statistici / UI mici ===== */
.stat-card .stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(13,110,253,.08);
    display: grid;
    place-items: center;
    font-size: 22px;
}

.list-group-item:hover {
    background: #f8f9fa;
}

.card {
    border-radius: 1rem;
}

/* ===== FullCalendar – UX tweaks ===== */
#calendar {
    min-height: 75vh;
}

/* Evenimentele de 15 min să fie vizibile ca “pastile” */
.fc .fc-timegrid-event {
    min-height: 18px;
    border: 0;
    color: #fff;
    padding: 2px 4px;
    border-radius: .375rem;
    /* FIX: oprește conținutul să “curgă” în sloturile următoare */
    overflow: hidden;
}

    /* FIX: ascunde orice conținut care depășește interiorul evenimentului */
    .fc .fc-timegrid-event .fc-event-main {
        overflow: hidden;
        padding: 2px 6px; /* un pic de respirare */
    }

    /* FIX: limitează conținutul la max 2 linii, cu elipsă (…) */
    .fc .fc-timegrid-event .fc-event-main-frame {
        display: -webkit-box;
        -webkit-line-clamp: 2; /* schimbă în 1 sau 3 după preferință */
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

/* Text lizibil, dar fără să extindă cardul */
.fc .fc-event-title,
.fc .fc-event-time {
    white-space: normal;
    line-height: 1.1;
    font-weight: 600;
    font-size: .85rem;
    word-break: break-word; /* previne “împingerea” cardului de cuvinte lungi */
}

.fc .fc-timegrid-slot {
    height: 24px;
}

.fc .fc-col-header-cell-cushion {
    padding: .35rem 0;
}

.fc .fc-timegrid-now-indicator-line {
    border-top-width: 2px;
}

.fc .fc-highlight {
    background-color: rgba(13,110,253,.12);
}

.fc .fc-day-today {
    background-color: rgba(255,193,7,.08);
}

.fc .fc-daygrid-dot-event .fc-event-title {
    font-weight: 500;
}

/* ===== Responsive ===== */
@media (max-width: 576px) {
    .hero-landing {
        min-height: 260px;
    }
}
